PageSourceSearch

https://www.ikook.co.uk/_next/static/chunks/app/layout-43ce7cee3ee50783.js

js ikook.co.uk collected 2026-10-07 02:14:51 UTC 11,946 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7177],{94142:(e,t,n)=>{Promise.resolve().then(n.bind(n,40579)),Promise.resolve().then(n.t.bind(n,68563,23))},40579:(e,t,n)=>{"use strict";n.d(t,{Providers:()=>M});var r=n(95155),s=n(12115),l=n(76046),a=(e,t,n,r,s,l,a,i)=>{let o=document.documentElement,c=["light","dark"];function d(t){(Array.isArray(e)?e:[e]).forEach(e=>{let n="class"===e,r=n&&l?s.map(e=>l[e]||e):s;n?(o.classList.remove(...r),o.classList.add(t)):o.setAttribute(e,t)}),i&&c.includes(t)&&(o.style.colorScheme=t)}if(r)d(r);else try{let e=localStorage.getItem(t)||n,r=a&&"system"===e?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":e;d(r)}catch(e){}},i=["light","dark"],o="(prefers-color-scheme: dark)",c="undefined"==typeof window,d=s.createContext(void 0),u=e=>s.useContext(d)?s.createElement(s.Fragment,null,e.children):s.createElement(h,{...e}),m=["light","dark"],h=e=>{let{forcedTheme:t,disableTransitionOnChange:n=!1,enableSystem:r=!0,enableColorScheme:l=!0,storageKey:a="theme",themes:c=m,defaultTheme:u=r?"system":"light",attribute:h="data-theme",value:b,children:y,nonce:j,scriptProps:w}=e,[v,k]=s.useState(()=>x(a,u)),[N,S]=s.useState(()=>x(a)),C=b?Object.values(b):c,E=s.useCallback(e=>{let t=e;if(!t)return;"system"===e&&r&&(t=p());let s=b?b[t]:t,a=n?g(j):null,o=document.documentElement,c=e=>{"class"===e?(o.classList.remove(...C),s&&o.classList.add(s)):e.startsWith("data-")&&(s?o.setAttribute(e,s):o.removeAttribute(e))};if(Array.isArray(h)?h.forEach(c):c(h),l){let e=i.includes(u)?u:null,n=i.includes(t)?t:e;o.style.colorScheme=n}null==a||a()},[j]),L=s.useCallback(e=>{let t="function"==typeof e?e(v):e;k(t);try{localStorage.setItem(a,t)}catch(e){}},[v]),T=s.useCallback(e=>{S(p(e)),"system"===v&&r&&!t&&E("system")},[v,t]);s.useEffect(()=>{let e=window.matchMedia(o);return e.addListener(T),T(e),()=>e.removeListener(T)},[T]),s.useEffect(()=>{let e=e=>{e.key===a&&(e.newValue?k(e.newValue):L(u))};return window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)},[L]),s.useEffect(()=>{E(null!=t?t:v)},[t,v]);let M=s.useMemo(()=>({theme:v,setTheme:L,forcedTheme:t,resolvedTheme:"system"===v?N:v,themes:r?[...c,"system"]:c,systemTheme:r?N:void 0}),[v,L,t,N,r,c]);return s.createElement(d.Provider,{value:M},s.createElement(f,{forcedTheme:t,storageKey:a,attribute:h,enableSystem:r,enableColorScheme:l,defaultTheme:u,value:b,themes:c,nonce:j,scriptProps:w}),y)},f=s.memo(e=>{let{forcedTheme:t,storageKey:n,attribute:r,enableSystem:l,enableColorScheme:i,defaultTheme:o,value:c,themes:d,nonce:u,scriptProps:m}=e,h=JSON.stringify([r,n,o,t,d,c,l,i]).slice(1,-1);return s.createElement("script",{...m,suppressHydrationWarning:!0,nonce:"undefined"==typeof window?u:"",dangerouslySetInnerHTML:{__html:"(".concat(a.toString(),")(").concat(h,")")}})}),x=(e,t)=>{let n;if(!c){try{n=localStorage.getItem(e)||void 0}catch(e){}return n||t}},g=e=>{let t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.appendChild(document.createTextNode("*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(t),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(t)},1)}},p=e=>(e||(e=window.matchMedia(o)),e.matches?"dark":"light"),b=n(4817),y=n(67610),j=n(68383),w=n(61729),v=n(8224);function k(e){let{callerName:t,serviceType:n,onAccept:l,onDecline:a}=e,[i,o]=(0,s.useState)(!0);return((0,s.useEffect)(()=>{let e=setTimeout(()=>{o(!1),a()},3e4);return()=>clearTimeout(e)},[a]),i)?(0,r.jsxs)("div",{className:"fixed top-0 left-0 right-0 z-50 animate-slide-down",children:[(0,r.jsx)("div",{className:"mx-auto max-w-lg mt-4 px-4",children:(0,r.jsxs)("div",{className:"bg-white rounded-2xl shadow-2xl border border-gray-100 p-4 flex items-center gap-4",children:[(0,r.jsx)("div",{className:"flex-shrink-0 w-12 h-12 rounded-full bg-green-100 flex items-center justify-center animate-pulse",children:(0,r.jsx)("svg",{className:"w-6 h-6 text-green-600",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 5a2 2 0 012-2h3.28a1 1 0 01.948.684l1.498 4.493a1 1 0 01-.502 1.21l-2.257 1.13a11.042 
111.042 0 005.516 5.516l1.13-2.257a1 1 0 011.21-.502l4.493 1.498a1 1 0 01.684.949V19a2 2 0 01-2 2h-1C9.716 21 3 14.284 3 6V5z"})})}),(0,r.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,r.jsxs)("p",{className:"text-sm font-semibold text-zinc-800 truncate",children:[t," is calling"]}),n&&(0,r.jsxs)("p",{className:"text-xs text-neutral-500 truncate",children:["About: ",n]})]}),(0,r.jsxs)("div",{className:"flex gap-2 flex-shrink-0",children:[(0,r.jsx)("button",{type:"button",onClick:()=>{o(!1),a()},className:"w-10 h-10 rounded-full bg-red-100 hover:bg-red-200 text-red-600 flex items-center justify-center transition-colors",title:"Decline",children:(0,r.jsx)("svg",{className:"w-5 h-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"})})}),(0,r.jsx)("button",{type:"button",onClick:()=>{o(!1),l()},className:"w-10 h-10 rounded-full bg-green-500 hover:bg-green-600 text-white flex items-center justify-center transition-colors",title:"Accept",children:(0,r.jsx)("svg",{className:"w-5 h-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 5a2 2 0 012-2h3.28a1 1 0 01.948.684l1.498 4.493a1 1 0 01-.502 1.21l-2.257 1.13a11.042 11.042 0 005.516 5.516l1.13-2.257a1 1 0 011.21-.502l4.493 1.498a1 1 0 01.684.949V19a2 2 0 01-2 2h-1C9.716 21 3 14.284 3 6V5z"})})})]})]})}),(0,r.jsx)("style",{children:"\n        @keyframes slide-down {\n          from {\n            opacity: 0;\n            transform: translateY(-100%);\n          }\n          to {\n            opacity: 1;\n            transform: translateY(0);\n          }\n        }\n        .animate-slide-down {\n          animation: slide-down 0.3s ease-out;\n        }\n      "})]}):null}function N(e){let{recipientName:t,callStatus:n,callDuration:s,onHangup:l}=e,a={connecting:"Connecting...",ringing:"Calling...",connected:(e=>{let t=Math.floor(e/60);return"".concat(t,":").concat((e%60).toString().padStart(2,"0"))})(s),disconnected:"Call ended"};return(0,r.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/70 backdrop-blur-sm",children:(0,r.jsxs)("div",{className:"flex flex-col items-center gap-8 p-10",children:[(0,r.jsxs)("div",{className:"relative",children:[(0,r.jsx)("div",{className:"w-24 h-24 rounded-full bg-primary-400/20 flex items-center justify-center\n              ".concat("ringing"===n||"connecting"===n?"animate-pulse":""),children:(0,r.jsx)("div",{className:"w-20 h-20 rounded-full bg-primary-400/30 flex items-center justify-center",children:(0,r.jsx)("svg",{className:"w-10 h-10 text-primary-400",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 5a2 2 0 012-2h3.28a1 1 0 01.948.684l1.498 4.493a1 1 0 01-.502 1.21l-2.257 1.13a11.042 11.042 0 005.516 5.516l1.13-2.257a1 1 0 011.21-.502l4.493 1.498a1 1 0 01.684.949V19a2 2 0 01-2 2h-1C9.716 21 3 14.284 3 6V5z"})})})}),("ringing"===n||"connecting"===n)&&(0,r.jsx)("div",{className:"absolute inset-0 rounded-full border-2 border-primary-400/50 animate-ping"})]}),(0,r.jsx)("h2",{className:"text-xl font-semibold text-white",children:t}),(0,r.jsx)("p",{className:"text-base text-white/70 font-mono",children:a[n]}),"connected"===n&&(0,r.jsx)("p",{className:"text-xs text-white/40",children:"Max 5:00"}),"disconnected"!==n&&(0,r.jsx)("button",{type:"button",onClick:l,className:"w-16 h-16 rounded-full bg-red-500 hover:bg-red-600 text-white flex items-center justify-center transition-colors shadow-lg shadow-red-500/30",children:(0,r.jsx)("svg",{className:"w-7 h-7",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16 8l2-2m0 0l2-2m-2 2l-2-2m2 2l2 2M5 3a2 2 0 00-2 2v1c0 8.284 6.716 15 15 15h1a2 2 0 002-2v-3.28a1 1 0 00-.684-.948l-4.493-1.498a1 1 0 00-1.21.502l-1.13 2.257a11.042 11.042 0 01-5.516-5.517l2.257-1.128a1 1 0 00.502-1.21L9.228 3.683A1 1 0 008.279 3H5z"})})})]})})}var S=n(91389);function C(){let{incomingCall:e,acceptIncoming:t,rejectIncoming:n,callStatus:l,callDuration:a,hangup:i,activeRecipientName:o,deviceError:c,error:d}=(0,S.c)();return(0,s.useEffect)(()=>{},[c]),(0,s.useEffect)(()=>{},[d]),(0,r.jsxs)(r.Fragment,{children:[e&&(0,r.jsx)(k,{callerName:e.from,onAccept:t,onDecline:n}),("connecting"===l||"ringing"===l||"connected"===l)&&(0,r.jsx)(N,{recipientName:(null==e?void 0:e.from)||o||"In Call",callStatus:l,callDuration:a,onHangup:i})]})}var E=n(75614);function L(e){let{children:t}=e,{initializeAuth:n,isInitialized:l,isAuthenticated:a}=(0,y.n)();return(s.useEffect(()=>{n()},[]),l)?(0,r.jsx)(r.Fragment,{children:t}):(0,r.jsx)(E.H,{size:"md"})}function T(e){let{children:t}=e;return!function(){let e=(0,l.useRouter)(),t=(0,l.usePathname)(),{isAuthenticated:n,user:r}=(0,y.n)();(0,s.useEffect)(()=>
1{if(!n||!r)return;let t=(0,w.w9)();if(!t)return;(0,w.hj)();let s=new URL(t.returnUrl||"/explore",window.location.origin);s.searchParams.set("resume","true"),setTimeout(()=>{e.push(s.pathname+s.search)},100)},[n,r,t,e])}(),(0,r.jsxs)(r.Fragment,{children:[t,(0,r.jsx)(C,{})]})}function M(e){let{children:t,themeProps:n}=e;return(0,l.useRouter)(),(0,r.jsx)(u,{...n,children:(0,r.jsxs)(j.w,{children:[(0,r.jsx)(L,{children:(0,r.jsx)(v.QP,{children:(0,r.jsx)(T,{children:t})})}),(0,r.jsx)(b.l$,{position:"top-right",toastOptions:{duration:4e3,style:{background:"#363636",color:"#fff"}}})]})})}},75614:(e,t,n)=>{"use strict";n.d(t,{H:()=>s});var r=n(95155);n(12115);let s=e=>{let{fullscreen:t=!0,className:n="",size:s="md"}=e;return(0,r.jsx)("div",{className:"".concat(t?"flex justify-center items-center min-h-screen bg-white/50 backdrop-blur-[2px] transition-all duration-300":"flex justify-center items-center py-12 w-full"," ").concat(n),"data-testid":"app-loader",children:(0,r.jsx)("div",{className:"animate-spin rounded-full border-primary-400 ".concat({sm:"h-8 w-8 border-t-2 border-b-2",md:"h-12 w-12 border-t-2 border-b-2",lg:"h-16 w-16 border-t-4 border-b-4"}[s])})})}},61729:(e,t,n)=>{"use strict";n.d(t,{Tx:()=>c,cu:()=>o,ff:()=>s,hj:()=>a,ms:()=>d,w9:()=>l});let r="ikook_booking_intent";function s(e){let t={...e,timestamp:Date.now()};try{sessionStorage.setItem(r,JSON.stringify(t))}catch(e){}}function l(){try{let e=sessionStorage.getItem(r);if(!e)return null;let t=JSON.parse(e);if(Date.now()-t.timestamp>36e5)return a(),null;return t}catch(e){return a(),null}}function a(){try{sessionStorage.removeItem(r)}catch(e){}}let i="ikook_booking_draft";function o(e){try{sessionStorage.setItem(i,JSON.stringify(e))}catch(e){}}function c(){try{let e=sessionStorage.getItem(i);if(!e)return null;return JSON.parse(e)}catch(e){return d(),null}}function d(){try{sessionStorage.removeItem(i)}catch(e){}}},68563:()=>{},99827:(e,t,n)=>{"use strict";n.d(t,{v:()=>o});var r=n(12115);let s=e=>{let t;let n=new Set,r=(e,r)=>{let s="function"==typeof e?e(t):e;if(!Object.is(s,t)){let e=t;t=(null!=r?r:"object"!=typeof s||null===s)?s:Object.assign({},t,s),n.forEach(n=>n(t,e))}},s=()=>t,l={setState:r,getState:s,getInitialState:()=>a,subscribe:e=>(n.add(e),()=>n.delete(e))},a=t=e(r,s,l);return l},l=e=>e?s(e):s,a=e=>e,i=e=>{let t=l(e),n=e=>(function(e,t=a){let n=r.useSyncExternalStore(e.subscribe,()=>t(e.getState()),()=>t(e.getInitialState()));return r.useDebugValue(n),n})(t,e);return Object.assign(n,t),n},o=e=>e?i(e):i}},e=>{var t=t=>e(e.s=t);e.O(0,[306,2540,4817,3803,8441,1517,7358],()=>t(94142)),_N_E=e.O()}]);

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.