"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }var _chunk2TRCRGZRjs = require('./chunk-2TRCRGZR.js');var _react = require('react'); var _react2 = _interopRequireDefault(_react);var _reactchainofresponsibility = require('react-chain-of-responsibility');var _valibot = require('valibot');var P=_valibot.array.call(void 0, _valibot.function_.call(void 0, )),a= exports.a =Symbol(),R=r=>_valibot.safeParse.call(void 0, P,r).success,T=Object.freeze([]);function I(r){let s=n=>{let e=t=>t===r&&n;return e[a]=a,e},p=_chunk2TRCRGZRjs.b.call(void 0, `Middleware passed for extraction of "${r}" must be an array of function`),l=n=>{if(n){if(R(n))return Object.freeze(n.map(e=>{let t=e(r);return typeof t!="function"&&t!==!1?(console.warn(`botframework-webchat: ${r}.middleware must return enhancer function or false`),!1):t}).filter(e=>!!e).map(e=>()=>e));p()}return T},{Provider:y,Proxy:d}=_reactchainofresponsibility.createChainOfResponsibility.call(void 0, ),o=_react.memo.call(void 0, function({children:e,middleware:t}){return _react2.default.createElement(y,{init:r,middleware:t},e)});return o.displayName=`${r}Provider`,d.displayName=`${r}Proxy`,{createMiddleware:s,extractMiddleware:l,Provider:o,Proxy:d,"~types":void 0}}var O=I;exports.a = a; exports.b = O;
//# sourceMappingURL=chunk-TMLJUPYM.js.map