PageSourceSearch

https://www.sandata.com/wp-content/themes/sandata_custom_theme2024…/mobile-nav.f0cf51371ac05086d10c.chunk.js

js sandata.com collected 2026-10-03 19:31:19 UTC 3,556 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkfastfwd=self.webpackChunkfastfwd||[]).push([[533],{673:function(N,h,s){s.r(h),s.d(h,{default:function(){return E}});function p(n){if(Array.isArray(n)){for(var e=0,t=Array(n.length);e<n.length;e++)t[e]=n[e];return t}else return Array.from(n)}var c=!1;if(typeof window<"u"){var g={get passive(){c=!0}};window.addEventListener("testPassive",null,g),window.removeEventListener("testPassive",null,g)}var f=typeof window<"u"&&window.navigator&&window.navigator.platform&&(/iP(ad|hone|od)/.test(window.navigator.platform)||window.navigator.platform==="MacIntel"&&window.navigator.maxTouchPoints>1),o=[],l=!1,v=-1,a=void 0,d=void 0,w=function(e){return o.some(function(t){return!!(t.options.allowTouchMove&&t.options.allowTouchMove(e))})},u=function(e){var t=e||window.event;return w(t.target)||t.touches.length>1?!0:(t.preventDefault&&t.preventDefault(),!1)},b=function(e){if(d===void 0){var t=!!e&&e.reserveScrollBarGap===!0,i=window.innerWidth-document.documentElement.clientWidth;t&&i>0&&(d=document.body.style.paddingRight,document.body.style.paddingRight=i+"px")}a===void 0&&(a=document.body.style.overflow,document.body.style.overflow="hidden")},m=function(){d!==void 0&&(document.body.style.paddingRight=d,d=void 0),a!==void 0&&(document.body.style.overflow=a,a=void 0)},S=function(e){return e?e.scrollHeight-e.scrollTop<=e.clientHeight:!1},A=function(e,t){var i=e.targetTouches[0].clientY-v;return w(e.target)?!1:t&&t.scrollTop===0&&i>0||S(t)&&i<0?u(e):(e.stopPropagation(),!0)},T=function(e,t){if(!e){console.error("disableBodyScroll unsuccessful - targetElement must be provided when calling disableBodyScroll on IOS devices.");return}if(!o.some(function(r){return r.targetElement===e})){var i={targetElement:e,options:t||{}};o=[].concat(p(o),[i]),f?(e.ontouchstart=function(r){r.targetTouches.length===1&&(v=r.targetTouches[0].clientY)},e.ontouchmove=function(r){r.targetTouches.length===1&&A(r,e)},l||(document.addEventListener("touchmove",u,c?{passive:!1}:void 0),l=!0)):b(t)}},k=function(){f?(o.forEach(function(e){e.targetElement.ontouchstart=null,e.targetElement.ontouchmove=null}),l&&(document.removeEventListener("touchmove",u,c?{passive:!1}:void 0),l=!1),v=-1):m(),o=[]},L=function(e){if(!e){console.error("enableBodyScroll unsuccessful - targetElement must be provided when calling enableBodyScroll on IOS devices.");return}o=o.filter(function(t){return t.targetElement!==e}),f?(e.ontouchstart=null,e.ontouchmove=null,l&&o.length===0&&(document.removeEventListener("touchmove",u,c?{passive:!1}:void 0),l=!1)):o.length||m()},y=s(803),B=s(539),O=s(997);class E{constructor(e){this.el=e,this.activeClass="is-mobile-nav-open",this.scrollArea=this.el.querySelector('[data-mobile-nav="scroll"]'),this.isOpen=!1,this.trigger=document.querySelector('[data-mobile-nav="trigger"]'),this.init()}init(){this.el.setAttribute("aria-hidden","true"),this.handleEvents()}handleEvents(){this.trigger.addEventListener("click",e=>{e.preventDefault(),this.toggle()}),document.addEventListener("click",e=>{!this.scrollArea.contains(e.target)&&!this.trigger.contains(e.target)&&this.closeNav()}),window.addEventListener("keydown",e=>{e.key==="Escape"&&this.closeNav()}),(0,O.A)(B.ld.nav,e=>{e&&this.isOpen&&this.closeNav()})}toggle(){this.isOpen?this.closeNav():this.openNav()}openNav(){this.isOpen=!0,this.el.setAttribute("aria-hidden","false"),y.q.classList.add(this.activeClass),T(this.scrollArea)}closeNav(){this.isOpen=!1,this.el.setAttribute("aria-hidden","true"),y.q.classList.remove(this.activeClass),L(this.scrollArea)}}}}]);

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.