/*Line 89 - 'AtomListBox.js'
356856
function () {

/*Line 91 - 'AtomListBox.js' */                this.setClass();

/*Line 93 - 'AtomListBox.js' */                baseType.init.call(this);
/*Line 94 - 'AtomListBox.js' */                var _this = this;

/*Line 96 - 'AtomListBox.js' */                this.selectCommand = function () {
/*Line 97 - 'AtomListBox.js' */                    _this.onSelectItem.apply(_this, arguments);
/*Line 98 - 'AtomListBox.js' */                };
/*Line 99 - 'AtomListBox.js' */                this.selectAllCommand = function () {
/*Line 100 - 'AtomListBox.js' */                    _this.set_selectAll(true);
/*Line 101 - 'AtomListBox.js' */                };
/*Line 102 - 'AtomListBox.js' */                this.clearSelectionCommand = function () {
/*Line 103 - 'AtomListBox.js' */                    _this.set_selectedIndex(-1);
/*Line 104 - 'AtomListBox.js' */                };
/*Line 105 - 'AtomListBox.js' */            }
847345
function () {
/*Line 138 - 'AtomItemsControl.js' */                if (!this._onUIChanged)
/*Line 139 - 'AtomItemsControl.js' */                    return;

/*Line 141 - 'AtomItemsControl.js' */                if (this._confirm) {
/*Line 142 - 'AtomItemsControl.js' */                    if (!confirm(this._confirmMessage))
/*Line 143 - 'AtomItemsControl.js' */                        return;
/*Line 144 - 'AtomItemsControl.js' */                }

/*Line 146 - 'AtomItemsControl.js' */                if (!this._postUrl) {
/*Line 147 - 'AtomItemsControl.js' */                    this.invokeAction(this._next);
/*Line 148 - 'AtomItemsControl.js' */                    return;
/*Line 149 - 'AtomItemsControl.js' */                }

/*Line 151 - 'AtomItemsControl.js' */                var data = this.get_postData();

/*Line 153 - 'AtomItemsControl.js' */                if (data === null || data === undefined)
/*Line 154 - 'AtomItemsControl.js' */                    return;

/*Line 156 - 'AtomItemsControl.js' */                data = AtomBinder.getClone(data);

/*Line 158 - 'AtomItemsControl.js' */                var caller = this;
/*Line 159 - 'AtomItemsControl.js' */                var p = AtomPromise.json(this._postUrl, null, { type: "POST", data: data });
/*Line 160 - 'AtomItemsControl.js' */                p.then(function () {
/*Line 161 - 'AtomItemsControl.js' */                    caller.invokeNext();
/*Line 162 - 'AtomItemsControl.js' */                });
/*Line 163 - 'AtomItemsControl.js' */                p.invoke();
/*Line 164 - 'AtomItemsControl.js' */            }
297672
function (e) {
/*Line 1151 - 'AtomControl.js' */                var ae = new ChildEnumerator(e);
/*Line 1152 - 'AtomControl.js' */                var item;
/*Line 1153 - 'AtomControl.js' */                var ctrl;

/*Line 1155 - 'AtomControl.js' */                var remove = [];

/*Line 1157 - 'AtomControl.js' */                while (ae.next()) {
/*Line 1158 - 'AtomControl.js' */                    item = ae.current();

/*Line 1160 - 'AtomControl.js' */                    if (item.nodeName == "SCRIPT") {

/*Line 1162 - 'AtomControl.js' */                        var s = $.trim(item.innerHTML);
/*Line 1163 - 'AtomControl.js' */                        if (/^\(\{/.test(s) && /\}\)$/.test(s)) {
/*Line 1164 - 'AtomControl.js' */                            try {
/*Line 1165 - 'AtomControl.js' */                                s = (new Function("return " + s + ";"))()
/*Line 1166 - 'AtomControl.js' */                                this.set_scope(s);
/*Line 1167 - 'AtomControl.js' */                            } catch (ex) {
/*Line 1168 - 'AtomControl.js' */                                log(JSON.stringify(ex));
/*Line 1169 - 'AtomControl.js' */                                Atom.alert(JSON.stringify(ex));
/*Line 1170 - 'AtomControl.js' */                            }

/*Line 1172 - 'AtomControl.js' */                        }
/*Line 1173 - 'AtomControl.js' */                        remove.push(item);
/*Line 1174 - 'AtomControl.js' */                        continue;

/*Line 1176 - 'AtomControl.js' */                    }

/*Line 1178 - 'AtomControl.js' */                    ctrl = item.atomControl;
/*Line 1179 - 'AtomControl.js' */                    if (ctrl) {
/*Line 1180 - 'AtomControl.js' */                        ctrl.init();
/*Line 1181 - 'AtomControl.js' */                    } else {
/*Line 1182 - 'AtomControl.js' */                        this.initChildren(item);
/*Line 1183 - 'AtomControl.js' */                    }
/*Line 1184 - 'AtomControl.js' */                }

/*Line 1186 - 'AtomControl.js' */                ae = new AtomEnumerator(remove);
/*Line 1187 - 'AtomControl.js' */                while (ae.next()) {
/*Line 1188 - 'AtomControl.js' */                    e.removeChild(ae.current());
/*Line 1189 - 'AtomControl.js' */                }
/*Line 1190 - 'AtomControl.js' */            }
102445
function () {
/*Line 416 - 'AtomItemsControl.js' */                if (this.scrollTimeout) {
/*Line 417 - 'AtomItemsControl.js' */                    clearTimeout(this.scrollTimeout);
/*Line 418 - 'AtomItemsControl.js' */                }
/*Line 419 - 'AtomItemsControl.js' */                var _this = this;
/*Line 420 - 'AtomItemsControl.js' */                this.scrollTimeout = setTimeout(function () {
/*Line 421 - 'AtomItemsControl.js' */                    _this.scrollTimeout = 0;
/*Line 422 - 'AtomItemsControl.js' */                    _this.onCollectionChangedInternal("refresh", -1, null);
/*Line 423 - 'AtomItemsControl.js' */                }, 1000);
/*Line 424 - 'AtomItemsControl.js' */            }
1216303
function (element) {
/*Line 435 - 'AtomControl.js' */                var ae = new ChildEnumerator(element);
/*Line 436 - 'AtomControl.js' */                while (ae.next()) {
/*Line 437 - 'AtomControl.js' */                    var child = ae.current();
/*Line 438 - 'AtomControl.js' */                    if (child.atomControl && child.atomControl._created) {
/*Line 439 - 'AtomControl.js' */                        var ctrl = child.atomControl;
/*Line 440 - 'AtomControl.js' */                        if (ctrl._data !== undefined)
/*Line 441 - 'AtomControl.js' */                            continue;
/*Line 442 - 'AtomControl.js' */                        AtomBinder.refreshValue(ctrl, "data");
/*Line 443 - 'AtomControl.js' */                        ctrl.mergeData();
/*Line 444 - 'AtomControl.js' */                    }
/*Line 445 - 'AtomControl.js' */                    this.updateChildBindings(child);
/*Line 446 - 'AtomControl.js' */                }
/*Line 447 - 'AtomControl.js' */            }
1067038
function (h, m) {
/*Line 89 - 'AtomTimePicker.js' */                var ap = 'AM';
/*Line 90 - 'AtomTimePicker.js' */                if (h > 12) {
/*Line 91 - 'AtomTimePicker.js' */                    h -= 12;
/*Line 92 - 'AtomTimePicker.js' */                    ap = "PM";
/*Line 93 - 'AtomTimePicker.js' */                }
/*Line 94 - 'AtomTimePicker.js' */                h = "" + h;
/*Line 95 - 'AtomTimePicker.js' */                if (h.length == 1) {
/*Line 96 - 'AtomTimePicker.js' */                    h = "0" + h;
/*Line 97 - 'AtomTimePicker.js' */                }
/*Line 98 - 'AtomTimePicker.js' */                m = m + "";
/*Line 99 - 'AtomTimePicker.js' */                if (m.length == 1) {
/*Line 100 - 'AtomTimePicker.js' */                    m = "0" + m;
/*Line 101 - 'AtomTimePicker.js' */                }
/*Line 102 - 'AtomTimePicker.js' */                AtomBinder.setValue(this, "value", h + ":" + m + " " + ap);
/*Line 103 - 'AtomTimePicker.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' */            }
1270754
function (e) {

/*Line 101 - 'AtomAutoCompleteBox.js' */                AtomBinder.setValue(this, "isPopupOpen", true);

/*Line 103 - 'AtomAutoCompleteBox.js' */                switch (e.keyCode) {
/*Line 104 - 'AtomAutoCompleteBox.js' */                    case 27:
/*Line 105 - 'AtomAutoCompleteBox.js' */                        AtomBinder.setValue(this, "keyPressed", false);
/*Line 106 - 'AtomAutoCompleteBox.js' */                        this.restoreSelection();
/*Line 107 - 'AtomAutoCompleteBox.js' */                        return;
/*Line 108 - 'AtomAutoCompleteBox.js' */                    case 13:
/*Line 109 - 'AtomAutoCompleteBox.js' */                        AtomBinder.setValue(this, "keyPressed", false);
/*Line 110 - 'AtomAutoCompleteBox.js' */                        AtomBinder.setValue(this, "isPopupOpen", false);
/*Line 111 - 'AtomAutoCompleteBox.js' */                        this._backupValue = this.get_value();
/*Line 112 - 'AtomAutoCompleteBox.js' */                        this.refreshLabel();
/*Line 113 - 'AtomAutoCompleteBox.js' */                        this._backupLabel = this.get_displayLabel();
/*Line 114 - 'AtomAutoCompleteBox.js' */                        return AtomUI.cancelEvent(e);
/*Line 115 - 'AtomAutoCompleteBox.js' */                    case 37:
/*Line 116 - 'AtomAutoCompleteBox.js' */                        // Left
/*Line 117 - 'AtomAutoCompleteBox.js' */                        break;
/*Line 118 - 'AtomAutoCompleteBox.js' */                    case 38:
/*Line 119 - 'AtomAutoCompleteBox.js' */                        // up
/*Line 120 - 'AtomAutoCompleteBox.js' */                        AtomBinder.setValue(this, "keyPressed", false);
/*Line 121 - 'AtomAutoCompleteBox.js' */                        this.moveSelection(true);
/*Line 122 - 'AtomAutoCompleteBox.js' */                        return;
/*Line 123 - 'AtomAutoCompleteBox.js' */                    case 39:
/*Line 124 - 'AtomAutoCompleteBox.js' */                        // right
/*Line 125 - 'AtomAutoCompleteBox.js' */                        break;
/*Line 126 - 'AtomAutoCompleteBox.js' */                    case 40:
/*Line 127 - 'AtomAutoCompleteBox.js' */                        AtomBinder.setValue(this, "keyPressed", false);
/*Line 128 - 'AtomAutoCompleteBox.js' */                        this.moveSelection(false);
/*Line 129 - 'AtomAutoCompleteBox.js' */                        return;
/*Line 130 - 'AtomAutoCompleteBox.js' */                    default:
/*Line 131 - 'AtomAutoCompleteBox.js' */                        // try selecting complete word...
/*Line 132 - 'AtomAutoCompleteBox.js' */                        var caller = this;
/*Line 133 - 'AtomAutoCompleteBox.js' */                        this.dispatcher.callLater(function () {
/*Line 134 - 'AtomAutoCompleteBox.js' */                            caller.trySelect();
/*Line 135 - 'AtomAutoCompleteBox.js' */                        });
/*Line 136 - 'AtomAutoCompleteBox.js' */                        break;
/*Line 137 - 'AtomAutoCompleteBox.js' */                }

/*Line 139 - 'AtomAutoCompleteBox.js' */                if (this.oldTimeout) {
/*Line 140 - 'AtomAutoCompleteBox.js' */                    clearTimeout(this.oldTimeout);
/*Line 141 - 'AtomAutoCompleteBox.js' */                }
/*Line 142 - 'AtomAutoCompleteBox.js' */                var _this = this;
/*Line 143 - 'AtomAutoCompleteBox.js' */                this.oldTimeout = setTimeout(function () {
/*Line 144 - 'AtomAutoCompleteBox.js' */                    AtomBinder.setValue(_this, "keyPressed", true);
/*Line 145 - 'AtomAutoCompleteBox.js' */                }, 500);

/*Line 147 - 'AtomAutoCompleteBox.js' */            }
748236
function (v) {
/*Line 86 - 'AtomDateField.js' */                if (this._set_timeCalled)
/*Line 87 - 'AtomDateField.js' */                    return;
/*Line 88 - 'AtomDateField.js' */                this._set_timeCalled = true;
/*Line 89 - 'AtomDateField.js' */                if (v) {
/*Line 90 - 'AtomDateField.js' */                    this._time = v;
/*Line 91 - 'AtomDateField.js' */                    var d = AtomDate.setTime(this.get_value(), v);
/*Line 92 - 'AtomDateField.js' */                    AtomBinder.setValue(this, "value", d);
/*Line 93 - 'AtomDateField.js' */                }
/*Line 94 - 'AtomDateField.js' */                this._set_timeCalled = false;
/*Line 95 - 'AtomDateField.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' */            }
1136339
function () {

/*Line 31 - 'AtomAutoPostForm.js' */                this._pushPostTimeout = 0;

/*Line 33 - 'AtomAutoPostForm.js' */                // already submitted?
/*Line 34 - 'AtomAutoPostForm.js' */                if (this._isBusy)
/*Line 35 - 'AtomAutoPostForm.js' */                    return;

/*Line 37 - 'AtomAutoPostForm.js' */                // for all nested children...
/*Line 38 - 'AtomAutoPostForm.js' */                if (!this.isValid()) {
/*Line 39 - 'AtomAutoPostForm.js' */                    //alert("Invalid Form");
/*Line 40 - 'AtomAutoPostForm.js' */                    return;
/*Line 41 - 'AtomAutoPostForm.js' */                }

/*Line 43 - 'AtomAutoPostForm.js' */                var data = this.preparePostData();
/*Line 44 - 'AtomAutoPostForm.js' */                if (!data)
/*Line 45 - 'AtomAutoPostForm.js' */                    return;

/*Line 47 - 'AtomAutoPostForm.js' */                var str = JSON.stringify(AtomBinder.getClone(data));
/*Line 48 - 'AtomAutoPostForm.js' */                if (this._cachedData) {
/*Line 49 - 'AtomAutoPostForm.js' */                    if (str == this._cachedData)
/*Line 50 - 'AtomAutoPostForm.js' */                        return;
/*Line 51 - 'AtomAutoPostForm.js' */                }
/*Line 52 - 'AtomAutoPostForm.js' */                this._cachedData = str;

/*Line 54 - 'AtomAutoPostForm.js' */                var self = this;

/*Line 56 - 'AtomAutoPostForm.js' */                var url = AtomPromise.getUrl(this._postUrl);

/*Line 58 - 'AtomAutoPostForm.js' */                //data = AtomBinder.getClone(data);

/*Line 60 - 'AtomAutoPostForm.js' */                //this.invokeAjax(url, { type: "POST", data: data, success: self._success });
/*Line 61 - 'AtomAutoPostForm.js' */                var ap = AtomPromise.json(url, null, { type: "POST", data: data }).then(self._success);
/*Line 62 - 'AtomAutoPostForm.js' */                ap.failed(function () {
/*Line 63 - 'AtomAutoPostForm.js' */                    self._isBusy = false;
/*Line 64 - 'AtomAutoPostForm.js' */                    self._postError = ap.error.msg;
/*Line 65 - 'AtomAutoPostForm.js' */                    AtomBinder.refreshValue(self, "isBusy");
/*Line 66 - 'AtomAutoPostForm.js' */                    AtomBinder.refreshValue(self, "postError");
/*Line 67 - 'AtomAutoPostForm.js' */                });
/*Line 68 - 'AtomAutoPostForm.js' */                ap.showProgress(false);
/*Line 69 - 'AtomAutoPostForm.js' */                ap.showError(false);
/*Line 70 - 'AtomAutoPostForm.js' */                ap.invoke();
/*Line 71 - 'AtomAutoPostForm.js' */            }
400620
function (e) {
/*Line 61 - 'AtomFormField.js' */                var ae = new ChildEnumerator(e);
/*Line 62 - 'AtomFormField.js' */                while (ae.next()) {
/*Line 63 - 'AtomFormField.js' */                    var child = ae.current();

/*Line 65 - 'AtomFormField.js' */                    if (child.atomControl) {
/*Line 66 - 'AtomFormField.js' */                        this.validateValue(AtomBinder.getValue(child.atomControl, "value"));
/*Line 67 - 'AtomFormField.js' */                    } else {
/*Line 68 - 'AtomFormField.js' */                        if (/input|select|textarea/gi.test(child.nodeName)) {
/*Line 69 - 'AtomFormField.js' */                            this.validateValue($(child).val());
/*Line 70 - 'AtomFormField.js' */                        } else {
/*Line 71 - 'AtomFormField.js' */                            this.validateChildren(child);
/*Line 72 - 'AtomFormField.js' */                        }
/*Line 73 - 'AtomFormField.js' */                    }
/*Line 74 - 'AtomFormField.js' */                }
/*Line 75 - 'AtomFormField.js' */            }
145385
function (scope, sender, event) {
/*Line 71 - 'AtomListBox.js' */                var target = event ? event.target : null;
/*Line 72 - 'AtomListBox.js' */                var element = this._itemsPresenter;
/*Line 73 - 'AtomListBox.js' */                var childElement = target || sender._element;
/*Line 74 - 'AtomListBox.js' */                while (childElement.parentNode != null && childElement.parentNode != element)
/*Line 75 - 'AtomListBox.js' */                    childElement = childElement.parentNode;
/*Line 76 - 'AtomListBox.js' */                if (childElement == document) {
/*Line 77 - 'AtomListBox.js' */                    //console.log("listbox clicked outside");
/*Line 78 - 'AtomListBox.js' */                    return;
/*Line 79 - 'AtomListBox.js' */                }
/*Line 80 - 'AtomListBox.js' */                var dataItem = childElement;
/*Line 81 - 'AtomListBox.js' */                if (this.hasItems()) {
/*Line 82 - 'AtomListBox.js' */                    dataItem = childElement.atomControl.get_data();
/*Line 83 - 'AtomListBox.js' */                }

/*Line 85 - 'AtomListBox.js' */                this.toggleSelection(dataItem);

/*Line 87 - 'AtomListBox.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' */                }
1050745
function (element) {
/*Line 13 - 'AtomTableLayout.js' */                var ae = new AtomEnumerator($(element).children());
/*Line 14 - 'AtomTableLayout.js' */                var item;

/*Line 16 - 'AtomTableLayout.js' */                var left = 0;
/*Line 17 - 'AtomTableLayout.js' */                var top = 0;

/*Line 19 - 'AtomTableLayout.js' */                var maxRows = Math.ceil(ae._array.length / this._columns) - 1;
/*Line 20 - 'AtomTableLayout.js' */                var rows = maxRows;

/*Line 22 - 'AtomTableLayout.js' */                var width = this._columns * this._cellWidth;
/*Line 23 - 'AtomTableLayout.js' */                var height = this._cellHeight * (maxRows + 1);

/*Line 25 - 'AtomTableLayout.js' */                element.style.position = "relative";
/*Line 26 - 'AtomTableLayout.js' */                element.style.width = width + "px";
/*Line 27 - 'AtomTableLayout.js' */                element.style.height = height + "px";

/*Line 29 - 'AtomTableLayout.js' */                element.maxRows = maxRows;

/*Line 31 - 'AtomTableLayout.js' */                while (ae.next()) {
/*Line 32 - 'AtomTableLayout.js' */                    item = ae.current();

/*Line 34 - 'AtomTableLayout.js' */                    item.style.position = "absolute";
/*Line 35 - 'AtomTableLayout.js' */                    item.style.left = left + "px";
/*Line 36 - 'AtomTableLayout.js' */                    item.style.top = top + "px";

/*Line 38 - 'AtomTableLayout.js' */                    item.style.width = this._cellWidth + "px";

/*Line 40 - 'AtomTableLayout.js' */                    if (rows <= 0) {
/*Line 41 - 'AtomTableLayout.js' */                        rows = maxRows;
/*Line 42 - 'AtomTableLayout.js' */                        left += this._cellWidth + 10;
/*Line 43 - 'AtomTableLayout.js' */                        top = 0;
/*Line 44 - 'AtomTableLayout.js' */                    } else {
/*Line 45 - 'AtomTableLayout.js' */                        rows--;
/*Line 46 - 'AtomTableLayout.js' */                        top += this._cellHeight;
/*Line 47 - 'AtomTableLayout.js' */                    }
/*Line 48 - 'AtomTableLayout.js' */                }
/*Line 49 - 'AtomTableLayout.js' */            }
916760
function () {
/*Line 30 - 'AtomFormGrid.js' */                var element = this._element;
/*Line 31 - 'AtomFormGrid.js' */                $(element).addClass("atom-form-grid");

/*Line 33 - 'AtomFormGrid.js' */                var children = $(element).children();

/*Line 35 - 'AtomFormGrid.js' */                var ae = new AtomEnumerator(children);

/*Line 37 - 'AtomFormGrid.js' */                AtomUI.removeAllChildren(element);

/*Line 39 - 'AtomFormGrid.js' */                var container = document.createElement("DIV");
/*Line 40 - 'AtomFormGrid.js' */                //container.setAttribute("style-width", "[$owner.controlWidth]");
/*Line 41 - 'AtomFormGrid.js' */                $(container).addClass("atom-form-grid-container");

/*Line 43 - 'AtomFormGrid.js' */                element.appendChild(container);

/*Line 45 - 'AtomFormGrid.js' */                var minLabelWidth = AtomUI.attr(this._element, "atom-min-label-width");

/*Line 47 - 'AtomFormGrid.js' */                this.getTemplate("fieldTemplate");

/*Line 49 - 'AtomFormGrid.js' */                while (ae.next()) {
/*Line 50 - 'AtomFormGrid.js' */                    var item = ae.current();

/*Line 52 - 'AtomFormGrid.js' */                    var at = AtomUI.attr(item,"atom-type");
/*Line 53 - 'AtomFormGrid.js' */                    if (at == "AtomFormRow") {
/*Line 54 - 'AtomFormGrid.js' */                        var table = document.createElement("TABLE");
/*Line 55 - 'AtomFormGrid.js' */                        container.appendChild(table);
/*Line 56 - 'AtomFormGrid.js' */                        $(table).addClass("atom-form-grid-row");
/*Line 57 - 'AtomFormGrid.js' */                        var tbody = document.createElement("TBODY");
/*Line 58 - 'AtomFormGrid.js' */                        table.appendChild(tbody);

/*Line 60 - 'AtomFormGrid.js' */                        var tr = document.createElement("TR");
/*Line 61 - 'AtomFormGrid.js' */                        tbody.appendChild(tr);

/*Line 63 - 'AtomFormGrid.js' */                        var children = $(item).children();
/*Line 64 - 'AtomFormGrid.js' */                        var ce = new AtomEnumerator(children);
/*Line 65 - 'AtomFormGrid.js' */                        while (ce.next()) {
/*Line 66 - 'AtomFormGrid.js' */                            var td = document.createElement("TD");
/*Line 67 - 'AtomFormGrid.js' */                            tr.appendChild(td);
/*Line 68 - 'AtomFormGrid.js' */                            this.createField(td, ce.current());
/*Line 69 - 'AtomFormGrid.js' */                        }

/*Line 71 - 'AtomFormGrid.js' */                        continue;
/*Line 72 - 'AtomFormGrid.js' */                    }
/*Line 73 - 'AtomFormGrid.js' */                    if (at == "AtomFormTabControl" || at == "AtomTabControl") {


/*Line 76 - 'AtomFormGrid.js' */                        var tabBar = document.createElement("ul");
/*Line 77 - 'AtomFormGrid.js' */                        tabBar.setAttribute("atom-type", "AtomToggleButtonBar");
/*Line 78 - 'AtomFormGrid.js' */                        var tabBarID = AtomUI.assignID(tabBar);
/*Line 79 - 'AtomFormGrid.js' */                        tabBar.setAttribute("atom-name", tabBarID);
/*Line 80 - 'AtomFormGrid.js' */                        tabBar.setAttribute("atom-show-tabs", "true");
/*Line 81 - 'AtomFormGrid.js' */                        var te = document.createElement("li");
/*Line 82 - 'AtomFormGrid.js' */                        tabBar.appendChild(te);
/*Line 83 - 'AtomFormGrid.js' */                        te.setAttribute("atom-text", "{$data.label}");
/*Line 84 - 'AtomFormGrid.js' */                        te.setAttribute("atom-template", "itemTemplate");
/*Line 85 - 'AtomFormGrid.js' */                        //td.appendChild(tabBar);
/*Line 86 - 'AtomFormGrid.js' */                        this.createField(container, tabBar);

/*Line 88 - 'AtomFormGrid.js' */                        var tbc = allControls[tabBarID];

/*Line 90 - 'AtomFormGrid.js' */                        var ce = new ChildEnumerator(item);
/*Line 91 - 'AtomFormGrid.js' */                        var list = [];
/*Line 92 - 'AtomFormGrid.js' */                        var index = 0;
/*Line 93 - 'AtomFormGrid.js' */                        while (ce.next()) {
/*Line 94 - 'AtomFormGrid.js' */                            var child = ce.current();
/*Line 95 - 'AtomFormGrid.js' */                            $(child).remove();
/*Line 96 - 'AtomFormGrid.js' */                            child.setAttribute("style-display", "[$scope." + tabBarID + ".selectedIndex == " + index + " ? '' : 'none']");
/*Line 97 - 'AtomFormGrid.js' */                            var cf = this.createField(container, child);
/*Line 98 - 'AtomFormGrid.js' */                            list.push(cf);
/*Line 99 - 'AtomFormGrid.js' */                            //if (cf.constructor == WebAtoms.AtomFormGridLayout) {

/*Line 101 - 'AtomFormGrid.js' */                            //}
/*Line 102 - 'AtomFormGrid.js' */                            index++;
/*Line 103 - 'AtomFormGrid.js' */                        }

/*Line 105 - 'AtomFormGrid.js' */                        tbc.set_items(list);
/*Line 106 - 'AtomFormGrid.js' */                        continue;
/*Line 107 - 'AtomFormGrid.js' */                    }
/*Line 108 - 'AtomFormGrid.js' */                    this.createField(container, item);

/*Line 110 - 'AtomFormGrid.js' */                }

/*Line 112 - 'AtomFormGrid.js' */            }
1217408
function (v) {
/*Line 39 - 'AtomUploadButton.js' */                this._capture = v;
/*Line 40 - 'AtomUploadButton.js' */                if (v) {
/*Line 41 - 'AtomUploadButton.js' */                    var fp = this._filePresenter;
/*Line 42 - 'AtomUploadButton.js' */                    if (fp) {
/*Line 43 - 'AtomUploadButton.js' */                        AtomUI.attr(fp, "capture", v);
/*Line 44 - 'AtomUploadButton.js' */                    }
/*Line 45 - 'AtomUploadButton.js' */                }
/*Line 46 - 'AtomUploadButton.js' */            }