PageSourceSearch

https://www.alexanderswm.co.uk/assets/MobileMenu-CivVLMKQ.js

js alexanderswm.co.uk collected 2026-10-05 09:54:56 UTC 4,606 bytes, 2 lines download raw bytes

1import{j as a}from"./styledComponents-n4UW4kpA.js";import{P as u}from"./index-Dbx1gyta.js";import{a as k}from"./react-C3MRYTMn.js";import{b as _}from"./brandTextCheck-BtVFi4-W.js";import{I as B}from"./Icon-CkZJfHnP.js";import{S as P}from"./SsrLink-B3K7paPT.js";import{S as O,M as A,a as R,L as H}from"./SubdomainNavigation.styles-Byoox-Fw.js";import"./redux-DEt5ekS8.js";import"./index-g6qz2-ej.js";import"./urlHelpers-szXc1bAB.js";import"./index-BmvSjeV4.js";import"./imageHelpers-rj6UfTAf.js";function I(d,s){for(var i=0;i<s.length;i++){const o=s[i];if(typeof o!="string"&&!Array.isArray(o)){for(const l in o)if(l!=="default"&&!(l in d)){const r=Object.getOwnPropertyDescriptor(o,l);r&&Object.defineProperty(d,l,r.get?r:{enumerable:!0,get:()=>o[l]})}}}return Object.freeze(Object.defineProperty(d,Symbol.toStringTag,{value:"Module"}))}var w={},T;function C(){return T||(T=1,(function(d){(function(s,i){i(d)})(w,function(s){function i(e){if(Array.isArray(e)){for(var t=0,h=Array(e.length);t<e.length;t++)h[t]=e[t];return h}return Array.from(e)}Object.defineProperty(s,"__esModule",{value:!0});var o=!1;if(typeof window<"u"){var l={get passive(){o=!0}};window.addEventListener("testPassive",null,l),window.removeEventListener("testPassive",null,l)}function r(e){return n.some(function(t){return!(!t.options.allowTouchMove||!t.options.allowTouchMove(e))})}function m(e){var t=e||window.event;return!!r(t.target)||1<t.touches.length||(t.preventDefault&&t.preventDefault(),!1)}function L(){setTimeout(function(){g!==void 0&&(document.body.style.paddingRight=g,g=void 0),p!==void 0&&(document.body.style.overflow=p,p=void 0)})}var S=typeof window<"u"&&window.navigator&&window.navigator.platform&&(/iP(ad|hone|od)/.test(window.navigator.platform)||window.navigator.platform==="MacIntel"&&1<window.navigator.maxTouchPoints),n=[],v=!1,x=-1,p=void 0,g=void 0;s.disableBodyScroll=function(e,t){if(S){if(!e)return void console.error("disableBodyScroll unsuccessful - targetElement must be provided when calling disableBodyScroll on IOS devices.");if(e&&!n.some(function(c){return c.targetElement===e})){var h={targetElement:e,options:t||{}};n=[].concat(i(n),[h]),e.ontouchstart=function(c){c.targetTouches.length===1&&(x=c.targetTouches[0].clientY)},e.ontouchmove=function(c){var f,y,b,j;c.targetTouches.length===1&&(y=e,j=(f=c).targetTouches[0].clientY-x,r(f.target)||(y&&y.scrollTop===0&&0<j||(b=y)&&b.scrollHeight-b.scrollTop<=b.clientHeight&&j<0?m(f):f.stopPropagation()))},v||(document.addEventListener("touchmove",m,o?{passive:!1}:void 0),v=!0)}}else{E=t,setTimeout(function(){if(g===void 0){var c=!!E&&E.reserveScrollBarGap===!0,f=window.innerWidth-document.documentElement.clientWidth;c&&0<f&&(g=document.body.style.paddingRight,document.body.style.paddingRight=f+"px")}p===void 0&&(p=document.body.style.overflow,document.body.style.overflow="hidden")});var M={targetElement:e,options:t||{}};n=[].concat(i(n),[M])}var E},s.clearAllBodyScrollLocks=function(){S?(n.forEach(function(e){e.targetElement.ontouchstart=null,e.targetElement.ontouchmove=null}),v&&(document.removeEventListener("touchmove",m,o?{passive:!1}:void 0),v=!1),n=[],x=-1):(L(),n=[])},s.enableBodyScroll=function(e){if(S){if(!e)return void console.error("enableBodyScroll unsuccessful - targetElement must be provided when calling enableBodyScroll on IOS devices.");e.ontouchstart=null,e.ontouchmove=null,n=n.filter(function(t){return t.targetElement!==e}),v&&n.length===0&&(document.removeEventListener("touchmove",m,o?{passive:!1}:void 0),v=!1)}else(n=n.filter(function(t){return t.targetElement!==e})).length||L()}})})(w)),w}var D=C();const q=I({__proto__:null},[D]),{enableBodyScroll:W}=q,Y=({isOpen:d,mobileMenuRef:s,navigation:i,login:o,toggleOpen:l})=>(k.useEffect(()=>()=>{W()},[]),a.jsx(O,{isOpen:d,ref:s,children:a.jsxs(A,{isOpen:d,children:[i&&i.map(function(r,m){return a.jsx(R,{isActive:r.active,children:r.active?a.jsx("a",{onClick:l,children:a.jsx("span",{dangerouslySetInnerHTML:{__html:_(r.text)}})}):a.jsx(P,{onClick:l,href:r.url,target:r.target,ssOnly:!0,children:a.jsx("span",{dangerouslySetInnerHTML:{__html:_(r.text)}})})},m)}),o&&o.url&&o.text&&a.jsx(H,{children:a.jsxs("a",{href:o.url,target:o.target,...o.target==="_blank"&&{rel:"noopener noreferrer"},children:[a.jsx("span",{dangerouslySetInnerHTML:{__html:_(o.text)}}),a.jsx(B,{icon:o.icon||"secure",marginRight:"5px"})]})})]})}));Y.propTypes={navigation:u.array,login:u.exact({url:u.string,text:u.string,target:u.string,icon:u.string}),isOpen:u.bool,toggleOpen:u.func,mobileMenuRef:u.object};export{Y as default};
2//# sourceMappingURL=MobileMenu-CivVLMKQ.js.map

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.