PageSourceSearch

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

js clickview.net collected 2026-10-09 21:45:00 UTC 2,660 bytes, 2 lines download raw bytes

1import{t as e}from"./B_BV48Fy.chunk.js";import{a as t,d as n,s as r}from"./CEamUdnf.chunk.js";import{t as i}from"./C7weV7Ce.chunk.js";import{t as a}from"./DTGfiG8Y.chunk.js";import{n as o,t as s}from"./Dn1hp1IN2.chunk.js";import{t as c}from"./Bjt_-lTs.chunk.js";import{t as l}from"./ckbu5kCm.chunk.js";import{n as u}from"./BDZgYIcf.chunk.js";import{t as d}from"./M97_Ztsu.chunk.js";import{t as f}from"./DB_BawmH2.chunk.js";var p=`system_cv_live_trial_freemium_v1`,m=[d.US],h=function(e){return e.StartLiveTrial=`start-live-trial`,e.StartCvTrial=`start-cv-trial`,e.RequestLivePilot=`request-live-pilot`,e.RequestCvPilot=`request-cv-pilot`,e}({}),g={upsellKind:null,upsellPresentationType:null};function _(e){let{currentUser:t,accessPolicy:n,signupVariant:r,availablePresentations:i,disableUpsell:o}=e;if(o||!t?.isAuthenticated)return g;let s=n?.id,c=t.contentRegion,l=i?.some(e=>e.type===a.Subject)??!1,u=i?.some(e=>e.type===a.StreamableLearning)??!1;if(s===p&&r===f.ClickView)return{upsellKind:`start-live-trial`,upsellPresentationType:a.StreamableLearning};if(s===p&&r===f.ClickViewLive)return{upsellKind:`start-cv-trial`,upsellPresentationType:a.Subject};let d=!s&&m.includes(c);return d&&l&&!u?{upsellKind:`request-live-pilot`,upsellPresentationType:a.StreamableLearning}:d&&u&&!l?{upsellKind:`request-cv-pilot`,upsellPresentationType:a.Subject}:g}async function v(e,n){try{return await t(e,n)}catch{return null}}async function y(t){let n=r(t.getState(),c.currentUser().key).data;if(!n?.isAuthenticated)return g;let a=r(t.getState(),o.getCustomerSettingsRequest(n).key).data,s=i.getPresentationTypes(a?.[e.ClickViewLive]?.value),[u,d,f]=await Promise.all([v(t,c.accessPolicy()),v(t,o.getUserSettingsRequest(n)),v(t,l.availablePresentations(s))]);return _({currentUser:n,accessPolicy:u,signupVariant:d?.[e.SignUpVariant]?.value,availablePresentations:f,disableUpsell:!!a?.[e.DisableUpsell]?.value})}function b(e){return e===`request-live-pilot`||e===`request-cv-pilot`}function x(){let e=n(c.currentUser()),{accessPolicy:t,isLoaded:r}=u(),i=n(e.data?.contentRegion&&l.availablePresentations([a.Subject,a.StreamableLearning])),o=i.hasCompleted,{signUpVariant:d,disableUpsell:f,isLoadingSettings:p}=s(null);if(!e.hasCompleted)return{isLoaded:!1,upsellKind:null,upsellPresentationType:null};if(!e.data?.isAuthenticated)return{isLoaded:!0,upsellKind:null,upsellPresentationType:null};let m=r&&o&&!p;return m?{isLoaded:m,..._({currentUser:e.data,accessPolicy:t,signupVariant:d,availablePresentations:i.data,disableUpsell:f})}:{isLoaded:m,upsellKind:null,upsellPresentationType:null}}export{y as i,h as n,b as r,x as t};
2//# sourceMappingURL=Bqm7BykF2.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.