(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[5],{

/***/ "../../node_modules/moment/locale sync recursive ^\\.\\/.*$":
/*!**************************************************************************!*\
  !*** C:/workspace/gitfish/twii/node_modules/moment/locale sync ^\.\/.*$ ***!
  \**************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var map = {
	"./af": "../../node_modules/moment/locale/af.js",
	"./af.js": "../../node_modules/moment/locale/af.js",
	"./ar": "../../node_modules/moment/locale/ar.js",
	"./ar-dz": "../../node_modules/moment/locale/ar-dz.js",
	"./ar-dz.js": "../../node_modules/moment/locale/ar-dz.js",
	"./ar-kw": "../../node_modules/moment/locale/ar-kw.js",
	"./ar-kw.js": "../../node_modules/moment/locale/ar-kw.js",
	"./ar-ly": "../../node_modules/moment/locale/ar-ly.js",
	"./ar-ly.js": "../../node_modules/moment/locale/ar-ly.js",
	"./ar-ma": "../../node_modules/moment/locale/ar-ma.js",
	"./ar-ma.js": "../../node_modules/moment/locale/ar-ma.js",
	"./ar-sa": "../../node_modules/moment/locale/ar-sa.js",
	"./ar-sa.js": "../../node_modules/moment/locale/ar-sa.js",
	"./ar-tn": "../../node_modules/moment/locale/ar-tn.js",
	"./ar-tn.js": "../../node_modules/moment/locale/ar-tn.js",
	"./ar.js": "../../node_modules/moment/locale/ar.js",
	"./az": "../../node_modules/moment/locale/az.js",
	"./az.js": "../../node_modules/moment/locale/az.js",
	"./be": "../../node_modules/moment/locale/be.js",
	"./be.js": "../../node_modules/moment/locale/be.js",
	"./bg": "../../node_modules/moment/locale/bg.js",
	"./bg.js": "../../node_modules/moment/locale/bg.js",
	"./bm": "../../node_modules/moment/locale/bm.js",
	"./bm.js": "../../node_modules/moment/locale/bm.js",
	"./bn": "../../node_modules/moment/locale/bn.js",
	"./bn.js": "../../node_modules/moment/locale/bn.js",
	"./bo": "../../node_modules/moment/locale/bo.js",
	"./bo.js": "../../node_modules/moment/locale/bo.js",
	"./br": "../../node_modules/moment/locale/br.js",
	"./br.js": "../../node_modules/moment/locale/br.js",
	"./bs": "../../node_modules/moment/locale/bs.js",
	"./bs.js": "../../node_modules/moment/locale/bs.js",
	"./ca": "../../node_modules/moment/locale/ca.js",
	"./ca.js": "../../node_modules/moment/locale/ca.js",
	"./cs": "../../node_modules/moment/locale/cs.js",
	"./cs.js": "../../node_modules/moment/locale/cs.js",
	"./cv": "../../node_modules/moment/locale/cv.js",
	"./cv.js": "../../node_modules/moment/locale/cv.js",
	"./cy": "../../node_modules/moment/locale/cy.js",
	"./cy.js": "../../node_modules/moment/locale/cy.js",
	"./da": "../../node_modules/moment/locale/da.js",
	"./da.js": "../../node_modules/moment/locale/da.js",
	"./de": "../../node_modules/moment/locale/de.js",
	"./de-at": "../../node_modules/moment/locale/de-at.js",
	"./de-at.js": "../../node_modules/moment/locale/de-at.js",
	"./de-ch": "../../node_modules/moment/locale/de-ch.js",
	"./de-ch.js": "../../node_modules/moment/locale/de-ch.js",
	"./de.js": "../../node_modules/moment/locale/de.js",
	"./dv": "../../node_modules/moment/locale/dv.js",
	"./dv.js": "../../node_modules/moment/locale/dv.js",
	"./el": "../../node_modules/moment/locale/el.js",
	"./el.js": "../../node_modules/moment/locale/el.js",
	"./en-au": "../../node_modules/moment/locale/en-au.js",
	"./en-au.js": "../../node_modules/moment/locale/en-au.js",
	"./en-ca": "../../node_modules/moment/locale/en-ca.js",
	"./en-ca.js": "../../node_modules/moment/locale/en-ca.js",
	"./en-gb": "../../node_modules/moment/locale/en-gb.js",
	"./en-gb.js": "../../node_modules/moment/locale/en-gb.js",
	"./en-ie": "../../node_modules/moment/locale/en-ie.js",
	"./en-ie.js": "../../node_modules/moment/locale/en-ie.js",
	"./en-il": "../../node_modules/moment/locale/en-il.js",
	"./en-il.js": "../../node_modules/moment/locale/en-il.js",
	"./en-nz": "../../node_modules/moment/locale/en-nz.js",
	"./en-nz.js": "../../node_modules/moment/locale/en-nz.js",
	"./eo": "../../node_modules/moment/locale/eo.js",
	"./eo.js": "../../node_modules/moment/locale/eo.js",
	"./es": "../../node_modules/moment/locale/es.js",
	"./es-do": "../../node_modules/moment/locale/es-do.js",
	"./es-do.js": "../../node_modules/moment/locale/es-do.js",
	"./es-us": "../../node_modules/moment/locale/es-us.js",
	"./es-us.js": "../../node_modules/moment/locale/es-us.js",
	"./es.js": "../../node_modules/moment/locale/es.js",
	"./et": "../../node_modules/moment/locale/et.js",
	"./et.js": "../../node_modules/moment/locale/et.js",
	"./eu": "../../node_modules/moment/locale/eu.js",
	"./eu.js": "../../node_modules/moment/locale/eu.js",
	"./fa": "../../node_modules/moment/locale/fa.js",
	"./fa.js": "../../node_modules/moment/locale/fa.js",
	"./fi": "../../node_modules/moment/locale/fi.js",
	"./fi.js": "../../node_modules/moment/locale/fi.js",
	"./fo": "../../node_modules/moment/locale/fo.js",
	"./fo.js": "../../node_modules/moment/locale/fo.js",
	"./fr": "../../node_modules/moment/locale/fr.js",
	"./fr-ca": "../../node_modules/moment/locale/fr-ca.js",
	"./fr-ca.js": "../../node_modules/moment/locale/fr-ca.js",
	"./fr-ch": "../../node_modules/moment/locale/fr-ch.js",
	"./fr-ch.js": "../../node_modules/moment/locale/fr-ch.js",
	"./fr.js": "../../node_modules/moment/locale/fr.js",
	"./fy": "../../node_modules/moment/locale/fy.js",
	"./fy.js": "../../node_modules/moment/locale/fy.js",
	"./gd": "../../node_modules/moment/locale/gd.js",
	"./gd.js": "../../node_modules/moment/locale/gd.js",
	"./gl": "../../node_modules/moment/locale/gl.js",
	"./gl.js": "../../node_modules/moment/locale/gl.js",
	"./gom-latn": "../../node_modules/moment/locale/gom-latn.js",
	"./gom-latn.js": "../../node_modules/moment/locale/gom-latn.js",
	"./gu": "../../node_modules/moment/locale/gu.js",
	"./gu.js": "../../node_modules/moment/locale/gu.js",
	"./he": "../../node_modules/moment/locale/he.js",
	"./he.js": "../../node_modules/moment/locale/he.js",
	"./hi": "../../node_modules/moment/locale/hi.js",
	"./hi.js": "../../node_modules/moment/locale/hi.js",
	"./hr": "../../node_modules/moment/locale/hr.js",
	"./hr.js": "../../node_modules/moment/locale/hr.js",
	"./hu": "../../node_modules/moment/locale/hu.js",
	"./hu.js": "../../node_modules/moment/locale/hu.js",
	"./hy-am": "../../node_modules/moment/locale/hy-am.js",
	"./hy-am.js": "../../node_modules/moment/locale/hy-am.js",
	"./id": "../../node_modules/moment/locale/id.js",
	"./id.js": "../../node_modules/moment/locale/id.js",
	"./is": "../../node_modules/moment/locale/is.js",
	"./is.js": "../../node_modules/moment/locale/is.js",
	"./it": "../../node_modules/moment/locale/it.js",
	"./it.js": "../../node_modules/moment/locale/it.js",
	"./ja": "../../node_modules/moment/locale/ja.js",
	"./ja.js": "../../node_modules/moment/locale/ja.js",
	"./jv": "../../node_modules/moment/locale/jv.js",
	"./jv.js": "../../node_modules/moment/locale/jv.js",
	"./ka": "../../node_modules/moment/locale/ka.js",
	"./ka.js": "../../node_modules/moment/locale/ka.js",
	"./kk": "../../node_modules/moment/locale/kk.js",
	"./kk.js": "../../node_modules/moment/locale/kk.js",
	"./km": "../../node_modules/moment/locale/km.js",
	"./km.js": "../../node_modules/moment/locale/km.js",
	"./kn": "../../node_modules/moment/locale/kn.js",
	"./kn.js": "../../node_modules/moment/locale/kn.js",
	"./ko": "../../node_modules/moment/locale/ko.js",
	"./ko.js": "../../node_modules/moment/locale/ko.js",
	"./ky": "../../node_modules/moment/locale/ky.js",
	"./ky.js": "../../node_modules/moment/locale/ky.js",
	"./lb": "../../node_modules/moment/locale/lb.js",
	"./lb.js": "../../node_modules/moment/locale/lb.js",
	"./lo": "../../node_modules/moment/locale/lo.js",
	"./lo.js": "../../node_modules/moment/locale/lo.js",
	"./lt": "../../node_modules/moment/locale/lt.js",
	"./lt.js": "../../node_modules/moment/locale/lt.js",
	"./lv": "../../node_modules/moment/locale/lv.js",
	"./lv.js": "../../node_modules/moment/locale/lv.js",
	"./me": "../../node_modules/moment/locale/me.js",
	"./me.js": "../../node_modules/moment/locale/me.js",
	"./mi": "../../node_modules/moment/locale/mi.js",
	"./mi.js": "../../node_modules/moment/locale/mi.js",
	"./mk": "../../node_modules/moment/locale/mk.js",
	"./mk.js": "../../node_modules/moment/locale/mk.js",
	"./ml": "../../node_modules/moment/locale/ml.js",
	"./ml.js": "../../node_modules/moment/locale/ml.js",
	"./mr": "../../node_modules/moment/locale/mr.js",
	"./mr.js": "../../node_modules/moment/locale/mr.js",
	"./ms": "../../node_modules/moment/locale/ms.js",
	"./ms-my": "../../node_modules/moment/locale/ms-my.js",
	"./ms-my.js": "../../node_modules/moment/locale/ms-my.js",
	"./ms.js": "../../node_modules/moment/locale/ms.js",
	"./mt": "../../node_modules/moment/locale/mt.js",
	"./mt.js": "../../node_modules/moment/locale/mt.js",
	"./my": "../../node_modules/moment/locale/my.js",
	"./my.js": "../../node_modules/moment/locale/my.js",
	"./nb": "../../node_modules/moment/locale/nb.js",
	"./nb.js": "../../node_modules/moment/locale/nb.js",
	"./ne": "../../node_modules/moment/locale/ne.js",
	"./ne.js": "../../node_modules/moment/locale/ne.js",
	"./nl": "../../node_modules/moment/locale/nl.js",
	"./nl-be": "../../node_modules/moment/locale/nl-be.js",
	"./nl-be.js": "../../node_modules/moment/locale/nl-be.js",
	"./nl.js": "../../node_modules/moment/locale/nl.js",
	"./nn": "../../node_modules/moment/locale/nn.js",
	"./nn.js": "../../node_modules/moment/locale/nn.js",
	"./pa-in": "../../node_modules/moment/locale/pa-in.js",
	"./pa-in.js": "../../node_modules/moment/locale/pa-in.js",
	"./pl": "../../node_modules/moment/locale/pl.js",
	"./pl.js": "../../node_modules/moment/locale/pl.js",
	"./pt": "../../node_modules/moment/locale/pt.js",
	"./pt-br": "../../node_modules/moment/locale/pt-br.js",
	"./pt-br.js": "../../node_modules/moment/locale/pt-br.js",
	"./pt.js": "../../node_modules/moment/locale/pt.js",
	"./ro": "../../node_modules/moment/locale/ro.js",
	"./ro.js": "../../node_modules/moment/locale/ro.js",
	"./ru": "../../node_modules/moment/locale/ru.js",
	"./ru.js": "../../node_modules/moment/locale/ru.js",
	"./sd": "../../node_modules/moment/locale/sd.js",
	"./sd.js": "../../node_modules/moment/locale/sd.js",
	"./se": "../../node_modules/moment/locale/se.js",
	"./se.js": "../../node_modules/moment/locale/se.js",
	"./si": "../../node_modules/moment/locale/si.js",
	"./si.js": "../../node_modules/moment/locale/si.js",
	"./sk": "../../node_modules/moment/locale/sk.js",
	"./sk.js": "../../node_modules/moment/locale/sk.js",
	"./sl": "../../node_modules/moment/locale/sl.js",
	"./sl.js": "../../node_modules/moment/locale/sl.js",
	"./sq": "../../node_modules/moment/locale/sq.js",
	"./sq.js": "../../node_modules/moment/locale/sq.js",
	"./sr": "../../node_modules/moment/locale/sr.js",
	"./sr-cyrl": "../../node_modules/moment/locale/sr-cyrl.js",
	"./sr-cyrl.js": "../../node_modules/moment/locale/sr-cyrl.js",
	"./sr.js": "../../node_modules/moment/locale/sr.js",
	"./ss": "../../node_modules/moment/locale/ss.js",
	"./ss.js": "../../node_modules/moment/locale/ss.js",
	"./sv": "../../node_modules/moment/locale/sv.js",
	"./sv.js": "../../node_modules/moment/locale/sv.js",
	"./sw": "../../node_modules/moment/locale/sw.js",
	"./sw.js": "../../node_modules/moment/locale/sw.js",
	"./ta": "../../node_modules/moment/locale/ta.js",
	"./ta.js": "../../node_modules/moment/locale/ta.js",
	"./te": "../../node_modules/moment/locale/te.js",
	"./te.js": "../../node_modules/moment/locale/te.js",
	"./tet": "../../node_modules/moment/locale/tet.js",
	"./tet.js": "../../node_modules/moment/locale/tet.js",
	"./tg": "../../node_modules/moment/locale/tg.js",
	"./tg.js": "../../node_modules/moment/locale/tg.js",
	"./th": "../../node_modules/moment/locale/th.js",
	"./th.js": "../../node_modules/moment/locale/th.js",
	"./tl-ph": "../../node_modules/moment/locale/tl-ph.js",
	"./tl-ph.js": "../../node_modules/moment/locale/tl-ph.js",
	"./tlh": "../../node_modules/moment/locale/tlh.js",
	"./tlh.js": "../../node_modules/moment/locale/tlh.js",
	"./tr": "../../node_modules/moment/locale/tr.js",
	"./tr.js": "../../node_modules/moment/locale/tr.js",
	"./tzl": "../../node_modules/moment/locale/tzl.js",
	"./tzl.js": "../../node_modules/moment/locale/tzl.js",
	"./tzm": "../../node_modules/moment/locale/tzm.js",
	"./tzm-latn": "../../node_modules/moment/locale/tzm-latn.js",
	"./tzm-latn.js": "../../node_modules/moment/locale/tzm-latn.js",
	"./tzm.js": "../../node_modules/moment/locale/tzm.js",
	"./ug-cn": "../../node_modules/moment/locale/ug-cn.js",
	"./ug-cn.js": "../../node_modules/moment/locale/ug-cn.js",
	"./uk": "../../node_modules/moment/locale/uk.js",
	"./uk.js": "../../node_modules/moment/locale/uk.js",
	"./ur": "../../node_modules/moment/locale/ur.js",
	"./ur.js": "../../node_modules/moment/locale/ur.js",
	"./uz": "../../node_modules/moment/locale/uz.js",
	"./uz-latn": "../../node_modules/moment/locale/uz-latn.js",
	"./uz-latn.js": "../../node_modules/moment/locale/uz-latn.js",
	"./uz.js": "../../node_modules/moment/locale/uz.js",
	"./vi": "../../node_modules/moment/locale/vi.js",
	"./vi.js": "../../node_modules/moment/locale/vi.js",
	"./x-pseudo": "../../node_modules/moment/locale/x-pseudo.js",
	"./x-pseudo.js": "../../node_modules/moment/locale/x-pseudo.js",
	"./yo": "../../node_modules/moment/locale/yo.js",
	"./yo.js": "../../node_modules/moment/locale/yo.js",
	"./zh-cn": "../../node_modules/moment/locale/zh-cn.js",
	"./zh-cn.js": "../../node_modules/moment/locale/zh-cn.js",
	"./zh-hk": "../../node_modules/moment/locale/zh-hk.js",
	"./zh-hk.js": "../../node_modules/moment/locale/zh-hk.js",
	"./zh-tw": "../../node_modules/moment/locale/zh-tw.js",
	"./zh-tw.js": "../../node_modules/moment/locale/zh-tw.js"
};


function webpackContext(req) {
	var id = webpackContextResolve(req);
	var module = __webpack_require__(id);
	return module;
}
function webpackContextResolve(req) {
	var id = map[req];
	if(!(id + 1)) { // check for number or string
		var e = new Error('Cannot find module "' + req + '".');
		e.code = 'MODULE_NOT_FOUND';
		throw e;
	}
	return id;
}
webpackContext.keys = function webpackContextKeys() {
	return Object.keys(map);
};
webpackContext.resolve = webpackContextResolve;
module.exports = webpackContext;
webpackContext.id = "../../node_modules/moment/locale sync recursive ^\\.\\/.*$";

/***/ }),

/***/ "../core-ui-fabric-samples/lib/component/AddressForm.js":
/*!**************************************************************!*\
  !*** ../core-ui-fabric-samples/lib/component/AddressForm.js ***!
  \**************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

var __extends = (this && this.__extends) || (function () {
    var extendStatics = Object.setPrototypeOf ||
        ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
        function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
Object.defineProperty(exports, "__esModule", { value: true });
var React = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
var BoundTextField_1 = __webpack_require__(/*! @twii/core-ui-fabric/lib/component/BoundTextField */ "../core-ui-fabric/lib/component/BoundTextField.js");
var BoundDropdown_1 = __webpack_require__(/*! @twii/core-ui-fabric/lib/component/BoundDropdown */ "../core-ui-fabric/lib/component/BoundDropdown.js");
var StateOptionListStore_1 = __webpack_require__(/*! ../model/StateOptionListStore */ "../core-ui-fabric-samples/lib/model/StateOptionListStore.js");
var AddressForm = /** @class */ (function (_super) {
    __extends(AddressForm, _super);
    function AddressForm() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    AddressForm.prototype.render = function () {
        return (React.createElement("div", { className: "address-form" },
            React.createElement(BoundTextField_1.BoundTextField, { label: "Line 1", binding: { target: this.props.address, key: "line1" } }),
            React.createElement(BoundTextField_1.BoundTextField, { label: "Line 2", binding: { target: this.props.address, key: "line2" } }),
            React.createElement(BoundTextField_1.BoundTextField, { label: "Suburb", binding: { target: this.props.address, key: "suburb" } }),
            React.createElement(BoundDropdown_1.BoundDropdown, { label: "State", binding: { target: this.props.address, key: "state" }, optionList: StateOptionListStore_1.StateOptionListStore, sortOptions: true }),
            React.createElement(BoundTextField_1.BoundTextField, { label: "Postcode", binding: { target: this.props.address, key: "postcode" } })));
    };
    return AddressForm;
}(React.Component));
exports.AddressForm = AddressForm;
exports.default = AddressForm;


/***/ }),

/***/ "../core-ui-fabric-samples/lib/component/PersonForm.js":
/*!*************************************************************!*\
  !*** ../core-ui-fabric-samples/lib/component/PersonForm.js ***!
  \*************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

var __extends = (this && this.__extends) || (function () {
    var extendStatics = Object.setPrototypeOf ||
        ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
        function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
Object.defineProperty(exports, "__esModule", { value: true });
var React = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
var Person_1 = __webpack_require__(/*! ../model/Person */ "../core-ui-fabric-samples/lib/model/Person.js");
var BoundTextField_1 = __webpack_require__(/*! @twii/core-ui-fabric/lib/component/BoundTextField */ "../core-ui-fabric/lib/component/BoundTextField.js");
var BoundMomentField_1 = __webpack_require__(/*! @twii/core-ui-fabric/lib/component/BoundMomentField */ "../core-ui-fabric/lib/component/BoundMomentField.js");
var BoundCheckbox_1 = __webpack_require__(/*! @twii/core-ui-fabric/lib/component/BoundCheckbox */ "../core-ui-fabric/lib/component/BoundCheckbox.js");
var AddressForm_1 = __webpack_require__(/*! ./AddressForm */ "../core-ui-fabric-samples/lib/component/AddressForm.js");
var PersonForm = /** @class */ (function (_super) {
    __extends(PersonForm, _super);
    function PersonForm() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    PersonForm.prototype.render = function () {
        return (React.createElement("div", { className: "person-form", style: { padding: 8 } },
            React.createElement(BoundTextField_1.BoundTextField, { label: "First Name", binding: { target: this.props.person, key: "firstName" } }),
            React.createElement(BoundTextField_1.BoundTextField, { label: "Middle Name", binding: { target: this.props.person, key: "middleName" } }),
            React.createElement(BoundTextField_1.BoundTextField, { label: "Last Name", binding: { target: this.props.person, key: "lastName" } }),
            React.createElement(BoundMomentField_1.BoundMomentField, { label: "Date of Birth", binding: { target: this.props.person, key: "dob" } }),
            React.createElement(BoundCheckbox_1.BoundCheckbox, { label: "Opt In", binding: { target: this.props.person, key: "optIn" }, styles: { root: { marginTop: 8 } } }),
            React.createElement(AddressForm_1.AddressForm, { address: this.props.person.address })));
    };
    return PersonForm;
}(React.Component));
exports.PersonForm = PersonForm;
var PersonFormSamples = /** @class */ (function (_super) {
    __extends(PersonFormSamples, _super);
    function PersonFormSamples() {
        var _this = _super !== null && _super.apply(this, arguments) || this;
        _this._person = new Person_1.Person();
        return _this;
    }
    PersonFormSamples.prototype.render = function () {
        return (React.createElement("div", { className: "person-form-samples", style: { padding: 8 } },
            React.createElement("h2", null, "Person Form Samples"),
            React.createElement(PersonForm, { person: this._person }),
            React.createElement("hr", null),
            React.createElement(PersonForm, { person: this._person })));
    };
    return PersonFormSamples;
}(React.Component));
exports.PersonFormSamples = PersonFormSamples;
exports.default = PersonFormSamples;


/***/ }),

/***/ "../core-ui-fabric-samples/lib/model/Address.js":
/*!******************************************************!*\
  !*** ../core-ui-fabric-samples/lib/model/Address.js ***!
  \******************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
Object.defineProperty(exports, "__esModule", { value: true });
var mobx_1 = __webpack_require__(/*! mobx */ "../../node_modules/mobx/lib/mobx.module.js");
var Address = /** @class */ (function () {
    function Address() {
    }
    Address.prototype.clear = function () {
        this.line1 = undefined;
        this.line2 = undefined;
        this.suburb = undefined;
        this.state = undefined;
        this.postcode = undefined;
    };
    __decorate([
        mobx_1.observable
    ], Address.prototype, "line1", void 0);
    __decorate([
        mobx_1.observable
    ], Address.prototype, "line2", void 0);
    __decorate([
        mobx_1.observable
    ], Address.prototype, "suburb", void 0);
    __decorate([
        mobx_1.observable
    ], Address.prototype, "state", void 0);
    __decorate([
        mobx_1.observable
    ], Address.prototype, "postcode", void 0);
    __decorate([
        mobx_1.action
    ], Address.prototype, "clear", null);
    return Address;
}());
exports.Address = Address;
exports.default = Address;


/***/ }),

/***/ "../core-ui-fabric-samples/lib/model/Person.js":
/*!*****************************************************!*\
  !*** ../core-ui-fabric-samples/lib/model/Person.js ***!
  \*****************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
Object.defineProperty(exports, "__esModule", { value: true });
var mobx_1 = __webpack_require__(/*! mobx */ "../../node_modules/mobx/lib/mobx.module.js");
var Address_1 = __webpack_require__(/*! ./Address */ "../core-ui-fabric-samples/lib/model/Address.js");
var Person = /** @class */ (function () {
    function Person() {
        this.address = new Address_1.Address();
        this.optIn = false;
    }
    Person.prototype.clear = function () {
        this.firstName = undefined;
        this.middleName = undefined;
        this.lastName = undefined;
        this.dob = undefined;
        this.optIn = false;
        this.address.clear();
    };
    __decorate([
        mobx_1.observable
    ], Person.prototype, "firstName", void 0);
    __decorate([
        mobx_1.observable
    ], Person.prototype, "middleName", void 0);
    __decorate([
        mobx_1.observable
    ], Person.prototype, "lastName", void 0);
    __decorate([
        mobx_1.observable
    ], Person.prototype, "dob", void 0);
    __decorate([
        mobx_1.observable
    ], Person.prototype, "address", void 0);
    __decorate([
        mobx_1.observable
    ], Person.prototype, "optIn", void 0);
    __decorate([
        mobx_1.action
    ], Person.prototype, "clear", null);
    return Person;
}());
exports.Person = Person;
exports.default = Person;


/***/ }),

/***/ "../core-ui-fabric-samples/lib/model/StateOptionListStore.js":
/*!*******************************************************************!*\
  !*** ../core-ui-fabric-samples/lib/model/StateOptionListStore.js ***!
  \*******************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

Object.defineProperty(exports, "__esModule", { value: true });
var OptionListModel_1 = __webpack_require__(/*! @twii/core/lib/model/OptionListModel */ "../core/lib/model/OptionListModel.js");
var StateOptionListStore = new OptionListModel_1.OptionListModel([
    { key: "ACT", text: "Australian Capital Territory" },
    { key: "NSW", text: "New South Wales" },
    { key: "NT", text: "Northern Territory" },
    { key: "QLD", text: "Queensland" },
    { key: "SA", text: "South Australia" },
    { key: "TAS", text: "Tasmania" },
    { key: "VIC", text: "Victoria" },
    { key: "WA", text: "Western Australia" }
]);
exports.StateOptionListStore = StateOptionListStore;
exports.default = StateOptionListStore;


/***/ }),

/***/ "../core-ui-fabric/lib/component/BoundCheckbox.js":
/*!********************************************************!*\
  !*** ../core-ui-fabric/lib/component/BoundCheckbox.js ***!
  \********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

var __extends = (this && this.__extends) || (function () {
    var extendStatics = Object.setPrototypeOf ||
        ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
        function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
var __assign = (this && this.__assign) || Object.assign || function(t) {
    for (var s, i = 1, n = arguments.length; i < n; i++) {
        s = arguments[i];
        for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
            t[p] = s[p];
    }
    return t;
};
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
Object.defineProperty(exports, "__esModule", { value: true });
var React = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
var Checkbox_1 = __webpack_require__(/*! office-ui-fabric-react/lib/Checkbox */ "../../node_modules/office-ui-fabric-react/lib/Checkbox.js");
var mobx_react_1 = __webpack_require__(/*! mobx-react */ "../../node_modules/mobx-react/index.module.js");
var BoundHelper_1 = __webpack_require__(/*! @twii/core-ui/lib/component/BoundHelper */ "../core-ui/lib/component/BoundHelper.js");
var BoundCheckbox = /** @class */ (function (_super) {
    __extends(BoundCheckbox, _super);
    function BoundCheckbox() {
        var _this = _super !== null && _super.apply(this, arguments) || this;
        _this._onChanged = function (e, checked) {
            BoundHelper_1.setBoundValue(_this.props, checked);
            if (_this.props.onChange) {
                _this.props.onChange(e, checked);
            }
        };
        return _this;
    }
    BoundCheckbox.prototype.render = function () {
        var value = BoundHelper_1.getBoundValue(this.props);
        return React.createElement(Checkbox_1.Checkbox, __assign({}, this.props, { checked: value, onChange: this._onChanged }));
    };
    BoundCheckbox = __decorate([
        mobx_react_1.observer
    ], BoundCheckbox);
    return BoundCheckbox;
}(React.Component));
exports.BoundCheckbox = BoundCheckbox;


/***/ }),

/***/ "../core-ui-fabric/lib/component/BoundDropdown.js":
/*!********************************************************!*\
  !*** ../core-ui-fabric/lib/component/BoundDropdown.js ***!
  \********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

var __extends = (this && this.__extends) || (function () {
    var extendStatics = Object.setPrototypeOf ||
        ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
        function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
var __assign = (this && this.__assign) || Object.assign || function(t) {
    for (var s, i = 1, n = arguments.length; i < n; i++) {
        s = arguments[i];
        for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
            t[p] = s[p];
    }
    return t;
};
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
Object.defineProperty(exports, "__esModule", { value: true });
var React = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
var Dropdown_1 = __webpack_require__(/*! office-ui-fabric-react/lib/Dropdown */ "../../node_modules/office-ui-fabric-react/lib/Dropdown.js");
var mobx_react_1 = __webpack_require__(/*! mobx-react */ "../../node_modules/mobx-react/index.module.js");
var BoundHelper_1 = __webpack_require__(/*! @twii/core-ui/lib/component/BoundHelper */ "../core-ui/lib/component/BoundHelper.js");
var BoundDropdown = /** @class */ (function (_super) {
    __extends(BoundDropdown, _super);
    function BoundDropdown() {
        var _this = _super !== null && _super.apply(this, arguments) || this;
        _this._onChanged = function (option, index) {
            BoundHelper_1.setBoundValue(_this.props, String(option.key));
            if (_this.props.onChanged) {
                _this.props.onChanged(option, index);
            }
        };
        return _this;
    }
    BoundDropdown.prototype.render = function () {
        var options = this.props.options;
        if (!options) {
            var optionsList = this.props.optionList;
            if (optionsList) {
                options = this.props.sortOptions ? optionsList.itemsSorted : optionsList.itemsView;
            }
        }
        if (!options) {
            options = [];
        }
        if (this.props.includeEmptyOption) {
            options.unshift({ key: "", text: "" });
        }
        var value = BoundHelper_1.getBoundValue(this.props);
        return React.createElement(Dropdown_1.Dropdown, __assign({}, this.props, { options: options, onChanged: this._onChanged, selectedKey: value || "" }));
    };
    BoundDropdown = __decorate([
        mobx_react_1.observer
    ], BoundDropdown);
    return BoundDropdown;
}(React.Component));
exports.BoundDropdown = BoundDropdown;


/***/ }),

/***/ "../core-ui-fabric/lib/component/BoundMomentField.js":
/*!***********************************************************!*\
  !*** ../core-ui-fabric/lib/component/BoundMomentField.js ***!
  \***********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

var __extends = (this && this.__extends) || (function () {
    var extendStatics = Object.setPrototypeOf ||
        ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
        function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
var __assign = (this && this.__assign) || Object.assign || function(t) {
    for (var s, i = 1, n = arguments.length; i < n; i++) {
        s = arguments[i];
        for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
            t[p] = s[p];
    }
    return t;
};
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
Object.defineProperty(exports, "__esModule", { value: true });
var React = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
var mobx_react_1 = __webpack_require__(/*! mobx-react */ "../../node_modules/mobx-react/index.module.js");
var MomentField_1 = __webpack_require__(/*! ./MomentField */ "../core-ui-fabric/lib/component/MomentField.js");
var BoundHelper_1 = __webpack_require__(/*! @twii/core-ui/lib/component/BoundHelper */ "../core-ui/lib/component/BoundHelper.js");
var BoundMomentField = /** @class */ (function (_super) {
    __extends(BoundMomentField, _super);
    function BoundMomentField() {
        var _this = _super !== null && _super.apply(this, arguments) || this;
        _this._onChanged = function (value) {
            BoundHelper_1.setBoundValue(_this.props, value);
            if (_this.props.onChange) {
                _this.props.onChange(value);
            }
        };
        return _this;
    }
    BoundMomentField.prototype.render = function () {
        var value = BoundHelper_1.getBoundValue(this.props);
        return React.createElement(MomentField_1.MomentField, __assign({}, this.props, { onChange: this._onChanged, value: value }));
    };
    BoundMomentField = __decorate([
        mobx_react_1.observer
    ], BoundMomentField);
    return BoundMomentField;
}(React.Component));
exports.BoundMomentField = BoundMomentField;


/***/ }),

/***/ "../core-ui-fabric/lib/component/MomentField.classNames.js":
/*!*****************************************************************!*\
  !*** ../core-ui-fabric/lib/component/MomentField.classNames.js ***!
  \*****************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

Object.defineProperty(exports, "__esModule", { value: true });
var styling_1 = __webpack_require__(/*! @uifabric/styling */ "../../node_modules/@uifabric/styling/lib/index.js");
var utilities_1 = __webpack_require__(/*! @uifabric/utilities */ "../../node_modules/@uifabric/utilities/lib/index.js");
var getClassNames = utilities_1.memoizeFunction(function (styles, className) {
    return {
        root: styling_1.mergeStyles("moment-field", className, styles.root),
        inputContainer: styling_1.mergeStyles("moment-field-input-container", styles.inputContainer),
        textField: styling_1.mergeStyles("moment-field-text-field", styles.textField),
        calendarButtonContainer: styling_1.mergeStyles("moment-field-calendar-container", styles.calendarButtonContainer),
        calendarButton: styling_1.mergeStyles("moment-field-calendar-button", styles.calendarButton)
    };
});
exports.getClassNames = getClassNames;


/***/ }),

/***/ "../core-ui-fabric/lib/component/MomentField.js":
/*!******************************************************!*\
  !*** ../core-ui-fabric/lib/component/MomentField.js ***!
  \******************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

var __extends = (this && this.__extends) || (function () {
    var extendStatics = Object.setPrototypeOf ||
        ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
        function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
var __assign = (this && this.__assign) || Object.assign || function(t) {
    for (var s, i = 1, n = arguments.length; i < n; i++) {
        s = arguments[i];
        for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
            t[p] = s[p];
    }
    return t;
};
Object.defineProperty(exports, "__esModule", { value: true });
var React = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
var Calendar_1 = __webpack_require__(/*! office-ui-fabric-react/lib/Calendar */ "../../node_modules/office-ui-fabric-react/lib/Calendar.js");
var Callout_1 = __webpack_require__(/*! office-ui-fabric-react/lib/Callout */ "../../node_modules/office-ui-fabric-react/lib/Callout.js");
var TextField_1 = __webpack_require__(/*! office-ui-fabric-react/lib/TextField */ "../../node_modules/office-ui-fabric-react/lib/TextField.js");
var Button_1 = __webpack_require__(/*! office-ui-fabric-react/lib/Button */ "../../node_modules/office-ui-fabric-react/lib/Button.js");
var StringUtils_1 = __webpack_require__(/*! @twii/core/lib/StringUtils */ "../core/lib/StringUtils.js");
var moment = __webpack_require__(/*! moment */ "../../node_modules/moment/moment.js");
var MomentField_styles_1 = __webpack_require__(/*! ./MomentField.styles */ "../core-ui-fabric/lib/component/MomentField.styles.js");
var MomentField_classNames_1 = __webpack_require__(/*! ./MomentField.classNames */ "../core-ui-fabric/lib/component/MomentField.classNames.js");
var defaultFormats = [
    "DD/MM/YYYY",
    "D/M/YY",
    "D/MMM/YY",
    "D/MMMM/YY",
    "D/M/YYYY",
    "D/MMM/YYYY",
    "D/MMMM/YYYY",
    "D-M-YY",
    "D-MMM-YY",
    "D-MMMM-YY",
    "D-M-YYYY",
    "D-MMM-YYYY",
    "D-MMMM-YYYY",
    "D M YY",
    "D MMM YY",
    "D MMMM YY",
    "D M YYYY",
    "D MMM YYYY",
    "D MMMM YYYY",
    "YYYY-M-D",
    "MMM D YYYY",
    "MMM D, YYYY"
];
var defaultCalendarStrings = {
    months: [
        "January",
        "February",
        "March",
        "April",
        "May",
        "June",
        "July",
        "August",
        "September",
        "October",
        "November",
        "December"
    ],
    shortMonths: [
        "Jan",
        "Feb",
        "Mar",
        "Apr",
        "May",
        "Jun",
        "Jul",
        "Aug",
        "Sep",
        "Oct",
        "Nov",
        "Dec"
    ],
    days: [
        "Sunday",
        "Monday",
        "Tuesday",
        "Wednesday",
        "Thursday",
        "Friday",
        "Saturday"
    ],
    shortDays: [
        "S",
        "M",
        "T",
        "W",
        "T",
        "F",
        "S"
    ],
    goToToday: "Go to today"
};
var Defaults = {
    calendarStrings: defaultCalendarStrings,
    formats: defaultFormats
};
exports.Defaults = Defaults;
var DefaultMomentFieldProps = {
    isRequired: false,
    isMonthPickerVisible: true
};
/**
 * The fabric date picker's not quite sufficient for our purposes - this lifts most of the code from there, with overrides where necessary
 */
var MomentField = /** @class */ (function (_super) {
    __extends(MomentField, _super);
    function MomentField(props) {
        var _this = _super.call(this, props) || this;
        _this._onSelectDate = function (date) {
            var v = moment(date, _this.state.format);
            _this.setState({
                selectedDate: date,
                text: _this._formatDate(date),
                calendarOn: false
            });
            if (_this.props.onSelectDate) {
                _this.props.onSelectDate(date);
            }
            if (_this.props.onChange) {
                _this.props.onChange(v);
            }
        };
        _this._onCalloutPositioned = function () {
            if (_this._calendarRef) {
                _this._calendarRef.focus();
            }
        };
        _this._onCalendarDismissed = function () {
            _this._dismissCalendar();
        };
        _this._onTextFieldChanged = function (text) {
            var v = StringUtils_1.isNotBlank(text) ? _this._parseDate(text) : undefined;
            _this.setState({
                selectedDate: v && v.isValid() ? v.toDate() : null,
                text: text,
                format: v && v.isValid() ? String(v.creationData().format) : _this.formats[0]
            });
            if (_this.props.onChange) {
                _this.props.onChange(v);
            }
        };
        _this._onClickCalendarButton = function () {
            _this.setState({ calendarOn: !_this.state.calendarOn });
        };
        _this._onCalendarRef = function (ref) {
            _this._calendarRef = ref;
        };
        _this._onCalloutTargetRef = function (ref) {
            _this._calloutTargetRef = ref;
        };
        _this._onRenderSuffix = function () {
            if (!_this.props.hideCalendar) {
                return (React.createElement("div", { className: _this._classNames.calendarButtonContainer, ref: _this._onCalloutTargetRef },
                    React.createElement(Button_1.IconButton, { className: _this._classNames.calendarButton, iconProps: { iconName: "Calendar" }, onClick: _this._onClickCalendarButton })));
            }
            return null;
        };
        var value = _this.props.value;
        var format = value ? String(value.creationData().format) : _this.formats[0];
        var text;
        if (value) {
            var input = value.creationData().input;
            if (input) {
                if (input instanceof Date) {
                    text = value.format(format);
                }
                else {
                    text = String(input);
                }
            }
        }
        _this.state = {
            selectedDate: value && value.isValid() ? value.toDate() : null,
            text: text || "",
            format: format,
            calendarOn: false
        };
        return _this;
    }
    MomentField.prototype.componentWillReceiveProps = function (nextProps) {
        var value = nextProps.value;
        var format = value ? String(value.creationData().format) : this.formats[0];
        var text;
        if (value) {
            var input = value.creationData().input;
            if (input) {
                if (input instanceof Date) {
                    text = value.format(format);
                }
                else {
                    text = String(input);
                }
            }
        }
        this.setState({
            selectedDate: value ? value.toDate() : null,
            text: text || "",
            format: format
        });
    };
    Object.defineProperty(MomentField.prototype, "formats", {
        get: function () {
            return this.props.formats && this.props.formats.length > 0 ? this.props.formats : Defaults.formats;
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(MomentField.prototype, "calendarStrings", {
        get: function () {
            return this.props.calendarStrings || Defaults.calendarStrings;
        },
        enumerable: true,
        configurable: true
    });
    MomentField.prototype._showCalendar = function () {
        this.setState({
            calendarOn: true
        });
    };
    MomentField.prototype._dismissCalendar = function () {
        this.setState({
            calendarOn: false
        });
    };
    MomentField.prototype._formatDate = function (date) {
        if (date) {
            return moment(date).format(this.state.format || this.formats[0]);
        }
        return "";
    };
    MomentField.prototype._parseDate = function (text) {
        return moment(text, this.formats, true);
    };
    MomentField.prototype.render = function () {
        this._classNames = MomentField_classNames_1.getClassNames(MomentField_styles_1.getStyles(null, this.props.styles), this.props.className);
        return (React.createElement("div", { className: this._classNames.root },
            React.createElement("div", { className: this._classNames.inputContainer },
                React.createElement(TextField_1.TextField, { className: this._classNames.textField, ariaLabel: this.props.ariaLabel, label: this.props.label, "aria-haspopup": true, required: this.props.isRequired, onChanged: this._onTextFieldChanged, placeholder: this.props.placeholder, readOnly: this.props.readOnly, disabled: this.props.disabled, value: this.state.text || "", onRenderLabel: this.props.onRenderLabel, onRenderSuffix: this._onRenderSuffix })),
            this.state.calendarOn &&
                (React.createElement(Callout_1.Callout, __assign({}, this.props.calloutProps, { target: this._calloutTargetRef, onDismiss: this._onCalendarDismissed, directionalHint: 4 /* bottomLeftEdge */, onPositioned: this._onCalloutPositioned }),
                    React.createElement(Calendar_1.Calendar, { strings: this.calendarStrings, value: this.state.selectedDate, onSelectDate: this._onSelectDate, isMonthPickerVisible: this.props.isMonthPickerVisible, ref: this._onCalendarRef, navigationIcons: { leftNavigation: "ChevronLeft", rightNavigation: "ChevronRight" } })))));
    };
    MomentField.defaultProps = DefaultMomentFieldProps;
    return MomentField;
}(React.Component));
exports.MomentField = MomentField;


/***/ }),

/***/ "../core-ui-fabric/lib/component/MomentField.styles.js":
/*!*************************************************************!*\
  !*** ../core-ui-fabric/lib/component/MomentField.styles.js ***!
  \*************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

Object.defineProperty(exports, "__esModule", { value: true });
var styling_1 = __webpack_require__(/*! @uifabric/styling */ "../../node_modules/@uifabric/styling/lib/index.js");
var utilities_1 = __webpack_require__(/*! @uifabric/utilities */ "../../node_modules/@uifabric/utilities/lib/index.js");
var defaultStyles = function (theme) {
    return {
        root: {},
        inputContainer: {},
        textField: {},
        calendarButtonContainer: {},
        calendarButton: {}
    };
};
exports.defaultStyles = defaultStyles;
var Defaults = {
    styles: defaultStyles
};
exports.Defaults = Defaults;
var getStyles = utilities_1.memoizeFunction(function (theme, customStyles) {
    return styling_1.concatStyleSets(Defaults.styles(theme || styling_1.getTheme()), customStyles);
});
exports.getStyles = getStyles;


/***/ }),

/***/ "../core/lib/KeyMapFuncs.js":
/*!**********************************!*\
  !*** ../core/lib/KeyMapFuncs.js ***!
  \**********************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

Object.defineProperty(exports, "__esModule", { value: true });
var MomentUtils_1 = __webpack_require__(/*! ./MomentUtils */ "../core/lib/MomentUtils.js");
var moment = __webpack_require__(/*! moment */ "../../node_modules/moment/moment.js");
var defaultKeyMap = function (value, key) {
    return value ? value[key] : undefined;
};
exports.defaultKeyMap = defaultKeyMap;
var dateString = function (formats, keyMapFunc) {
    return function (value, key) {
        var f = keyMapFunc || defaultKeyMap;
        var keyValue = f(value, key);
        if (keyValue !== undefined) {
            var m = moment(String(keyValue), formats, true);
            return MomentUtils_1.isValidMoment(m) ? m.toDate() : undefined;
        }
    };
};
exports.dateString = dateString;
var mapped = function (map) {
    return function (value, key) {
        return (map[key] || defaultKeyMap)(value, key);
    };
};
exports.mapped = mapped;


/***/ }),

/***/ "../core/lib/MomentUtils.js":
/*!**********************************!*\
  !*** ../core/lib/MomentUtils.js ***!
  \**********************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

Object.defineProperty(exports, "__esModule", { value: true });
var moment = __webpack_require__(/*! moment */ "../../node_modules/moment/moment.js");
var StringUtils_1 = __webpack_require__(/*! ./StringUtils */ "../core/lib/StringUtils.js");
var isValidMoment = function (value) {
    return value && value.isValid() ? true : false;
};
exports.isValidMoment = isValidMoment;
var isMomentAfter = function (value, test, inclusive) {
    if (inclusive === void 0) { inclusive = true; }
    if (isValidMoment(test)) {
        if (isValidMoment(value)) {
            return inclusive ? value.isSameOrAfter(test) : value.isAfter(test);
        }
        return false;
    }
    return true;
};
exports.isMomentAfter = isMomentAfter;
var isDateAfter = function (value, test, inclusive) {
    if (inclusive === void 0) { inclusive = true; }
    return isMomentAfter(value ? moment(value) : null, test ? moment(test) : null, inclusive);
};
exports.isDateAfter = isDateAfter;
var isMomentBefore = function (value, test, inclusive) {
    if (inclusive === void 0) { inclusive = true; }
    if (isValidMoment(test)) {
        if (isValidMoment(value)) {
            return inclusive ? value.isSameOrBefore(test) : value.isBefore(test);
        }
        return false;
    }
    return true;
};
exports.isMomentBefore = isMomentBefore;
var isDateBefore = function (value, test, inclusive) {
    if (inclusive === void 0) { inclusive = true; }
    return isMomentBefore(value ? moment(value) : null, test ? moment(test) : null, inclusive);
};
exports.isDateBefore = isDateBefore;
var momentFromString = function (value, format) {
    return StringUtils_1.isNotBlank(value) ? moment(value, format, true) : undefined;
};
exports.momentFromString = momentFromString;
var momentToString = function (value, format) {
    return isValidMoment(value) ? value.format(format) : undefined;
};
exports.momentToString = momentToString;
var dateToString = function (value, format) {
    return momentToString(value ? moment(value) : undefined, format);
};
exports.dateToString = dateToString;
var dateFromString = function (value, format) {
    var m = momentFromString(value, format);
    return isValidMoment(m) ? m.toDate() : undefined;
};
exports.dateFromString = dateFromString;
var momentToISOString = function (value) {
    return value ? value.toISOString() : undefined;
};
exports.momentToISOString = momentToISOString;
var dateToISOString = function (value) {
    return value ? momentToISOString(moment(value)) : undefined;
};
exports.dateToISOString = dateToISOString;
var io = function (value, inFormat, outFormat) {
    return momentToString(momentFromString(value, inFormat), outFormat);
};
exports.io = io;


/***/ }),

/***/ "../core/lib/SortUtils.js":
/*!********************************!*\
  !*** ../core/lib/SortUtils.js ***!
  \********************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

Object.defineProperty(exports, "__esModule", { value: true });
var StringUtils = __webpack_require__(/*! ./StringUtils */ "../core/lib/StringUtils.js");
var KeyMapFuncs_1 = __webpack_require__(/*! ./KeyMapFuncs */ "../core/lib/KeyMapFuncs.js");
var LangUtils_1 = __webpack_require__(/*! ./LangUtils */ "../core/lib/LangUtils.js");
var toSortNumber = function (o) {
    if (LangUtils_1.isNumber(o)) {
        return o;
    }
    if (LangUtils_1.isDate(o)) {
        return o.getTime();
    }
    if (LangUtils_1.isString(o)) {
        return parseInt(o);
    }
    if (LangUtils_1.isBoolean(o)) {
        return o ? 1 : 0;
    }
    return 0;
};
exports.toSortNumber = toSortNumber;
var toSortString = function (o) {
    var s;
    if (LangUtils_1.isString(o)) {
        s = o;
    }
    else if (LangUtils_1.isObject(o)) {
        s = String(o);
        if (s === String({})) {
            s = JSON.stringify(o);
        }
    }
    else {
        s = String(o);
    }
    return s;
};
exports.toSortString = toSortString;
var compare = function (l, r, sort) {
    var result;
    if (LangUtils_1.isNumber(l)) {
        result = r !== undefined && r !== null ? l - toSortNumber(r) : 1;
    }
    else if (LangUtils_1.isDate(l)) {
        result = r ? l.getTime() - toSortNumber(r) : 1;
    }
    else if (LangUtils_1.isString(l)) {
        result = r !== undefined && r !== null ? l.localeCompare(toSortString(r)) : 1;
    }
    else if (LangUtils_1.isBoolean(l)) {
        result = r !== undefined && r !== null ? (l ? 1 : 0) - toSortNumber(r) : 1;
    }
    else if (LangUtils_1.isObject(l)) {
        result = r !== undefined && r !== null ? toSortString(l).localeCompare(toSortString(r)) : 1;
    }
    else {
        result = r ? -1 : 0;
    }
    if (sort && sort.descending) {
        result = 0 - result;
    }
    return result;
};
exports.compare = compare;
var sort = function (items, sort, keyMap) {
    if (keyMap === void 0) { keyMap = KeyMapFuncs_1.defaultKeyMap; }
    return items && sort && StringUtils.isNotBlank(sort.field)
        ? items.sort(function (a, b) { return compare(keyMap(a, sort.field), keyMap(b, sort.field), sort); }) : items;
};
exports.sort = sort;


/***/ }),

/***/ "../core/lib/model/OptionListModel.js":
/*!********************************************!*\
  !*** ../core/lib/model/OptionListModel.js ***!
  \********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

var __extends = (this && this.__extends) || (function () {
    var extendStatics = Object.setPrototypeOf ||
        ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
        function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
Object.defineProperty(exports, "__esModule", { value: true });
var mobx_1 = __webpack_require__(/*! mobx */ "../../node_modules/mobx/lib/mobx.module.js");
var ListModel_1 = __webpack_require__(/*! ./ListModel */ "../core/lib/model/ListModel.js");
var SortUtils_1 = __webpack_require__(/*! ../SortUtils */ "../core/lib/SortUtils.js");
var OptionListModel = /** @class */ (function (_super) {
    __extends(OptionListModel, _super);
    function OptionListModel() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    OptionListModel.prototype.getOption = function (key, defaultOption) {
        var option = this.items.find(function (o) {
            return o.key === key;
        });
        return option || defaultOption;
    };
    Object.defineProperty(OptionListModel.prototype, "itemsSorted", {
        get: function () {
            return SortUtils_1.sort(this.itemsView, { field: "text", descending: false });
        },
        enumerable: true,
        configurable: true
    });
    __decorate([
        mobx_1.computed
    ], OptionListModel.prototype, "itemsSorted", null);
    return OptionListModel;
}(ListModel_1.ListModel));
exports.OptionListModel = OptionListModel;


/***/ })

}]);
//# sourceMappingURL=5.js.map