/*Line 77 - 'AtomErrors.js'
161424
function (e) {
/*Line 78 - 'AtomErrors.js' */                if (this.refreshing)
/*Line 79 - 'AtomErrors.js' */                    return;
/*Line 80 - 'AtomErrors.js' */                this.refreshing = true;
/*Line 81 - 'AtomErrors.js' */                try {
/*Line 82 - 'AtomErrors.js' */                    e = e || this.value;
/*Line 83 - 'AtomErrors.js' */                    var ac = e.atomControl;
/*Line 84 - 'AtomErrors.js' */                    if (ac) {
/*Line 85 - 'AtomErrors.js' */                        AtomBinder.refreshValue(ac, "errors");
/*Line 86 - 'AtomErrors.js' */                    }
/*Line 87 - 'AtomErrors.js' */                } finally {
/*Line 88 - 'AtomErrors.js' */                    this.refreshing = false;
/*Line 89 - 'AtomErrors.js' */                }
/*Line 90 - 'AtomErrors.js' */                var p = e._logicalParent || e.parentNode;
/*Line 91 - 'AtomErrors.js' */                if (p) {
/*Line 92 - 'AtomErrors.js' */                    this.refresh(p);
/*Line 93 - 'AtomErrors.js' */                }
/*Line 94 - 'AtomErrors.js' */            }
963572
function (e, ef) {

/*Line 118 - 'AtomForm.js' */                if (!ef)
/*Line 119 - 'AtomForm.js' */                    ef = $(e).data("field-error");

/*Line 121 - 'AtomForm.js' */                var ctrl = e.atomControl;
/*Line 122 - 'AtomForm.js' */                var val = null;
/*Line 123 - 'AtomForm.js' */                var skip = false;
/*Line 124 - 'AtomForm.js' */                if (!ctrl) {
/*Line 125 - 'AtomForm.js' */                    if ((/input|select|textarea/i).test(e.nodeName)) {
/*Line 126 - 'AtomForm.js' */                        val = $(e).val();
/*Line 127 - 'AtomForm.js' */                    } else {
/*Line 128 - 'AtomForm.js' */                        skip = true;
/*Line 129 - 'AtomForm.js' */                    }
/*Line 130 - 'AtomForm.js' */                } else {
/*Line 131 - 'AtomForm.js' */                    if (ctrl.constructor == WebAtoms.AtomFormField) {
/*Line 132 - 'AtomForm.js' */                        return ctrl.validate();
/*Line 133 - 'AtomForm.js' */                    }
/*Line 134 - 'AtomForm.js' */                    val = AtomBinder.getValue(ctrl, "value");
/*Line 135 - 'AtomForm.js' */                }

/*Line 137 - 'AtomForm.js' */                if (!skip) {

/*Line 139 - 'AtomForm.js' */                    var req = AtomUI.attr(e,"atom-required");
/*Line 140 - 'AtomForm.js' */                    if (req && !val) {
/*Line 141 - 'AtomForm.js' */                        // error...
/*Line 142 - 'AtomForm.js' */                        AtomProperties.text(ef, "Required");
/*Line 143 - 'AtomForm.js' */                        $(e).addClass("atom-data-error");
/*Line 144 - 'AtomForm.js' */                        return false;
/*Line 145 - 'AtomForm.js' */                    }


/*Line 148 - 'AtomForm.js' */                    var re = AtomUI.attr(e, "atom-regex");
/*Line 149 - 'AtomForm.js' */                    if (!re) {
/*Line 150 - 'AtomForm.js' */                        var dt = AtomUI.attr(e, "atom-data-type");
/*Line 151 - 'AtomForm.js' */                        if (dt) {
/*Line 152 - 'AtomForm.js' */                            switch (dt) {
/*Line 153 - 'AtomForm.js' */                                case "email":
/*Line 154 - 'AtomForm.js' */                                    re = /^(([^<>()\[\]\\.,;:\s@\"]+(\.[^<>()\[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
/*Line 155 - 'AtomForm.js' */                                    break;
/*Line 156 - 'AtomForm.js' */                            }
/*Line 157 - 'AtomForm.js' */                        }
/*Line 158 - 'AtomForm.js' */                    } else {
/*Line 159 - 'AtomForm.js' */                        re = eval("(" + re + ")");
/*Line 160 - 'AtomForm.js' */                    }

/*Line 162 - 'AtomForm.js' */                    if (re) {
/*Line 163 - 'AtomForm.js' */                        if (!re.test(val)) {
/*Line 164 - 'AtomForm.js' */                            $(ef).text("Invalid");
/*Line 165 - 'AtomForm.js' */                            $(e).addClass("atom-data-error");
/*Line 166 - 'AtomForm.js' */                            return false;
/*Line 167 - 'AtomForm.js' */                        }
/*Line 168 - 'AtomForm.js' */                    }

/*Line 170 - 'AtomForm.js' */                    $(ef).text("");
/*Line 171 - 'AtomForm.js' */                    $(e).removeClass("atom-data-error");
/*Line 172 - 'AtomForm.js' */                }

/*Line 174 - 'AtomForm.js' */                // return for every children??
/*Line 175 - 'AtomForm.js' */                var ae = new ChildEnumerator(e);
/*Line 176 - 'AtomForm.js' */                var isValid = true;
/*Line 177 - 'AtomForm.js' */                while (ae.next()) {
/*Line 178 - 'AtomForm.js' */                    if (!this.validate(ae.current(), ef)) {
/*Line 179 - 'AtomForm.js' */                        isValid = false;
/*Line 180 - 'AtomForm.js' */                    }
/*Line 181 - 'AtomForm.js' */                }

/*Line 183 - 'AtomForm.js' */                return isValid;
/*Line 184 - 'AtomForm.js' */            }
880488
function (e) {


/*Line 52 - 'AtomPostButton.js' */                if (!this._postUrl) {
/*Line 53 - 'AtomPostButton.js' */                    base.onClickHandler.apply(this, arguments);
/*Line 54 - 'AtomPostButton.js' */                    return;
/*Line 55 - 'AtomPostButton.js' */                }

/*Line 57 - 'AtomPostButton.js' */                var vr = this._validationRoot;
/*Line 58 - 'AtomPostButton.js' */                if (vr) {
/*Line 59 - 'AtomPostButton.js' */                    vr.validate();
/*Line 60 - 'AtomPostButton.js' */                    var errors = vr.get_errors();
/*Line 61 - 'AtomPostButton.js' */                    if (errors.length) {
/*Line 62 - 'AtomPostButton.js' */                        Atom.alert(Atom.mapJoin(errors,'label'));
/*Line 63 - 'AtomPostButton.js' */                        return false;
/*Line 64 - 'AtomPostButton.js' */                    }
/*Line 65 - 'AtomPostButton.js' */                }


/*Line 68 - 'AtomPostButton.js' */                var errors = this.get_errors();
/*Line 69 - 'AtomPostButton.js' */                if (errors.length) {

/*Line 71 - 'AtomPostButton.js' */                    Atom.alert(Atom.mapJoin(errors, 'label'));

/*Line 73 - 'AtomPostButton.js' */                    return false;
/*Line 74 - 'AtomPostButton.js' */                }


/*Line 77 - 'AtomPostButton.js' */                var data = this.get_postData();

/*Line 79 - 'AtomPostButton.js' */                if (data === null || data === undefined)
/*Line 80 - 'AtomPostButton.js' */                    return;

/*Line 82 - 'AtomPostButton.js' */                var m = this._mergeData;
/*Line 83 - 'AtomPostButton.js' */                if (m) {
/*Line 84 - 'AtomPostButton.js' */                    for (var i in m) {
/*Line 85 - 'AtomPostButton.js' */                        data[i] = m[i];
/*Line 86 - 'AtomPostButton.js' */                    }
/*Line 87 - 'AtomPostButton.js' */                }

/*Line 89 - 'AtomPostButton.js' */                //data = AtomBinder.getClone(data);

/*Line 91 - 'AtomPostButton.js' */                var caller = this;
/*Line 92 - 'AtomPostButton.js' */                var invokeNext = function (p) {
/*Line 93 - 'AtomPostButton.js' */                    AtomBinder.setValue(caller, "postResult", p.value());
/*Line 94 - 'AtomPostButton.js' */                    caller.invokeAction(caller._next);
/*Line 95 - 'AtomPostButton.js' */                };

/*Line 97 - 'AtomPostButton.js' */                //this.invokeAjax(this._postUrl, { type: "POST", data: data, success: invokeNext });


/*Line 100 - 'AtomPostButton.js' */                var p = AtomPromise.json(this._postUrl, null, { type: "POST", data: data });
/*Line 101 - 'AtomPostButton.js' */                p.then(invokeNext);

/*Line 103 - 'AtomPostButton.js' */                var errorNext = this._errorNext;
/*Line 104 - 'AtomPostButton.js' */                if (errorNext) {
/*Line 105 - 'AtomPostButton.js' */                    p.failed(function (pr) {
/*Line 106 - 'AtomPostButton.js' */                        AtomBinder.setValue(caller, "postError", pr);
/*Line 107 - 'AtomPostButton.js' */                        caller.invokeAction(caller, errorNext);
/*Line 108 - 'AtomPostButton.js' */                    });
/*Line 109 - 'AtomPostButton.js' */                }

/*Line 111 - 'AtomPostButton.js' */                p.invoke();

/*Line 113 - 'AtomPostButton.js' */            }
121846
function (e) {
/*Line 170 - 'AtomErrors.js' */        var item = e.atomValidator;
/*Line 171 - 'AtomErrors.js' */        if (item) {
/*Line 172 - 'AtomErrors.js' */            item.reset();
/*Line 173 - 'AtomErrors.js' */            return;
/*Line 174 - 'AtomErrors.js' */        }
/*Line 175 - 'AtomErrors.js' */        var ce = new ChildEnumerator(e);
/*Line 176 - 'AtomErrors.js' */        while (ce.next()) {
/*Line 177 - 'AtomErrors.js' */            var child = ce.current();
/*Line 178 - 'AtomErrors.js' */            this.validate(child);
/*Line 179 - 'AtomErrors.js' */        }
/*Line 180 - 'AtomErrors.js' */    }
448992
function () {

/*Line 977 - 'AtomControl.js' */                // first remove all templates ...
/*Line 978 - 'AtomControl.js' */                base.init.apply(this, arguments);

/*Line 980 - 'AtomControl.js' */                // init properties...
/*Line 981 - 'AtomControl.js' */                var element = this.get_element();

/*Line 983 - 'AtomControl.js' */                var amap = AtomUI.attributeMap(element, /^atom\-(name|local\-scope)$/gi);

/*Line 985 - 'AtomControl.js' */                var aname = amap["atom-name"];
/*Line 986 - 'AtomControl.js' */                if (!aname) {
/*Line 987 - 'AtomControl.js' */                    var eid = element.id;
/*Line 988 - 'AtomControl.js' */                    if (!/^\_\_waID/.test(eid)) {
/*Line 989 - 'AtomControl.js' */                        aname = element.id;
/*Line 990 - 'AtomControl.js' */                    }
/*Line 991 - 'AtomControl.js' */                } else {
/*Line 992 - 'AtomControl.js' */                    element.removeAttributeNode(aname.node);
/*Line 993 - 'AtomControl.js' */                    aname = aname.value;
/*Line 994 - 'AtomControl.js' */                }
/*Line 995 - 'AtomControl.js' */                if (aname) {
/*Line 996 - 'AtomControl.js' */                    if (/^(app|window|owner|scope|localScope|parent)$/gi.test(aname))
/*Line 997 - 'AtomControl.js' */                        throw new Error("Invalid Control Name '" + aname + "'");
/*Line 998 - 'AtomControl.js' */                    var s = this.get_scope();
/*Line 999 - 'AtomControl.js' */                    AtomBinder.setValue(s, aname, this);
/*Line 1000 - 'AtomControl.js' */                    this._name = aname;
/*Line 1001 - 'AtomControl.js' */                }


/*Line 1004 - 'AtomControl.js' */                ls = amap["atom-local-scope"];
/*Line 1005 - 'AtomControl.js' */                if (ls) {
/*Line 1006 - 'AtomControl.js' */                    this._localScope = new AtomScope(this, this.get_scope(), atomApplication);
/*Line 1007 - 'AtomControl.js' */                    this._scope = this._localScope;
/*Line 1008 - 'AtomControl.js' */                    if (this._name) {
/*Line 1009 - 'AtomControl.js' */                        this._localScope[this._name] = this;
/*Line 1010 - 'AtomControl.js' */                    }
/*Line 1011 - 'AtomControl.js' */                    element.removeAttributeNode(ls.node);
/*Line 1012 - 'AtomControl.js' */                }

/*Line 1014 - 'AtomControl.js' */                // scope is now ready, set scopeTemplates...
/*Line 1015 - 'AtomControl.js' */                var st = this._scopeTemplates;
/*Line 1016 - 'AtomControl.js' */                if (st) {
/*Line 1017 - 'AtomControl.js' */                    var s = this.get_scope();
/*Line 1018 - 'AtomControl.js' */                    for (var i in st) {
/*Line 1019 - 'AtomControl.js' */                        var t = st[i];
/*Line 1020 - 'AtomControl.js' */                        AtomBinder.setValue(s, i, t);
/*Line 1021 - 'AtomControl.js' */                    }
/*Line 1022 - 'AtomControl.js' */                    //try {
/*Line 1023 - 'AtomControl.js' */                    //    delete this._scopeTemplates;
/*Line 1024 - 'AtomControl.js' */                    //} catch (exx) {

/*Line 1026 - 'AtomControl.js' */                    //}
/*Line 1027 - 'AtomControl.js' */                }

/*Line 1029 - 'AtomControl.js' */                //var fn = Function.createDelegate(this, this.initProperties);
/*Line 1030 - 'AtomControl.js' */                var _this = this;
/*Line 1031 - 'AtomControl.js' */                WebAtoms.dispatcher.callLater(function () {
/*Line 1032 - 'AtomControl.js' */                    _this.initProperties();
/*Line 1033 - 'AtomControl.js' */                });

/*Line 1035 - 'AtomControl.js' */                // init every children..
/*Line 1036 - 'AtomControl.js' */                this.initChildren(this._element);

/*Line 1038 - 'AtomControl.js' */                //fn = Function.createDelegate(this, this.onInitialized);
/*Line 1039 - 'AtomControl.js' */                WebAtoms.dispatcher.callLater(function () {
/*Line 1040 - 'AtomControl.js' */                    _this.onInitialized();
/*Line 1041 - 'AtomControl.js' */                });
/*Line 1042 - 'AtomControl.js' */            }
397961
function () {
/*Line 89 - 'AtomDataPager.js' */                    var v = this._items;
/*Line 90 - 'AtomDataPager.js' */                    if (v.length === undefined) {
/*Line 91 - 'AtomDataPager.js' */                        var val = v[this._itemsPath];

/*Line 93 - 'AtomDataPager.js' */                        AtomBinder.setValue(this, "total", v[this._totalPath]);
/*Line 94 - 'AtomDataPager.js' */                        AtomBinder.setValue(this, "value", val);
/*Line 95 - 'AtomDataPager.js' */                    } else {
/*Line 96 - 'AtomDataPager.js' */                        if (v.total) {
/*Line 97 - 'AtomDataPager.js' */                            AtomBinder.setValue(this, "total", v.total);
/*Line 98 - 'AtomDataPager.js' */                        } else {
/*Line 99 - 'AtomDataPager.js' */                            AtomBinder.setValue(this, "pages", []);
/*Line 100 - 'AtomDataPager.js' */                        }
/*Line 101 - 'AtomDataPager.js' */                        AtomBinder.setValue(this, "value", v);
/*Line 102 - 'AtomDataPager.js' */                    }

/*Line 104 - 'AtomDataPager.js' */                    this.preparePages();
/*Line 105 - 'AtomDataPager.js' */                }
510496
function (v) {
/*Line 401 - 'Atom.js' */        if (!v)
/*Line 402 - 'Atom.js' */            return null;
/*Line 403 - 'Atom.js' */        var d = AtomDate.parse(v);
/*Line 404 - 'Atom.js' */        var now = new Date();

/*Line 406 - 'Atom.js' */        if (now.getFullYear() === d.getFullYear()
/*Line 407 - 'Atom.js' */            && now.getMonth() === d.getMonth()) {
/*Line 408 - 'Atom.js' */            var diff = now.getDate() - d.getDate();
/*Line 409 - 'Atom.js' */            switch(diff){
/*Line 410 - 'Atom.js' */                case -1:
/*Line 411 - 'Atom.js' */                    return "Tomorrow (" + AtomDate.toTimeString(d) + ")";
/*Line 412 - 'Atom.js' */                case 0:
/*Line 413 - 'Atom.js' */                    return "Today (" + AtomDate.toTimeString(d) + ")";
/*Line 414 - 'Atom.js' */                case 1:
/*Line 415 - 'Atom.js' */                    return "Yesterday (" + AtomDate.toTimeString(d) + ")";
/*Line 416 - 'Atom.js' */            }
/*Line 417 - 'Atom.js' */        }
/*Line 418 - 'Atom.js' */        return AtomDate.toDateTimeString(d);
/*Line 419 - 'Atom.js' */    }
1320097
function () {
/*Line 135 - 'AtomFrameView.js' */                var index = this._selectedIndex;
/*Line 136 - 'AtomFrameView.js' */                if (index) {
/*Line 137 - 'AtomFrameView.js' */                    var item = Atom.query(this._items).firstOrDefault({ index: index });
/*Line 138 - 'AtomFrameView.js' */                    if (item) {
/*Line 139 - 'AtomFrameView.js' */                        var self = this;
/*Line 140 - 'AtomFrameView.js' */                        index = index - 1;
/*Line 141 - 'AtomFrameView.js' */                        Atom.set(this, "selectedIndex", index);
/*Line 142 - 'AtomFrameView.js' */                        if (self._removeOnBack) {
/*Line 143 - 'AtomFrameView.js' */                            this.replaceItemWithUrl(item, item.opener);
/*Line 144 - 'AtomFrameView.js' */                        }

/*Line 146 - 'AtomFrameView.js' */                    }
/*Line 147 - 'AtomFrameView.js' */                }
/*Line 148 - 'AtomFrameView.js' */            }
66196
function (v) {
/*Line 41 - 'AtomCalendar.js' */                if (!v)
/*Line 42 - 'AtomCalendar.js' */                    return;
/*Line 43 - 'AtomCalendar.js' */                if (v == this._visibleDate)
/*Line 44 - 'AtomCalendar.js' */                    return;
/*Line 45 - 'AtomCalendar.js' */                this._visibleDate = v;
/*Line 46 - 'AtomCalendar.js' */                this._year = v.getFullYear();
/*Line 47 - 'AtomCalendar.js' */                this._month = v.getMonth() + 1;
/*Line 48 - 'AtomCalendar.js' */                this.updateCalendar();
/*Line 49 - 'AtomCalendar.js' */                AtomBinder.refreshValue(this, "year");
/*Line 50 - 'AtomCalendar.js' */                AtomBinder.refreshValue(this, "month");
/*Line 51 - 'AtomCalendar.js' */            }
50369
function () {
/*Line 88 - 'AtomNavigatorList.js' */                var v = this._displayMode;
/*Line 89 - 'AtomNavigatorList.js' */                if (v == 0) {

/*Line 91 - 'AtomNavigatorList.js' */                    if (this._detailPresenter) {
/*Line 92 - 'AtomNavigatorList.js' */                        this._detailView.atomControl.dispose(this._detailPresenter);
/*Line 93 - 'AtomNavigatorList.js' */                        this._detailPresenter = null;
/*Line 94 - 'AtomNavigatorList.js' */                    }
/*Line 95 - 'AtomNavigatorList.js' */                    if (this._newPresenter) {
/*Line 96 - 'AtomNavigatorList.js' */                        this._newView.atomControl.dispose(this._newPresenter);
/*Line 97 - 'AtomNavigatorList.js' */                        this._newPresenter = null;
/*Line 98 - 'AtomNavigatorList.js' */                    }
/*Line 99 - 'AtomNavigatorList.js' */                    if (this._detailHeaderPresenter) {
/*Line 100 - 'AtomNavigatorList.js' */                        this._detailView.atomControl.dispose(this._detailHeaderPresenter);
/*Line 101 - 'AtomNavigatorList.js' */                        this._detailHeaderPresenter = null;
/*Line 102 - 'AtomNavigatorList.js' */                    }
/*Line 103 - 'AtomNavigatorList.js' */                    if (this._newHeaderPresenter) {
/*Line 104 - 'AtomNavigatorList.js' */                        this._newView.atomControl.dispose(this._newHeaderPresenter);
/*Line 105 - 'AtomNavigatorList.js' */                        this._newHeaderPresenter = null;
/*Line 106 - 'AtomNavigatorList.js' */                    }

/*Line 108 - 'AtomNavigatorList.js' */                    return;
/*Line 109 - 'AtomNavigatorList.js' */                }

/*Line 111 - 'AtomNavigatorList.js' */                var c = null;
/*Line 112 - 'AtomNavigatorList.js' */                var ct = this.getTemplate("detailTemplate");;
/*Line 113 - 'AtomNavigatorList.js' */                var ch = null;
/*Line 114 - 'AtomNavigatorList.js' */                var cht;
/*Line 115 - 'AtomNavigatorList.js' */                var key = "";

/*Line 117 - 'AtomNavigatorList.js' */                if (v == 1) {
/*Line 118 - 'AtomNavigatorList.js' */                    c = this._detailView;
/*Line 119 - 'AtomNavigatorList.js' */                    ch = this._detailHeaderToolbar;
/*Line 120 - 'AtomNavigatorList.js' */                    cht = this.getTemplate("detailHeaderTemplate");
/*Line 121 - 'AtomNavigatorList.js' */                    key = "_detail";
/*Line 122 - 'AtomNavigatorList.js' */                } else {
/*Line 123 - 'AtomNavigatorList.js' */                    c = this._newView;
/*Line 124 - 'AtomNavigatorList.js' */                    ch = this._newHeaderToolbar;
/*Line 125 - 'AtomNavigatorList.js' */                    cht = this.getTemplate("newHeaderTemplate");
/*Line 126 - 'AtomNavigatorList.js' */                    key = "_new";
/*Line 127 - 'AtomNavigatorList.js' */                }

/*Line 129 - 'AtomNavigatorList.js' */                if (ch && cht) {
/*Line 130 - 'AtomNavigatorList.js' */                    cht = AtomUI.cloneNode(cht);
/*Line 131 - 'AtomNavigatorList.js' */                    this.addTemplate(ch, cht, true);
/*Line 132 - 'AtomNavigatorList.js' */                    this[key + "HeaderPresenter"] = cht;
/*Line 133 - 'AtomNavigatorList.js' */                }

/*Line 135 - 'AtomNavigatorList.js' */                if (c && ct) {
/*Line 136 - 'AtomNavigatorList.js' */                    ct = AtomUI.cloneNode(ct);
/*Line 137 - 'AtomNavigatorList.js' */                    this.addTemplate(c, ct, true);
/*Line 138 - 'AtomNavigatorList.js' */                    this[key + "Presenter"] = ct;
/*Line 139 - 'AtomNavigatorList.js' */                }
/*Line 140 - 'AtomNavigatorList.js' */            }
876434
function () {
/*Line 44 - 'AtomDataPager.js' */                    if (!this._items)
/*Line 45 - 'AtomDataPager.js' */                        return;
/*Line 46 - 'AtomDataPager.js' */                    if (!this._total)
/*Line 47 - 'AtomDataPager.js' */                        return;
/*Line 48 - 'AtomDataPager.js' */                    if (!this._pageSize)
/*Line 49 - 'AtomDataPager.js' */                        return;
/*Line 50 - 'AtomDataPager.js' */                    var l = this._items.length;
/*Line 51 - 'AtomDataPager.js' */                    var t = this._total;
/*Line 52 - 'AtomDataPager.js' */                    var count = Math.ceil(t / this._pageSize);

/*Line 54 - 'AtomDataPager.js' */                    if (count == this._pages.length)
/*Line 55 - 'AtomDataPager.js' */                        return;

/*Line 57 - 'AtomDataPager.js' */                    var ps = this._pageSize;
/*Line 58 - 'AtomDataPager.js' */                    var pages = [];
/*Line 59 - 'AtomDataPager.js' */                    var i;
/*Line 60 - 'AtomDataPager.js' */                    for (i = 0; i < count; i++) {
/*Line 61 - 'AtomDataPager.js' */                        pages.push({
/*Line 62 - 'AtomDataPager.js' */                            value: i,
/*Line 63 - 'AtomDataPager.js' */                            label: i + 1
/*Line 64 - 'AtomDataPager.js' */                        });
/*Line 65 - 'AtomDataPager.js' */                    }
/*Line 66 - 'AtomDataPager.js' */                    AtomBinder.setValue(this, "pages", pages);
/*Line 67 - 'AtomDataPager.js' */                }
125648
function (v) {
/*Line 405 - 'AtomItemsControl.js' */                var _this = this;
/*Line 406 - 'AtomItemsControl.js' */                if (this._items) {
/*Line 407 - 'AtomItemsControl.js' */                    this.unbindEvent(this._items, "CollectionChanged", null);
/*Line 408 - 'AtomItemsControl.js' */                }
/*Line 409 - 'AtomItemsControl.js' */                this._items = v;
/*Line 410 - 'AtomItemsControl.js' */                this._filteredItems = null;
/*Line 411 - 'AtomItemsControl.js' */                // try starting observing....
/*Line 412 - 'AtomItemsControl.js' */                if (v != null) {
/*Line 413 - 'AtomItemsControl.js' */                    this.bindEvent(this._items, "CollectionChanged", function () {
/*Line 414 - 'AtomItemsControl.js' */                        _this.onCollectionChangedInternal.apply(_this, arguments);
/*Line 415 - 'AtomItemsControl.js' */                    });
/*Line 416 - 'AtomItemsControl.js' */                    this.onCollectionChangedInternal("refresh", -1, null);
/*Line 417 - 'AtomItemsControl.js' */                }
/*Line 418 - 'AtomItemsControl.js' */            }
4000
function (start, end, step) {
/*Line 89 - 'Atom.js' */        var a = [];
/*Line 90 - 'Atom.js' */        step = step || 1;
/*Line 91 - 'Atom.js' */        for (var i = start; i <= end; i+=step) {
/*Line 92 - 'Atom.js' */            a.push({ label: i, value: i });
/*Line 93 - 'Atom.js' */        }
/*Line 94 - 'Atom.js' */        return a;
/*Line 95 - 'Atom.js' */    }
489317
function (e) {
/*Line 8 - 'AtomFrameView.js' */            var self = this;
/*Line 9 - 'AtomFrameView.js' */            $(e).addClass("atom-frame-view");
/*Line 10 - 'AtomFrameView.js' */            this._items = [];
/*Line 11 - 'AtomFrameView.js' */            this._layout = WebAtoms.AtomViewBoxLayout.defaultInstance;
/*Line 12 - 'AtomFrameView.js' */            this.backCommand = function () {
/*Line 13 - 'AtomFrameView.js' */                self.onBackCommand.apply(self, arguments);
/*Line 14 - 'AtomFrameView.js' */            };
/*Line 15 - 'AtomFrameView.js' */        }
783577
function (element, value) {
/*Line 103 - 'AtomControl.js' */        if (value) {
/*Line 104 - 'AtomControl.js' */            if (value.constructor === String) {
/*Line 105 - 'AtomControl.js' */                $(element).mask(value);
/*Line 106 - 'AtomControl.js' */            } else {
/*Line 107 - 'AtomControl.js' */                $(element).mask(value.mask, value.settings);
/*Line 108 - 'AtomControl.js' */            }
/*Line 109 - 'AtomControl.js' */        } else {
/*Line 110 - 'AtomControl.js' */            $(element).unmask();
/*Line 111 - 'AtomControl.js' */        }
/*Line 112 - 'AtomControl.js' */    }
893797
function (val) {
/*Line 133 - 'AtomUI.js' */        var n;
/*Line 134 - 'AtomUI.js' */        if (/^[0-9]+$/.test(val)) {
/*Line 135 - 'AtomUI.js' */            n = parseInt(val, 10);
/*Line 136 - 'AtomUI.js' */            if (!isNaN(n)) {
/*Line 137 - 'AtomUI.js' */                val = n;
/*Line 138 - 'AtomUI.js' */            }
/*Line 139 - 'AtomUI.js' */            return val;
/*Line 140 - 'AtomUI.js' */        }
/*Line 141 - 'AtomUI.js' */        if (/^[0-9]+\.[0-9]+/gi.test(val)) {
/*Line 142 - 'AtomUI.js' */            n = parseFloat(val);
/*Line 143 - 'AtomUI.js' */            if (!isNaN(n)) {
/*Line 144 - 'AtomUI.js' */                val = n;
/*Line 145 - 'AtomUI.js' */            }
/*Line 146 - 'AtomUI.js' */            return val;
/*Line 147 - 'AtomUI.js' */        }

/*Line 149 - 'AtomUI.js' */        if (/true/.test(val)) {
/*Line 150 - 'AtomUI.js' */            val = true;
/*Line 151 - 'AtomUI.js' */            return val;
/*Line 152 - 'AtomUI.js' */        }
/*Line 153 - 'AtomUI.js' */        if (/false/.test(val)) {
/*Line 154 - 'AtomUI.js' */            val = false;
/*Line 155 - 'AtomUI.js' */            return val;
/*Line 156 - 'AtomUI.js' */        }
/*Line 157 - 'AtomUI.js' */        return val;
/*Line 158 - 'AtomUI.js' */    }
439025
function () {
/*Line 74 - 'AtomWizard.js' */                $(this._element).addClass('atom-wizard');

/*Line 76 - 'AtomWizard.js' */                baseType.init.call(this);

/*Line 78 - 'AtomWizard.js' */                var _this = this;

/*Line 80 - 'AtomWizard.js' */                var vs = this._viewPresenter;

/*Line 82 - 'AtomWizard.js' */                this.goNextCommand = function (scope, sender, evt) {
/*Line 83 - 'AtomWizard.js' */                    if (_this.get_isLastStep()) {
/*Line 84 - 'AtomWizard.js' */                        _this.invokeAction(_this._next, evt);
/*Line 85 - 'AtomWizard.js' */                        AtomBinder.setValue(_this, "canMoveBack", false);
/*Line 86 - 'AtomWizard.js' */                    } else {
/*Line 87 - 'AtomWizard.js' */                        AtomBinder.setValue(_this, "currentStep", _this._currentStep + 1);
/*Line 88 - 'AtomWizard.js' */                    }
/*Line 89 - 'AtomWizard.js' */                };

/*Line 91 - 'AtomWizard.js' */                this.goPrevCommand = function () {
/*Line 92 - 'AtomWizard.js' */                    AtomBinder.setValue(_this, "currentStep", _this._currentStep - 1);
/*Line 93 - 'AtomWizard.js' */                };

/*Line 95 - 'AtomWizard.js' */                this.resetCommand = function () {
/*Line 96 - 'AtomWizard.js' */                    _this.createWizard();
/*Line 97 - 'AtomWizard.js' */                    AtomBinder.setValue(_this, "currentStep", 0);
/*Line 98 - 'AtomWizard.js' */                    AtomBinder.setValue(_this, "canMoveBack", true);
/*Line 99 - 'AtomWizard.js' */                };

/*Line 101 - 'AtomWizard.js' */                // create children...
/*Line 102 - 'AtomWizard.js' */                this.createWizard();

/*Line 104 - 'AtomWizard.js' */                this.nextCommand = function (scope, sender, evt) {
/*Line 105 - 'AtomWizard.js' */                    var child = vs.atomControl.get_selectedChild().atomControl;
/*Line 106 - 'AtomWizard.js' */                    if (child._next) {
/*Line 107 - 'AtomWizard.js' */                        child.invokeAction(child._next);
/*Line 108 - 'AtomWizard.js' */                        return;
/*Line 109 - 'AtomWizard.js' */                    } else {
/*Line 110 - 'AtomWizard.js' */                        _this.goNextCommand(scope, sender, evt);
/*Line 111 - 'AtomWizard.js' */                    }
/*Line 112 - 'AtomWizard.js' */                };

/*Line 114 - 'AtomWizard.js' */            }