You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Scripted/website/node_modules/.cache/babel-loader/1f8d6a047df52473775c9af9f06...

1 line
1.5 KiB

{"ast":null,"code":"import { createContext, useContext } from 'react';\nimport canUseDOM from 'dom-helpers/canUseDOM';\nconst Context = /*#__PURE__*/createContext(canUseDOM ? window : undefined);\nexport const WindowProvider = Context.Provider;\n/**\n * The document \"window\" placed in React context. Helpful for determining\n * SSR context, or when rendering into an iframe.\n *\n * @returns the current window\n */\n\nexport default function useWindow() {\n return useContext(Context);\n}","map":{"version":3,"names":["createContext","useContext","canUseDOM","Context","window","undefined","WindowProvider","Provider","useWindow"],"sources":["C:/Cours/SAE/SAE-3.01/Scripted/Scripted/website/node_modules/@restart/ui/esm/useWindow.js"],"sourcesContent":["import { createContext, useContext } from 'react';\nimport canUseDOM from 'dom-helpers/canUseDOM';\nconst Context = /*#__PURE__*/createContext(canUseDOM ? window : undefined);\nexport const WindowProvider = Context.Provider;\n/**\n * The document \"window\" placed in React context. Helpful for determining\n * SSR context, or when rendering into an iframe.\n *\n * @returns the current window\n */\n\nexport default function useWindow() {\n return useContext(Context);\n}"],"mappings":"AAAA,SAASA,aAAa,EAAEC,UAAU,QAAQ,OAAO;AACjD,OAAOC,SAAS,MAAM,uBAAuB;AAC7C,MAAMC,OAAO,GAAG,aAAaH,aAAa,CAACE,SAAS,GAAGE,MAAM,GAAGC,SAAS,CAAC;AAC1E,OAAO,MAAMC,cAAc,GAAGH,OAAO,CAACI,QAAQ;AAC9C;AACA;AACA;AACA;AACA;AACA;;AAEA,eAAe,SAASC,SAAS,GAAG;EAClC,OAAOP,UAAU,CAACE,OAAO,CAAC;AAC5B"},"metadata":{},"sourceType":"module"}