| Server IP : 159.203.156.69 / Your IP : 216.73.217.172 Web Server : nginx/1.24.0 System : Linux main-ubuntu 6.8.0-71-generic #71-Ubuntu SMP PREEMPT_DYNAMIC Tue Jul 22 16:52:38 UTC 2025 x86_64 User : root ( 0) PHP Version : 8.3.6 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /var/www/tanviranik.com/node_modules/vinext/dist/shims/ |
Upload File : |
{"version":3,"file":"script-nonce-context.js","names":[],"sources":["../../src/shims/script-nonce-context.tsx"],"sourcesContent":["import React from \"react\";\n\nexport const ScriptNonceContext = React.createContext<string | undefined>(undefined);\n\nexport function ScriptNonceProvider(\n props: React.PropsWithChildren<{\n nonce?: string;\n }>,\n): React.ReactElement {\n return React.createElement(ScriptNonceContext.Provider, { value: props.nonce }, props.children);\n}\n\nexport function withScriptNonce(element: React.ReactElement, nonce?: string): React.ReactElement {\n if (!nonce) {\n return element;\n }\n\n return React.createElement(ScriptNonceProvider, { nonce }, element);\n}\n\nexport function useScriptNonce(): string | undefined {\n return React.useContext(ScriptNonceContext);\n}\n"],"mappings":";;AAEA,MAAa,qBAAqB,MAAM,cAAkC,KAAA,EAAU;AAEpF,SAAgB,oBACd,OAGoB;CACpB,OAAO,MAAM,cAAc,mBAAmB,UAAU,EAAE,OAAO,MAAM,OAAO,EAAE,MAAM,SAAS;;AAGjG,SAAgB,gBAAgB,SAA6B,OAAoC;CAC/F,IAAI,CAAC,OACH,OAAO;CAGT,OAAO,MAAM,cAAc,qBAAqB,EAAE,OAAO,EAAE,QAAQ;;AAGrE,SAAgB,iBAAqC;CACnD,OAAO,MAAM,WAAW,mBAAmB"}