PageSourceSearch

https://teetime.cz/_next/static/chunks/pages/debug-a64cc66941d0eede.js

js teetime.cz collected 2026-10-08 19:49:08 UTC 4,278 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[63094],{60467:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/debug",function(){return r(25915)}])},25915:function(e,t,r){"use strict";r.r(t),r.d(t,{DebugPage:function(){return $},__N_SSP:function(){return J},default:function(){return O}});var n=r(35944),i=r(10166),a=r(30202),o=r(29568),d=r(72140),l=r(66006),s=r(78551),c=r(22697);let u=(0,r(96752).kZ)({key:{name:"queryLanguage",opts:{providesTags:["Employee","Resort"]}},async queryFn(e){let t=await (0,o.ac)(),r=t.permissions();if(null==r?void 0:r.isAdmin())return"cs";let n=await t.manager.employeeController.getMe();return(0,c.UR)(n.locale)}});var g=r(6708),h=r(49430),p=r(67294);class m extends p.Component{static getDerivedStateFromError(e){return{hasError:!0,error:e}}render(){return this.state.hasError?(0,n.tZ)(g.h,{...(0,h.bu)(this.state.error).formatTitleAndDescription()}):this.props.children}constructor(e){super(e),this.state={hasError:!1}}}var y=r(90875),f=r(31470),w=r(69280),Z=r(70642),_=r(29172),v=r(78888),k=r(63351),b=r(67421),P=r(38473),x=r(84703),C=r(79612);let E=e=>{var t,r;let i=(0,s.a)(u()).data,a=(0,b.$G)().i18n;return(0,C.fm)(i,async()=>{i&&await a.changeLanguage(i)}),(0,n.BX)(w.K,{gap:"0",css:e.fullHeight?{height:"100dvh",overflow:"hidden"}:{minHeight:"100dvh"},children:[(0,n.tZ)(l.m,{color:P.colors.gray200}),!e.noTopSpacer&&(0,n.tZ)(f.L,{size:{full:"3rem",md:"0rem"}}),(0,n.tZ)(w.K,{gap:"0",css:{width:"100%",alignItems:"center",flexGrow:1},children:(0,n.tZ)(m,{children:(0,n.tZ)(Z.X,{children:(0,n.BX)(N,{preferredWidth:null!==(t=e.preferredWidth)&&void 0!==t?t:(0,x.cH)(1280),mainPadding:null!==(r=e.mainPadding)&&void 0!==r?r:"5rem",css:[e.fullHeight?{flexGrow:1,flexBasis:0,overflow:"hidden"}:void 0,e.mainCss],children:[(0,n.BX)(y.DY,{children:[(0,n.tZ)(v.ig,{place:"page_layout"}),e.children]}),(0,n.tZ)(_.I,{containerId:"page_layout"})]})})})})]})},N=(0,i.Z)("main",{target:"e8jyese0"})([e=>({maxWidth:"min(".concat(e.preferredWidth,", calc(100vw - ").concat(e.mainPadding," * 2))")}),{width:"100%",flexGrow:1,paddingBottom:"4rem",[k.l0.md]:{maxWidth:"100%",backgroundColor:P.colors.gray25,overflowX:"hidden"}}]);var S=r(50154),T=r(40131),X=r(94139),q=r(15849),z=r(22723),H=r(55698),B=r(17858),D=r(98964),R=r(98106),W=r(11163),L=r(36971),G=r(52044),I=r(3341),J=!0;function O(){return"false"===(0,W.useRouter)().query.page_layout?(0,n.tZ)("div",{css:{maxWidth:"80rem",margin:"0 auto"},children:(0,n.tZ)($,{})}):(0,n.tZ)(E,{children:(0,n.tZ)($,{})})}function $(){let e=(0,a.NL)(),t=function(){let e=(0,H.d)();return(0,R.J)({tokenQuery:e.query,getParsedPayload(){let t=e.query.data;return(null==t?void 0:t.type)==="logged_in"?t.parsedPayload:void 0},describe(){let e=this.getParsedPayload();return e?(0,B.H)(e):void 0},state:()=>(0,D.EQ)(e.query).with({status:"success",data:{type:"logged_in"}},e=>{let{data:t}=e;return{type:"logged_in",permissions:(0,B.H)(t.parsedPayload)}}).with({status:"pending"},()=>({type:"loading"})).with({status:"error"},{status:"success",data:{type:"logged_out"}},()=>({type:"logged_out"})).exhaustive()})}(),{toast:r}=(0,G.p)(),[i,s]=(0,C.tb)(async()=>{await (0,o.V)().getIdToken(!0),await (0,X.TS)(e,...(0,X.Ys)()),r((0,n.tZ)(S.b,{title:"Updated token."}))}),c=(0,q.Jt)(),u=(0,I.o)(c.store);return(0,n.BX)(w.K,{gap:"1rem",children:[(0,n.tZ)(f.L,{size:"10rem"}),(0,n.tZ)(l.m,{color:P.colors.gray200}),(0,n.tZ)(T.H,{size:"display_md",weight:"semibold",children:"Debug"}),(0,n.tZ)(d.z,{onClick:(0,z.$x)(async()=>{let e=t.tokenQuery.data;(null==e?void 0:e.type)==="logged_in"&&(await navigator.clipboard.writeText(e.token),r((0,n.tZ)(S.b,{title:"Copied token to clipboard."})))}),children:"Copy token to clipboard"}),(0,n.tZ)(d.z,{onClick:(0,z.$x)(i),loading:s,children:"Update token"}),(0,n.tZ)(d.z,{onClick:(0,z.$x)(async()=>{(0,L.qZ)()}),loading:s,children:"Show error"}),(0,n.tZ)("h4",{children:"CRDR"}),(0,n.tZ)(K,{children:JSON.stringify(u,null,3)}),(0,n.tZ)("h4",{children:"Token"}),(0,n.tZ)(K,{children:JSON.stringify(t.getParsedPayload(),null,3)})]})}let K=(0,i.Z)("code",{target:"epbmzf70"})({whiteSpace:"pre",backgroundColor:P.colors.gray100,borderRadius:"0.5rem",padding:"1rem"})}},function(e){e.O(0,[68592,49774,54736,92888,40179],function(){return e(e.s=60467)}),_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.