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4B,GAwJ5B,SAAS,MAAM,EAAO,GAIlB,EAAM,MAAQ,EAAO,OAAS,KAI9B,EAAM,gBAAkB,EAIxB,EAAM,UAAY,CAAC,EAInB,EAAM,SAAW,SAAU,GACvB,KAAK,MAAQ,CACjB,EAIA,EAAM,IAAM,WACR,OAAO,IAAI,QAAQ,KACvB,CACJ,CAEA,IAAI,aAA8B,WAI9B,SAAS,EAAa,EAAY,GAC9B,KAAK,MAAQ,EAAW,MACxB,KAAK,OAAS,CAClB,CAOA,OAHA,EAAa,UAAU,OAAS,WAC5B,MAAM,KAAK,MAAO,KAAK,OAC3B,EACO,CACX,CAfiC,GAiB7B,UAAY,CACZ,QAAS,SAAU,EAAY,GAC3B,IAAK,aAAa,EAAY,GAAS,QAC3C,GAGJ,OAAO,QAAU","file":"/npm/huddlebv-plugin-axios@0.9.1/dist/vuex-orm-axios.common.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/huddlebv-plugin-axios@0.9.1/dist/vuex-orm-axios.common.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","'use strict';\n\n/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\nvar __assign = function() {\n    __assign = Object.assign || function __assign(t) {\n        for (var s, i = 1, n = arguments.length; i < n; i++) {\n            s = arguments[i];\n            for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\n        }\n        return t;\n    };\n    return __assign.apply(this, arguments);\n};\n\nfunction __awaiter(thisArg, _arguments, P, generator) {\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n}\n\nfunction __generator(thisArg, body) {\n    var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\n    return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\n    function verb(n) { return function (v) { return step([n, v]); }; }\n    function step(op) {\n        if (f) throw new TypeError(\"Generator is already executing.\");\n        while (_) try {\n            if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n            if (y = 0, t) op = [op[0] & 2, t.value];\n            switch (op[0]) {\n                case 0: case 1: t = op; break;\n                case 4: _.label++; return { value: op[1], done: false };\n                case 5: _.label++; y = op[1]; op = [0]; continue;\n                case 7: op = _.ops.pop(); _.trys.pop(); continue;\n                default:\n                    if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n                    if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n                    if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n                    if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n                    if (t[2]) _.ops.pop();\n                    _.trys.pop(); continue;\n            }\n            op = body.call(thisArg, _);\n        } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n        if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n    }\n}\n\nvar Response = /** @class */ (function () {\n    /**\n     * Create a new response instance.\n     */\n    function Response(model, config, response) {\n        /**\n         * Entities created by Vuex ORM.\n         */\n        this.entities = null;\n        /**\n         * Whether if response data is saved to the store or not.\n         */\n        this.isSaved = false;\n        this.model = model;\n        this.config = config;\n        this.response = response;\n    }\n    /**\n     * Save response data to the store.\n     */\n    Response.prototype.save = function () {\n        return __awaiter(this, void 0, void 0, function () {\n            var data, _a;\n            return __generator(this, function (_b) {\n                switch (_b.label) {\n                    case 0:\n                        data = this.getDataFromResponse();\n                        if (!this.validateData(data)) {\n                            console.warn('[Vuex ORM Axios] The response data could not be saved to the store because it\\'s not an object or an array. You might want to use `dataTransformer` option to handle non-array/object response before saving it to the store.');\n                            return [2 /*return*/];\n                        }\n                        _a = this;\n                        return [4 /*yield*/, this.model.insertOrUpdate({ data: data })];\n                    case 1:\n                        _a.entities = _b.sent();\n                        this.isSaved = true;\n                        return [2 /*return*/];\n                }\n            });\n        });\n    };\n    /**\n     * Delete store record depending on `delete` option.\n     */\n    Response.prototype.delete = function () {\n        return __awaiter(this, void 0, void 0, function () {\n            return __generator(this, function (_a) {\n                switch (_a.label) {\n                    case 0:\n                        if (this.config.delete === undefined) {\n                            throw new Error('[Vuex ORM Axios] Could not delete records because the `delete` option is not set.');\n                        }\n                        return [4 /*yield*/, this.model.delete(this.config.delete)];\n                    case 1:\n                        _a.sent();\n                        return [2 /*return*/];\n                }\n            });\n        });\n    };\n    /**\n     * Get data from the given response object. If the `dataTransformer` config is\n     * provided, it tries to execute the method with the response as param. If the\n     * `dataKey` config is provided, it tries to fetch the data at that key.\n     */\n    Response.prototype.getDataFromResponse = function () {\n        if (this.config.dataTransformer) {\n            return this.config.dataTransformer(this.response);\n        }\n        if (this.config.dataKey) {\n            return this.response.data[this.config.dataKey];\n        }\n        return this.response.data;\n    };\n    /**\n     * Validate if the given data is insertable to Vuex ORM.\n     */\n    Response.prototype.validateData = function (data) {\n        return data !== null && typeof data === 'object';\n    };\n    return Response;\n}());\n\nvar Request = /** @class */ (function () {\n    /**\n     * Create a new api instance.\n     */\n    function Request(model) {\n        /**\n         * The default config.\n         */\n        this.config = {\n            save: true\n        };\n        this.model = model;\n        this.registerActions();\n    }\n    Object.defineProperty(Request.prototype, \"axios\", {\n        /**\n         * Get the axios client.\n         */\n        get: function () {\n            if (!this.model.axios) {\n                throw new Error('[Vuex ORM Axios] The axios instance is not registered. Please register the axios instance to the model.');\n            }\n            return this.model.axios;\n        },\n        enumerable: true,\n        configurable: true\n    });\n    /**\n     * Register actions from the model config.\n     */\n    Request.prototype.registerActions = function () {\n        var actions = this.model.apiConfig.actions;\n        if (!actions) {\n            return;\n        }\n        for (var name_1 in actions) {\n            var action = actions[name_1];\n            typeof action === 'function'\n                ? this.registerFunctionAction(name_1, action)\n                : this.registerObjectAction(name_1, action);\n        }\n    };\n    /**\n     * Register the given object action.\n     */\n    Request.prototype.registerObjectAction = function (name, action) {\n        var _this = this;\n        this[name] = function (config) {\n            return _this.request(__assign(__assign({}, action), config));\n        };\n    };\n    /**\n     * Register the given function action.\n     */\n    Request.prototype.registerFunctionAction = function (name, action) {\n        this[name] = action.bind(this);\n    };\n    /**\n     * Perform a get request.\n     */\n    Request.prototype.get = function (url, config) {\n        if (config === void 0) { config = {}; }\n        return this.request(__assign({ method: 'get', url: url }, config));\n    };\n    /**\n     * Perform a post request.\n     */\n    Request.prototype.post = function (url, data, config) {\n        if (data === void 0) { data = {}; }\n        if (config === void 0) { config = {}; }\n        return this.request(__assign({ method: 'post', url: url, data: data }, config));\n    };\n    /**\n     * Perform a put request.\n     */\n    Request.prototype.put = function (url, data, config) {\n        if (data === void 0) { data = {}; }\n        if (config === void 0) { config = {}; }\n        return this.request(__assign({ method: 'put', url: url, data: data }, config));\n    };\n    /**\n     * Perform a patch request.\n     */\n    Request.prototype.patch = function (url, data, config) {\n        if (data === void 0) { data = {}; }\n        if (config === void 0) { config = {}; }\n        return this.request(__assign({ method: 'patch', url: url, data: data }, config));\n    };\n    /**\n     * Perform a delete request.\n     */\n    Request.prototype.delete = function (url, config) {\n        if (config === void 0) { config = {}; }\n        return this.request(__assign({ method: 'delete', url: url }, config));\n    };\n    /**\n     * Perform an api request.\n     */\n    Request.prototype.request = function (config) {\n        return __awaiter(this, void 0, void 0, function () {\n            var requestConfig, axiosResponse;\n            return __generator(this, function (_a) {\n                switch (_a.label) {\n                    case 0:\n                        requestConfig = this.createConfig(config);\n                        return [4 /*yield*/, this.axios.request(requestConfig)];\n                    case 1:\n                        axiosResponse = _a.sent();\n                        return [2 /*return*/, this.createResponse(axiosResponse, requestConfig)];\n                }\n            });\n        });\n    };\n    /**\n     * Create a new config by merging the global config, the model config,\n     * and the given config.\n     */\n    Request.prototype.createConfig = function (config) {\n        return __assign(__assign(__assign(__assign({}, this.config), this.model.globalApiConfig), this.model.apiConfig), config);\n    };\n    /**\n     * Create a new response instance by applying a few initialization processes.\n     * For example, it saves response data if `save` option id set to `true`.\n     */\n    Request.prototype.createResponse = function (axiosResponse, config) {\n        return __awaiter(this, void 0, void 0, function () {\n            var response, _a;\n            return __generator(this, function (_b) {\n                switch (_b.label) {\n                    case 0:\n                        response = new Response(this.model, config, axiosResponse);\n                        if (!(config.delete !== undefined)) return [3 /*break*/, 2];\n                        return [4 /*yield*/, response.delete()];\n                    case 1:\n                        _b.sent();\n                        return [2 /*return*/, response];\n                    case 2:\n                        _a = config.save;\n                        if (!_a) return [3 /*break*/, 4];\n                        return [4 /*yield*/, response.save()];\n                    case 3:\n                        _a = (_b.sent());\n                        _b.label = 4;\n                    case 4:\n                        return [2 /*return*/, response];\n                }\n            });\n        });\n    };\n    return Request;\n}());\n\nfunction Model(model, config) {\n    /**\n     * The api client.\n     */\n    model.axios = config.axios || null;\n    /**\n     * The global api configuration for all models.\n     */\n    model.globalApiConfig = config;\n    /**\n     * The api configuration for the model.\n     */\n    model.apiConfig = {};\n    /**\n     * Set the given api client.\n     */\n    model.setAxios = function (axios) {\n        this.axios = axios;\n    };\n    /**\n     * Get the api instance.\n     */\n    model.api = function () {\n        return new Request(this);\n    };\n}\n\nvar VuexORMAxios = /** @class */ (function () {\n    /**\n     * Create a new Vuex ORM Axios instance.\n     */\n    function VuexORMAxios(components, config) {\n        this.model = components.Model;\n        this.config = config;\n    }\n    /**\n     * Plug in features.\n     */\n    VuexORMAxios.prototype.plugin = function () {\n        Model(this.model, this.config);\n    };\n    return VuexORMAxios;\n}());\n\nvar index_cjs = {\n    install: function (components, config) {\n        (new VuexORMAxios(components, config)).plugin();\n    }\n};\n\nmodule.exports = index_cjs;\n"]}