PageSourceSearch

https://utleie.sport1.no/_next/static/chunks/1810.cf8092db7a2c02dc.js

js sport1.no collected 2026-09-25 20:13:30 UTC 4,368 bytes, 2 lines download raw bytes

1try{let e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="fd8dd574-1985-4cea-9785-8cf1385a0eaf",e._sentryDebugIdIdentifier="sentry-dbid-fd8dd574-1985-4cea-9785-8cf1385a0eaf")}catch(e){}"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1810],{73594:function(e,t,l){l.d(t,{P:function(){return p}});var n=l(31549),a=l(34602),r=l(36825),o=l(44194),s=l(45664),i=l(67492),u=l(27131),d=l(24352),c=l(83555);let f=e=>{var t;let{option:l,translateAsStaticText:a,showExternalLinkIcon:o=!0}=e,{translatedName:u}=(0,r.Mu)({translatedName:l.name},a),d=null===(t=l.url)||void 0===t?void 0:t.startsWith("http");return(0,n.jsxs)("span",{className:"flex items-center justify-between w-full",children:[(0,n.jsx)("span",{children:u||l.name}),d&&o&&(0,n.jsx)(i.G,{icon:s.gJF,className:"w-3 h-3 ml-2 text-gray-400"})]})},p=(0,o.forwardRef)(function(e,t){let{value:l,id:i,onTextChange:p,options:m,className:w,icon:h,iconClassName:x,placeholder:b,disabled:v,label:g,labelClassName:y,wrapperClassName:N,invalidMsg:k,manualError:C,optionsClassName:I,autoComplete:j="off",defaultValue:S,translateAsStaticText:E,requiredMarker:M,inputClassName:T,helperText:_,showExternalLinkIcon:D=!0,...A}=e,{translatedPlaceholder:R}=(0,r.Mu)({translatedPlaceholder:b}),{selectLabelDefaultClasses:q}=(0,c.q)(),[P,z]=(0,o.useState)(!1),F=(0,d.b)(()=>z(!1)),[L,V]=(0,o.useState)(0),W=(0,o.useRef)([]),G=(0,o.useCallback)(e=>{z(!1),p&&p(e)},[p]);(0,o.useEffect)(()=>{var e;null===(e=W.current[L])||void 0===e||e.scrollIntoView({behavior:"smooth",block:"nearest"})},[L]);let J=e=>{var t,l;return null!==(l=null!==(t=e.id)&&void 0!==t?t:e.url)&&void 0!==l?l:e.name},K=(0,o.useMemo)(()=>m.find(e=>J(e)===l),[m,l]),{translatedSelectedName:O}=(0,r.Mu)({translatedSelectedName:null==K?void 0:K.name},E),U=(0,o.useMemo)(()=>{let e=O||(null==K?void 0:K.name)||l||R;return e?String(e):void 0},[l,R,O,null==K?void 0:K.name]),B=(0,o.useMemo)(()=>m.map((e,t)=>{let r=J(e);return(0,n.jsx)("li",{ref:e=>W.current[t]=e,onClick:()=>G(e),role:"option","aria-selected":r===l,tabIndex:-1,onMouseEnter:()=>V(t),className:(0,a.tw)({"bg-selectionColor":t===L},"text-[16px] md:text-[14px]","list-none px-4 py-3 text-left","text-textColor"),children:(0,n.jsx)(f,{option:e,translateAsStaticText:E,showExternalLinkIcon:D})},r)}),[L,l,G,m,E,D]);return(0,n.jsxs)("span",{className:(0,a.tw)("w-full cursor-pointer relative block",{"z-[100]":P},w),ref:F,children:[(0,n.jsx)(u.I,{ref:t,label:g,value:U,id:g,className:(0,a.tw)("caret-transparent","cursor-pointer","mx-0","pr-minor-section text-ellipsis",T),wrapperClassName:N,onFocusCapture:()=>{v||A.readOnly||(z(!0),V(0))},onKeyDown:e=>{"ArrowDown"===e.key&&V(e=>e+1<m.length?e+1:e),"ArrowUp"===e.key&&V(e=>e>0?e-1:e),("Enter"===e.key||"Space"===e.key)&&(G(m[L]),e.preventDefault()),"Tab"===e.key&&z(!1)},autoComplete:j,type:"select",role:"select",icon:h,rightIcon:s.ptq,iconClassName:x,rightIconAction:()=>z(e=>!e),labelClassName:(0,a.tw)(q,y),invalidMsg:k,manualError:C,defaultValue:S,translateAsStaticText:E,requiredMarker:M,helperText:_,...A}),P&&(0,n.jsx)("ul",{className:(0,a.tw)("group max-h-[200px] overflow-auto absolute z-50 w-full mt-0 ml-0","bg-whiteColor rounded-inputRound shadow-lg shadow-borderColor",I),children:B})]})})},71810:function(e,t,l){l.r(t),l.d(t,{NavigationDropdownSection:function(){return s}});var n=l(31549),a=l(73594),r=l(44194),o=l(22752);function s(e){let{label:t,options:l=[],placeholder:s,className:i,wrapperClassName:u,id:d="navigation-dropdown",defaultValue:c,containerClassName:f,labelClassName:p,translateAsStaticText:m=!1,optionsClassName:w,inputClassName:h,showExternalLinkIcon:x}=e,[b,v]=(0,r.useState)(c),g=(0,o.useRouter)();return(0,n.jsx)("div",{className:f,children:(0,n.jsx)(a.P,{id:d,label:t,options:l,placeholder:s,value:b,onTextChange:e=>{var t,l;if(v(null!==(l=null!==(t=e.id)&&void 0!==t?t:e.url)&&void 0!==l?l:e.name),e.url){if(e.openInNewTab){window.open(e.url,"_blank");return}e.url.startsWith("http")?window.location.href=e.url:g.push(e.url)}},className:i,inputClassName:h,wrapperClassName:u,labelClassName:p,translateAsStaticText:m,optionsClassName:w,showExternalLinkIcon:x})})}}}]);
2//# sourceMappingURL=1810.cf8092db7a2c02dc.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.