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\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/ts-react-apollo@1.1.2/dist/ts-react-apollo.umd.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","(function (global, factory) {\n    typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('apollo-client'), require('react'), require('react-apollo')) :\n    typeof define === 'function' && define.amd ? define(['exports', 'apollo-client', 'react', 'react-apollo'], factory) :\n    (factory((global.TSApollo = {}),global.ApolloClient,global.React,global.ReactApollo));\n}(this, (function (exports,apolloClient,React,reactApollo) { 'use strict';\n\n    React = React && React.hasOwnProperty('default') ? React['default'] : React;\n\n    /*! *****************************************************************************\r\n    Copyright (c) Microsoft Corporation. All rights reserved.\r\n    Licensed under the Apache License, Version 2.0 (the \"License\"); you may not use\r\n    this file except in compliance with the License. You may obtain a copy of the\r\n    License at http://www.apache.org/licenses/LICENSE-2.0\r\n\r\n    THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\r\n    KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\r\n    WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\r\n    MERCHANTABLITY OR NON-INFRINGEMENT.\r\n\r\n    See the Apache Version 2.0 License for specific language governing permissions\r\n    and limitations under the License.\r\n    ***************************************************************************** */\r\n    /* global Reflect, Promise */\r\n\r\n    var extendStatics = Object.setPrototypeOf ||\r\n        ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n        function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\r\n\r\n    function __extends(d, b) {\r\n        extendStatics(d, b);\r\n        function __() { this.constructor = d; }\r\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n    }\r\n\r\n    var __assign = Object.assign || function __assign(t) {\r\n        for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n            s = arguments[i];\r\n            for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n        }\r\n        return t;\r\n    };\n\n    var Query = /** @class */ (function (_super) {\r\n        __extends(Query, _super);\r\n        function Query() {\r\n            var _this = _super !== null && _super.apply(this, arguments) || this;\r\n            _this.mapData = function (result) {\r\n                var loading = result.loading, error = result.error, data = result.data;\r\n                if (loading) {\r\n                    return { type: 'loading' };\r\n                }\r\n                if (error) {\r\n                    return {\r\n                        type: 'error',\r\n                        error: error,\r\n                    };\r\n                }\r\n                if (data) {\r\n                    return {\r\n                        type: 'data',\r\n                        data: data,\r\n                    };\r\n                }\r\n                // This point should actually never be reached due to the restrictions of Apollo GraphQL responses\r\n                console.error('An unexpected Query sidecase happened where no valid union type could be found, please file an issue for this.');\r\n                return { type: 'error', error: new apolloClient.ApolloError({}) };\r\n            };\r\n            return _this;\r\n        }\r\n        Query.prototype.render = function () {\r\n            var _this = this;\r\n            return (React.createElement(reactApollo.Query, __assign({}, this.props), function (data) { return _this.props.children({ result: _this.mapData(data) }); }));\r\n        };\r\n        return Query;\r\n    }(React.PureComponent));\n\n    var Mutation = /** @class */ (function (_super) {\r\n        __extends(Mutation, _super);\r\n        function Mutation() {\r\n            var _this = _super !== null && _super.apply(this, arguments) || this;\r\n            _this.mapData = function (result) {\r\n                var loading = result.loading, error = result.error, data = result.data;\r\n                if (loading) {\r\n                    return { type: 'loading' };\r\n                }\r\n                if (error) {\r\n                    return {\r\n                        type: 'error',\r\n                        error: error,\r\n                    };\r\n                }\r\n                if (data) {\r\n                    return {\r\n                        type: 'data',\r\n                        data: data,\r\n                    };\r\n                }\r\n                // This point should actually never be reached due to the restrictions of Apollo GraphQL responses\r\n                console.error('An unexpected Mutation sidecase happened where no valid union type could be found, please file an issue for this.');\r\n                return { type: 'error', error: new apolloClient.ApolloError({}) };\r\n            };\r\n            return _this;\r\n        }\r\n        Mutation.prototype.render = function () {\r\n            var _this = this;\r\n            return (React.createElement(reactApollo.Mutation, __assign({}, this.props), function (mutateFn, data) {\r\n                return _this.props.children({ mutateFn: mutateFn, result: _this.mapData(data) });\r\n            }));\r\n        };\r\n        return Mutation;\r\n    }(React.PureComponent));\n\n    exports.Query = Query;\n    exports.Mutation = Mutation;\n\n    Object.defineProperty(exports, '__esModule', { value: true });\n\n})));\n"]}