PageSourceSearch

https://www.advancedtech.com/wp-content/themes/ws/dist/front-js-form.d4a17f16bbec216dd70b.min.js

js advancedtech.com collected 2026-10-02 11:07:03 UTC 9,617 bytes, 1 lines download raw bytes

1!function(){"use strict";var e={5084:function(e,t,n){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=n(603),i=o(n(6333));var a;function s(e){if(e){const t=(0,r.checkParents)(e,".wp-block-ws-form")||void 0,n=null==t?void 0:t.querySelector(".form-msg");if(n&&""!==n.innerHTML)return e.style.setProperty("display","none"),n.innerHTML=atob(n.innerHTML),n.style.setProperty("display","block"),!1}return!0}a="marketo",location.search&&location.search.substr(1).split("&").forEach((e=>{const t=e.split("="),n=t[0],o=t[1];0!==n.indexOf("utm_")&&"gclid"!==n||(document.cookie=`${n}=${o}; path=/`)})),document.cookie=`referrer=${document.referrer}; path=/`,"marketo"===a?function(){if("undefined"!=typeof MktoForms2){const e=[],t=document.querySelectorAll(".mktoForm[data-form-id]");for(let n=0;n<t.length;n++)e.push(t[n].getAttribute("data-form-id"));(0,i.default)({podId:"",munchkinId:"",formIds:[...new Set(e)]}),MktoForms2.whenReady((e=>{!function(e){document.cookie.split("; ").filter((e=>0===e.indexOf("utm_")||e.indexOf("gclid"))).forEach((t=>{const n=t.split("="),o=n[0],r=n[1];e.vals({[o]:r})}))}(e),e.onValidate((()=>{e.getFormElem()[0].classList.add("submitted")})),e.onSuccess((()=>s(e)))})),MktoForms2.whenRendered((e=>{!function(e){e.removeAttribute("style")}(e.getFormElem()[0])}))}}():"hubspot"===a?window.addEventListener("hsvalidatedsubmit",(e=>{s(e.target)})):"pardot"===a&&function(){function e(e){"http://go.pardot.com"===e.origin&&(e.data.url||e.data.name)&&e.data.submitted&&s(e.data.name?document.querySelector(`iframe[name^="${e.data.name}"]`):document.querySelector(`iframe[src="${e.data.url}"]`))}window.addEventListener("message",e,!1)}()},603:function(e,t,n){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.uniqid=t.unflattenWPData=t.treeMap=t.trapFocus=t.svgFromObject=t.styleToThemeObject=t.setFieldValue=t.setCookie=t.scaleValue=t.releaseFocus=t.onScreen=t.objectsMatch=t.keyCodes=t.isTag=t.handleAjax=t.getTransitionEvent=t.getCookie=t.getAnimationEvent=t.formValuesToObject=t.checkParents=t.arrayMove=t.arraysMatch=void 0;const r=o(n(6850));function i(e,t){return e instanceof HTMLElement&&e.tagName.toLowerCase()===t}t.arraysMatch=function(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0},t.arrayMove=function(e,t,n){if(n>=e.length){let t=n-e.length+1;for(;t--;)e.push(void 0)}return e.splice(n,0,e.splice(t,1)[0]),e},t.checkParents=function(e,t){let n=e;const o=document.querySelectorAll(t);for(;n;){for(let e=0;e<o.length;e++)if(o[e]===n)return n;n=n.parentNode||null}return null},t.formValuesToObject=function(e){const t={};for(let n=0;n<e.elements.length;n++){const o=e.elements[n];o.name&&!o.disabled&&"file"!==o.type&&"reset"!==o.type&&"submit"!==o.type&&"button"!==o.type&&("select-multiple"===o.type?o.options.forEach((e=>{e.selected&&(t[encodeURIComponent(o.name)]=encodeURIComponent(e.value).replace(/%20/g,"+"))})):("checkbox"!==o.type&&"radio"!==o.type||o.checked)&&(t[encodeURIComponent(o.name)]=encodeURIComponent(o.value).replace(/%20/g,"+")))}return t},t.getAnimationEvent=function(){const e=document.createElement("fakeelement"),t={animation:"animationend",MozAnimation:"animationend",WebkitAnimation:"webkitAnimationEnd"};for(const n in t)if(void 0!==e.style[n])return t[n]},t.getCookie=function(e){const t=`${e}=`,n=decodeURIComponent(document.cookie).split(";");for(let e=0;e<n.length;e++){const o=n[e].trim();if(0===o.indexOf(t))return o.substring(t.length,o.length)}return!1},t.getTransitionEvent=function(){const e=document.createElement("fakeelement"),t={transition:"transitionend",MozTransition:"transitionend",WebkitTransition:"webkitTransitionEnd"};for(const n in t)if(void 0!==e.style[n])return t[n]},t.handleAjax=function(e,t,n,o=null){const r=new XMLHttpRequest;r.open("GET",e,!0),r.onload=()=>{const e=JSON.parse(r.response);200===r.status&&e?t(e,o):n(o)},r.onerror=()=>{n(o)},r.send()},t.isTag=i;function a(e){e.preventDefault();
1e.target.focus({preventScroll:!0});e.relatedTarget.focus()}t.keyCodes={ARROW_LEFT:37,ARROW_UP:38,ARROW_RIGHT:39,ARROW_DOWN:40,TAB:9,ENTER:13,ESCAPE:27},t.objectsMatch=function(e,t){const n=Object.getOwnPropertyNames(e),o=Object.getOwnPropertyNames(t);if(n.length!==o.length)return!1;for(let o=0;o<n.length;o++){const r=n[o];if(e[r]!==t[r])return!1}return!0},t.onScreen=function(e,t){const n=e.getBoundingClientRect();let o=!1,r=!1;if(null===e.offsetParent)return!1;if("%"===t[t.length-1]){const e=Number(t.replace(/%/g,""));o=100-n.top/n.height*-100>e,r=100-(n.bottom-window.innerHeight)/n.height*100>e}else{const e=Number(t.replace(/[px]+/g,""));o=n.bottom>=0+e,r=n.top<window.innerHeight-e}return o&&r},t.releaseFocus=function(e,t){var n,o;if(e&&(void 0===t&&(t=a),e)){const r=e.firstElementChild,i=e.lastElementChild;r.removeEventListener("focus",t),i.removeEventListener("focus",t),null===(n=r.parentNode)||void 0===n||n.removeChild(r),null===(o=i.parentNode)||void 0===o||o.removeChild(i)}},t.scaleValue=function(e,t,n){const o=(n[1]-n[0])/(t[1]-t[0]);return(Math.min(t[1],Math.max(t[0],e))-t[0])*o+n[0]},t.setCookie=function(e,t,n){const o=new Date;o.setTime(o.getTime()+24*n*60*60*1e3);const r=`expires=${o.toUTCString()}`;document.cookie=`${e}=${t};${r};path=/`},t.setFieldValue=function(e,t){if(i(e,"select")){const n=e.querySelectorAll("option");let o=-1;n.forEach(((e,n)=>{e.selected=!1,e.value===t&&(o=n)})),e.selectedIndex=o}else e.value=t},t.styleToThemeObject=function(e){let t=!1;return"#"===e.substring(0,1)?r.default.settings.color.palette.forEach((n=>{n.color===e&&(t=n)})):"linear-gradient("===e.substring(0,16)&&r.default.settings.color.gradients.forEach((n=>{n.gradient===e&&(t=n)})),t},t.svgFromObject=function(e){return`<svg viewBox="${e.viewbox}"><title>${e.title}</title>${e.path}</svg>`},t.trapFocus=function(e,t){if(!e)return;void 0===t&&(t=a);const n=document.createElement("div");n.tabIndex=0,e.insertBefore(n,e.firstChild);const o=document.createElement("div");o.tabIndex=0,e.appendChild(o),n.addEventListener("focus",t),o.addEventListener("focus",t)},t.treeMap=function e(t,n=[]){const o=[];for(let r=0;r<n.length;r++){const i=t(n[r]);n[r].children&&(i.children=e(t,n[r].children)),o.push(i)}return o},t.unflattenWPData=function(e){var t;if(!e)return[];const n=[],o={};e.forEach((e=>{o[e.id]=Object.assign(Object.assign({},e),{children:[]})}));for(const e in o){const r=o[e];r.parent?null===(t=o[r.parent].children)||void 0===t||t.push(r):n.push(r)}return n},t.uniqid=function(e=""){return`${e}${Date.now().toString(36)}`}},6333:function(e,t,n){function o(e){const t=getSelection.call.bind([].slice);MktoForms2.whenRendered((function(e){const n=e.getFormElem()[0],o="_"+(new Date).getTime()+Math.random();t(n.querySelectorAll("label[for]")).forEach((function(e){const t=n.querySelector(`[id="${e.htmlFor}"]`);t&&(e.htmlFor=t.id=t.id+o)}))})),t(e.formIds).forEach((function(n){const o=MktoForms2.loadForm.bind(MktoForms2,e.podId,e.munchkinId,n);!function e(t){const r=t.shift();r.id="mktoForm_"+n,o((function(){r.id="",t.length&&e(t)}))}(t(document.querySelectorAll(`[data-form-id="${n}"]`)))}))}n.r(t),n.d(t,{default:function(){return o}})},6850:function(e){e.exports=JSON.parse('{"version":1,"settings":{"color":{"palette":[{"name":"Red","slug":"red","color":"#E31936"},{"name":"Dark Red","slug":"darkred","color":"#BE1E2D"},{"name":"Light Grey","slug":"lightgrey","color":"#f9f9f9"},{"name":"Dark Grey","slug":"darkgrey","color":"#565656"},{"name":"Dark Blue","slug":"darkblue","color":"#133450"},{"name":"Black","slug":"black","color":"#000000"},{"name":"White","slug":"white","color":"#ffffff"}],"gradients":[{"name":"Night->Dusk","slug":"night-dusk","gradient":"linear-gradient(90deg, rgba(4, 28, 44, 1) 0%, rgba(16, 41, 82, 1) 100%)"},{"name":"red→Light Orange","slug":"red-orange","gradient":"linear-gradient(90deg, rgba(232, 76, 43, 1) 0%, rgba(234, 110, 42, 1) 100%)"},{"name":"Sand->White","slug":"sand-white","gradient":"linear-gradient(90deg, rgba(236, 227, 224, 1) 0%, rgba(255, 255, 255, 1) 100%)"},{"name":"Salt->White","slug":"salt-white","gradient":"linear-gradient(90deg, rgba(255, 244, 240, 1) 0%, rgba(255, 255, 255, 1) 100%)"}]},"spacing":{"customMargin":true},"typography":{"customFontSize":false,"fontSizes":[{"name":"H1","slug":"h1","size":"60px"},{"name":"H2","slug":"h2","size":"40px"},{"name":"H3","slug":"h3","size":"30px"},{"name":"H4","slug":"h4","size":"25px"},{"name":"Paragraph","slug":"paragraph","size":"16px"}]},"blocks":{"core/button":{"border":{"customRadius":false}},"core/list":{"supports":{"columns":true}}}},"styles":{"elements":{"h2":{"color":{"text":"var(--wp--preset--color--red)"}}}},"unregisterBlocks":["core/columns","core/media-text"],"fonts":[{"name":"Inter","src":"/wp-content/themes/ws/assets/fonts/Inter-Light.ttf","weight":300},{"name":"Inter","src":"/wp-content/themes/ws/assets/fonts/Inter-Medium.ttf","weight":500},{"name":"Inter","src":"/wp-content/themes/ws/assets/fonts/Inter-SemiBold.ttf","weight":600}]}')}},t={};function n(o){var r=t[o];
1if(void 0!==r)return r.exports;var i=t[o]={exports:{}};return e[o].call(i.exports,i,i.exports,n),i.exports}n.d=function(e,t){for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};n(5084)}();

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.