PageSourceSearch

https://help.airwallex.com/hc/theming_assets/01HZH6T33N3FMABCJP1GZ13XJB

js airwallex.com collected 2026-09-24 08:28:28 UTC 17,606 bytes, 1 lines download raw bytes

1var ready=function(a){"loading"===document.readyState?document.addEventListener("DOMContentLoaded",a):a()},each=function(a,b){Array.prototype.forEach.call(document.querySelectorAll(a),function(a,c){b(a,c)})},DEBUG=!1,SIDELOADING=!1,ClassName={HOVER:"is-hovering",ACTIVE:"is-active",FOCUS:"is-focused",VISIBLE:"is-visible",DISABLED:"is-disabled",OPEN:"is-open",HIDDEN:"is-hidden",INVISIBLE:"invisible",EXPANDED:"is-expanded",SELECTED:"is-selected"},Util=function(){"use strict";var a={},b={locale:Theme.locale,classNames:ClassName,endpoints:{articles:{product:"help_center/"+Theme.locale,endpoint:"articles.json",sideloads:["categories","sections","users","translations"],properties:["id","title","name","html_url","position","category_id","parent_section_id","section_id","promoted","sorting"]},sections:{product:"help_center/"+Theme.locale,endpoint:"sections.json",sideloads:["categories","translations"],properties:["id","name","html_url","position","category_id","parent_section_id","sorting"]},categories:{product:"help_center/"+Theme.locale,endpoint:"categories.json",sideloads:["translations"],properties:["id","name","html_url","position","sorting"]},posts:{product:"community",endpoint:"posts.json",sideloads:["topics","users"],properties:["id","title","html_url","position","featured","pinned","topic_id"]},topics:{product:"community",endpoint:"topics.json",sideloads:[],properties:["id","name","html_url","position"]}},log:function(){!0===DEBUG&&console.log.apply(this,arguments)},typeOf:function(a){return{}.toString.call(a).match(/\s([a-z]+)/i)[1].toLowerCase()},unique:function(a,b){var c=a.map(function(a){return a[b]});return a.filter(function(a,d){return c.indexOf(a[b])===d})},pick:function(a,b){var c={};return a?b&&b.length?(b.forEach(function(b){a.hasOwnProperty(b)&&(c[b]=a[b])}),c):a:c},closest:function(a,b){if(Element.prototype.closest)return a.closest(b);do{if(Element.prototype.matches&&a.matches(b)||Element.prototype.msMatchesSelector&&a.msMatchesSelector(b)||Element.prototype.webkitMatchesSelector&&a.webkitMatchesSelector(b))return a;a=a.parentElement||a.parentNode}while(null!==a&&1===a.nodeType);return null},debounce:function(a,b,c){var d;return function(){var e=this,f=arguments,g=c&&!d;clearTimeout(d),d=setTimeout(function(){d=null,c||a.apply(e,f)},b),g&&a.apply(e,f)}},throttle:function(a,b){var c;return function(){var d=arguments,e=this;c||(a.apply(e,d),c=!0,setTimeout(function(){return c=!1},b))}},isObject:function(a){return a&&"object"==typeof a&&!Array.isArray(a)},extend:function(a,c){var d=Object.assign({},a);return b.isObject(a)&&b.isObject(c)&&Object.keys(c).forEach(function(e){if(!b.isObject(c[e]))d[e]=c[e];else if(!(e in a)){var f={};f[e]=c[e],Object.assign(d,f)}else d[e]=b.isElement(c[e])?c[e]:b.extend(a[e],c[e])}),d},isElement:function(a){return a instanceof Element||a instanceof HTMLDocument},isHomePage:function(a){return a=a||window.location.href,/^http(s)?:\/\/[^\/?#]+(\/hc(\/[a-z-0-9_]+)?(\/)?(signin)?([?]([^?\/]+)?)?([#]([^#\/]+)?)?)?$/.test(a)},isCategoryPage:function(a){return a=a||window.location.href,/\/hc\/([a-z-0-9_]+\/)?categories\//i.test(a)},isSectionPage:function(a){return a=a||window.location.href,/\/hc\/([a-z-0-9_]+\/)?sections\//i.test(a)},isArticlePage:function(a){return a=a||window.location.href,/\/hc\/([a-z-0-9_]+\/)?articles\//i.test(a)},isSearchResultsPage:function(a){return a=a||window.location.href,/\/hc\/([a-z-0-9_]+\/)?search\?*.*/i.test(a)},isNewRequestPage:function(a){return a=a||window.location.href,/\/hc\/([a-z-0-9_]+\/)?requests\/new(\/)?([?#].*)?$/i.test(a)},isNewRequestForm:function(a){var c=document.getElementById("request_ticket_form_id");return b.isNewRequestPage(a)&&(c&&c.value||b.getURLParameter("ticket_form_id"))},isTopicListPage:function(a){return a=a||window.location.href,/\/hc\/([a-z-0-9_]+\/)?community\/topics(\/)?([?#].*)?$/i.test(a)},isPostListPage:function(a){return a=a||window.location.href,/\/hc\/([a-z-0-9_]+\/)?community\/posts(\/)?([?#].*)?$/i.test(a)},isTopicPage:function(a){return a=a||window.location.href,/\/hc\/([a-z-0-9_]+\/)?community\/topics\/[^\/?#]+(\/)?([?#].*)?$/i.test(a)},isPostPage:function(a){return a=a||window.location.href,!b.isNewPostPage(a)&&/\/hc\/([a-z-0-9_]+\/)?community\/posts\/[^\/?#]+(\/)?([?#].*)?$/i.test(a)},isNewPostPage:function(a){return a=a||window.location.href,/\/hc\/([a-z-0-9_]+\/)?community\/posts\/new(\/)?([?#].*)?$/i.test(a)},isUserProfilePage:function(a){return a=a||window.location.href,/\/hc\/([a-z-0-9_]+\/)?profiles\/[^\/?#]+(\/)?([?#].*)?$/i.test(a)},sortByDate:function(c,a){return new Date(c.created_at)-new Date(a.created_at)},sortByPosition:function(c,a){return c.position-a.position},sortByName:function(c,a){return(c.title||c.name)<(a.title||a.name)?-1:(c.title||c.name)>(a.title||a.name)?1:0},sortByPromoted:function(c,a){if(c.hasOwnProperty("promoted")&&a.hasOwnProperty("promoted")){if(c.promoted>a.promoted)return-1;if(a.promoted>c.promoted)return 1}return 0},getPageId:function(a){a=a||window.location.href;var b=a.split("/"),c=b[b.length-1];return parseInt(c,10)||null},getURLParameter:function(a,b){b=b||location.search,a=a.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var c=new RegExp("[\\?&]"+a+"=([^&#]*)"),d=c.exec(b);return null===d?"":decodeURIComponent(d[1].replace(/\+/g," "))},setURLParameter:function(a,b,c){b=encodeURIComponent(b),c=encodeURIComponent(c);var d=a.split("?")[0],e=b+"="+c,f="?"+e,g=void 0===a.split("?")[1]?"":"?"+a.split("?")[1];if(g){var h=new RegExp("([?&])"+b+"[^&]*"),i=new RegExp("([?&])"+b+"=[^&;]+[&;]?");"undefined"==typeof c||null===c||""===c?(f=g.replace(i,"$1"),f=f.replace(/[&;]$/,"")):null===g.match(h)?""===g?f="?"+e:f=g+"&"+e:f=g.replace(h,"$1"+e)}return f="?"===f?"":f,d+f}
1,getTransitionDuration:function(a){if(!a)return 0;var b=getComputedStyle(a),c=parseFloat(b.transitionDuration),d=parseFloat(b.transitionDelay);return c||d?1e3*(c+d):0},onTransitionEnd:function(a,c){if(a&&c&&"function"==typeof c){var d=!1,f=this;a.addEventListener("transitionend",function b(g){g.target!==a||(d=!0,a.removeEventListener("transitionend",b,!1),c.call(f,g))},!1),setTimeout(function(){d||b.triggerEvent(a,"transitionend")},b.getTransitionDuration(a))}},getHashString:function(a){var b=0;if(0===a.length)return b;for(var c,d=0;d<a.length;d++)c=a.charCodeAt(d),b=(b<<5)-b+c,b&=b;return b},intersection:function(a,b){return a.filter(function(a){return b.includes(a)})},comparePosition:function(c,a){if(c.position<a.position)return-1;return c.position>a.position?1:0},get:function(a,c){if("string"==typeof a&&(a=[a]),!Array.isArray(a)||!a.length)return new Promise(function(a,b){b(new Error("The object argument provided is invalid"))});var d=Object.keys(b.endpoints),e=a.filter(function(a){return-1!==d.indexOf(a)});if(!e.length)return new Promise(function(a,b){b(new Error("The specified object types are not supported"))});var f=[];return d.forEach(function(d){if(-1!==a.indexOf(d)){var g=b.endpoints[d],h=g.endpoint,i=b.intersection(a,g.sideloads);i.length&&(h+="?include="+i.join(","),e=e.filter(function(a){return-1===i.indexOf(a)})),f.push({id:d,url:"/api/v2/"+g.product+"/"+h,properties:c||g.properties})}}),f=f.filter(function(a){return-1!==e.indexOf(a.id)}),f.length?Promise.all(f.map(function(a){return b.request(a.url,a.properties)})).then(function(a){if(1===a.length)return a[0];var b={};return a.forEach(function(a){for(var c in a)a.hasOwnProperty(c)&&-1!==d.indexOf(c)&&(b[c]=a[c])}),b}):new Promise(function(a,b){b(new Error("No valid REST API endpoints were found"))})},filterObjectProperties:function(a,c){var d=Object.keys(b.endpoints);for(var e in a)a.hasOwnProperty(e)&&-1!==d.indexOf(e)&&Array.isArray(a[e])&&(a[e]=a[e].filter(function(a){return!(a.hasOwnProperty("draft")&&!0===a.draft)}).map(function(a){return b.pick(a,c)}),-1!==c.indexOf("position")&&1===a.page_count&&a[e].sort(b.comparePosition));return delete a.previous_page,delete a.sort_by,delete a.sort_order,a},getPreviewCookie:function(){return document.cookie.split("; ").find(function(a){return /(^hc-[a-z0-9]+-preview)/i.test(a)})},getExcerpt:function(a,b){return a=a||"",b&&(a=a.replace(/<[^>]+>/g,""),a.length>b)?a.substring(0,b)+"...":a},request:function(c,d,e){d=d||[],!1!==e&&(e=!0);var f=Util.getURLParameter("per_page",c);f||(c=b.setURLParameter(c,"per_page",100));var g=c+d.join("-")+"-signed-in-"+window.Theme.signedIn,h=b.getHashString(g),i=Object.values(b.endpoints).reduce(function(a,b){return a.concat(b.sideloads)},[]);if(i=i.concat(Object.keys(b.endpoints)),i=i.filter((a,b,c)=>c.indexOf(a)===b),e){var j=Util.storage(h,!0);if(j.isValid(3600000))return new Promise(function(a){a(j.get())})}if(a.hasOwnProperty(h))return new Promise(function(b){a[h].push(b)});a[h]=[];var k=function(a,c){if(a.page_count&&(1===a.page_count||1<a.page))return a;for(var d=[],e=Math.min(a.page_count,20),f=2;f<=e;f++)d.push(b.setURLParameter(a.next_page,"page",f));return Promise.all(d.map(function(a){return b.request(a,c,!1)})).then(function(d){for(var e in d.forEach(function(b){for(var c in b)b.hasOwnProperty(c)&&Array.isArray(b[c])&&-1!==i.indexOf(c)&&(a[c]=a[c].concat(b[c]))}),a)a.hasOwnProperty(e)&&Array.isArray(a[e])?(a[e]=b.unique(a[e],"id"),-1<c.indexOf("position")&&a[e].sort(b.comparePosition)):delete a[e];return a})},l=function(b){a[h].length&&a[h].forEach(function(a){a(b)})};return fetch(c).then(function(a){if(200!==a.status)return Promise.reject(new Error(a.statusText));var b=a.headers.get("Content-Type");return-1===b.indexOf("application/json")?Promise.reject("Response does not have a content type of JSON"):a.json()}).then(function(a){return k(a,d)}).then(function(a){for(var c in a=b.filterObjectProperties(a,d),a)a.hasOwnProperty(c)&&-1===i.indexOf(c)&&delete a[c];return e&&(j.set(a),l(a)),a})},scrollIntoView:function(a,b,c){if(b=parseInt(b,10)||0,c=c||window,!!a)if(b){var d=a.getBoundingClientRect().top,e=c===window?c.pageYOffset:c.scrollTop,f=c===window?0:c.offsetTop,g=d-b+e-f;c.scrollTo({top:g,behavior:"smooth"})}else"function"==typeof a.scrollIntoView&&a.scrollIntoView({block:"start",inline:"nearest",behavior:"smooth"})},replaceWithSVG:function(a){var c=[],d=function(a){return"IMG"===a.tagName&&a.src&&"svg"===a.src.substr(a.src.lastIndexOf(".")+1)};"string"==typeof a&&(a=document.querySelectorAll(a),!a)||(NodeList.prototype.isPrototypeOf(a)?c=Array.prototype.filter.call(a,function(a){return!!d(a)||(a.classList.remove(ClassName.INVISIBLE),!1)}):b.isElement(a)&&(d(a)?c.push(a):a.classList.remove(ClassName.INVISIBLE)),c.length&&c.forEac
1h(function(a){fetch(a.src,{cache:"no-cache",mode:"cors",credentials:"omit"}).then(function(a){return a.blob()}).then(function(a){return a.text()}).then(function(b){var c=document.createElement("div");c.innerHTML=b.trim();var d=c.querySelector("svg");a.classList.forEach(function(a){d.classList.add(a)});for(var e,f=0;f<a.attributes.length;f++)e=a.attributes[f],d.setAttribute(e.name,e.value);d.removeAttribute("data-inline-svg"),d.classList.remove(ClassName.INVISIBLE),a.replaceWith(d)})}))},reflow:function(a){return a.offsetHeight},triggerEvent:function(a,b,c){if(b){var d=new CustomEvent(b,{bubbles:!0,cancelable:!0,detail:c||{}});return(a||window).dispatchEvent(d),d}},getSelectorFromElement:function(a){var b=a.getAttribute("data-target");if(!b||"#"===b){var c=a.getAttribute("href");b=c&&"#"!==c?c.trim():""}try{return document.querySelector(b)?b:null}catch(a){return null}}};return b}();(function(a){window.dataStorage={_storage:new WeakMap,put:function(a,b,c){this._storage.has(a)||this._storage.set(a,new Map),this._storage.get(a).set(b,c)},get:function(a,b){return this._storage.has(a)?this._storage.get(a).get(b):void 0},has:function(a,b){return this._storage.has(a)&&this._storage.get(a).has(b)},remove:function(a,b){var c=this._storage.get(a).delete(b);return 0===!this._storage.get(a).size&&this._storage.delete(a),c}};var b=0,c=function(c,d){if(!a.isElement(c))throw Error("A valid DOM element was not provided.");this.el=c,this.instanceNumber=b++,this.id="zp-"+this.instanceNumber,this.options=this._getOptions(d),this.events=a.extend(this.events,{initialize:"initialize"}),this.initialize(this.options)},d=c.prototype;d.defaults={},d.optionTypes={},d.events={},d._getOptions=function(b){b=a.extend(this.defaults,b);var c=this.el.dataset;for(var d in c)if(c.hasOwnProperty(d)&&b.hasOwnProperty(d)){var e=c[d];"true"===e&&(e=!0),"false"===e&&(e=!1),"null"===e&&(e=null),e===+e+""&&(e=+e),b[d]=e}return this._checkOptionTypes(b,this.optionTypes),b},d._checkOptionTypes=function(b,c){for(var d in c)if(Object.prototype.hasOwnProperty.call(c,d)){var e=c[d],f=b[d],g=f&&a.isElement(f)?"element":a.typeOf(f);if(!new RegExp(e).test(g))throw new Error("Option \""+d+"\" provided \""+g+"\" but expected \""+e+"\"")}},d.initialize=function(){},d._getClassName=function(b){var c;if(!this.options.hasOwnProperty("classNames")||"object"!==a.typeOf(this.options.classNames)||!this.options.classNames.hasOwnProperty(b))return c;var d=this.options.classNames;return"function"==typeof d[b]?c=d[b].apply(this,[].slice.call(arguments,1)):"string"==typeof d[b]&&(c=d[b]),c},a.createExtension=function(a){var b=function(a,b){c.call(this,a,b)};for(var d in b.prototype=Object.create(c.prototype),a)a.hasOwnProperty(d)&&(b.prototype[d]=a[d]);return Object.defineProperty(b.prototype,"constructor",{enumerable:!1,value:b}),b}})(Util||{}),function(a){var b={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g},c=/(.)^/,d={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},e=function(a){return"\\"+d[a]},f=function(a){var b=function(b){return a[b]},c="(?:"+Object.keys(a).join("|")+")",d=RegExp(c),e=RegExp(c,"g");return function(a){return a=null==a?"":""+a,d.test(a)?a.replace(e,b):a}}({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"});a.getTemplateString=function(a){if(!a)return"";var b=document.querySelectorAll("#tmpl-"+a);return b.length?b[b.length-1].innerHTML||"":""},a.template=function(d,f){f=f||{},f=a.extend(f,b),d=a.decodeHTML(d);var g=RegExp([(f.escape||c).source,(f.interpolate||c).source,(f.evaluate||c).source].join("|")+"|$","g"),h=0,i="__p+='";d.replace(g,function(a,b,c,f,g){return i+=d.slice(h,g).replace(/\\|'|\r|\n|\u2028|\u2029/g,e),h=g+a.length,b?i+="'+\n((__t=("+b+"))==null?'':escape(__t))+\n'":c?i+="'+\n((__t=("+c+"))==null?'':__t)+\n'":f&&(i+="';\n"+f+"\n__p+='"),a}),i+="';\n",f.variable||(i="with(obj||{}){\n"+i+"}\n"),i="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+i+"return __p;\n";var j;try{j=new Function(f.variable||"obj",i)}catch(a){throw a.source=i,a}var k=function(a){return j.call(this,a)};return k},a.decodeHTML=function(a){var b=document.createElement("textarea");return b.innerHTML=a,b.value},a.renderTemplate=function(b,c,d,e){d=d||{},e=e||{},e.hasOwnProperty("replaceContent")||(e.replaceContent=!0),"string"==typeof b&&(b=document.querySelector(b)),b||console.error("A valid HTML element was not specified");var f=document.querySelectorAll("#tmpl-"+c),g=f.length?f[f.length-1]:null,h="";if(!g||!g.innerHTML){a.log("Template "+c+" does not exist");var i={topbar:"Top Bar",notification:"Notification","header-search":"Header Search","category-dropdown":"Category Dropdown","popular-keywords":"Popular Keywords","custom-blocks":"Custom Blocks","content-blocks":"Content Blocks","contact-blocks":"Contact Blocks","call-to-action":"Call to Action","table-of-contents":"Table of Contents","form-list":"Form List","form-tip":"Form Tip",breadcrumbs:"Breadcrumbs",articles:"Articles","recent-articles":"Recent Articles","related-articles":"Related Articles","promoted-articles":"Promoted Articles","sidebar-navigation":"Sidebar Navigation",social:"Social links","back-to-top-link":"Category Dropdown"},j=i.hasOwnProperty(c)?i[c]:c;h="<div class=\"notification-notice template-notice border border-radius my-5 px-5 py-4 font-size-md\"><h4>Custom micro-template</h4><p>With the theme <a href=\"https://support.zendesk.com/hc/en-us/articles/4408842911898#topic_pzy_jb1_wmb\" target=\"_blank\">Developer license</a> you can copy-and-paste your desired <b>"+j+"</b> template from our Pattern Library into the bottom of your theme's <a href=\"https://support.zendesk.com/hc/en-us/articles/4408839332250#topic_h5c_k4w_n3\" target=\"_blank\">footer.hbs template</a> and have it appear here automatically.</p></div>"}else h=g.innerHTML;d.partial=function(a,b){var c=document.getElementById("tmpl-"+a);return c&&c.innerHTML?k(c.innerHTML,b):""};var k=function(b,c){var d=a.template(a.decodeHTML(b));return d(c).replace(/(^\s+|\s+$)/g,"")},l=k(h,d);if(l?(!0===e.replaceContent?b.innerHTML=l:b.insertAdjacentHTML("afterbegin",l),a.triggerEvent(b,"template:render",{relatedTarget:b})):!0===e.removeEmptyElement&&b.remove(),b){var m=b.querySelectorAll("img[data-inline-svg]");m.length&&a.replaceWithSVG(m),e.hasOwnProperty("removeClasses")&&Array.isArray(e.removeClasses)&&e.removeClasses.length&&e.removeClasses.forEac
1h(function(a){b.classList.remove(a)})}}}(Util||{}),function(a){var b=function(a,b){if(!a)throw Error("Please provide an ID for your storage");this.id=a,this.storage=b?sessionStorage:localStorage},c=b.prototype;c.set=function(a){this.storage.setItem(this.id,JSON.stringify({timestamp:new Date().getTime(),data:a}))},c.get=function(a,b){var c=this.storage.getItem(this.id);return c=c?JSON.parse(c):null,c&&!0!==DEBUG?b?c:c.data:a?a:c},c.isValid=function(a){var b=this.get(null,!0);if(!b||!0===DEBUG)return!1;var c=new Date().getTime()-b.timestamp;return c<a},c.remove=function(){this.storage.removeItem(this.id)},a.storage=function(a,c){return new b(a,c)}}(Util||{});

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.