Current File : /home/resuelf/www/wp-content/plugins/gutenberg/build/router/index.min.js.map |
{"version":3,"file":"./build/router/index.min.js","mappings":"yBACA,IAAIA,EAAsB,CCA1BA,EAAwB,SAASC,EAASC,GACzC,IAAI,IAAIC,KAAOD,EACXF,EAAoBI,EAAEF,EAAYC,KAASH,EAAoBI,EAAEH,EAASE,IAC5EE,OAAOC,eAAeL,EAASE,EAAK,CAAEI,YAAY,EAAMC,IAAKN,EAAWC,IAG3E,ECPAH,EAAwB,SAASS,EAAKC,GAAQ,OAAOL,OAAOM,UAAUC,eAAeC,KAAKJ,EAAKC,EAAO,ECCtGV,EAAwB,SAASC,GACX,oBAAXa,QAA0BA,OAAOC,aAC1CV,OAAOC,eAAeL,EAASa,OAAOC,YAAa,CAAEC,MAAO,WAE7DX,OAAOC,eAAeL,EAAS,aAAc,CAAEe,OAAO,GACvD,G,sDCNA,IAAI,EAA+BC,OAAc,MCA7C,EAA+BA,OAAW,GAAW,QCA1C,SAAS,IAYtB,OAXA,EAAWZ,OAAOa,OAASb,OAAOa,OAAOC,OAAS,SAAUC,GAC1D,IAAK,IAAIC,EAAI,EAAGA,EAAIC,UAAUC,OAAQF,IAAK,CACzC,IAAIG,EAASF,UAAUD,GACvB,IAAK,IAAIlB,KAAOqB,EACVnB,OAAOM,UAAUC,eAAeC,KAAKW,EAAQrB,KAC/CiB,EAAOjB,GAAOqB,EAAOrB,GAG3B,CACA,OAAOiB,CACT,EACO,EAASK,MAAMC,KAAMJ,UAC9B,C,gUCbA,IAAI,EAA+BL,OAAW,GAAO,ICUrD,MAAMU,E,42DAAUC,GAEVC,EAAsBF,EAAQG,KAC9BC,EAAyBJ,EAAQK,QAsBvCL,EAAQG,KApBR,SAAeG,EAAQC,GACtB,MAAMC,GAAcC,EAAAA,EAAAA,cAAcnB,OAAOoB,SAASC,MAC5CC,GAAwBC,EAAAA,EAAAA,iBAC7BvB,OAAOoB,SAASC,QACbjC,OAAOoC,KAAMN,IAEXO,GAASC,EAAAA,EAAAA,cAAcJ,EAAuBN,GACpD,OAAOJ,EAAoBhB,KAAMc,EAASe,EAAQR,EACnD,EAaAP,EAAQK,QAXR,SAAkBC,EAAQC,GACzB,MAAMC,GAAcC,EAAAA,EAAAA,cAAcnB,OAAOoB,SAASC,MAC5CC,GAAwBC,EAAAA,EAAAA,iBAC7BvB,OAAOoB,SAASC,QACbjC,OAAOoC,KAAMN,IAEXO,GAASC,EAAAA,EAAAA,cAAcJ,EAAuBN,GACpD,OAAOF,EAAuBlB,KAAMc,EAASe,EAAQR,EACtD,EAKA,QCvBA,MAAMU,GAAgBC,EAAAA,EAAAA,iBAChBC,GAAiBD,EAAAA,EAAAA,iBAUvB,SAASE,EAAuBV,GAC/B,MAAMW,EAAe,IAAIC,gBAAiBZ,EAASa,QACnD,MAAO,IACHb,EACHJ,OAAQ5B,OAAO8C,YAAaH,EAAaI,WAE3C,CChCA,IAAI,EAA+BnC,OAAW,GAAe,YCKtD,MAAM,KAAEoC,EAAI,OAAEC,IACpBC,EAAAA,EAAAA,kDACC,kHACA,qBCFWC,EAAc,CAAC,EAC5BH,EAAMG,EAAa,CAClBC,WHcM,WACN,OAAOC,EAAAA,EAAAA,YAAYZ,EACpB,EGfCa,YHSM,WACN,OAAOD,EAAAA,EAAAA,YAAYd,EACpB,EGVCgB,eHwBM,UAAyB,SAAEC,IACjC,MAAQxB,EAAUyB,IAAgBC,EAAAA,EAAAA,WAAU,IAC3ChB,EAAuBpB,EAAQU,YAShC,OANA2B,EAAAA,EAAAA,YAAW,IACHrC,EAAQsC,QAAQ,EAAI5B,SAAU6B,MACpCJ,EAAaf,EAAuBmB,GAAmB,KAEtD,KAGFC,EAAAA,EAAAA,eAACrB,EAAesB,SAAQ,CAACpD,MAAQW,IAChCwC,EAAAA,EAAAA,eAACvB,EAAcwB,SAAQ,CAACpD,MAAQqB,GAC7BwB,GAIN,K","sources":["webpack://wp/webpack/bootstrap","webpack://wp/webpack/runtime/define property getters","webpack://wp/webpack/runtime/hasOwnProperty shorthand","webpack://wp/webpack/runtime/make namespace object","webpack://wp/external window \"React\"","webpack://wp/external window [\"wp\",\"element\"]","webpack://wp/./node_modules/@babel/runtime/helpers/esm/extends.js","webpack://wp/external window [\"wp\",\"url\"]","../../packages/router/src/history.js","../../packages/router/src/router.js","webpack://wp/external window [\"wp\",\"privateApis\"]","../../packages/router/src/lock-unlock.js","../../packages/router/src/private-apis.js"],"sourcesContent":["// The require scope\nvar __webpack_require__ = {};\n\n","// define getter functions for harmony exports\n__webpack_require__.d = function(exports, definition) {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }","// define __esModule on exports\n__webpack_require__.r = function(exports) {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","var __WEBPACK_NAMESPACE_OBJECT__ = window[\"React\"];","var __WEBPACK_NAMESPACE_OBJECT__ = window[\"wp\"][\"element\"];","export default function _extends() {\n _extends = Object.assign ? Object.assign.bind() : function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n return target;\n };\n return _extends.apply(this, arguments);\n}","var __WEBPACK_NAMESPACE_OBJECT__ = window[\"wp\"][\"url\"];","/**\n * External dependencies\n */\nimport { createBrowserHistory } from 'history';\n\n/**\n * WordPress dependencies\n */\nimport { addQueryArgs, getQueryArgs, removeQueryArgs } from '@wordpress/url';\n\nconst history = createBrowserHistory();\n\nconst originalHistoryPush = history.push;\nconst originalHistoryReplace = history.replace;\n\nfunction push( params, state ) {\n\tconst currentArgs = getQueryArgs( window.location.href );\n\tconst currentUrlWithoutArgs = removeQueryArgs(\n\t\twindow.location.href,\n\t\t...Object.keys( currentArgs )\n\t);\n\tconst newUrl = addQueryArgs( currentUrlWithoutArgs, params );\n\treturn originalHistoryPush.call( history, newUrl, state );\n}\n\nfunction replace( params, state ) {\n\tconst currentArgs = getQueryArgs( window.location.href );\n\tconst currentUrlWithoutArgs = removeQueryArgs(\n\t\twindow.location.href,\n\t\t...Object.keys( currentArgs )\n\t);\n\tconst newUrl = addQueryArgs( currentUrlWithoutArgs, params );\n\treturn originalHistoryReplace.call( history, newUrl, state );\n}\n\nhistory.push = push;\nhistory.replace = replace;\n\nexport default history;\n","/**\n * WordPress dependencies\n */\nimport {\n\tcreateContext,\n\tuseState,\n\tuseEffect,\n\tuseContext,\n} from '@wordpress/element';\n\n/**\n * Internal dependencies\n */\nimport history from './history';\n\nconst RoutesContext = createContext();\nconst HistoryContext = createContext();\n\nexport function useLocation() {\n\treturn useContext( RoutesContext );\n}\n\nexport function useHistory() {\n\treturn useContext( HistoryContext );\n}\n\nfunction getLocationWithParams( location ) {\n\tconst searchParams = new URLSearchParams( location.search );\n\treturn {\n\t\t...location,\n\t\tparams: Object.fromEntries( searchParams.entries() ),\n\t};\n}\n\nexport function RouterProvider( { children } ) {\n\tconst [ location, setLocation ] = useState( () =>\n\t\tgetLocationWithParams( history.location )\n\t);\n\n\tuseEffect( () => {\n\t\treturn history.listen( ( { location: updatedLocation } ) => {\n\t\t\tsetLocation( getLocationWithParams( updatedLocation ) );\n\t\t} );\n\t}, [] );\n\n\treturn (\n\t\t<HistoryContext.Provider value={ history }>\n\t\t\t<RoutesContext.Provider value={ location }>\n\t\t\t\t{ children }\n\t\t\t</RoutesContext.Provider>\n\t\t</HistoryContext.Provider>\n\t);\n}\n","var __WEBPACK_NAMESPACE_OBJECT__ = window[\"wp\"][\"privateApis\"];","/**\n * WordPress dependencies\n */\nimport { __dangerousOptInToUnstableAPIsOnlyForCoreModules } from '@wordpress/private-apis';\n\nexport const { lock, unlock } =\n\t__dangerousOptInToUnstableAPIsOnlyForCoreModules(\n\t\t'I know using unstable features means my theme or plugin will inevitably break in the next version of WordPress.',\n\t\t'@wordpress/router'\n\t);\n","/**\n * Internal dependencies\n */\nimport { useHistory, useLocation, RouterProvider } from './router';\nimport { lock } from './lock-unlock';\n\nexport const privateApis = {};\nlock( privateApis, {\n\tuseHistory,\n\tuseLocation,\n\tRouterProvider,\n} );\n"],"names":["__webpack_require__","exports","definition","key","o","Object","defineProperty","enumerable","get","obj","prop","prototype","hasOwnProperty","call","Symbol","toStringTag","value","window","assign","bind","target","i","arguments","length","source","apply","this","history","createBrowserHistory","originalHistoryPush","push","originalHistoryReplace","replace","params","state","currentArgs","getQueryArgs","location","href","currentUrlWithoutArgs","removeQueryArgs","keys","newUrl","addQueryArgs","RoutesContext","createContext","HistoryContext","getLocationWithParams","searchParams","URLSearchParams","search","fromEntries","entries","lock","unlock","__dangerousOptInToUnstableAPIsOnlyForCoreModules","privateApis","useHistory","useContext","useLocation","RouterProvider","children","setLocation","useState","useEffect","listen","updatedLocation","createElement","Provider"],"sourceRoot":""}