PageSourceSearch

https://www.kuala-lumpur-tickets.com/_next/static/chunks/NestedMenu.3c58227b525498e5.js

js kuala-lumpur-tickets.com collected 2026-10-08 05:50:34 UTC 2,556 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[12875],{96049:function(e,t,r){r.r(t),r.d(t,{default:function(){return b}});var l=r(14994),n=r(53950),a=r(36758),o=r(74928),i=r(82936),u=r(72610),s=e=>{let{menuData:t,city:r,poiName:s,parentMenuName:c}=e,d=(0,a.useAtomValue)(i.i),m=(0,a.useAtomValue)(o.S);return(0,l.jsx)(l.Fragment,{children:Object.values(t).map(e=>{let{label:t,url:a}=e;if("string"==typeof t&&"string"==typeof a){let e=(0,u.YE)({dictionary:d,label:t,city:r,poiName:s});return(0,l.jsx)("li",{children:(0,l.jsx)(n.default,{prefetch:!1,href:a,target:"_blank",rel:"noreferrer",onClick:t=>(0,u.eV)({eventTarget:null==t?void 0:t.target,label:e,level:1,levelName:c,pageMetadata:m}),children:e})},t)}return null})})};let c=(0,r(20124).iv)({display:"none",_active:{display:"grid",gridTemplateRows:"repeat(9, 1fr)",gridTemplateColumns:"repeat(3, auto)",gridAutoFlow:"column",gridColumnGap:"1rem"},_mobile:{margin:"unset",padding:"unset",backgroundColor:"gray.g8",borderBottom:"0.5px solid token(colors.gray.g6)",height:"auto",transition:"all 2s ease-in-out 0s",".last + &":{marginBottom:"5rem"},"& li":{padding:"0.875rem 1.5rem",color:"gray.g2",textStyle:"uiLabelMedium","& .nested-menu-item":{display:"flex",justifyContent:"space-between"},"& a":{color:"inherit","&:focus-visible":{outline:"[2px solid token(colors.brand.purps)]",outlineOffset:"-space.2",borderRadius:"radius.4"}}
1,"& svg":{width:"1rem",height:"1rem",verticalAlign:"middle",pointerEvents:"none"}},_active:{display:"flex",flexDirection:"column"}}});var d=r(27302);let m=()=>{let e=document.querySelector(d.ud);null==e||e.focus()},p=()=>{let e=document.querySelector(d.nN);null==e||e.focus()},f=(e,t,r)=>"down"===r?e<t-1?e+1:0:e>0?e-1:t-1,g=(e,t)=>{var r;e.preventDefault();let l=e.target.closest('[data-active="true"]');if(!l)return;let n=Array.from(l.querySelectorAll("a")),a=n.indexOf(e.target);if(-1===a)return;let o=f(a,n.length,t);null===(r=n[o])||void 0===r||r.focus()},v=(e,t)=>{let{key:r}=e;switch(r){case"Escape":e.preventDefault(),null==t||t(),m();break;case"ArrowLeft":e.preventDefault(),p();break;case"ArrowUp":g(e,"up");break;case"ArrowDown":g(e,"down")}};var b=e=>{let{automatedHeader:t,selectedMenu:r,currentMenu:n,city:a,poiName:o,isMobile:i,onClose:u}=e;return(0,l.jsx)(l.Fragment,{children:Object.keys(t).map(e=>{if(i&&e!==n)return null;let d=t[e].menu||{},m=t[e].label||e,p=r===e?{"data-active":!0}:{};return(0,l.jsx)("ul",{className:c,...p,onKeyDown:e=>v(e,u),children:(0,l.jsx)(s,{menuData:d,city:a,poiName:o,parentMenuName:m})},e)})})}}}]);

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.