PageSourceSearch

https://www.cashgate.ch/_assets/Layout.astro_astro_type_script_index_2_lang.DpTf2_mx.js

js cashgate.ch collected 2026-10-07 22:59:52 UTC 2,190 bytes, 1 lines download raw bytes

1import{b as g,c as y,d as m}from"./events.CdKHXiuR.js";import"./amplitude.PAedJDK5.js";document.addEventListener("DOMContentLoaded",()=>{const s="form[data-track-event='form_event'][data-form-type]";function f(r){return(r??"").toString().replace(/\s+/g," ").trim()}function i(r){return f(r.dataset.formType)}function v(r){const e=f(r.dataset.formFields);return e?e.split(",").map(t=>t.trim()).filter(Boolean):[]}function F(r,e){const t=r.querySelector(`[data-track-field='${CSS.escape(e)}']`);if(t&&"value"in t)return f(t.value);const n=r.elements.namedItem(e);return n&&"value"in n?f(n.value):""}function c(r){const e=v(r);if(!e.length)return[];const t={};for(const n of e)t[n]=F(r,n);return[t]}const u=new WeakSet,p=new IntersectionObserver(r=>{for(const e of r){if(!e.isIntersecting)continue;const t=e.target;if(u.has(t))continue;u.add(t);const n=i(t);n&&g({form_type:n})}},{threshold:.5}),d=r=>{p.observe(r)};document.querySelectorAll(s).forEach(r=>d(r));const b=r=>r instanceof HTMLFormElement;new MutationObserver(r=>{for(const e of r)for(const t of Array.from(e.addedNodes)){if(!(t instanceof HTMLElement))continue;const n=t.matches(s)?[t]:[],E=Array.from(t.querySelectorAll(s)),_=[...n,...E];for(const l of _)b(l)&&d(l)}}).observe(document.documentElement,{childList:!0,subtree:!0});function a(r){const e=r;if(!e)return null;const t=e instanceof HTMLFormElement?e:e.closest(s);return t&&t.matches(s)?t:null}document.addEventListener("track:form_submit",r=>{const e=a(r.target);if(!e)return;const t=i(e);t&&y({form_type:t,form_fields:c(e)})},!0);const o=new WeakSet;document.addEventListener("track:form_error",r=>{const e=a(r.target);if(!e||o.has(e))return;o.add(e),window.setTimeout(()=>o.delete(e),1500);const t=i(e);t&&m({form_type:t,form_fields:c(e)})},!0),document.addEventListener("submit",r=>{const e=a(r.target);if(!e)return;const t=i(e);if(t){if(typeof e.checkValidity=="function"&&!e.checkValidity()){m({form_type:t,form_fields:c(e)});return}y({form_type:t,form_fields:c(e)})}},!0),document.addEventListener("invalid",r=>{const e=a(r.target);if(!e||o.has(e))return;o.add(e),window.setTimeout(()=>o.delete(e),1500);const t=i(e);t&&m({form_type:t,form_fields:c(e)})},!0)});

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.