PageSourceSearch

https://www.rushmypassport.com/assets/js/sectionFaqsExpediting.df5bb639.js

js rushmypassport.com collected 2026-10-03 20:38:27 UTC 4,096 bytes, 1 lines download raw bytes

1(()=>{function e(e,t,{rootMargin:n="400px 0px"}={}){const o=document.querySelector(e);if(!o||"function"!=typeof t)return;let i=!1;const c=()=>{i||(i=!0,t())};if(!("IntersectionObserver"in window))return void window.addEventListener("load",c,{once:!0});const r=new IntersectionObserver(e=>{e.some(e=>e.isIntersecting)&&(r.disconnect(),c())},{rootMargin:n});r.observe(o)}function t(e,t,n){t.style.height=`${t.scrollHeight}px`,requestAnimationFrame(()=>{t.style.height="0px"}),e.classList.remove("faqs__accordion-item--active"),n.setAttribute("aria-expanded","false")}function n(){const e=document.querySelectorAll(".faqs__accordion-item");e.length&&e.forEach(n=>{const o=n.querySelector(".faqs__accordion-button"),i=n.querySelector(".faqs__accordion-content");if(!o||!i)return;const c=n.classList.contains("faqs__accordion-item--active");o.setAttribute("aria-expanded",c?"true":"false"),i.style.height=c?"auto":"0px",o.addEventListener("click",()=>{const c=n.classList.contains("faqs__accordion-item--active");e.forEach(e=>{if(e===n)return;const o=e.querySelector(".faqs__accordion-button"),i=e.querySelector(".faqs__accordion-content");o&&i&&e.classList.contains("faqs__accordion-item--active")&&t(e,i,o)}),c?t(n,i,o):function(e,t,n){t.style.height=`${t.scrollHeight}px`,e.classList.add("faqs__accordion-item--active"),n.setAttribute("aria-expanded","true"),t.addEventListener("transitionend",()=>{t.style.height="auto"},{once:!0})}(n,i,o)})})}function o({sectionSelector:e="#expediting-options-section",wrapSelector:t=".expedite-wrap",cardSelector:n=".expedite-card",indicatorsSelector:o=".indicators",indicatorSelector:i=".indicator",activeClass:c="active",desktopMediaQuery:r="(min-width: 1024px)"}={}){const s=document.querySelector(e);if(!s)return;const a=s.querySelector(t),d=Array.from(s.querySelectorAll(n)),l=s.querySelector(o),f=l?Array.from(l.querySelectorAll(i)):[];if(!a||0===d.length||0===f.length)return;const u=window.matchMedia(r);let h=null,y=!1;function v(e){f.forEach((t,n)=>{const o=n===e;t.classList.toggle(c,o);const i=t.querySelector("rect");i&&i.setAttribute("opacity",o?"1":"0.1")})}function m(){const e=a.scrollLeft+a.clientWidth/2;let t=0,n=1/0;for(let o=0;o<d.length;o++){const i=d[o],c=i.offsetLeft+i.offsetWidth/2,r=Math.abs(c-e);r<n&&(n=r,t=o)}return t}function L(e,t="smooth"){const n=(o=e,i=0,c=d.length-1,Math.max(i,Math.min(o,c)));var o,i,c;const r=d[n],s=r.offsetLeft-(a.clientWidth-r.offsetWidth)/2;a.scrollTo({left:s,behavior:t}),v(n)}function g(){h||(h=requestAnimationFrame(()=>{h=null;v(m())}))}function p(){y||(y=!0,d.forEach(e=>{e.classList.remove("is-selected","is-adjacent","is-back"),e.setAttribute("aria-selected","false")}),f.forEach((e,t)=>{e.setAttribute("role","button"),e.setAttribute("tabindex","0"),e.addEventListener("click",()=>L(t)),e.addEventListener("keydown",e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),L(t))})}),d.forEach((e,t)=>{e.addEventListener("click",()=>L(t))}),a.addEventListener("scroll",g,{passive:!0}),requestAnimationFrame(()=>{v(m())}))}function q(){u.matches||p()}q(),"function"==typeof u.addEventListener?u.addEventListener("change",q):"function"==typeof u.addListener&&u.addListener(q)}function i(){e(".faqs",n),e("#expediting-options-section",()=>{!function(e=".expedite-wrap"){const t=document.querySelector(e);if(!t)return;const n=Array.from(t.querySelectorAll(".expedite-card"));if(!n.length)return;let o=n.findIndex(e=>e.classList.contains("is-selected"));o<0&&(o=Math.floor(n.length/2));const i=e=>{n.forEach((t,n)=>{const o=Math.abs(n-e),i=n===e,c=1===o;t.classList.toggle("is-selected",i),t.classList.toggle("is-adjacent",!i&&c),t.classList.toggle("is-back",!i&&!c),t.setAttribute("aria-selected",i?"true":"false"),t.style.zIndex=100-o})};i(o),n.forEach((e,t)=>{const n=()=>{o=t,i(o)};e.addEventListener("mouseenter",n),e.addEventListener("focusin",n),e.addEventListener("click",e=>{e.target.closest("a")||n()}),e.addEventListener("keydown",e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),n())})})}(),o()})}"loading"===document.readyState?document.addEventListener("DOMContentLoaded",i):i()})();

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.