PageSourceSearch

https://www.income.com.sg/assets/js/main.js?v=2muxwHkSIoCgV0XNRCswU6zFaEJnEYV_U00ofMWSrv4

js income.com.sg collected 2026-09-24 09:15:28 UTC 5,794 bytes, 4 lines download raw bytes

1/* empty css                                         *//* empty css                                 */import{C as g}from"../../vendor/bootstrap.esm.js";import{w as v,a as b}from"../../vendor/superscript-linking.js";import{R as x}from"../../vendor/react-mount.js";import{D as _}from"../../vendor/datepicker.js";import{j as k,h as d}from"../../vendor/helper.js";import{t as L,h as S}from"../../vendor/event-tag.js";import{h as E}from"./widgets/search-result/search-result.js";import"../../vendor/react-vendors.js";import"../../vendor/dropdown.js";import"../../vendor/index.js";import"../../vendor/icon.js";import"../../vendor/DayPicker.js";const w=()=>{Array.from(document.querySelectorAll("[data-bs-toggle=collapse]")).forEach(r=>{var o;if(!((o=r==null?void 0:r.dataset)!=null&&o.bsTarget))return;const e=document.querySelector(r.dataset.bsTarget),t=r.classList.contains("collapsed"),a=r.ariaExpanded==="true"&&(e==null?void 0:e.classList.contains("show"));!t&&!a&&new g(r)})},y=()=>{const n=document.querySelectorAll(".infographics .accordion-item"),r=e=>{const t=e.currentTarget.closest(".accordion-item");v(t,".accordion-collapse.show",()=>{var i;const a=(i=document.querySelector(".topbar"))==null?void 0:i.getBoundingClientRect().height,o=a?a+20:0,s=t.getBoundingClientRect().top+window.pageYOffset-o;window.scrollTo({top:s,behavior:"smooth"})})};n.forEach(e=>{const t=e.querySelector(".accordion-button");t==null||t.addEventListener("click",r)})},l={INITIALIZED:"custom-date-picker-initialized",WRAPPER:"custom-date-picker-input"},u=n=>{document.querySelectorAll(n).forEach(e=>{if(e.classList.contains(l.INITIALIZED))return;e.classList.add("d-none");const t=document.createElement("div");t.classList.add(l.WRAPPER),e.after(t),e.placeholder&&(t.dataset.placeholder=e.placeholder),x({id:"",el:t,Component:_,on:{change:a=>{const o=a instanceof Date?k(a):"";e.value=o;const s=new CustomEvent("blur",{detail:o,bubbles:!0});e.dispatchEvent(s)}}})})};function m(){document.querySelectorAll(".kentico-form select").forEach(n=>{var a;if(n.classList.contains("initialized"))return;n.style.display="none",n.classList.add("initialized");const r=document.createElement("div");r.className="dropdown dropdown-variant-underline";const e=document.createElement("button");e.className="dropdown-toggle",e.type="button",e.setAttribute("data-bs-toggle","dropdown"),e.setAttribute("aria-expanded","false"),e.innerHTML=`
2      <span class="dropdown-toggle-text text-truncate">${((a=n.options[n.selectedIndex])==null?void 0:a.text)||"Select"}</span>
3      <i class="income-icons-nav-arrow-down dropdown-toggle-icon"></i>
4    `;const t=document.createElement("ul");t.className="dropdown-menu",Array.from(n.options).forEach(o=>{const s=document.createElement("li"),i=document.createElement("a");i.className="dropdown-item",i.href="#",i.innerText=o.text,i.dataset.value=o.value,o.selected&&i.classList.add("active"),i.addEventListener("click",f=>{f.preventDefault(),n.value=i.dataset.value,n.dispatchEvent(new Event("change")),e.querySelector(".dropdown-toggle-text").innerText=i.innerText,t.querySelectorAll(".dropdown-item").forEach(h=>h.classList.remove("active")),i.classList.add("active")}),s.appendChild(i),t.appendChild(s)}),r.appendChild(e),r.appendChild(t),n.insertAdjacentElement("afterend",r)})}function c(n){L({event_type:"Engagement",target_url:"",hashed_nric:"-",hashed_email:"-",hashed_phone_number:"-",current_section:"Form",...n})}function p(){const n=document.querySelector("form");n&&(n.querySelectorAll("input[name], select[name], textarea[name]").forEach(e=>{e.tagName==="INPUT"&&(e.type==="radio"||e.type==="checkbox"?e.addEventListener("change",t=>{var o;if(e.closest(".form-field").querySelectorAll("input").length===1&&e.type==="checkbox")c({user_action:`Checkbox-${e.checked?"Checked":"Unchecked"}`,click_text:"I have read and agree to the marketing consent"});else{const s=((o=e.closest(".form-field").querySelector(".control-label"))==null?void 0:o.innerText)||"";c({user_action:`${s}-${t.target.value}`,click_text:"Select"})}}):e.addEventListener("blur",t=>{t.target.value.trim()&&(e.type==="date"?c({user_action:"Select",click_text:"Date Input"}):e.name.toLowerCase().includes("namedl")?c({user_action:"Input Text",click_text:"Name"}):e.name.toLowerCase().includes("email")?c({user_action:"Input Text",click_text:"Email address",hashed_email:d(t.target.value)}):e.name.toLowerCase().includes("nric")?c({user_action:"Input Text",click_text:"NRIC",hashed_nric:d(t.target.value)}):(e.name.toLowerCase().includes("mobile")||e.name.toLowerCase().includes("phone"))&&c({user_action:"Input Text",click_text:"Mobile number",hashed_phone_number:d(t.target.value)}))})),e.tagName==="TEXTAREA"&&e.addEventListener("blur",t=>{c({user_action:"Select",click_text:"Enter your message here"})}),e.tagName==="SELECT"&&e.addEventListener("change",t=>{var o;const a=((o=e.closest(".form-field").querySelector(".control-label"))==null?void 0:o.innerText)||"";c({user_action:`${a}-${t.target.value}`,click_text:"Select"})})}),n.addEventListener("click",e=>{var o;const t=(o=e.target)==null?void 0:o.closest("a");if(!t||!t.href||t.getAttribute("href")==="#")return;const a=t.href.includes("mailto");c({user_action:a?"Select":"Link Click",click_text:a?"Support Email"
4:"Privacy Policy",target_url:t.href})}),n.addEventListener("submit",function(e){c({user_action:"CTA Click",click_text:"Submit"})}))}function C(){m(),u('.kentico-form input[type="date"]'),p();const n=document.querySelector(".kentico-form .container");if(!n)return;new MutationObserver(function(e){e.find(a=>{var o;return(((o=a.target)==null?void 0:o.id)||"").includes("form")})&&(m(),u('.kentico-form input[type="date"]'),p())}).observe(n,{childList:!0,subtree:!0})}document.addEventListener("DOMContentLoaded",()=>{b(),w(),y(),C(),E(),S()});

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.