"use strict";

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