/// <reference path="recengine/VisitorProfile.ts" />
/// <reference path="storage/ClientBag.ts" />
/// <reference path="env/Session.ts" />
var econda;
(function (econda) {
    /**
     * Current state
     * @class econda.data
     * @static
     */
    /**
     * Profile of current visitor
     * @property {econda.recengine.VisitorProfile} visitor
     */
    var data = (function () {
        function data() {
        }
        data.visitor = null;
        data.session = null;
        data.clientBag = null;
        return data;
    }());
    econda.data = data; // end of class
})(econda || (econda = {})); // end of module 
econda.data.visitor = new econda.recengine.VisitorProfile();
if (typeof econdaConfig === 'object' && typeof econdaConfig.sessionStart !== 'undefined' && econdaConfig.sessionStart && econda.env.Session.isSupported()) {
    econda.data.session = new econda.env.Session();
    econda.data.session.init();
}
if (typeof econdaConfig === 'object' && typeof econdaConfig.clientBag !== 'undefined' && econdaConfig.clientBag === true) {
    econda.data.clientBag = (new econda.storage.ClientBag()).init();
}