PageSourceSearch

https://www.ayahealthcare.com/wp-content/themes/ayahealthcare-sunr…/build/view.js?ver=c5132883bf0be9ebc6b1

js ayahealthcare.com collected 2026-10-01 14:38:43 UTC 9,781 bytes, 1 lines download raw bytes

1(()=>{"use strict";const e={d:(t,s)=>{if(Array.isArray(s))for(var n=0;n<s.length;){var i=s[n++],r=s[n++];e.o(t,i)?0===r&&n++:0===r?Object.defineProperty(t,i,{enumerable:!0,value:s[n++]}):Object.defineProperty(t,i,{enumerable:!0,get:r})}else for(var i in s)e.o(s,i)&&!e.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:s[i]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)};e.d({},{d:()=>t});class t{constructor(e={}){const t=this;t.darkmode=!(!window.matchMedia||!window.matchMedia("(prefers-color-scheme: dark)").matches),t.settings=Object.assign({dl:".jsa",dt:"dt a",dd:"dd",theme:"",openFirst:!1,openAll:!1,closeAll:null,closeOthers:!1,animate:!1,prefix:e.prefix??`${Math.random().toString(36).substring(2,7)}-`,hasNested:!!document.querySelector(e.dl)&&document.querySelector(e.dl).querySelectorAll(e.dl).length>0,icons:["",""],iconClass:"jsa-icon",termPadding:"0.5em 1em 0.5em 0",schema:!1,schemaType:"FAQPage",termBg:t.darkmode?"transparent":"",termBgActive:t.darkmode?"black":"",termColor:t.darkmode?"#719456":"",termColorActive:t.darkmode?"#fff":"",borders:!0,borderColor:"#d0d5d6",darkmodeBorderColor:"#719456",darkmode:!1,onLoad:!0,onToggle:!0},e),t.container=document.querySelector(t.settings.dl),t.parentDL=document.querySelector(t.settings.dl)||null,t.terms=Array.from(t.parentDL.querySelectorAll(`${t.settings.dt}`)).filter(e=>e.closest(t.settings.dl)===t.parentDL),t.definitions=Array.from(document.querySelectorAll(`${t.settings.dl} ${t.settings.dd}`)).filter(e=>{const s=e.parentElement.closest(t.settings.dl),n=t.parentDL;return s===n&&e.parentElement.closest(t.settings.dl)===n}),t.settings.theme&&t.parentDL.classList.add(`jsa-theme-${t.settings.theme}`),t.parentDL.addEventListener("click",e=>{e.target.dataset.target&&(e.preventDefault(),e.stopPropagation(),t.toggle(e.target,e))}),t.terms.map((e,s)=>{if(e.setAttribute("tabindex",0),e.setAttribute("id",`${t.settings.prefix}term${s}`),e.setAttribute("data-target",`${t.settings.prefix}definition${s}`),e.style.cursor="pointer",e.setAttribute("aria-controls",`${t.settings.prefix}definition${s}`),e.setAttribute("aria-expanded","false"),0===s&&e.classList.add("first-term"),t.terms.length===s+1&&e.classList.add("last-term"),t.settings.openFirst&&0===s&&e.setAttribute("aria-expanded","true"),t.settings.openAll&&e.setAttribute("aria-expanded","true"),e.setAttribute("role","button"),e.setAttribute("aria-label",e.ariaLabel?e.ariaLabel:`Toggle definition for ${e.textContent.trim()}`),"core"===t.settings.theme){e.style.display="flex",e.style.position="relative",e.style.justifyContent="space-between",e.style.alignItems="center",e.style.gap="1em",e.style.textDecoration="none",e.style.padding=t.settings.termPadding,e.style.borderTop=t.settings.borders?"1px solid "+(t.settings.darkmode?t.settings.darkmodeBorderColor:t.settings.borderColor):"none",e.style.color=t.settings.darkmode?t.settings.termColor:"";let n=document.createElement("span");t.renderIcon(t.settings.icons[0],n),n.classList.add(t.settings.iconClass),n.style.pointerEvents="none",t.settings.openFirst&&0===s&&t.renderIcon(t.settings.icons[1],n),!0===t.settings.openAll&&t.renderIcon(t.settings.icons[1],n),e.appendChild(n)}t.settings.openFirst&&0===s&&e.parentNode.classList.add("active"),!0===t.settings.openAll&&e.parentNode.classList.add("active"),e.addEventListener("keydown",e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),t.toggle(e.target,e))})}),t.definitions.map((e,s)=>{e.setAttribute("id",`${t.settings.prefix}definition${s}`),e.setAttribute("aria-labelledby",`${t.settings.prefix}term${s}`),e.style.maxHeight="0",e.style.overflow="hidden",e.style.margin="0",!0===t.settings.animate&&(e.style.transition="max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s cubic-bezier(0.4, 0, 0.2, 1)"),!0===t.settings.openFirst&&0===s&&e.classList.add("show"),!0===t.settings.openFirst&&0===s&&(e.style.maxHeight=e.scrollHeight+"px"),!0===t.settings.openAll&&e.classList.add("show"),!0===t.settings.openAll&&(e.style.maxHeight=e.scrollHeight+"px"),0===s&&e.classList.add("first-term"),t.definitions.length===s+1&&e.classList.add("last-term"),"core"===t.settings.theme&&(e.style.padding="0",e.style.margin="0",e.style.borderTop="none",e.style.transition="max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s cubic-bezier(0.4, 0, 0.2, 1)")}),t.init(),t.schema=[],t.buildSchema(),t.settings.closeAll&&document.querySelector(t.settings.closeAll)&&document.querySelector(t.settings.closeAll).addEventListener("click",e=>{e.preventDefault(),e.stopPropagation(),t.reset()})}init(){const e=this;window.addEventListener("resize",e.debounce(t=>{e.updateDefinitionHeight()},200)),setTimeout(()=>
1{e.container.dispatchEvent(new CustomEvent("jsa:onLoad",{bubbles:!0,detail:{instance:e,totalTerms:e.terms.length,settings:{dl:e.settings.dl,dt:e.settings.dt,dd:e.settings.dd,theme:e.settings.theme,openFirst:e.settings.openFirst,openAll:e.settings.openAll,closeAll:e.settings.closeAll,closeOthers:e.settings.closeOthers,icons:e.settings.icons,iconClass:e.settings.iconClass,schema:e.settings.schema,schemaType:e.settings.schemaType,onLoad:e.settings.onLoad,onToggle:e.settings.onToggle}}}))},0)}renderIcon(e,t){e instanceof Node?t.replaceChildren(e.cloneNode(!0)):"string"==typeof e&&(t.textContent=e)}toggle(e,t){const s=this;if(!e.dataset.target)return;const n=!!t&&t.isTrusted;let i=e.dataset.target,r=document.getElementById(`${i}`);const o=r.classList.contains("show");s.settings.closeOthers&&!o&&s.reset(),r.classList.toggle("show"),e.setAttribute("aria-expanded",o?"false":"true"),e.parentNode.classList.toggle("active"),"core"===s.settings.theme&&(e.parentNode.classList.contains("active")&&!0===s.settings.darkmode?(e.style.color=s.settings.darkmode?s.settings.termColorActive:s.settings.termColor,e.parentNode.style.backgroundColor=s.settings.darkmode?s.settings.termBgActive:""):(e.style.color=s.settings.darkmode?s.settings.termColor:"",e.parentNode.style.backgroundColor=s.settings.darkmode?s.settings.termBg:""));let a=e.querySelector(`.${s.settings.iconClass}`);a&&s.renderIcon(o?s.settings.icons[0]:s.settings.icons[1],a),r.style.maxHeight=o?"0":r.scrollHeight+"px",setTimeout(()=>{s.container.dispatchEvent(new CustomEvent("jsa:onToggle",{bubbles:!0,detail:{jsa:s.settings.dl,index:s.terms.indexOf(e),active:!o,term:e.id,termElement:e,definition:e.dataset.target,definitionElement:document.querySelector(`#${e.dataset.target}`),termText:e.textContent,totalTerms:s.terms.length,closesOthers:s.settings.closeOthers,isOriginalTrusted:n}}))},0)}reset(){const e=this;e.terms.map((t,s)=>{t.parentNode.classList.remove("active"),t.setAttribute("aria-expanded","false");let n=t.querySelector(`.${e.settings.iconClass}`);n&&e.renderIcon(e.settings.icons[0],n)}),e.definitions.map((t,s)=>{t.classList.remove("show"),t.style.maxHeight="0","core"===e.settings.theme&&(t.style.padding="0")})}buildSchema(){const e=this;if(!e.settings.schema)return;let t={"@context":"https://schema.org","@type":e.settings.schemaType,mainEntity:[]};e.terms.map((s,n)=>{const i={"@type":"Question",name:s.textContent.trim(),acceptedAnswer:{"@type":"Answer",text:e.definitions[n].textContent.trim()}};t.mainEntity.push(i)});const s=document.createElement("script");s.type="application/ld+json",s.textContent=JSON.stringify(t),e.parentDL.appendChild(s)}debounce(e,t){let s;return function(){clearTimeout(s),s=setTimeout(()=>e.apply(this,arguments),t)}}updateDefinitionHeight(){this.definitions.map((e,t)=>{e.classList.contains("show")&&(e.style.maxHeight=e.scrollHeight+"px")})}}const s=(e=767)=>{var t=!1;return window.innerWidth<e?(t=!0,document.body.classList.add("mobile"),document.body.classList.remove("desktop")):(t=!1,document.body.classList.add("desktop"),document.body.classList.remove("mobile"),document.body.classList.remove("chat-pos-lg"),document.body.classList.remove("chat-pos-md"),document.body.classList.remove("chat-pos-sm")),t};document.addEventListener("DOMContentLoaded",()=>{document.querySelectorAll(".accordion-faqs-block").forEach((e,n)=>{const i=e.getAttribute("data-heading")??"h3",r=e.getAttribute("data-openfirst")??"false",o=e.getAttribute("data-closeothers")??"false",a=e.getAttribute("data-autoplay")??"false",l=e.getAttribute("data-theme")??"minimal",d=e.getAttribute("data-duration")??"15000";if(e.id||(e.id=`accordion-faqs-${n}`),new t({dl:`#${e.id}`,dt:"dt "+i,prefix:e.id+"-",theme:l,iconClass:"main-collapse-icon",borders:!0,openFirst:"true"==r,closeOthers:"true"==o,animate:!0}),"true"===a){let c=null,g=0,m=document.querySelector("[data-progress]"),u=null,p=null;function h(e){const t=Date.now()-e,s=Math.min(t/d*100,100);m.style.width=s+"%",s<100&&(u=requestAnimationFrame(()=>h(e)))}function y(t){m=document.querySelector(`#${e.id}-definition${t} [data-progress]`),m&&(m.style.width="0%")}function b(){c=setInterval(()=>{3===g?(g=0,y(g)):(g++,y(g)),p=Date.now(),h(p);let t=document.querySelector(`#${e.id}-term${g}`);t&&t.click()},d),p=Date.now(),h(p)}document.querySelector(`#${e.id}`).addEventListener("jsa:onLoad",e=>{!1===s(992)&&b()}),document.querySelector(`#${e.id}`).addEventListener("jsa:onToggle",e=>{e.detail.isOriginalTrusted&&(g=e.detail.index,clearInterval(c),cancelAnimationFrame(u),y(g),b())}),window.addEventListener("resize",function(e){let t;return function(){clearTimeout(t),t=setTimeout(()=>e.apply(this,arguments),200)}}(e=>{s(992),!0===s(992)&&(clearInterval(c),cancelAnimationFrame(u),y(0))}))}}),document.querySelector(".faq-triggers")&&document.querySelector(".faq-triggers").addEventListener("click",e=>{if("A"===e.target.nodeName&&null!==e.target.hash&&""!==e.target.hash){let t=e.target.hash.substring(1),s=document.querySelector('[data-trigger="anchor-trigger-'+t+'"]');s&&function(e){const t=new MouseEvent("click",{bubbles:!0,cancelable:!0});e.dispatchEvent(t)}(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.