PageSourceSearch

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

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

1import{x as e,y as t}from"./BftnFbcr.chunk.js";import"./DFZS3Ffo.chunk.js";import{n,r,t as i}from"./C7weV7Ce.chunk.js";import{t as a}from"./YjWbDb2Y.chunk.js";import{t as o}from"./D7t5_of1.chunk.js";import{t as s}from"./M97_Ztsu.chunk.js";import{t as c}from"./B_rKniXe2.chunk.js";var l=/^\//,u=/\/$/,d=/\/\(\/\)$/,f=/\/+/g,p=class{constructor(e,t){this.route=e,this.placeholderRegex=t}stripLeadingSlash(){return l.test(this.route)&&(this.route=this.route.replace(l,``)),this}stripTrailingSlash(){return u.test(this.route)&&(this.route=this.route.replace(u,``)),this}cleanDuplicateSlashes(){return f.test(this.route)&&(this.route=this.route.replace(f,`/`)),this}cleanOptionalTrailingSlash(){return d.test(this.route)&&(this.route=this.route.replace(d,`(/)`)),this}substitutePlaceholder(e){return this.hasPlaceholder()&&(this.route=this.route.replace(this.placeholderRegex,e)),this}hasPlaceholder(){return this.placeholderRegex.test(this.route)}toString(){return this.route}},m=/^\/(au|nz|gb|gb-sct|us|ca|int)/,h={AU:`au`,ENGLAND:`gb`,SCOTLAND:`gb-sct`,US:`us`,NZ:`nz`,CA:`ca`,INTERNATIONAL:`int`},g={AU:`en-AU`,ENGLAND:`en-GB`,US:`en-US`,NZ:`en-NZ`,CA:`en-CA`},_={[h.AU]:s.AU,[h.ENGLAND]:s.UK,[h.US]:s.US,[h.NZ]:s.NZ,[h.CA]:s.CA,[s.AU]:h.AU,[s.UK]:h.ENGLAND,[s.US]:h.US,[s.NZ]:h.NZ,[s.CA]:h.CA},v={[s.AU]:[r.Level_1],[s.UK]:[r.Level_1],[s.US]:[r.Level_1]},y={[s.AU]:[r.Level_1,r.Level_3],[s.UK]:[r.Level_1,r.Level_3]};function b(e){switch(e){case s.AU:return{lang:g.AU,prefix:h.AU};case s.US:return{lang:g.US,prefix:h.US};case s.UK:return{lang:g.ENGLAND,prefix:h.ENGLAND};case s.SCOT:return{lang:g.ENGLAND,prefix:h.SCOTLAND};default:return{lang:``,prefix:``}}}function x(e,t){return n=>{if(!e)return n;let r=new p(n,t);return r.hasPlaceholder()?(r.substitutePlaceholder(e),r.stripTrailingSlash(),r.toString()):r.toString()}}function S(e,t,r){return r[e]?.some(e=>+e===n.getMappedPresentationLevel(t))}function C(e,t){return i.getMappedPresentationLearningLevels(e)?.find(e=>e.learningLevel===t)?.slug}function w(e,t,n){let r=C(e,t);if(!r)return;let a=b(e);return{hrefLang:a.lang,canonicalLink:E.getCanonicalLink({customAppLink:n,hrefTransformer:e=>{let t=x(a.prefix,m)(e);return x(`/${r}/`,i.getPresentationSlugMatcher())(t)}})}}function T(n,r){let i=t.getHref(r),o=b(n),s=m.test(i)?i:`${o.prefix}${i}`;return a.safeUrlConcat(e.GetCurrentOrigin(),s)}var E={...o,allowIndexing(){return!!_[c.getRequestUrlRegionPrefix()]},getPreferredRegionAlternative(e,t){if(!e?.length)return null;if(t){let n=e.find(e=>e.contentRegion===t);if(n)return n}return e[0]},createRegionHrefTransformer(e,t){let n=E.getPreferredRegionAlternative(e,t);if(!n)return;let r=b(n.contentRegion);if(r.prefix)return x(r.prefix,m)},getContentHrefLang(e,t){function n(e){let n=b(e.contentRegion);return{hrefLang:n.lang,canonicalLink:E.getCanonicalLink({customAppLink:t(e.id,e.name),stripPresentationSlug:!0,hrefTransformer:x(n.prefix,m)})}}return e?.map(n)?.filter(e=>e.hrefLang)??[]},getStaticRouteHrefLang(e,t,n){if(e)return Object.values(_).reduce((r,i)=>{if(n&&!S(i,e,n))return r;let a=w(i,e,t());return a?[...r,a]:r},[])}};export{p as a,y as i,T as n,v as r,E as t};
2//# sourceMappingURL=B6thlK3b2.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.