PageSourceSearch

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

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

1import{U as e,l as t,u as n,y as r,z as i}from"./BHvdJc9z.chunk.js";import{t as a}from"./Bzihudtn.chunk.js";import{n as o,t as s}from"./BFXddaSP.chunk.js";import{t as c}from"./B3TDTJSl.chunk.js";import{t as l}from"./YjWbDb2Y.chunk.js";var u=function(e){return e.Staff=`Staff`,e.Learner=`Learner`,e.Unknown=`Unknown`,e.System=`System`,e}({}),d=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`;function f(e,t,n,r){let i,a,o,s=t||[0],c=(n||=0)>>>3,l=r===-1?3:0;for(i=0;i<e.length;i+=1)o=i+c,a=o>>>2,s.length<=a&&s.push(0),s[a]|=e[i]<<8*(l+o%4*r);return{value:s,binLen:8*e.length+n}}function p(e,t,n){switch(t){case`UTF8`:case`UTF16BE`:case`UTF16LE`:break;default:throw Error(`encoding must be UTF8, UTF16BE, or UTF16LE`)}switch(e){case`HEX`:return function(e,t,r){return function(e,t,n,r){let i,a,o,s;if(e.length%2!=0)throw Error(`String of HEX type must be in byte increments`);let c=t||[0],l=(n||=0)>>>3,u=r===-1?3:0;for(i=0;i<e.length;i+=2){if(a=parseInt(e.substr(i,2),16),isNaN(a))throw Error(`String of HEX type contains invalid characters`);for(s=(i>>>1)+l,o=s>>>2;c.length<=o;)c.push(0);c[o]|=a<<8*(u+s%4*r)}return{value:c,binLen:4*e.length+n}}(e,t,r,n)};case`TEXT`:return function(e,r,i){return function(e,t,n,r,i){let a,o,s,c,l,u,d,f,p=0,m=n||[0],h=(r||=0)>>>3;if(t===`UTF8`)for(d=i===-1?3:0,s=0;s<e.length;s+=1)for(a=e.charCodeAt(s),o=[],128>a?o.push(a):2048>a?(o.push(192|a>>>6),o.push(128|63&a)):55296>a||57344<=a?o.push(224|a>>>12,128|a>>>6&63,128|63&a):(s+=1,a=65536+((1023&a)<<10|1023&e.charCodeAt(s)),o.push(240|a>>>18,128|a>>>12&63,128|a>>>6&63,128|63&a)),c=0;c<o.length;c+=1){for(u=p+h,l=u>>>2;m.length<=l;)m.push(0);m[l]|=o[c]<<8*(d+u%4*i),p+=1}else for(d=i===-1?2:0,f=t===`UTF16LE`&&i!==1||t!==`UTF16LE`&&i===1,s=0;s<e.length;s+=1){for(a=e.charCodeAt(s),!0===f&&(c=255&a,a=c<<8|a>>>8),u=p+h,l=u>>>2;m.length<=l;)m.push(0);m[l]|=a<<8*(d+u%4*i),p+=2}return{value:m,binLen:8*p+r}}(e,t,r,i,n)};case`B64`:return function(e,t,r){return function(e,t,n,r){let i,a,o,s,c,l,u,f=0,p=t||[0],m=(n||=0)>>>3,h=r===-1?3:0,g=e.indexOf(`=`);if(e.search(/^[a-zA-Z0-9=+/]+$/)===-1)throw Error(`Invalid character in base-64 string`);if(e=e.replace(/=/g,``),g!==-1&&g<e.length)throw Error(`Invalid '=' found in base-64 string`);for(a=0;a<e.length;a+=4){for(c=e.substr(a,4),s=0,o=0;o<c.length;o+=1)i=d.indexOf(c.charAt(o)),s|=i<<18-6*o;for(o=0;o<c.length-1;o+=1){for(u=f+m,l=u>>>2;p.length<=l;)p.push(0);p[l]|=(s>>>16-8*o&255)<<8*(h+u%4*r),f+=1}}return{value:p,binLen:8*f+n}}(e,t,r,n)};case`BYTES`:return function(e,t,r){return function(e,t,n,r){let i,a,o,s,c=t||[0],l=(n||=0)>>>3,u=r===-1?3:0;for(a=0;a<e.length;a+=1)i=e.charCodeAt(a),s=a+l,o=s>>>2,c.length<=o&&c.push(0),c[o]|=i<<8*(u+s%4*r);return{value:c,binLen:8*e.length+n}}(e,t,r,n)};case`ARRAYBUFFER`:return function(e,t,r){return function(e,t,n,r){return f(new Uint8Array(e),t,n,r)}(e,t,r,n)};case`UINT8ARRAY`:return function(e,t,r){return f(e,t,r,n)};default:throw Error(`format must be HEX, TEXT, B64, BYTES, ARRAYBUFFER, or UINT8ARRAY`)}}function m(e,t,n,r){switch(e){case`HEX`:return function(e){return function(e,t,n,r){let i=`0123456789abcdef`,a,o,s=``,c=t/8,l=n===-1?3:0;for(a=0;a<c;a+=1)o=e[a>>>2]>>>8*(l+a%4*n),s+=i.charAt(o>>>4&15)+i.charAt(15&o);return r.outputUpper?s.toUpperCase():s}(e,t,n,r)};case`B64`:return function(e){return function(e,t,n,r){let i,a,o,s,c,l=``,u=t/8,f=n===-1?3:0;for(i=0;i<u;i+=3)for(s=i+1<u?e[i+1>>>2]:0,c=i+2<u?e[i+2>>>2]:0,o=(e[i>>>2]>>>8*(f+i%4*n)&255)<<16|(s>>>8*(f+n*((i+1)%4))&255)<<8|c>>>8*(f+n*((i+2)%4))&255,a=0;a<4;a+=1)l+=8*i+6*a<=t?d.charAt(o>>>6*(3-a)&63):r.b64Pad;return l}(e,t,n,r)};case`BYTES`:return function(e){return function(e,t,n){let r,i,a=``,o=t/8,s=n===-1?3:0;for(r=0;r<o;r+=1)i=e[r>>>2]>>>8*(s+r%4*n)&255,a+=String.fromCharCode(i);return a}(e,t,n)};case`ARRAYBUFFER`:return function(e){return function(e,t,n){let r,i=t/8,a=new ArrayBuffer(i),o=new Uint8Array(a),s=n===-1?3:0;for(r=0;r<i;r+=1)o[r]=e[r>>>2]>>>8*(s+r%4*n)&255;return a}(e,t,n)};case`UINT8ARRAY`:return function(e){return function(e,t,n){let r,i=t/8,a=n===-1?3:0,o=new Uint8Array(i);for(r=0;r<i;r+=1)o[r]=e[r>>>2]>>>8*(a+r%4*n)&255;return o}(e,t,n)};default:throw Error(`format must be HEX, B64, BYTES, ARRAYBUFFER, or UINT8ARRAY`)}}function h(e){let t={outputUpper:!1,b64Pad:`=`,outputLen:-1},n=e||{},r=`Output length must be a multiple of 8`;if(t.outputUpper=n.outputUpper||!1,n.b64Pad&&(t.b64Pad=n.b64Pad),n.outputLen){if(n.outputLen%8!=0)throw Error(r);t.outputLen=n.outputLen}else if(n.shakeLen){if(n.shakeLen%8!=0)throw Error(r);t.outputLen=n.shakeLen}if(typeof t.outputUpper!=`boolean`)throw Error(`Invalid outputUpper formatting option`);if(typeof t.b64Pad!=`string`)throw Error(`Invalid b64Pad formatting option`);return t}var g=class{constructor(e,t,n){let r=n||{};if(this.t=t,this.i=r.encoding||`UTF8`,this.numRounds=r.numRounds||1,isNaN(this.numRounds)||this.numRounds!==parseInt(this.numRounds,10)||1>this.numRounds)throw Error(`numRounds must a integer >= 1`);this.o=e,this.h=[],this.u=0,this.l=!1,this.A=0,this.p=!1,this.U=[],this.R=[]}update(e){let t,n=0,r=this.T>>>5,i=this.F(e,this.h,this.u),a=i.binLen,o=i.value,s=a>>>5;for(t=0;t<s;t+=r)n+this.T<=a&&(this.m=this.g(o.slice(t,t+r),this.m),n+=this.T);return this.A+=n,this.h=o.slice(n>>>5),this.u=a%this.T,this.l=!0,this}getHash(e,t){let n,r,i=this.B,a=h(t);if(this.v){if(a.outputLen===-1)throw Error(`Output length must be specified in options`);i=a.outputLen}let o=m(e,i,this.H,a);if(this.p&&this.C)return o(this.C(a));for(r=this.Y(this.h.slice(),this.u,this.A,this.I(this.m),i),n=1;n<this.numRounds;n+=1)this.v&&i%32!=0&&(r[r.length-1]&=16777215>>>24-i%32),r=this.Y(r,i,0,this.L(this.o),i);return o(r)}setHMACKey(e,t,n){if(!this.M)throw Error(`Variant does not support HMAC`);if(this.l)throw Error(`Cannot set MAC key after calling update`);let r=p(t,(n||{}).encoding||`UTF8`,this.H);this.N(r(e))}N(e){let t=this.T>>>3,n=t/4-1,r;if(this.numRounds!==1)throw Error(`Cannot set numRounds with MAC`);if(this.p)throw Error(`MAC key already set`);for(t<e.binLen/8&&(e.value=this.Y(e.value,e.binLen,0,this.L(this.o),this.B));e.value.length<=n;)e.value.push(0);for(r=0;r<=n;r+=1)this.U[r]=909522486^e.value[r],this.R[r]=1549556828^e.value[r];this.m=this.g(this.U,this.m),this.A=this.T,this.p=!0}getHMAC(e,t){let n=h(t);return m(e,this.B,this.H,n)(this.S())}S(){let e;if(!this.p)throw Error(`Cannot call getHMAC without first setting MAC key`);let t=this.Y(this.h.slice(),this.u,this.A,this.I(this.m),this.B);return e=this.g(this.R,this.L(this.o)),e=this.Y(t,this.B,this.T,e,this.B),e}};function _(e,t){return e<<t|e>>>32-t}function v(e,t,n){return e^t^n}function y(e,t,n){return e&t^e&n^t&n}function b(e,t){let n=(65535&e)+(65535&t);return(65535&(e>>>16)+(t>>>16)+(n>>>16))<<16|65535&n}function x(e,t,n,r,i){let a=(65535&e)+(65535&t)+(65535&n)+(65535&r)+(65535&i);return(65535&(e>>>16)+(t>>>16)+(n>>>16)+(r>>>16)+(i>>>16)+(a>>>16))<<16|65535&a}function S(e){return[1732584193,4023233417,2562383102,271733878,3285377520]}function C(e,t){let n,r,i,a,o,s,c,l=[];for(n=t[0],r=t[1],i=t[2],a=t[3],o=t[4],c=0;c<80;c+=1)l[c]=c<16?e[c]:_(l[c-3]^l[c-8]^l[c-14]^l[c-16],1),s=c<20?x(_(n,5),(u=r)&i^~u&a,o,1518500249,l[c]):c<40?x(_(n,5),v(r,i,a),o,
11859775393,l[c]):c<60?x(_(n,5),y(r,i,a),o,2400959708,l[c]):x(_(n,5),v(r,i,a),o,3395469782,l[c]),o=a,a=i,i=_(r,30),r=n,n=s;var u;return t[0]=b(n,t[0]),t[1]=b(r,t[1]),t[2]=b(i,t[2]),t[3]=b(a,t[3]),t[4]=b(o,t[4]),t}function w(e,t,n,r){let i,a=15+(t+65>>>9<<4),o=t+n;for(;e.length<=a;)e.push(0);for(e[t>>>5]|=128<<24-t%32,e[a]=4294967295&o,e[a-1]=o/4294967296|0,i=0;i<e.length;i+=16)r=C(e.slice(i,i+16),r);return r}var T=class extends g{constructor(e,t,n){if(e!==`SHA-1`)throw Error(`Chosen SHA variant is not supported`);super(e,t,n);let r=n||{};this.M=!0,this.C=this.S,this.H=-1,this.F=p(this.t,this.i,this.H),this.g=C,this.I=function(e){return e.slice()},this.L=S,this.Y=w,this.m=[1732584193,4023233417,2562383102,271733878,3285377520],this.T=512,this.B=160,this.v=!1,r.hmacKey&&this.N(function(e,t,n,r){let i=e+` must include a value and format`;if(!t){if(!r)throw Error(i);return r}if(t.value===void 0||!t.format)throw Error(i);return p(t.format,t.encoding||`UTF8`,n)(t.value)}(`hmacKey`,r.hmacKey,this.H))}},ee={CvApSoutheast1:{systemName:a.CvApSoutheast1},CvApSoutheast2:{systemName:a.CvApSoutheast2},CvEuWest1:{systemName:a.CvEuWest1},CvNaWest1:{systemName:a.CvNaWest1}},E=3,D=5e3,O=6,k={},A=class{constructor(e){this.key=e.toString()}getCount(){return k[this.key]||0}increment(){k[this.key]=this.getCount()+1}reset(){delete k[this.key]}shouldBreak(){return this.getCount()>=O}},j=class{constructor(){this.attempt=0}async wait(){await new Promise(e=>setTimeout(e,D*2**this.attempt)),this.attempt++}};async function M(e,t){let n=new j,r=new A(e);async function i(){let n=await fetch(e,t);if(n.status>=500&&!r.shouldBreak())throw Error(`Server error: ${n.status}`);return n.ok&&r.reset(),n}for(let e=1;e<=E;e++)try{return await i()}catch(t){if(e>=E||r.shouldBreak())throw t;r.increment(),await n.wait()}}var N={isObject(e){let t=typeof e;return t===`function`||t===`object`&&!!e},isFunction(e){return typeof e==`function`}},P={mobileDevice:/Mobi/i,iphone:/iphone/i,ipad:/ipad/i,android:/android/i,blackberry:/blackberry/i,windowsPhone:/windows phone/i,iosVersion:/OS\s+([\d_.-:]+)\s/i,androidVersion:/android\s+([\d_.-\/]+)[\s;:,\)]/i,blackberryVersion:/(blackberry|version)\s?\d*\/([\d.]+)/i,windowsPhoneVersion:/windows\sphone.*?([\d_.-\/]+)[\s;:,\)]/i,mac:/Mac/i,unix:/X11/i,linux:/Linux/i,windows:/Win/i,win2000:/nt 5.0/i,winXP:/nt 5.1/i,winVista:/nt 6.0/i,win7:/nt 6.1/i,win8:/nt 6.2/i,win81:/nt 6.3/i,win10:/nt 10.0/i,osxVersion:/OS\sX\s([\d_.]+)/i,chrome:/^(?!.*Edge).*Chrome/i,safari:/^(?!.*(?:Chrome|Edge)).*Safari/i,edge:/edge/i,ie:/(msie|trident)/i,opera:/(opr|opera)/i,firefox:/firefox/i,generalVersion:/(chrome|firefox|version)\/(\d+.*?)(\s|$)/i,operaVersion:/(opr|opera)\/(\d+).*?(\s|$)/i,ieVersion:/MSIE\s+(\d+).*?/i,edgeVersion:/(edge)\/(\d+).*?(\s|$)/i},F=`Unknown`;function I(e,t,n){let[r]=t.exec(n)||[];return r||=F,{name:e,version:r}}function L(e,t,n){if(!t)return{name:e,version:F};let r=t.exec(n);return{name:e,version:r&&r.length?r[0].trim():F}}function R(e,t){let n={name:e,version:null};return P.win2000.test(t)&&(n.version=`2000`),P.winXP.test(t)&&(n.version=`XP`),P.winVista.test(t)&&(n.version=`Vista`),P.win7.test(t)&&(n.version=`7`),P.win8.test(t)&&(n.version=`8`),P.win81.test(t)&&(n.version=`8.1`),P.win10.test(t)&&(n.version=`10`),n.version||=F,n}var z={getDeviceType(){let e=window.navigator.userAgent;return P.mobileDevice.test(e)?P.iphone.test(e)?`iPhone`:P.ipad.test(e)?`iPad`:P.android.test(e)?`Android`:P.blackberry.test(e)?`Blackberry`:P.windowsPhone.test(e)?`Windows Phone`:F:`Desktop`},getOperatingSystem(){let e=window.navigator.userAgent;return P.android.test(e)?L(`Android`,P.androidVersion,e):P.iphone.test(e)||P.ipad.test(e)?L(`iOS`,P.iosVersion,e):P.linux.test(e)?L(`Linux`,null,e):P.unix.test(e)?L(`Unix`,null,e):P.mac.test(e)?L(`Macintosh`,P.osxVersion,e):P.windows.test(e)?R(`Windows`,e):P.blackberry.test(e)?L(`BlackBerry`,P.blackberryVersion,e):P.windowsPhone.test(e)?L(`Windows Phone`,P.windowsPhoneVersion,e):{name:F,version:F}},getBrowser(){let e=window.navigator.userAgent;return P.chrome.test(e)?I(`Chrome`,P.generalVersion,e):P.firefox.test(e)?I(`Firefox`,P.generalVersion,e):P.safari.test(e)?I(`Safari`,P.generalVersion,e):P.ie.test(e)?I(`Internet Explorer`,P.ieVersion,e):P.edge.test(e)?I(`
1Edge`,P.edgeVersion,e):P.opera.test(e)?I(`Opera`,P.operaVersion,e):{name:F,version:F}},isTouchScreen(){return!!(`ontouchstart`in window||navigator.maxTouchPoints)}},B={name:`@clickview/analytics`,version:`2.3.0`,description:`Analytics`,main:`dist/app.js`,types:`dist/analytics/src/app.d.ts`,type:`module`,private:!0,repository:{type:`git`,url:`https://gitlab.cvinternal.net/front-end/clickview`},scripts:{start:`npm run build`,"type-check":`tsc --noEmit`,build:`npm run type-check && node ../../../node_modules/vite/bin/vite.js build`,prebuild:`npm run clean`,clean:`npx rimraf dist`},author:``,license:`ISC`,devDependencies:{"tsc-alias":`1.8.16`},dependencies:{jssha:`3.3.1`,uuid:`11.1.1`}},V=`zXJL9nOHxzDlMUDjiP41`,H=`unknown`,U=class{constructor(e){this.options=e,this.initialize()}initialize(){this.validateOptions(),this.options.logUtmParameters&&(this.utmParameters=s.getUtmParameters()),this.options.logAttributionData&&(this.attributionData=o.getDecodedAttributionData())}get name(){return`CollectionApiClient`}async log(e){if(Array.isArray(e))return this.logBulk(e);this.shouldLog(e)&&(this.validateEvent(e),await this.postData(await this.formatData(e)))}async logBulk(e){let t=e.filter(e=>this.shouldLog(e));if(!t.length)return;t.forEach(e=>this.validateEvent(e));let n=await Promise.all(t.map(e=>this.formatData(e)));await this.postData(n)}validateOptions(){if(!N.isFunction(this.options.getUser))throw Error(`getUser option is required.`)}shouldLog(e){return!N.isFunction(this.options.shouldLog)||this.options.shouldLog(e)}async postData(e){let t=await this.getRegionalUrl(this.options.collectionApiUrls),n=JSON.stringify(e),r={"Content-Type":`application/json`,...this.getSignatureHeader(n)},i=l.safeUrlConcat(t,`/v1/ingest`);Array.isArray(e)&&(i=l.safeUrlConcat(i,`/bulk`));try{let e=await M(i,{method:`POST`,mode:`cors`,headers:r,body:n});e.ok||this.logError(Error(`CollectionApiClient failed to log event. Status: ${e.status} ${e.statusText}`),!1,this.getResponseAsObject(e))}catch(e){this.logError(e)}}getResponseAsObject(e){return{headers:e.headers,ok:e.ok,redirected:e.redirected,status:e.status,statusText:e.statusText,type:e.type,url:e.url,body:e.text()}}getSignatureHeader(e){let t=new T(`SHA-1`,`TEXT`,{hmacKey:{value:V,format:`TEXT`,encoding:`UTF8`}});return t.update(e),{"cv-analytics-signature":`${this.options.collectionApiClientId}.${t.getHash(`B64`)}`}}async getRegionalUrl(e){switch((await this.getRegion()).systemName){case a.CvEuWest1:return e.cvEuWest1;case a.CvApSoutheast2:return e.cvApSoutheast2;case a.CvNaWest1:return e.cvNaWest1;case a.CvApSoutheast1:default:return e.cvApSoutheast1}}validateEvent(e){typeof e.type!=`string`&&this.logError(Error(`Event type is required.`),!0),N.isObject(e.actionContext)||this.logError(Error(`Event actionContext is required.`),!0),e.actionContext.entity||this.logError(Error(`Event actionContext entity is required.`),!0)}async formatData(e){return{type:e.type,data:await this.getEventData(e),metadata:this.getEventMetadata(e)}}async getEventData(e){let t=e.actionContext,n=this.getPlatformMetadata(),r=await this.getUserData(),i=await this.get
1SessionData(),a={name:this.options.productName,version:this.options.productVersion};this.options.productVariant&&(a.variant=this.options.productVariant);let o={user:r,action:t,platform:n,product:a,session:i};this.utmParameters&&(o.utm=this.utmParameters);let s=this.extractData(e),c=Object.keys(o).map(e=>e.toLowerCase()),l=Object.keys(s).map(e=>e.toLowerCase());return c.forEach(e=>{l.includes(e)&&this.logError(Error(`${e} is a reserved key.`),!0)}),{...o,...s}}extractData(e){return N.isFunction(this.options.formatData)?this.options.formatData(e):{[e.actionContext.entity]:e.data}}async getUserData(){let e;try{e=await this.options.getProfileId?.()}catch(e){this.logError(e)}try{let t=await this.options.getUser();return t?.id?{id:t.id,role:t.role?.toLowerCase()||H,userGroup:(t.userGroup??u.Unknown).toLowerCase(),yearGroup:this.normalizeYearGroup(t.yearGroup),profileId:e,customer:{id:t.customerId,name:t.customerName,customerGuid:t.customerGuid,crmId:t.crmId,country:t.countryCode,region:await this.getRegion(),openCustomer:!1,accessPolicy:t.accessPolicy}}:e?{profileId:e}:void 0}catch(e){this.logError(e)}}async getRegion(){let e=this.options.regionName;try{let t=await this.options.getUser();t?.instanceRegion&&(e=t.instanceRegion)}catch(e){this.logError(e)}return e||this.logError(Error(`RegionName is not set.`),!0),this.getRegionByName(e.toLowerCase())}async getSessionData(){try{let e=await this.options.getUser();return{...c.getClientSessionData(e?.id),authSessionId:e?.sessionId}}catch(e){return console.error(e),c.getClientSessionData(null)}}getPlatformMetadata(){let e={url:window.location.href,referrer:document.referrer};return this.attributionData?.internalReferrer&&(e.internalReferrer=this.attributionData.internalReferrer),this.attributionData?.originalReferrer&&(e.originalReferrer=this.attributionData.originalReferrer),{browser:z.getBrowser(),os:z.getOperatingSystem(),request:e,screenResolution:`${window.screen.width}x${window.screen.height}`,viewportResolution:`${window.innerWidth}x${window.innerHeight}`}}getEventMetadata(e){return{client:{name:`${this.name}.ts`,version:B.version,region:this.getRegionByName(this.options.regionName)},timestamp:new Date().toISOString(),eventVersion:e.eventVersion}}getRegionByName(e){let t;return Object.values(ee).forEach(n=>{n.systemName===e&&(t=n)}),t}normalizeYearGroup(e){return e?e.toLowerCase().split(` `).join(`_`):H}logError(e,t,...n){if(this.options.logError&&this.options.logError(e,...n),t)throw e}};function W(e){return!N.isObject(e)||!N.isObject(e.actionContext)?{}:{entity:e.actionContext.entity,location:e.actionContext.location,descriptor:e.actionContext.descriptor}}function G(e){let t={},r=(e,t)=>{switch(t){case`description`:return n.ValueUpdated;case`channel`:case`rating`:case`series`:case`distributor`:case`producer`:return e&&e.id||n.EntityRemoved;default:return e}};return Object.keys(e).forEach(n=>{t[n]=r(e[n],n)}),t}var K={passthrough(e){return e},getEditData(e,n){let{entity:i,location:a}=W(n);return i===t.Video&&a===r.EditVideoDetails?G(e):e}},q={allow:()=>!0,restrict:()=>!1},J={getShareData(e){let{id:t,search:n,pagePositionIndex:r,shareId:i,shareType:a}=e,o={id:t,search:n,pagePositionIndex:r,shareId:i,shareType:a};return e.video?.id&&(o.video={id:e.video.id}),e.clip?.id&&(o.clip={id:e.clip.id},e.clip.video?.id&&(o.video={id:e.clip.video?.id})),e.shareCount!==void 0&&(o.shareCount=e.shareCount),e.embedDetails&&(o.embedDetails=e.embedDetails),o}},Y={getUploadData(e,n){let{entity:r}=n.actionContext;if(r===t.Video)return Y.formatVideoUpload(e,n);if(r===t.Resource||r===t.Subtitle)return Y.formatResourceUpload(e);if(r===t.Banner||r===t.Thumbnail||r===t.MixedMedia)return e;throw Error(`Upload data event not correctly formatted.`)},formatVideoUpload(t,n){let{workflowPhase:r}=n.actionContext;if(r===e.Start)return Y.getStartVideoUploadData(t);if(r===e.Discard)return Y.getDiscardVideoUploadData(t);if(r===e.Complete)return Y.getCompleteUploadData(t)},getStartVideoUploadData(e){return!e||!e.length?[]:(e instanceof FileList&&(e=Array.from(e)),e.map(t=>({fileName:t.name,size:t.size,type:t.type,count:e.length})))},getDiscardVideoUploadData(e){let t=t=>{let{type:n,name:r,status:i,cvUpload:a}=t.file,o={fileName:r,count:Array.isArray(e)?e.length:1,type:n,status:i};return t.progress&&(o.progress=t.progress.toFixed(2)),a&&(o.uploadId=a.uploadId),o};return Array.isArray(e)?e.map(e=>t(e)):[t(e)]},getCompleteUploadData(e){return!e||!e.length?[]:e.map(t=>
1{let{fileName:n,libraryId:r,folderId:i,autoCaption:a}=t;return{fileName:n,libraryId:r,folderId:i,autoCaption:a,count:e.length}})},formatResourceUpload(e){let{id:t,name:n}=e,r={id:t,name:n};return N.isObject(e.metadata)&&(r.type=e.metadata.type),r}},X={[i.Navigate]:q.restrict,[i.Click]:q.allow,[i.Search]:q.allow,[i.InstantSearch]:q.allow,[i.Play]:q.allow,[i.Stream]:q.allow,[i.WebPlayerStream]:q.allow,[i.StreamProgress]:q.allow,[i.PreviewStreamProgress]:q.allow,[i.StreamBuffering]:q.allow,[i.Rename]:q.allow,[i.Move]:q.allow,[i.Create]:q.allow,[i.Delete]:q.allow,[i.Associate]:q.allow,[i.Dissociate]:q.allow,[i.Filter]:q.allow,[i.Sort]:q.allow,[i.Approve]:q.allow,[i.Reject]:q.allow,[i.Disable]:q.allow,[i.Upload]:q.allow,[i.Download]:q.allow,[i.SetAccess]:q.allow,[i.AddToLocalCache]:q.restrict,[i.Share]:q.allow,[i.Unshare]:q.allow,[i.Edit]:q.allow,[i.Suggest]:q.allow,[i.Favourite]:q.allow,[i.WorkspaceAdd]:q.allow,[i.ResolveWarning]:q.allow,[i.DismissWarning]:q.allow,[i.EditAssoc]:q.allow,[i.Follow]:q.allow,[i.Print]:q.allow,[i.Copy]:q.allow,[i.Activate]:q.allow,[i.VerifyEmail]:q.allow,[i.ChangePassword]:q.allow,[i.Export]:q.allow,[i.SendEmail]:q.allow,[i.Publish]:q.allow,[i.Submit]:q.allow,[i.Complete]:q.allow,[i.Archive]:q.allow,[i.Promote]:q.allow,[i.Demote]:q.allow,[i.BulkAction]:q.allow,[i.Remove]:q.allow,[i.Dismiss]:q.allow,[i.Open]:q.allow,[i.Hide]:q.allow,[i.PageView]:q.allow,[i.Select]:q.allow,[i.SwitchCustomer]:q.allow,[i.Focus]:q.allow,[i.Blur]:q.allow,[i.Hover]:q.allow,[i.Unhover]:q.allow},Z={[i.Search]:K.passthrough,[i.InstantSearch]:K.passthrough,[i.Play]:K.passthrough,[i.Stream]:K.passthrough,[i.StreamProgress]:K.passthrough,[i.PreviewStreamProgress]:K.passthrough,[i.StreamBuffering]:K.passthrough,[i.Click]:K.passthrough,[i.Filter]:K.passthrough,[i.Sort]:K.passthrough,[i.SetAccess]:K.passthrough,[i.Approve]:K.passthrough,[i.Reject]:K.passthrough,[i.Create]:K.passthrough,[i.Delete]:K.passthrough,[i.Rename]:K.passthrough,[i.Move]:K.passthrough,[i.Edit]:K.passthrough,[i.Share]:J.getShareData,[i.Disable]:K.passthrough,[i.Suggest]:K.passthrough,[i.Upload]:Y.getUploadData,[i.ResolveWarning]:K.passthrough,[i.DismissWarning]:K.passthrough,[i.Follow]:K.passthrough,[i.Print]:K.passthrough,[i.Copy]:K.passthrough},Q={[i.Search]:()=>`search`,[i.InstantSearch]:()=>`search`,[i.Filter]:()=>`filter`,[i.Stream]:()=>t.Video},$={user:`target_user`,product:`target_product`},te={[i.StreamProgress]:!0,[i.WebPlayerStream]:!0,[i.PreviewStreamProgress]:!0,[i.StreamBuffering]:!0},ne={shouldLog(e){return!!X[e.type](e)},formatData(e){let t=Z[e.type],n=N.isFunction(t)?t(e.data,e):e.data;if(te[e.type])return n;let r=e.actionContext.entity;return N.isFunction(Q[e.type])&&(r=Q[e.type](e)),$[r]&&(r=$[r]),{[r]:n}}};export{U as n,ne as t};
2//# sourceMappingURL=BoN0D_lY.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.