@clickview/streamable-learning 0.14.1-rc.0 → 0.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundles.json +1 -1
- package/dist/languages/en.json +1 -1
- package/dist/scripts/1067-904db7633d-streamable-learning.chunk.js +1 -0
- package/dist/scripts/1437-0060877c2b-streamable-learning.chunk.js +1 -0
- package/dist/scripts/1661-b235a2d101-streamable-learning.chunk.js +1 -0
- package/dist/scripts/{2700-483a746797-streamable-learning.chunk.js → 2700-6d47f13fcf-streamable-learning.chunk.js} +1 -1
- package/dist/scripts/{370-8bdd9cc416-streamable-learning.chunk.js → 370-80f4e3b68c-streamable-learning.chunk.js} +1 -1
- package/dist/scripts/3958-8a90628953-streamable-learning.chunk.js +1 -0
- package/dist/scripts/4797-fc2c80906c-streamable-learning.chunk.js +2 -0
- package/dist/scripts/{487-e8d70e6659-streamable-learning.chunk.js → 487-eee55c9ae2-streamable-learning.chunk.js} +1 -1
- package/dist/scripts/7102-c2772fda5e-streamable-learning.chunk.js +1 -0
- package/dist/scripts/{719-06e5f38c43-streamable-learning.chunk.js → 719-d7e4c6456e-streamable-learning.chunk.js} +2 -2
- package/dist/scripts/7303-de8cecfa3e-streamable-learning.chunk.js +2 -0
- package/dist/scripts/bundle-9312d225fa.min.js +2 -0
- package/package.json +1 -1
- package/dist/scripts/1067-1f2d39af18-streamable-learning.chunk.js +0 -1
- package/dist/scripts/1437-b8181e9b98-streamable-learning.chunk.js +0 -1
- package/dist/scripts/1661-38a2a2c0f9-streamable-learning.chunk.js +0 -1
- package/dist/scripts/3958-4efeb0bebf-streamable-learning.chunk.js +0 -1
- package/dist/scripts/4797-a810666b09-streamable-learning.chunk.js +0 -2
- package/dist/scripts/7102-1ee44c0c40-streamable-learning.chunk.js +0 -1
- package/dist/scripts/7303-4bc7d2e06e-streamable-learning.chunk.js +0 -2
- package/dist/scripts/bundle-446e05d661.min.js +0 -2
- /package/dist/scripts/{4797-a810666b09-streamable-learning.chunk.js.LICENSE.txt → 4797-fc2c80906c-streamable-learning.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{719-06e5f38c43-streamable-learning.chunk.js.LICENSE.txt → 719-d7e4c6456e-streamable-learning.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{7303-4bc7d2e06e-streamable-learning.chunk.js.LICENSE.txt → 7303-de8cecfa3e-streamable-learning.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{bundle-446e05d661.min.js.LICENSE.txt → bundle-9312d225fa.min.js.LICENSE.txt} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_clickview_streamable_learning=self.webpackChunk_clickview_streamable_learning||[]).push([[487],{43306:(e,i,t)=>{t.d(i,{H:()=>f});var n=t(23481),a=t(57900),r=t(65858),o=JSON.parse('{"9":{"JpZ05O1":{"name":"English","videoIds":["12293130","30361411","56866418","58438459","47329278","33204878"]},"2jDy2MG":{"name":"Health and Physical Education","videoIds":["7707302","3714120","3714278","3714173","3714263","57736366"]},"nK2le8E":{"name":"Personal Development and Health","videoIds":["8789599","60153074","3713674","15492556","3716135","53092493"]},"yKGO31z":{"name":"Business and Economics","videoIds":["47366972","3715870","18845095","36235981","53428226","51407674"]},"m0LrOj4":{"name":"Geography","videoIds":["67277770","3716182","5803343","21143528","3716292","3922246"]},"WAJk5KZ":{"name":"Earth and Environment","videoIds":["59077564","4006484","21148006","3716170","21143528","3716621"]},"v47nvEK":{"name":"History","videoIds":["3926454","3716774","3713871","3716594","3716183","3713847"]},"j03MPwr":{"name":"Legal Studies","videoIds":["3102514","1980904","1969843","3716210","3714860","2787675"]},"bbJR9Zn":{"name":"Languages","videoIds":["5449905","42463035","6820509","6027576","47076421","5455635"]},"8L21E3O":{"name":"Mathematics","videoIds":["3715870","3715019","51005229","3714949","3716177","3715365"]},"2jDy2M7":{"name":"Religion and Philosophy","videoIds":["3716229","3716171","41056701","16574869","3716175","50917953"]},"qdo988Y":{"name":"Biological Sciences","videoIds":["3714819","3716265","4683666","3715984","38041517","3779793"]},"0OPpqqo":{"name":"Chemical Sciences","videoIds":["52947827","52948049","3715160","4427422","57870424","47323862"]},"dlMrOdE":{"name":"Physical Sciences","videoIds":["11746875","3716307","39316775","6746382","6812332","6344597"]},"3koR9yA":{"name":"Psychology","videoIds":["3714373","3714891","16132648","6599207","3717591","3717555"]},"0OZyLGy":{"name":"Technologies","videoIds":["3714027","6863817","3716153","34149622","22733300","10345707"]},"0OZyLYy":{"name":"The Arts","videoIds":["3713730","3716727","3937998","32102569","3716167","32998073"]}},"12":{"v45P37g":{"name":"Expressive Arts","videoIds":["8924670","49585075","38370221","47484152","54095899","32102465"]},"GxyLnJn":{"name":"Languages","videoIds":["7486323","36991396","5449905","40919815","48278510","50466413"]},"7PWYrDW":{"name":"Literacy and English","videoIds":["41906926","49581979","61250","52429859","32970218","41938064"]},"eKpbY50":{"name":"Numeracy and Mathematics","videoIds":["3711988","42637723","6682722","58026826","13078019","4991116"]},"4GR8pEL":{"name":"Physical Education","videoIds":["38132665","39294835","48118056","57372274","53108623","47431467"]},"k3MlbL9":{"name":"PSHE","videoIds":["7593354","4169937","9900606","37428010","50180637","37857897"]},"wLDW2LL":{"name":"Religious and Philosophical Education","videoIds":["8739794","8733823","8734696","39428437","49159932","49159889"]},"nKGonKL":{"name":"Sciences","videoIds":["3711985","36554684","4108673","3712066","7310225","48022765"]},"eKpbEMy":{"name":"Social Studies","videoIds":["38091407","52436848","8139170","8733988","52601783","51668932"]},"MgqLxwk":{"name":"Technologies","videoIds":["47529961","4108924","3711985","51668853","49834298","37137391"]}},"13":{"GxAzY0z":{"name":"Arts","videoIds":["6412547","53550381","40919555","50977326","53108637","49858623"]},"Jpy1Edb":{"name":"Computer Science and Technology","videoIds":["39382930","40907539","48236013","48233767","48236100","3712674"]},"NqgPKaG":{"name":"English Language Arts","videoIds":["38945464","39388174","52673932","38945448","60062676","48235940"]},"bbJ74ed":{"name":"Health","videoIds":["39430062","40919434","39362080","39383081","58025600","40919494"]},"Dda6pW3":{"name":"Math","videoIds":["49532295","38943192","49532442","39382723","39388252","38944700"]},"j0a4Arj":{"name":"Physical Education","videoIds":["40919406","48235838","50652589","40919430","48236078","50652575"]},"LqG71RA":{"name":"Science","videoIds":["45248852","48235521","52318531","48235464","39383083","51731134"]},"8LnP7p8":{"name":"Social and Emotional Learning","videoIds":["39451488","48235859","39337317","40964136","42314985","39382748"]},"v4qEZDG":{"name":"Social Studies","videoIds":["51666992","39382727","41120130","56997479","57311898","39342430"]},"4Gl1DaK":{"name":"World Languages","videoIds":["40919719","40919802","40919815","40919186","40915325","49858537"]}},"14":{"2jrkdLY":{"name":"Arts","videoIds":["38916908","6412547","40919390","40919482","38817643","38817665"]},"g42EN1v":{"name":"Computer Science and Technology","videoIds":["40919434","38917550","50878197","40907190","40907208","39382881"]},"5ROzG7l":{"name":"English Language Arts","videoIds":["39387902","40912179","60062676","40916580","40919438","48234159"]},"ze5J1AE":{"name":"Health","videoIds":["39362404","39430062","51152651","40919426","40919486","48234499"]},"v4qnrzg":{"name":"Math","videoIds":["39361909","51005193","51730147","48715611","39382600","49532478"]},"1dRa6vd":{"name":"Physical Education","videoIds":["40918377","51617459","49533964","42463003","51182678","50652593"]},"KAE9Kqx":{"name":"Science","videoIds":["50877364","39438561","40907311","51735853","40908561","50878717"]},"xyLWk6w":{"name":"Social and Emotional Learning","videoIds":["40964136","53746175","48172750","48171641","50417923","50418083"]},"8Ln1GA8":{"name":"Social Studies","videoIds":["51666258","38945379","50900368","49690616","45259058","51666231"]},"DdaRGrq":{"name":"World Languages","videoIds":["40915666","40915325","42486037","40915698","40915345","48040254"]}},"15":{"yKZ43dw":{"name":"Arts","videoIds":["38817665","39999270","38808751","40911271","40911232","51581800"]},"p3y82WO":{"name":"Career and Technical Education","videoIds":["52328915","52328920","47488746","47488362","52436904","40917538"]},"KAERnwR":{"name":"Computer Science and Technology","videoIds":["40915847","40916210","51262040","39912587","51250029","58318543"]},"LqGrPwA":{"name":"English Language Arts","videoIds":["40914651","40918236","77544344","51581321","39319556","40912204"]},"8LnamD8":{"name":"Health","videoIds":["51154979","48235793","46984526","39894691","59279809","50996991"]},"Jpyo7W2":{"name":"Math","videoIds":["47595827","51730147","49532658","48715416","48234988","48715584"]},"5RO2ml5":{"name":"Physical Education","videoIds":["49533951","40918509","40918377","51655191","50652593","40908770"]},"obMre0k":{"name":"Science","videoIds":["40915159","51293454","52938790","51291516","39414759","40916620"]},"ze5d6l9":{"name":"Social and Emotional Learning","videoIds":["48171596","48171968","48171765","50418083","50418241","48235802"]},"qd17eke":{"name":"Social Studies","videoIds":["50763143","49690616","53578611","53313159","45286772","39414759"]},"KAERnDz":{"name":"World Languages","videoIds":["42486037","48234348","40919186","40919098","40918945","40915898"]}},"16":{"KAEY5GK":{"name":"Art and Design","videoIds":["8924670","49585075","38370221","47484152","54095899","32102465"]},"6wa2YwO":{"name":"Citizenship","videoIds":["57355388","52601783","48522943","22372630","53108585","41992024"]},"R0LK746":{"name":"Computing","videoIds":["26617482","38132678","26619390","36895952","41565288","36895909"]},"9DPkNz6":{"name":"Design and Technology","videoIds":["47529961","4108924","3711985","51668853","49834298","37137391"]},"2jDnan9":{"name":"Drama","videoIds":["51240522","230268","37018426","41939112","51582282","46916103"]},"E06dg2Z":{"name":"English","videoIds":["41906926","49581979","61250","52429859","32970218","41938064"]},"8LnO2Rd":{"name":"Geography","videoIds":["67225999","3713237","4402476","50800706","51666994","48105073"]},"bbJ9Ayb":{"name":"History","videoIds":["52436848","8139170","8733988","48666851","51668932","51731292"]},"Dda4KYL":{"name":"Languages","videoIds":["7486323","36991396","5449905","40919815","48278510","50466413"]},"Ax2Jyoa":{"name":"Mathematics","videoIds":["3711988","42637723","6682722","58026826","13078019","4991116"]},"bbJ9Ap0":{"name":"Music","videoIds":["50466237","6412547","49535315","49808227","30324910","64333"]},"NqgMRWy":{"name":"Physical Education","videoIds":["38132665","39294835","48118056","57372274","53108623","47431467"]},"Yvm5eyp":{"name":"PSHE","videoIds":["7593354","4169937","9900606","37428010","50180637","37857897"]},"8LnO2Je":{"name":"Religious Education","videoIds":["8739794","8733823","8734696","39428437","49159932","49159889"]},"3kmoJ72":{"name":"Science","videoIds":["3711985","36554684","4108673","3712066","7310225","48022765"]}},"18":{"yKP9gOD":{"name":"Civics and Citizenship","videoIds":["7735265","7735497","50679052","51452628","13106949","13107690"]},"7P6JOYb":{"name":"Economics and Business Studies","videoIds":["53428624","37455700","57355319","53428628","43961148","57966130"]},"j0jRJ1Z":{"name":"English","videoIds":["8416974","8417845","3712691","32127566","6673418","52675027"]},"nKDmYEl":{"name":"Geography","videoIds":["58600977","6980722","34591272","4402447","34597058","51437590"]},"Pk7e2GL":{"name":"Health and Physical Education","videoIds":["7593365","4170133","9900524","36875667","4669690","7593792"]},"WAe601Z":{"name":"History","videoIds":["3713735","6430651","3716829","43772092","51391809","56980377"]},"v4893Yy":{"name":"Languages","videoIds":["5449905","32345978","39623583","6820509","39255442","39254760"]},"nKDmYkl":{"name":"Mathematics","videoIds":["3713828","10749459","32102562","6689791","3713607","48278618"]},"0OeG09l":{"name":"Religion","videoIds":["8740724","8733239","8739706","8734693","8733792","33320133"]},"2jd70bp":{"name":"Science","videoIds":["3712073","36554689","3713561","3713739","7310275","3711972"]},"KAmPJqP":{"name":"Technologies","videoIds":["26619390","4131606","38132678","50720784","57230386","51181861"]},"MgOve7k":{"name":"The Arts","videoIds":["50466237","6412547","8100020","3716220","49808227","32787298"]}},"24":{"qdarDYp":{"name":"Business and Economics","videoIds":["51623323","47366972","37709668","37709732","3716149","8973838"]},"3ko2ey4":{"name":"Citizenship","videoIds":["36220305","47575902","3716210","36103171","57771705","5270400"]},"eKnGDa0":{"name":"English","videoIds":["36191688","33204878","36395402","5758602","35997069","23851791"]},"Yv5dzw5":{"name":"Expressive Arts","videoIds":["3716191","3716247","48134757","32998073","3716167","35601583"]},"ra6m0d1":{"name":"Geography","videoIds":["74135484","9375166","5711759","16206702","3922246","48476601"]},"E0dZqyR":{"name":"History","videoIds":["3926454","9978142","4684604","8372779","3716183","4648523"]},"9DkAaKy":{"name":"Languages","videoIds":["5449905","42463035","6820509","42209168","47076421","5455635"]},"8LOYpl0":{"name":"Numeracy and Mathematics","videoIds":["3716176","3715070","51730710","3715047","4553884","48091307"]},"m0d5D7r":{"name":"Physical Education","videoIds":["7609298","3714120","3714279","49160029","3714263","51667687"]},"g4WgD5l":{"name":"PSE","videoIds":["59279784","3716135","53259069","53259054","983611","16132648"]},"WALeYqE":{"name":"Psychology","videoIds":["57771705","3714373","39438648","3714426","3714891","3717591"]},"eKnGDdP":{"name":"Religious, Moral and Philosophical Education","videoIds":["3716229","3716171","39379918","33305783","3716175","3716237"]},"eKnGDdo":{"name":"Sciences","videoIds":["11746875","3779793","4558988","48139884","3713268","3716170"]},"nK2D9Oj":{"name":"Sociology","videoIds":["3716077","3714531","47207659","58441038","63984885","38146645"]},"2jDd3kx":{"name":"Technologies","videoIds":["50917033","58307508","3716153","74135484","48083353","35004434"]}},"47":{"LqKNnNw":{"name":"Business and Economics","videoIds":["51623323","47366972","37709668","37709732","3716149","8973838"]},"7PgZvEA":{"name":"Careers","videoIds":["9315247","9312222","47104083","3715120","3714944","47159767"]},"la7zdgw":{"name":"English","videoIds":["53466594","77444242","17989642","30340068","24419904","33204878"]},"wLKkMwD":{"name":"Expressive Arts","videoIds":["3716191","3716247","48134757","32998073","3716167","35601583"]},"wLKkMEp":{"name":"Geography","videoIds":["74135484","22687577","5711759","16206702","3922246","19105359"]},"OzZ6vg4":{"name":"History","videoIds":["3926454","9978142","4684604","8372779","3716183","4648523"]},"YvJby7P":{"name":"Mathematics","videoIds":["3716176","3715070","51730710","3715047","4553884","34497285"]},"v41jLmK":{"name":"Modern Foreign Languages","videoIds":["5449905","42463035","6820509","42209168","47076421","5455635"]},"aPG3mRe":{"name":"Physical Education","videoIds":["7609298","3714120","3714279","49160029","3714263","51667687"]},"Gxp3jze":{"name":"PSHE","videoIds":["59279784","3716135","53259069","53259054","983611","16132648"]},"qd2K0qY":{"name":"Religion","videoIds":["3716229","3716171","39379918","33305783","3716175","3716237"]},"ob31yZ9":{"name":"Science","videoIds":["9375775","11746875","3779793","4558988","48139884","3713268"]},"nKvyqe1":{"name":"Technology","videoIds":["50917033","58307508","3716153","74135484","48083353","35004434"]}}}'),s=t(46477),l=t(19808),d=t(65728),c={CreatePlaylist:function(e){return!(e.hasPlaylist||e.preferredPresentation&&!o[e.preferredPresentation.id])}},u=n.T.encloseNamespace("onboarding.constants"),m="show-subjects-summary",g="show-job-title-to-trial-user",f={"welcome-video":{id:"welcome-video",predicate:function(e){return!!s.m.shouldRedirectToOnboarding(e.masterUser,e.hasPermissions)&&e.instanceRegion===l.b.US},setting:d.E.HasCompletedOnboardingStepWelcomeVideo,analyticsLocation:r.LZ.OnboardingWelcomeVideoScreen,includeInProgressBar:function(){return!1},getWidgetHeading:function(){return u("selectRoleHeading")},getWidgetDescription:function(){return u("selectRoleMessage")}},"select-role":{id:"select-role",predicate:function(e){return!s.m.hasNonBdmTrial(e.hasPermissions)||(e.jobTitle?"boolean"==typeof a.SG.get(g)?a.SG.get(g):(a.SG.set(g,!1),!1):("boolean"!=typeof a.SG.get(g)&&a.SG.set(g,!0),!0))},setting:d.E.HasCompletedOnboardingStepSelectRole,analyticsLocation:r.LZ.OnboardingSelectRoleScreen,includeInProgressBar:function(){return!0},getWidgetHeading:function(){return u("selectRoleHeading")},getWidgetDescription:function(){return u("selectRoleMessage")}},"usage-intention":{id:"usage-intention",predicate:function(){return!0},setting:d.E.HasCompletedOnboardingStepUsageIntention,analyticsLocation:r.LZ.OnboardingUsageIntentionScreen,includeInProgressBar:function(){return!0},getWidgetHeading:function(){return u("usageIntentionHeading")},getWidgetDescription:function(){return u("usageIntentionMessage")}},"subjects-summary":{id:"subjects-summary",predicate:function(e){return"boolean"==typeof a.SG.cacheGet(m)||a.SG.cacheSet(m,!s.m.shouldRedirectToOnboarding(e.masterUser,e.hasPermissions)&&!!(null===(i=e.preferredSubjects)||void 0===i?void 0:i.length),604800),a.SG.cacheGet(m);var i},setting:d.E.HasCompletedOnboardingStepSubjectsSummary,analyticsLocation:r.LZ.OnboardingSubjectsSummaryScreen,includeInProgressBar:function(){return!0},getWidgetHeading:function(){return u("subjectsHeading")},getWidgetDescription:function(){return u("subjectsMessage")},branches:["school-level","subjects","select-curriculum"]},"school-level":{id:"school-level",predicate:function(e){var i;return!(f["subjects-summary"].predicate(e)||(null===(i=e.presentations)||void 0===i?void 0:i.length)<2)},setting:d.E.HasCompletedOnboardingStepSchoolLevel,analyticsLocation:r.LZ.OnboardingSchoolLevelScreen,includeInProgressBar:function(e){return!f["subjects-summary"].predicate(e)},getWidgetHeading:function(e){return u(e?"schoolLevelHeadingKdm":"schoolLevelHeading")},getWidgetDescription:function(e){return u(e?"schoolLevelMessageKdm":"schoolLevelMessage")}},"select-curriculum":{id:"select-curriculum",predicate:function(e){var i;return!(f["subjects-summary"].predicate(e)||(null===(i=e.curriculums)||void 0===i?void 0:i.length)<2)},setting:d.E.HasCompletedOnboardingStepSelectCurriculum,analyticsLocation:r.LZ.OnboardingSelectCurriculumScreen,includeInProgressBar:function(e){return!f["subjects-summary"].predicate(e)},getWidgetHeading:function(){return u("selectCurriculumHeading")},getWidgetDescription:function(){return u("selectCurriculumMessage")}},subjects:{id:"subjects",predicate:function(e){return!(f["subjects-summary"].predicate(e)||e.preferredPresentation&&!o[e.preferredPresentation.id])},setting:d.E.HasCompletedOnboardingStepSubjects,analyticsLocation:r.LZ.OnboardingSubjectsScreen,includeInProgressBar:function(e){return!f["subjects-summary"].predicate(e)},getWidgetHeading:function(e){return u(e?"subjectsHeadingKdm":"subjectsHeading")},getWidgetDescription:function(){return u("subjectsMessage")}},"select-videos":{id:"select-videos",predicate:c.CreatePlaylist,setting:d.E.HasCompletedOnboardingStepSelectVideos,analyticsLocation:r.LZ.OnboardingSelectVideosScreen,includeInProgressBar:function(){return!0},getWidgetHeading:function(){return u("selectVideosHeading")},getWidgetDescription:function(e){return u(e?"selectVideosMessageKdm":"selectVideosMessage")}},"create-playlist":{id:"create-playlist",predicate:c.CreatePlaylist,setting:d.E.HasCompletedOnboardingStepCreatePlaylist,analyticsLocation:r.LZ.OnboardingCreatePlaylistScreen,includeInProgressBar:function(){return!0},getWidgetHeading:function(){return u("createPlaylistHeading")},getWidgetDescription:function(){return u("createPlaylistMessage")}}}},46477:(e,i,t)=>{t.d(i,{m:()=>m});var n=t(57900),a=t(75896),r=t(43306),o=t(16714),s=t(64818);function l(e,i){(null==i||i>e.length)&&(i=e.length);for(var t=0,n=Array(i);t<i;t++)n[t]=e[t];return n}var d="onboarding:persona",c="onboarding:usage:intention",u="onboarding:had:job:title",m={getOnboardingPathway:function(e){var i=e.jobTitle,t=e.userSettings,n=e.presentations,a=e.curriculums,o=e.preferredPresentation,l=e.preferredSubjects,d=e.hasPlaylist,c=e.appLink,u=e.appLinks,g=e.masterUser,f=e.currentUser,v=e.hasPermissions,p=m.getPersona();!p&&i&&m.updatePersona(i),p&&p!==s.l.getPersonaFromJobTitle(i)&&m.updatePersona(i);var y={jobTitle:i,hasPlaylist:d,masterUser:g,presentations:n||[],curriculums:a||[],preferredPresentation:o,preferredSubjects:l,instanceRegion:null==f?void 0:f.instanceRegion,hasPermissions:v},b=m.getCurrentScreen(c,u),h=Object.values(r.H),C={},S=null,I=null,P=0,L=0,_=!0;return h.forEach((function(e){var i;if(e.predicate(y)){I||(I=e.id);var n=function(e,i){var t;return null===(t=null==e?void 0:e[i])||void 0===t?void 0:t.value}(t,e.setting);n||(_=!1),b||n||(b=e.id),P++,C[e.id]={isComplete:n,next:null,previous:S,number:P,includeInProgressBar:!1},e.includeInProgressBar(y)&&(L++,C[e.id].progressBarNumber=L,C[e.id].includeInProgressBar=!0),(null===(i=e.branches)||void 0===i?void 0:i.length)&&e.branches.forEach((function(i){C[i]={next:e.id,previous:e.id,includeInProgressBar:!1}})),S&&(C[S].next=e.id),S=e.id}})),b||_||(b=I),{screens:C,currentScreen:b,totalScreens:P,totalScreensInProgressBar:L,hasCompletedAllSteps:_}},getNextAppLink:function(e,i){var t=e.screens[e.currentScreen],n=null==t?void 0:t.next;return n?i[n]:null},getPreviousAppLink:function(e,i){var t=e.screens[e.currentScreen],n=null==t?void 0:t.previous;return n?i[n]:null},getCurrentScreen:function(e,i){var t=Object.entries(i).find((function(i){return(t=i,n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,i){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,a,r,o,s=[],l=!0,d=!1;try{if(r=(t=t.call(e)).next,0===i){if(Object(t)!==t)return;l=!1}else for(;!(l=(n=r.call(t)).done)&&(s.push(n.value),s.length!==i);l=!0);}catch(e){d=!0,a=e}finally{try{if(!l&&null!=t.return&&(o=t.return(),Object(o)!==o))return}finally{if(d)throw a}}return s}}(t,n)||function(e,i){if(e){if("string"==typeof e)return l(e,i);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?l(e,i):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.")}())[1].action===e.action;var t,n}));return t?a.m.first(t):null},getPersona:function(){return n.SG.get(d)},updatePersona:function(e){var i=s.l.getPersonaFromJobTitle(e);n.SG.set(d,i||"teacher")},getUsageIntention:function(){return n.SG.get(c)},updateUsageIntention:function(e){n.SG.set(c,e)},removeUsageIntention:function(){n.SG.remove(c)},getProgress:function(e){var i,t,n,a=null===(i=e.screens[e.currentScreen])||void 0===i?void 0:i.number,r=null===(t=e.screens[e.currentScreen])||void 0===t?void 0:t.progressBarNumber,o=e.totalScreens,s=e.totalScreensInProgressBar,l=r/s*100,d=(a-1)/o*100;return{showProgressBar:null===(n=e.screens[e.currentScreen])||void 0===n?void 0:n.includeInProgressBar,currentStepNumber:a,currentStepProgressBarNumber:r,totalScreens:o,totalScreensInProgressBar:s,progressBarPercentage:l,overallPercentage:d}},hasNonBdmTrial:function(e){return e(o.C.ViewTrialUpgrade)},getOnboardingScreenStates:function(e){var i=[],t=[];return Object.keys(e.screens).forEach((function(n){e.screens[n].isComplete?i.push(n):t.push(n)})),{completedScreens:i,incompleteScreens:t}},shouldRedirectToOnboarding:function(e,i){var t,a;return(null==e?void 0:e.dateCreated)>="2024-03-26"||!!m.hasNonBdmTrial(i)&&("boolean"!=typeof n.SG.get(u)&&n.SG.set(u,!!(null===(a=null===(t=null==e?void 0:e.userProfile)||void 0===t?void 0:t.metadata)||void 0===a?void 0:a.jobTitle)),!n.SG.get(u))}}},31015:(e,i,t)=>{t.d(i,{u:()=>f});var n,a=t(110),r=t(43306),o=t(65728),s=t(78479),l=t(42308),d=t(26154),c=t(21366);function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function m(e,i,t){return(i=function(e){var i=function(e,i){if("object"!=u(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=u(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==u(i)?i:i+""}(i))in e?Object.defineProperty(e,i,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[i]=t,e}function g(e,i){(null==i||i>e.length)&&(i=e.length);for(var t=0,n=Array(i);t<i;t++)n[t]=e[t];return n}var f=(m(m(m(m(m(m(m(m(m(m(n={},l.z.CuratedMedia,{getCustomParams:function(){return{}}}),l.z.PlaylistMedia,{getCustomParams:function(){return{}}}),l.z.ClassificationMedia,{getCustomParams:function(){return{}}}),l.z.LatestReleasedVideos,{getCustomParams:function(){return c.S.getLatestReleasedTimeRange()}}),l.z.ContinueWatching,{getCustomParams:function(){return{}}}),l.z.CompanyLatestReleasedVideo,{getCustomParams:function(){return{}}}),l.z.CompanyVideos,{getCustomParams:function(){return{}}}),l.z.ClassificationLatestReleasedVideo,{getCustomParams:function(){return{}}}),l.z.ClassificationLatestReleasedVideosV2,{getCustomParams:function(){return{limit:12}},minContent:4}),l.z.SeasonalClassificationMedia,{getCustomParams:function(){return{limit:12}},minContent:4}),m(m(m(m(m(m(m(m(m(m(n,l.z.CompanyClassificationVideos,{getCustomParams:function(){return{}},minContent:4}),l.z.TrendingClassificationsMedia,{getCustomParams:function(){return{limit:12}},minContent:4}),l.z.CuratedClassifications,{getCustomParams:function(){return{}}}),l.z.TrendingClassifications,{getCustomParams:function(){return{limit:6}},minContent:3}),l.z.Classifications,{getCustomParams:function(e,i){if(i===d.ku.Discover){if(e===s.f.EditableCoverFixedPillListSmall)return{canBePreferred:!0,isFollowing:!0};if([s.f.PosterSlidingListSmall,s.f.CoverFixedPillListXSmall].includes(e))return{canBePreferred:!0}}return{}}}),l.z.ClassificationLatestReleasedVideos,{getCustomParams:function(){return c.S.getLatestReleasedTimeRange()}}),l.z.SpecialEventClassifications,{getCustomParams:function(){return{from:a.O.format(new Date,"YYYY-MM-DD")}}}),l.z.LatestReleasedClassifications,{getCustomParams:function(){return{limit:6}},minContent:3}),l.z.CuratedSeries,{getCustomParams:function(){return{}}}),l.z.CuratedPlaylists,{getCustomParams:function(){return{}}}),m(m(m(m(m(m(m(m(m(m(n,l.z.Blurb,{getCustomParams:function(){return{}}}),l.z.DynamicBlurb,{getCustomParams:function(e){return e===s.f.OnboardingSteps?{customerSetting:[o.E.HasNewOnboarding],userSettings:[].concat((i=Object.values(r.H).map((function(e){return e.setting})),function(e){if(Array.isArray(e))return g(e)}(i)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(i)||function(e,i){if(e){if("string"==typeof e)return g(e,i);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?g(e,i):void 0}}(i)||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.")}()),[o.E.HasCompletedOnboardingV2,o.E.HasExitedOnboarding])}:{};var i}}),l.z.AuthorReviewer,{getCustomParams:function(){return{}}}),l.z.Faq,{getCustomParams:function(){return{}}}),l.z.CuratedCompanies,{getCustomParams:function(){return{}}}),l.z.Ratings,{getCustomParams:function(){return{}}}),l.z.Presentations,{getCustomParams:function(){return{}}}),l.z.UpcomingLivestreams,{getCustomParams:function(){return{from:a.O.format(new Date,"YYYY-MM-DD")}}}),l.z.CuratedMultimedia,{getCustomParams:function(){return{}}}),l.z.ClassificationPlaylists,{getCustomParams:function(){return{}}}),m(m(m(m(m(n,l.z.ClassificationSeries,{getCustomParams:function(){return{}}}),l.z.ClassificationFeaturedVideo,{getCustomParams:function(){return{}}}),l.z.ClassificationPinnedVideos,{getCustomParams:function(){return{}}}),l.z.ClassificationDashboardExternalMedia,{getCustomParams:function(){return{}}}),l.z.ClassificationDashboardMedia,{getCustomParams:function(){return{}}}))},78417:(e,i,t)=>{var n;t.d(i,{r:()=>n}),function(e){e[e.FilterOut=0]="FilterOut",e[e.StripMetadata=1]="StripMetadata"}(n||(n={}))},78479:(e,i,t)=>{var n;t.d(i,{f:()=>n}),function(e){e.ThumbnailHeroMedia="thumbnail_hero_media",e.ThumbnailFeaturedMedia="thumbnail_featured_media",e.ThumbnailSlidingListSmall="thumbnail_sliding_list_small",e.ThumbnailSlidingListSmallV2="thumbnail_sliding_list_small_v2",e.ThumbnailSlidingListLarge="thumbnail_sliding_list_large",e.ThumbnailFixedListMediaLarge="thumbnail_fixed_list_media_large",e.ThumbnailVerticalList="thumbnail_vertical_list",e.PopoutThumbnailSlidingListLarge="popout_thumbnail_sliding_list_large",e.PopoutThumbnailSlidingListSmall="popout_thumbnail_sliding_list_small",e.FeaturedThumbnailSlidingList="featured_thumbnail_sliding_list",e.ThumbnailFixedListXLarge="thumbnail_fixed_list_xlarge",e.CoverSlidingPillListSmall="cover_sliding_pill_list_small",e.CoverFixedPillListLarge="cover_fixed_pill_list_large",e.StatsCoverFixedPillListLarge="stats_cover_fixed_pill_list_large",e.CoverFixedPillListXSmall="cover_fixed_pill_list_xsmall",e.ThumbnailFixedListLarge="thumbnail_fixed_list_large",e.ThumbnailFixedListSmall="thumbnail_fixed_list_small",e.EditableCoverFixedPillListSmall="editable_cover_fixed_pill_list_small",e.HeroBanner="hero_banner",e.HeroThumbnailSmall="hero_thumbnail_small",e.HeroBlockColourSmall="hero_block_colour_small",e.CoverFixedTileList="cover_fixed_tile_list",e.PosterSlidingListLarge="poster_sliding_list_large",e.PosterSlidingListMedium="poster_sliding_list_medium",e.PosterSlidingListSmall="poster_sliding_list_small",e.HeroBannerSmall="hero_banner_small",e.Heading="heading",e.AuthorReviewer="author_reviewer",e.Question="question",e.QuestionAccordion="question_accordion",e.OnboardingSteps="onboarding_steps",e.CircleLogoSlidingList="circle_logo_sliding_list",e.FilterSlidingPillListSmall="filter_sliding_pill_list_small",e.EventIconSlidingList="event_icon_sliding_list"}(n||(n={}))},42308:(e,i,t)=>{var n;t.d(i,{z:()=>n}),function(e){e.CuratedMedia="curated_media",e.PlaylistMedia="playlist_media",e.ClassificationMedia="classification_media",e.LatestReleasedVideos="latest_released_videos",e.ContinueWatching="continue_watching_videos",e.CompanyLatestReleasedVideo="company_latest_released_video",e.CompanyVideos="company_videos",e.ClassificationLatestReleasedVideo="classification_latest_released_video",e.ClassificationLatestReleasedVideosV2="classification_latest_released_videos_v2",e.CompanyClassificationVideos="company_classification_videos",e.ClassificationDashboardMedia="classification_dashboard_media",e.ClassificationDashboardExternalMedia="classification_dashboard_external_media",e.SeasonalClassificationMedia="seasonal_classification_media",e.TrendingClassificationsMedia="trending_classifications_media",e.CuratedClassifications="curated_classifications",e.Classifications="classifications",e.ClassificationLatestReleasedVideos="classification_latest_released_videos",e.SpecialEventClassifications="special_event_classifications",e.LatestReleasedClassifications="latest_released_classifications",e.TrendingClassifications="trending_classifications",e.CuratedSeries="curated_series",e.CuratedPlaylists="curated_playlists",e.Blurb="blurb",e.DynamicBlurb="dynamic_blurb",e.AuthorReviewer="author_reviewer",e.Faq="faq",e.CuratedCompanies="curated_companies",e.Ratings="ratings",e.Presentations="presentations",e.UpcomingLivestreams="upcoming_livestreams",e.CuratedMultimedia="curated_multimedia",e.ClassificationPlaylists="classification_playlists",e.ClassificationSeries="classification_series",e.ClassificationFeaturedVideo="classification_featured_video",e.ClassificationPinnedVideos="classification_pinned_videos"}(n||(n={}))},65294:(e,i,t)=>{t.d(i,{Y:()=>r});var n=t(34152);function a(e,i){(null==i||i>e.length)&&(i=e.length);for(var t=0,n=Array(i);t<i;t++)n[t]=e[t];return n}function r(){var e,i,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.prevent,o=t.rootMargin,s=t.triggerOnce,l=void 0===s||s,d=(e=(0,n.YD)({triggerOnce:l,rootMargin:o}),i=3,function(e){if(Array.isArray(e))return e}(e)||function(e,i){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,a,r,o,s=[],l=!0,d=!1;try{if(r=(t=t.call(e)).next,0===i){if(Object(t)!==t)return;l=!1}else for(;!(l=(n=r.call(t)).done)&&(s.push(n.value),s.length!==i);l=!0);}catch(e){d=!0,a=e}finally{try{if(!l&&null!=t.return&&(o=t.return(),Object(o)!==o))return}finally{if(d)throw a}}return s}}(e,i)||function(e,i){if(e){if("string"==typeof e)return a(e,i);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?a(e,i):void 0}}(e,i)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),c=d[0],u=d[1],m=d[2];return!0!==r&&void 0!==window.IntersectionObserver||(u=!0,c=null),{ref:c,inView:u,initialized:!!m}}},26154:(e,i,t)=>{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)}var a;t.d(i,{VH:()=>v,R:()=>c,OL:()=>s,NK:()=>l,GL:()=>h.GL,ku:()=>h.ku,Yv:()=>h.Yv,IL:()=>u,Z9:()=>a,l9:()=>m}),function(e){e[e.MultipleChoice=1]="MultipleChoice",e[e.ShortAnswer=2]="ShortAnswer",e[e.TrueOrFalse=3]="TrueOrFalse",e[e.Annotation=4]="Annotation",e[e.Image=5]="Image",e[e.MissingWord=6]="MissingWord",e[e.Illustration=7]="Illustration"}(a||(a={}));var r,o,s,l,d,c,u=(r={},!0,(o=function(e){var i=function(e,i){if("object"!=n(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var a=t.call(e,"string");if("object"!=n(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(i)?i:i+""}(o=a.Illustration))in r?Object.defineProperty(r,o,{value:true,enumerable:!0,configurable:!0,writable:!0}):r[o]=true,r);!function(e){e.LatestReleases="latest-releases",e.ExploreAllTopics="explore-all-topics",e.ClassificationLatestReleases="classification-latest-releases",e.ClassificationDirectory="classification-directory"}(s||(s={})),function(e){e.TopicDirectory="topic-directory",e.TopicNewReleases="topic-new-releases",e.CuratedTopic="curated-topic"}(l||(l={})),function(e){e.Video="video",e.Series="series",e.Playlist="playlist",e.Classification="subject",e.Company="company"}(d||(d={})),function(e){e.Pink="colour:0",e.Orange="colour:1",e.Green="colour:2",e.Blue="colour:3",e.Purple="colour:4",e.Indigo="colour:5"}(c||(c={}));var m,g,f,v,p,y,b,h=t(75902);!function(e){e[e.Row=0]="Row",e[e.LargeRow=1]="LargeRow",e[e.Hero=2]="Hero",e[e.ResourcesTile=3]="ResourcesTile"}(m||(m={})),function(e){e[e.None=1]="None",e[e.All=2]="All",e[e.Learner=3]="Learner",e[e.Teacher=4]="Teacher"}(g||(g={})),function(e){e[e.Holiday=0]="Holiday",e[e.SportingEvent=1]="SportingEvent",e[e.Observance=2]="Observance",e[e.NaturalDisaster=3]="NaturalDisaster",e[e.HistoricalEvent=4]="HistoricalEvent",e[e.BreakingNews=5]="BreakingNews",e[e.Informal=6]="Informal",e[e.ReligiousEvent=7]="ReligiousEvent",e[e.Livestream=8]="Livestream",e[e.Other=255]="Other"}(f||(f={})),function(e){e[e.Classification=0]="Classification",e[e.Livestream=1]="Livestream"}(v||(v={})),function(e){e[e.Regular=0]="Regular",e[e.Daily=1]="Daily",e[e.Weekly=2]="Weekly",e[e.Monthly=3]="Monthly",e[e.Yearly=4]="Yearly"}(p||(p={})),function(e){e[e.Owner=1]="Owner",e[e.Teacher=2]="Teacher",e[e.Student=3]="Student"}(y||(y={})),function(e){e[e.Audience=0]="Audience",e[e.Topic=1]="Topic",e[e.Curriculum=2]="Curriculum"}(b||(b={}))},75902:(e,i,t)=>{var n,a,r,o;t.d(i,{GL:()=>r,Yv:()=>a,ku:()=>o}),function(e){e.Any="Any",e.Level_1="Level_1",e.Level_2="Level_2",e.Level_3="Level_3",e.Level_4="Level_4"}(n||(n={})),function(e){e.Any="Any",e.Staff="Staff",e.Learner="Learner"}(a||(a={})),function(e){e.Draft="Draft",e.Published="Published",e.Archived="Archived"}(r||(r={})),function(e){e.Discover="discover",e.Classification="classification",e.ClassificationDirectory="classification-directory",e.ClassificationVideos="classification-videos",e.MoviesAndTv="movies-and-tv",e.Company="company"}(o||(o={}))},21366:(e,i,t)=>{t.d(i,{S:()=>l});var n=t(75896),a=t(110),r=t(31015),o=(t(76881),t(86613),t(42308)),s=t(26154),l={onSelectCuratedObject:function(e,i){var t=Object.assign(Object.assign({},i.values.data),{objectIds:n.m.addOrRemoveImmutable(i.values.data.objectIds||[],e.id)});i.setFieldValue("data",t),i.setTouched(Object.assign(Object.assign({},i.touched),{data:{objectIds:!0}}))},onRemoveCuratedObject:function(e,i){var t=Object.assign(Object.assign({},i.values.data),{objectIds:i.values.data.objectIds.filter((function(i){return i!==e}))});i.setFieldValue("data",t)},getDashboardTarget:function(e){return e.targetType===s.ku.Discover?"discover:presentation:".concat(e.presentationId):e.targetType===s.ku.Classification?"classification:".concat(e.classificationId):e.targetType===s.ku.ClassificationDirectory?"classification:".concat(e.classificationId,":directory"):e.targetType===s.ku.ClassificationVideos?"classification:".concat(e.classificationId,":videos"):e.targetType===s.ku.MoviesAndTv?"moviesAndTv:presentation:".concat(e.presentationId):e.targetType===s.ku.Company?"company:".concat(e.companyId,":presentation:").concat(e.presentationId):null},getUnknownDashboardTarget:function(e){var i=e.presentationId,t=e.companyId,n=e.targetType,a=e.classificationId;return n===s.ku.Discover?l.getDashboardTarget({targetType:s.ku.Discover,presentationId:i}):n===s.ku.MoviesAndTv?l.getDashboardTarget({targetType:s.ku.MoviesAndTv,presentationId:i}):n===s.ku.Company?l.getDashboardTarget({targetType:s.ku.Company,presentationId:i,companyId:t}):n===s.ku.Classification?l.getDashboardTarget({targetType:s.ku.Classification,classificationId:a}):n===s.ku.ClassificationDirectory?l.getDashboardTarget({targetType:s.ku.ClassificationDirectory,classificationId:a}):n===s.ku.ClassificationVideos?l.getDashboardTarget({targetType:s.ku.ClassificationVideos,classificationId:a}):void 0},getDashboardTargetInfo:function(e){var i,t=l.getDashboardTargetType(e),n=null===(i=null==e?void 0:e.target)||void 0===i?void 0:i.split(":");return t===s.ku.Discover?{targetType:s.ku.Discover,presentationId:n[2]}:t===s.ku.Classification?{targetType:s.ku.Classification,classificationId:n[1]}:t===s.ku.ClassificationDirectory?{targetType:s.ku.ClassificationDirectory,classificationId:n[1]}:t===s.ku.ClassificationVideos?{targetType:s.ku.ClassificationVideos,classificationId:n[1]}:t===s.ku.MoviesAndTv?{targetType:s.ku.MoviesAndTv,presentationId:n[2]}:t===s.ku.Company?{targetType:s.ku.Company,companyId:n[1],presentationId:n[3]}:null},getDashboardTargetType:function(e){return(null==e?void 0:e.target)?e.target.startsWith("discover")?s.ku.Discover:e.target.startsWith("classification")?e.target.endsWith("directory")?s.ku.ClassificationDirectory:e.target.endsWith("videos")?s.ku.ClassificationVideos:s.ku.Classification:e.target.startsWith("moviesAndTv")?s.ku.MoviesAndTv:e.target.startsWith("company")?s.ku.Company:null:null},isType:function(e,i){return l.getDashboardTargetType(e)===i},isCuratedDashboard:function(e){var i=e,t=l.getDashboardTargetType(i);return t===s.ku.Discover||t===s.ku.Classification||t===s.ku.ClassificationDirectory||t===s.ku.ClassificationVideos||t===s.ku.MoviesAndTv||t===s.ku.Company},getLatestReleasedTimeRange:function(){var e=new Date;return{from:a.O.format(a.O.endOf(a.O.subtract(e,2,"month"),"day"),"YYYY-MM-DD"),to:a.O.format(a.O.endOf(e,"day"),"YYYY-MM-DD")}},getWidgetParams:function(e,i,t,n){var o={timeOffset:a.O.getTimezoneOffset()};return n&&(o.audienceId=n),Object.assign(Object.assign({},o),r.u[e].getCustomParams(i,t))},isSystemGeneratedDashboard:function(e){var i=new Set([o.z.ClassificationFeaturedVideo,o.z.ClassificationPinnedVideos,o.z.ClassificationPlaylists,o.z.ClassificationSeries]);return null==e?void 0:e.some((function(e){return i.has(e.widgetId)}))},isClassificationDashboard:function(e){return[s.ku.Classification,s.ku.ClassificationDirectory,s.ku.ClassificationVideos].includes(null==e?void 0:e.targetType)}}},49542:(e,i,t)=>{t.d(i,{d:()=>m});var n,a=t(32735),r=t(65858);!function(e){e[e.Draft=0]="Draft",e[e.Published=1]="Published",e[e.Archived=2]="Archived"}(n||(n={}));var o,s=t(78479),l=t(42308),d=t(26154),c=t(31015);function u(e,i){(null==i||i>e.length)&&(i=e.length);for(var t=0,n=Array(i);t<i;t++)n[t]=e[t];return n}!function(e){e.Draft="Draft",e.Published="Published",e.Archived="Archived"}(o||(o={}));var m={getSliderAnalyticsOptions:function(){return{actionType:r.Vw.Click,location:r.LZ.SlidingList,entity:r.py.Widget,descriptor:r._S.Slide}},getSliderItemAnalyticsOptions:function(){return{location:r.LZ.SlidingListItem}},getSliderHeadingAnalyticsOptions:function(){return{actionType:r.Vw.Click,location:r.LZ.SlidingList,entity:r.py.Widget,descriptor:r._S.Title}},useGetContent:function(e,i,t){return a.useMemo((function(){var n;if(!i)return{content:null,unfilteredContent:null};if(!Array.isArray(i))return{content:i,unfilteredContent:i};var a,r=null!==(n=null==t?void 0:t.reduce((function(e,i){return e[i.id]=i,e}),{}))&&void 0!==n?n:{},o=function(e){if(Array.isArray(e))return u(e)}(a=i)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(a)||function(e,i){if(e){if("string"==typeof e)return u(e,i);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?u(e,i):void 0}}(a)||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.")}(),s=o.sort((function(e,i){var t,n,a,s,l=null!==(n=null===(t=r[e.id])||void 0===t?void 0:t.index)&&void 0!==n?n:o.findIndex((function(i){return i.id===e.id})),d=null!==(s=null===(a=r[i.id])||void 0===a?void 0:a.index)&&void 0!==s?s:o.findIndex((function(e){return e.id===i.id}));return l<d?-1:l>d?1:0})),l=c.u[e].minContent||0;return{content:s.length<l?[]:s.filter((function(e){var i;return!(null===(i=r[e.id])||void 0===i?void 0:i.hidden)})),unfilteredContent:s}}),[i,t])},getCustomAppLink:function(e){var i,t,n,a,r,o;return(null===(i=e.metadata)||void 0===i?void 0:i.appLink)===d.OL.LatestReleases?null===(n=null===(t=e.appLinks)||void 0===t?void 0:t.latestReleases)||void 0===n?void 0:n.call(t):(null===(a=e.metadata)||void 0===a?void 0:a.appLink)===d.OL.ExploreAllTopics?null===(o=null===(r=e.appLinks)||void 0===r?void 0:r.allTopics)||void 0===o?void 0:o.call(r,e.presentation.id):null},getWidgetStatus:function(e){var i=e.status;if("string"==typeof i)switch(i){case o.Archived:i=n.Archived;break;case o.Published:i=n.Published;break;case o.Draft:i=n.Draft}return i},formatResponseData:function(e,i){var t=e.content;if(!t)return e;if("author"in t)return e.content=[t],e;switch("data"in t?e.content=t.data:Array.isArray(t)||(e.content=[t]),e.widgetId){case l.z.ClassificationSeries:e.content=e.content.filter((function(e){var i;return!!(null===(i=e.tallPoster)||void 0===i?void 0:i.id)}));break;case l.z.ClassificationPlaylists:e.content=e.content.filter((function(e){var i;return!!(null===(i=e.cover)||void 0===i?void 0:i.id)}));break;case l.z.ContinueWatching:e.content=e.content.map((function(e){return e.object}));default:break;case l.z.Presentations:e.content=e.content.filter((function(e){var t;return e.id.toString()!==(null===(t=null==i?void 0:i.id)||void 0===t?void 0:t.toString())}))}return e},isWidgetInTableOfContents:function(e){return!!(null==e?void 0:e.showInTableOfContents)},hasNoContent:function(e){return e===l.z.Blurb},canDisplayOnScreenSize:function(e,i,t){return i!==l.z.Blurb||t!==s.f.HeroBannerSmall||!e.xs&&!e.sm},isCompanyWidget:function(e){switch(e){case l.z.CompanyLatestReleasedVideo:case l.z.CompanyVideos:case l.z.UpcomingLivestreams:return!0;default:return!1}}}}}]);
|
|
1
|
+
"use strict";(self.webpackChunk_clickview_streamable_learning=self.webpackChunk_clickview_streamable_learning||[]).push([[487],{43306:(e,i,t)=>{t.d(i,{H:()=>f});var n=t(23481),a=t(57900),r=t(65858),o=JSON.parse('{"9":{"JpZ05O1":{"name":"English","videoIds":["12293130","30361411","56866418","58438459","47329278","33204878"]},"2jDy2MG":{"name":"Health and Physical Education","videoIds":["7707302","3714120","3714278","3714173","3714263","57736366"]},"nK2le8E":{"name":"Personal Development and Health","videoIds":["8789599","60153074","3713674","15492556","3716135","53092493"]},"yKGO31z":{"name":"Business and Economics","videoIds":["47366972","3715870","18845095","36235981","53428226","51407674"]},"m0LrOj4":{"name":"Geography","videoIds":["67277770","3716182","5803343","21143528","3716292","3922246"]},"WAJk5KZ":{"name":"Earth and Environment","videoIds":["59077564","4006484","21148006","3716170","21143528","3716621"]},"v47nvEK":{"name":"History","videoIds":["3926454","3716774","3713871","3716594","3716183","3713847"]},"j03MPwr":{"name":"Legal Studies","videoIds":["3102514","1980904","1969843","3716210","3714860","2787675"]},"bbJR9Zn":{"name":"Languages","videoIds":["5449905","42463035","6820509","6027576","47076421","5455635"]},"8L21E3O":{"name":"Mathematics","videoIds":["3715870","3715019","51005229","3714949","3716177","3715365"]},"2jDy2M7":{"name":"Religion and Philosophy","videoIds":["3716229","3716171","41056701","16574869","3716175","50917953"]},"qdo988Y":{"name":"Biological Sciences","videoIds":["3714819","3716265","4683666","3715984","38041517","3779793"]},"0OPpqqo":{"name":"Chemical Sciences","videoIds":["52947827","52948049","3715160","4427422","57870424","47323862"]},"dlMrOdE":{"name":"Physical Sciences","videoIds":["11746875","3716307","39316775","6746382","6812332","6344597"]},"3koR9yA":{"name":"Psychology","videoIds":["3714373","3714891","16132648","6599207","3717591","3717555"]},"0OZyLGy":{"name":"Technologies","videoIds":["3714027","6863817","3716153","34149622","22733300","10345707"]},"0OZyLYy":{"name":"The Arts","videoIds":["3713730","3716727","3937998","32102569","3716167","32998073"]}},"12":{"v45P37g":{"name":"Expressive Arts","videoIds":["8924670","49585075","38370221","47484152","54095899","32102465"]},"GxyLnJn":{"name":"Languages","videoIds":["7486323","36991396","5449905","40919815","48278510","50466413"]},"7PWYrDW":{"name":"Literacy and English","videoIds":["41906926","49581979","61250","52429859","32970218","41938064"]},"eKpbY50":{"name":"Numeracy and Mathematics","videoIds":["3711988","42637723","6682722","58026826","13078019","4991116"]},"4GR8pEL":{"name":"Physical Education","videoIds":["38132665","39294835","48118056","57372274","53108623","47431467"]},"k3MlbL9":{"name":"PSHE","videoIds":["7593354","4169937","9900606","37428010","50180637","37857897"]},"wLDW2LL":{"name":"Religious and Philosophical Education","videoIds":["8739794","8733823","8734696","39428437","49159932","49159889"]},"nKGonKL":{"name":"Sciences","videoIds":["3711985","36554684","4108673","3712066","7310225","48022765"]},"eKpbEMy":{"name":"Social Studies","videoIds":["38091407","52436848","8139170","8733988","52601783","51668932"]},"MgqLxwk":{"name":"Technologies","videoIds":["47529961","4108924","3711985","51668853","49834298","37137391"]}},"13":{"GxAzY0z":{"name":"Arts","videoIds":["6412547","53550381","40919555","50977326","53108637","49858623"]},"Jpy1Edb":{"name":"Computer Science and Technology","videoIds":["39382930","40907539","48236013","48233767","48236100","3712674"]},"NqgPKaG":{"name":"English Language Arts","videoIds":["38945464","39388174","52673932","38945448","60062676","48235940"]},"bbJ74ed":{"name":"Health","videoIds":["39430062","40919434","39362080","39383081","58025600","40919494"]},"Dda6pW3":{"name":"Math","videoIds":["49532295","38943192","49532442","39382723","39388252","38944700"]},"j0a4Arj":{"name":"Physical Education","videoIds":["40919406","48235838","50652589","40919430","48236078","50652575"]},"LqG71RA":{"name":"Science","videoIds":["45248852","48235521","52318531","48235464","39383083","51731134"]},"8LnP7p8":{"name":"Social and Emotional Learning","videoIds":["39451488","48235859","39337317","40964136","42314985","39382748"]},"v4qEZDG":{"name":"Social Studies","videoIds":["51666992","39382727","41120130","56997479","57311898","39342430"]},"4Gl1DaK":{"name":"World Languages","videoIds":["40919719","40919802","40919815","40919186","40915325","49858537"]}},"14":{"2jrkdLY":{"name":"Arts","videoIds":["38916908","6412547","40919390","40919482","38817643","38817665"]},"g42EN1v":{"name":"Computer Science and Technology","videoIds":["40919434","38917550","50878197","40907190","40907208","39382881"]},"5ROzG7l":{"name":"English Language Arts","videoIds":["39387902","40912179","60062676","40916580","40919438","48234159"]},"ze5J1AE":{"name":"Health","videoIds":["39362404","39430062","51152651","40919426","40919486","48234499"]},"v4qnrzg":{"name":"Math","videoIds":["39361909","51005193","51730147","48715611","39382600","49532478"]},"1dRa6vd":{"name":"Physical Education","videoIds":["40918377","51617459","49533964","42463003","51182678","50652593"]},"KAE9Kqx":{"name":"Science","videoIds":["50877364","39438561","40907311","51735853","40908561","50878717"]},"xyLWk6w":{"name":"Social and Emotional Learning","videoIds":["40964136","53746175","48172750","48171641","50417923","50418083"]},"8Ln1GA8":{"name":"Social Studies","videoIds":["51666258","38945379","50900368","49690616","45259058","51666231"]},"DdaRGrq":{"name":"World Languages","videoIds":["40915666","40915325","42486037","40915698","40915345","48040254"]}},"15":{"yKZ43dw":{"name":"Arts","videoIds":["38817665","39999270","38808751","40911271","40911232","51581800"]},"p3y82WO":{"name":"Career and Technical Education","videoIds":["52328915","52328920","47488746","47488362","52436904","40917538"]},"KAERnwR":{"name":"Computer Science and Technology","videoIds":["40915847","40916210","51262040","39912587","51250029","58318543"]},"LqGrPwA":{"name":"English Language Arts","videoIds":["40914651","40918236","77544344","51581321","39319556","40912204"]},"8LnamD8":{"name":"Health","videoIds":["51154979","48235793","46984526","39894691","59279809","50996991"]},"Jpyo7W2":{"name":"Math","videoIds":["47595827","51730147","49532658","48715416","48234988","48715584"]},"5RO2ml5":{"name":"Physical Education","videoIds":["49533951","40918509","40918377","51655191","50652593","40908770"]},"obMre0k":{"name":"Science","videoIds":["40915159","51293454","52938790","51291516","39414759","40916620"]},"ze5d6l9":{"name":"Social and Emotional Learning","videoIds":["48171596","48171968","48171765","50418083","50418241","48235802"]},"qd17eke":{"name":"Social Studies","videoIds":["50763143","49690616","53578611","53313159","45286772","39414759"]},"KAERnDz":{"name":"World Languages","videoIds":["42486037","48234348","40919186","40919098","40918945","40915898"]}},"16":{"KAEY5GK":{"name":"Art and Design","videoIds":["8924670","49585075","38370221","47484152","54095899","32102465"]},"6wa2YwO":{"name":"Citizenship","videoIds":["57355388","52601783","48522943","22372630","53108585","41992024"]},"R0LK746":{"name":"Computing","videoIds":["26617482","38132678","26619390","36895952","41565288","36895909"]},"9DPkNz6":{"name":"Design and Technology","videoIds":["47529961","4108924","3711985","51668853","49834298","37137391"]},"2jDnan9":{"name":"Drama","videoIds":["51240522","230268","37018426","41939112","51582282","46916103"]},"E06dg2Z":{"name":"English","videoIds":["41906926","49581979","61250","52429859","32970218","41938064"]},"8LnO2Rd":{"name":"Geography","videoIds":["67225999","3713237","4402476","50800706","51666994","48105073"]},"bbJ9Ayb":{"name":"History","videoIds":["52436848","8139170","8733988","48666851","51668932","51731292"]},"Dda4KYL":{"name":"Languages","videoIds":["7486323","36991396","5449905","40919815","48278510","50466413"]},"Ax2Jyoa":{"name":"Mathematics","videoIds":["3711988","42637723","6682722","58026826","13078019","4991116"]},"bbJ9Ap0":{"name":"Music","videoIds":["50466237","6412547","49535315","49808227","30324910","64333"]},"NqgMRWy":{"name":"Physical Education","videoIds":["38132665","39294835","48118056","57372274","53108623","47431467"]},"Yvm5eyp":{"name":"PSHE","videoIds":["7593354","4169937","9900606","37428010","50180637","37857897"]},"8LnO2Je":{"name":"Religious Education","videoIds":["8739794","8733823","8734696","39428437","49159932","49159889"]},"3kmoJ72":{"name":"Science","videoIds":["3711985","36554684","4108673","3712066","7310225","48022765"]}},"18":{"yKP9gOD":{"name":"Civics and Citizenship","videoIds":["7735265","7735497","50679052","51452628","13106949","13107690"]},"7P6JOYb":{"name":"Economics and Business Studies","videoIds":["53428624","37455700","57355319","53428628","43961148","57966130"]},"j0jRJ1Z":{"name":"English","videoIds":["8416974","8417845","3712691","32127566","6673418","52675027"]},"nKDmYEl":{"name":"Geography","videoIds":["58600977","6980722","34591272","4402447","34597058","51437590"]},"Pk7e2GL":{"name":"Health and Physical Education","videoIds":["7593365","4170133","9900524","36875667","4669690","7593792"]},"WAe601Z":{"name":"History","videoIds":["3713735","6430651","3716829","43772092","51391809","56980377"]},"v4893Yy":{"name":"Languages","videoIds":["5449905","32345978","39623583","6820509","39255442","39254760"]},"nKDmYkl":{"name":"Mathematics","videoIds":["3713828","10749459","32102562","6689791","3713607","48278618"]},"0OeG09l":{"name":"Religion","videoIds":["8740724","8733239","8739706","8734693","8733792","33320133"]},"2jd70bp":{"name":"Science","videoIds":["3712073","36554689","3713561","3713739","7310275","3711972"]},"KAmPJqP":{"name":"Technologies","videoIds":["26619390","4131606","38132678","50720784","57230386","51181861"]},"MgOve7k":{"name":"The Arts","videoIds":["50466237","6412547","8100020","3716220","49808227","32787298"]}},"24":{"qdarDYp":{"name":"Business and Economics","videoIds":["51623323","47366972","37709668","37709732","3716149","8973838"]},"3ko2ey4":{"name":"Citizenship","videoIds":["36220305","47575902","3716210","36103171","57771705","5270400"]},"eKnGDa0":{"name":"English","videoIds":["36191688","33204878","36395402","5758602","35997069","23851791"]},"Yv5dzw5":{"name":"Expressive Arts","videoIds":["3716191","3716247","48134757","32998073","3716167","35601583"]},"ra6m0d1":{"name":"Geography","videoIds":["74135484","9375166","5711759","16206702","3922246","48476601"]},"E0dZqyR":{"name":"History","videoIds":["3926454","9978142","4684604","8372779","3716183","4648523"]},"9DkAaKy":{"name":"Languages","videoIds":["5449905","42463035","6820509","42209168","47076421","5455635"]},"8LOYpl0":{"name":"Numeracy and Mathematics","videoIds":["3716176","3715070","51730710","3715047","4553884","48091307"]},"m0d5D7r":{"name":"Physical Education","videoIds":["7609298","3714120","3714279","49160029","3714263","51667687"]},"g4WgD5l":{"name":"PSE","videoIds":["59279784","3716135","53259069","53259054","983611","16132648"]},"WALeYqE":{"name":"Psychology","videoIds":["57771705","3714373","39438648","3714426","3714891","3717591"]},"eKnGDdP":{"name":"Religious, Moral and Philosophical Education","videoIds":["3716229","3716171","39379918","33305783","3716175","3716237"]},"eKnGDdo":{"name":"Sciences","videoIds":["11746875","3779793","4558988","48139884","3713268","3716170"]},"nK2D9Oj":{"name":"Sociology","videoIds":["3716077","3714531","47207659","58441038","63984885","38146645"]},"2jDd3kx":{"name":"Technologies","videoIds":["50917033","58307508","3716153","74135484","48083353","35004434"]}},"47":{"LqKNnNw":{"name":"Business and Economics","videoIds":["51623323","47366972","37709668","37709732","3716149","8973838"]},"7PgZvEA":{"name":"Careers","videoIds":["9315247","9312222","47104083","3715120","3714944","47159767"]},"la7zdgw":{"name":"English","videoIds":["53466594","77444242","17989642","30340068","24419904","33204878"]},"wLKkMwD":{"name":"Expressive Arts","videoIds":["3716191","3716247","48134757","32998073","3716167","35601583"]},"wLKkMEp":{"name":"Geography","videoIds":["74135484","22687577","5711759","16206702","3922246","19105359"]},"OzZ6vg4":{"name":"History","videoIds":["3926454","9978142","4684604","8372779","3716183","4648523"]},"YvJby7P":{"name":"Mathematics","videoIds":["3716176","3715070","51730710","3715047","4553884","34497285"]},"v41jLmK":{"name":"Modern Foreign Languages","videoIds":["5449905","42463035","6820509","42209168","47076421","5455635"]},"aPG3mRe":{"name":"Physical Education","videoIds":["7609298","3714120","3714279","49160029","3714263","51667687"]},"Gxp3jze":{"name":"PSHE","videoIds":["59279784","3716135","53259069","53259054","983611","16132648"]},"qd2K0qY":{"name":"Religion","videoIds":["3716229","3716171","39379918","33305783","3716175","3716237"]},"ob31yZ9":{"name":"Science","videoIds":["9375775","11746875","3779793","4558988","48139884","3713268"]},"nKvyqe1":{"name":"Technology","videoIds":["50917033","58307508","3716153","74135484","48083353","35004434"]}}}'),s=t(46477),l=t(19808),d=t(65728),c={CreatePlaylist:function(e){return!(e.hasPlaylist||e.preferredPresentation&&!o[e.preferredPresentation.id])}},u=n.T.encloseNamespace("onboarding.constants"),m="show-subjects-summary",g="show-job-title-to-trial-user",f={"welcome-video":{id:"welcome-video",predicate:function(e){return!!s.m.shouldRedirectToOnboarding(e.masterUser,e.hasPermissions)&&e.instanceRegion===l.b.US},setting:d.E.HasCompletedOnboardingStepWelcomeVideo,analyticsLocation:r.LZ.OnboardingWelcomeVideoScreen,includeInProgressBar:function(){return!1},getWidgetHeading:function(){return u("selectRoleHeading")},getWidgetDescription:function(){return u("selectRoleMessage")}},"select-role":{id:"select-role",predicate:function(e){return!s.m.hasNonBdmTrial(e.hasPermissions)||(e.jobTitle?"boolean"==typeof a.SG.get(g)?a.SG.get(g):(a.SG.set(g,!1),!1):("boolean"!=typeof a.SG.get(g)&&a.SG.set(g,!0),!0))},setting:d.E.HasCompletedOnboardingStepSelectRole,analyticsLocation:r.LZ.OnboardingSelectRoleScreen,includeInProgressBar:function(){return!0},getWidgetHeading:function(){return u("selectRoleHeading")},getWidgetDescription:function(){return u("selectRoleMessage")}},"usage-intention":{id:"usage-intention",predicate:function(){return!0},setting:d.E.HasCompletedOnboardingStepUsageIntention,analyticsLocation:r.LZ.OnboardingUsageIntentionScreen,includeInProgressBar:function(){return!0},getWidgetHeading:function(){return u("usageIntentionHeading")},getWidgetDescription:function(){return u("usageIntentionMessage")}},"subjects-summary":{id:"subjects-summary",predicate:function(e){return"boolean"==typeof a.SG.cacheGet(m)||a.SG.cacheSet(m,!s.m.shouldRedirectToOnboarding(e.masterUser,e.hasPermissions)&&!!(null===(i=e.preferredSubjects)||void 0===i?void 0:i.length),604800),a.SG.cacheGet(m);var i},setting:d.E.HasCompletedOnboardingStepSubjectsSummary,analyticsLocation:r.LZ.OnboardingSubjectsSummaryScreen,includeInProgressBar:function(){return!0},getWidgetHeading:function(){return u("subjectsHeading")},getWidgetDescription:function(){return u("subjectsMessage")},branches:["school-level","subjects","select-curriculum"]},"school-level":{id:"school-level",predicate:function(e){var i;return!(f["subjects-summary"].predicate(e)||(null===(i=e.presentations)||void 0===i?void 0:i.length)<2)},setting:d.E.HasCompletedOnboardingStepSchoolLevel,analyticsLocation:r.LZ.OnboardingSchoolLevelScreen,includeInProgressBar:function(e){return!f["subjects-summary"].predicate(e)},getWidgetHeading:function(e){return u(e?"schoolLevelHeadingKdm":"schoolLevelHeading")},getWidgetDescription:function(e){return u(e?"schoolLevelMessageKdm":"schoolLevelMessage")}},"select-curriculum":{id:"select-curriculum",predicate:function(e){var i;return!(f["subjects-summary"].predicate(e)||(null===(i=e.curriculums)||void 0===i?void 0:i.length)<2)},setting:d.E.HasCompletedOnboardingStepSelectCurriculum,analyticsLocation:r.LZ.OnboardingSelectCurriculumScreen,includeInProgressBar:function(e){return!f["subjects-summary"].predicate(e)},getWidgetHeading:function(){return u("selectCurriculumHeading")},getWidgetDescription:function(){return u("selectCurriculumMessage")}},subjects:{id:"subjects",predicate:function(e){return!(f["subjects-summary"].predicate(e)||e.preferredPresentation&&!o[e.preferredPresentation.id])},setting:d.E.HasCompletedOnboardingStepSubjects,analyticsLocation:r.LZ.OnboardingSubjectsScreen,includeInProgressBar:function(e){return!f["subjects-summary"].predicate(e)},getWidgetHeading:function(e){return u(e?"subjectsHeadingKdm":"subjectsHeading")},getWidgetDescription:function(){return u("subjectsMessage")}},"select-videos":{id:"select-videos",predicate:c.CreatePlaylist,setting:d.E.HasCompletedOnboardingStepSelectVideos,analyticsLocation:r.LZ.OnboardingSelectVideosScreen,includeInProgressBar:function(){return!0},getWidgetHeading:function(){return u("selectVideosHeading")},getWidgetDescription:function(e){return u(e?"selectVideosMessageKdm":"selectVideosMessage")}},"create-playlist":{id:"create-playlist",predicate:c.CreatePlaylist,setting:d.E.HasCompletedOnboardingStepCreatePlaylist,analyticsLocation:r.LZ.OnboardingCreatePlaylistScreen,includeInProgressBar:function(){return!0},getWidgetHeading:function(){return u("createPlaylistHeading")},getWidgetDescription:function(){return u("createPlaylistMessage")}}}},46477:(e,i,t)=>{t.d(i,{m:()=>m});var n=t(57900),a=t(75896),r=t(43306),o=t(16714),s=t(64818);function l(e,i){(null==i||i>e.length)&&(i=e.length);for(var t=0,n=Array(i);t<i;t++)n[t]=e[t];return n}var d="onboarding:persona",c="onboarding:usage:intention",u="onboarding:had:job:title",m={getOnboardingPathway:function(e){var i=e.jobTitle,t=e.userSettings,n=e.presentations,a=e.curriculums,o=e.preferredPresentation,l=e.preferredSubjects,d=e.hasPlaylist,c=e.appLink,u=e.appLinks,g=e.masterUser,f=e.currentUser,v=e.hasPermissions,p=m.getPersona();!p&&i&&m.updatePersona(i),p&&p!==s.l.getPersonaFromJobTitle(i)&&m.updatePersona(i);var y={jobTitle:i,hasPlaylist:d,masterUser:g,presentations:n||[],curriculums:a||[],preferredPresentation:o,preferredSubjects:l,instanceRegion:null==f?void 0:f.instanceRegion,hasPermissions:v},b=m.getCurrentScreen(c,u),h=Object.values(r.H),C={},S=null,I=null,P=0,L=0,_=!0;return h.forEach((function(e){var i;if(e.predicate(y)){I||(I=e.id);var n=function(e,i){var t;return null===(t=null==e?void 0:e[i])||void 0===t?void 0:t.value}(t,e.setting);n||(_=!1),b||n||(b=e.id),P++,C[e.id]={isComplete:n,next:null,previous:S,number:P,includeInProgressBar:!1},e.includeInProgressBar(y)&&(L++,C[e.id].progressBarNumber=L,C[e.id].includeInProgressBar=!0),(null===(i=e.branches)||void 0===i?void 0:i.length)&&e.branches.forEach((function(i){C[i]={next:e.id,previous:e.id,includeInProgressBar:!1}})),S&&(C[S].next=e.id),S=e.id}})),b||_||(b=I),{screens:C,currentScreen:b,totalScreens:P,totalScreensInProgressBar:L,hasCompletedAllSteps:_}},getNextAppLink:function(e,i){var t=e.screens[e.currentScreen],n=null==t?void 0:t.next;return n?i[n]:null},getPreviousAppLink:function(e,i){var t=e.screens[e.currentScreen],n=null==t?void 0:t.previous;return n?i[n]:null},getCurrentScreen:function(e,i){var t=Object.entries(i).find((function(i){return(t=i,n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,i){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,a,r,o,s=[],l=!0,d=!1;try{if(r=(t=t.call(e)).next,0===i){if(Object(t)!==t)return;l=!1}else for(;!(l=(n=r.call(t)).done)&&(s.push(n.value),s.length!==i);l=!0);}catch(e){d=!0,a=e}finally{try{if(!l&&null!=t.return&&(o=t.return(),Object(o)!==o))return}finally{if(d)throw a}}return s}}(t,n)||function(e,i){if(e){if("string"==typeof e)return l(e,i);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?l(e,i):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.")}())[1].action===e.action;var t,n}));return t?a.m.first(t):null},getPersona:function(){return n.SG.get(d)},updatePersona:function(e){var i=s.l.getPersonaFromJobTitle(e);n.SG.set(d,i||"teacher")},getUsageIntention:function(){return n.SG.get(c)},updateUsageIntention:function(e){n.SG.set(c,e)},removeUsageIntention:function(){n.SG.remove(c)},getProgress:function(e){var i,t,n,a=null===(i=e.screens[e.currentScreen])||void 0===i?void 0:i.number,r=null===(t=e.screens[e.currentScreen])||void 0===t?void 0:t.progressBarNumber,o=e.totalScreens,s=e.totalScreensInProgressBar,l=r/s*100,d=(a-1)/o*100;return{showProgressBar:null===(n=e.screens[e.currentScreen])||void 0===n?void 0:n.includeInProgressBar,currentStepNumber:a,currentStepProgressBarNumber:r,totalScreens:o,totalScreensInProgressBar:s,progressBarPercentage:l,overallPercentage:d}},hasNonBdmTrial:function(e){return e(o.C.ViewTrialUpgrade)},getOnboardingScreenStates:function(e){var i=[],t=[];return Object.keys(e.screens).forEach((function(n){e.screens[n].isComplete?i.push(n):t.push(n)})),{completedScreens:i,incompleteScreens:t}},shouldRedirectToOnboarding:function(e,i){var t,a;return(null==e?void 0:e.dateCreated)>="2024-03-26"||!!m.hasNonBdmTrial(i)&&("boolean"!=typeof n.SG.get(u)&&n.SG.set(u,!!(null===(a=null===(t=null==e?void 0:e.userProfile)||void 0===t?void 0:t.metadata)||void 0===a?void 0:a.jobTitle)),!n.SG.get(u))}}},31015:(e,i,t)=>{t.d(i,{u:()=>f});var n,a=t(110),r=t(43306),o=t(65728),s=t(78479),l=t(42308),d=t(26154),c=t(21366);function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function m(e,i,t){return(i=function(e){var i=function(e,i){if("object"!=u(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=u(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==u(i)?i:i+""}(i))in e?Object.defineProperty(e,i,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[i]=t,e}function g(e,i){(null==i||i>e.length)&&(i=e.length);for(var t=0,n=Array(i);t<i;t++)n[t]=e[t];return n}var f=(m(m(m(m(m(m(m(m(m(m(n={},l.z.CuratedMedia,{getCustomParams:function(){return{}}}),l.z.PlaylistMedia,{getCustomParams:function(){return{}}}),l.z.ClassificationMedia,{getCustomParams:function(){return{}}}),l.z.LatestReleasedVideos,{getCustomParams:function(){return c.S.getLatestReleasedTimeRange()}}),l.z.ContinueWatching,{getCustomParams:function(){return{}}}),l.z.CompanyLatestReleasedVideo,{getCustomParams:function(){return{}}}),l.z.CompanyVideos,{getCustomParams:function(){return{}}}),l.z.ClassificationLatestReleasedVideo,{getCustomParams:function(){return{}}}),l.z.ClassificationLatestReleasedVideosV2,{getCustomParams:function(){return{limit:12}},minContent:4}),l.z.SeasonalClassificationMedia,{getCustomParams:function(){return{limit:12}},minContent:4}),m(m(m(m(m(m(m(m(m(m(n,l.z.CompanyClassificationVideos,{getCustomParams:function(){return{}},minContent:4}),l.z.TrendingClassificationsMedia,{getCustomParams:function(){return{limit:12}},minContent:4}),l.z.CuratedClassifications,{getCustomParams:function(){return{}}}),l.z.TrendingClassifications,{getCustomParams:function(){return{limit:6}},minContent:3}),l.z.Classifications,{getCustomParams:function(e,i){if(i===d.ku.Discover){if(e===s.f.EditableCoverFixedPillListSmall)return{canBePreferred:!0,isFollowing:!0};if([s.f.PosterSlidingListSmall,s.f.CoverFixedPillListXSmall].includes(e))return{canBePreferred:!0}}return{}}}),l.z.ClassificationLatestReleasedVideos,{getCustomParams:function(){return c.S.getLatestReleasedTimeRange()}}),l.z.SpecialEventClassifications,{getCustomParams:function(){return{from:a.O.format(new Date,"YYYY-MM-DD")}}}),l.z.LatestReleasedClassifications,{getCustomParams:function(){return{limit:6}},minContent:3}),l.z.CuratedSeries,{getCustomParams:function(){return{}}}),l.z.CuratedPlaylists,{getCustomParams:function(){return{}}}),m(m(m(m(m(m(m(m(m(m(n,l.z.Blurb,{getCustomParams:function(){return{}}}),l.z.DynamicBlurb,{getCustomParams:function(e){return e===s.f.OnboardingSteps?{customerSetting:[o.E.HasNewOnboarding],userSettings:[].concat((i=Object.values(r.H).map((function(e){return e.setting})),function(e){if(Array.isArray(e))return g(e)}(i)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(i)||function(e,i){if(e){if("string"==typeof e)return g(e,i);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?g(e,i):void 0}}(i)||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.")}()),[o.E.HasCompletedOnboardingV2,o.E.HasExitedOnboarding])}:{};var i}}),l.z.AuthorReviewer,{getCustomParams:function(){return{}}}),l.z.Faq,{getCustomParams:function(){return{}}}),l.z.CuratedCompanies,{getCustomParams:function(){return{}}}),l.z.Ratings,{getCustomParams:function(){return{}}}),l.z.Presentations,{getCustomParams:function(){return{}}}),l.z.UpcomingLivestreams,{getCustomParams:function(){return{from:a.O.format(new Date,"YYYY-MM-DD")}}}),l.z.CuratedMultimedia,{getCustomParams:function(){return{}}}),l.z.ClassificationPlaylists,{getCustomParams:function(){return{}}}),m(m(m(m(m(n,l.z.ClassificationSeries,{getCustomParams:function(){return{}}}),l.z.ClassificationFeaturedVideo,{getCustomParams:function(){return{}}}),l.z.ClassificationPinnedVideos,{getCustomParams:function(){return{}}}),l.z.ClassificationDashboardExternalMedia,{getCustomParams:function(){return{}}}),l.z.ClassificationDashboardMedia,{getCustomParams:function(){return{}}}))},78417:(e,i,t)=>{var n;t.d(i,{r:()=>n}),function(e){e[e.FilterOut=0]="FilterOut",e[e.StripMetadata=1]="StripMetadata"}(n||(n={}))},78479:(e,i,t)=>{var n;t.d(i,{f:()=>n}),function(e){e.ThumbnailHeroMedia="thumbnail_hero_media",e.ThumbnailFeaturedMedia="thumbnail_featured_media",e.ThumbnailSlidingListSmall="thumbnail_sliding_list_small",e.ThumbnailSlidingListSmallV2="thumbnail_sliding_list_small_v2",e.ThumbnailSlidingListLarge="thumbnail_sliding_list_large",e.ThumbnailFixedListMediaLarge="thumbnail_fixed_list_media_large",e.ThumbnailVerticalList="thumbnail_vertical_list",e.PopoutThumbnailSlidingListLarge="popout_thumbnail_sliding_list_large",e.PopoutThumbnailSlidingListSmall="popout_thumbnail_sliding_list_small",e.FeaturedThumbnailSlidingList="featured_thumbnail_sliding_list",e.ThumbnailFixedListXLarge="thumbnail_fixed_list_xlarge",e.CoverSlidingPillListSmall="cover_sliding_pill_list_small",e.CoverFixedPillListLarge="cover_fixed_pill_list_large",e.StatsCoverFixedPillListLarge="stats_cover_fixed_pill_list_large",e.CoverFixedPillListXSmall="cover_fixed_pill_list_xsmall",e.ThumbnailFixedListLarge="thumbnail_fixed_list_large",e.ThumbnailFixedListSmall="thumbnail_fixed_list_small",e.EditableCoverFixedPillListSmall="editable_cover_fixed_pill_list_small",e.HeroBanner="hero_banner",e.HeroThumbnailSmall="hero_thumbnail_small",e.HeroBlockColourSmall="hero_block_colour_small",e.CoverFixedTileList="cover_fixed_tile_list",e.PosterSlidingListLarge="poster_sliding_list_large",e.PosterSlidingListMedium="poster_sliding_list_medium",e.PosterSlidingListSmall="poster_sliding_list_small",e.HeroBannerSmall="hero_banner_small",e.Heading="heading",e.AuthorReviewer="author_reviewer",e.Question="question",e.QuestionAccordion="question_accordion",e.OnboardingSteps="onboarding_steps",e.CircleLogoSlidingList="circle_logo_sliding_list",e.FilterSlidingPillListSmall="filter_sliding_pill_list_small",e.EventIconSlidingList="event_icon_sliding_list"}(n||(n={}))},42308:(e,i,t)=>{var n;t.d(i,{z:()=>n}),function(e){e.CuratedMedia="curated_media",e.PlaylistMedia="playlist_media",e.ClassificationMedia="classification_media",e.LatestReleasedVideos="latest_released_videos",e.ContinueWatching="continue_watching_videos",e.CompanyLatestReleasedVideo="company_latest_released_video",e.CompanyVideos="company_videos",e.ClassificationLatestReleasedVideo="classification_latest_released_video",e.ClassificationLatestReleasedVideosV2="classification_latest_released_videos_v2",e.CompanyClassificationVideos="company_classification_videos",e.ClassificationDashboardMedia="classification_dashboard_media",e.ClassificationDashboardExternalMedia="classification_dashboard_external_media",e.SeasonalClassificationMedia="seasonal_classification_media",e.TrendingClassificationsMedia="trending_classifications_media",e.CuratedClassifications="curated_classifications",e.Classifications="classifications",e.ClassificationLatestReleasedVideos="classification_latest_released_videos",e.SpecialEventClassifications="special_event_classifications",e.LatestReleasedClassifications="latest_released_classifications",e.TrendingClassifications="trending_classifications",e.CuratedSeries="curated_series",e.CuratedPlaylists="curated_playlists",e.Blurb="blurb",e.DynamicBlurb="dynamic_blurb",e.AuthorReviewer="author_reviewer",e.Faq="faq",e.CuratedCompanies="curated_companies",e.Ratings="ratings",e.Presentations="presentations",e.UpcomingLivestreams="upcoming_livestreams",e.CuratedMultimedia="curated_multimedia",e.ClassificationPlaylists="classification_playlists",e.ClassificationSeries="classification_series",e.ClassificationFeaturedVideo="classification_featured_video",e.ClassificationPinnedVideos="classification_pinned_videos"}(n||(n={}))},65294:(e,i,t)=>{t.d(i,{Y:()=>r});var n=t(34152);function a(e,i){(null==i||i>e.length)&&(i=e.length);for(var t=0,n=Array(i);t<i;t++)n[t]=e[t];return n}function r(){var e,i,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.prevent,o=t.rootMargin,s=t.triggerOnce,l=void 0===s||s,d=(e=(0,n.YD)({triggerOnce:l,rootMargin:o}),i=3,function(e){if(Array.isArray(e))return e}(e)||function(e,i){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,a,r,o,s=[],l=!0,d=!1;try{if(r=(t=t.call(e)).next,0===i){if(Object(t)!==t)return;l=!1}else for(;!(l=(n=r.call(t)).done)&&(s.push(n.value),s.length!==i);l=!0);}catch(e){d=!0,a=e}finally{try{if(!l&&null!=t.return&&(o=t.return(),Object(o)!==o))return}finally{if(d)throw a}}return s}}(e,i)||function(e,i){if(e){if("string"==typeof e)return a(e,i);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?a(e,i):void 0}}(e,i)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),c=d[0],u=d[1],m=d[2];return!0!==r&&void 0!==window.IntersectionObserver||(u=!0,c=null),{ref:c,inView:u,initialized:!!m}}},26154:(e,i,t)=>{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)}var a;t.d(i,{VH:()=>v,R:()=>c,OL:()=>s,NK:()=>l,GL:()=>h.GL,ku:()=>h.ku,Yv:()=>h.Yv,IL:()=>u,Z9:()=>a,l9:()=>m}),function(e){e[e.MultipleChoice=1]="MultipleChoice",e[e.ShortAnswer=2]="ShortAnswer",e[e.TrueOrFalse=3]="TrueOrFalse",e[e.Annotation=4]="Annotation",e[e.Image=5]="Image",e[e.MissingWord=6]="MissingWord",e[e.Illustration=7]="Illustration"}(a||(a={}));var r,o,s,l,d,c,u=(r={},!0,(o=function(e){var i=function(e,i){if("object"!=n(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var a=t.call(e,"string");if("object"!=n(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(i)?i:i+""}(o=a.Illustration))in r?Object.defineProperty(r,o,{value:true,enumerable:!0,configurable:!0,writable:!0}):r[o]=true,r);!function(e){e.LatestReleases="latest-releases",e.ExploreAllTopics="explore-all-topics",e.ClassificationLatestReleases="classification-latest-releases",e.ClassificationDirectory="classification-directory"}(s||(s={})),function(e){e.TopicDirectory="topic-directory",e.TopicNewReleases="topic-new-releases",e.CuratedTopic="curated-topic"}(l||(l={})),function(e){e.Video="video",e.Series="series",e.Playlist="playlist",e.Classification="subject",e.Company="company"}(d||(d={})),function(e){e.Pink="colour:0",e.Orange="colour:1",e.Green="colour:2",e.Blue="colour:3",e.Purple="colour:4",e.Indigo="colour:5"}(c||(c={}));var m,g,f,v,p,y,b,h=t(75902);!function(e){e[e.Row=0]="Row",e[e.LargeRow=1]="LargeRow",e[e.Hero=2]="Hero",e[e.ResourcesTile=3]="ResourcesTile"}(m||(m={})),function(e){e[e.None=1]="None",e[e.All=2]="All",e[e.Learner=3]="Learner",e[e.Teacher=4]="Teacher"}(g||(g={})),function(e){e[e.Holiday=0]="Holiday",e[e.SportingEvent=1]="SportingEvent",e[e.Observance=2]="Observance",e[e.NaturalDisaster=3]="NaturalDisaster",e[e.HistoricalEvent=4]="HistoricalEvent",e[e.BreakingNews=5]="BreakingNews",e[e.Informal=6]="Informal",e[e.ReligiousEvent=7]="ReligiousEvent",e[e.Livestream=8]="Livestream",e[e.Other=255]="Other"}(f||(f={})),function(e){e[e.Classification=0]="Classification",e[e.Livestream=1]="Livestream"}(v||(v={})),function(e){e[e.Regular=0]="Regular",e[e.Daily=1]="Daily",e[e.Weekly=2]="Weekly",e[e.Monthly=3]="Monthly",e[e.Yearly=4]="Yearly"}(p||(p={})),function(e){e[e.Owner=1]="Owner",e[e.Teacher=2]="Teacher",e[e.Student=3]="Student"}(y||(y={})),function(e){e[e.Audience=0]="Audience",e[e.Topic=1]="Topic",e[e.Curriculum=2]="Curriculum"}(b||(b={}))},75902:(e,i,t)=>{var n,a,r,o;t.d(i,{GL:()=>r,Yv:()=>a,ku:()=>o}),function(e){e.Any="Any",e.Level_1="Level_1",e.Level_2="Level_2",e.Level_3="Level_3",e.Level_4="Level_4"}(n||(n={})),function(e){e.Any="Any",e.Staff="Staff",e.Learner="Learner"}(a||(a={})),function(e){e.Draft="Draft",e.Published="Published",e.Archived="Archived"}(r||(r={})),function(e){e.Discover="discover",e.Classification="classification",e.ClassificationDirectory="classification-directory",e.ClassificationVideos="classification-videos",e.MoviesAndTv="movies-and-tv",e.Company="company"}(o||(o={}))},21366:(e,i,t)=>{t.d(i,{S:()=>l});var n=t(75896),a=t(110),r=t(31015),o=(t(76881),t(86613),t(42308)),s=t(26154),l={onSelectCuratedObject:function(e,i){var t=Object.assign(Object.assign({},i.values.data),{objectIds:n.m.addOrRemoveImmutable(i.values.data.objectIds||[],e.id)});i.setFieldValue("data",t),i.setTouched(Object.assign(Object.assign({},i.touched),{data:{objectIds:!0}}))},onRemoveCuratedObject:function(e,i){var t=Object.assign(Object.assign({},i.values.data),{objectIds:i.values.data.objectIds.filter((function(i){return i!==e}))});i.setFieldValue("data",t)},getDashboardTarget:function(e){return e.targetType===s.ku.Discover?"discover:presentation:".concat(e.presentationId):e.targetType===s.ku.Classification?"classification:".concat(e.classificationId):e.targetType===s.ku.ClassificationDirectory?"classification:".concat(e.classificationId,":directory"):e.targetType===s.ku.ClassificationVideos?"classification:".concat(e.classificationId,":videos"):e.targetType===s.ku.MoviesAndTv?"moviesAndTv:presentation:".concat(e.presentationId):e.targetType===s.ku.Company?"company:".concat(e.companyId,":presentation:").concat(e.presentationId):null},getUnknownDashboardTarget:function(e){var i=e.presentationId,t=e.companyId,n=e.targetType,a=e.classificationId;return n===s.ku.Discover?l.getDashboardTarget({targetType:s.ku.Discover,presentationId:i}):n===s.ku.MoviesAndTv?l.getDashboardTarget({targetType:s.ku.MoviesAndTv,presentationId:i}):n===s.ku.Company?l.getDashboardTarget({targetType:s.ku.Company,presentationId:i,companyId:t}):n===s.ku.Classification?l.getDashboardTarget({targetType:s.ku.Classification,classificationId:a}):n===s.ku.ClassificationDirectory?l.getDashboardTarget({targetType:s.ku.ClassificationDirectory,classificationId:a}):n===s.ku.ClassificationVideos?l.getDashboardTarget({targetType:s.ku.ClassificationVideos,classificationId:a}):void 0},getDashboardTargetInfo:function(e){var i,t=l.getDashboardTargetType(e),n=null===(i=null==e?void 0:e.target)||void 0===i?void 0:i.split(":");return t===s.ku.Discover?{targetType:s.ku.Discover,presentationId:n[2]}:t===s.ku.Classification?{targetType:s.ku.Classification,classificationId:n[1]}:t===s.ku.ClassificationDirectory?{targetType:s.ku.ClassificationDirectory,classificationId:n[1]}:t===s.ku.ClassificationVideos?{targetType:s.ku.ClassificationVideos,classificationId:n[1]}:t===s.ku.MoviesAndTv?{targetType:s.ku.MoviesAndTv,presentationId:n[2]}:t===s.ku.Company?{targetType:s.ku.Company,companyId:n[1],presentationId:n[3]}:null},getDashboardTargetType:function(e){return(null==e?void 0:e.target)?e.target.startsWith("discover")?s.ku.Discover:e.target.startsWith("classification")?e.target.endsWith("directory")?s.ku.ClassificationDirectory:e.target.endsWith("videos")?s.ku.ClassificationVideos:s.ku.Classification:e.target.startsWith("moviesAndTv")?s.ku.MoviesAndTv:e.target.startsWith("company")?s.ku.Company:null:null},isType:function(e,i){return l.getDashboardTargetType(e)===i},isCuratedDashboard:function(e){var i=e,t=l.getDashboardTargetType(i);return t===s.ku.Discover||t===s.ku.Classification||t===s.ku.ClassificationDirectory||t===s.ku.ClassificationVideos||t===s.ku.MoviesAndTv||t===s.ku.Company},getLatestReleasedTimeRange:function(){var e=new Date;return{from:a.O.format(a.O.endOf(a.O.subtract(e,2,"month"),"day"),"YYYY-MM-DD"),to:a.O.format(a.O.endOf(e,"day"),"YYYY-MM-DD")}},getWidgetParams:function(e,i,t,n){var o={timeOffset:a.O.getTimezoneOffset()};return n&&(o.audienceId=n),Object.assign(Object.assign({},o),r.u[e].getCustomParams(i,t))},isSystemGeneratedDashboard:function(e){var i=new Set([o.z.ClassificationFeaturedVideo,o.z.ClassificationPinnedVideos,o.z.ClassificationPlaylists,o.z.ClassificationSeries]);return null==e?void 0:e.some((function(e){return i.has(e.widgetId)}))},isClassificationDashboard:function(e){return[s.ku.Classification,s.ku.ClassificationDirectory,s.ku.ClassificationVideos].includes(null==e?void 0:e.targetType)}}},49542:(e,i,t)=>{t.d(i,{d:()=>m});var n,a=t(32735),r=t(65858);!function(e){e[e.Draft=0]="Draft",e[e.Published=1]="Published",e[e.Archived=2]="Archived"}(n||(n={}));var o,s=t(78479),l=t(42308),d=t(26154),c=t(31015);function u(e,i){(null==i||i>e.length)&&(i=e.length);for(var t=0,n=Array(i);t<i;t++)n[t]=e[t];return n}!function(e){e.Draft="Draft",e.Published="Published",e.Archived="Archived"}(o||(o={}));var m={getSliderAnalyticsOptions:function(){return{actionType:r.Vw.Click,location:r.LZ.SlidingList,entity:r.py.Widget,descriptor:r._S.Slide}},getSliderItemAnalyticsOptions:function(){return{location:r.LZ.SlidingListItem}},getSliderHeadingAnalyticsOptions:function(){return{actionType:r.Vw.Click,location:r.LZ.SlidingList,entity:r.py.Widget,descriptor:r._S.Title}},useGetContent:function(e,i,t,n){return a.useMemo((function(){var a;if(!e)return{content:null,unfilteredContent:null};if(!Array.isArray(e))return{content:e,unfilteredContent:e};var r,o=null!==(a=null==n?void 0:n.reduce((function(e,i){return e[i.id]=i,e}),{}))&&void 0!==a?a:{},s=function(e){if(Array.isArray(e))return u(e)}(r=e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||function(e,i){if(e){if("string"==typeof e)return u(e,i);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?u(e,i):void 0}}(r)||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.")}(),l=s.sort((function(e,i){var t,n,a,r,l=null!==(n=null===(t=o[e.id])||void 0===t?void 0:t.index)&&void 0!==n?n:s.findIndex((function(i){return i.id===e.id})),d=null!==(r=null===(a=o[i.id])||void 0===a?void 0:a.index)&&void 0!==r?r:s.findIndex((function(e){return e.id===i.id}));return l<d?-1:l>d?1:0}));return{content:m.isBelowContentMinimum(l,i)&&!t?[]:l.filter((function(e){var i;return!(null===(i=o[e.id])||void 0===i?void 0:i.hidden)})),unfilteredContent:l}}),[e,n])},isBelowContentMinimum:function(e,i){var t,n=(null===(t=c.u[i])||void 0===t?void 0:t.minContent)||0;return(null==e?void 0:e.length)<n},getCustomAppLink:function(e){var i,t,n,a,r,o;return(null===(i=e.metadata)||void 0===i?void 0:i.appLink)===d.OL.LatestReleases?null===(n=null===(t=e.appLinks)||void 0===t?void 0:t.latestReleases)||void 0===n?void 0:n.call(t):(null===(a=e.metadata)||void 0===a?void 0:a.appLink)===d.OL.ExploreAllTopics?null===(o=null===(r=e.appLinks)||void 0===r?void 0:r.allTopics)||void 0===o?void 0:o.call(r,e.presentation.id):null},getWidgetStatus:function(e){var i=e.status;if("string"==typeof i)switch(i){case o.Archived:i=n.Archived;break;case o.Published:i=n.Published;break;case o.Draft:i=n.Draft}return i},formatResponseData:function(e,i){var t=e.content;if(!t)return e;if("author"in t)return e.content=[t],e;switch("data"in t?e.content=t.data:Array.isArray(t)||(e.content=[t]),e.widgetId){case l.z.ClassificationSeries:e.content=e.content.filter((function(e){var i;return!!(null===(i=e.tallPoster)||void 0===i?void 0:i.id)}));break;case l.z.ClassificationPlaylists:e.content=e.content.filter((function(e){var i;return!!(null===(i=e.cover)||void 0===i?void 0:i.id)}));break;case l.z.ContinueWatching:e.content=e.content.map((function(e){return e.object}));default:break;case l.z.Presentations:e.content=e.content.filter((function(e){var t;return e.id.toString()!==(null===(t=null==i?void 0:i.id)||void 0===t?void 0:t.toString())}))}return e},isWidgetInTableOfContents:function(e){return!!(null==e?void 0:e.showInTableOfContents)},hasNoContent:function(e){return e===l.z.Blurb},canDisplayOnScreenSize:function(e,i,t){return i!==l.z.Blurb||t!==s.f.HeroBannerSmall||!e.xs&&!e.sm},isCompanyWidget:function(e){switch(e){case l.z.CompanyLatestReleasedVideo:case l.z.CompanyVideos:case l.z.UpcomingLivestreams:return!0;default:return!1}}}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_clickview_streamable_learning=self.webpackChunk_clickview_streamable_learning||[]).push([[7102],{66869:(e,t,n)=>{n.d(t,{B:()=>m});var a=n(32735),i=n(23481),r=n(65858),c=n(57408),o=n(83914),s=n(31015),l=n(35223),u=n(49542);const d={seeMore:"yv0FS"};var p=i.T.encloseNamespace("shared.widgetHeader");function f(e){return a.createElement("div",{className:"ms-3 ".concat(d.seeMore)},a.createElement(c.F,{appLink:e.appLink,analyticsData:e.analyticsData,analyticsOptions:Object.assign(Object.assign({},e.analyticsOptions),{descriptor:r._S.SeeMore}),className:"text-decoration-none ".concat(e.appLink?"curated-widget-link":"")},a.createElement("p",{className:"hover-text-underline text-dark curated-widget-heading"},p("seeAll"))))}function m(e){var t,n,i=!!e.description;if(!e.name&&!e.description)return a.createElement(a.Fragment,null);var r=u.d.isBelowContentMinimum(e.content,e.widgetTypeId),p=null!==(n=null===(t=s.u[e.widgetTypeId])||void 0===t?void 0:t.minContent)&&void 0!==n?n:0;return a.createElement("div",{className:"curated-widget-header"},a.createElement("div",{className:"d-flex justify-content-between"},!!e.name&&a.createElement("div",{className:d.title},a.createElement(c.F,{appLink:e.appLink,analyticsOptions:e.analyticsOptions,analyticsData:e.analyticsData,className:"text-decoration-none ".concat(e.appLink?"curated-widget-link":""),onClick:e.onClick},a.createElement("h2",{className:"h4 curated-widget-heading"},e.isPreviewing&&r&&a.createElement(o.x,{svgName:l.vn.WarningOutline,title:"Widget is below the minimum content threshold of ".concat(p," and won't be displayed."),tooltipSpanHack:!0,tooltipSpanHackClassName:"d-inline text-danger me-1"}),e.name))),!!e.appLink&&!i&&!!e.showSeeMoreLink&&a.createElement(f,Object.assign({},e))),i&&a.createElement("div",{className:"d-flex justify-content-between align-items-end"},a.createElement("p",{className:"description curated-widget-description ".concat(d.description)},a.createElement("span",null,e.description)),!!e.appLink&&!!e.showSeeMoreLink&&a.createElement(f,Object.assign({},e))))}},29420:(e,t,n)=>{n.d(t,{T:()=>l});var a=n(32735),i=n(82182);function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function c(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,i,r,c,o=[],s=!0,l=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(a=r.call(n)).done)&&(o.push(a.value),o.length!==t);s=!0);}catch(e){l=!0,i=e}finally{try{if(!s&&null!=n.return&&(c=n.return(),Object(c)!==c))return}finally{if(l)throw i}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var n={}.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}}(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 o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}var s=400;function l(e){var t=e.type,n=e.state,o=e.containerRef,l=e.mediaQuery,u=c(a.useState(!1),2),d=u[0],p=u[1],f=c(a.useState({}),2),m=f[0],v=f[1],b=c(a.useState(null),2),y=b[0],g=b[1],h=a.useMemo((function(){return i.V.isTouchScreen()}),[]);return a.useEffect((function(){"dynamic"===t&&o.current&&n.containerLeftPosition&&!h&&setTimeout((function(){return function(){var e,t=n;if(null===(e=o.current)||void 0===e?void 0:e.children){var a=Array.from(o.current.children).reduce((function(e,n){var a,i,c,o=null==n?void 0:n.getBoundingClientRect(),s=o.left<t.containerRightPosition&&o.right>t.containerLeftPosition;return Object.assign(Object.assign({},e),(a={},i=n.id,c=s?{"aria-hidden":!1}:{"aria-hidden":!0,inert:"true"},(i=function(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,"string");if("object"!=r(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==r(t)?t:t+""}(i))in a?Object.defineProperty(a,i,{value:c,enumerable:!0,configurable:!0,writable:!0}):a[i]=c,a))}),{});v(a)}}()}),s+50)}),[o.current,l,n.offset,n.containerLeftPosition]),{isTabbing:d,onFocusWidget:function(e){document.querySelector(".user-is-tabbing")&&(p(!0),g(e))},onBlurWidget:function(){document.querySelector(".user-is-tabbing")||(p(!1),g(null))},getFixedAttributes:function(e){var t=n;return h||e>=t.offset-t.viewableItems&&e<t.offset?{"aria-hidden":!1}:{inert:"true","aria-hidden":!0}},dynamicAttributes:m,focusNext:function(){setTimeout((function(){if(o.current){for(var e=o.current.querySelectorAll("li[aria-hidden]"),t=null,n=y+1;n<e.length&&!t;n++)t=e[n].querySelector('a[tabindex="0"]');t&&t.focus()}}),s+100)},focusPrev:function(){setTimeout((function(){if(o.current){for(var e=o.current.querySelectorAll("li[aria-hidden]"),t=null,n=y-1;n>=0&&!t;n--)t=e[n].querySelector('a[tabindex="0"]');t&&t.focus()}}),s+100)}}}},43872:(e,t,n)=>{n.d(t,{V:()=>u});var a=n(32735),i=n(82182),r=n(31069),c=n(91967),o=new Image;o.src="data:image/gif;base64,R0lGODlhAQABAIAAAAUEBAAAACwAAAAAAQABAAACAkQBADs=";var s=function(e){e.dataTransfer.setDragImage&&c.q.isFunction(e.dataTransfer.setDragImage)&&e.dataTransfer.setDragImage(o,0,0)},l=i.V.isTouchScreen(),u=a.forwardRef((function(e,t){var n,i,c,o,u=e.children,d=e.positionType,p=e.onDrag,f=e.onDragEnd,m=e.onTouchMove,v=e.onTouchEnd,b=e.percentageDragged,y=e.position,g=void 0===y?0:y;return a.createElement("ul",Object.assign({className:"list-unstyled d-flex flex-nowrap position-relative w-100 mb-0",style:(i=g,c=d,o=b,c===r.C.Percentage&&o&&(i-=o),{transform:"translate3d(".concat(i).concat(c,", 0px, 0px)"),transition:"transform .4s ease-in-out"}),ref:t},(n={},p&&f&&(n.draggable=!0,n.onDragEnd=f,n.onDragStart=s,n.onDragOver=p),m&&v&&l&&(n.onTouchMoveCapture=m,n.onTouchEndCapture=v),n)),u)}))},53855:(e,t,n)=>{n.d(t,{W:()=>d,f:()=>l});var a=n(32735),i=n(23481),r=n(83914),c=n(35223);const o="VSAPU",s="kgeXh";var l,u=i.T.encloseNamespace("shared.widgetButton");!function(e){e[e.Left=0]="Left",e[e.Right=1]="Right"}(l||(l={}));var d=a.memo((function(e){var t,n,i,d=e.direction===l.Left,p=d?c.vn.ChevronLeft:c.vn.ChevronRight;return e.hide?a.createElement(a.Fragment,null):a.createElement("div",{className:"_ejId",style:"videos"===(null===(n=e.state)||void 0===n?void 0:n.contents)?{paddingBottom:56.25/(null===(i=e.state)||void 0===i?void 0:i.viewableItems)+"%"}:{height:"100%"}},e.useGradientBackdrop&&a.createElement("div",{className:d?"".concat("Pt3nx"," ").concat(e.leftGradientClassName):"".concat("ZuAif"," ").concat(e.rightGradientClassName)}),!e.hideExtendedClickableArea&&a.createElement("button",{onClick:e.onClick,className:"".concat("AtsWP"," ").concat(d?o:s),tabIndex:-1}),a.createElement("button",{className:"".concat((t="BVcIS",t+=d?" ".concat(o," ").concat(e.leftButtonClassName):" ".concat(s," ").concat(e.rightButtonClassName))," ").concat("gAsE9"," ").concat(e.className||""),onClick:e.onClick,"aria-label":u(d?"previous":"next")},e.hoverText&&a.createElement("span",{className:"ps-3 pe-2 ".concat("APA36")},e.hoverText),a.createElement(r.x,{svgName:p,size:r.S.Medium,className:"svg-container d-inline-block ".concat("Ev4hr")})))}))},31069:(e,t,n)=>{var a;n.d(t,{C:()=>a}),function(e){e.Percentage="%",e.Pixels="px"}(a||(a={}))},10841:(e,t,n)=>{var a;n.d(t,{n:()=>a}),function(e){e.Init="init",e.Next="next",e.Previous="previous",e.Resize="resize",e.Drag="drag",e.Update="update",e.JumpToIndex="jump-to-index"}(a||(a={}))},21750:(e,t,n)=>{n.d(t,{x:()=>d});var a,i=n(97395),r=n(75896);!function(e){e.Playlists="playlists",e.Series="series",e.Videos="videos",e.PinnedVideos="pinnedVideos"}(a||(a={}));var c=n(62803),o=n(78417),s=n(25925);function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}var u=function(e){return"subjectpresentationaudiences.id:[".concat(e.join(","),"]")},d={topicsFromAllAvailablePresentations:function(e){var t={filterType:"topics",presentationId:e};return{url:i._.urlBuilder("{gateway}/v1/search/filters",t),publicUrl:i._.urlBuilder("/api/search/filters",t),key:"classification:availableTopics",normalize:!1}},availablePresentations:function(e){var t={type:null==e?void 0:e.toLowerCase()};return{url:i._.urlBuilder("/api/domain/v1/subjects/presentations/available",t),publicUrl:i._.urlBuilder("/api/subjects/presentations/available",t),key:"available:presentations:".concat(e),normalizeOptions:{namespace:"presentation"}}},topLevelTopics:function(e){var t={query:c.v.CLASSIFICATION_COLLECTION,sort:"alphabetical"};return{url:i._.urlBuilder("/api/domain/v1/subjects/presentations/".concat(e,"/classifications"),t),publicUrl:i._.urlBuilder("/api/subjects/presentations/".concat(e,"/classifications"),t),key:"presentation:".concat(e,":classifications")}},presentationById:function(e){return{url:"/api/domain/v1/subjects/presentations/".concat(e),publicUrl:"/api/subjects/presentations/".concat(e),key:"presentation:".concat(e)}},presentationBySlug:function(e,t,n){var a={type:n.toLowerCase(),contentRegion:t};return{url:i._.urlBuilder("/api/subjects/presentations/".concat(e),a),publicUrl:i._.urlBuilder("/api/subjects/presentations/".concat(e),a),key:"current:presentation:".concat(n.toLowerCase(),":").concat(t,":").concat(null!=e?e:""),bootstrapName:"presentation",normalizeOptions:{namespace:"presentation"}}},presentation:function(e,t){var n={type:null==e?void 0:e.toLowerCase()};return{url:i._.urlBuilder("/api/domain/v1/subjects/presentations",n),publicUrl:i._.urlBuilder("/api/subjects/presentations/".concat(t),n),key:"current:presentation".concat(e?":".concat(e.toLowerCase()):"").concat(t?":".concat(t):""),normalizeOptions:{namespace:"presentation"}}},classifications:function(){return{url:i._.urlBuilder("/api/domain/v1/subjects",{query:c.v.CLASSIFICATION_COLLECTION,type:s.R.Subject.toLowerCase()}),publicUrl:i._.urlBuilder("/api/subjects/classifications",{query:c.t.CLASSIFICATION_COLLECTION,type:s.R.Subject.toLowerCase()}),key:"classifications"}},classification:function(e,t,n){return{url:i._.urlBuilder("/api/domain/v1/subjects/".concat(e),{query:c.v.CLASSIFICATION(t)}),publicUrl:i._.urlBuilder("/api/subjects/classifications/".concat(e),{query:c.t.CLASSIFICATION}),key:"classification:".concat(e),error:n}},path:function(e,t){var n={type:t};return{url:i._.urlBuilder("/api/domain/v1/subjects/".concat(e,"/path"),n),publicUrl:"/api/subjects/classifications/".concat(e,"/path"),key:"classification:".concat(e,":path")}},paths:function(e){return{url:"/api/subjects/classifications/".concat(e,"/paths"),key:"classification:".concat(e,":paths")}},children:function(e){return{url:i._.urlBuilder("/api/domain/v1/subjects/".concat(e,"/children"),{query:c.v.CLASSIFICATION_COLLECTION}),publicUrl:i._.urlBuilder("/api/subjects/classifications/".concat(e,"/children"),{query:c.t.CLASSIFICATION_COLLECTION}),key:"classification:".concat(e,":children")}},videos:function(e,t,n){if(t){var r="limit:100,orderbydesc:timestamp";n.length&&(r+=",".concat(u(n)));var c={query:"{".concat(r,"}(videoCollection),subjectpresentationaudiences{presentationId:").concat(t,"}"),permissionFilterOption:o.r.StripMetadata};return{url:i._.urlBuilder("/api/domain/v1/subjects/".concat(e,"/").concat(a.PinnedVideos),c),publicUrl:i._.urlBuilder("/api/subjects/classifications/".concat(e,"/").concat(a.PinnedVideos),c),key:"classification:".concat(e,":").concat(a.PinnedVideos,":").concat(n.join(":"))}}},playlists:function(e,t,n){if(t){var r="limit:100,orderby:name";n.length&&(r+=",".concat(u(n)));var s={query:"{".concat(r,"}").concat(c.v.PLAYLIST_COLLECTION)+",subjectpresentationaudiences{presentationId:".concat(t,"}"),permissionFilterOption:o.r.StripMetadata};return{url:i._.urlBuilder("/api/domain/v1/subjects/".concat(e,"/").concat(a.Playlists),s),publicUrl:i._.urlBuilder("/api/subjects/classifications/".concat(e,"/").concat(a.Playlists),s),key:"classification:".concat(e,":").concat(a.Playlists,":").concat(n.join(":")),formatData:function(e){var t;if(e)return Object.assign(Object.assign({},e),{data:null===(t=e.data)||void 0===t?void 0:t.filter((function(e){var t;return null===(t=e.cover)||void 0===t?void 0:t.url}))})}}}},series:function(e,t,n){if(t){var r="limit:100";n.length&&(r+=",".concat(u(n)));var s={query:"{".concat(r,"}").concat(c.v.SERIES)+",subjectpresentationaudiences{presentationId:".concat(t,"}"),permissionFilterOption:o.r.StripMetadata};return{url:i._.urlBuilder("/api/domain/v1/subjects/".concat(e,"/").concat(a.Series),s),publicUrl:i._.urlBuilder("/api/subjects/classifications/".concat(e,"/").concat(a.Series),s),key:"classification:".concat(e,":").concat(a.Series,":").concat(n.join(":")),formatData:function(e){var t;if(e)return Object.assign(Object.assign({},e),{data:null===(t=e.data)||void 0===t?void 0:t.filter((function(e){var t;return null===(t=e.tallPoster)||void 0===t?void 0:t.url}))})}}}},curriculumLinks:function(e,t){return{url:i._.urlBuilder("/api/subjects/presentations/".concat(t,"/objects/").concat(e,"/classifications/paths"),{type:s.R.Curriculum.toLowerCase()}),publicUrl:i._.urlBuilder("/api/subjects/presentations/".concat(t,"/objects/").concat(e,"/classifications/paths"),{type:s.R.Curriculum.toLowerCase()}),key:"curriculum:links:".concat(e,":").concat(t),normalize:!1}},subjectLinks:function(e,t){return{url:i._.urlBuilder("/api/subjects/presentations/".concat(t,"/objects/").concat(e,"/classifications/paths"),{type:s.R.Subject.toLowerCase()}),key:"subject:links:".concat(e,":").concat(t),normalize:!1}},checkAllCurriculumsLinks:function(e,t,n){var a={type:s.R.Curriculum.toLowerCase()};return{url:i._.urlBuilder("/api/domain/v1/subjects/objects/".concat(e,"/presentations"),a),publicUrl:i._.urlBuilder("/api/subjects/".concat(e,"/presentations"),Object.assign(Object.assign({},a),{pid:t})),key:"check:all:curriculums:links:".concat(e,":").concat(t.join(",")),success:n,normalize:!1}},hasCurriculumLinks:function(e,t,n,a){var c=r.m.uniq(e).sort(),o=r.m.uniq(t).sort(),u={type:s.R.Curriculum.toLowerCase(),objectId:c};return(null==t?void 0:t.length)&&(u.presentationId=o),{url:i._.urlBuilder("/api/domain/v1/subjects/presentations/objects",u),publicUrl:i._.urlBuilder("/api/subjects/presentations/objects/exists",u),key:"has:curriculum:links:".concat(c.join(":"),":").concat(o.join(":")),normalizeOptions:{namespace:n},formatData:function(e){return Object.entries(e).map((function(e){var t,n,a=(n=2,function(e){if(Array.isArray(e))return e}(t=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,i,r,c,o=[],s=!0,l=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(a=r.call(n)).done)&&(o.push(a.value),o.length!==t);s=!0);}catch(e){l=!0,i=e}finally{try{if(!s&&null!=n.return&&(c=n.return(),Object(c)!==c))return}finally{if(l)throw i}}return o}}(t,n)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var n={}.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}}(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.")}());return{id:a[0],_hasCurriculumLinks:a[1]}}))},success:a}},regionAlternatives:function(e,t,n,a){return{url:"/api/subjects/classifications/".concat(e,"/region-alternatives"),publicUrl:"/api/subjects/classifications/".concat(e,"/region-alternatives"),key:"classification:regionAlternatives:".concat(e),normalize:!1,success:t,error:n,always:a}}}}}]);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! For license information please see 719-
|
|
2
|
-
(self.webpackChunk_clickview_streamable_learning=self.webpackChunk_clickview_streamable_learning||[]).push([[719],{63112:(e,t,r)=>{"use strict";r.d(t,{o:()=>i});var n=r(32735),o=r(86319),i=n.memo((function(e){var t=e.tagClass,r="partial-loading-background d-inline-block rounded-pill py-1 px-2 mb-1 me-1 text-nowrap ".concat(void 0===t?"":t," ").concat(o.Z.partialTag);return n.createElement("div",{className:"mt-1"},n.createElement("span",{className:r}," "))}))},65163:(e,t,r)=>{"use strict";r.d(t,{QL:()=>n.Q,eb:()=>n.e});var n=r(72861);r(14244)},61699:(e,t,r)=>{"use strict";r.d(t,{o:()=>u});var n=r(99940),o=r(97395);function i(e){return function(e){if(Array.isArray(e))return a(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 a(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?a(e,t):void 0}}(e)||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 a(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var c=r(62803).v.CLASSIFICATION_COLLECTION,l=function(e){return"/api/domain/v1/subjects/presentations/available".concat(e?"?type=".concat(e):"")},u={availablePresentations:function(e){return{url:l(e),key:"available:presentations:".concat(e),normalizeOptions:{namespace:"presentation"}}},setPresentation:function(e,t,r,o){return{url:(i=e.id,"/api/domain/v1/subjects/presentations/".concat(i)),key:"set:".concat(t,":presentation"),type:n.k.POST,data:{},normalizeOptions:{namespace:"presentation"},invalidationKeys:["current:presentation:".concat(t.toLocaleLowerCase()),"subject:preference:options","my:subject:preferences","level:preference:options","my:level:preferences","classifications","presentation:audiences","widgets:v3","content:update:videos","content:updates"],success:r,error:o};var i},allSubjectPreferences:function(){return{url:"/api/domain/v1/subjects/preferences?query=".concat(c,"&type=subject"),key:"subject:preference:options"}},mySubjectPreferences:function(e){return{url:"/api/domain/v1/subjects/classifications/following?query=".concat(c),key:"my:subject:preferences",normalize:!1,success:e}},followSubjects:function(e,t,r,o){return{url:"/api/domain/v1/subjects/classifications/following",key:"follow:subjects",data:e,type:n.k.POST,success:t,error:r,always:o,invalidationKeys:[].concat(i(e.map((function(e){return"classification:".concat(e)}))),["my:subject:preferences","classifications","content:updates"])}},unfollowSubjects:function(e,t,r,a){return{url:(c=e,o._.urlBuilder("/api/domain/v1/subjects/classifications/following",{id:c})),key:"unfollow:subjects",type:n.k.DELETE,success:t,error:r,always:a,invalidationKeys:[].concat(i(e.map((function(e){return"classification:".concat(e)}))),["my:subject:preferences","classifications","content:updates"])};var c},allLevelPreferences:function(){return{url:"/api/domain/v1/subjects/audiences?type=subject",key:"level:preference:options",normalize:!1}},myLevelPreferences:function(e){return{url:"/api/domain/v1/subjects/audiences/following",key:"my:level:preferences",normalizeOptions:{idAttribute:"masterId"},success:e}},followLevels:function(e,t,r,o){return{url:"/api/domain/v1/subjects/audiences/following",key:"follow:levels",data:e.map((function(e){return e.masterId})),normalize:!1,updateState:{keys:"my:level:preferences",updateData:function(t){var r,n=null!==(r=t["my:level:preferences"])&&void 0!==r?r:[];return e.forEach((function(e){n.find((function(t){return t.masterId===e.masterId}))||n.push(e)})),{"my:level:preferences":n}}},type:n.k.POST,success:t,error:r,always:o}},unfollowLevels:function(e,t,r,a){return{url:(c=e.map((function(e){return e.masterId})),o._.urlBuilder("/api/domain/v1/subjects/audiences/following",{id:c})),key:"unfollow:levels",normalize:!1,updateState:{keys:"my:level:preferences",updateData:function(t){var r,n=null!==(r=t["my:level:preferences"])&&void 0!==r?r:[];return e.forEach((function(e){if(n.find((function(t){return t.masterId===e.masterId}))){var t=n.findIndex((function(t){return t.masterId===e.masterId}));n=[].concat(i(n.slice(0,t)),i(n.slice(t+1)))}})),{"my:level:preferences":n}}},type:n.k.DELETE,success:t,error:r,always:a};var c}}},32397:(e,t,r)=>{"use strict";r.r(t),r.d(t,{VideoGuidanceClassroomGuideView:()=>je});var n=r(32735),o=r(81886),i=r(20354),a=r(28400),c=r(92582),l=r(65858),u=r(42648),s=r(23481),f=r(75896),d=r(72189),p=r(38496),m=r(83345),v=r(85597);const y={curriculumSubject:"i4D3h",curriculumSet:"WCdf9",areaLeafSet:"o8H8s",closeButton:"McsPs",leafDescriptionOnly:"xmEEo"};function h(e){return h="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},h(e)}function g(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=h(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=h(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==h(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function b(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var w=/(.*)\s\((.*)?\)/i,E="shared.curriculumLinks",k="text-nowrap font-size-normal rounded-pill py-1 px-2 my-0 d-inline-block fw-semibold";function C(e){function t(){var t=k+" bg-white border";return!e.leaf.name&&e.uiContainsCodes?t+" border-secondary text-secondary":t+" border-dark"}var r=n.useRef();return n.useEffect((function(){if(r.current){var t=r.current.getBoundingClientRect().width;e.trySetMaxCodeWidth(t)}}),[r.current]),n.createElement("div",{className:"d-flex"},e.leaf.description?!e.leaf.name&&e.uiContainsCodes?n.createElement(n.Fragment,null,n.createElement("div",{className:"me-1 align-self-start",style:{minWidth:e.codeWidth?"".concat(e.codeWidth,"px"):"auto"}},n.createElement("h5",{ref:r,className:t()},n.createElement(m.x,{namespace:E,phrase:"noCode"}))),n.createElement("p",{className:"m-0 align-self-center",dangerouslySetInnerHTML:{__html:e.leaf.description}})):e.leaf.name||e.uiContainsCodes?n.createElement(n.Fragment,null,n.createElement("div",{className:"me-1 align-self-start",style:{minWidth:e.codeWidth?"".concat(e.codeWidth,"px"):"auto"}},n.createElement("h5",{ref:r,className:t()},e.leaf.name)),n.createElement("p",{className:"m-0 align-self-center",dangerouslySetInnerHTML:{__html:e.leaf.description}})):n.createElement("p",{className:"m-0",dangerouslySetInnerHTML:{__html:e.leaf.description}}):n.createElement("p",{className:"m-0",dangerouslySetInnerHTML:{__html:e.leaf.name}}))}function S(e){var t,r,o,i={},a=!1;function c(e){var t="mb-2";return e.name||a?t:t+" ms-4 "+y.leafDescriptionOnly}return e.linkSet.areasAndLeaves.forEach((function(e){var t=e[v.k.Area].map((function(e){return e.name})).join(" - ");i[t]?e[v.k.Leaf].forEach((function(e){i[t].find((function(t){return t.name===e.name}))||(i[t].push(e),e.name&&(a=!0))})):i[t]=e[v.k.Leaf]})),n.createElement(n.Fragment,null,n.createElement("h3",{className:"".concat(k," text-white bg-dark-blue fw-normal me-1 mb-2")},(t=e.linkSet[v.k.Audience].name,r=e.linkSet[v.k.Subject].name,(o=t.match(w))?"".concat(o[1]," • ").concat(o[2]," • ").concat(r):"".concat(t," • ").concat(r))),n.createElement("div",{className:"me-2 ".concat(y.curriculumSubject)},Object.keys(i).map((function(t,r){return n.createElement("div",{key:r,className:y.areaLeafSet},t&&n.createElement("h4",{className:"mb-1 font-size-normal"},t),n.createElement("ul",{className:"list-unstyled"},i[t].map((function(t){return n.createElement("li",{key:t.id,className:c(t)},n.createElement(C,{leaf:t,codeWidth:e.codeWidth,trySetMaxCodeWidth:e.trySetMaxCodeWidth,uiContainsCodes:a}))}))))}))))}function O(e){var t,r,o,i=(r=n.useState(0),o=2,function(e){if(Array.isArray(e))return e}(r)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,c=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(r,o)||function(e,t){if(e){if("string"==typeof e)return b(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?b(e,t):void 0}}(r,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.")}()),a=i[0],c=i[1];function l(e){c((function(t){return t>=e?t:e}))}var u=n.useMemo((function(){var t={};return e.curriculumLinks.forEach((function(e){var r=null,n=null,o=[],i=[];e.forEach((function(e){switch(e.type){case v.k.Subject:r=e;break;case v.k.Audience:n=e;break;case v.k.Area:o.push(e);break;case v.k.Leaf:i.push(e)}}));var a="".concat(r.id,":").concat(n.id);t[a]?t[a].areasAndLeaves.push(g(g({},v.k.Area,o),v.k.Leaf,i)):t[a]=g(g(g({},v.k.Subject,r),v.k.Audience,n),"areasAndLeaves",[g(g({},v.k.Area,o),v.k.Leaf,i)])})),t}),[e.curriculumLinks]);return e.curriculumLinks?(null===(t=e.curriculumLinks)||void 0===t?void 0:t.length)?n.createElement("ul",{className:"list-unstyled m-0"},Object.keys(u).map((function(e,t){return n.createElement("li",{key:"linkset-".concat(t),className:y.curriculumSet},n.createElement(S,{linkSet:u[e],trySetMaxCodeWidth:l,codeWidth:a}))}))):n.createElement(p.p,{emptyStateUrl:e.emptyStateUrl}):n.createElement(d.Z,null)}var j=r(11607),x=r(54610),L=r(67453),P=r(90125),I=s.T.encloseNamespace("shared.curriculumLinks");function T(e){var t=e.data;return n.createElement(j.L,{key:t.id,className:"p-1 pe-2 rounded-pill d-inline-flex align-items-center cursor-pointer ".concat(P.Z.tag," ").concat(e.selected?P.Z.selected:""),onClick:function(){return e.onChangeCurriculum(t.id.toString())},"aria-label":"".concat(I("ariaFilter")," ").concat(t.name)},n.createElement("div",{className:"bg-white ".concat(P.Z.cover," rounded-circle border")},n.createElement("img",{src:L.j.createUrl(t.cover.url,{size:x.h2.Small}),alt:t.name,className:"rounded-circle"})),n.createElement("div",{className:"ms-2"},t.name))}var A=r(63112),N=r(65163);function _(e){var t,r,o;return n.createElement(N.eb,{collection:(null===(t=e.selectedCurriculum)||void 0===t?void 0:t.id)?e.curriculums.nonEmptyCurriculums:null,childClassName:"flex-shrink-0",childComponent:function(t){var r,o;return n.createElement(T,Object.assign({},t,{selected:(null===(o=null===(r=e.selectedCurriculum)||void 0===r?void 0:r.id)||void 0===o?void 0:o.toString())===t.data.id.toString(),onChangeCurriculum:e.onChangeCurriculum}))},partialLoadingComponent:function(){return n.createElement(A.o,null)},widgetDataDeps:[null===(o=null===(r=e.selectedCurriculum)||void 0===r?void 0:r.id)||void 0===o?void 0:o.toString(),e.onChangeCurriculum],noNegativePadding:e.noNegativePadding})}var V=r(59087),D=r.n(V),R=r(93264),M=r(16367),U=r(34468),G=r(73758);const H={learningIntention:"MHM6O",highlightPoi:"U7Q6x",icon:"H1xbT"};function F(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var B=/\[\]\(cv:\/\/poi\?id=\d+\)\n*/g;const z={poiEntry:"vr6R9",poiText:"znHZF",public:"v0BZ9",poiTimeStamp:"AdKwe",wideBadge:"YR2Hh"};function W(e){var t=R.T.ToDisplayDuration(1e3*e.poi.startTime),r=function(e,t){var r=(0,n.useRef)();function o(){e&&G.n.trigger("glance:poi:mouseover",e)}function i(){G.n.trigger("glance:poi:mouseleave")}return(0,U.R)("player:poi:mouseover",(function(t){var n,o,i;(null==t?void 0:t.id)&&(null===(n=null==e?void 0:e.id)||void 0===n?void 0:n.toString())===(null===(o=null==t?void 0:t.id)||void 0===o?void 0:o.toString())&&(null===(i=r.current)||void 0===i||i.classList.add(H.highlightPoi))}),null,t),(0,U.R)("player:poi:mouseleave",(function(){var e;null===(e=r.current)||void 0===e||e.classList.remove(H.highlightPoi)}),null,t),(0,n.useEffect)((function(){var e,n;if(r.current&&t)return null===(e=r.current)||void 0===e||e.addEventListener("mouseover",o),null===(n=r.current)||void 0===n||n.addEventListener("mouseleave",i),function(){var e,t;null===(e=r.current)||void 0===e||e.removeEventListener("mouseover",o),null===(t=r.current)||void 0===t||t.removeEventListener("mouseleave",i)}}),[r.current]),r}(e.poi,!e.suppressInteractivity);return e.suppressInteractivity?n.createElement("div",{className:"d-flex ".concat(z.poiEntry," mb-2")},n.createElement("span",{className:"d-flex rounded-pill justify-content-center align-items-center fw-semibold text-info bg-light-blue ".concat(z.poiTimeStamp," ").concat(e.wideBadge?z.wideBadge:"")},t),n.createElement("div",{className:"".concat(z.public," ms-2")},e.poi.description)):n.createElement(j.L,{key:e.poi.startTime,className:"d-flex ".concat(z.poiEntry," mb-2 cursor-pointer"),onClick:function(){return e.onClickPoiItem(e.poi.startTime)},ref:r},n.createElement("div",{className:"d-flex rounded-pill justify-content-center align-items-center fw-semibold text-info bg-light-blue ".concat(z.poiTimeStamp," ").concat(e.wideBadge?z.wideBadge:"")},t),n.createElement("div",{className:"ms-2 ".concat(z.poiText)},e.poi.description))}var Z="shared.pointsOfInterestList";function $(e){var t=e.pointsOfInterest.sort((function(e,t){return e.startTime-t.startTime})),r=t.some((function(e){return e.startTime>=3600}));return n.createElement("div",null,n.createElement("h2",{className:"h6 my-2"},n.createElement(m.x,{namespace:Z,phrase:"heading"})),n.createElement("div",null,t.map((function(t){return n.createElement(W,{key:t.startTime,poi:t,suppressInteractivity:e.suppressInteractivity,onClickPoiItem:e.onClickPoiItem,wideBadge:r})}))))}var Q=r(83914),K=r(87311),Y=r(91743),q=r(64444),X=r(44829),J=r(35223),ee=r(40370);function te(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var re="shared.videoAtAGlanceV2",ne=s.T.encloseNamespace(re),oe=350;function ie(e){return e.hideScrollbar?n.createElement(n.Fragment,null,e.children):n.createElement("div",{className:"rounded border mb-4 bg-white"},n.createElement(u.ZP,{autoHeight:!0,autoHeightMax:oe},n.createElement("div",{className:"px-3 px-3 pt-3 pb-2"},e.children)))}function ae(e){var t,r,o,i=function(e,t){var r,o,i,a=(o=(0,n.useState)(""),i=2,function(e){if(Array.isArray(e))return e}(o)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,c=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(o,i)||function(e,t){if(e){if("string"==typeof e)return F(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?F(e,t):void 0}}(o,i)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),c=a[0],l=a[1];return(0,n.useEffect)((function(){if(t){var r=(n=e.glance,o=n.content.replace(B,""),M(o));l(r)}var n,o}),[null===(r=e.glance)||void 0===r?void 0:r.content,t]),c}(e.video,e.canViewGlance),a=(r=n.useState(""),o=2,function(e){if(Array.isArray(e))return e}(r)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,c=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(r,o)||function(e,t){if(e){if("string"==typeof e)return te(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?te(e,t):void 0}}(r,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.")}()),u=a[0],s=a[1],f=function(){var t,r,n,o;return ee.M.isInteractive(e.video)||!(null===(r=null===(t=e.video.tags)||void 0===t?void 0:t.data)||void 0===r?void 0:r.length)?null:null===(o=null===(n=e.video.tags)||void 0===n?void 0:n.data)||void 0===o?void 0:o.filter((function(e){return e.tagType===X.Q.Pedagogy||e.tagType===X.Q.Skill}))}(),d=n.useRef(null);return n.useEffect((function(){var e;(null===(e=d.current)||void 0===e?void 0:e.innerText)&&s(d.current.innerText)}),[null===(t=d.current)||void 0===t?void 0:t.innerText]),e.canViewGlance?n.createElement("section",{className:"play-page-section"},n.createElement(ie,{hideScrollbar:e.hideScrollbar},n.createElement("h2",{className:"h6 mb-2"},n.createElement(m.x,{namespace:re,phrase:"learningIntention"})),n.createElement("div",{className:"mb-3 ".concat(H.learningIntention)},n.createElement(q.u,{title:ne("copy"),spanHack:!0,spanHackClassName:H.icon},n.createElement(D(),{text:u},n.createElement(Q.x,{className:"svg-container me-1 cursor-pointer",svgName:J.vn.Copy,size:Q.S.Small,onClick:function(){var t={id:e.video.glance.id,name:e.video.glance.name,videoId:e.video.id,videoName:e.video.name,learningIntention:u},r={actionType:l.Vw.Copy,entity:l.py.Glance,location:l.LZ.PlayPage};c.k.logUserAction(t,r)}}))),n.createElement("div",{dangerouslySetInnerHTML:{__html:i},className:"d-inline",ref:d})),!!(null==f?void 0:f.length)&&n.createElement("div",{className:"mb-1"},n.createElement(Y.P,Object.assign({tags:f},K.G.getTagActionProps(e.getTagAppLink,e.onClickTag,e.suppressInteractivity),{className:"mt-2"}))),!!e.pointsOfInterest.length&&n.createElement($,{pointsOfInterest:e.pointsOfInterest,suppressInteractivity:e.suppressInteractivity,onClickPoiItem:function(t){e.setStartTime(t)}}))):n.createElement(n.Fragment,null)}var ce=r(58960),le=r(13876),ue=r(69883);function se(e){return se="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},se(e)}function fe(){fe=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function u(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,r){return e[t]=r}}function s(e,t,r,n){var i=t&&t.prototype instanceof h?t:h,a=Object.create(i.prototype),c=new I(n||[]);return o(a,"_invoke",{value:j(e,r,c)}),a}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=s;var d="suspendedStart",p="suspendedYield",m="executing",v="completed",y={};function h(){}function g(){}function b(){}var w={};u(w,a,(function(){return this}));var E=Object.getPrototypeOf,k=E&&E(E(T([])));k&&k!==r&&n.call(k,a)&&(w=k);var C=b.prototype=h.prototype=Object.create(w);function S(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function O(e,t){function r(o,i,a,c){var l=f(e[o],e,i);if("throw"!==l.type){var u=l.arg,s=u.value;return s&&"object"==se(s)&&n.call(s,"__await")?t.resolve(s.__await).then((function(e){r("next",e,a,c)}),(function(e){r("throw",e,a,c)})):t.resolve(s).then((function(e){u.value=e,a(u)}),(function(e){return r("throw",e,a,c)}))}c(l.arg)}var i;o(this,"_invoke",{value:function(e,n){function o(){return new t((function(t,o){r(e,n,t,o)}))}return i=i?i.then(o,o):o()}})}function j(t,r,n){var o=d;return function(i,a){if(o===m)throw Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var l=x(c,n);if(l){if(l===y)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===d)throw o=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=m;var u=f(t,r,n);if("normal"===u.type){if(o=n.done?v:p,u.arg===y)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(o=v,n.method="throw",n.arg=u.arg)}}}function x(t,r){var n=r.method,o=t.iterator[n];if(o===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,x(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=f(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function L(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function P(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function I(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(L,this),this.reset(!0)}function T(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return i.next=i}}throw new TypeError(se(t)+" is not iterable")}return g.prototype=b,o(C,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=u(b,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,u(e,l,"GeneratorFunction")),e.prototype=Object.create(C),e},t.awrap=function(e){return{__await:e}},S(O.prototype),u(O.prototype,c,(function(){return this})),t.AsyncIterator=O,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new O(s(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},S(C),u(C,l,"Generator"),u(C,a,(function(){return this})),u(C,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=T,I.prototype={constructor:I,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(P),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(n,o){return c.type="throw",c.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var l=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(l&&u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},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),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),P(r),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;P(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:T(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),y}},t}function de(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var pe=function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function a(e){try{l(n.next(e))}catch(e){i(e)}}function c(e){try{l(n.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,c)}l((n=n.apply(e,t||[])).next())}))},me=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},ve="shared.videoGuidanceClassroomGuidePopup",ye=350;function he(e){var t,r,i,a,p,v,y,h=(v=n.useState(),y=2,function(e){if(Array.isArray(e))return e}(v)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,c=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(v,y)||function(e,t){if(e){if("string"==typeof e)return de(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?de(e,t):void 0}}(v,y)||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=h[0],b=h[1],w=(0,ue.Z)();n.useEffect((function(){if(!e.isLoading&&e.curriculums&&!g){var t=e.curriculums.activeCurriculum?e.curriculums.activeCurriculum:f.m.first(e.curriculums.availableCurriculums);b(t)}}),[e.isLoading,null===(r=null===(t=e.curriculums)||void 0===t?void 0:t.activeCurriculum)||void 0===r?void 0:r.id]);var E=e.canViewCurriculumLinks&&(null===(i=e.curriculums)||void 0===i?void 0:i.customerHasCurriculumLinks);return n.createElement(ce.G,{closePopup:e.onClickClose,showLoadingSpinner:e.isLoading,title:s.T.getPhrase(ve,"classroomGuide"),size:"lg"},!e.isLoading&&n.createElement(n.Fragment,null,n.createElement(u.ZP,{autoHeightMax:ye,autoHeightMin:ye,autoHeight:!0,className:"pb-3",renderThumbVertical:function(e){var t=e.style,r=me(e,["style"]);return n.createElement("div",Object.assign({},r,{style:Object.assign(Object.assign({},t),{borderRadius:"inherit",backgroundColor:"rgba(0, 0, 0, 0.2)",zIndex:5}),className:"thumb-vertical"}))}},n.createElement("div",{className:E?"mb-4":""},n.createElement(ae,{video:e.video,pointsOfInterest:e.pointsOfInterest,setStartTime:function(t){o.Q.C$.trigger(e.getVideoAppLink(e.video,{t})),e.closePopup()},getTagAppLink:e.getTagAppLink,suppressInteractivity:e.canViewPublicLayout,onClickTag:e.closePopup,canViewGlance:e.canViewGlance,hideScrollbar:!0})),E&&n.createElement(n.Fragment,null,n.createElement("h2",{className:"h6"},n.createElement(m.x,{namespace:ve,phrase:"curriculumLinks"})),n.createElement("div",{className:"mb-2"},n.createElement(_,{curriculums:e.curriculums,selectedCurriculum:g,onChangeCurriculum:function(t){var r,n,o;return pe(this,void 0,void 0,fe().mark((function i(){var a;return fe().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(null==(a=e.curriculums.availableCurriculums.find((function(e){return e.id.toString()===t})))?void 0:a.id){i.next=3;break}return i.abrupt("return",!1);case 3:if((null===(n=null===(r=e.curriculums.activeCurriculum)||void 0===r?void 0:r.id)||void 0===n?void 0:n.toString())!==(null===(o=null==a?void 0:a.id)||void 0===o?void 0:o.toString())){i.next=5;break}return i.abrupt("return",!1);case 5:return b(a),i.prev=6,i.next=9,e.curriculums.updateCurriculum(a);case 9:c.k.logUserAction({id:a.id,name:a.id,description:a.description,videoId:e.video.id,videoName:e.video.name},{entity:l.py.Presentation,actionType:l.Vw.Select,descriptor:l.kD.Curriculum,location:l.LZ.ClassroomGuidancePopup}),i.next=16;break;case 12:i.prev=12,i.t0=i.catch(6),b(g),w.error(s.T.getPhrase(ve,"updateCurriculumFailed"));case 16:case"end":return i.stop()}}),i,null,[[6,12]])})))},noNegativePadding:!0})),(null===(a=e.curriculums)||void 0===a?void 0:a.hasLoaded)?n.createElement(O,{curriculumLinks:null===(p=e.curriculums)||void 0===p?void 0:p.curriculumLinks,emptyStateUrl:e.curriculumLinksEmptyStateUrl}):n.createElement(d.Z,null))),n.createElement(le.u,null,n.createElement(le.u.Cancel,{onClick:e.onClickClose,text:s.T.getPhrase(ve,"close")}),n.createElement(le.u.Submit,{text:s.T.getPhrase(ve,"viewVideo"),variant:"dark",onClick:e.onClickViewVideo}))))}var ge=r(31949),be=r(11565),we=r(99742),Ee=r(96359),ke=r(41135),Ce=r(65751),Se=r(89758),Oe=r(50933);function je(e){var t,r=i.a.useBasicFetch(be.R.video(e.id)),u=(0,Oe.l)(e.id),s=(0,Se.M)(e.id,!0),f=i.a.useBasicFetch(ge.N.currentUser());return n.createElement(he,{isLoading:!r.hasCompleted||!u.hasCompleted,video:r.data,pointsOfInterest:u.items,curriculums:s,onClickClose:function(){c.k.logUserAction({id:r.data.id,name:r.data.name},{entity:l.py.Video,location:l.LZ.ClassroomGuidancePopup,actionType:l.Vw.Click,descriptor:l.od.Close}),e.closePopup()},onClickViewVideo:function(){c.k.logUserAction({id:r.data.id,name:r.data.name},{entity:l.py.Video,location:l.LZ.ClassroomGuidancePopup,actionType:l.Vw.Click,descriptor:l.od.ViewVideo}),o.Q.C$.trigger({application:ke.O.VIDEOS,action:Ee.e.Videos.PLAY_VIDEO,args:[r.data.id,a.m.slugify(r.data.name)]}),e.closePopup()},curriculumLinksEmptyStateUrl:we.W.EmptyStates.CURRICULUM_LINKS,getVideoAppLink:Ce.y.videoType,getTagAppLink:Ce.y.tag,canViewCurriculumLinks:!0,canViewPublicLayout:!(null===(t=f.data)||void 0===t?void 0:t.isAuthenticated),canViewGlance:!0,closePopup:e.closePopup})}},91969:(e,t,r)=>{"use strict";var n=r(47033),o={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var r,i,a,c,l,u,s=!1;t||(t={}),r=t.debug||!1;try{if(a=n(),c=document.createRange(),l=document.getSelection(),(u=document.createElement("span")).textContent=e,u.ariaHidden="true",u.style.all="unset",u.style.position="fixed",u.style.top=0,u.style.clip="rect(0, 0, 0, 0)",u.style.whiteSpace="pre",u.style.webkitUserSelect="text",u.style.MozUserSelect="text",u.style.msUserSelect="text",u.style.userSelect="text",u.addEventListener("copy",(function(n){if(n.stopPropagation(),t.format)if(n.preventDefault(),void 0===n.clipboardData){r&&console.warn("unable to use e.clipboardData"),r&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var i=o[t.format]||o.default;window.clipboardData.setData(i,e)}else n.clipboardData.clearData(),n.clipboardData.setData(t.format,e);t.onCopy&&(n.preventDefault(),t.onCopy(n.clipboardData))})),document.body.appendChild(u),c.selectNodeContents(u),l.addRange(c),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");s=!0}catch(n){r&&console.error("unable to copy using execCommand: ",n),r&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),s=!0}catch(n){r&&console.error("unable to copy using clipboardData: ",n),r&&console.error("falling back to prompt"),i=function(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}("message"in t?t.message:"Copy to clipboard: #{key}, Enter"),window.prompt(i,e)}}finally{l&&("function"==typeof l.removeRange?l.removeRange(c):l.removeAllRanges()),u&&document.body.removeChild(u),a()}return s}},44818:(e,t,r)=>{"use strict";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)}Object.defineProperty(t,"__esModule",{value:!0}),t.CopyToClipboard=void 0;var o=c(r(32735)),i=c(r(91969)),a=["text","onCopy","options","children"];function c(e){return e&&e.__esModule?e:{default:e}}function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function u(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?l(Object(r),!0).forEach((function(t){m(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function f(e,t){return f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},f(e,t)}function d(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}function m(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var v=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&f(e,t)}(y,e);var t,r,c,l,v=(c=y,l=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=p(c);if(l){var r=p(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return d(e)}(this,e)});function y(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,y);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return m(d(e=v.call.apply(v,[this].concat(r))),"onClick",(function(t){var r=e.props,n=r.text,a=r.onCopy,c=r.children,l=r.options,u=o.default.Children.only(c),s=(0,i.default)(n,l);a&&a(n,s),u&&u.props&&"function"==typeof u.props.onClick&&u.props.onClick(t)})),e}return t=y,(r=[{key:"render",value:function(){var e=this.props,t=(e.text,e.onCopy,e.options,e.children),r=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,a),n=o.default.Children.only(t);return o.default.cloneElement(n,u(u({},r),{},{onClick:this.onClick}))}}])&&s(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),y}(o.default.PureComponent);t.CopyToClipboard=v,m(v,"defaultProps",{onCopy:void 0,options:void 0})},59087:(e,t,r)=>{"use strict";var n=r(44818).CopyToClipboard;n.CopyToClipboard=n,e.exports=n},47033:e=>{e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,r=[],n=0;n<e.rangeCount;n++)r.push(e.getRangeAt(n));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||r.forEach((function(t){e.addRange(t)})),t&&t.focus()}}},34152:(e,t,r)=>{"use strict";r.d(t,{YD:()=>u});var n=r(32735),o=(Object.defineProperty,new Map),i=new WeakMap,a=0,c=void 0;function l(e,t,r={},n=c){if(void 0===window.IntersectionObserver&&void 0!==n){const o=e.getBoundingClientRect();return t(n,{isIntersecting:n,target:e,intersectionRatio:"number"==typeof r.threshold?r.threshold:0,time:0,boundingClientRect:o,intersectionRect:o,rootBounds:o}),()=>{}}const{id:l,observer:u,elements:s}=function(e){const t=function(e){return Object.keys(e).sort().filter((t=>void 0!==e[t])).map((t=>{return`${t}_${"root"===t?(r=e.root,r?(i.has(r)||(a+=1,i.set(r,a.toString())),i.get(r)):"0"):e[t]}`;var r})).toString()}(e);let r=o.get(t);if(!r){const n=new Map;let i;const a=new IntersectionObserver((t=>{t.forEach((t=>{var r;const o=t.isIntersecting&&i.some((e=>t.intersectionRatio>=e));e.trackVisibility&&void 0===t.isVisible&&(t.isVisible=o),null==(r=n.get(t.target))||r.forEach((e=>{e(o,t)}))}))}),e);i=a.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),r={id:t,observer:a,elements:n},o.set(t,r)}return r}(r),f=s.get(e)||[];return s.has(e)||s.set(e,f),f.push(t),u.observe(e),function(){f.splice(f.indexOf(t),1),0===f.length&&(s.delete(e),u.unobserve(e)),0===s.size&&(u.disconnect(),o.delete(l))}}function u({threshold:e,delay:t,trackVisibility:r,rootMargin:o,root:i,triggerOnce:a,skip:c,initialInView:u,fallbackInView:s,onChange:f}={}){var d;const[p,m]=n.useState(null),v=n.useRef(),[y,h]=n.useState({inView:!!u,entry:void 0});v.current=f,n.useEffect((()=>{if(c||!p)return;let n;return n=l(p,((e,t)=>{h({inView:e,entry:t}),v.current&&v.current(e,t),t.isIntersecting&&a&&n&&(n(),n=void 0)}),{root:i,rootMargin:o,threshold:e,trackVisibility:r,delay:t},s),()=>{n&&n()}}),[Array.isArray(e)?e.toString():e,p,i,o,a,c,r,s,t]);const g=null==(d=y.entry)?void 0:d.target,b=n.useRef();p||!g||a||c||b.current===g||(b.current=g,h({inView:!!u,entry:void 0}));const w=[m,y.inView,y.entry];return w.ref=w[0],w.inView=w[1],w.entry=w[2],w}n.Component}}]);
|
|
1
|
+
/*! For license information please see 719-d7e4c6456e-streamable-learning.chunk.js.LICENSE.txt */
|
|
2
|
+
(self.webpackChunk_clickview_streamable_learning=self.webpackChunk_clickview_streamable_learning||[]).push([[719],{63112:(e,t,r)=>{"use strict";r.d(t,{o:()=>i});var n=r(32735),o=r(86319),i=n.memo((function(e){var t=e.tagClass,r="partial-loading-background d-inline-block rounded-pill py-1 px-2 mb-1 me-1 text-nowrap ".concat(void 0===t?"":t," ").concat(o.Z.partialTag);return n.createElement("div",{className:"mt-1"},n.createElement("span",{className:r}," "))}))},65163:(e,t,r)=>{"use strict";r.d(t,{QL:()=>n.Q,eb:()=>n.e});var n=r(72861);r(14244)},61699:(e,t,r)=>{"use strict";r.d(t,{o:()=>u});var n=r(99940),o=r(97395);function i(e){return function(e){if(Array.isArray(e))return a(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 a(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?a(e,t):void 0}}(e)||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 a(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var c=r(62803).v.CLASSIFICATION_COLLECTION,l=function(e){return"/api/domain/v1/subjects/presentations/available".concat(e?"?type=".concat(e):"")},u={availablePresentations:function(e){return{url:l(e),key:"available:presentations:".concat(e),normalizeOptions:{namespace:"presentation"}}},setPresentation:function(e,t,r,o){return{url:(i=e.id,"/api/domain/v1/subjects/presentations/".concat(i)),key:"set:".concat(t,":presentation"),type:n.k.POST,data:{},normalizeOptions:{namespace:"presentation"},invalidationKeys:["current:presentation:".concat(t.toLocaleLowerCase()),"subject:preference:options","my:subject:preferences","level:preference:options","my:level:preferences","classifications","presentation:audiences","widgets:v3","content:update:videos","content:updates"],success:r,error:o};var i},allSubjectPreferences:function(){return{url:"/api/domain/v1/subjects/preferences?query=".concat(c,"&type=subject"),key:"subject:preference:options"}},mySubjectPreferences:function(e){return{url:"/api/domain/v1/subjects/classifications/following?query=".concat(c),key:"my:subject:preferences",normalize:!1,success:e}},followSubjects:function(e,t,r,o){return{url:"/api/domain/v1/subjects/classifications/following",key:"follow:subjects",data:e,type:n.k.POST,success:t,error:r,always:o,invalidationKeys:[].concat(i(e.map((function(e){return"classification:".concat(e)}))),["my:subject:preferences","classifications","content:updates"])}},unfollowSubjects:function(e,t,r,a){return{url:(c=e,o._.urlBuilder("/api/domain/v1/subjects/classifications/following",{id:c})),key:"unfollow:subjects",type:n.k.DELETE,success:t,error:r,always:a,invalidationKeys:[].concat(i(e.map((function(e){return"classification:".concat(e)}))),["my:subject:preferences","classifications","content:updates"])};var c},allLevelPreferences:function(){return{url:"/api/domain/v1/subjects/audiences?type=subject",key:"level:preference:options",normalize:!1}},myLevelPreferences:function(e){return{url:"/api/domain/v1/subjects/audiences/following",key:"my:level:preferences",normalizeOptions:{idAttribute:"masterId"},success:e}},followLevels:function(e,t,r,o){return{url:"/api/domain/v1/subjects/audiences/following",key:"follow:levels",data:e.map((function(e){return e.masterId})),normalize:!1,updateState:{keys:"my:level:preferences",updateData:function(t){var r,n=null!==(r=t["my:level:preferences"])&&void 0!==r?r:[];return e.forEach((function(e){n.find((function(t){return t.masterId===e.masterId}))||n.push(e)})),{"my:level:preferences":n}}},type:n.k.POST,success:t,error:r,always:o}},unfollowLevels:function(e,t,r,a){return{url:(c=e.map((function(e){return e.masterId})),o._.urlBuilder("/api/domain/v1/subjects/audiences/following",{id:c})),key:"unfollow:levels",normalize:!1,updateState:{keys:"my:level:preferences",updateData:function(t){var r,n=null!==(r=t["my:level:preferences"])&&void 0!==r?r:[];return e.forEach((function(e){if(n.find((function(t){return t.masterId===e.masterId}))){var t=n.findIndex((function(t){return t.masterId===e.masterId}));n=[].concat(i(n.slice(0,t)),i(n.slice(t+1)))}})),{"my:level:preferences":n}}},type:n.k.DELETE,success:t,error:r,always:a};var c}}},32397:(e,t,r)=>{"use strict";r.r(t),r.d(t,{VideoGuidanceClassroomGuideView:()=>je});var n=r(32735),o=r(81886),i=r(20354),a=r(28400),c=r(92582),l=r(65858),u=r(42648),s=r(23481),f=r(75896),d=r(72189),p=r(38496),m=r(83345),v=r(85597);const y={curriculumSubject:"i4D3h",curriculumSet:"WCdf9",areaLeafSet:"o8H8s",closeButton:"McsPs",leafDescriptionOnly:"xmEEo"};function h(e){return h="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},h(e)}function g(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=h(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=h(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==h(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function b(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var w=/(.*)\s\((.*)?\)/i,E="shared.curriculumLinks",k="text-nowrap font-size-normal rounded-pill py-1 px-2 my-0 d-inline-block fw-semibold";function C(e){function t(){var t=k+" bg-white border";return!e.leaf.name&&e.uiContainsCodes?t+" border-secondary text-secondary":t+" border-dark"}var r=n.useRef();return n.useEffect((function(){if(r.current){var t=r.current.getBoundingClientRect().width;e.trySetMaxCodeWidth(t)}}),[r.current]),n.createElement("div",{className:"d-flex"},e.leaf.description?!e.leaf.name&&e.uiContainsCodes?n.createElement(n.Fragment,null,n.createElement("div",{className:"me-1 align-self-start",style:{minWidth:e.codeWidth?"".concat(e.codeWidth,"px"):"auto"}},n.createElement("h5",{ref:r,className:t()},n.createElement(m.x,{namespace:E,phrase:"noCode"}))),n.createElement("p",{className:"m-0 align-self-center",dangerouslySetInnerHTML:{__html:e.leaf.description}})):e.leaf.name||e.uiContainsCodes?n.createElement(n.Fragment,null,n.createElement("div",{className:"me-1 align-self-start",style:{minWidth:e.codeWidth?"".concat(e.codeWidth,"px"):"auto"}},n.createElement("h5",{ref:r,className:t()},e.leaf.name)),n.createElement("p",{className:"m-0 align-self-center",dangerouslySetInnerHTML:{__html:e.leaf.description}})):n.createElement("p",{className:"m-0",dangerouslySetInnerHTML:{__html:e.leaf.description}}):n.createElement("p",{className:"m-0",dangerouslySetInnerHTML:{__html:e.leaf.name}}))}function S(e){var t,r,o,i={},a=!1;function c(e){var t="mb-2";return e.name||a?t:t+" ms-4 "+y.leafDescriptionOnly}return e.linkSet.areasAndLeaves.forEach((function(e){var t=e[v.k.Area].map((function(e){return e.name})).join(" - ");i[t]?e[v.k.Leaf].forEach((function(e){i[t].find((function(t){return t.name===e.name}))||(i[t].push(e),e.name&&(a=!0))})):i[t]=e[v.k.Leaf]})),n.createElement(n.Fragment,null,n.createElement("h3",{className:"".concat(k," text-white bg-dark-blue fw-normal me-1 mb-2")},(t=e.linkSet[v.k.Audience].name,r=e.linkSet[v.k.Subject].name,(o=t.match(w))?"".concat(o[1]," • ").concat(o[2]," • ").concat(r):"".concat(t," • ").concat(r))),n.createElement("div",{className:"me-2 ".concat(y.curriculumSubject)},Object.keys(i).map((function(t,r){return n.createElement("div",{key:r,className:y.areaLeafSet},t&&n.createElement("h4",{className:"mb-1 font-size-normal"},t),n.createElement("ul",{className:"list-unstyled"},i[t].map((function(t){return n.createElement("li",{key:t.id,className:c(t)},n.createElement(C,{leaf:t,codeWidth:e.codeWidth,trySetMaxCodeWidth:e.trySetMaxCodeWidth,uiContainsCodes:a}))}))))}))))}function O(e){var t,r,o,i=(r=n.useState(0),o=2,function(e){if(Array.isArray(e))return e}(r)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,c=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(r,o)||function(e,t){if(e){if("string"==typeof e)return b(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?b(e,t):void 0}}(r,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.")}()),a=i[0],c=i[1];function l(e){c((function(t){return t>=e?t:e}))}var u=n.useMemo((function(){var t={};return e.curriculumLinks.forEach((function(e){var r=null,n=null,o=[],i=[];e.forEach((function(e){switch(e.type){case v.k.Subject:r=e;break;case v.k.Audience:n=e;break;case v.k.Area:o.push(e);break;case v.k.Leaf:i.push(e)}}));var a="".concat(r.id,":").concat(n.id);t[a]?t[a].areasAndLeaves.push(g(g({},v.k.Area,o),v.k.Leaf,i)):t[a]=g(g(g({},v.k.Subject,r),v.k.Audience,n),"areasAndLeaves",[g(g({},v.k.Area,o),v.k.Leaf,i)])})),t}),[e.curriculumLinks]);return e.curriculumLinks?(null===(t=e.curriculumLinks)||void 0===t?void 0:t.length)?n.createElement("ul",{className:"list-unstyled m-0"},Object.keys(u).map((function(e,t){return n.createElement("li",{key:"linkset-".concat(t),className:y.curriculumSet},n.createElement(S,{linkSet:u[e],trySetMaxCodeWidth:l,codeWidth:a}))}))):n.createElement(p.p,{emptyStateUrl:e.emptyStateUrl}):n.createElement(d.Z,null)}var j=r(11607),x=r(54610),L=r(67453),P=r(90125),I=s.T.encloseNamespace("shared.curriculumLinks");function T(e){var t=e.data;return n.createElement(j.L,{key:t.id,className:"p-1 pe-2 rounded-pill d-inline-flex align-items-center cursor-pointer ".concat(P.Z.tag," ").concat(e.selected?P.Z.selected:""),onClick:function(){return e.onChangeCurriculum(t.id.toString())},"aria-label":"".concat(I("ariaFilter")," ").concat(t.name)},n.createElement("div",{className:"bg-white ".concat(P.Z.cover," rounded-circle border")},n.createElement("img",{src:L.j.createUrl(t.cover.url,{size:x.h2.Small}),alt:t.name,className:"rounded-circle"})),n.createElement("div",{className:"ms-2"},t.name))}var A=r(63112),N=r(65163);function _(e){var t,r,o;return n.createElement(N.eb,{collection:(null===(t=e.selectedCurriculum)||void 0===t?void 0:t.id)?e.curriculums.nonEmptyCurriculums:null,childClassName:"flex-shrink-0",childComponent:function(t){var r,o;return n.createElement(T,Object.assign({},t,{selected:(null===(o=null===(r=e.selectedCurriculum)||void 0===r?void 0:r.id)||void 0===o?void 0:o.toString())===t.data.id.toString(),onChangeCurriculum:e.onChangeCurriculum}))},partialLoadingComponent:function(){return n.createElement(A.o,null)},widgetDataDeps:[null===(o=null===(r=e.selectedCurriculum)||void 0===r?void 0:r.id)||void 0===o?void 0:o.toString(),e.onChangeCurriculum],noNegativePadding:e.noNegativePadding})}var V=r(59087),D=r.n(V),R=r(93264),M=r(16367),U=r(34468),G=r(73758);const H={learningIntention:"MHM6O",highlightPoi:"U7Q6x",icon:"H1xbT"};function F(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var B=/\[\]\(cv:\/\/poi\?id=\d+\)\n*/g;const z={poiEntry:"vr6R9",poiText:"znHZF",public:"v0BZ9",poiTimeStamp:"AdKwe",wideBadge:"YR2Hh"};function W(e){var t=R.T.ToDisplayDuration(1e3*e.poi.startTime),r=function(e,t){var r=(0,n.useRef)();function o(){e&&G.n.trigger("glance:poi:mouseover",e)}function i(){G.n.trigger("glance:poi:mouseleave")}return(0,U.R)("player:poi:mouseover",(function(t){var n,o,i;(null==t?void 0:t.id)&&(null===(n=null==e?void 0:e.id)||void 0===n?void 0:n.toString())===(null===(o=null==t?void 0:t.id)||void 0===o?void 0:o.toString())&&(null===(i=r.current)||void 0===i||i.classList.add(H.highlightPoi))}),null,t),(0,U.R)("player:poi:mouseleave",(function(){var e;null===(e=r.current)||void 0===e||e.classList.remove(H.highlightPoi)}),null,t),(0,n.useEffect)((function(){var e,n;if(r.current&&t)return null===(e=r.current)||void 0===e||e.addEventListener("mouseover",o),null===(n=r.current)||void 0===n||n.addEventListener("mouseleave",i),function(){var e,t;null===(e=r.current)||void 0===e||e.removeEventListener("mouseover",o),null===(t=r.current)||void 0===t||t.removeEventListener("mouseleave",i)}}),[r.current]),r}(e.poi,!e.suppressInteractivity);return e.suppressInteractivity?n.createElement("div",{className:"d-flex ".concat(z.poiEntry," mb-2")},n.createElement("span",{className:"d-flex rounded-pill justify-content-center align-items-center fw-semibold text-info bg-light-blue ".concat(z.poiTimeStamp," ").concat(e.wideBadge?z.wideBadge:"")},t),n.createElement("div",{className:"".concat(z.public," ms-2")},e.poi.description)):n.createElement(j.L,{key:e.poi.startTime,className:"d-flex ".concat(z.poiEntry," mb-2 cursor-pointer"),onClick:function(){return e.onClickPoiItem(e.poi.startTime)},ref:r},n.createElement("div",{className:"d-flex rounded-pill justify-content-center align-items-center fw-semibold text-info bg-light-blue ".concat(z.poiTimeStamp," ").concat(e.wideBadge?z.wideBadge:"")},t),n.createElement("div",{className:"ms-2 ".concat(z.poiText)},e.poi.description))}var Z="shared.pointsOfInterestList";function $(e){var t=e.pointsOfInterest.sort((function(e,t){return e.startTime-t.startTime})),r=t.some((function(e){return e.startTime>=3600}));return n.createElement("div",null,n.createElement("h2",{className:"h6 my-2"},n.createElement(m.x,{namespace:Z,phrase:"heading"})),n.createElement("div",null,t.map((function(t){return n.createElement(W,{key:t.startTime,poi:t,suppressInteractivity:e.suppressInteractivity,onClickPoiItem:e.onClickPoiItem,wideBadge:r})}))))}var Q=r(83914),K=r(87311),Y=r(91743),q=r(64444),X=r(44829),J=r(35223),ee=r(40370);function te(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var re="shared.videoAtAGlanceV2",ne=s.T.encloseNamespace(re),oe=365;function ie(e){return e.hideScrollbar?n.createElement(n.Fragment,null,e.children):n.createElement("div",{className:"rounded border mb-4 bg-white"},n.createElement(u.ZP,{autoHeight:!0,autoHeightMax:oe},n.createElement("div",{className:"px-3 px-3 pt-3 pb-2"},e.children)))}function ae(e){var t,r,o,i=function(e,t){var r,o,i,a=(o=(0,n.useState)(""),i=2,function(e){if(Array.isArray(e))return e}(o)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,c=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(o,i)||function(e,t){if(e){if("string"==typeof e)return F(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?F(e,t):void 0}}(o,i)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),c=a[0],l=a[1];return(0,n.useEffect)((function(){if(t){var r=(n=e.glance,o=n.content.replace(B,""),M(o));l(r)}var n,o}),[null===(r=e.glance)||void 0===r?void 0:r.content,t]),c}(e.video,e.canViewGlance),a=(r=n.useState(""),o=2,function(e){if(Array.isArray(e))return e}(r)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,c=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(r,o)||function(e,t){if(e){if("string"==typeof e)return te(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?te(e,t):void 0}}(r,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.")}()),u=a[0],s=a[1],f=function(){var t,r,n,o;return ee.M.isInteractive(e.video)||!(null===(r=null===(t=e.video.tags)||void 0===t?void 0:t.data)||void 0===r?void 0:r.length)?null:null===(o=null===(n=e.video.tags)||void 0===n?void 0:n.data)||void 0===o?void 0:o.filter((function(e){return e.tagType===X.Q.Pedagogy||e.tagType===X.Q.Skill}))}(),d=n.useRef(null);return n.useEffect((function(){var e;(null===(e=d.current)||void 0===e?void 0:e.innerText)&&s(d.current.innerText)}),[null===(t=d.current)||void 0===t?void 0:t.innerText]),e.canViewGlance?n.createElement("section",{className:"play-page-section"},n.createElement(ie,{hideScrollbar:e.hideScrollbar},n.createElement("h2",{className:"h6 mb-2"},n.createElement(m.x,{namespace:re,phrase:"learningIntention"})),n.createElement("div",{className:"mb-3 ".concat(H.learningIntention)},n.createElement(q.u,{title:ne("copy"),spanHack:!0,spanHackClassName:H.icon},n.createElement(D(),{text:u},n.createElement(Q.x,{className:"svg-container me-1 cursor-pointer",svgName:J.vn.Copy,size:Q.S.Small,onClick:function(){var t={id:e.video.glance.id,name:e.video.glance.name,videoId:e.video.id,videoName:e.video.name,learningIntention:u},r={actionType:l.Vw.Copy,entity:l.py.Glance,location:l.LZ.PlayPage};c.k.logUserAction(t,r)}}))),n.createElement("div",{dangerouslySetInnerHTML:{__html:i},className:"d-inline",ref:d})),!!(null==f?void 0:f.length)&&n.createElement("div",{className:"mb-1"},n.createElement(Y.P,Object.assign({tags:f},K.G.getTagActionProps(e.getTagAppLink,e.onClickTag,e.suppressInteractivity),{className:"mt-2"}))),!!e.pointsOfInterest.length&&n.createElement($,{pointsOfInterest:e.pointsOfInterest,suppressInteractivity:e.suppressInteractivity,onClickPoiItem:function(t){e.setStartTime(t)}}))):n.createElement(n.Fragment,null)}var ce=r(58960),le=r(13876),ue=r(69883);function se(e){return se="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},se(e)}function fe(){fe=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function u(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,r){return e[t]=r}}function s(e,t,r,n){var i=t&&t.prototype instanceof h?t:h,a=Object.create(i.prototype),c=new I(n||[]);return o(a,"_invoke",{value:j(e,r,c)}),a}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=s;var d="suspendedStart",p="suspendedYield",m="executing",v="completed",y={};function h(){}function g(){}function b(){}var w={};u(w,a,(function(){return this}));var E=Object.getPrototypeOf,k=E&&E(E(T([])));k&&k!==r&&n.call(k,a)&&(w=k);var C=b.prototype=h.prototype=Object.create(w);function S(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function O(e,t){function r(o,i,a,c){var l=f(e[o],e,i);if("throw"!==l.type){var u=l.arg,s=u.value;return s&&"object"==se(s)&&n.call(s,"__await")?t.resolve(s.__await).then((function(e){r("next",e,a,c)}),(function(e){r("throw",e,a,c)})):t.resolve(s).then((function(e){u.value=e,a(u)}),(function(e){return r("throw",e,a,c)}))}c(l.arg)}var i;o(this,"_invoke",{value:function(e,n){function o(){return new t((function(t,o){r(e,n,t,o)}))}return i=i?i.then(o,o):o()}})}function j(t,r,n){var o=d;return function(i,a){if(o===m)throw Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var l=x(c,n);if(l){if(l===y)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===d)throw o=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=m;var u=f(t,r,n);if("normal"===u.type){if(o=n.done?v:p,u.arg===y)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(o=v,n.method="throw",n.arg=u.arg)}}}function x(t,r){var n=r.method,o=t.iterator[n];if(o===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,x(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=f(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function L(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function P(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function I(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(L,this),this.reset(!0)}function T(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return i.next=i}}throw new TypeError(se(t)+" is not iterable")}return g.prototype=b,o(C,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=u(b,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,u(e,l,"GeneratorFunction")),e.prototype=Object.create(C),e},t.awrap=function(e){return{__await:e}},S(O.prototype),u(O.prototype,c,(function(){return this})),t.AsyncIterator=O,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new O(s(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},S(C),u(C,l,"Generator"),u(C,a,(function(){return this})),u(C,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=T,I.prototype={constructor:I,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(P),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(n,o){return c.type="throw",c.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var l=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(l&&u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},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),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),P(r),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;P(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:T(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),y}},t}function de(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var pe=function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function a(e){try{l(n.next(e))}catch(e){i(e)}}function c(e){try{l(n.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,c)}l((n=n.apply(e,t||[])).next())}))},me=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},ve="shared.videoGuidanceClassroomGuidePopup",ye=350;function he(e){var t,r,i,a,p,v,y,h=(v=n.useState(),y=2,function(e){if(Array.isArray(e))return e}(v)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,c=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(v,y)||function(e,t){if(e){if("string"==typeof e)return de(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?de(e,t):void 0}}(v,y)||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=h[0],b=h[1],w=(0,ue.Z)();n.useEffect((function(){if(!e.isLoading&&e.curriculums&&!g){var t=e.curriculums.activeCurriculum?e.curriculums.activeCurriculum:f.m.first(e.curriculums.availableCurriculums);b(t)}}),[e.isLoading,null===(r=null===(t=e.curriculums)||void 0===t?void 0:t.activeCurriculum)||void 0===r?void 0:r.id]);var E=e.canViewCurriculumLinks&&(null===(i=e.curriculums)||void 0===i?void 0:i.customerHasCurriculumLinks);return n.createElement(ce.G,{closePopup:e.onClickClose,showLoadingSpinner:e.isLoading,title:s.T.getPhrase(ve,"classroomGuide"),size:"lg"},!e.isLoading&&n.createElement(n.Fragment,null,n.createElement(u.ZP,{autoHeightMax:ye,autoHeightMin:ye,autoHeight:!0,className:"pb-3",renderThumbVertical:function(e){var t=e.style,r=me(e,["style"]);return n.createElement("div",Object.assign({},r,{style:Object.assign(Object.assign({},t),{borderRadius:"inherit",backgroundColor:"rgba(0, 0, 0, 0.2)",zIndex:5}),className:"thumb-vertical"}))}},n.createElement("div",{className:E?"mb-4":""},n.createElement(ae,{video:e.video,pointsOfInterest:e.pointsOfInterest,setStartTime:function(t){o.Q.C$.trigger(e.getVideoAppLink(e.video,{t})),e.closePopup()},getTagAppLink:e.getTagAppLink,suppressInteractivity:e.canViewPublicLayout,onClickTag:e.closePopup,canViewGlance:e.canViewGlance,hideScrollbar:!0})),E&&n.createElement(n.Fragment,null,n.createElement("h2",{className:"h6"},n.createElement(m.x,{namespace:ve,phrase:"curriculumLinks"})),n.createElement("div",{className:"mb-2"},n.createElement(_,{curriculums:e.curriculums,selectedCurriculum:g,onChangeCurriculum:function(t){var r,n,o;return pe(this,void 0,void 0,fe().mark((function i(){var a;return fe().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(null==(a=e.curriculums.availableCurriculums.find((function(e){return e.id.toString()===t})))?void 0:a.id){i.next=3;break}return i.abrupt("return",!1);case 3:if((null===(n=null===(r=e.curriculums.activeCurriculum)||void 0===r?void 0:r.id)||void 0===n?void 0:n.toString())!==(null===(o=null==a?void 0:a.id)||void 0===o?void 0:o.toString())){i.next=5;break}return i.abrupt("return",!1);case 5:return b(a),i.prev=6,i.next=9,e.curriculums.updateCurriculum(a);case 9:c.k.logUserAction({id:a.id,name:a.id,description:a.description,videoId:e.video.id,videoName:e.video.name},{entity:l.py.Presentation,actionType:l.Vw.Select,descriptor:l.kD.Curriculum,location:l.LZ.ClassroomGuidancePopup}),i.next=16;break;case 12:i.prev=12,i.t0=i.catch(6),b(g),w.error(s.T.getPhrase(ve,"updateCurriculumFailed"));case 16:case"end":return i.stop()}}),i,null,[[6,12]])})))},noNegativePadding:!0})),(null===(a=e.curriculums)||void 0===a?void 0:a.hasLoaded)?n.createElement(O,{curriculumLinks:null===(p=e.curriculums)||void 0===p?void 0:p.curriculumLinks,emptyStateUrl:e.curriculumLinksEmptyStateUrl}):n.createElement(d.Z,null))),n.createElement(le.u,null,n.createElement(le.u.Cancel,{onClick:e.onClickClose,text:s.T.getPhrase(ve,"close")}),n.createElement(le.u.Submit,{text:s.T.getPhrase(ve,"viewVideo"),variant:"dark",onClick:e.onClickViewVideo}))))}var ge=r(31949),be=r(11565),we=r(99742),Ee=r(96359),ke=r(41135),Ce=r(65751),Se=r(89758),Oe=r(50933);function je(e){var t,r=i.a.useBasicFetch(be.R.video(e.id)),u=(0,Oe.l)(e.id),s=(0,Se.M)(e.id,!0),f=i.a.useBasicFetch(ge.N.currentUser());return n.createElement(he,{isLoading:!r.hasCompleted||!u.hasCompleted,video:r.data,pointsOfInterest:u.items,curriculums:s,onClickClose:function(){c.k.logUserAction({id:r.data.id,name:r.data.name},{entity:l.py.Video,location:l.LZ.ClassroomGuidancePopup,actionType:l.Vw.Click,descriptor:l.od.Close}),e.closePopup()},onClickViewVideo:function(){c.k.logUserAction({id:r.data.id,name:r.data.name},{entity:l.py.Video,location:l.LZ.ClassroomGuidancePopup,actionType:l.Vw.Click,descriptor:l.od.ViewVideo}),o.Q.C$.trigger({application:ke.O.VIDEOS,action:Ee.e.Videos.PLAY_VIDEO,args:[r.data.id,a.m.slugify(r.data.name)]}),e.closePopup()},curriculumLinksEmptyStateUrl:we.W.EmptyStates.CURRICULUM_LINKS,getVideoAppLink:Ce.y.videoType,getTagAppLink:Ce.y.tag,canViewCurriculumLinks:!0,canViewPublicLayout:!(null===(t=f.data)||void 0===t?void 0:t.isAuthenticated),canViewGlance:!0,closePopup:e.closePopup})}},91969:(e,t,r)=>{"use strict";var n=r(47033),o={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var r,i,a,c,l,u,s=!1;t||(t={}),r=t.debug||!1;try{if(a=n(),c=document.createRange(),l=document.getSelection(),(u=document.createElement("span")).textContent=e,u.ariaHidden="true",u.style.all="unset",u.style.position="fixed",u.style.top=0,u.style.clip="rect(0, 0, 0, 0)",u.style.whiteSpace="pre",u.style.webkitUserSelect="text",u.style.MozUserSelect="text",u.style.msUserSelect="text",u.style.userSelect="text",u.addEventListener("copy",(function(n){if(n.stopPropagation(),t.format)if(n.preventDefault(),void 0===n.clipboardData){r&&console.warn("unable to use e.clipboardData"),r&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var i=o[t.format]||o.default;window.clipboardData.setData(i,e)}else n.clipboardData.clearData(),n.clipboardData.setData(t.format,e);t.onCopy&&(n.preventDefault(),t.onCopy(n.clipboardData))})),document.body.appendChild(u),c.selectNodeContents(u),l.addRange(c),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");s=!0}catch(n){r&&console.error("unable to copy using execCommand: ",n),r&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),s=!0}catch(n){r&&console.error("unable to copy using clipboardData: ",n),r&&console.error("falling back to prompt"),i=function(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}("message"in t?t.message:"Copy to clipboard: #{key}, Enter"),window.prompt(i,e)}}finally{l&&("function"==typeof l.removeRange?l.removeRange(c):l.removeAllRanges()),u&&document.body.removeChild(u),a()}return s}},44818:(e,t,r)=>{"use strict";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)}Object.defineProperty(t,"__esModule",{value:!0}),t.CopyToClipboard=void 0;var o=c(r(32735)),i=c(r(91969)),a=["text","onCopy","options","children"];function c(e){return e&&e.__esModule?e:{default:e}}function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function u(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?l(Object(r),!0).forEach((function(t){m(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function f(e,t){return f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},f(e,t)}function d(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}function m(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var v=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&f(e,t)}(y,e);var t,r,c,l,v=(c=y,l=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=p(c);if(l){var r=p(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return d(e)}(this,e)});function y(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,y);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return m(d(e=v.call.apply(v,[this].concat(r))),"onClick",(function(t){var r=e.props,n=r.text,a=r.onCopy,c=r.children,l=r.options,u=o.default.Children.only(c),s=(0,i.default)(n,l);a&&a(n,s),u&&u.props&&"function"==typeof u.props.onClick&&u.props.onClick(t)})),e}return t=y,(r=[{key:"render",value:function(){var e=this.props,t=(e.text,e.onCopy,e.options,e.children),r=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,a),n=o.default.Children.only(t);return o.default.cloneElement(n,u(u({},r),{},{onClick:this.onClick}))}}])&&s(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),y}(o.default.PureComponent);t.CopyToClipboard=v,m(v,"defaultProps",{onCopy:void 0,options:void 0})},59087:(e,t,r)=>{"use strict";var n=r(44818).CopyToClipboard;n.CopyToClipboard=n,e.exports=n},47033:e=>{e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,r=[],n=0;n<e.rangeCount;n++)r.push(e.getRangeAt(n));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||r.forEach((function(t){e.addRange(t)})),t&&t.focus()}}},34152:(e,t,r)=>{"use strict";r.d(t,{YD:()=>u});var n=r(32735),o=(Object.defineProperty,new Map),i=new WeakMap,a=0,c=void 0;function l(e,t,r={},n=c){if(void 0===window.IntersectionObserver&&void 0!==n){const o=e.getBoundingClientRect();return t(n,{isIntersecting:n,target:e,intersectionRatio:"number"==typeof r.threshold?r.threshold:0,time:0,boundingClientRect:o,intersectionRect:o,rootBounds:o}),()=>{}}const{id:l,observer:u,elements:s}=function(e){const t=function(e){return Object.keys(e).sort().filter((t=>void 0!==e[t])).map((t=>{return`${t}_${"root"===t?(r=e.root,r?(i.has(r)||(a+=1,i.set(r,a.toString())),i.get(r)):"0"):e[t]}`;var r})).toString()}(e);let r=o.get(t);if(!r){const n=new Map;let i;const a=new IntersectionObserver((t=>{t.forEach((t=>{var r;const o=t.isIntersecting&&i.some((e=>t.intersectionRatio>=e));e.trackVisibility&&void 0===t.isVisible&&(t.isVisible=o),null==(r=n.get(t.target))||r.forEach((e=>{e(o,t)}))}))}),e);i=a.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),r={id:t,observer:a,elements:n},o.set(t,r)}return r}(r),f=s.get(e)||[];return s.has(e)||s.set(e,f),f.push(t),u.observe(e),function(){f.splice(f.indexOf(t),1),0===f.length&&(s.delete(e),u.unobserve(e)),0===s.size&&(u.disconnect(),o.delete(l))}}function u({threshold:e,delay:t,trackVisibility:r,rootMargin:o,root:i,triggerOnce:a,skip:c,initialInView:u,fallbackInView:s,onChange:f}={}){var d;const[p,m]=n.useState(null),v=n.useRef(),[y,h]=n.useState({inView:!!u,entry:void 0});v.current=f,n.useEffect((()=>{if(c||!p)return;let n;return n=l(p,((e,t)=>{h({inView:e,entry:t}),v.current&&v.current(e,t),t.isIntersecting&&a&&n&&(n(),n=void 0)}),{root:i,rootMargin:o,threshold:e,trackVisibility:r,delay:t},s),()=>{n&&n()}}),[Array.isArray(e)?e.toString():e,p,i,o,a,c,r,s,t]);const g=null==(d=y.entry)?void 0:d.target,b=n.useRef();p||!g||a||c||b.current===g||(b.current=g,h({inView:!!u,entry:void 0}));const w=[m,y.inView,y.entry];return w.ref=w[0],w.inView=w[1],w.entry=w[2],w}n.Component}}]);
|