/*Line 73 - 'AtomWizard.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' */            }
1119450
function () {

/*Line 57 - 'AtomDispatcher.js' */                //if (window.console) {
/*Line 58 - 'AtomDispatcher.js' */                //    window.console.log("Starting Web Atoms");
/*Line 59 - 'AtomDispatcher.js' */                //}

/*Line 61 - 'AtomDispatcher.js' */                var a = $('[data-atom-type],[atom-type]').first()[0];
/*Line 62 - 'AtomDispatcher.js' */                if (a.atomControl != undefined && a.atomControl != null)
/*Line 63 - 'AtomDispatcher.js' */                    return;
/*Line 64 - 'AtomDispatcher.js' */                var ct = AtomUI.getAtomType(a);
/*Line 65 - 'AtomDispatcher.js' */                $(a).removeAttr("atom-type");
/*Line 66 - 'AtomDispatcher.js' */                $(a).removeAttr("data-atom-type");
/*Line 67 - 'AtomDispatcher.js' */                var ctrl = new (WebAtoms[ct])(a);
/*Line 68 - 'AtomDispatcher.js' */                ctrl.setup();

/*Line 70 - 'AtomDispatcher.js' */            }
58311
function () {



/*Line 113 - 'AtomWindow.js' */                $(this._element).addClass("atom-window-placeholder");
/*Line 114 - 'AtomWindow.js' */                baseType.init.call(this);

/*Line 116 - 'AtomWindow.js' */                var _this = this;
/*Line 117 - 'AtomWindow.js' */                this.closeCommand = function () {
/*Line 118 - 'AtomWindow.js' */                    _this.onCloseCommand.apply(_this, arguments);
/*Line 119 - 'AtomWindow.js' */                };

/*Line 121 - 'AtomWindow.js' */                this.openCommand = function () {
/*Line 122 - 'AtomWindow.js' */                    _this.openWindow.apply(_this, arguments);
/*Line 123 - 'AtomWindow.js' */                };

/*Line 125 - 'AtomWindow.js' */                WebAtoms.dispatcher.callLater(function () {
/*Line 126 - 'AtomWindow.js' */                    var e = _this._element;
/*Line 127 - 'AtomWindow.js' */                    if (!e._logicalParent) {
/*Line 128 - 'AtomWindow.js' */                        e._logicalParent = e.parentNode;
/*Line 129 - 'AtomWindow.js' */                        $(e).remove();
/*Line 130 - 'AtomWindow.js' */                        document.body.appendChild(e);
/*Line 131 - 'AtomWindow.js' */                    }
/*Line 132 - 'AtomWindow.js' */                });
/*Line 133 - 'AtomWindow.js' */            }
305384
function () {

/*Line 44 - 'AtomForm.js' */                if (!this.isValid()) {
/*Line 45 - 'AtomForm.js' */                    return;
/*Line 46 - 'AtomForm.js' */                }

/*Line 48 - 'AtomForm.js' */                var data = this.preparePostData();
/*Line 49 - 'AtomForm.js' */                var url = AtomPromise.getUrl(this._postUrl);
/*Line 50 - 'AtomForm.js' */                AtomPromise.json(url, { _tv: Atom.time() }, { type: "POST", data: data }).then(this._success).invoke();
/*Line 51 - 'AtomForm.js' */            }
914806
function (element, value) {
/*Line 83 - 'AtomControl.js' */        if (element.checked != value) {
/*Line 84 - 'AtomControl.js' */            element.checked = value ? true : false;
/*Line 85 - 'AtomControl.js' */        }
/*Line 86 - 'AtomControl.js' */    }
254783
function () {
/*Line 57 - 'AtomDateListBox.js' */                base.init.apply(this);
/*Line 58 - 'AtomDateListBox.js' */                var _this = this;
/*Line 59 - 'AtomDateListBox.js' */                this.toggleDateCommand = function (scope, sender) {
/*Line 60 - 'AtomDateListBox.js' */                    _this.toggleDate.apply(_this, arguments);
/*Line 61 - 'AtomDateListBox.js' */                };
/*Line 62 - 'AtomDateListBox.js' */            }
131591
function (v) {
/*Line 118 - 'AtomTimePicker.js' */                this._updater.update(function () {
/*Line 119 - 'AtomTimePicker.js' */                    if (this._value == v)
/*Line 120 - 'AtomTimePicker.js' */                        return;
/*Line 121 - 'AtomTimePicker.js' */                    if (!timeRegex.test(v)) {
/*Line 122 - 'AtomTimePicker.js' */                        throw new Error("Unknown time format, expecting ##:## AM");
/*Line 123 - 'AtomTimePicker.js' */                    }
/*Line 124 - 'AtomTimePicker.js' */                    this._value = v;
/*Line 125 - 'AtomTimePicker.js' */                    v = v.split(' ');
/*Line 126 - 'AtomTimePicker.js' */                    this._time = v[0];
/*Line 127 - 'AtomTimePicker.js' */                    this._ap = (v[1]).toUpperCase();
/*Line 128 - 'AtomTimePicker.js' */                    this.refreshProperties();
/*Line 129 - 'AtomTimePicker.js' */                });
/*Line 130 - 'AtomTimePicker.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' */    }
964442
function () {
/*Line 249 - 'AtomApplication.js' */                base.onCreated.call(this);

/*Line 251 - 'AtomApplication.js' */                if (this._next) {
/*Line 252 - 'AtomApplication.js' */                    WebAtoms.dispatcher.callLater(function () {
/*Line 253 - 'AtomApplication.js' */                        window.atomApplication.invokeAction(window.atomApplication._next);
/*Line 254 - 'AtomApplication.js' */                    });
/*Line 255 - 'AtomApplication.js' */                }
/*Line 256 - 'AtomApplication.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' */                }
731176
function () {

/*Line 47 - 'AtomForm.js' */                //if (!this.isValid()) {
/*Line 48 - 'AtomForm.js' */                //    return;
/*Line 49 - 'AtomForm.js' */                //}

/*Line 51 - 'AtomForm.js' */                this.validate();

/*Line 53 - 'AtomForm.js' */                var errors = this.get_errors();
/*Line 54 - 'AtomForm.js' */                if (errors.length) {
/*Line 55 - 'AtomForm.js' */                    var labels = document.getElementsByTagName("label");
/*Line 56 - 'AtomForm.js' */                    this.invokeAction({
/*Line 57 - 'AtomForm.js' */                        localWindow: {
/*Line 58 - 'AtomForm.js' */                            path: this.getTemplate("errorTemplate"),
/*Line 59 - 'AtomForm.js' */                            prop: {
/*Line 60 - 'AtomForm.js' */                                data: errors.map(function (i) {
/*Line 61 - 'AtomForm.js' */                                    var l = Atom.query(labels).firstOrDefault({ control: i.value });
/*Line 62 - 'AtomForm.js' */                                    if (l) {
/*Line 63 - 'AtomForm.js' */                                        i.label = $(l).text() + " (" + i.label + ")";
/*Line 64 - 'AtomForm.js' */                                    }
/*Line 65 - 'AtomForm.js' */                                    return i;
/*Line 66 - 'AtomForm.js' */                                }),
/*Line 67 - 'AtomForm.js' */                                title: "Form Errors"
/*Line 68 - 'AtomForm.js' */                            }
/*Line 69 - 'AtomForm.js' */                        }
/*Line 70 - 'AtomForm.js' */                    });
/*Line 71 - 'AtomForm.js' */                    return;
/*Line 72 - 'AtomForm.js' */                }

/*Line 74 - 'AtomForm.js' */                var data = this.preparePostData();
/*Line 75 - 'AtomForm.js' */                var url = AtomPromise.getUrl(this._postUrl);
/*Line 76 - 'AtomForm.js' */                var p = AtomPromise.json(url, { _tv: Atom.time() }, { type: this.get_method(), data: data });
/*Line 77 - 'AtomForm.js' */                p.then(this._success);
/*Line 78 - 'AtomForm.js' */                var errorNext = this._errorNext;
/*Line 79 - 'AtomForm.js' */                if (errorNext) {
/*Line 80 - 'AtomForm.js' */                    var self = this;
/*Line 81 - 'AtomForm.js' */                    p.failed(function (pr) {
/*Line 82 - 'AtomForm.js' */                        self.invokeAction(errorNext);
/*Line 83 - 'AtomForm.js' */                    });
/*Line 84 - 'AtomForm.js' */                }
/*Line 85 - 'AtomForm.js' */                p.invoke();
/*Line 86 - 'AtomForm.js' */            }
865511
function (v) {
/*Line 83 - 'AtomItemsControl.js' */                this._value = v;
/*Line 84 - 'AtomItemsControl.js' */                if (v === undefined || v === null) {
/*Line 85 - 'AtomItemsControl.js' */                    // reset...
/*Line 86 - 'AtomItemsControl.js' */                    AtomBinder.clear(this._selectedItems);
/*Line 87 - 'AtomItemsControl.js' */                    return;
/*Line 88 - 'AtomItemsControl.js' */                }
/*Line 89 - 'AtomItemsControl.js' */                var dataItems = this.get_dataItems();
/*Line 90 - 'AtomItemsControl.js' */                if (this._allowMultipleSelection && this._valueSeparator) {
/*Line 91 - 'AtomItemsControl.js' */                    if (v.constructor != String) {
/*Line 92 - 'AtomItemsControl.js' */                        v = "" + v;
/*Line 93 - 'AtomItemsControl.js' */                    }
/*Line 94 - 'AtomItemsControl.js' */                    v = AtomArray.split(v, this._valueSeparator);
/*Line 95 - 'AtomItemsControl.js' */                } else {
/*Line 96 - 'AtomItemsControl.js' */                    v = [v];
/*Line 97 - 'AtomItemsControl.js' */                }
/*Line 98 - 'AtomItemsControl.js' */                var items = AtomArray.intersect(dataItems, this._valuePath, v);
/*Line 99 - 'AtomItemsControl.js' */                this._selectedItems.length = 0;
/*Line 100 - 'AtomItemsControl.js' */                var ae = new AtomEnumerator(items);
/*Line 101 - 'AtomItemsControl.js' */                while (ae.next()) {
/*Line 102 - 'AtomItemsControl.js' */                    this._selectedItems.push(ae.current());
/*Line 103 - 'AtomItemsControl.js' */                }
/*Line 104 - 'AtomItemsControl.js' */                AtomBinder.refreshItems(this._selectedItems);
/*Line 105 - 'AtomItemsControl.js' */            }
1209216
function () {
/*Line 10 - 'AtomDispatcher.js' */            this._paused = false;
/*Line 11 - 'AtomDispatcher.js' */            this.queue = [];
/*Line 12 - 'AtomDispatcher.js' */            this.onTimeout = function () {
/*Line 13 - 'AtomDispatcher.js' */                if (this._paused)
/*Line 14 - 'AtomDispatcher.js' */                    return;
/*Line 15 - 'AtomDispatcher.js' */                if (this.queue.length == 0) {
/*Line 16 - 'AtomDispatcher.js' */                    var app = atomApplication._element;
/*Line 17 - 'AtomDispatcher.js' */                    if (app.style.visibility == "hidden" || $(app).css("visibility") == "hidden") {
/*Line 18 - 'AtomDispatcher.js' */                        app.style.visibility = "visible";

/*Line 20 - 'AtomDispatcher.js' */                        app.atomControl.updateUI();
/*Line 21 - 'AtomDispatcher.js' */                    }
/*Line 22 - 'AtomDispatcher.js' */                    return;
/*Line 23 - 'AtomDispatcher.js' */                }
/*Line 24 - 'AtomDispatcher.js' */                var item = this.queue.shift();
/*Line 25 - 'AtomDispatcher.js' */                //try{
/*Line 26 - 'AtomDispatcher.js' */                item();
/*Line 27 - 'AtomDispatcher.js' */                //} catch (ex) {

/*Line 29 - 'AtomDispatcher.js' */                //    if (window.console) {
/*Line 30 - 'AtomDispatcher.js' */                //        window.console.log(item.toString());
/*Line 31 - 'AtomDispatcher.js' */                //        window.console.log(JSON.stringify(ex));
/*Line 32 - 'AtomDispatcher.js' */                //    }
/*Line 33 - 'AtomDispatcher.js' */                //}
/*Line 34 - 'AtomDispatcher.js' */                window.setTimeout(this._onTimeout, 1);
/*Line 35 - 'AtomDispatcher.js' */            };
/*Line 36 - 'AtomDispatcher.js' */            //this._onTimeout = Function.createDelegate(this, this.onTimeout);
/*Line 37 - 'AtomDispatcher.js' */            var _this = this;
/*Line 38 - 'AtomDispatcher.js' */            this._onTimeout = function () {
/*Line 39 - 'AtomDispatcher.js' */                _this.onTimeout();
/*Line 40 - 'AtomDispatcher.js' */            };
/*Line 41 - 'AtomDispatcher.js' */        }
926665
function (target, key) {
/*Line 55 - 'AtomBindingHelper.js' */        var handlers = AtomBinder.get_WatchHandler(target, key);
/*Line 56 - 'AtomBindingHelper.js' */        if (handlers == undefined || handlers == null)
/*Line 57 - 'AtomBindingHelper.js' */            return;
/*Line 58 - 'AtomBindingHelper.js' */        var ae = new AtomEnumerator(handlers);
/*Line 59 - 'AtomBindingHelper.js' */        while (ae.next()) {
/*Line 60 - 'AtomBindingHelper.js' */            var item = ae.current();
/*Line 61 - 'AtomBindingHelper.js' */            item(target, key);
/*Line 62 - 'AtomBindingHelper.js' */        }

/*Line 64 - 'AtomBindingHelper.js' */        if (target._$_watcher) {
/*Line 65 - 'AtomBindingHelper.js' */            target._$_watcher._onRefreshValue(target, key);
/*Line 66 - 'AtomBindingHelper.js' */        }
/*Line 67 - 'AtomBindingHelper.js' */    }
625281
function (parent) {
/*Line 567 - 'AtomControl.js' */                if (!parent)
/*Line 568 - 'AtomControl.js' */                    parent = this._element;
/*Line 569 - 'AtomControl.js' */                var ae = new ChildEnumerator(parent);
/*Line 570 - 'AtomControl.js' */                while (ae.next()) {
/*Line 571 - 'AtomControl.js' */                    var child = ae.current();
/*Line 572 - 'AtomControl.js' */                    if (child.atomControl) {
/*Line 573 - 'AtomControl.js' */                        child.atomControl.updateUI();
/*Line 574 - 'AtomControl.js' */                        continue;
/*Line 575 - 'AtomControl.js' */                    }
/*Line 576 - 'AtomControl.js' */                    this.updateChildUI(child);
/*Line 577 - 'AtomControl.js' */                }
/*Line 578 - 'AtomControl.js' */            }
762351
function () {
/*Line 112 - 'AtomFormField.js' */                this._validate = true;
/*Line 113 - 'AtomFormField.js' */                if (!(this._required || this._regex || this._dataType))
/*Line 114 - 'AtomFormField.js' */                    return this._isValid === undefined ? true : this._isValid;



/*Line 118 - 'AtomFormField.js' */                if (this._isValid) {
/*Line 119 - 'AtomFormField.js' */                    AtomBinder.setValue(this, "error", "");
/*Line 120 - 'AtomFormField.js' */                    if (this._isValidSet) {
/*Line 121 - 'AtomFormField.js' */                        return true;
/*Line 122 - 'AtomFormField.js' */                    }
/*Line 123 - 'AtomFormField.js' */                }

/*Line 125 - 'AtomFormField.js' */                this._isValid = true;

/*Line 127 - 'AtomFormField.js' */                if (this._fieldValue !== undefined) {
/*Line 128 - 'AtomFormField.js' */                    this.validateValue(this._fieldValue);
/*Line 129 - 'AtomFormField.js' */                } else {
/*Line 130 - 'AtomFormField.js' */                    // check validity..
/*Line 131 - 'AtomFormField.js' */                    this.validateChildren(this._element);
/*Line 132 - 'AtomFormField.js' */                }
/*Line 133 - 'AtomFormField.js' */                if (this._isValid) {
/*Line 134 - 'AtomFormField.js' */                    AtomBinder.setValue(this, "error", "");
/*Line 135 - 'AtomFormField.js' */                }
/*Line 136 - 'AtomFormField.js' */                return this._isValid;
/*Line 137 - 'AtomFormField.js' */            }
634386
function () {
/*Line 104 - 'AtomListBox.js' */                var e = this._element;
/*Line 105 - 'AtomListBox.js' */                if (/select/i.test(e.tagName)) {
/*Line 106 - 'AtomListBox.js' */                    var i = this.get_selectedIndex();
/*Line 107 - 'AtomListBox.js' */                    if (e.selectedIndex != i) {
/*Line 108 - 'AtomListBox.js' */                        WebAtoms.dispatcher.callLater(function () {
/*Line 109 - 'AtomListBox.js' */                            e.selectedIndex = i;
/*Line 110 - 'AtomListBox.js' */                        });
/*Line 111 - 'AtomListBox.js' */                    }
/*Line 112 - 'AtomListBox.js' */                } else {
/*Line 113 - 'AtomListBox.js' */                    baseType.updateChildSelections.apply(this, arguments);
/*Line 114 - 'AtomListBox.js' */                }
/*Line 115 - 'AtomListBox.js' */            }