PageSourceSearch

https://www.lisachastain.com/public/main.umd.js

js lisachastain.com collected 2026-10-04 16:07:52 UTC 7,136 bytes, 1 lines download raw bytes

1(function(y){typeof define=="function"&&define.amd?define(y):y()})(function(){"use strict";var y="t1.0",q=2700;function T(s){for(var n={},o=Object.create(null),r=0;r<s.length;r++){var t=s[r];if(!(t.type==="submit"||t.type==="button"||t.type==="reset")&&t.name)if(t.type==="select-multiple"){for(var e=[],a=t.options,c=0;c<a.length;c++)a[c].selected&&e.push(a[c].value);n[t.name]=e}else if(t.type==="radio")t.checked&&(n[t.name]=t.value);else if(t.type==="checkbox")t.checked&&(o[t.name]?(o[t.name].push(t.value),n[t.name]=o[t.name].filter(function(f){return String(f).trim().length>0})):(o[t.name]=[t.value],n[t.name]=t.value));else if(t.type==="datetime-local"){var d=t.value;if(d){var g=new Date(d);n[t.name]=g.toLocaleString("en-US",{month:"long",day:"numeric",year:"numeric",hour:"numeric",minute:"numeric",hour12:!0})}}else n[t.name]=t.value}return n}function D(s){var n=document.querySelectorAll(`[${s}]`);!n||n.length===0||n.forEach(function(o){var r=Date.now();o.dataset.lsRenderedAt=String(r),console.log("[LS] Form initialized at",r),o.addEventListener("submit",function(t){t.preventDefault();for(var e,a=t.target.elements,c=0;c<a.length;c++)if(a[c].type==="submit"){e=a[c];break}var d=T(a);if(!e){console.error("No submit button found.");return}var g=Date.now(),f=o.dataset.lsRenderedAt,v=f?g-parseInt(f,10):0;v<q&&console.log("[LS] WOULD BLOCK: too fast ("+v+" ms < "+q+" ms) - monitoring mode, allowing");var A=e.innerText;d.analyticsId=window.LANDING_SITE_ID,d._ls_rendered_at=f,d._ls_submit_at=String(g),d._ls_version=y,d._ls_mode="timing_only",e.innerText="Sending...",fetch(window.LANDING_SITE_CONTACT_US_URL,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(d)}).then(function(h){if(h.status===202)return h.json().then(function(S){throw console.log("[LS] server blocked: "+(S.reason||"unknown")),e.innerText="Error. Please try again.",new Error("Server blocked submission: "+S.reason)});if(console.log(h),h.ok){e.innerText="Done!";for(var p=0;p<a.length;p++)a[p].type!=="submit"&&(a[p].value="");var u=o.getAttribute("data-landingsite-success-redirect");if(u){if(window.LANDING_SITE_PREVIEW_REDIRECT_PATH&&u.indexOf("http")!==0)try{window.LANDING_SITE_PREVIEW_REDIRECT_PATH(u);return}catch{}window.location.href=u;return}}else e.innerText="Error. Please try again."}).catch(function(h){console.log("[LS] error: "+h.message)}).finally(function(){setTimeout(function(){e.innerText=A},4e3)})})})}function k(s){if(!document)return;const n=document.getElementById(s);if(!n)return;const o=document.getElementById("navigation-menu");if(!o)return;n.addEventListener("click",function(){o.classList.toggle("hidden");const e=!o.classList.contains("hidden");n.setAttribute("aria-expanded",e?"true":"false")});function r(){this.querySelectorAll(".lg\\:group-hover\\:block").forEach(a=>{a.classList.toggle("hidden")})}Array.from(o.querySelectorAll(".group")).forEach(e=>{e.addEventListener("click",r)})}function N(){if(!document)return;const s=document.querySelector("[data-landingsite-mobile-menu-toggle]");if(!s)return;const n=document.querySelector("[data-landingsite-mobile-menu]");n&&s.addEventListener("click",function(){n.classList.toggle("hidden");const o=!n.classList.contains("hidden");s.setAttribute("aria-expanded",o?"true":"false")})}function I(s){const n=s.querySelectorAll("[data-landingsite-carousel-item]");if(n.length===0)return{itemWidth:0,gapValue:0,stepSize:0,itemsInView:1};const o=window.getComputedStyle(s),r=parseFloat(o.columnGap)||0,e=n[0].offsetWidth,a=e+r,c=s.parentElement.clientWidth,d=Math.max(Math.floor(c/e),1);return{itemWidth:e,gapValue:r,stepSize:a,itemsInView:d}}function M(s,n){let o;return function(...r){clearTimeout(o),o=setTimeout(()=>s.apply(this,r),n)}}let L=[];function V(s){const n=document.querySelectorAll(`[${s}]`);L=[],n.forEach(r=>{const t=r.querySelectorAll("[data-landingsite-carousel-item]");let e=r.parentElement;for(;e;){const i=Array.from(e.children);let l=!1;for(const m of i){const _=m.querySelector("[data-landingsite-carousel]");if(!(_&&_!==r)&&(m.hasAttribute("data-landingsite-carousel-controls-left")||m.hasAttribute("data-landingsite-carousel-control
1s-right")||m.hasAttribute("data-landingsite-carousel-controls-index")||m.querySelector("[data-landingsite-carousel-controls-left]")||m.querySelector("[data-landingsite-carousel-controls-right]")||m.querySelector("[data-landingsite-carousel-controls-index]"))){l=!0;break}}if(l||e.matches("section, .code-section, body"))break;e=e.parentElement}e||(e=r.parentElement);let a=null,c=null,d=null,g=null,f=null;const v=Array.from(e.querySelectorAll("[data-landingsite-carousel-controls-left]")),A=Array.from(e.querySelectorAll("[data-landingsite-carousel-controls-right]")),h=Array.from(e.querySelectorAll("[data-landingsite-carousel-controls-index]")),p=i=>{let l=i.parentElement;for(;l&&l!==e;){const m=l.querySelector("[data-landingsite-carousel]");if(m&&m!==r)return!1;l=l.parentElement}return!0};a=v.find(i=>p(i)),c=A.find(i=>p(i)),f=h.find(i=>p(i)),d=e.querySelector("[data-landingsite-carousel-current-index]"),g=e.querySelector("[data-landingsite-carousel-length]");let u=0;const S=t.length;let{itemWidth:W,gapValue:R,stepSize:w,itemsInView:E}=I(r);g&&(g.textContent=S);function x(){d&&(d.textContent=u+1)}function C(){if(!f)return;f.querySelectorAll("li").forEach((l,m)=>{l.className=l.className.replace(/\bbg-\S+/g,""),m===u?l.classList.add("bg-[var(--primary-color)]"):l.classList.add("bg-[#C9CECD]")})}x();function b(i){typeof i=="string"?i==="next"?(u++,u>S-E&&(u=0)):i==="prev"&&(u--,u<0&&(u=S-E,u<0&&(u=0))):typeof i=="number"&&(u=i);const l=u*w;r.style.transform=`translateX(-${l}px)`,x(),C()}if(a&&a.addEventListener("click",()=>{b("prev")}),c&&c.addEventListener("click",()=>{b("next")}),f){f.innerHTML="";for(let i=0;i<S;i++){const l=document.createElement("li");l.classList.add("h-5","w-5","rounded-full","cursor-pointer","transition-colors"),i===0?l.classList.add("bg-[var(--primary-button-bg-color)]"):l.classList.add("bg-[#C9CECD]"),l.addEventListener("click",()=>{b(i)}),f.appendChild(l)}}C(),L.push({carousel:r,get currentIndex(){return u},set currentIndex(i){u=i},get stepSize(){return w},set stepSize(i){w=i},get itemsInView(){return E},set itemsInView(i){E=i},updateCarousel:b})});const o=M(()=>{L.forEach(r=>{const{itemWidth:t,gapValue:e,stepSize:a,itemsInView:c}=I(r.carousel);r.stepSize=a,r.itemsInView=c;const d=r.currentIndex*a;r.carousel.style.transform=`translateX(-${d}px)`})},200);window.addEventListener("resize",o)}function B(s){const n=document.querySelectorAll(`[${s}]`);n.length&&n.forEach(o=>{o.querySelectorAll("[data-landingsite-faq-item]").forEach(t=>{const e=t.querySelector("[data-landingsite-faq-question]"),a=t.querySelector("[data-landingsite-faq-answer]");e&&a&&e.addEventListener("click",()=>{a.classList.toggle("hidden");const c=e.querySelector("i");c&&c.classList.toggle("rotate-180")})})})}function z(s){document&&document.readyState==="loading"?document.addEventListener("DOMContentLoaded",s):s()}z(function(){k("mobile-menu-button"),N(),D("data-landingsite-contact-form"),V("data-landingsite-carousel"),B("data-landingsite-faq")})});

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.