"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.chatOpen = void 0;
const chatOpen = function () {
  let _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
    _ref$instances = _ref.instances,
    instances = _ref$instances === void 0 ? [] : _ref$instances,
    source = _ref.source;
  const value = {
    send_to: instances.map(function () {
      let _ref2 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
        idAnalytics = _ref2.idAnalytics;
      return idAnalytics;
    }),
    source
  };
  window.gtag('event', 'chat_open', value);
  return value;
};
exports.chatOpen = chatOpen;
//# sourceMappingURL=chatOpen.js.map