PageSourceSearch

https://www.clickview.net/scripts/BAaRlT2B.chunk.js

js clickview.net collected 2026-10-09 21:45:00 UTC 24,654 bytes, 3 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["scripts/CTjXkdWA2.chunk.js","scripts/BftnFbcr.chunk.js","scripts/DAXXjFlN.chunk.js","scripts/CMDJWWg3.chunk.js","scripts/DPtsihFR.chunk.js","scripts/DMnm3Ewv.chunk.js","scripts/BXTI9cmX.chunk.js","scripts/BHvdJc9z.chunk.js","scripts/TTO6HcNP.chunk.js","scripts/DwIQKUd9.chunk.js","scripts/DFZS3Ffo.chunk.js","scripts/C9RwIAEU.chunk.js","scripts/CsF4wDV1.chunk.js","scripts/CUBiptKh.chunk.js","scripts/COdB3R5K2.chunk.js","scripts/CVtvY0gg.chunk.js","scripts/hQ9iY4r0.chunk.js","scripts/DpCWroEe2.chunk.js","scripts/DytQPMaR2.chunk.js","scripts/CEamUdnf.chunk.js","scripts/C2w0pmFW.chunk.js","scripts/BVnMI-dl.chunk.js","scripts/BruX4yYB.chunk.js","scripts/C1SLt-ar.chunk.js","scripts/Byg072EM.chunk.js","scripts/C5j5LRut2.chunk.js","scripts/Bneb37232.chunk.js","scripts/C1PTqhPY2.chunk.js","scripts/BqHiqdAa.chunk.js","scripts/DZX1tZ-D2.chunk.js","scripts/D45dXVdM2.chunk.js","scripts/CZgWQFsJ.chunk.js","scripts/Bjt_-lTs.chunk.js","scripts/Ky1--4w3.chunk.js","scripts/D2jl5vrv.chunk.js","scripts/CHFCGgvL2.chunk.js","scripts/hTByFGMt.chunk.js","scripts/C-mD9tw7.chunk.js","scripts/c5Sk9vVu.chunk.js"])))=>i.map(i=>d[i]);
2import{o as e}from"./DAXXjFlN.chunk.js";import{Ft as t,bt as n,r,ut as i}from"./CMDJWWg3.chunk.js";import{r as a,t as o}from"./DPtsihFR.chunk.js";import{C as s,_ as c,a as l,b as u,f as d,l as f,r as p,u as m,x as h,y as g}from"./BftnFbcr.chunk.js";import"./DFZS3Ffo.chunk.js";import{n as _}from"./B785hxeE.chunk.js";import{t as v}from"./B_BV48Fy.chunk.js";import{t as y}from"./CQyJ7YGa.chunk.js";import{t as ee}from"./ChzgIDQv.chunk.js";import{t as te}from"./Ct1xqbFp.chunk.js";import{t as b}from"./BXTI9cmX.chunk.js";import{a as ne,i as x,r as re,t as ie}from"./BYSskNbK.chunk.js";import{a as S,d as ae,l as C}from"./CEamUdnf.chunk.js";import{t as oe}from"./CjA4Q5pm.chunk.js";import{N as w,U as T,l as E,z as D}from"./BHvdJc9z.chunk.js";import{n as se,t as ce}from"./BoN0D_lY.chunk.js";import{t as O}from"./C7weV7Ce.chunk.js";import{t as k}from"./DTGfiG8Y.chunk.js";import{n as le}from"./Dn1hp1IN2.chunk.js";import{t as ue}from"./C5j5LRut2.chunk.js";import{t as de}from"./C1PTqhPY2.chunk.js";import{t as fe}from"./Bo5OB-YD2.chunk.js";import{t as pe}from"./Ky1--4w3.chunk.js";import{t as me}from"./CZgWQFsJ.chunk.js";import{t as A}from"./Bjt_-lTs.chunk.js";import{t as j}from"./CVtvY0gg.chunk.js";import{t as M}from"./CgCqPbjJ.chunk.js";import{t as N}from"./ckbu5kCm.chunk.js";import{t as P}from"./D_gWf2lC.chunk.js";import{n as he,t as ge}from"./CxQnIZ3G.chunk.js";import{t as F}from"./TTO6HcNP.chunk.js";import{t as _e}from"./odtNXW-p.chunk.js";import{t as I}from"./B_N30_Kb.chunk.js";import{a as ve,i as L,o as R}from"./hQ9iY4r0.chunk.js";import{n as z,t as ye}from"./BFXddaSP.chunk.js";import{t as be}from"./YjWbDb2Y.chunk.js";import{t as B}from"./DwIQKUd9.chunk.js";import{t as xe}from"./C9RwIAEU.chunk.js";import{t as Se}from"./Bj85BGmx.chunk.js";import{t as Ce}from"./DlFHFcJP.chunk.js";import{t as we}from"./Dy1f-lNJ.chunk.js";import{t as Te}from"./BDu69--Y.chunk.js";import{t as Ee}from"./D7t5_of1.chunk.js";import{n as De}from"./Bsc7roaB.chunk.js";import{t as Oe}from"./BDZgYIcf.chunk.js";import{t as ke}from"./BocITs4B.chunk.js";import{t as Ae}from"./XIE88U01.chunk.js";import{t as je}from"./BDthD6uY2.chunk.js";import{t as Me}from"./BYQ4R4H_2.chunk.js";import{r as V}from"./DrTMmlHv2.chunk.js";import{t as Ne}from"./DpCWroEe2.chunk.js";import{i as H,n as U,r as Pe}from"./Bqm7BykF2.chunk.js";import{t as Fe}from"./BKSSWxpx2.chunk.js";import{t as Ie}from"./BIkiJ9NY.chunk.js";import{t as Le}from"./JJWk734R.chunk.js";var Re={locale(){return{url:`/api/locale`,key:`locale`,bootstrapName:pe.LOCALE}},phrases(){return{url:`/api/phrases`,key:`phrases`,bootstrapName:pe.PHRASES}}};r();var W=e(a(),1),ze=he(),Be=`application:options`,Ve=class extends p{constructor(e){super(),this.clients={},this.enrichers={},_e.get(Be).set(e??{})}get name(){return L.Analytics}registerTransport(e,t){return this.transport=new e(t),this.bindTransportListeners(),this}bindTransportListeners(){this.listenTo(ve.ANALYTICS,R.Inlet,this.onEvent)}registerClient(e,t){return this.validateConstructor(e),this.clients[e.prototype.name]=e.prototype.name,this.transport.subscribe(new e(t)),this}registerEnricher(e,t){this.validateConstructor(e);let n=new e(t);return this.enrichers[n.name]=n,this.registerMiddleware(i(n.enrich,n)),this}hasEnricher(e){return!!this.enrichers[e.prototype.name]}onEvent(e){this.executeMiddleware(e,e=>{this.transport.publish(e)})}validateConstructor(e){let t=e.prototype.name;t||c.throw(new m(`Classes registered with ${this.name} must have a unique name property.`));let n=t=>I.isFunction(e.prototype.isType)&&e.prototype.isType(t);(n(`BaseAnalyticsClient`)||t===`CollectionApiClient`)&&this.clients[t]&&c.throw(new m(`A client class with the name: ${t} has already been registered with ${this.name}`)),n(`BaseAnalyticsEnricher`)&&this.enrichers[t]&&c.throw(new m(`An enricher class named: ${t} has already been registered with ${this.name}`))}registerMiddleware(e){this.executeMiddleware=(t=>(n,r)=>t(n,()=>e(n,r)))(this.executeMiddleware)}executeMiddleware(e,t){t(e)}};r();var He=class extends B{get name(){return`DebuggerClient`}shouldLog(){return f.isDevelopment}log(e){let t=n(e);for(let n in e){let e=t[n];(e instanceof l||e instanceof d)&&(t[n]=e.toJSON())}console.log(`Event Debugger: `,t)}},G=function(e){return e.PageView=`cv_page_view`,e.Click=`cv_click`,e.FormSubmission=`cv_form_submission`,e}({}),Ue=`cookie:consent:accepted`,We=class e extends B{constructor(e){super(e)}get name(){return`GoogleAnalyticsClient`}initialize(e){if(this.setup(),e.logUtmParameters&&(this.utmParameters=ye.getUtmParameters()),e.logAttributionData&&(this.attributionData=z.getDecodedAttributionData()),!xe.needsConsent(e.consent)){this.updateGAConsent(`granted`);return}this.listenTo(s.SHELL,Ue,this.onConsent)}onConsent(e){e?.analytics&&this.updateGAConsent(`granted`)}updateGAConsent(e){if(!this.ready){console.error(`gtag is not ready`);return}window.gtag(`consent`,`update`,{ad_user_data:`denied`,ad_personalization:`denied`,ad_storage:`denied`,anal
2ytics_storage:e})}setup(){if(typeof window.gtag!=`function`){this.ready=!1;return}this.ready=!0}shouldLog(t){if(!this.ready||!Array.isArray(window.dataLayer))return!1;let n=e.eventWhitelist[t.type];return typeof n==`function`&&n(t)}log(e){let{eventName:t,eventData:n}=this.getEventData(e)??{};t&&this.logEvent(t,n)}logEvent(e,t={}){this.ready&&(this.utmParameters&&(t.utm=this.utmParameters),this.attributionData?.internalReferrer&&(t.internalReferrer=this.attributionData.internalReferrer),this.attributionData?.originalReferrer&&(t.originalReferrer=this.attributionData.originalReferrer),window.gtag(`event`,e,t||{}))}getEventData(t){if(t.isType(D.PageView))return e.getPageViewData(t);if(t.isType(D.Click))return e.getClickData(t);if(t.isType(D.Create))return e.getCreateEventData(t)}static getCreateEventData(t){if(e.isTrialCreatedEvent(t))return{eventName:G.FormSubmission,eventData:{event_category:`sign_up`,event_label:`created`}};if(e.isTrialRequestedEvent(t))return{eventName:G.FormSubmission,eventData:{event_category:`sign_up`,event_label:`trial_requested`}};if(e.isTrialCustomerEvent(t))return{eventName:G.FormSubmission,eventData:{event_category:`sign_up`,event_label:`customer`}};if(e.isTrialExistingEvent(t))return{eventName:G.FormSubmission,eventData:{event_category:`sign_up`,event_label:`existing_trial`}}}static getPageViewData(e){if(!(!(`url`in e.data)||!e.data.url))return{eventName:G.PageView,eventData:{url:e.data?.url}}}static getClickData(e){if(e.actionContext?.entity!==E.Url)return{eventName:G.Click,eventData:{entity:e.actionContext?.entity,context:e.actionContext?.descriptor||e.actionContext?.location,id:e.data?.id,value:e.data?.name}}}static get eventWhitelist(){return{[D.PageView]:e.isPageViewEvent,[D.Click]:e.isClickEvent,[D.Create]:e.isCreateEvent}}static isPageViewEvent(e){return`url`in e.data}static isClickEvent(e){return e.type===D.Click}static isCreateEvent(t){return t.type===D.Create?e.isTrialCreatedEvent(t)||e.isTrialRequestedEvent(t)||e.isTrialCustomerEvent(t)||e.isTrialExistingEvent(t):!1}static isTrialCreatedEvent(e){return!(e.type!==D.Create||e.actionContext.descriptor!==w.TrialCreated||e.actionContext.workflowPhase!==T.Complete)}static isTrialRequestedEvent(e){if(e.type!==D.Create)return!1;let{entity:t,descriptor:n}=e.actionContext;return!(t!==E.SignUp||n!==w.TrialRequested||e.actionContext.workflowPhase!==T.Complete)}static isTrialCustomerEvent(e){if(e.type!==D.Create)return!1;let{entity:t,descriptor:n}=e.actionContext;return!(t!==E.SignUp||n!==w.DeadEnd||!(`trialStatus`in e.data)||e.data.trialStatus!==`not-required`)}static isTrialExistingEvent(e){if(e.type!==D.Create)return!1;let{entity:t,descriptor:n}=e.actionContext;return!(t!==E.SignUp||n!==w.DeadEnd||!(`trialStatus`in e.data)||e.data.trialStatus!==`active`)}},Ge=`cv:profileId`,Ke=class{get name(){return L.ProfileApiClient}constructor(e){this.options=e,this.storage=ne.getStorage(),this.masterId=``,this.bindFunctions(),this.options.attributedProfileId&&(this.profileRequest=this.getSetAttributedProfileId())}bindFunctions(){this.createOrUpdate=this.createOrUpdate.bind(this),this.getProfileId=this.getProfileId.bind(this)}getSetAttributedProfileId(){return this.storage.setItem(this.getProfileIdKey(this.masterId),this.options.attributedProfileId),Promise.resolve(this.options.attributedProfileId)}async createOrUpdate(e,t){try{let n=this.buildRequest(e,t);this.profileRequest=this.fetchProfileId(n),await this.profileRequest}catch(e){this.options.onError?.(e)}}async fetchProfileId(e){let t={"Content-Type":`application/json`},n=be.safeUrlConcat(this.options.hostUrl||window.location.origin,this.options.path||`/v1/profiles`),r=await fetch(n,{method:`POST`,headers:t,mode:`cors`,body:JSON.stringify(e)});return await this.handleResponse(r)}async getProfileId(){try{return await this.profileRequest}catch{return}}getStoredProfileId(){return this.storage.getItem(this.getProfileIdKey(this.masterId))}getProfileIdKey(e=``){return e?`${Ge}:${e}`:Ge}buildRequest(e,t={}){let n={...t,countryCode:e?.countryCode,crmId:e?.crmId,email:e?.email,firstName:e?.firstName,lastName:e?.lastName,masterId:e?.masterId,phone:e?.phone},r={};for(let e in n){let t=n[e];t!=null&&(t=t.toString().trim(),t&&(r[e]=t))}return e.masterId&&(this.masterId=e.masterId),{id:this.getStoredProfileId(),instanceRegion:this.options.instanceRegion,properties:r}}async handleResponse(e){if(!e.ok)throw Error(`ProfileApiClient failed to log properties. Status: ${e.status} ${e.statusText}`);let t=await e.json();return this.masterId&&this.storage.removeItem(this.getProfileIdKey()),this.storage.setItem(this.getProfileIdKey(this.masterId),t.id),t.id}},K=class e extends p{static{this.type=`BaseAnalyticsEnricher`}enrich(e,t){}isType(t){return t===e.type}},qe=class extends K{constructor(e){super(e),this.productName=e.productName,this.productVersion=e.productVersion}get name(){return`CoreContextEnricher`}shouldEnrich(e){return!0}enrich(e,t){this.shouldEnrich(e)||t(e),e.enrich(`coreContext`,this.getCoreContext()),t(e)}getCoreContext(){return{timestamp:this.getTimestamp(),product:this.getProductInfo(),request:this.getRequestInfo(),client:this.getClientInfo()}}
2getTimestamp(){return oe.getUtcISOString()}getProductInfo(){return{name:this.productName,version:this.productVersion}}getRequestInfo(){return{referrer:h.GetCurrentReferrer(),requestUrl:h.GetCurrentUrl()}}getClientInfo(){let e=Ce.getOperatingSystem(),t=Ce.getBrowser();return{os:e.os,osVersion:e.version,browser:t.browser,browserVersion:t.version,screenResolution:`${window.screen.width}x${window.screen.height}`,viewportResolution:`${window.innerWidth}x${window.innerHeight}`}}},Je=e(o());r();var Ye=class extends Je.MnObject{},Xe=class extends Ye{get name(){return`EventTransport`}get channelName(){return`event:transport`}publish(e){this.getChannel().trigger(R.Outlet,e)}subscribe(e){let n=e,r=t=>{I.isFunction(n.shouldLog)&&!n.shouldLog(t)||e.log(t)};t(n.listenTo)?n.listenTo(this.getChannel(),R.Outlet,r):this.listenTo(this.getChannel(),R.Outlet,r)}},Ze=`staff`;async function Qe(e){try{return await C(e.store,A.accessPolicy())}catch{return null}}var $e={async getUser(e){let t=await C(e.store,A.currentUser());if(!t.isAuthenticated)return null;let n=C(e.store,fe.customer(t.customerId)),r=C(e.store,A.user(t.id)),i=Qe(e);return $e.mapCurrentUserToAnalyticsUser(t,await r,await n,await i)},mapCurrentUserToAnalyticsUser(e,t,n,r){let i=ue.getUserType(t);return{id:e?.id,countryCode:e?.countryCode,contentRegion:e?.contentRegion,instanceRegion:e?.instanceRegion,customerId:e?.customerId,customerGuid:n?.customerGuid,customerName:e?.customerName,crmId:n?.crmId,role:e?.role,sessionId:e?.sessionId,userGroup:i,yearGroup:i===de.Staff?Ze:t?.masterYearGroup?.name,accessPolicy:r?.id}}},et={shouldRegisterGoogleAnalyticsClient(e,t){return!(!e?.googleAnalyticsProjectId||Ee.isBot()||!t||t[_.StudentExperience])}},tt=class extends K{constructor(e){super(e)}get name(){return`CookieConsentEnricher`}shouldEnrich(e){return!!this.options.getConsent()}enrich(e,t){if(!this.shouldEnrich(e)){t(e);return}e.enrich(`consent`,this.options.getConsent()),t(e)}},nt=class extends K{get name(){return`LtiEnricher`}constructor(e){super(e)}enrich(e,t){e.enrich(`lti`,this.getLtiData()),t(e)}getLtiData(){return{id:this.options.id,gradePassbackEnabled:this.options.gradePassbackEnabled,productFamilyCode:this.options.productFamilyCode,version:this.options.version}}},q=class extends K{get name(){return`PluginEnricher`}constructor(e){super(e),this.consumerKey=e.consumerKey,this.consumerName=e.consumerName,this.isPlugin=e.isPlugin}enrich(e,t){e.enrich(`plugin`,this.getPluginData()),t(e)}getPluginData(){return{isPlugin:this.isPlugin,consumerKey:this.consumerKey,consumerName:this.consumerName}}},rt=class extends K{get name(){return`PresentationEnricher`}shouldEnrich(e){let t=this.options.getData();return!(!t||t.slug===null&&t.activeSlug===null)}enrich(e,t){if(!this.shouldEnrich(e)){t(e);return}e.enrich(`presentation`,this.options.getData()),t(e)}},it={shouldInitialize(e,t,n){return!t.isAuthenticated||!e||e[_.StudentExperience]?!1:!!Oe.has(n?.id)}},at={formatData(e){let t=ce.formatData(e),n={};e.plugin&&(n.plugin=e.plugin);let r={};e.lti&&(r.lti=e.lti);let i={};e.consent&&(i.consent=e.consent);let a={};return e.presentation&&(a.presentation=e.presentation),{...n,...r,...i,...a,...t}}},ot={StoreName:`cookie-consent`,StoreDuration:3600*24*365,EventName:`cookie:consent:accepted`,Categories:{Essential:`essential`,Functional:`functional`,Analytics:`analytics`,Other:`other`}},st=W.default.Router.prototype._routeToRegExp(`share/:id(/)`),ct=W.default.Router.prototype._routeToRegExp(`share/embed/:id(/)`),lt=W.default.Router.prototype._routeToRegExp(`plugin/select(/)`);async function ut(e,t){let{currentUser:n,config:r,version:i,permissions:a,shareObject:o,customer:s,geoLocation:c,accessPolicy:l}=await J(e),u=F.getInstance(De.CookieConsent);if(!n.isAuthenticated){d(o);return}f(r.instanceRegion);return;async function d(e){if(!e){f(r.instanceRegion);return}f(e.ownerInstanceRegion)}async function f(o){let d=new Ve({user:n,config:r}),f=u.getConsent(ot.Categories.Analytics),p=ht({instanceRegion:o,currentUser:n,customer:s,geoLocation:c});if(F.registerSingleton(d),F.registerSingleton(p),d.registerTransport(Xe),d.registerClient(He),d.registerClient(se,{productName:Se.Lite,productVersion:i,regionName:o,collectionApiUrls:r.collectionApiUrls,collectionApiClientId:r.collectionApiClientId,getUser:()=>$e.getUser(e),shouldLog:ce.shouldLog,formatData:at.formatData,logError:Te.logError,logUtmParameters:!0,logAttributionData:!0,getProfileId:p.getProfileId}),ke.shouldInitialize(a,n)){let{BrazeAnalyticsClient:e}=await me(async()=>{let{BrazeAnalyticsClient:e}=await import(`./CTjXkdWA2.chunk.js`);return{BrazeAnalyticsClient:e}}
2,__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17]));d.registerClient(e,{consent:f})}if(et.shouldRegisterGoogleAnalyticsClient(r,a)&&d.registerClient(We,{projectId:r.googleAnalyticsProjectId,logUtmParameters:!0,logAttributionData:!0,consent:f}),it.shouldInitialize(a,n,l)){let{AmplitudeAnalyticsClient:t}=await me(async()=>{let{AmplitudeAnalyticsClient:e}=await import(`./DytQPMaR2.chunk.js`);return{AmplitudeAnalyticsClient:e}},__vite__mapDeps([18,2,6,19,3,5,20,21,22,23,7,24,25,26,27,28,29,30,31,32,33,9,1,4,10,34,35,36,37,38,14,15,16,17,12]));d.registerClient(t,{currentUser:n,apiKey:r.amplitudeKey[o],instanceRegion:o,accessPolicy:l,customer:s,store:e.store})}d.registerEnricher(qe,{productName:`ClickView Primary`,productVersion:i}),d.registerEnricher(tt,{getConsent:()=>u.getConsentData()}),d.registerEnricher(rt,{getData:()=>dt(e,n,a)}),pt(d),mt(d),t(e)}}function dt(e,t,n){let r=e.store.getState(),i=t.isAuthenticated?1:2,a=h.GetCurrentPath()?.split(`/`)?.[i],o=O.getValidPresentationSlugs()?.includes(a),s=r.viewModelData[M.ACTIVE_PRESENTATION_ID]?.activePresentationSlug;return(!t.isAuthenticated||n[_.GuestExperience])&&(s=ie.get(M.ACTIVE_PRESENTATION_ID)?.activePresentationSlug),{slug:o?a:null,activeSlug:o?a:s??null}}async function ft(e){let t=W.default.history.getFragment(h.GetCurrentPath()),n=st.test(t),r=ct.test(t);if(!n&&!r)return null;let i=``;n?i=W.default.Router.prototype._extractParameters(st,t)[0]:r&&(i=W.default.Router.prototype._extractParameters(ct,t)[0]);try{return await C(e.store,we.getShareObject(i))}catch{return null}}function pt(e){if(e.hasEnricher(q))return;let t=W.default.history.getFragment(h.GetCurrentPath());if(lt.test(t))return;let n=re.get(M.PLUGIN),r=n?.consumerKey,i=n?.consumerName;!r&&window.URLSearchParams&&(r=new URLSearchParams(window.location.search).get(`consumerKey`)),r&&e.registerEnricher(q,{consumerKey:r,consumerName:i,isPlugin:!!n})}function mt(e){function t(n,r){e.hasEnricher(nt)||n&&(ge.ltiExtraLoggingInfo=n,e.registerEnricher(nt,{id:n?.id,gradePassbackEnabled:n?.gradePassbackEnabled,productFamilyCode:n?.productFamilyCode,version:n?.version}),r.off(V.LTI_EXTRA_INFO,t))}function n(e){let n=new ze.CVEventsApi(e);n.on(V.LTI_EXTRA_INFO,(e,r)=>t(r,n)),n.trigger(V.APP_READY)}n(window.parent),window.opener&&n(window.opener)}function ht(e){let{instanceRegion:t,currentUser:n,customer:r,geoLocation:i}=e,a={path:`/api/profile/v1/profiles`,instanceRegion:t,onError:Te.logError},o=z.getProfileId();!e.currentUser.isAuthenticated&&o&&(a.attributedProfileId=o);let s=new Ke(a),c={countryCode:i?.countryCode};return e.currentUser.isAuthenticated&&r&&(c={countryCode:n.countryCode,crmId:r.crmId,email:n.email,firstName:n.givenName,lastName:n.familyName,masterId:n.id}),s.createOrUpdate(c),s}async function gt(e,t){try{return await C(e.store,t)}catch{return null}}async function _t(e){let t,n=C(e.store,Re.locale());return t=C(e.store,Re.phrases()),{phrases:await t,locale:await n}}async function J(e){let t=C(e.store,P.config()),n=C(e.store,P.version()),r=gt(e,P.geoLocation()),i=ft(e),a=await C(e.store,A.currentUser()),o=A.permissions(),s=C(e.store,o),c=C(e.store,le.getCustomerSettingsRequest(a)),l=a.isAuthenticated?C(e.store,fe.customer(a.customerId)):Promise.resolve(null),u=a.isAuthenticated?gt(e,A.accessPolicy()):Promise.resolve(null);return{currentUser:a,config:await t,version:await n,permissions:await s,customerSettings:await c,geoLocation:await r,shareObject:await i,customer:await l,accessPolicy:await u}}var vt=`shared.misconfiguredAccountError`,yt=class extends ee{constructor(){super(`User account is misconfigured. Please review their settings.`),this.cta=!1}get name(){return`MisconfiguredAccountError`}get heading(){return y.getPhrase(vt,`heading`)}get description(){return y.getPhrase(vt,`description`)}},Y={buildRouteLookup(e){return e.reduce((e,t)=>(e[g.getAppLinkString(t)]=!0,e),{})},isAppLinkInLookup(e,t){return t[g.getAppLinkString(e)]}},bt={application:b.DASHBOARD,action:j.Dashboard.HOME},xt=Y.buildRouteLookup([{application:b.SERIES,action:j.Series.SERIES},{application:b.PLAYLISTS,action:j.Playlists.PLAYLIST},{application:b.CALENDAR,action:j.Calendar.CALENDAR},{application:b.CALENDAR,action:j.Calendar.CALENDAR_MONTH},{application:b.CONTENT_UPDATES,action:j.ContentUpdates.CONTENT_UPDATES},{application:b.CONTENT_UPDATES,action:j.ContentUpdates.CLASSIFICATION_UPDATE},{application:b.DASHBOARD,action:j.Dashboard.DISCOVER},{application:b.DASHBOARD,action:j.Dashboard.DASHBOARD},{application:b.DASHBOARD,action:j.Dashboard.PARTNERS},{application:b.DASHBOARD,action:j.Dashboard.PARTNER_DASHBOARD},bt,{application:b.VIDEOS,action:j.Videos.PLAY_VIDEO},{application:b.VIDEOS,action:j.Videos.VIDEO_CLIPS},{application:b.VIDEOS,action:j.Videos.VIDEO_INTERACTIVES},{application:b.SUBJECT,action:j.Subjects.PRESENTATION_TOPICS},{application:b.SUBJECT,action:j.Subjects.CLASSIFICATION},{application:b.SUBJECT,action:j.Subjects.CLASSIFICATION_TOPICS},{application:b.SUBJECT,action:j.Subjects.CLASSIFICATION_CURRICULUM},{application:b.SUBJECT,action:j.Subjects.TWIG_ENTRY},{application:b.MOVIES_AND_TV,action:j.MoviesAndTv.HOME},{application:b.MOVIES_AND_TV,action:j.MoviesAndTv.COMPANY_DASHBOARD},{application:b.LIVESTREAMS,action:j.Livestreams.LIVESTREAM}]);function X(e){return Y.isAppLinkInLookup(e,xt)}var St=Y.buildRouteLookup([{application:b.DASHBOARD,action:j.Dashboard.HOME},{application:b.MOVIES_AND_TV,action:j.MoviesAndTv.HOME},{application:b.CALENDAR,action:j.Calendar.CALENDAR},{application:b.CALENDAR,action:j.Calendar.CALENDAR_MONTH}]);function Z(e){return e?Y.isAppLinkInLookup(e,St):!1}
2function Q(e,t){Ne._forcePushContext(e),u.routingEnded(),c.throw(t??new te)}async function Ct(e){let{permissions:t,currentUser:n,customerSettings:r}=await J(e);if(!n.isAuthenticated||t[_.GuestExperience])return null;let i=O.getPresentationTypes(r[v.ClickViewLive]?.value);return await S(e.store,N.userPresentations(i))}async function wt(e,t){let{currentUser:n}=await J(t),r={activePresentationSlug:e};t.store.dispatch({type:je.UPDATE,payload:{viewModelKey:M.ACTIVE_PRESENTATION_ID,dataOrKey:r,storage:n.isAuthenticated?x.LocalStorage:x.MemoryStorage}})}async function Tt(e){let{currentUser:t,permissions:n}=await J(e);return!t.isAuthenticated||n[_.GuestExperience]?ie.get(M.ACTIVE_PRESENTATION_ID)?.activePresentationSlug:e.store.getState().viewModelData?.[M.ACTIVE_PRESENTATION_ID]?.activePresentationSlug}async function $(e,t){let n=await Ct(e),{permissions:r,customerSettings:i,currentUser:a}=await J(e),o=O.getPresentationTypes(i[v.ClickViewLive]?.value),s=t&&Pe((await H(e.store)).upsellKind),c=await S(e.store,N.browsablePresentations(o,{withPublicPresentations:s,routePrefix:O.getRoutePrefix(a?.contentRegion)}));return O.getAvailablePresentations(n,c,r[_.StudentExperience],i[v.HasStudentLowerPresentations]?.value)}function Et(e){return[U.StartCvTrial,U.RequestCvPilot].includes(e)?k.StreamableLearning:k.Subject}function Dt(e,t,n,r,i){let a=new Set(t?.map(e=>e.vanitySlug)),o=e=>a.has(e.vanitySlug),s=e.find(e=>e.vanitySlug===n&&o(e));if(s)return s;let c=e.find(e=>e.vanitySlug===r?.vanitySlug&&o(e));if(c&&c.type===Et(i))return c;if(i===U.StartLiveTrial){let t=e.find(e=>e.type===k.Subject);if(t)return t}if(i===U.StartCvTrial){let t=e.find(e=>e.type===k.StreamableLearning);if(t)return t}return c||e.find(o)||(e.find(e=>e.vanitySlug===n)??e[0])}function Ot(e,t){u.routingEnded(),g.trigger({...e.appLink,args:[t,...e.appLink.args.slice(1)??[]]})}async function kt(e,t){if(!X(e.appLink))return t(e);let[n]=e.appLink.args;if(!(n==null||O.getValidPresentationSlugs()?.includes(n?.toString()))){Q(e.appLink,new Ae);return}let r=await $(e.shell,Z(e.appLink)),i=await Ct(e.shell),a=O.getPreferredPresentation(i);if(!r?.length){Q(e.appLink,new yt);return}if(n&&r.some(e=>e.vanitySlug===n))return wt(n.toString(),e.shell),t(e);if(n&&!Z(e.appLink)&&(await $(e.shell,!0))?.some(e=>e.vanitySlug===n)){Q(e.appLink,new Ae);return}let o=await $(e.shell,!1),s=await H(e.shell.store);Ot(e,Dt(r,o,await Tt(e.shell),a,s.upsellKind).vanitySlug)}function At(){let e=ae(A.currentUser()),{hasPermissions:t}=Fe(),n=t(_.GuestExperience),r=!e.data?.isAuthenticated||n,[i,a]=Me(M.ACTIVE_PRESENTATION_ID,{},{storage:r?x.LocalStorage:x.MemoryStorage}),{preferredPresentation:o}=Ie(),{browsablePresentations:s}=Le();function c(){if(!s?.length)return null;let e=Ne.getCurrentRoute().appLink,t=X(e)?e.args[0]:i.activePresentationSlug;return O.getActivePresentation(t?.toString(),o,s)}function l(e){let t=s?.find(t=>t.id.toString()===e?.id.toString());t&&a({activePresentationSlug:t.vanitySlug})}return{activePresentation:c(),setActivePresentation:l}}export{Y as a,ut as c,X as i,ot as l,kt as n,_t as o,Z as r,J as s,At as t,q as u};
3//# sourceMappingURL=BAaRlT2B.chunk.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.