1"use strict";(self.webpackChunkgazella_project=self.webpackChunkgazella_project||[]).push([[4869],{44293:function(e,t,n){n.r(t),n.d(t,{default:function(){return i}});var r=n(77387),a=n(96540),s=n(55268),o=n(25246),l=n(88198);let i=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return(t=e.call.apply(e,[this].concat(r))||this).state={token:null},t.requestRefreshToken=e=>{e===l.ys?window&&window.JSInterface&&window.JSInterface.skRequestRefreshUserToken&&window.JSInterface.skRequestRefreshUserToken():e===l.s4?window&&window.webkit&&window.webkit.messageHandlers&&window.webkit.messageHandlers.skRequestRefreshUserToken&&window.webkit.messageHandlers.skRequestRefreshUserToken.postMessage&&window.webkit.messageHandlers.skRequestRefreshUserToken.postMessage(""):alert("Error getting TOKEN renew request")},t.processToken=e=>{t.setState({token:e})},t}(0,r.A)(t,e);var n=t.prototype;return n.componentDidMount=function(){window.addEventListener("jwtTokenRenewed",(e=>{this.processToken(e.detail)})),this.requestRefreshToken((0,l.mw)())},n.componentWillUnmount=function(){window.removeEventListener("jwtTokenRenewed",this.processToken)},n.render=function(){const e=(0,o.$Z)(),{token:t}=this.state;return a.createElement("div",{className:"p-8 bg-gray-900 min-h-screen text-gray-100 font-sans"},a.createElement("div",{className:"max-w-4xl mx-auto space-y-8"},a.createElement("header",{className:"border-b border-gray-700 pb-4"},a.createElement("h1",{className:"text-4xl font-extrabold tracking-tight text-white bg-clip-text text-transparent bg-gradient-to-r from-blue-400 to-purple-500"},"Debug Console"),a.createElement("p",{className:"text-gray-400 mt-2"},"System diagnostics and token inspection")),a.createElement("section",{className:"bg-gray-800 rounded-2xl p-6 shadow-xl border border-gray-700 transition-all hover:border-blue-500/50"},a.createElement("h2",{className:"text-xl font-semibold mb-4 flex items-center gap-2"},a.createElement("span",{className:"w-2 h-2 rounded-full bg-blue-500"}),"JWT Token"),t?a.createElement("div",{className:"relative group"},a.createElement("pre",{className:"bg-gray-950 p-4 rounded-lg overflow-x-auto text-blue-300 border border-gray-800 whitespace-pre-wrap break-all font-mono text-xs leading-relaxed"},t),a.createElement("div",{className:"absolute top-2 right-2 flex gap-2"},a.createElement("button",{onClick:()=>{navigator.clipboard.writeText(t),alert("Token copied to clipboard!")},className:"bg-gray-800 hover:bg-gray-700 text-xs px-3 py-1 rounded border border-gray-600 transition-colors"},"Copy"))):a.createElement("div",{className:"animate-pulse flex space-x-4"},a.createElement("div",{className:"flex-1 space-y-4 py-1"},a.createElement("div",{className:"h-4 bg-gray-700 rounded w-3/4"}),a.createElement("div",{className:"h-4 bg-gray-700 rounded"}),a.createElement("div",{className:"h-4 bg-gray-700 rounded w-5/6"}))),a.createElement("p",{className:"mt-4 text-xs text-gray-500 italic"},"Listening for `jwtTokenRenewed` event...")),a.createElement("section",{className:"bg-gray-800 rounded-2xl p-6 shadow-xl border border-gray-700"},a.createElement("h2",{className:"text-xl font-semibold mb-4 flex items-center gap-2"},a.createElement("span",{className:"w-2 h-2 rounded-full bg-purple-500"}),"Query Parameters"),a.createElement("pre",{className:"bg-gray-950 p-4 rounded-lg overflow-x-auto text-purple-300 border border-gray-800 font-mono text-xs"},JSON.stringify(e,null,2))),a.createElement("div",{className:"flex justify-center"},a.createElement("button",{onClick:()=>this.requestRefreshToken((0,l.mw)()),className:"px-6 py-2 bg-gradient-to-r from-blue-600 to-purple-600 hover:from-blue-500 hover:to-purple-500 text-white font-medium rounded-full shadow-lg transition-transform active:scale-95"},"Refresh Token Manually"))),a.createElement(s.eF,{dangerouslySetInnerHTML:{__html:"\n if (typeof window.skRecieveUserToken !== 'function') {\n window.skRecieveUserToken = (token) => {\n console.log('Received token from native:', token);\n const event = new CustomEvent('jwtTokenRenewed', { detail: token });\n window.dispatchEvent(event);\n };\n }\n "}}))},t}(a.Component)}}]); 2//# sourceMappingURL=component---src-pages-debug-d-0-f-32-cae-jsx-45ae8d54d9e202751b8d.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.