/*Line 426 - 'AtomItemsControl.js'
969574
function (mode, index, item) {


/*Line 429 - 'AtomItemsControl.js' */                // just reset for now...
/*Line 430 - 'AtomItemsControl.js' */                if (/remove/gi.test(mode)) {
/*Line 431 - 'AtomItemsControl.js' */                    // simply delete and remove...
/*Line 432 - 'AtomItemsControl.js' */                    var ce = new ChildEnumerator(this._itemsPresenter);
/*Line 433 - 'AtomItemsControl.js' */                    while (ce.next()) {
/*Line 434 - 'AtomItemsControl.js' */                        var c = ce.current();
/*Line 435 - 'AtomItemsControl.js' */                        if (c.atomControl && c.atomControl.get_data() == item) {
/*Line 436 - 'AtomItemsControl.js' */                            c.atomControl.dispose();
/*Line 437 - 'AtomItemsControl.js' */                            $(c).remove();
/*Line 438 - 'AtomItemsControl.js' */                            break;
/*Line 439 - 'AtomItemsControl.js' */                        }
/*Line 440 - 'AtomItemsControl.js' */                    }
/*Line 441 - 'AtomItemsControl.js' */                    this.updateUI();
/*Line 442 - 'AtomItemsControl.js' */                    return;
/*Line 443 - 'AtomItemsControl.js' */                }

/*Line 445 - 'AtomItemsControl.js' */                var parentScope = this.get_scope();

/*Line 447 - 'AtomItemsControl.js' */                var et = this.getTemplate("itemTemplate");
/*Line 448 - 'AtomItemsControl.js' */                if (et) {
/*Line 449 - 'AtomItemsControl.js' */                    et = AtomUI.getAtomType(et);
/*Line 450 - 'AtomItemsControl.js' */                    if (et) {
/*Line 451 - 'AtomItemsControl.js' */                        this._childItemType = et;
/*Line 452 - 'AtomItemsControl.js' */                    }
/*Line 453 - 'AtomItemsControl.js' */                }

/*Line 455 - 'AtomItemsControl.js' */                if (/add/gi.test(mode)) {
/*Line 456 - 'AtomItemsControl.js' */                    WebAtoms.dispatcher.pause();

/*Line 458 - 'AtomItemsControl.js' */                    var ae = new AtomEnumerator(this._items);
/*Line 459 - 'AtomItemsControl.js' */                    var ce = new ChildEnumerator(this._itemsPresenter);
/*Line 460 - 'AtomItemsControl.js' */                    while (ae.next()) {
/*Line 461 - 'AtomItemsControl.js' */                        ce.next();
/*Line 462 - 'AtomItemsControl.js' */                        var c = ce.current();
/*Line 463 - 'AtomItemsControl.js' */                        if (ae.currentIndex() == index) {
/*Line 464 - 'AtomItemsControl.js' */                            var ctrl = this.createChildElement(parentScope, this._itemsPresenter, item, ae, c);
/*Line 465 - 'AtomItemsControl.js' */                            this.applyItemStyle(ctrl, item, ae.isFirst(), ae.isLast());
/*Line 466 - 'AtomItemsControl.js' */                            break;
/*Line 467 - 'AtomItemsControl.js' */                        }
/*Line 468 - 'AtomItemsControl.js' */                        if (ae.isLast()) {
/*Line 469 - 'AtomItemsControl.js' */                            var ctrl = this.createChildElement(parentScope, this._itemsPresenter, item, ae);
/*Line 470 - 'AtomItemsControl.js' */                            this.applyItemStyle(ctrl, item, ae.isFirst(), ae.isLast());
/*Line 471 - 'AtomItemsControl.js' */                            break;
/*Line 472 - 'AtomItemsControl.js' */                        }
/*Line 473 - 'AtomItemsControl.js' */                    }

/*Line 475 - 'AtomItemsControl.js' */                    WebAtoms.dispatcher.start();
/*Line 476 - 'AtomItemsControl.js' */                    this.updateUI();
/*Line 477 - 'AtomItemsControl.js' */                    return;
/*Line 478 - 'AtomItemsControl.js' */                }

/*Line 480 - 'AtomItemsControl.js' */                var element = this._itemsPresenter;

/*Line 482 - 'AtomItemsControl.js' */                var dataItems = this.get_dataItems();


/*Line 485 - 'AtomItemsControl.js' */                //AtomUI.removeAllChildren(element);
/*Line 486 - 'AtomItemsControl.js' */                this.disposeChildren(element);
/*Line 487 - 'AtomItemsControl.js' */                //this._dataElements.length = 0;
/*Line 488 - 'AtomItemsControl.js' */                // rebuild from template...

/*Line 490 - 'AtomItemsControl.js' */                WebAtoms.dispatcher.pause();

/*Line 492 - 'AtomItemsControl.js' */                // implement stock...


/*Line 495 - 'AtomItemsControl.js' */                var items = this.get_dataItems(true);

/*Line 497 - 'AtomItemsControl.js' */                var added = [];

/*Line 499 - 'AtomItemsControl.js' */                var ae = new AtomEnumerator(items);

/*Line 501 - 'AtomItemsControl.js' */                if (false) {


/*Line 504 - 'AtomItemsControl.js' */                    if (this._itemsPresenter == this._element) {
/*Line 505 - 'AtomItemsControl.js' */                        var d = document.createElement("DIV");
/*Line 506 - 'AtomItemsControl.js' */                        var $d = $(d);
/*Line 507 - 'AtomItemsControl.js' */                        $d.addClass("atom-virtual-container");
/*Line 508 - 'AtomItemsControl.js' */                        $d.css("width", "100%");
/*Line 509 - 'AtomItemsControl.js' */                        this._element.innerHTML = "";
/*Line 510 - 'AtomItemsControl.js' */                        this._element.appendChild(d);
/*Line 511 - 'AtomItemsControl.js' */                        this._itemsPresenter = d;
/*Line 512 - 'AtomItemsControl.js' */                        element = this._itemsPresenter;
/*Line 513 - 'AtomItemsControl.js' */                    }

/*Line 515 - 'AtomItemsControl.js' */                    var scroller = this._itemsPresenter.parentElement;
/*Line 516 - 'AtomItemsControl.js' */                    var st = scroller.scrollTop;
/*Line 517 - 'AtomItemsControl.js' */                    var sh = scroller.scrollHeight;

/*Line 519 - 'AtomItemsControl.js' */                    this.unbindEvent(scroller, "scroll");

/*Line 521 - 'AtomItemsControl.js' */                    var n = items.length;
/*Line 522 - 'AtomItemsControl.js' */                    var presenterWidth = $(this._itemsPresenter).innerWidth();



/*Line 526 - 'AtomItemsControl.js' */                    var t = this.getTemplate("itemTemplate");
/*Line 527 - 'AtomItemsControl.js' */                    var $t = $(t);
/*Line 528 - 'AtomItemsControl.js' */                    var h = $t.outerHeight(true);
/*Line 529 - 'AtomItemsControl.js' */                    var w = $t.outerWidth(true);

/*Line 531 - 'AtomItemsControl.js' */                    var cols = Math.floor(presenterWidth / w);
/*Line 532 - 'AtomItemsControl.js' */                    var rows = Math.ceil(n / cols);

/*Line 534 - 'AtomItemsControl.js' */                    rows = rows * h + 100;

/*Line 536 - 'AtomItemsControl.js' */                    $(this.itemsPresenter).height(rows);

/*Line 538 - 'AtomItemsControl.js' */                    var copy = document.createElement("DIV");
/*Line 539 - 'AtomItemsControl.js' */                    copy.style.height = h + "px";
/*Line 540 - 'AtomItemsControl.js' */                    copy.style.width = w + "px";


/*Line 543 - 'AtomItemsControl.js' */                    var sw = $(element).innerWidth();

/*Line 545 - 'AtomItemsControl.js' */                    var itemsPerLine = Math.ceil(presenterWidth / w);
/*Line 546 - 'AtomItemsControl.js' */                    var hiddenLines = Math.ceil( st / h );
/*Line 547 - 'AtomItemsControl.js' */                    var visibleLines = Math.ceil(sh / h);
/*Line 548 - 'AtomItemsControl.js' */                    var si = hiddenLines * itemsPerLine;

/*Line 550 - 'AtomItemsControl.js' */                    if (!itemsPerLine) {
/*Line 551 - 'AtomItemsControl.js' */                        console.log("itemsPerLine is zero");
/*Line 552 - 'AtomItemsControl.js' */                    } else {
/*Line 553 - 'AtomItemsControl.js' */                        console.log(JSON.stringify({ itemsPerLine: itemsPerLine, st: st, sh: sh, si : si }));
/*Line 554 - 'AtomItemsControl.js' */                    }

/*Line 556 - 'AtomItemsControl.js' */                    var ei = (visibleLines + 1) * itemsPerLine;

/*Line 558 - 'AtomItemsControl.js' */                    while (ae.next()) {
/*Line 559 - 'AtomItemsControl.js' */                        var i = ae.currentIndex();
/*Line 560 - 'AtomItemsControl.js' */                        if (i < si || i > ei) {
/*Line 561 - 'AtomItemsControl.js' */                            // add a copy...
/*Line 562 - 'AtomItemsControl.js' */                            element.appendChild(copy.cloneNode(true));
/*Line 563 - 'AtomItemsControl.js' */                        } else {
/*Line 564 - 'AtomItemsControl.js' */                            var data = ae.current();
/*Line 565 - 'AtomItemsControl.js' */                            var elementChild = this.createChildElement(parentScope, element, data, ae);
/*Line 566 - 'AtomItemsControl.js' */                            added.push(elementChild);
/*Line 567 - 'AtomItemsControl.js' */                            this.applyItemStyle(elementChild, data, ae.isFirst(), ae.isLast());
/*Line 568 - 'AtomItemsControl.js' */                        }
/*Line 569 - 'AtomItemsControl.js' */                    }

/*Line 571 - 'AtomItemsControl.js' */                    scroller.scrollTop = st;
/*Line 572 - 'AtomItemsControl.js' */                    var _this = this;
/*Line 573 - 'AtomItemsControl.js' */                    this.bindEvent(scroller, "scroll", function () {
/*Line 574 - 'AtomItemsControl.js' */                        _this.onScroll();
/*Line 575 - 'AtomItemsControl.js' */                    });


/*Line 578 - 'AtomItemsControl.js' */                } else {

/*Line 580 - 'AtomItemsControl.js' */                    this.getTemplate("itemTemplate");

/*Line 582 - 'AtomItemsControl.js' */                    while (ae.next()) {
/*Line 583 - 'AtomItemsControl.js' */                        var data = ae.current();
/*Line 584 - 'AtomItemsControl.js' */                        var elementChild = this.createChildElement(parentScope, element, data, ae);
/*Line 585 - 'AtomItemsControl.js' */                        added.push(elementChild);
/*Line 586 - 'AtomItemsControl.js' */                        this.applyItemStyle(elementChild, data, ae.isFirst(), ae.isLast());
/*Line 587 - 'AtomItemsControl.js' */                    }
/*Line 588 - 'AtomItemsControl.js' */                }

/*Line 590 - 'AtomItemsControl.js' */                //var ae = new AtomEnumerator(items);
/*Line 591 - 'AtomItemsControl.js' */                //while (ae.next()) {
/*Line 592 - 'AtomItemsControl.js' */                //    var data = ae.current();
/*Line 593 - 'AtomItemsControl.js' */                //    var elementChild = this.createChildElement(parentScope, element, data, ae);
/*Line 594 - 'AtomItemsControl.js' */                //    this.applyItemStyle(elementChild, data, ae.isFirst(), ae.isLast());
/*Line 595 - 'AtomItemsControl.js' */                //}
/*Line 596 - 'AtomItemsControl.js' */                var self = this;
/*Line 597 - 'AtomItemsControl.js' */                WebAtoms.dispatcher.callLater(function () {
/*Line 598 - 'AtomItemsControl.js' */                    var dirty = [];
/*Line 599 - 'AtomItemsControl.js' */                    var ce = new ChildEnumerator(element);
/*Line 600 - 'AtomItemsControl.js' */                    while (ce.next()) {
/*Line 601 - 'AtomItemsControl.js' */                        var item = ce.current();
/*Line 602 - 'AtomItemsControl.js' */                        var f = added.filter(function (fx) { return item == fx; });
/*Line 603 - 'AtomItemsControl.js' */                        if (f.pop() != item) {
/*Line 604 - 'AtomItemsControl.js' */                            dirty.push(item);
/*Line 605 - 'AtomItemsControl.js' */                        }
/*Line 606 - 'AtomItemsControl.js' */                    }
/*Line 607 - 'AtomItemsControl.js' */                    ce = new AtomEnumerator(dirty);
/*Line 608 - 'AtomItemsControl.js' */                    while (ce.next()) {
/*Line 609 - 'AtomItemsControl.js' */                        var item = ce.current();
/*Line 610 - 'AtomItemsControl.js' */                        self.dispose(item);
/*Line 611 - 'AtomItemsControl.js' */                        $(item).remove();
/*Line 612 - 'AtomItemsControl.js' */                    }

/*Line 614 - 'AtomItemsControl.js' */                });

/*Line 616 - 'AtomItemsControl.js' */                WebAtoms.dispatcher.start();

/*Line 618 - 'AtomItemsControl.js' */                AtomBinder.refreshValue(this, "childAtomControls");


/*Line 621 - 'AtomItemsControl.js' */            }
645435
function () {
/*Line 183 - 'AtomNavigatorList.js' */                base.init.call(this);

/*Line 185 - 'AtomNavigatorList.js' */                var _this = this;

/*Line 187 - 'AtomNavigatorList.js' */                this.backCommand = function () {
/*Line 188 - 'AtomNavigatorList.js' */                    _this.onBackCommand.apply(_this, arguments);
/*Line 189 - 'AtomNavigatorList.js' */                };

/*Line 191 - 'AtomNavigatorList.js' */                this.addCommand = function () {
/*Line 192 - 'AtomNavigatorList.js' */                    _this.onAddCommand.apply(_this, arguments);
/*Line 193 - 'AtomNavigatorList.js' */                };

/*Line 195 - 'AtomNavigatorList.js' */                this.cancelAddCommand = function () {
/*Line 196 - 'AtomNavigatorList.js' */                    _this.onCancelAddNewCommand.apply(_this, arguments);
/*Line 197 - 'AtomNavigatorList.js' */                };

/*Line 199 - 'AtomNavigatorList.js' */                this.showDetailCommand = function () {
/*Line 200 - 'AtomNavigatorList.js' */                    var s = _this.get_selectedItem();
/*Line 201 - 'AtomNavigatorList.js' */                    if (s) {
/*Line 202 - 'AtomNavigatorList.js' */                        AtomBinder.setValue(_this, "displayMode", 1);
/*Line 203 - 'AtomNavigatorList.js' */                        _this.updateDisplayMode();
/*Line 204 - 'AtomNavigatorList.js' */                    }
/*Line 205 - 'AtomNavigatorList.js' */                };
/*Line 206 - 'AtomNavigatorList.js' */            }
1362147
function (v) {
/*Line 1127 - 'AtomControl.js' */                if (this._template === v) {
/*Line 1128 - 'AtomControl.js' */                    if (this._created)
/*Line 1129 - 'AtomControl.js' */                        return;
/*Line 1130 - 'AtomControl.js' */                }
/*Line 1131 - 'AtomControl.js' */                if (!this._created) {
/*Line 1132 - 'AtomControl.js' */                    var _this = this;
/*Line 1133 - 'AtomControl.js' */                    // this is because, sometimes template change occurs while creation
/*Line 1134 - 'AtomControl.js' */                    // which creates endless loop
/*Line 1135 - 'AtomControl.js' */                    WebAtoms.dispatcher.callLater(function () {
/*Line 1136 - 'AtomControl.js' */                        _this.set_innerTemplate(v);
/*Line 1137 - 'AtomControl.js' */                    });
/*Line 1138 - 'AtomControl.js' */                    return;
/*Line 1139 - 'AtomControl.js' */                }
/*Line 1140 - 'AtomControl.js' */                this._template = v;
/*Line 1141 - 'AtomControl.js' */                // disposing all children...
/*Line 1142 - 'AtomControl.js' */                this.disposeChildren(this._element);

/*Line 1144 - 'AtomControl.js' */                this.createChildren();
/*Line 1145 - 'AtomControl.js' */                this.setProperties(this._element);
/*Line 1146 - 'AtomControl.js' */                this.initChildren(this._element);
/*Line 1147 - 'AtomControl.js' */                this.updateUI();
/*Line 1148 - 'AtomControl.js' */            }
178940
function () {
/*Line 133 - 'AtomPhoneControl.js' */                if (this._isFormatting) return;
/*Line 134 - 'AtomPhoneControl.js' */                this._isFormatting = true;

/*Line 136 - 'AtomPhoneControl.js' */                var r = this._countries;
/*Line 137 - 'AtomPhoneControl.js' */                var options = this.cs.options;
/*Line 138 - 'AtomPhoneControl.js' */                options.length = r.length;
/*Line 139 - 'AtomPhoneControl.js' */                var last = this.cs.selectedIndex;
/*Line 140 - 'AtomPhoneControl.js' */                var ae = new AtomEnumerator(r);
/*Line 141 - 'AtomPhoneControl.js' */                while (ae.next()) {
/*Line 142 - 'AtomPhoneControl.js' */                    var ci = ae.current();
/*Line 143 - 'AtomPhoneControl.js' */                    if (!ci.valueIndex) {
/*Line 144 - 'AtomPhoneControl.js' */                        ci.label = ci.label;
/*Line 145 - 'AtomPhoneControl.js' */                        ci.valueIndex = ae.currentIndex();
/*Line 146 - 'AtomPhoneControl.js' */                    }
/*Line 147 - 'AtomPhoneControl.js' */                    options[ae.currentIndex()] = new Option(ci.label, ci.valueIndex, false, false);
/*Line 148 - 'AtomPhoneControl.js' */                }

/*Line 150 - 'AtomPhoneControl.js' */                this.setupValues();
/*Line 151 - 'AtomPhoneControl.js' */                this.cs.selectedIndex = last;

/*Line 153 - 'AtomPhoneControl.js' */                var cs = this.cs;
/*Line 154 - 'AtomPhoneControl.js' */                if (cs.selectedIndex == -1)
/*Line 155 - 'AtomPhoneControl.js' */                    return;
/*Line 156 - 'AtomPhoneControl.js' */                var ci = this._countries[cs.selectedIndex];

/*Line 158 - 'AtomPhoneControl.js' */                if (ci.format) {
/*Line 159 - 'AtomPhoneControl.js' */                    $(this.num).mask(ci.format);
/*Line 160 - 'AtomPhoneControl.js' */                } else {
/*Line 161 - 'AtomPhoneControl.js' */                    $(this.num).unmask();
/*Line 162 - 'AtomPhoneControl.js' */                }
/*Line 163 - 'AtomPhoneControl.js' */                this._isFormatting = false;
/*Line 164 - 'AtomPhoneControl.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' */            }
166122
function () {
/*Line 256 - 'AtomItemsControl.js' */                var item = this.get_selectedItem();
/*Line 257 - 'AtomItemsControl.js' */                if (!this.hasItems())
/*Line 258 - 'AtomItemsControl.js' */                    return item;
/*Line 259 - 'AtomItemsControl.js' */                var ce = new ChildEnumerator(this._itemsPresenter);
/*Line 260 - 'AtomItemsControl.js' */                while (ce.next()) {
/*Line 261 - 'AtomItemsControl.js' */                    var child = ce.current();
/*Line 262 - 'AtomItemsControl.js' */                    if (child.atomControl.get_data() == item)
/*Line 263 - 'AtomItemsControl.js' */                        return child;
/*Line 264 - 'AtomItemsControl.js' */                }
/*Line 265 - 'AtomItemsControl.js' */                return null;
/*Line 266 - 'AtomItemsControl.js' */            }
25257
function (e) {

/*Line 162 - 'AtomUI.js' */        var t = e.target;
/*Line 163 - 'AtomUI.js' */        if (t && /input/gi.test(t.nodeName) && /checkbox/gi.test(t.type))
/*Line 164 - 'AtomUI.js' */            return;

/*Line 166 - 'AtomUI.js' */        if (e.preventDefault) { e.preventDefault(); }
/*Line 167 - 'AtomUI.js' */        else { e.stop(); }

/*Line 169 - 'AtomUI.js' */        e.returnValue = false;
/*Line 170 - 'AtomUI.js' */        e.stopPropagation();
/*Line 171 - 'AtomUI.js' */        return false;
/*Line 172 - 'AtomUI.js' */    }
756970
function () {

/*Line 48 - 'AtomViewStack.js' */                var element = this._element;
/*Line 49 - 'AtomViewStack.js' */                var childEn = new ChildEnumerator(element);

/*Line 51 - 'AtomViewStack.js' */                var selectedIndex = this.get_selectedIndex();
/*Line 52 - 'AtomViewStack.js' */                var previousIndex = this._previousIndex;

/*Line 54 - 'AtomViewStack.js' */                var queue = WebAtoms.dispatcher;
/*Line 55 - 'AtomViewStack.js' */                queue.pause();

/*Line 57 - 'AtomViewStack.js' */                var i = -1;

/*Line 59 - 'AtomViewStack.js' */                var self = this;

/*Line 61 - 'AtomViewStack.js' */                var selectedElement, previousElement;

/*Line 63 - 'AtomViewStack.js' */                while (childEn.next()) {
/*Line 64 - 'AtomViewStack.js' */                    i = i + 1;
/*Line 65 - 'AtomViewStack.js' */                    var item = childEn.current();
/*Line 66 - 'AtomViewStack.js' */                    var $item = $(item);
/*Line 67 - 'AtomViewStack.js' */                    $item.addClass("view-stack-child");
/*Line 68 - 'AtomViewStack.js' */                    if (previousIndex == -1) {
/*Line 69 - 'AtomViewStack.js' */                        $item.addClass("hidden");
/*Line 70 - 'AtomViewStack.js' */                    }
/*Line 71 - 'AtomViewStack.js' */                    if (i == selectedIndex) {
/*Line 72 - 'AtomViewStack.js' */                        selectedElement = item;
/*Line 73 - 'AtomViewStack.js' */                    } else if (i == previousIndex) {
/*Line 74 - 'AtomViewStack.js' */                        previousElement = item;
/*Line 75 - 'AtomViewStack.js' */                    } else {
/*Line 76 - 'AtomViewStack.js' */                        $item.addClass("hidden");
/*Line 77 - 'AtomViewStack.js' */                    }
/*Line 78 - 'AtomViewStack.js' */                }

/*Line 80 - 'AtomViewStack.js' */                if (selectedElement) {
/*Line 81 - 'AtomViewStack.js' */                    var width = $(element).innerWidth();
/*Line 82 - 'AtomViewStack.js' */                    var height = $(element).innerHeight();

/*Line 84 - 'AtomViewStack.js' */                    this._selectedChild = selectedElement;
/*Line 85 - 'AtomViewStack.js' */                    var $selectedElement = $(selectedElement);
/*Line 86 - 'AtomViewStack.js' */                    AtomUI.setItemRect($selectedElement,selectedElement, { width: width, height: height });
/*Line 87 - 'AtomViewStack.js' */                    var sac = selectedElement.atomControl;
/*Line 88 - 'AtomViewStack.js' */                    if (sac) {
/*Line 89 - 'AtomViewStack.js' */                        sac.updateUI();
/*Line 90 - 'AtomViewStack.js' */                    }

/*Line 92 - 'AtomViewStack.js' */                    if (previousElement && previousElement != selectedElement) {
/*Line 93 - 'AtomViewStack.js' */                        var self = this;

/*Line 95 - 'AtomViewStack.js' */                        var $previousElement = $(previousElement);

/*Line 97 - 'AtomViewStack.js' */                        var sd = this._swipeDirection;
/*Line 98 - 'AtomViewStack.js' */                        if (sd != null && /none/i.test(sd)) {
/*Line 99 - 'AtomViewStack.js' */                            $previousElement.addClass("hidden");
/*Line 100 - 'AtomViewStack.js' */                            $selectedElement.removeClass("hidden");
/*Line 101 - 'AtomViewStack.js' */                        } else {
/*Line 102 - 'AtomViewStack.js' */                            // animate...
/*Line 103 - 'AtomViewStack.js' */                            var ael = [selectedElement, previousElement];
/*Line 104 - 'AtomViewStack.js' */                            $(ael).removeClass("hidden");
/*Line 105 - 'AtomViewStack.js' */                            this._isAnimating = true;
/*Line 106 - 'AtomViewStack.js' */                            if (selectedIndex < previousIndex) {
/*Line 107 - 'AtomViewStack.js' */                                $selectedElement.css("left", -width);
/*Line 108 - 'AtomViewStack.js' */                                //log("left: -" + width);
/*Line 109 - 'AtomViewStack.js' */                            } else {
/*Line 110 - 'AtomViewStack.js' */                                $selectedElement.css("left", width);
/*Line 111 - 'AtomViewStack.js' */                                //log("left: " + width);
/*Line 112 - 'AtomViewStack.js' */                            }
/*Line 113 - 'AtomViewStack.js' */                            $(ael).addClass("animate-left-property");
/*Line 114 - 'AtomViewStack.js' */                            setTimeout(function () {
/*Line 115 - 'AtomViewStack.js' */                                $selectedElement.css("left", 0);
/*Line 116 - 'AtomViewStack.js' */                                //log("left: 0");
/*Line 117 - 'AtomViewStack.js' */                                if (selectedIndex < previousIndex) {
/*Line 118 - 'AtomViewStack.js' */                                    $previousElement.css("left", width);
/*Line 119 - 'AtomViewStack.js' */                                } else {
/*Line 120 - 'AtomViewStack.js' */                                    $previousElement.css("left", -width);
/*Line 121 - 'AtomViewStack.js' */                                }
/*Line 122 - 'AtomViewStack.js' */                                setTimeout(function () {
/*Line 123 - 'AtomViewStack.js' */                                    self._isAnimating = false;
/*Line 124 - 'AtomViewStack.js' */                                    $(ael).removeClass("animate-left-property");
/*Line 125 - 'AtomViewStack.js' */                                    $previousElement.addClass("hidden");
/*Line 126 - 'AtomViewStack.js' */                                }, 800);
/*Line 127 - 'AtomViewStack.js' */                            }, 50);
/*Line 128 - 'AtomViewStack.js' */                        }
/*Line 129 - 'AtomViewStack.js' */                    } else {
/*Line 130 - 'AtomViewStack.js' */                        $selectedElement.removeClass("hidden");
/*Line 131 - 'AtomViewStack.js' */                    }
/*Line 132 - 'AtomViewStack.js' */                }

/*Line 134 - 'AtomViewStack.js' */                queue.start();

/*Line 136 - 'AtomViewStack.js' */            }
1339638
function (v) {
/*Line 23 - 'AtomYesNoCustom.js' */                this._value = v;
/*Line 24 - 'AtomYesNoCustom.js' */                AtomBinder.setValue(this, "hasValue", v ? true : false);
/*Line 25 - 'AtomYesNoCustom.js' */                if (!this._onUIChanged) {
/*Line 26 - 'AtomYesNoCustom.js' */                    $(this._input).val(v);
/*Line 27 - 'AtomYesNoCustom.js' */                }
/*Line 28 - 'AtomYesNoCustom.js' */            }
281193
function (target, element, key, path, twoWays, jq, valueFunction, events) {
/*Line 378 - 'AtomControl.js' */                this.clearBinding(element, key);
/*Line 379 - 'AtomControl.js' */                var ab = new WebAtoms.AtomBinding(target, element, key, path, twoWays, jq, valueFunction, events);
/*Line 380 - 'AtomControl.js' */                this.bindings.push(ab);
/*Line 381 - 'AtomControl.js' */                ab.setup();
/*Line 382 - 'AtomControl.js' */            }
318333
function () {


/*Line 699 - 'AtomItemsControl.js' */                if (this._items) {
/*Line 700 - 'AtomItemsControl.js' */                    this.onCollectionChangedInternal("refresh", -1, null);
/*Line 701 - 'AtomItemsControl.js' */                }

/*Line 703 - 'AtomItemsControl.js' */                var caller = this;

/*Line 705 - 'AtomItemsControl.js' */                this.dispatcher.callLater(function () {
/*Line 706 - 'AtomItemsControl.js' */                    if (caller._autoScrollToSelection) {
/*Line 707 - 'AtomItemsControl.js' */                        caller.bringSelectionIntoView();
/*Line 708 - 'AtomItemsControl.js' */                    }
/*Line 709 - 'AtomItemsControl.js' */                });

/*Line 711 - 'AtomItemsControl.js' */            }
1234387
function (target, key) {
/*Line 84 - 'AtomBindingHelper.js' */        if (target == null)
/*Line 85 - 'AtomBindingHelper.js' */            return null;
/*Line 86 - 'AtomBindingHelper.js' */        var handlers = target._$_handlers;
/*Line 87 - 'AtomBindingHelper.js' */        if (!handlers) {
/*Line 88 - 'AtomBindingHelper.js' */            handlers = {};
/*Line 89 - 'AtomBindingHelper.js' */            target._$_handlers = handlers;
/*Line 90 - 'AtomBindingHelper.js' */        }
/*Line 91 - 'AtomBindingHelper.js' */        var handlersForKey = handlers[key];
/*Line 92 - 'AtomBindingHelper.js' */        if (handlersForKey == undefined || handlersForKey == null) {
/*Line 93 - 'AtomBindingHelper.js' */            handlersForKey = [];
/*Line 94 - 'AtomBindingHelper.js' */            handlers[key] = handlersForKey;
/*Line 95 - 'AtomBindingHelper.js' */        }
/*Line 96 - 'AtomBindingHelper.js' */        return handlersForKey;
/*Line 97 - 'AtomBindingHelper.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' */            }
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' */                }
951199
function () {


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

/*Line 42 - 'AtomWizard.js' */                this.disposeChildren(vs);

/*Line 44 - 'AtomWizard.js' */                var vt = this._viewTemplate;

/*Line 46 - 'AtomWizard.js' */                var i = 0;

/*Line 48 - 'AtomWizard.js' */                var ae = new ChildEnumerator(vt);
/*Line 49 - 'AtomWizard.js' */                while (ae.next()) {
/*Line 50 - 'AtomWizard.js' */                    i++;
/*Line 51 - 'AtomWizard.js' */                    var item = AtomUI.cloneNode(ae.current());
/*Line 52 - 'AtomWizard.js' */                    //$(vs).append(item);
/*Line 53 - 'AtomWizard.js' */                    vs.appendChild(item);
/*Line 54 - 'AtomWizard.js' */                    var type = AtomUI.getAtomType(item);
/*Line 55 - 'AtomWizard.js' */                    if (!type) {
/*Line 56 - 'AtomWizard.js' */                        type = "AtomViewBox";
/*Line 57 - 'AtomWizard.js' */                        AtomUI.attr(item, "data-atom-type", type);
/*Line 58 - 'AtomWizard.js' */                    }

/*Line 60 - 'AtomWizard.js' */                    //var s = new AtomScope(this, this.get_scope(), atomApplication);

/*Line 62 - 'AtomWizard.js' */                    var ct = AtomUI.getAtomType(item) || WebAtoms.AtomControl;
/*Line 63 - 'AtomWizard.js' */                    var cc = AtomUI.createControl(item, ct);
/*Line 64 - 'AtomWizard.js' */                    cc.init();
/*Line 65 - 'AtomWizard.js' */                }
/*Line 66 - 'AtomWizard.js' */                AtomBinder.setValue(this, "steps", i);

/*Line 68 - 'AtomWizard.js' */                if (i) {
/*Line 69 - 'AtomWizard.js' */                    AtomBinder.setValue(this, "currentStep", 0);
/*Line 70 - 'AtomWizard.js' */                }
/*Line 71 - 'AtomWizard.js' */            }
401643
function (v) {
/*Line 196 - 'AtomControl.js' */                this._mergeData2 = null;
/*Line 197 - 'AtomControl.js' */                if (!v)
/*Line 198 - 'AtomControl.js' */                    return;
/*Line 199 - 'AtomControl.js' */                var d = v.data;
/*Line 200 - 'AtomControl.js' */                if (d) {
/*Line 201 - 'AtomControl.js' */                    Atom.merge(this.get_data(), d, true);
/*Line 202 - 'AtomControl.js' */                    this._mergeData2 = d;
/*Line 203 - 'AtomControl.js' */                }
/*Line 204 - 'AtomControl.js' */                d = v.scope;
/*Line 205 - 'AtomControl.js' */                if (d) {
/*Line 206 - 'AtomControl.js' */                    Atom.merge(this.get_scope(), d, true);
/*Line 207 - 'AtomControl.js' */                }
/*Line 208 - 'AtomControl.js' */                d = v.appScope;
/*Line 209 - 'AtomControl.js' */                if (d) {
/*Line 210 - 'AtomControl.js' */                    Atom.merge(this.get_appScope(), d, true);
/*Line 211 - 'AtomControl.js' */                }
/*Line 212 - 'AtomControl.js' */                d = v.localScope;
/*Line 213 - 'AtomControl.js' */                if (d) {
/*Line 214 - 'AtomControl.js' */                    Atom.merge(this.get_localScope(), d, true);
/*Line 215 - 'AtomControl.js' */                }
/*Line 216 - 'AtomControl.js' */                d = v.owner;
/*Line 217 - 'AtomControl.js' */                if (d) {
/*Line 218 - 'AtomControl.js' */                    Atom.merge(this,d,true);
/*Line 219 - 'AtomControl.js' */                }
/*Line 220 - 'AtomControl.js' */                var action = (v.timeOut || v.timeout);
/*Line 221 - 'AtomControl.js' */                if (action) {
/*Line 222 - 'AtomControl.js' */                    var _this = this;
/*Line 223 - 'AtomControl.js' */                    var tm = 100;
/*Line 224 - 'AtomControl.js' */                    if (action.hasOwnProperty("length")) {
/*Line 225 - 'AtomControl.js' */                        if (action.length > 1) {
/*Line 226 - 'AtomControl.js' */                            tm = action[0];
/*Line 227 - 'AtomControl.js' */                            action = action[1];
/*Line 228 - 'AtomControl.js' */                        }
/*Line 229 - 'AtomControl.js' */                    }
/*Line 230 - 'AtomControl.js' */                    setTimeout(function () {
/*Line 231 - 'AtomControl.js' */                        _this.set_merge(action);
/*Line 232 - 'AtomControl.js' */                    }, tm);
/*Line 233 - 'AtomControl.js' */                    return;
/*Line 234 - 'AtomControl.js' */                }

/*Line 236 - 'AtomControl.js' */            }
468850
function (scope, sender) {
/*Line 31 - 'AtomWindow.js' */                AtomBinder.setValue(this, "isOpen", false);
/*Line 32 - 'AtomWindow.js' */                var val = this._value;
/*Line 33 - 'AtomWindow.js' */                var caller = this;
/*Line 34 - 'AtomWindow.js' */                this._value = null;

/*Line 36 - 'AtomWindow.js' */                WebAtoms.dispatcher.callLater(function () {
/*Line 37 - 'AtomWindow.js' */                    AtomBinder.setValue(caller, "value", val);
/*Line 38 - 'AtomWindow.js' */                    caller.invokeAction(caller._next);
/*Line 39 - 'AtomWindow.js' */                    caller.disposeChildren(caller._element);
/*Line 40 - 'AtomWindow.js' */                });
/*Line 41 - 'AtomWindow.js' */            }