PageSourceSearch

https://aaftonline.com/_next/static/chunks/2231-5babfaf2f5e7349b.js

js aaftonline.com collected 2026-10-02 18:16:17 UTC 8,003 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2231],{10003:(t,e,r)=>{r.d(e,{q:()=>g,yB:()=>R,L5:()=>U,Vo:()=>y,Rz:()=>v,gY:()=>C,wA:()=>W,fz:()=>w});var n=r(86149);let i=["/assets/images/aaft-online-logo.svg","/images/afft-green-favicon.png","/documents/countries.json"],s=["/images/testimonial-page/","/images/email/","/images/lp/"];var a=r(41463);let o=["/images/","/documents/","/assets/"];function u(t){return"string"==typeof t&&t.trim()?t.trim():""}let f=u(a.env.PUBLIC_ASSETS_BASE_URL)||u("https://website.aaftvideo.com/production"),c=u("local");function l(){let t=u(a.env.PUBLIC_ASSETS_BASE_URL);return t||u("https://website.aaftvideo.com/production")||f}function h(){return!!(f||"s3"===c.toLowerCase()||l())||"s3"===(u("local")||c).toLowerCase()}let m=["uat","develop","staging","production"];function p(t){let e="website.aaftvideo.com".trim();if(!e||"string"!=typeof t)return!1;try{let r=new URL(t).hostname.toLowerCase();if(r===e.toLowerCase())return!0;let n=l();if(n){let t=new URL(n).hostname.toLowerCase();if(r===t)return!0}}catch{}return!1}function g(t){if("string"!=typeof t||!t.trim())return!1;let e=t.trim();if(!/^https?:\/\//i.test(e))return!1;try{let t=new URL(e).hostname.toLowerCase();if((0,n.tb)(t))return!0;let r="website.aaftvideo.com".trim().toLowerCase();if(r&&t===r)return!0;let i=l();if(i){let e=new URL(i).hostname.toLowerCase();if(t===e)return!0}return!1}catch{return!1}}function w(t){if("string"!=typeof t||!t.startsWith("/api/s3-image"))return t;try{return new URL(t,"http://localhost").searchParams.get("url")||t}catch{return t}}function d(t){if("string"!=typeof t||!t.trim())return t;let e=t.trim();if(!/^https?:\/\//i.test(e))return t;let r=l(),i=u("website.aaftvideo.com"),s="";try{r?s=new URL(r).origin:i&&(s=new URL(`https://${i}`).origin)}catch{return t}if(!s)return t;try{let r=new URL(e),i=r.hostname.toLowerCase(),a=new URL(s).hostname.toLowerCase();if(i===a||!(0,n.gk)(i))return t;let o=r.pathname||"";if(!(/^\/(uat|develop|staging|production)\/(images|documents|assets)\//i.test(o)||o.startsWith("/images/")||o.startsWith("/documents/")||o.startsWith("/assets/")))return t;return`${s}${o}${r.search}${r.hash}`}catch{return t}}function L(t){if("string"!=typeof t||!t.trim())return t;let e=t.trim();if(!/^https?:\/\//i.test(e))return e;try{let t=new URL(e);if("aaftonline-website-new-green.s3.ap-south-1.amazonaws.com"!==t.hostname.toLowerCase())return e;let r=l(),n="website.aaftvideo.com";if(r&&/^https?:\/\//i.test(r))n=new URL(r).hostname;else{let t="website.aaftvideo.com".trim();t&&(n=t.replace(/^https?:\/\//i,"").split("/")[0])}return t.protocol="https:",t.hostname=n,t.href}catch{return e}}function $(t){if("string"!=typeof t||!t.trim())return t;t=L(t);let e=l();if(!e||!/^https?:\/\//i.test(e))return t;let r=t.trim();if(!/^https?:\/\//i.test(r))return t;try{let i=new URL(e),s=new URL(r);if(s.pathname.includes("/cms-uploads/")||!(0,n.tb)(s.hostname)||s.hostname.toLowerCase()!==i.hostname.toLowerCase())return t;let a=i.pathname.replace(/\/$/,"")||"",o=a.split("/").filter(Boolean)[0]?.toLowerCase();if(!o||!m.map(t=>t.toLowerCase()).includes(o))return t;let u=s.pathname.match(/^\/(uat|develop|staging|production)\/((?:images|documents|assets)\/.*)$/i);if(!u)return t;let[,f,c]=u;if(f.toLowerCase()===o)return t;return s.pathname=`/${o}/${c}`,s.href}catch{return t}}function y(t){if("string"!=typeof t||!t.startsWith("/"))return t;let e=l()||f,r=h(),n=!function(t){if("string"!=typeof t||!t.startsWith("/"))return!1;let e=t.split("?")[0].split("#")[0];return!!i.some(t=>e===t||e===`${t}/`)||s.some(t=>e.startsWith(t))}(t)&&"string"==typeof t&&o.some(e=>
1t.startsWith(e));return e&&r&&n?`${e.replace(/\/$/,"")}${t}`:t}function C(t){if("string"!=typeof t)return t;let e=w(t.trim());if(!e)return e;if(e=L(e),/^https?:\/\//i.test(e)){e=$(e=d(e));try{let t=new URL(e),r=t.hostname.toLowerCase();if(((0,n.tb)(r)||"aaftonline.com"===r||"www.aaftonline.com"===r)&&t.pathname.startsWith("/assets/"))return y(`${t.pathname}${t.search}${t.hash}`);let i=t.pathname.match(/^\/(uat|develop|staging|production)\/(assets\/.*)$/i);if(i&&h())return y(`/${i[2]}${t.search}${t.hash}`)}catch{}}if(e.startsWith("/")&&h()){let t=l();if(t)for(let r of m){let n=`/${r}`;if(e.toLowerCase().startsWith(`${n}/`)){let r=e.slice(n.length);if(r.startsWith("/images/")||r.startsWith("/documents/")||r.startsWith("/assets/"))return`${t.replace(/\/$/,"")}${r}`}}}return e.startsWith("/images/")||e.startsWith("/documents/")||e.startsWith("/assets/")?y(e):function(t){if("string"!=typeof t)return t;let e=w(t);if(h())return e;let r=l();if(r)try{let t=new URL(r),n=new URL(e);if(n.origin===t.origin){let e=t.pathname.replace(/\/$/,"");if(e&&n.pathname.startsWith(`${e}/`)){let t=n.pathname.slice(e.length);if(t.startsWith("/images/")||t.startsWith("/documents/")||t.startsWith("/assets/"))return`${t}${n.search}${n.hash}`}}}catch{}let n="website.aaftvideo.com".trim().toLowerCase();if(!n)return e;try{let t=new URL(e);if(t.hostname.toLowerCase()!==n)return e;for(let e of m)for(let r of["images","documents","assets"]){let n=`/${e}/${r}/`,i=t.pathname.indexOf(n);if(-1!==i){let r=t.pathname.slice(i+`/${e}`.length);return`${r}${t.search}${t.hash}`}}}catch{}return e}(e)}function U(t,{width:e=384,quality:r=75}={}){if("string"!=typeof t||!t)return t;let n=w(t);return n=$(n=d(n)),!h()||!p(n),n}function R(t){if("string"!=typeof t||!t)return t;let e=w(t);return e=$(e=d(e)),!h()||!p(e),e}function W(t,e){return"string"==typeof t&&t.trim()?U(y(t.trim()),e):""}function v(t){if("string"!=typeof t||!t.trim())return"";let e=t.trim();if(e.startsWith("/api/s3-image"))return e;let r=U(y(e));if(!r)return"";if(/^https?:\/\//i.test(r)){if(function(t){try{let e=new URL(t);if(!g(t))return!1;return/\/(uat|develop|staging|production)\/images\/.+\/cms-uploads\//i.test(e.pathname)}catch{return!1}}(r))return r;try{let t=new URL(r).pathname;if(g(r)&&t.includes("/cms-uploads/"))return`/api/s3-image/?url=${encodeURIComponent(r)}`}catch{}}return r}},12231:(t,e,r)=>{r.r(e),r.d(e,{default:()=>c,mediaSrcBypassesNextOptimizer:()=>s,nextImageUsesDirectUrl:()=>a});var n=r(86149),i=r(10003);function s(t){if("string"!=typeof t||!t)return!1;let e=t.split(/[?#]/)[0].toLowerCase();return e.endsWith(".svg")||e.endsWith(".gif")}function a(t){return!!"https://website.aaftvideo.com/production".trim()||function(t){if("string"!=typeof t||!t.trim())return!1;let e=t.trim();if(!/^https?:\/\//i.test(e))return!1;try{return(0,n.tb)(new URL(e).hostname)}catch{return!1}}(t)||"string"==typeof t&&(0,i.q)(t)}function o(t){let e=t;try{e=decodeURIComponent(t)}catch{e=t.replace(/%20/gi," ")}return e.split("/").map(t=>encodeURIComponent(t)).join("/")}function u(t,e){if("string"!=typeof t||!t)return t;let r=String(Math.round(e));try{let e=new URL(t);return e.searchParams.set("nw",r),e.href}catch{let e=t.indexOf("#"),n=e>=0?t.slice(0,e):t,i=e>=0?t.slice(e):"",s=n.includes("?")?"&":"?";return`${n}${s}nw=${r}${i}`}}function f(t){if("string"!=typeof t||!t)return t;try{let e=new URL(t);return e.pathname=o(e.pathname),e.href}catch{let e=t.indexOf("#"),r=e>=0?t.slice(0,e):t,n=e>=0?t.slice(e):"";if(r.startsWith("/")||/[\s\u00a0]/.test(r)||/%20/i.test(r))return`${o(r)}${n}`;return t}}function c({src:t,width:e,quality:r}){let n=f((0,i.gY)(t)),o=Math.min(3840,Math.max(16,Math.round(e??384)));if(s(n))return u(n,o);if(a(n)){let e="string"==typeof n&&n?n:f(String(t??""));return e?u(e,o):e}let c=Math.min(100,Math.max(1,Math.round(r??75))),l="string"==typeof n&&n?encodeURIComponent(n):encodeURIComponent(String(t??""));return`/_next/image?url=${l}&w=${o}&q=${c}`}},86149:(t,e,r)=>{r.d(e,{gk:()=>s,tb:()=>i});let n=["website.aaftvideo.com","aaftonline-website-new-green.s3.ap-south-1.amazonaws.com","website.aaftvideo.com"];function i(t){let e=String(t??"").trim().toLowerCase();return n.some(t=>t.toLowerCase()===e)}function s(t){let e=String(t??"").trim().toLowerCase();return!!e&&("aaftonline-website-new-green.s3.ap-south-1.amazonaws.com"===e||e.endsWith(".r2.cloudflarestorage.com"))}}}]);

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.