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EAAI,EAC3B,GAAGL,EAAS8B,MAAMC,GAAgC,IAAxBP,EAAgBO,KAAa,CACtD,IAAItC,KAAYmC,EACZpC,EAAoByB,EAAEW,EAAanC,KACrCD,EAAoBM,EAAEL,GAAYmC,EAAYnC,IAGhD,GAAGoC,EAAS,IAAIhM,EAASgM,EAAQrC,GAGlC,IADGmC,GAA4BA,EAA2BhH,GACrD0F,EAAIL,EAASzL,OAAQ8L,IACzBoB,EAAUzB,EAASK,GAChBb,EAAoByB,EAAEO,EAAiBC,IAAYD,EAAgBC,IACrED,EAAgBC,GAAS,KAE1BD,EAAgBxB,EAASK,IAAM,EAEhC,OAAOb,EAAoBO,EAAElK,IAG1BmM,EAAqBC,KAAiC,2BAAIA,KAAiC,4BAAK,GACpGD,EAAmBE,QAAQR,EAAqBS,KAAK,KAAM,IAC3DH,EAAmB1O,KAAOoO,EAAqBS,KAAK,KAAMH,EAAmB1O,KAAK6O,KAAKH,K,GC7CvF,IAAII,EAAsB5C,EAAoBO,OAAEJ,EAAW,CAAC,MAAM,IAAOH,EAAoB,OAC7F4C,EAAsB5C,EAAoBO,EAAEqC,G","sources":["webpack:///webpack/runtime/chunk loaded","webpack:///./lib/options.tsx","webpack:///./lib/helpers.tsx","webpack:///./lib/factory/ajax/routeHttpVerbEnum.tsx","webpack:///./lib/factory/context.tsx","webpack:///./lib/factory/ajax/commonUrlBuilder.tsx","webpack:///./lib/factory/ajax/nonceDeprecationPool.tsx","webpack:///./lib/factory/ajax/parseResult.tsx","webpack:///./lib/factory/ajax/commonRequest.tsx","webpack:///./lib/factory/ajax/createRequestFactory.tsx","webpack:///./lib/factory/ajax/corruptRestApi.tsx","webpack:///external var \"wp['i18n']\"","webpack:///external var \"wp\"","webpack:///./lib/factory/i18n.tsx","webpack:///./lib/wp-api/rest.plugin.get.tsx","webpack:///external var \"mobx\"","webpack:///./lib/wp-api/objects/clientCollection.tsx","webpack:///./lib/wp-api/objects/clientModel.tsx","webpack:///./lib/wp-api/objects/post/abstractPost.tsx","webpack:///./lib/wp-api/objects/post/abstractPostCollection.tsx","webpack:///./lib/wp-api/objects/post/abstractCategory.tsx","webpack:///./lib/wp-api/objects/post/abstractCategoryCollection.tsx","webpack:///./lib/hooks/useChunkTranslation.tsx","webpack:///./lib/components/suspenseChunkTranslation.tsx","webpack:///external var \"React\"","webpack:///webpack/bootstrap","webpack:///webpack/runtime/compat get default export","webpack:///webpack/runtime/define property getters","webpack:///webpack/runtime/hasOwnProperty shorthand","webpack:///webpack/runtime/make namespace object","webpack:///webpack/runtime/jsonp chunk loading","webpack:///webpack/startup"],"sourcesContent":["var deferred = [];\n__webpack_require__.O = (result, chunkIds, fn, priority) => {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar [chunkIds, fn, priority] = deferred[i];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","/**\n * See PHP file inc/Assets.php.\n */\nclass BaseOptions {\n constructor() {\n this.slug = void 0;\n this.textDomain = void 0;\n this.version = void 0;\n this.restUrl = void 0;\n this.restNamespace = void 0;\n this.restRoot = void 0;\n this.restQuery = void 0;\n this.restNonce = void 0;\n this.restRecreateNonceEndpoint = void 0;\n this.publicUrl = void 0;\n this.chunkFolder = void 0;\n this.chunks = void 0;\n }\n\n /**\n * Convert a slug like \"my-plugin\" to \"myPlugin\". This can\n * be useful for library naming (window[\"\"] is bad because the hyphens).\n */\n static slugCamelCase(slug) {\n return slug.replace(/-([a-z])/g, g => g[1].toUpperCase());\n }\n /**\n * Get the slug from the current process (webpack) instead of the PHP plugin output.\n * For some cases you need to use that.\n */\n\n\n static getPureSlug(slug, camelCase = false) {\n return camelCase ? BaseOptions.slugCamelCase(slug) : slug;\n }\n\n}\n\nexport { BaseOptions };","const untrailingslashit = str => str.endsWith(\"/\") || str.endsWith(\"\\\\\") ? untrailingslashit(str.slice(0, -1)) : str;\n\nconst trailingslashit = str => \"\".concat(untrailingslashit(str), \"/\"); // Allows to make an interface extension and make some properties optional (https://git.io/JeK6J)\n\n\n/**\n * You need to manually put the following code snippet in each of your entry points to enable\n * \"on the fly\" public path for chunks:\n *\n * ```\n * __webpack_public_path__ = getWebpackPublicPath(process.env.slug);\n * ```\n *\n * @see https://webpack.js.org/guides/public-path/#on-the-fly\n */\nconst getWebpackPublicPath = slug => {\n const options = window[slug.replace(/-([a-z])/g, g => g[1].toUpperCase())];\n return \"\".concat(options.publicUrl).concat(options.chunkFolder, \"/\");\n};\n\nexport { untrailingslashit, trailingslashit, getWebpackPublicPath };","var RouteHttpVerb;\n\n(function (RouteHttpVerb) {\n RouteHttpVerb[\"GET\"] = \"GET\";\n RouteHttpVerb[\"POST\"] = \"POST\";\n RouteHttpVerb[\"PUT\"] = \"PUT\";\n RouteHttpVerb[\"DELETE\"] = \"DELETE\";\n RouteHttpVerb[\"PATCH\"] = \"PATCH\";\n})(RouteHttpVerb || (RouteHttpVerb = {}));\n\nexport { RouteHttpVerb };","import { createContext, useContext } from \"react\";\n/* istanbul ignore next: no logic in this factory! */\n\n/**\n * Create context relevant objects to use within React.\n *\n * @param object\n * @returns\n */\n\nfunction createContextFactory(object) {\n /**\n * MobX stores collection\n */\n const StoreContext = /*#__PURE__*/createContext(object);\n /**\n * MobX HOC to get the context via hook.\n *\n * @param children\n */\n\n const StoreProvider = ({\n children\n }) => /*#__PURE__*/React.createElement(StoreContext.Provider, {\n value: object\n }, children);\n /**\n * Get all the MobX stores via a single hook.\n */\n\n\n const useStores = () => useContext(StoreContext);\n\n return {\n StoreContext,\n StoreProvider,\n useStores\n };\n}\n\nexport { createContextFactory };","import { trailingslashit, untrailingslashit } from \"../../helpers\";\nimport { RouteHttpVerb } from \".\";\nimport deepMerge from \"deepmerge\";\nimport qs from \"querystringify\";\nimport Cookie from \"js-cookie\";\nimport sha1 from \"sha-1\";\n\nfunction applyQueryString(url, query, merge) {\n url.search = qs.stringify(merge ? deepMerge.all([qs.parse(url.search), ...query]) : query, true);\n return url;\n}\n/**\n * Build an URL for a specific scheme.\n *\n * @param param0\n */\n\n\nfunction commonUrlBuilder({\n location,\n params = {},\n nonce = true,\n options,\n cookieValueAsParam\n}) {\n const apiUrl = new URL(options.restRoot);\n const query = qs.parse(apiUrl.search);\n const permalinkPath = query.rest_route || apiUrl.pathname; // Determine path from permalink settings\n // Find dynamic parameters from URL bindings (like /user/:id)\n\n const foundParams = [];\n const path = location.path.replace(/:([A-Za-z0-9-_]+)/g, (match, group) => {\n foundParams.push(group);\n return params[group];\n });\n const getParams = {}; // Find undeclared body params (which are not bind above) and add it to GET query\n\n for (const checkParam of Object.keys(params)) {\n if (foundParams.indexOf(checkParam) === -1) {\n getParams[checkParam] = params[checkParam]; // We do not need `encodeURIComponent` as it is supported by `querystringify` already\n }\n } // Calculate invalidator for cookie values\n\n\n if (cookieValueAsParam) {\n getParams._httpCookieInvalidate = sha1(JSON.stringify(cookieValueAsParam.map(Cookie.get)));\n } // Force protocol from parent location\n\n\n apiUrl.protocol = window.location.protocol; // Set path depending on permalink settings\n\n const usePath = trailingslashit(permalinkPath) + untrailingslashit(location.namespace || options.restNamespace) + path;\n\n if (query.rest_route) {\n query.rest_route = usePath; // eslint-disable-line @typescript-eslint/naming-convention\n } else {\n apiUrl.pathname = usePath; // Set path\n } // Append WordPress REST nonce\n\n\n if (nonce && options.restNonce) {\n query._wpnonce = options.restNonce;\n } // Determine if non-GET verbs should always use `POST`\n\n\n applyQueryString(apiUrl, query);\n\n if ([\"wp-json/\", \"rest_route=\"].filter(s => apiUrl.toString().indexOf(s) > -1).length > 0 && location.method && location.method !== RouteHttpVerb.GET) {\n applyQueryString(apiUrl, [{\n _method: location.method\n }], true);\n } // Build final search\n\n\n applyQueryString(apiUrl, [options.restQuery, getParams], true);\n return apiUrl.toString();\n}\n\nexport { commonUrlBuilder, applyQueryString, qs };","const pool = {};\nconst recreateFetchPool = {};\n/**\n * A REST nonce in WordPress is only valid for 12 hours (can be configured). However, if it gets\n * invalid, the REST endpoints return a `403` error which signals us, we should recreate the nonce.\n * To avoid multiple recreations, we memorize the newly created nonce in a pool.\n */\n\nasync function nonceDeprecationPool(nonce, restRecreateNonceEndpoint) {\n if (typeof restRecreateNonceEndpoint !== \"undefined\") {\n const resultPromise = // Reuse already sent request\n recreateFetchPool[nonce] || new Promise( // eslint-disable-next-line no-async-promise-executor\n async (resolve, reject) => {\n try {\n const recreateFetch = await window.fetch(restRecreateNonceEndpoint);\n\n if (recreateFetch.ok) {\n const newNonce = await recreateFetch.text();\n\n if (nonce === newNonce) {\n reject();\n } else {\n pool[nonce] = newNonce;\n resolve(newNonce);\n }\n } else {\n reject();\n }\n } catch (e) {\n reject();\n }\n });\n recreateFetchPool[nonce] = resultPromise;\n return resultPromise;\n } else {\n if (typeof nonce === \"undefined\") {\n return undefined;\n } // Wait until all nonces are refreshed\n\n\n await Promise.all(Object.values(recreateFetchPool));\n let returnNonce = nonce;\n\n while (pool[returnNonce]) {\n returnNonce = pool[returnNonce];\n\n if (pool[returnNonce] === nonce) {\n break;\n }\n }\n\n return Promise.resolve(returnNonce);\n }\n}\n\nexport { nonceDeprecationPool };","import { RouteHttpVerb } from \".\";\n/**\n * Get the result of the `Response`. It also handles multiline responses, e. g.\n * a PHP `Notice:` message is output through a conflicting plugin:\n *\n * If you are using a verb like `DELETE` or `PUT` the response may be empty and this\n * function will return `undefined`.\n *\n * @see https://developer.mozilla.org/de/docs/Web/HTTP/Methods/DELETE\n */\n\nasync function parseResult(url, result, method) {\n const cloneForFallback = result.clone();\n\n try {\n return await result.json();\n } catch (e) {\n // Something went wrong, try each line as result of a JSON string\n const body = await cloneForFallback.text(); // Respect empty responses for given verbs (DELETE, PUT)\n\n if (body === \"\" && [RouteHttpVerb.DELETE, RouteHttpVerb.PUT].indexOf(method) > -1) {\n return undefined;\n }\n\n console.warn(\"The response of \".concat(url, \" contains unexpected JSON, try to resolve the JSON line by line...\"), {\n body\n });\n let lastError;\n\n for (const line of body.split(\"\\n\")) {\n if (line.startsWith(\"[\") || line.startsWith(\"{\")) {\n try {\n return JSON.parse(line);\n } catch (e) {\n lastError = e;\n }\n }\n }\n\n throw lastError;\n }\n}\n\nexport { parseResult };","import { parseResult, nonceDeprecationPool, applyQueryString, commonUrlBuilder, RouteHttpVerb } from \".\";\nimport deepMerge from \"deepmerge\";\nimport jsonFormData from \"json-form-data\";\nconst CONTENT_TYPE_JSON = \"application/json;charset=utf-8\"; // Fix: Return type of exported function has or is using name 'FormatOptions'\n// from external module \"/home/mg/vscode-workspace/devowl-wp/node_modules/@types/json-form-data/index\" but cannot be named.\n// type MultiPartOptions = Parameters[1];\n\n/**\n * Build and execute a specific REST query.\n *\n * @see urlBuilder\n * @returns Result of REST API\n * @throws\n */\nasync function commonRequest({\n location,\n options,\n request: routeRequest,\n params,\n settings = {},\n cookieValueAsParam,\n multipart = false,\n sendRestNonce = true\n}) {\n const url = commonUrlBuilder({\n location,\n params,\n nonce: false,\n options,\n cookieValueAsParam\n }); // Use global parameter (see https://developer.wordpress.org/rest-api/using-the-rest-api/global-parameters/)\n\n if ([\"wp-json/\", \"rest_route=\"].filter(s => url.indexOf(s) > -1).length > 0 && location.method && location.method !== RouteHttpVerb.GET) {\n settings.method = RouteHttpVerb.POST;\n } else {\n settings.method = location.method || RouteHttpVerb.GET;\n } // Request with GET/HEAD method cannot have body\n\n\n const apiUrl = new URL(url);\n const allowBody = [\"HEAD\", \"GET\"].indexOf(settings.method) === -1;\n\n if (!allowBody && routeRequest) {\n applyQueryString(apiUrl, [routeRequest], true);\n }\n\n const apiUrlBuilt = apiUrl.toString(); // Determine body\n\n let body;\n\n if (allowBody) {\n if (multipart) {\n // Let's create a multipart request...\n body = jsonFormData(routeRequest, typeof multipart === \"boolean\" ? {} : multipart);\n } else {\n // It is a usual JSON request, we do not need to send a multipart request\n body = JSON.stringify(routeRequest);\n }\n } // Do the request\n\n\n const restNonce = await nonceDeprecationPool(options.restNonce);\n const hasRestNonce = typeof restNonce !== \"undefined\";\n const init = deepMerge.all([settings, {\n headers: { ...(typeof body === \"string\" ? {\n \"Content-Type\": CONTENT_TYPE_JSON\n } : {}),\n ...(hasRestNonce && sendRestNonce ? {\n \"X-WP-Nonce\": restNonce\n } : {}),\n Accept: \"application/json, */*;q=0.1\"\n }\n }]);\n init.body = body; // Do not make body merge-able\n\n const result = await window.fetch(apiUrlBuilt, init); // `window.fetch` does not throw an error if the server response an error code.\n\n if (!result.ok) {\n let responseJSON = undefined;\n let replay = false;\n\n try {\n responseJSON = await parseResult(apiUrlBuilt, result, location.method); // wordpress.com private site compatibility\n\n /* istanbul ignore if */\n\n if (responseJSON.code === \"private_site\" && result.status === 403 && hasRestNonce && !sendRestNonce) {\n replay = true;\n } // Refresh nonce automatically\n\n /* istanbul ignore if */\n\n\n if (responseJSON.code === \"rest_cookie_invalid_nonce\" && hasRestNonce) {\n const {\n restRecreateNonceEndpoint\n } = options;\n\n try {\n await nonceDeprecationPool(restNonce, restRecreateNonceEndpoint);\n replay = true;\n } catch (e) {// Silence is golden.\n }\n }\n } catch (e) {// Silence is golden.\n }\n\n if (replay) {\n return await commonRequest({\n location,\n options,\n multipart,\n params,\n request: routeRequest,\n sendRestNonce: true,\n settings\n });\n } // Set this request as failing so the endpoint is probably corrupt (see `corruptRestApi.tsx`)\n\n\n settings.method === RouteHttpVerb.GET && (window.detectCorruptRestApiFailed = (window.detectCorruptRestApiFailed || 0) + 1);\n const resultAny = result;\n resultAny.responseJSON = responseJSON;\n throw resultAny;\n }\n\n return parseResult(apiUrlBuilt, result, location.method);\n}\n\nexport { commonRequest };","import { commonUrlBuilder, commonRequest } from \"./\";\n/**\n * Create a uri builder and request function for your specific plugin depending\n * on the rest root and additional parameters.\n *\n * @param options\n * @see urlBuilder\n * @see request\n */\n\nfunction createRequestFactory(options) {\n const urlBuilder = passOptions => commonUrlBuilder({ ...passOptions,\n options: {\n restNamespace: options.restNamespace,\n restNonce: options.restNonce,\n restQuery: options.restQuery,\n restRoot: options.restRoot\n }\n });\n\n const request = passOptions => commonRequest({ ...passOptions,\n options: {\n restNamespace: options.restNamespace,\n restNonce: options.restNonce,\n restQuery: options.restQuery,\n restRoot: options.restRoot,\n restRecreateNonceEndpoint: options.restRecreateNonceEndpoint\n }\n });\n\n return {\n urlBuilder,\n request\n };\n}\n\nexport { createRequestFactory };","const WAIT_TO_TEST = 10000;\nconst NOTICE_ID = \"notice-corrupt-rest-api\";\n/**\n * Register a new endpoint which needs to resolve to a valid JSON result. In this way we\n * can detect a corrupt REST API namespace e. g. it is blocked through a security plugin.\n */\n\nfunction handleCorrupRestApi(resolve, forceRerequest = false) {\n // Initially set\n window.detectCorruptRestApiFailed = window.detectCorruptRestApiFailed || 0;\n setTimeout(async () => {\n const notice = document.getElementById(NOTICE_ID); // Only in backend and when a corrupt REST API detected\n\n if (notice && (window.detectCorruptRestApiFailed > 0 || forceRerequest)) {\n for (const namespace of Object.keys(resolve)) {\n try {\n await resolve[namespace]();\n } catch (e) {\n notice.style.display = \"block\";\n const li = document.createElement(\"li\");\n li.innerHTML = \"- \".concat(namespace, \"\");\n notice.childNodes[1].appendChild(li);\n }\n }\n }\n }, WAIT_TO_TEST);\n}\n\nexport { handleCorrupRestApi };","const __WEBPACK_NAMESPACE_OBJECT__ = wp['i18n'];","const __WEBPACK_NAMESPACE_OBJECT__ = wp;","// @see https://github.com/Automattic/wp-calypso/blob/master/packages/i18n-calypso/src/index.js\nimport interpolate from \"interpolate-components\";\nimport * as wpi18n from \"@wordpress/i18n\";\nimport wp from \"wp\";\n\nfunction sprintf(message, ...args) {\n return wpi18n.sprintf(message, ...args);\n}\n/**\n * Create multiple functions for a specific plugin so they can be localized.\n *\n * @param slug The slug which you have registered your i18n assets\n * @returns\n */\n\n\nfunction createLocalizationFactory(slug) {\n const {\n wpi18nLazy\n } = window;\n\n if (wpi18nLazy && wpi18nLazy[slug] && wp && wp.i18n) {\n for (const localeData of wpi18nLazy[slug]) {\n wp.i18n.setLocaleData(localeData, slug);\n }\n }\n /**\n * Translates and retrieves the singular or plural form based on the supplied number.\n * For arguments sprintf is used, see http://www.diveintojavascript.com/projects/javascript-sprintf for\n * specification and usage.\n *\n * @see https://github.com/WordPress/gutenberg/tree/master/packages/i18n#_n\n * @see https://github.com/WordPress/gutenberg/tree/master/packages/i18n#sprintf\n */\n\n\n function _n(single, plural, count, ...args) {\n return sprintf(wpi18n._n(single, plural, count, slug), ...args);\n }\n /**\n * Translates and retrieves the singular or plural form based on the supplied number, with gettext context.\n * For arguments sprintf is used, see http://www.diveintojavascript.com/projects/javascript-sprintf for\n * specification and usage.\n *\n * @see https://github.com/WordPress/gutenberg/tree/master/packages/i18n#_n\n * @see https://github.com/WordPress/gutenberg/tree/master/packages/i18n#sprintf\n */\n\n\n function _nx(single, plural, context, count, ...args) {\n return sprintf(wpi18n._nx(single, plural, count, context, slug), ...args);\n }\n /**\n * Retrieve translated string with gettext context.\n * For arguments sprintf is used, see http://www.diveintojavascript.com/projects/javascript-sprintf for\n * specification and usage.\n *\n * @see https://github.com/WordPress/gutenberg/tree/master/packages/i18n#_n\n * @see https://github.com/WordPress/gutenberg/tree/master/packages/i18n#sprintf\n */\n\n\n function _x(single, context, ...args) {\n return sprintf(wpi18n._x(single, context, slug), ...args);\n }\n /**\n * Retrieve the translation of text.\n * For arguments sprintf is used, see http://www.diveintojavascript.com/projects/javascript-sprintf for\n * specification and usage.\n *\n * @see https://github.com/WordPress/gutenberg/tree/master/packages/i18n#_n\n * @see https://github.com/WordPress/gutenberg/tree/master/packages/i18n#sprintf\n */\n\n\n function __(single, ...args) {\n return sprintf(wpi18n.__(single, slug), ...args);\n }\n /**\n * This function allows you to interpolate react components to your translations.\n * You have to pass an already translated string as argument! For this you can use the other\n * i18n functions like _n() or __().\n *\n * A translation can look like this: \"Hello {{a}}click me{{/a}}.\" and you have to pass\n * a component with key \"a\".\n */\n\n\n function _i(translation, components) {\n return interpolate({\n mixedString: translation,\n components\n });\n }\n\n return {\n _n,\n _nx,\n _x,\n __,\n _i\n };\n}\n\nexport { createLocalizationFactory, sprintf };","import { RouteHttpVerb } from \"../factory\";\nexport const locationRestPluginGet = {\n path: \"/plugin\",\n method: RouteHttpVerb.GET\n};","const __WEBPACK_NAMESPACE_OBJECT__ = mobx;","import _initializerDefineProperty from \"@babel/runtime/helpers/initializerDefineProperty\";\nimport _applyDecoratedDescriptor from \"@babel/runtime/helpers/applyDecoratedDescriptor\";\nimport _initializerWarningHelper from \"@babel/runtime/helpers/initializerWarningHelper\";\n\nvar _class, _descriptor, _descriptor2, _class2, _temp;\n\nimport { RouteHttpVerb } from \"../../factory\";\nimport { observable, flow } from \"mobx\";\nlet ClientCollection = (_class = (_temp = _class2 = class ClientCollection {\n constructor() {\n _initializerDefineProperty(this, \"entries\", _descriptor, this);\n\n _initializerDefineProperty(this, \"busy\", _descriptor2, this);\n\n this.annotated = void 0;\n this.get = flow(function* (data) {\n const {\n request,\n params,\n clear = false\n } = data || {};\n this.busy = true;\n\n try {\n const {\n path,\n namespace\n } = this.annotated;\n const response = yield this.annotated.request({\n location: {\n path,\n method: RouteHttpVerb.GET,\n namespace\n },\n request,\n params\n }); // Save cookies as models\n\n clear && this.entries.clear();\n\n for (const row of response) {\n const instance = this.instance(row);\n const existing = this.entries.get(instance.key);\n\n if (!existing) {\n this.entries.set(instance.key, instance);\n } else {\n // Update stale data\n existing.data = instance.data;\n }\n }\n } catch (e) {\n console.log(e);\n throw e;\n } finally {\n this.busy = false;\n }\n });\n this.getSingle = flow(function* (data) {\n if (!this.annotated.singlePath) {\n throw new Error(\"There is no getSingle method allowed\");\n }\n\n const {\n request,\n params\n } = data || {};\n this.busy = true;\n\n try {\n const {\n singlePath,\n namespace\n } = this.annotated;\n const row = yield this.annotated.request({\n location: {\n path: singlePath,\n method: RouteHttpVerb.GET,\n namespace\n },\n request,\n params\n }); // Save cookie as model\n\n const instance = this.instance(row);\n this.entries.set(instance.key, instance);\n } catch (e) {\n console.log(e);\n throw e;\n } finally {\n this.busy = false;\n }\n });\n setTimeout(() => {\n if (!this.annotated) {\n console.error(\"You have not used the @ClientCollection.annotate annoation together with this class!\");\n }\n }, 0);\n }\n\n}, _class2.annotate = annotate => {\n return constructor => {\n return class extends constructor {\n constructor(...args) {\n super(...args);\n this.annotated = annotate;\n }\n\n };\n };\n}, _temp), (_descriptor = _applyDecoratedDescriptor(_class.prototype, \"entries\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function () {\n return new Map();\n }\n}), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"busy\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function () {\n return false;\n }\n})), _class);\nexport { ClientCollection };","import _initializerDefineProperty from \"@babel/runtime/helpers/initializerDefineProperty\";\nimport _applyDecoratedDescriptor from \"@babel/runtime/helpers/applyDecoratedDescriptor\";\nimport _initializerWarningHelper from \"@babel/runtime/helpers/initializerWarningHelper\";\n\nvar _class, _descriptor, _descriptor2, _descriptor3, _class2, _temp;\n\nimport { RouteHttpVerb } from \"../../factory\";\nimport { observable, computed, set, flow, runInAction } from \"mobx\";\nlet ClientModel = (_class = (_temp = _class2 = class ClientModel {\n get key() {\n var _this$data;\n\n return (_this$data = this.data) === null || _this$data === void 0 ? void 0 : _this$data[this.annotated.keyId];\n }\n\n constructor(collection, data = {}) {\n _initializerDefineProperty(this, \"data\", _descriptor, this);\n\n _initializerDefineProperty(this, \"collection\", _descriptor2, this);\n\n _initializerDefineProperty(this, \"busy\", _descriptor3, this);\n\n this.annotated = void 0;\n this.persist = flow(function* (params) {\n if (!this.annotated.create) {\n throw new Error(\"There is no persist method allowed\");\n }\n\n this.busy = true;\n\n try {\n const {\n create: {\n path,\n method\n },\n namespace\n } = this.annotated;\n const response = yield this.annotated.request({\n location: {\n path,\n method: method || RouteHttpVerb.POST,\n namespace\n },\n request: this.transformDataForPersist(),\n params: params || {}\n });\n this.fromResponse(response);\n this.collection.entries.set(this.key, this);\n this.afterPersist();\n } catch (e) {\n console.log(e);\n throw e;\n } finally {\n this.busy = false;\n }\n });\n this.patch = flow(function* (params) {\n if (!this.annotated.patch) {\n throw new Error(\"There is no patch method allowed\");\n }\n\n this.busy = true;\n\n try {\n const {\n patch: {\n path,\n method\n },\n namespace\n } = this.annotated;\n const response = yield this.annotated.request({\n location: {\n path,\n method: method || RouteHttpVerb.PATCH,\n namespace\n },\n request: this.transformDataForPatch(),\n params: { ...{\n [this.annotated.keyId]: this.key\n },\n ...(params || {})\n }\n });\n this.fromResponse(response);\n this.afterPatch();\n } catch (e) {\n console.log(e);\n throw e;\n } finally {\n this.busy = false;\n }\n });\n this.delete = flow(function* (params) {\n if (!this.annotated.delete) {\n throw new Error(\"There is no delete method allowed\");\n }\n\n this.busy = true;\n\n try {\n const {\n delete: {\n path,\n method\n },\n namespace\n } = this.annotated;\n const response = yield this.annotated.request({\n location: {\n path,\n method: method || RouteHttpVerb.DELETE,\n namespace\n },\n params: { ...{\n [this.annotated.keyId]: this.key\n },\n ...(params || {})\n }\n });\n this.collection.entries.delete(this.key);\n this.afterDelete();\n return response;\n } catch (e) {\n console.log(e);\n throw e;\n } finally {\n this.busy = false;\n }\n });\n setTimeout(() => {\n if (!this.annotated) {\n console.error(\"You have not used the @ClientModel.annotate annoation together with this class!\");\n }\n }, 0);\n runInAction(() => {\n this.collection = collection;\n this.data = data;\n });\n }\n\n fromResponse(response) {\n set(this.data, response);\n return this;\n } // eslint-disable-next-line @typescript-eslint/member-ordering\n\n\n /**\n * Transform the class-hold data to POSTable data. This can be useful if e. g.\n * one property differs from the response property schema.\n */\n transformDataForPersist() {\n return this.data;\n }\n /**\n * Create your conditionals here and return only changed values.\n */\n\n\n transformDataForPatch() {\n throw new Error(\"If you want to use patch method, you need to implement transformDataForPatch!\");\n }\n\n afterPersist() {// Silence is golden.\n }\n\n afterPatch() {// Silence is golden.\n }\n\n afterDelete() {// Silence is golden.\n }\n\n}, _class2.annotate = annotate => constructor => {\n return class extends constructor {\n constructor(...args) {\n super(...args);\n this.annotated = annotate;\n }\n\n };\n}, _temp), (_descriptor = _applyDecoratedDescriptor(_class.prototype, \"data\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function () {\n return {};\n }\n}), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"collection\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n}), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"busy\", [observable], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function () {\n return false;\n }\n}), _applyDecoratedDescriptor(_class.prototype, \"key\", [computed], Object.getOwnPropertyDescriptor(_class.prototype, \"key\"), _class.prototype)), _class);\nexport { ClientModel };","import { ClientModel } from \"..\";\n\nclass AbstractPost extends ClientModel {\n transformDataForPersist() {\n var _data$title, _data$content;\n\n const data = { ...super.transformDataForPersist()\n };\n data.title = (_data$title = data.title) === null || _data$title === void 0 ? void 0 : _data$title.rendered;\n data.content = (_data$content = data.content) === null || _data$content === void 0 ? void 0 : _data$content.rendered;\n delete data._links;\n delete data.link;\n return data;\n }\n\n transformDataForPatch() {\n return this.transformDataForPersist();\n }\n\n}\n\nexport { AbstractPost };","import { ClientCollection } from \"..\";\n\nclass AbstractPostCollection extends ClientCollection {}\n\nexport { AbstractPostCollection };","import { ClientModel } from \"..\";\n\nclass AbstractCategory extends ClientModel {\n transformDataForPersist() {\n const data = { ...super.transformDataForPersist()\n };\n delete data._links;\n delete data.link;\n return data;\n }\n\n transformDataForPatch() {\n return this.transformDataForPersist();\n }\n\n}\n\nexport { AbstractCategory };","import { ClientCollection } from \"..\";\n\nclass AbstractCategoryCollection extends ClientCollection {}\n\nexport { AbstractCategoryCollection };","import { useCallback, useEffect, useState } from \"react\";\nimport wp from \"wp\";\n/**\n * @param chunkFile Use `__webpack_get_script_filename__`\n */\n\nfunction useChunkTranslation(chunkFile, {\n chunks,\n publicUrl,\n textDomain,\n version\n}) {\n const suffixes = chunks[chunkFile.split(\"?\")[0]]; // We need to remove the query argument from `output.chunkFilename`\n\n const exists = !!suffixes;\n const [done, setDone] = useState(false);\n const fetchTranslationBySuffix = useCallback(async suffix => {\n // Do never load twice\n const w = window;\n w.wpi18nLazy = w.wpi18nLazy || {};\n w.wpi18nLazy.chunkUrls = w.wpi18nLazy.chunkUrls || [];\n const {\n chunkUrls\n } = w.wpi18nLazy;\n const urlToJson = \"\".concat(publicUrl, \"languages/json/\").concat(textDomain, \"-\").concat(suffix, \".json\");\n\n if (exists && chunkUrls.indexOf(urlToJson) === -1) {\n chunkUrls.push(urlToJson);\n\n try {\n const response = await window.fetch(\"\".concat(urlToJson, \"?ver=\").concat(version));\n const {\n locale_data: {\n messages\n }\n } = await response.json();\n wp.i18n.setLocaleData(messages, textDomain);\n } catch {// Silence is golden.\n }\n }\n }, [publicUrl, textDomain]);\n useEffect(() => {\n if (exists) {\n Promise.all(suffixes.map(fetchTranslationBySuffix)).then(() => {\n setDone(true);\n });\n } else {\n setDone(true);\n }\n }, [exists, fetchTranslationBySuffix]);\n return done;\n}\n\nexport { useChunkTranslation };","import { useChunkTranslation } from \"../hooks\";\n\nconst SuspenseChunkTranslation = ({\n children,\n chunkFile,\n fallback,\n options\n}) => {\n const done = useChunkTranslation(chunkFile, options());\n return /*#__PURE__*/React.createElement(React.Fragment, null, done ? children : fallback);\n};\n\nexport { SuspenseChunkTranslation };","module.exports = React;","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (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 = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (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};","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t826: 0\n};\n\n// no chunk on demand loading\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n__webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0);\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = (parentChunkLoadingFunction, data) => {\n\tvar [chunkIds, moreModules, runtime] = data;\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some((id) => (installedChunks[id] !== 0))) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkIds[i]] = 0;\n\t}\n\treturn __webpack_require__.O(result);\n}\n\nvar chunkLoadingGlobal = self[\"webpackChunkdevowlWp_utils\"] = self[\"webpackChunkdevowlWp_utils\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","// startup\n// Load entry module and return exports\n// This entry module depends on other loaded chunks and execution need to be delayed\nvar __webpack_exports__ = __webpack_require__.O(undefined, [764], () => (__webpack_require__(126)))\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n"],"names":["deferred","BaseOptions","constructor","this","slug","textDomain","version","restUrl","restNamespace","restRoot","restQuery","restNonce","restRecreateNonceEndpoint","publicUrl","chunkFolder","chunks","static","replace","g","toUpperCase","camelCase","slugCamelCase","untrailingslashit","str","endsWith","slice","trailingslashit","concat","getWebpackPublicPath","options","window","RouteHttpVerb","createContextFactory","object","StoreContext","createContext","StoreProvider","children","React","createElement","Provider","value","useStores","useContext","applyQueryString","url","query","merge","search","commonUrlBuilder","location","params","nonce","cookieValueAsParam","apiUrl","URL","permalinkPath","rest_route","pathname","foundParams","path","match","group","push","getParams","checkParam","Object","keys","indexOf","_httpCookieInvalidate","JSON","stringify","map","protocol","usePath","namespace","_wpnonce","filter","s","toString","length","method","GET","_method","pool","recreateFetchPool","async","nonceDeprecationPool","resultPromise","Promise","resolve","reject","recreateFetch","fetch","ok","newNonce","text","e","all","values","returnNonce","parseResult","result","cloneForFallback","clone","json","body","DELETE","PUT","lastError","console","warn","line","split","startsWith","parse","commonRequest","request","routeRequest","settings","multipart","sendRestNonce","POST","allowBody","apiUrlBuilt","hasRestNonce","init","headers","Accept","responseJSON","replay","code","status","detectCorruptRestApiFailed","resultAny","createRequestFactory","urlBuilder","passOptions","handleCorrupRestApi","forceRerequest","setTimeout","notice","document","getElementById","style","display","li","innerHTML","childNodes","appendChild","wp","sprintf","message","args","createLocalizationFactory","wpi18nLazy","localeData","_n","single","plural","count","_nx","context","_x","__","_i","translation","components","mixedString","locationRestPluginGet","mobx","_class","_descriptor","_descriptor2","_class2","_temp","ClientCollection","annotated","get","flow","data","clear","busy","response","entries","row","instance","existing","key","set","log","getSingle","singlePath","Error","error","annotate","super","prototype","observable","configurable","enumerable","writable","initializer","Map","_descriptor3","ClientModel","_this$data","keyId","collection","persist","create","transformDataForPersist","fromResponse","afterPersist","patch","PATCH","transformDataForPatch","afterPatch","delete","afterDelete","runInAction","computed","getOwnPropertyDescriptor","AbstractPost","_data$title","_data$content","title","rendered","content","_links","link","AbstractPostCollection","AbstractCategory","AbstractCategoryCollection","useChunkTranslation","chunkFile","suffixes","exists","done","setDone","useState","fetchTranslationBySuffix","useCallback","w","chunkUrls","urlToJson","suffix","locale_data","messages","useEffect","then","SuspenseChunkTranslation","fallback","Fragment","module","exports","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","__webpack_modules__","call","m","O","chunkIds","fn","priority","notFulfilled","Infinity","i","fulfilled","j","every","splice","r","n","getter","__esModule","d","a","definition","o","defineProperty","obj","prop","hasOwnProperty","Symbol","toStringTag","installedChunks","chunkId","webpackJsonpCallback","parentChunkLoadingFunction","moreModules","runtime","some","id","chunkLoadingGlobal","self","forEach","bind","__webpack_exports__"],"sourceRoot":""}