PageSourceSearch

https://www.meisterschwanden.ch/static/js/femodules/osm/osm.min.js?ver=1.8.117_1

js meisterschwanden.ch collected 2026-10-02 20:13:49 UTC 2,801 bytes, 1 lines download raw bytes

1(()=>{"use strict";function e(e,t){"loading"!==document.readyState?e.apply(null,t):window.addEventListener("DOMContentLoaded",(()=>e.apply(null,t)))}const t=(e,t)=>{const o={method:e.method||"POST",headers:{"Content-type":"application/x-www-form-urlencoded; charset=UTF-8","X-Requested-With":"XMLHttpRequest"}};let r=e.url;if(t){const e=n(t);"POST"==o.method?o.body=e:r+="&"+e}return{input:r,init:o}},o=e=>{let t=e;var o;return"object"!=typeof(o=e)||null==o||Array.isArray(e)||(t=JSON.stringify(e)),null===t?"":t},n=e=>{const t=[];for(let n in e)e.hasOwnProperty(n)&&t.push(encodeURIComponent(n)+"="+encodeURIComponent(o(e[n])));return t.join("&")};function r(e,o,n){const r=e.querySelector('[type="submit"]');r.disabled=!0;const{input:i,init:a}=t({url:o,method:"POST"},function(e){const t=new FormData(e),o={};t.forEach(((e,t)=>{o[t]?(Array.isArray(o[t])||(o[t]=[o[t]]),o[t].push(e)):o[t]=e}));const n=e.querySelector('[type="submit"]');return n&&n.name&&!o.hasOwnProperty(n.name)&&(o[n.name]=n.value),o}(e)),l=e=>{r.disabled=!1,n(e)};fetch(i,a).then((e=>e.json())).then((e=>l(e))).catch((()=>l(null)))}function i(e){const t=e.querySelectorAll('[for="shippingEmail"] [aria-hidden="true"]'),o=e.querySelector("#shipping-email-container"),n=e.querySelector("#shippingEmail");e.querySelector("#sendShippingEmail").checked?(n.disabled=!1,n.required=!0,n.classList.add("required"),t.forEach((e=>{e.style.removeProperty("display")})),o.style.removeProperty("display"),n.focus()):(o.style.setProperty("display","none"),n.disabled=!0,n.required=!1,n.classList.remove("required"),t.forEach((e=>{e.style.setProperty("display","none")})),globalThis.Validator.clearErrors(n))}function a(e,t){e&&(e.success?window.location=t:e.cartExpired?window.location.reload():function(e){const t=document.getElementById("error_messages");t&&(t.classList.add("box","box--error"),t.setAttribute("aria-hidden","false"),t.innerHTML=e)}(e.message))}const l=(t,o,n)=>e((()=>{const e=document.getElementById(t);globalThis.Validator.validate(e,{langCode:o,submitHandler:()=>(r(e,e.getAttribute("action"),(e=>a(e,n||e&&e.continueUrl))),!0)})}));Object.assign("govis.module.osm.osm".split(".").reduce(((e,t)=>(e[t]||(e[t]={}),e[t])),globalThis),{addToCart:e=>{globalThis.Validator.validate(document.getElementById("product-addtocart-form"),Object.assign({autoSubmit:!0},e))},validateForm:l,confirm:t=>e((()=>{const e=document.getElementById("checkout_confirm_form");!function(e){try{const t=globalThis.store("cometClientEmail"),o=e.querySelector("#shippingEmail");(function(e,t){return!e.value&&t})(o,t)&&(o.value=t,e.querySelector("#sendShippingEmail").checked=!0)}catch(e){console.log(e)}}(e);const o=e.querySelector("#sendShippingEmail");null==o||o.addEventListener("click",(()=>i(e))),i(e),l("checkout_confirm_form",t,"")}))})})();

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.