"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.trace = void 0;
var _dataSources = require("@mirai/data-sources");
const trace = state => {
  if (!state) return;
  const {
    Mirai: {
      trackingReady
    } = {}
  } = window;
  const publish = () => _dataSources.Event.publish('setInformationTracking', state);
  if (!trackingReady) _dataSources.Event.subscribe('trackingReady', publish);else publish();
};
exports.trace = trace;
//# sourceMappingURL=trace.js.map