__webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "MethodEmbed": () => (/* binding */ MethodEmbed) /* harmony export */ }); /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/.pnpm/tslib@2.8.1/node_modules/tslib/tslib.es6.mjs"); // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 var MethodEmbed = /** @class */ (function () { function MethodEmbed(context, methodName) { this.context = context; this.methodName = methodName; this.originalMethod = context[methodName].bind(context); } MethodEmbed.add = function (context, methodName, methodOverride) { new MethodEmbed(context, methodName).set(methodOverride); }; MethodEmbed.prototype.set = function (methodOverride) { var _this = this; this.context[this.methodName] = function () { var args = []; for (var _i = 0; _i < arguments.length; _i++) { args[_i] = arguments[_i]; } return methodOverride(_this.originalMethod.apply(_this, (0,tslib__WEBPACK_IMPORTED_MODULE_0__.__spreadArray)([], (0,tslib__WEBPACK_IMPORTED_MODULE_0__.__read)(args), false))); }; }; return MethodEmbed; }()); //# sourceURL=webpack://@pamperedchef/common-analytics/./node_modules/.pnpm/@aws+clickstream-web@0.12.4_react-native@0.79.2_@babel+core@7.27.1_react@19.1.0_/node_modules/@aws/clickstream-web/lib-esm/util/MethodEmbed.js?