From 45520b7c996c883b55358d5524894b3931d68a9c Mon Sep 17 00:00:00 2001 From: Nes-si Date: Mon, 29 Oct 2018 16:26:04 +0300 Subject: [PATCH] version up to 0.7.3 --- dist/main.js | 18 +- dist/main.min.css | 688 +++++++++++++++++++++++----------------------- package-lock.json | 2 +- package.json | 2 +- 4 files changed, 355 insertions(+), 355 deletions(-) diff --git a/dist/main.js b/dist/main.js index 1750b142..c0e9c990 100644 --- a/dist/main.js +++ b/dist/main.js @@ -1,9 +1,9 @@ -!function(e){var t={};function r(n){if(t[n])return t[n].exports;var _=t[n]={i:n,l:!1,exports:{}};return e[n].call(_.exports,_,_.exports,r),_.l=!0,_.exports}r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var _ in e)r.d(n,_,function(t){return e[t]}.bind(null,_));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="/",r(r.s=390)}([function(e,t,r){"use strict";e.exports=r(392)},function(module,exports,__webpack_require__){"use strict";var evalAllowed=!1;try{eval("evalAllowed = true")}catch(e){}var platformSupported=!!Object.setPrototypeOf&&evalAllowed;module.exports=__webpack_require__(391)},function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t){function r(e,t){for(var r=0;r0&&void 0!==arguments[0]?arguments[0]:V,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case i:return _()({},e,{initEnded:!0});case a.f:return _()({},e,{initEnded:!1});case c:return _()({},e,{openedPage:t.openedPage});case o:return _()({},e,{alertShowing:!0,alertParams:t.params});case s:return _()({},e,{alertShowing:!1});case l:return _()({},e,{modalShowing:!0,modalType:t.modalType,modalParams:t.params});case u:return _()({},e,{modalShowing:!1});default:return e}}!function(){var t=r(1).default,n=r(1).leaveModule;t&&(t.register(i,"INIT_END","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register(o,"SHOW_ALERT","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register(s,"CLOSE_ALERT","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register(l,"SHOW_MODAL","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register(u,"CLOSE_MODAL","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register(c,"SET_CURRENT_PAGE","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register("app/nav/pages/PAGE_NO_SITES","PAGE_NO_SITES","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register(d,"PAGE_MODELS","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register(f,"PAGE_MODELS_ITEM","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register(p,"PAGE_CONTENT","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register(h,"PAGE_CONTENT_ITEM","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register(E,"PAGE_API","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register(m,"PAGE_SETTINGS","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register(g,"PAGE_SHARING","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register(b,"PAGE_PROFILE","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register(v,"MODAL_TYPE_FIELD","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register(O,"MODAL_TYPE_MEDIA","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register(M,"MODAL_TYPE_REFERENCE","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register(C,"MODAL_TYPE_WYSIWYG","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register(P,"MODAL_TYPE_MARKDOWN","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register(D,"MODAL_TYPE_MODEL_CHOOSE","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register("email-verify","URL_EMAIL_VERIFY","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register("password-set","URL_PASSWORD_SET","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register("password-set-success","URL_PASSWORD_SUCCESS","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register("invalid-link","URL_INVALID_LINK","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register(y,"URL_SIGN","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register(w,"URL_USERSPACE","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register(T,"URL_SITE","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register(A,"URL_MODELS","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register(k,"URL_MODEL","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register(I,"URL_CONTENT","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register(R,"URL_ITEM","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register(L,"URL_API","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register(B,"URL_SETTINGS","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register(U,"URL_SHARING","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register(S,"URL_PROFILE","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register(K,"URLS_EMAIL","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register(W,"initEnd","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register(x,"showAlert","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register(j,"closeAlert","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register(N,"showModal","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register(q,"closeModal","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register(F,"setCurrentPage","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register(V,"initialState","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register(H,"navReducer","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),n(e))}()}).call(this,r(12)(e))},function(module,__webpack_exports__,__webpack_require__){"use strict";(function(module){__webpack_require__.d(__webpack_exports__,"B",function(){return SiteData}),__webpack_require__.d(__webpack_exports__,"z",function(){return ModelData}),__webpack_require__.d(__webpack_exports__,"y",function(){return FIELD_TYPE_SHORT_TEXT}),__webpack_require__.d(__webpack_exports__,"v",function(){return FIELD_TYPE_LONG_TEXT}),__webpack_require__.d(__webpack_exports__,"u",function(){return FIELD_TYPE_INTEGER}),__webpack_require__.d(__webpack_exports__,"t",function(){return FIELD_TYPE_FLOAT}),__webpack_require__.d(__webpack_exports__,"r",function(){return FIELD_TYPE_BOOLEAN}),__webpack_require__.d(__webpack_exports__,"s",function(){return FIELD_TYPE_DATE}),__webpack_require__.d(__webpack_exports__,"w",function(){return FIELD_TYPE_MEDIA}),__webpack_require__.d(__webpack_exports__,"x",function(){return FIELD_TYPE_REFERENCE}),__webpack_require__.d(__webpack_exports__,"m",function(){return FIELD_APPEARANCE__SHORT_TEXT__SINGLE}),__webpack_require__.d(__webpack_exports__,"n",function(){return FIELD_APPEARANCE__SHORT_TEXT__SLUG}),__webpack_require__.d(__webpack_exports__,"o",function(){return FIELD_APPEARANCE__SHORT_TEXT__URL}),__webpack_require__.d(__webpack_exports__,"k",function(){return FIELD_APPEARANCE__LONG_TEXT__SINGLE}),__webpack_require__.d(__webpack_exports__,"j",function(){return FIELD_APPEARANCE__LONG_TEXT__MULTI}),__webpack_require__.d(__webpack_exports__,"l",function(){return FIELD_APPEARANCE__LONG_TEXT__WYSIWIG}),__webpack_require__.d(__webpack_exports__,"i",function(){return FIELD_APPEARANCE__LONG_TEXT__MARKDOWN}),__webpack_require__.d(__webpack_exports__,"g",function(){return FIELD_APPEARANCE__INTEGER__DECIMAL}),__webpack_require__.d(__webpack_exports__,"h",function(){return FIELD_APPEARANCE__INTEGER__RATING}),__webpack_require__.d(__webpack_exports__,"f",function(){return FIELD_APPEARANCE__FLOAT__DECIMAL}),__webpack_require__.d(__webpack_exports__,"a",function(){return FIELD_APPEARANCE__BOOLEAN__RADIO}),__webpack_require__.d(__webpack_exports__,"b",function(){return FIELD_APPEARANCE__BOOLEAN__SWITCH}),__webpack_require__.d(__webpack_exports__,"c",function(){return FIELD_APPEARANCE__DATE__DATE}),__webpack_require__.d(__webpack_exports__,"d",function(){return FIELD_APPEARANCE__DATE__DATE_ONLY}),__webpack_require__.d(__webpack_exports__,"e",function(){return FIELD_APPEARANCE__DATE__TIME_ONLY}),__webpack_require__.d(__webpack_exports__,"q",function(){return FIELD_TYPES}),__webpack_require__.d(__webpack_exports__,"D",function(){return canBeTitle}),__webpack_require__.d(__webpack_exports__,"C",function(){return canBeList}),__webpack_require__.d(__webpack_exports__,"A",function(){return ModelFieldData}),__webpack_require__.d(__webpack_exports__,"p",function(){return FIELD_NAMES_RESERVED});var core_js_modules_es6_array_iterator__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(76),core_js_modules_es6_array_iterator__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(core_js_modules_es6_array_iterator__WEBPACK_IMPORTED_MODULE_0__),core_js_modules_es6_string_iterator__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(97),core_js_modules_es6_string_iterator__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(core_js_modules_es6_string_iterator__WEBPACK_IMPORTED_MODULE_1__),core_js_modules_es6_map__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(162),core_js_modules_es6_map__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(core_js_modules_es6_map__WEBPACK_IMPORTED_MODULE_2__),core_js_modules_es7_symbol_async_iterator__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(52),core_js_modules_es7_symbol_async_iterator__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(core_js_modules_es7_symbol_async_iterator__WEBPACK_IMPORTED_MODULE_3__),core_js_modules_es6_symbol__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(53),core_js_modules_es6_symbol__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(core_js_modules_es6_symbol__WEBPACK_IMPORTED_MODULE_4__),core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(43),core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_5__),core_js_modules_es6_regexp_to_string__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(565),core_js_modules_es6_regexp_to_string__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(core_js_modules_es6_regexp_to_string__WEBPACK_IMPORTED_MODULE_6__),core_js_modules_es6_date_to_string__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(566),core_js_modules_es6_date_to_string__WEBPACK_IMPORTED_MODULE_7___default=__webpack_require__.n(core_js_modules_es6_date_to_string__WEBPACK_IMPORTED_MODULE_7__),core_js_modules_es6_regexp_replace__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(107),core_js_modules_es6_regexp_replace__WEBPACK_IMPORTED_MODULE_8___default=__webpack_require__.n(core_js_modules_es6_regexp_replace__WEBPACK_IMPORTED_MODULE_8__),core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(32),core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_9___default=__webpack_require__.n(core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_9__),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(2),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_10___default=__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_10__),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(3),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_11___default=__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_11__),parse__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(14),parse__WEBPACK_IMPORTED_MODULE_12___default=__webpack_require__.n(parse__WEBPACK_IMPORTED_MODULE_12__),utils_common__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(20);!function(){var e=__webpack_require__(1).enterModule;e&&e(module)}();var SiteData=function(){function SiteData(){_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_10___default()(this,SiteData),this.origin=null,this.domain="",this.webhook="",this.icon=null,this._name="",this._nameId="",this.owner=null,this.collaborations=[],this.models=[]}return _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_11___default()(SiteData,[{key:"setOrigin",value:function(e){return this.origin=e,e.get("name")&&(this.name=e.get("name")),e.get("nameId")&&(this.nameId=e.get("nameId")),e.get("domain")&&(this.domain=e.get("domain")),e.get("webhook")&&(this.webhook=e.get("webhook")),e.get("icon")&&(this.icon=e.get("icon")),this}},{key:"updateOrigin",value:function(){this.origin||(this.origin=new SiteData.OriginClass),this.origin.set("name",this.name),this.origin.set("nameId",this.nameId),this.origin.set("domain",this.domain),this.origin.set("webhook",this.webhook),this.origin.set("icon",this.icon),this.origin.set("owner",this.owner.origin)}},{key:"__reactstandin__regenerateByEval",value:function __reactstandin__regenerateByEval(key,code){this[key]=eval(code)}},{key:"name",get:function(){return this._name},set:function(e){this._name=Object(utils_common__WEBPACK_IMPORTED_MODULE_13__.i)(e)}},{key:"nameId",get:function(){return this._nameId},set:function(e){this._nameId=Object(utils_common__WEBPACK_IMPORTED_MODULE_13__.d)(e)}}],[{key:"OriginClass",get:function(){return parse__WEBPACK_IMPORTED_MODULE_12__.Parse.Object.extend("Site")}}]),SiteData}(),ModelData=function(){function ModelData(){_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_10___default()(this,ModelData),this.origin=null,this.description="",this.tableName="",this.color="rgba(0, 0, 0, 1)",this._name="",this._nameId="",this.site=null,this.fields=[]}return _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_11___default()(ModelData,[{key:"setOrigin",value:function(e){return this.origin=e,e.get("name")&&(this.name=e.get("name")),e.get("nameId")&&(this.nameId=e.get("nameId")),e.get("description")&&(this.description=e.get("description")),e.get("tableName")&&(this.tableName=e.get("tableName")),e.get("color")&&(this.color=e.get("color")),this}},{key:"updateOrigin",value:function(){this.origin||(this.origin=new ModelData.OriginClass),this.origin.set("name",this.name),this.origin.set("nameId",this.nameId),this.origin.set("description",this.description),this.origin.set("tableName",this.tableName),this.origin.set("color",this.color),this.origin.set("site",this.site.origin)}},{key:"setTableName",value:function(){var e=encodeURIComponent(this.site.owner.email).replace(/[!'()*.~_-]/g,function(e){return"%"+e.charCodeAt(0).toString(16)}).replace(/%/g,"_");this.tableName="ct__".concat(e,"__").concat(this.site.nameId,"__").concat(this.nameId)}},{key:"toJSON",value:function(){return{name:this.name,nameId:this.nameId,description:this.description,tableName:this.tableName,color:this.color,fields:this.fields}}},{key:"hasTitle",value:function(){var e=!0,t=!1,r=void 0;try{for(var n,_=this.fields[Symbol.iterator]();!(e=(n=_.next()).done);e=!0){if(n.value.isTitle)return!0}}catch(e){t=!0,r=e}finally{try{e||null==_.return||_.return()}finally{if(t)throw r}}return!1}},{key:"__reactstandin__regenerateByEval",value:function __reactstandin__regenerateByEval(key,code){this[key]=eval(code)}},{key:"name",get:function(){return this._name},set:function(e){this._name=Object(utils_common__WEBPACK_IMPORTED_MODULE_13__.i)(e)}},{key:"nameId",get:function(){return this._nameId},set:function(e){this._nameId=Object(utils_common__WEBPACK_IMPORTED_MODULE_13__.d)(e)}}],[{key:"OriginClass",get:function(){return parse__WEBPACK_IMPORTED_MODULE_12__.Parse.Object.extend("Model")}}]),ModelData}(),FIELD_TYPE_SHORT_TEXT="Short Text",FIELD_TYPE_LONG_TEXT="Long Text",FIELD_TYPE_INTEGER="Number Int",FIELD_TYPE_FLOAT="Number",FIELD_TYPE_BOOLEAN="Boolean",FIELD_TYPE_DATE="Date/time",FIELD_TYPE_MEDIA="Media",FIELD_TYPE_JSON="JSON",FIELD_TYPE_REFERENCE="Reference",FIELD_APPEARANCE__SHORT_TEXT__SINGLE="Single line",FIELD_APPEARANCE__SHORT_TEXT__SLUG="Slug",FIELD_APPEARANCE__SHORT_TEXT__URL="URL",FIELD_APPEARANCE__SHORT_TEXT__DROPDOWN="Dropdown",FIELD_APPEARANCE__SHORT_TEXT__RADIO="Radio buttons",FIELD_APPEARANCE__LONG_TEXT__SINGLE="Single line",FIELD_APPEARANCE__LONG_TEXT__MULTI="Multi-line",FIELD_APPEARANCE__LONG_TEXT__WYSIWIG="WYSIWYG",FIELD_APPEARANCE__LONG_TEXT__MARKDOWN="Markdown",FIELD_APPEARANCE__INTEGER__DECIMAL="Decimal",FIELD_APPEARANCE__INTEGER__RATING="Rating",FIELD_APPEARANCE__FLOAT__DECIMAL="Decimal",FIELD_APPEARANCE__BOOLEAN__RADIO="Radio buttons",FIELD_APPEARANCE__BOOLEAN__SWITCH="Switch",FIELD_APPEARANCE__DATE__DATE="Date & time",FIELD_APPEARANCE__DATE__DATE_ONLY="Date",FIELD_APPEARANCE__DATE__TIME_ONLY="Time",FIELD_APPEARANCE__MEDIA__MEDIA="Media",FIELD_APPEARANCE__JSON__JSON="Date & time",FIELD_APPEARANCE__REFERENCE_REFERENCE="Reference",FIELD_TYPES=new Map([[FIELD_TYPE_SHORT_TEXT,[FIELD_APPEARANCE__SHORT_TEXT__SINGLE,FIELD_APPEARANCE__SHORT_TEXT__SLUG,FIELD_APPEARANCE__SHORT_TEXT__URL]],[FIELD_TYPE_LONG_TEXT,[FIELD_APPEARANCE__LONG_TEXT__SINGLE,FIELD_APPEARANCE__LONG_TEXT__MULTI,FIELD_APPEARANCE__LONG_TEXT__MARKDOWN]],[FIELD_TYPE_INTEGER,[FIELD_APPEARANCE__INTEGER__DECIMAL,FIELD_APPEARANCE__INTEGER__RATING]],[FIELD_TYPE_FLOAT,[FIELD_APPEARANCE__FLOAT__DECIMAL]],[FIELD_TYPE_BOOLEAN,[FIELD_APPEARANCE__BOOLEAN__RADIO,FIELD_APPEARANCE__BOOLEAN__SWITCH]],[FIELD_TYPE_DATE,[FIELD_APPEARANCE__DATE__DATE,FIELD_APPEARANCE__DATE__DATE_ONLY,FIELD_APPEARANCE__DATE__TIME_ONLY]],[FIELD_TYPE_MEDIA,[FIELD_APPEARANCE__MEDIA__MEDIA]],[FIELD_TYPE_REFERENCE,[FIELD_APPEARANCE__REFERENCE_REFERENCE]]]);function canBeTitle(e){return e.type==FIELD_TYPE_SHORT_TEXT&&e.appearance==FIELD_APPEARANCE__SHORT_TEXT__SINGLE&&!e.isList&&!e.isDisabled}function canBeList(e){return(e.type==FIELD_TYPE_SHORT_TEXT&&e.appearance==FIELD_APPEARANCE__SHORT_TEXT__SINGLE||e.type==FIELD_TYPE_INTEGER&&e.appearance==FIELD_APPEARANCE__INTEGER__DECIMAL||e.type==FIELD_TYPE_FLOAT&&e.appearance==FIELD_APPEARANCE__FLOAT__DECIMAL||e.type==FIELD_TYPE_MEDIA&&e.appearance==FIELD_APPEARANCE__MEDIA__MEDIA||e.type==FIELD_TYPE_REFERENCE&&e.appearance==FIELD_APPEARANCE__REFERENCE_REFERENCE)&&!e.isTitle}var ModelFieldData=function(){function ModelFieldData(){_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_10___default()(this,ModelFieldData),this.origin=null,this.type=FIELD_TYPE_SHORT_TEXT,this.appearance=FIELD_APPEARANCE__SHORT_TEXT__SINGLE,this.color="rgba(0, 0, 0, 1)",this.isRequired=!1,this.isTitle=!1,this.isList=!1,this.isDisabled=!1,this.order=-1,this.validations=null,this._name="",this._nameId="",this.model=null}return _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_11___default()(ModelFieldData,[{key:"setOrigin",value:function(e){return this.origin=e,e.get("name")&&(this.name=e.get("name")),e.get("nameId")&&(this.nameId=e.get("nameId")),e.get("type")&&(this.type=e.get("type")),e.get("appearance")&&(this.appearance=e.get("appearance")),e.get("color")&&(this.color=e.get("color")),e.get("isRequired")&&(this.isRequired=!0),e.get("isTitle")&&(this.isTitle=!0),e.get("isList")&&(this.isList=!0),e.get("isDisabled")&&(this.isDisabled=!0),e.get("validations")&&(this.validations=e.get("validations")),(e.get("order")||0===e.get("order"))&&(this.order=e.get("order")),this}},{key:"updateOrigin",value:function(){this.origin||(this.origin=new ModelFieldData.OriginClass),this.origin.set("name",this.name),this.origin.set("nameId",this.nameId),this.origin.set("type",this.type),this.origin.set("appearance",this.appearance),this.origin.set("color",this.color),this.origin.set("isRequired",this.isRequired),this.origin.set("isTitle",this.isTitle),this.origin.set("isList",this.isList),this.origin.set("isDisabled",this.isDisabled),this.origin.set("order",this.order),this.origin.set("validations",this.validations),this.origin.set("model",this.model.origin)}},{key:"toJSON",value:function(){return{name:this.name,nameId:this.nameId,type:this.type,appearance:this.appearance,color:this.color,isRequired:this.isRequired,isTitle:this.isTitle,isList:this.isList,isDisabled:this.isDisabled,order:this.order,validations:this.validations}}},{key:"__reactstandin__regenerateByEval",value:function __reactstandin__regenerateByEval(key,code){this[key]=eval(code)}},{key:"name",get:function(){return this._name},set:function(e){this._name=Object(utils_common__WEBPACK_IMPORTED_MODULE_13__.i)(e)}},{key:"nameId",get:function(){return this._nameId},set:function(e){this._nameId=Object(utils_common__WEBPACK_IMPORTED_MODULE_13__.d)(e)}}],[{key:"OriginClass",get:function(){return parse__WEBPACK_IMPORTED_MODULE_12__.Parse.Object.extend("ModelField")}}]),ModelFieldData}(),FIELD_NAMES_RESERVED=["objectId","ACL","createdAt","updatedAt","t__color","t__status","t__owner","t__model"];!function(){var e=__webpack_require__(1).default,t=__webpack_require__(1).leaveModule;e&&(e.register(SiteData,"SiteData","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/ModelData.js"),e.register(ModelData,"ModelData","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/ModelData.js"),e.register(FIELD_TYPE_SHORT_TEXT,"FIELD_TYPE_SHORT_TEXT","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/ModelData.js"),e.register(FIELD_TYPE_LONG_TEXT,"FIELD_TYPE_LONG_TEXT","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/ModelData.js"),e.register(FIELD_TYPE_INTEGER,"FIELD_TYPE_INTEGER","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/ModelData.js"),e.register(FIELD_TYPE_FLOAT,"FIELD_TYPE_FLOAT","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/ModelData.js"),e.register(FIELD_TYPE_BOOLEAN,"FIELD_TYPE_BOOLEAN","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/ModelData.js"),e.register(FIELD_TYPE_DATE,"FIELD_TYPE_DATE","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/ModelData.js"),e.register(FIELD_TYPE_MEDIA,"FIELD_TYPE_MEDIA","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/ModelData.js"),e.register(FIELD_TYPE_JSON,"FIELD_TYPE_JSON","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/ModelData.js"),e.register(FIELD_TYPE_REFERENCE,"FIELD_TYPE_REFERENCE","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/ModelData.js"),e.register(FIELD_APPEARANCE__SHORT_TEXT__SINGLE,"FIELD_APPEARANCE__SHORT_TEXT__SINGLE","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/ModelData.js"),e.register(FIELD_APPEARANCE__SHORT_TEXT__SLUG,"FIELD_APPEARANCE__SHORT_TEXT__SLUG","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/ModelData.js"),e.register(FIELD_APPEARANCE__SHORT_TEXT__URL,"FIELD_APPEARANCE__SHORT_TEXT__URL","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/ModelData.js"),e.register(FIELD_APPEARANCE__SHORT_TEXT__DROPDOWN,"FIELD_APPEARANCE__SHORT_TEXT__DROPDOWN","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/ModelData.js"),e.register(FIELD_APPEARANCE__SHORT_TEXT__RADIO,"FIELD_APPEARANCE__SHORT_TEXT__RADIO","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/ModelData.js"),e.register(FIELD_APPEARANCE__LONG_TEXT__SINGLE,"FIELD_APPEARANCE__LONG_TEXT__SINGLE","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/ModelData.js"),e.register(FIELD_APPEARANCE__LONG_TEXT__MULTI,"FIELD_APPEARANCE__LONG_TEXT__MULTI","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/ModelData.js"),e.register(FIELD_APPEARANCE__LONG_TEXT__WYSIWIG,"FIELD_APPEARANCE__LONG_TEXT__WYSIWIG","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/ModelData.js"),e.register(FIELD_APPEARANCE__LONG_TEXT__MARKDOWN,"FIELD_APPEARANCE__LONG_TEXT__MARKDOWN","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/ModelData.js"),e.register(FIELD_APPEARANCE__INTEGER__DECIMAL,"FIELD_APPEARANCE__INTEGER__DECIMAL","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/ModelData.js"),e.register(FIELD_APPEARANCE__INTEGER__RATING,"FIELD_APPEARANCE__INTEGER__RATING","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/ModelData.js"),e.register(FIELD_APPEARANCE__FLOAT__DECIMAL,"FIELD_APPEARANCE__FLOAT__DECIMAL","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/ModelData.js"),e.register(FIELD_APPEARANCE__BOOLEAN__RADIO,"FIELD_APPEARANCE__BOOLEAN__RADIO","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/ModelData.js"),e.register(FIELD_APPEARANCE__BOOLEAN__SWITCH,"FIELD_APPEARANCE__BOOLEAN__SWITCH","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/ModelData.js"),e.register(FIELD_APPEARANCE__DATE__DATE,"FIELD_APPEARANCE__DATE__DATE","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/ModelData.js"),e.register(FIELD_APPEARANCE__DATE__DATE_ONLY,"FIELD_APPEARANCE__DATE__DATE_ONLY","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/ModelData.js"),e.register(FIELD_APPEARANCE__DATE__TIME_ONLY,"FIELD_APPEARANCE__DATE__TIME_ONLY","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/ModelData.js"),e.register(FIELD_APPEARANCE__MEDIA__MEDIA,"FIELD_APPEARANCE__MEDIA__MEDIA","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/ModelData.js"),e.register(FIELD_APPEARANCE__JSON__JSON,"FIELD_APPEARANCE__JSON__JSON","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/ModelData.js"),e.register(FIELD_APPEARANCE__REFERENCE_REFERENCE,"FIELD_APPEARANCE__REFERENCE_REFERENCE","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/ModelData.js"),e.register(FIELD_TYPES,"FIELD_TYPES","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/ModelData.js"),e.register(canBeTitle,"canBeTitle","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/ModelData.js"),e.register(canBeList,"canBeList","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/ModelData.js"),e.register(ModelFieldData,"ModelFieldData","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/ModelData.js"),e.register(FIELD_NAMES_RESERVED,"FIELD_NAMES_RESERVED","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/ModelData.js"),t(module))}()}).call(this,__webpack_require__(12)(module))},function(e,t,r){e.exports=r(397)()},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(r(149)),_=o(r(409)),a=o(r(508)),i=o(r(520));function o(e){return e&&e.__esModule?e:{default:e}}var s=function(e,t,r){var o=void 0,s=(0,i.default)(r);return o=function(e){return"prototype"in e&&(0,n.default)(e.prototype.render)}(e)?(0,_.default)(e,t,s):(0,a.default)(e,t,s),e.displayName?o.displayName=e.displayName:o.displayName=e.name,o};t.default=function(){return(0,n.default)(arguments.length<=0?void 0:arguments[0])?s(arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],arguments.length<=2?void 0:arguments[2]):function(e,t){return function(r){return s(r,e,t)}}(arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1])},e.exports=t.default},function(e,t,r){var n=r(59);e.exports=function(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:[];if(!e)return null;var n=Object(i.d)(e);return function e(){var _=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,a=_?"".concat(n,"_").concat(_):n;if(-1!=r.indexOf(a))return e(++_);var i=!0,o=!1,s=void 0;try{for(var l,u=t[Symbol.iterator]();!(i=(l=u.next()).done);i=!0)if(l.value.nameId==a)return e(++_)}catch(e){o=!0,s=e}finally{try{i||null==u.return||u.return()}finally{if(o)throw s}}return a}()}!function(){var t=r(1).default,n=r(1).leaveModule;t&&(t.register(s,"NAME_CORRECT","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/data.js"),t.register(l,"NAME_ERROR_NAME_EXIST","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/data.js"),t.register(u,"NAME_ERROR_OTHER","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/data.js"),t.register(c,"getAlertForNameError","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/data.js"),t.register(d,"getUser","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/data.js"),t.register(f,"checkSiteName","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/data.js"),t.register(p,"DOMAIN_CORRECT","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/data.js"),t.register(h,"DOMAIN_ERROR_EXIST","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/data.js"),t.register(E,"DOMAIN_ERROR_SYNTAX","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/data.js"),t.register(m,"DOMAIN_ERROR_OTHER","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/data.js"),t.register(g,"checkSiteDomain","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/data.js"),t.register(b,"getSite","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/data.js"),t.register(v,"getSiteByNameId","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/data.js"),t.register(O,"COLLAB_CORRECT","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/data.js"),t.register(M,"COLLAB_ERROR_EXIST","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/data.js"),t.register(C,"COLLAB_ERROR_SELF","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/data.js"),t.register(P,"checkCollaboration","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/data.js"),t.register(D,"checkModelName","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/data.js"),t.register(y,"getModelByName","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/data.js"),t.register(w,"getModelByNameId","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/data.js"),t.register(T,"checkFieldName","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/data.js"),t.register(A,"getContentForModel","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/data.js"),t.register(k,"getContentForSite","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/data.js"),t.register(I,"getContentByModelAndId","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/data.js"),t.register(R,"getContentByO","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/data.js"),t.register(L,"checkContentExistense","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/data.js"),t.register(B,"getMediaByO","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/data.js"),t.register(U,"getRole","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/data.js"),t.register(S,"checkPassword","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/data.js"),t.register(K,"getNameId","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/data.js"),n(e))}()}).call(this,r(12)(e))},function(e,t,r){"use strict";var n=r(27),_=r.n(n),a=r(0),i=r.n(a),o=r(37),s=r.n(o),l=r(9),u=r.n(l);r(79);function c(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}var d=Object.create(null);function f(e){return d[e]||(d[e]=function(e){for(var t="",r=[],n=[],_=void 0,a=0,i=/:([a-zA-Z_$][a-zA-Z0-9_$]*)|\*\*|\*|\(|\)|\\\(|\\\)/g;_=i.exec(e);)_.index!==a&&(n.push(e.slice(a,_.index)),t+=c(e.slice(a,_.index))),_[1]?(t+="([^/]+)",r.push(_[1])):"**"===_[0]?(t+="(.*)",r.push("splat")):"*"===_[0]?(t+="(.*?)",r.push("splat")):"("===_[0]?t+="(?:":")"===_[0]?t+=")?":"\\("===_[0]?t+="\\(":"\\)"===_[0]&&(t+="\\)"),n.push(_[0]),a=i.lastIndex;return a!==e.length&&(n.push(e.slice(a,e.length)),t+=c(e.slice(a,e.length))),{pattern:e,regexpSource:t,paramNames:r,tokens:n}}(e)),d[e]}function p(e,t){"/"!==e.charAt(0)&&(e="/"+e);var r=f(e),n=r.regexpSource,_=r.paramNames,a=r.tokens;"/"!==e.charAt(e.length-1)&&(n+="/?"),"*"===a[a.length-1]&&(n+="$");var i=t.match(new RegExp("^"+n,"i"));if(null==i)return null;var o=i[0],s=t.substr(o.length);if(s){if("/"!==o.charAt(o.length-1))return null;s="/"+s}return{remainingPathname:s,paramNames:_,paramValues:i.slice(1).map(function(e){return e&&decodeURIComponent(e)})}}function h(e){return f(e).paramNames}function E(e,t){t=t||{};for(var r=f(e).tokens,n=0,a="",i=0,o=[],s=void 0,l=void 0,u=0,c=r.length;u0||_()(!1),null!=l&&(a+=encodeURI(l));else if("("===s)o[n]="",n+=1;else if(")"===s){var d=o.pop();(n-=1)?o[n-1]+=d:a+=d}else if("\\("===s)a+="(";else if("\\)"===s)a+=")";else if(":"===s.charAt(0))if(null!=(l=t[s.substring(1)])||n>0||_()(!1),null==l){if(n){o[n-1]="";for(var p=r.indexOf(s),h=r.slice(p,r.length),E=-1,m=0;m0||_()(!1),u=p+E-1}}else n?o[n-1]+=encodeURIComponent(l):a+=encodeURIComponent(l);else n?o[n-1]+=s:a+=s;return n<=0||_()(!1),a.replace(/\/+/g,"/")}var m=function(e,t){var r=e&&e.routes,n=t.routes,_=void 0,a=void 0,i=void 0;if(r){var o=!1;(_=r.filter(function(r){if(o)return!0;var _=-1===n.indexOf(r)||function(e,t,r){return!!e.path&&h(e.path).some(function(e){return t.params[e]!==r.params[e]})}(r,e,t);return _&&(o=!0),_})).reverse(),i=[],a=[],n.forEach(function(e){var t=-1===r.indexOf(e),n=-1!==_.indexOf(e);t||n?i.push(e):a.push(e)})}else _=[],a=[],i=n;return{leaveRoutes:_,changeRoutes:a,enterRoutes:i}};function g(e,t,r){var n=0,_=!1,a=!1,i=!1,o=void 0;function s(){_=!0,a?o=[].concat(Array.prototype.slice.call(arguments)):r.apply(this,arguments)}!function l(){if(!_&&(i=!0,!a)){for(a=!0;!_&&n=e&&i&&(_=!0,r())}}()}function b(e,t,r){var n=e.length,_=[];if(0===n)return r(null,_);var a=!1,i=0;e.forEach(function(e,o){t(e,o,function(e,t){!function(e,t,o){a||(t?(a=!0,r(t)):(_[e]=o,(a=++i===n)&&r(null,_)))}(o,e,t)})})}var v=function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.hooks=[],this.add=function(e){return t.hooks.push(e)},this.remove=function(e){return t.hooks=t.hooks.filter(function(t){return t!==e})},this.has=function(e){return-1!==t.hooks.indexOf(e)},this.clear=function(){return t.hooks=[]}};function O(){var e=new v,t=new v;function r(e,t,r,n){var _=e.length4&&void 0!==arguments[4]?arguments[4]:[],a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[];void 0===n&&("/"!==t.pathname.charAt(0)&&(t=L({},t,{pathname:"/"+t.pathname})),n=t.pathname),g(e.length,function(r,i,o){S(e[r],t,n,_,a,function(e,t){e||t?o(e,t):i()})},r)}var W=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1]&&arguments[1];return e.__id__||t&&(e.__id__=u++)}var d=Object.create(null);function f(e){return e.map(function(e){return d[c(e)]}).filter(function(e){return e})}function p(e,n){K(t,e,function(t,_){if(null!=_){o=W({},_,{location:e});for(var a=f(m(r,o).leaveRoutes),i=void 0,s=0,l=a.length;null==i&&s should not have a "'+t+'" prop')}Object(l.shape)({listen:l.func.isRequired,push:l.func.isRequired,replace:l.func.isRequired,go:l.func.isRequired,goBack:l.func.isRequired,goForward:l.func.isRequired});var q=Object(l.oneOfType)([l.func,l.string]),F=Object(l.oneOfType)([q,l.object]),V=Object(l.oneOfType)([l.object,l.element]),H=Object(l.oneOfType)([V,Object(l.arrayOf)(V)]);var z=function(e,t){var r={};return e.path?(h(e.path).forEach(function(e){Object.prototype.hasOwnProperty.call(t,e)&&(r[e]=t[e])}),r):r},G=u.a.shape({subscribe:u.a.func.isRequired,eventIndex:u.a.number.isRequired});function Y(e){return"@@contextSubscriber/"+e}function J(e){var t,r,n=Y(e),_=n+"/lastRenderedEventIndex",a=n+"/handleContextUpdate",i=n+"/unsubscribe";return(r={contextTypes:(t={},t[n]=G,t),getInitialState:function(){var e;return this.context[n]?((e={})[_]=this.context[n].eventIndex,e):{}},componentDidMount:function(){this.context[n]&&(this[i]=this.context[n].subscribe(this[a]))},componentWillReceiveProps:function(){var e;this.context[n]&&this.setState(((e={})[_]=this.context[n].eventIndex,e))},componentWillUnmount:function(){this[i]&&(this[i](),this[i]=null)}})[a]=function(e){var t;e!==this.state[_]&&this.setState(((t={})[_]=e,t))},r}var X=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r}(a,["createElement","render"]);return null==t?null:(Object.keys(ne).forEach(function(e){return delete s[e]}),o(re({},s,{router:this.router,location:t,routes:r,params:n,components:_,createElement:i})))}}),ae=Object(l.shape)({push:l.func.isRequired,replace:l.func.isRequired,go:l.func.isRequired,goBack:l.func.isRequired,goForward:l.func.isRequired,setRouteLeaveHook:l.func.isRequired,isActive:l.func.isRequired}),ie=(Object(l.shape)({pathname:l.string.isRequired,search:l.string.isRequired,state:l.object,action:l.string.isRequired,key:l.string}),Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r}(e,["to","activeClassName","activeStyle","onlyActiveOnIndex"]),o=this.context.router;if(o){if(!t)return i.a.createElement("a",a);var s=oe(t,o);a.href=o.createHref(s),(r||null!=n&&!function(e){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!1;return!0}(n))&&o.isActive(s,_)&&(r&&(a.className?a.className+=" "+r:a.className=r),n&&(a.style=ie({},a.style,n)))}return i.a.createElement("a",ie({},a,{onClick:this.handleClick}))}}),le=Object.assign||function(e){for(var t=1;t=0;n--){var _=e[n].path||"";if(r=_.replace(/\/*$/,"/")+r,0===_.indexOf("/"))break}return"/"+r}},propTypes:{path:l.string,from:l.string,to:l.string.isRequired,query:l.object,state:l.object,onEnter:N,children:N},render:function(){_()(!1)}}),ce=ue,de=s()({displayName:"IndexRedirect",statics:{createRouteFromReactElement:function(e,t){t&&(t.indexRoute=ce.createRouteFromReactElement(e))}},propTypes:{to:l.string.isRequired,query:l.object,state:l.object,onEnter:N,children:N},render:function(){_()(!1)}}),fe=(s()({displayName:"IndexRoute",statics:{createRouteFromReactElement:function(e,t){t&&(t.indexRoute=k(e))}},propTypes:{path:N,component:q,components:F,getComponent:l.func,getComponents:l.func},render:function(){_()(!1)}}),s()({displayName:"Route",statics:{createRouteFromReactElement:k},propTypes:{path:l.string,component:q,components:F,getComponent:l.func,getComponents:l.func},render:function(){_()(!1)}})),pe=(r(140),r(171)),he=r.n(pe),Ee=r(172),me=r.n(Ee);r(338);Object.assign;Object.assign;var ge=r(339),be=r.n(ge),ve=!("undefined"==typeof window||!window.document||!window.document.createElement);function Oe(e){var t=void 0;return ve&&(t=function(e){return function(t){return he()(me()(e))(t)}}(e)()),t}var Me=Oe(be.a),Ce=r(340);Oe(r.n(Ce).a);r.d(t,"e",function(){return _e}),r.d(t,"b",function(){return se}),r.d(t,"a",function(){return de}),r.d(t,"c",function(){return ce}),r.d(t,"d",function(){return fe}),r.d(t,"f",function(){return Me})},function(module,__webpack_exports__,__webpack_require__){"use strict";(function(module){__webpack_require__.d(__webpack_exports__,"a",function(){return InputControl});var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(2),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(3),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(5),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(4),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(6),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__),react__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(0),react__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_5__),react_css_modules__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(10),react_css_modules__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(react_css_modules__WEBPACK_IMPORTED_MODULE_6__),components_elements_IconsComponent_IconsComponent__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(344),_InputControl_sss__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(765),_InputControl_sss__WEBPACK_IMPORTED_MODULE_8___default=__webpack_require__.n(_InputControl_sss__WEBPACK_IMPORTED_MODULE_8__),_dec,_class;!function(){var e=__webpack_require__(1).enterModule;e&&e(module)}();var InputControl=(_dec=react_css_modules__WEBPACK_IMPORTED_MODULE_6___default()(_InputControl_sss__WEBPACK_IMPORTED_MODULE_8___default.a,{allowMultiple:!0}),_dec(_class=function(_Component){function InputControl(){return _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this,InputControl),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default()(this,_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default()(InputControl).apply(this,arguments))}return _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default()(InputControl,_Component),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(InputControl,[{key:"render",value:function(){var e=this.props,t=e.label,r=e.type,n=e.value,_=e.placeholder,a=e.onChange,i=e.readOnly,o=e.autoFocus,s=e.onKeyDown,l=e.onBlur,u=e.DOMRef,c=e.icon,d=e.onIconClick,f=e.inputType,p=e.dropdown;void 0!=n&&null!=n||(n=""),f||(f="text");var h,E="input";return"big"===r&&(E="input-big"),i&&(E+=" input-readOnly"),p&&(E+=" input-disabled"),c&&(h=react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{onClick:d,styleName:c},react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement(components_elements_IconsComponent_IconsComponent__WEBPACK_IMPORTED_MODULE_7__.a,{icon:c}))),react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{styleName:"InputControl"},h,react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("input",{type:f,styleName:E,icon:c,value:n,autoFocus:o,placeholder:_,onChange:a,onBlur:l,onKeyDown:s,readOnly:i,ref:u}),react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("label",{styleName:"label"}," ",t," "))}},{key:"__reactstandin__regenerateByEval",value:function __reactstandin__regenerateByEval(key,code){this[key]=eval(code)}}]),InputControl}(react__WEBPACK_IMPORTED_MODULE_5__.Component))||_class);!function(){var e=__webpack_require__(1).default,t=__webpack_require__(1).leaveModule;e&&(e.register(InputControl,"InputControl","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/components/elements/InputControl/InputControl.js"),t(module))}()}).call(this,__webpack_require__(12)(module))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t: `children` prop will be ignored.")}},{key:"render",value:function(){var e=void 0,t=void 0,r=void 0,_=this.props,i=_.element,s=_.raw,l=_.src,u=function(e,t){var r={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r}(_,["element","raw","src"]);return!0===s&&(e="svg",r=(0,o.extractSVGProps)(l),t=(0,o.getSVGFromSource)(l).innerHTML),t=t||l,e=e||i,r=r||{},a.default.createElement(e,n({},r,u,{src:null,children:null,dangerouslySetInnerHTML:{__html:t}}))}}]),t}();t.default=l,l.defaultProps={element:"i",raw:!1,src:""},l.propTypes={src:i.string.isRequired,element:i.string,raw:i.bool}},function(module,__webpack_exports__,__webpack_require__){"use strict";(function(module){__webpack_require__.d(__webpack_exports__,"f",function(){return UserData}),__webpack_require__.d(__webpack_exports__,"e",function(){return ROLE_OWNER}),__webpack_require__.d(__webpack_exports__,"b",function(){return ROLE_ADMIN}),__webpack_require__.d(__webpack_exports__,"d",function(){return ROLE_EDITOR}),__webpack_require__.d(__webpack_exports__,"c",function(){return ROLE_DEVELOPER}),__webpack_require__.d(__webpack_exports__,"a",function(){return CollaborationData});var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(2),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(3),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__),parse__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(14),parse__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(parse__WEBPACK_IMPORTED_MODULE_2__);!function(){var e=__webpack_require__(1).enterModule;e&&e(module)}();var UserData=function(){function UserData(){_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this,UserData),this.origin=null,this.email="",this.emailNew="",this.firstName="",this.lastName="",this.avatar=null,this.sex="male"}return _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(UserData,[{key:"setOrigin",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:parse__WEBPACK_IMPORTED_MODULE_2__.Parse.User.current();return this.origin=e,e.get("email")&&(this.email=e.get("email")),this.email||(this.email=e.get("username")),e.get("emailNew")&&(this.emailNew=e.get("emailNew")),e.get("firstName")&&(this.firstName=e.get("firstName")),e.get("lastName")&&(this.lastName=e.get("lastName")),e.get("avatar")&&(this.avatar=e.get("avatar")),e.get("sex")&&(this.sex=e.get("sex")),this}},{key:"updateOrigin",value:function(){this.origin.set("firstName",this.firstName),this.origin.set("lastName",this.lastName),this.origin.set("avatar",this.avatar),this.origin.set("sex",this.sex)}},{key:"__reactstandin__regenerateByEval",value:function __reactstandin__regenerateByEval(key,code){this[key]=eval(code)}}]),UserData}(),ROLE_OWNER="OWNER",ROLE_ADMIN="ADMIN",ROLE_EDITOR="EDITOR",ROLE_DEVELOPER="DEVELOPER",CollaborationData=function(){function CollaborationData(){_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this,CollaborationData),this.origin=null,this.role=ROLE_DEVELOPER,this.email="",this.site=null,this.user=null}return _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(CollaborationData,[{key:"setOrigin",value:function(e){return this.origin=e,e.get("role")&&(this.role=e.get("role")),e.get("email")&&(this.email=e.get("email")),this}},{key:"updateOrigin",value:function(){this.origin||(this.origin=new CollaborationData.OriginClass),this.origin.set("role",this.role),this.origin.set("email",this.email),this.origin.set("site",this.site.origin),this.user&&this.origin.set("user",this.user.origin)}},{key:"__reactstandin__regenerateByEval",value:function __reactstandin__regenerateByEval(key,code){this[key]=eval(code)}}],[{key:"OriginClass",get:function(){return parse__WEBPACK_IMPORTED_MODULE_2__.Parse.Object.extend("Collaboration")}}]),CollaborationData}();!function(){var e=__webpack_require__(1).default,t=__webpack_require__(1).leaveModule;e&&(e.register(UserData,"UserData","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/UserData.js"),e.register(ROLE_OWNER,"ROLE_OWNER","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/UserData.js"),e.register(ROLE_ADMIN,"ROLE_ADMIN","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/UserData.js"),e.register(ROLE_EDITOR,"ROLE_EDITOR","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/UserData.js"),e.register(ROLE_DEVELOPER,"ROLE_DEVELOPER","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/UserData.js"),e.register(CollaborationData,"CollaborationData","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/UserData.js"),t(module))}()}).call(this,__webpack_require__(12)(module))},function(e,t,r){"use strict";(function(e){r.d(t,"i",function(){return n}),r.d(t,"d",function(){return _}),r.d(t,"e",function(){return a}),r.d(t,"f",function(){return i}),r.d(t,"j",function(){return o}),r.d(t,"c",function(){return s}),r.d(t,"b",function(){return l}),r.d(t,"g",function(){return u}),r.d(t,"h",function(){return c}),r.d(t,"a",function(){return d});r(43),r(76),r(589),r(58),r(591),r(298),r(593),r(594),r(107);function n(e){return e?e.trim().replace(/\s+/g," "):""}function _(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"_";return e?(e=n(e)).replace(/\W/g,t):""}function a(e,t){return(e=_(e,t)).toLowerCase()}function i(){var e=Math.floor(256*Math.random()),t=Math.floor(256*Math.random()),r=Math.floor(256*Math.random());return"rgba(".concat(e,", ").concat(t,", ").concat(r,", 1)")}function o(e){var t=e.lastIndexOf(".");return t>0?e.slice(0,t):e}function s(e){return new RegExp("^(https?:\\/\\/)((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.?)+[a-z]{2,}|((\\d{1,3}\\.){3}\\d{1,3}))(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*(\\?[;&a-z\\d%_.~+=-]*)?(\\#[-a-z\\d_]*)?$","i").test(e)}function l(e){return/^[a-z0-9!#$%&'*+\/=?^_`{|}~.-]+@[a-z0-9]([a-z0-9-]*[a-z0-9])?(\.[a-z0-9]([a-z0-9-]*[a-z0-9])?)*$/i.test(e)}function u(e){var t=new Date,r=t-e,n=navigator.language||navigator.userLanguage,_=e.toLocaleString(n,{hour:"numeric",minute:"numeric"}),a=e.toLocaleString(n,{year:"numeric",month:"short",day:"numeric",hour:"numeric",minute:"numeric"});if(r<6e4)return r<1e4?"A few seconds ago":"Less a minute ago";if(r<36e5){var i=Math.floor(r/6e4);return"".concat(i,1==i?" minute ago":" minutes ago")}if(t.getDate()==e.getDate()&&t.getMonth()==e.getMonth()&&t.getFullYear()==e.getFullYear())return"Today, at ".concat(_);var o=new Date(e);return o.setDate(o.getDate()+1),t.getDate()==o.getDate()&&t.getMonth()==o.getMonth()&&t.getFullYear()==o.getFullYear()?"Yesterday, at ".concat(_):a}function c(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r={},n=/([^&=]+)=?([^&]*)/g,_=function(e){return decodeURIComponent(e.replace(/\+/g," "))};for(t||(t=location.search.substring(1));e=n.exec(t);)r[_(e[1])]=_(e[2]);return r}function d(e){return Object.keys(e).map(function(t){return encodeURIComponent(t)+"="+encodeURIComponent(e[t])}).join("&")}!function(){var t=r(1).enterModule;t&&t(e)}(),function(){var t=r(1).default,f=r(1).leaveModule;t&&(t.register(n,"removeOddSpaces","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/common.js"),t.register(_,"filterSpecials","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/common.js"),t.register(a,"filterSpecialsAndCapital","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/common.js"),t.register(i,"getRandomColor","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/common.js"),t.register(o,"trimFileExt","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/common.js"),t.register(s,"checkURL","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/common.js"),t.register(l,"checkEmail","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/common.js"),t.register(u,"getRelativeTime","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/common.js"),t.register(c,"parseURLParams","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/common.js"),t.register(d,"URLEncode","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/common.js"),f(e))}()}).call(this,r(12)(e))},function(e,t,r){"use strict";r.r(t),function(e){r.d(t,"store",function(){return w});r(393),r(743),r(748),r(755);var n=r(0),_=r.n(n),a=r(50),i=r.n(a),o=r(28),s=r(16),l=r(112),u=r(341),c=r(353),d=r(70),f=r(7),p=r(359),h=r(360),E=r(361),m=r(367),g=r(369),b=r(371),v=r(373),O=r(376),M=r(378),C=r(387),P=r(388),D=r(233),y=r(389);!function(){var t=r(1).enterModule;t&&t(e)}();var w=Object(c.a)(),T=Object(l.syncHistoryWithStore)(s.f,w);Object(d.c)();var A=function(e){return w.dispatch(Object(f.F)(e))};i.a.render(_.a.createElement(o.a,{store:w},_.a.createElement(s.e,{history:T},_.a.createElement(s.d,{path:"/",component:u.a},_.a.createElement(s.d,{path:"/email-verify",component:P.a}),_.a.createElement(s.d,{path:"/password-set-success",component:D.a}),_.a.createElement(s.d,{path:"/password-set",component:D.a}),_.a.createElement(s.d,{path:"/invalid-link",component:y.a}),_.a.createElement(s.d,{path:"/sign",component:h.a}),_.a.createElement(s.d,{path:"/userspace",component:E.a},_.a.createElement(s.d,{path:"/userspace/profile",component:C.a,onEnter:function(){return A(f.m)}}),_.a.createElement(s.d,{path:"/userspace/:site/models",component:b.a,onEnter:function(){return A(f.k)}}),_.a.createElement(s.d,{path:"/userspace/:site/models/:model",component:v.a,onEnter:function(){return A(f.l)}}),_.a.createElement(s.d,{path:"/userspace/:site/content",component:O.a,onEnter:function(){return A(f.i)}}),_.a.createElement(s.d,{path:"/userspace/:site/content/:item",component:M.a,onEnter:function(){return A(f.j)}}),_.a.createElement(s.d,{path:"/userspace/:site/api",component:p.a,onEnter:function(){return A(f.h)}}),_.a.createElement(s.d,{path:"/userspace/:site/settings",component:m.a,onEnter:function(){return A(f.n)}}),_.a.createElement(s.d,{path:"/userspace/:site/sharing",component:g.a,onEnter:function(){return A(f.o)}}),_.a.createElement(s.c,{from:"/userspace/:site",to:"/userspace/:site/models"})),_.a.createElement(s.a,{to:"/userspace"}),_.a.createElement(s.c,{from:"/*",to:"/invalid-link"})))),document.getElementById("app-root")),function(){var t=r(1).default,n=r(1).leaveModule;t&&(t.register(w,"store","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/index.js"),t.register(T,"history","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/index.js"),t.register(A,"SCP","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/index.js"),n(e))}()}.call(this,r(12)(e))},function(e,t,r){"use strict";r.d(t,"d",function(){return o}),r.d(t,"c",function(){return l}),r.d(t,"b",function(){return c}),r.d(t,"a",function(){return f});var n=r(228),_=function(){return Math.random().toString(36).substring(7).split("").join(".")},a={INIT:"@@redux/INIT"+_(),REPLACE:"@@redux/REPLACE"+_(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+_()}};function i(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function o(e,t,r){var _;if("function"==typeof t&&"function"==typeof r||"function"==typeof r&&"function"==typeof arguments[3])throw new Error("It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function");if("function"==typeof t&&void 0===r&&(r=t,t=void 0),void 0!==r){if("function"!=typeof r)throw new Error("Expected the enhancer to be a function.");return r(o)(e,t)}if("function"!=typeof e)throw new Error("Expected the reducer to be a function.");var s=e,l=t,u=[],c=u,d=!1;function f(){c===u&&(c=u.slice())}function p(){if(d)throw new Error("You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return l}function h(e){if("function"!=typeof e)throw new Error("Expected the listener to be a function.");if(d)throw new Error("You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api-reference/store#subscribe(listener) for more details.");var t=!0;return f(),c.push(e),function(){if(t){if(d)throw new Error("You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api-reference/store#subscribe(listener) for more details.");t=!1,f();var r=c.indexOf(e);c.splice(r,1)}}}function E(e){if(!i(e))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if(void 0===e.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(d)throw new Error("Reducers may not dispatch actions.");try{d=!0,l=s(l,e)}finally{d=!1}for(var t=u=c,r=0;r0&&void 0!==arguments[0]?arguments[0]:K,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case c:case f:return _()({},e,{authorized:!1,status:null,email:t.email,password:t.password,pending:!0});case d:return _()({},e,{authorized:t.authorized,status:t.status,userData:t.userData,localStorageReady:!0,password:"",pending:!1});case p:return _()({},e,{status:t.status,localStorageReady:!0,password:"",pending:!1});case h:return _()({},e,{authorized:!1,email:""});case E:return _()({},e,{userData:t.data});case m:var r=e.userData;return t.email&&(r.emailNew=t.email),_()({},e,{userData:r,status:t.status});case b:return _()({},e,{status:t.status});case g:case v:return _()({},e);case O:return _()({},e,{status:null});default:return e}}!function(){var t=r(1).default,n=r(1).leaveModule;t&&(t.register(c,"LOGIN_REQUEST","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/user.js"),t.register(d,"LOGIN_RESPONSE","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/user.js"),t.register(f,"REGISTER_REQUEST","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/user.js"),t.register(p,"REGISTER_RESPONSE","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/user.js"),t.register(h,"LOGOUT","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/user.js"),t.register(E,"UPDATE","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/user.js"),t.register(m,"UPDATE_EMAIL","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/user.js"),t.register(g,"UPDATE_PASSWORD","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/user.js"),t.register(b,"RESTORE_PASSWORD","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/user.js"),t.register(v,"RESEND_VERIF","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/user.js"),t.register(O,"RESET_STATUS","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/user.js"),t.register(M,"ERROR_USER_EXISTS","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/user.js"),t.register(C,"ERROR_WRONG_PASS","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/user.js"),t.register(P,"ERROR_UNVERIF","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/user.js"),t.register(D,"ERROR_OTHER","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/user.js"),t.register(y,"OK","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/user.js"),t.register(w,"register","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/user.js"),t.register(T,"login","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/user.js"),t.register(A,"getLocalStorage","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/user.js"),t.register(k,"logout","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/user.js"),t.register(I,"update","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/user.js"),t.register(R,"updateEmail","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/user.js"),t.register(L,"updatePassword","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/user.js"),t.register(B,"restorePassword","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/user.js"),t.register(U,"resendVerEmail","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/user.js"),t.register(S,"resetStatus","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/user.js"),t.register(K,"initialState","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/user.js"),t.register(W,"userReducer","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/user.js"),n(e))}()}).call(this,r(12)(e))},function(e,t,r){"use strict";(function(e){r.d(t,"d",function(){return f}),r.d(t,"f",function(){return E}),r.d(t,"e",function(){return C}),r.d(t,"a",function(){return P}),r.d(t,"c",function(){return D}),r.d(t,"b",function(){return y}),r.d(t,"r",function(){return B}),r.d(t,"t",function(){return U}),r.d(t,"k",function(){return S}),r.d(t,"x",function(){return K}),r.d(t,"q",function(){return W}),r.d(t,"g",function(){return x}),r.d(t,"i",function(){return j}),r.d(t,"u",function(){return N}),r.d(t,"m",function(){return q}),r.d(t,"p",function(){return F}),r.d(t,"j",function(){return V}),r.d(t,"w",function(){return H}),r.d(t,"s",function(){return z}),r.d(t,"o",function(){return G}),r.d(t,"h",function(){return J}),r.d(t,"v",function(){return X}),r.d(t,"n",function(){return Q}),r.d(t,"l",function(){return Z});r(45);var n=r(11),_=r.n(n),a=(r(32),r(718),r(134),r(76),r(97),r(52),r(53),r(43),r(227),r(14)),i=r(21),o=r(19),s=r(8),l=r(20),u=r(15),c=r(24),d=r(13);!function(){var t=r(1).enterModule;t&&t(e)}();var f="app/models/INIT_END",p="app/models/SITE_ADD",h="app/models/SITE_UPDATE",E="app/models/SITE_DELETE",m="app/models/COLLABORATION_ADD",g="app/models/COLLABORATION_UPDATE",b="app/models/COLLABORATION_DELETE",v="app/models/COLLABORATION_SELF_DELETE",O="app/models/MODEL_ADD",M="app/models/MODEL_UPDATE",C="app/models/MODEL_DELETE",P="app/models/FIELD_ADD",D="app/models/FIELD_UPDATE",y="app/models/FIELD_DELETE",w="app/models/SET_CURRENT_SITE",T="app/models/SET_CURRENT_MODEL";function A(){var e=[];return Object(d.a)(new a.Parse.Query(o.a.OriginClass).equalTo("user",a.Parse.User.current()).find()).then(function(t){var r=!0,n=!1,_=void 0;try{for(var i,o=t[Symbol.iterator]();!(r=(i=o.next()).done);r=!0){var s=i.value;e.push(s.get("site"))}}catch(e){n=!0,_=e}finally{try{r||null==o.return||o.return()}finally{if(n)throw _}}return Object(d.a)(a.Parse.Object.fetchAllIfNeeded(e))}).then(function(){return e})}function k(){return Object(d.a)(new a.Parse.Query(s.B.OriginClass).equalTo("owner",a.Parse.User.current()).find())}function I(e,t){return Object(d.a)(new a.Parse.Query(o.a.OriginClass).containedIn("site",e).find()).then(function(e){var r=[],n=!0,_=!1,a=void 0;try{for(var i,s=function(){var e=i.value,n=(new o.a).setOrigin(e),_=e.get("user");_&&r.push(Object(d.a)(_.fetch()).then(function(e){var t=(new o.f).setOrigin(e);n.user=t}));var a=e.get("site"),s=!0,l=!1,u=void 0;try{for(var c,f=t[Symbol.iterator]();!(s=(c=f.next()).done);s=!0){var p=c.value;if(p.origin.id==a.id){n.site=p,p.collaborations.push(n);break}}}catch(e){l=!0,u=e}finally{try{s||null==f.return||f.return()}finally{if(l)throw u}}},l=e[Symbol.iterator]();!(n=(i=l.next()).done);n=!0)s()}catch(e){_=!0,a=e}finally{try{n||null==l.return||l.return()}finally{if(_)throw a}}return Promise.all(r)})}function R(e,t,r,n){return Object(d.a)(new a.Parse.Query(s.z.OriginClass).containedIn("site",e).find()).then(function(e){Array.prototype.push.apply(r,e);var _=!0,a=!1,i=void 0;try{for(var o,l=r[Symbol.iterator]();!(_=(o=l.next()).done);_=!0){var u=o.value,c=(new s.z).setOrigin(u),d=u.get("site"),f=!0,p=!1,h=void 0;try{for(var E,m=t[Symbol.iterator]();!(f=(E=m.next()).done);f=!0){var g=E.value;if(g.origin.id==d.id){c.site=g,g.models.push(c),n.push(c);break}}}catch(e){p=!0,h=e}finally{try{f||null==m.return||m.return()}finally{if(p)throw h}}}}catch(e){a=!0,i=e}finally{try{_||null==l.return||l.return()}finally{if(a)throw i}}})}function L(e,t){return Object(d.a)(new a.Parse.Query(s.A.OriginClass).containedIn("model",e).find()).then(function(e){var r=!0,n=!1,_=void 0;try{for(var a,i=e[Symbol.iterator]();!(r=(a=i.next()).done);r=!0){var o=a.value,l=(new s.A).setOrigin(o),u=o.get("model"),c=!0,d=!1,f=void 0;try{for(var p,h=t[Symbol.iterator]();!(c=(p=h.next()).done);c=!0){var E=p.value;if(E.origin.id==u.id){l.model=E,E.fields.push(l);break}}}catch(e){d=!0,f=e}finally{try{c||null==h.return||h.return()}finally{if(d)throw f}}}}catch(e){n=!0,_=e}finally{try{r||null==i.return||i.return()}finally{if(n)throw _}}})}function B(){return function(e){var t=[],r=[],n=[],_=[];A().then(function(e){return t=e,k()}).then(function(e){t=t.concat(e);var a=[],i=!0,l=!1,u=void 0;try{for(var c,f=function(){var e=c.value,t=(new s.B).setOrigin(e);a.push(Object(d.a)(e.get("owner").fetch()).then(function(e){return t.owner=(new o.f).setOrigin(e)})),r.push(t)},p=t[Symbol.iterator]();!(i=(c=p.next()).done);i=!0)f()}catch(e){l=!0,u=e}finally{try{i||null==p.return||p.return()}finally{if(l)throw u}}return Promise.all(a).then(function(){return Promise.all([I(t,r),R(t,r,n,_).then(function(){return L(n,_)}).then(function(){for(var e=0;e<_.length;e++){_[e].fields.sort(function(e,t){return e.order>t.order?1:-1})}})])})}).then(function(){return e({type:f,sites:r})})}}function U(e){if(!e)return{type:w,currentSite:null};var t=Object(u.x)(e);return{type:w,currentSite:e,role:t}}function S(e){return e.owner=i.store.getState().user.userData,e.nameId=Object(u.w)(e.name,i.store.getState().models.sites),e.updateOrigin(),e.origin.setACL(new a.Parse.ACL(a.Parse.User.current())),Object(d.a)(e.origin.save()),{type:p,site:e}}function K(e){return e.updateOrigin(),Object(d.a)(e.origin.save()),{type:h}}function W(e){return Object(d.a)(a.Parse.Cloud.run("deleteSite",{siteId:e.origin.id})),{type:E,site:e}}function x(e,t){var r=new o.a;r.user=e,r.email=t;var n=i.store.getState().models.currentSite;return r.site=n,r.updateOrigin(),r.origin.setACL(new a.Parse.ACL(n.owner.origin)),Object(d.a)(r.origin.save()).then(function(){return Object(d.a)(a.Parse.Cloud.run("onCollaborationModify",{collabId:r.origin.id}))}),{type:m,collab:r}}function j(e){var t=new o.a;t.email=e;var r=i.store.getState().models.currentSite;return t.site=r,t.updateOrigin(),t.origin.setACL(new a.Parse.ACL(r.owner.origin)),Object(d.a)(t.origin.save()),Object(d.a)(a.Parse.Cloud.run("inviteUser",{email:e,siteName:r.name})),{type:m,collab:t}}function N(e){return e.updateOrigin(),Object(d.a)(e.origin.save()).then(function(){return Object(d.a)(a.Parse.Cloud.run("onCollaborationModify",{collabId:e.origin.id}))}),{type:g,collab:e}}function q(e){return Object(d.a)(a.Parse.Cloud.run("onCollaborationModify",{collabId:e.origin.id,deleting:!0})).then(function(){return Object(d.a)(e.origin.destroy())}),{type:b,collab:e}}function F(e){return Object(d.a)(a.Parse.Cloud.run("onCollaborationModify",{collabId:e.origin.id,deleting:!0})).then(function(){return Object(d.a)(e.origin.destroy())}),{type:v,collab:e}}function V(e){var t=i.store.getState().models.currentSite,r=new s.z;return r.name=e,r.nameId=Object(u.w)(e,t.models),r.color=Object(l.f)(),r.site=t,r.setTableName(),r.updateOrigin(),Object(d.a)(r.origin.save()).then(function(){return Object(d.a)(a.Parse.Cloud.run("onModelAdd",{modelId:r.origin.id}))}),{type:O,model:r}}function H(e){return e.updateOrigin(),Object(d.a)(e.origin.save()),{type:M,model:e}}function z(e){return{type:T,currentModel:e}}function G(e){return Object(d.a)(a.Parse.Cloud.run("deleteModel",{modelId:e.origin.id})),{type:C,model:e}}function Y(e){if(Object(s.D)(e)||(e.isTitle=!1),e.isTitle){var t=!0,r=!1,n=void 0;try{for(var _,a=e.model.fields[Symbol.iterator]();!(t=(_=a.next()).done);t=!0){var i=_.value;i!=e&&i.isTitle&&(i.isTitle=!1,i.updateOrigin(),Object(d.a)(i.origin.save()))}}catch(e){r=!0,n=e}finally{try{t||null==a.return||a.return()}finally{if(r)throw n}}}}function J(e){return e.color=Object(l.f)(),e.nameId=Object(u.w)(e.name,e.model.fields,s.p),e.order=e.model.fields.length,Y(e),e.updateOrigin(),Object(d.a)(e.origin.save()).then(function(){return Object(d.a)(a.Parse.Cloud.run("onFieldAdd",{fieldId:e.origin.id}))}),Object(d.a)(e.model.origin.save()),{type:P,field:e}}function X(e){return Y(e),e.updateOrigin(),Object(d.a)(e.origin.save()),Object(d.a)(e.model.origin.save()),{type:D,field:e}}function Q(e){return Object(d.a)(e.origin.destroy()),Object(d.a)(e.model.origin.save()),{type:y,field:e}}var $={sites:[],currentSite:null,currentModel:null,role:null};function Z(){var e,t,r,n,a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:$,i=arguments.length>1?arguments[1]:void 0;switch(i.type){case f:return _()({},a,{sites:i.sites});case w:return _()({},a,{currentSite:i.currentSite,role:i.role});case T:return _()({},a,{currentModel:i.currentModel});case p:return(e=a.sites).push(i.site),_()({},a,{sites:e});case E:return(e=a.sites).splice(e.indexOf(i.site),1),_()({},a,{sites:e,currentSite:null});case m:return(t=a.currentSite).collaborations.push(i.collab),_()({},a,{currentSite:t});case b:return(n=(t=a.currentSite).collaborations).splice(n.indexOf(i.collab),1),_()({},a,{currentSite:t});case v:return(n=(t=a.currentSite).collaborations).splice(n.indexOf(i.collab),1),(e=a.sites).splice(e.indexOf(t),1),_()({},a,{currentSite:e[0]});case O:return(t=a.currentSite).models.push(i.model),_()({},a,{currentSite:t});case C:var o=(t=a.currentSite).models;return o.splice(o.indexOf(i.model),1),_()({},a,{currentSite:t});case P:return(r=a.currentModel).fields.push(i.field),_()({},a,{currentModel:r});case y:var s=(r=a.currentModel).fields;return s.splice(s.indexOf(i.field),1),_()({},a,{currentModel:r});case h:case g:case M:return _()({},a);case D:return i.field.model.fields.sort(function(e,t){return e.order>t.order?1:-1}),_()({},a);case c.f:return _()({},a,{currentModel:null,currentSite:null,role:null});default:return a}}!function(){var t=r(1).default,n=r(1).leaveModule;t&&(t.register(f,"INIT_END","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/models.js"),t.register(p,"SITE_ADD","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/models.js"),t.register(h,"SITE_UPDATE","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/models.js"),t.register(E,"SITE_DELETE","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/models.js"),t.register(m,"COLLABORATION_ADD","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/models.js"),t.register(g,"COLLABORATION_UPDATE","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/models.js"),t.register(b,"COLLABORATION_DELETE","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/models.js"),t.register(v,"COLLABORATION_SELF_DELETE","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/models.js"),t.register(O,"MODEL_ADD","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/models.js"),t.register(M,"MODEL_UPDATE","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/models.js"),t.register(C,"MODEL_DELETE","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/models.js"),t.register(P,"FIELD_ADD","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/models.js"),t.register(D,"FIELD_UPDATE","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/models.js"),t.register(y,"FIELD_DELETE","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/models.js"),t.register(w,"SET_CURRENT_SITE","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/models.js"),t.register(T,"SET_CURRENT_MODEL","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/models.js"),t.register(A,"requestCollaborationsPre","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/models.js"),t.register(k,"requestUserSites","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/models.js"),t.register(I,"requestCollaborationsPost","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/models.js"),t.register(R,"requestModels","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/models.js"),t.register(L,"requestFields","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/models.js"),t.register(B,"init","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/models.js"),t.register(U,"setCurrentSite","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/models.js"),t.register(S,"addSite","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/models.js"),t.register(K,"updateSite","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/models.js"),t.register(W,"deleteSite","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/models.js"),t.register(x,"addCollaboration","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/models.js"),t.register(j,"addInviteCollaboration","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/models.js"),t.register(N,"updateCollaboration","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/models.js"),t.register(q,"deleteCollaboration","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/models.js"),t.register(F,"deleteSelfCollaboration","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/models.js"),t.register(V,"addModel","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/models.js"),t.register(H,"updateModel","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/models.js"),t.register(z,"setCurrentModel","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/models.js"),t.register(G,"deleteModel","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/models.js"),t.register(Y,"checkNewTitle","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/models.js"),t.register(J,"addField","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/models.js"),t.register(X,"updateField","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/models.js"),t.register(Q,"deleteField","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/models.js"),t.register($,"initialState","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/models.js"),t.register(Z,"modelsReducer","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/models.js"),n(e))}()}).call(this,r(12)(e))},function(e,t){e.exports=function(e){return e&&e.__esModule?e:{default:e}}},function(e,t,r){"use strict";e.exports=function(e,t,r,n,_,a,i,o){if(!e){var s;if(void 0===t)s=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[r,n,_,a,i,o],u=0;(s=new Error(t.replace(/%s/g,function(){return l[u++]}))).name="Invariant Violation"}throw s.framesToPop=1,s}}},function(e,t,r){"use strict";var n=r(0),_=r(9),a=r.n(_),i=a.a.shape({trySubscribe:a.a.func.isRequired,tryUnsubscribe:a.a.func.isRequired,notifyNestedSubs:a.a.func.isRequired,isSubscribed:a.a.func.isRequired}),o=a.a.shape({subscribe:a.a.func.isRequired,dispatch:a.a.func.isRequired,getState:a.a.func.isRequired});var s=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"store",r=arguments[1]||t+"Subscription",_=function(e){function _(r,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,_);var a=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,r,n));return a[t]=r.store,a}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(_,e),_.prototype.getChildContext=function(){var e;return(e={})[t]=this[t],e[r]=null,e},_.prototype.render=function(){return n.Children.only(this.props.children)},_}(n.Component);return _.propTypes={store:o.isRequired,children:a.a.element.isRequired},_.childContextTypes=((e={})[t]=o.isRequired,e[r]=i,e),_}(),l=r(334),u=r.n(l),c=r(27),d=r.n(c);var f=null,p={notify:function(){}};var h=function(){function e(t,r,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.store=t,this.parentSub=r,this.onStateChange=n,this.unsubscribe=null,this.listeners=p}return e.prototype.addNestedSub=function(e){return this.trySubscribe(),this.listeners.subscribe(e)},e.prototype.notifyNestedSubs=function(){this.listeners.notify()},e.prototype.isSubscribed=function(){return Boolean(this.unsubscribe)},e.prototype.trySubscribe=function(){this.unsubscribe||(this.unsubscribe=this.parentSub?this.parentSub.addNestedSub(this.onStateChange):this.store.subscribe(this.onStateChange),this.listeners=function(){var e=[],t=[];return{clear:function(){t=f,e=f},notify:function(){for(var r=e=t,n=0;n1&&void 0!==arguments[1]?arguments[1]:{},a=_.getDisplayName,s=void 0===a?function(e){return"ConnectAdvanced("+e+")"}:a,l=_.methodName,c=void 0===l?"connectAdvanced":l,f=_.renderCountProp,p=void 0===f?void 0:f,v=_.shouldHandleStateChanges,O=void 0===v||v,M=_.storeKey,C=void 0===M?"store":M,P=_.withRef,D=void 0!==P&&P,y=function(e,t){var r={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r}(_,["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef"]),w=C+"Subscription",T=m++,A=((t={})[C]=o,t[w]=i,t),k=((r={})[w]=i,r);return function(t){d()("function"==typeof t,"You must pass a component to the function returned by "+c+". Instead received "+JSON.stringify(t));var r=t.displayName||t.name||"Component",_=s(r),a=E({},y,{getDisplayName:s,methodName:c,renderCountProp:p,shouldHandleStateChanges:O,storeKey:C,withRef:D,displayName:_,wrappedComponentName:r,WrappedComponent:t}),i=function(r){function i(e,t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,r.call(this,e,t));return n.version=T,n.state={},n.renderCount=0,n.store=e[C]||t[C],n.propsMode=Boolean(e[C]),n.setWrappedInstance=n.setWrappedInstance.bind(n),d()(n.store,'Could not find "'+C+'" in either the context or props of "'+_+'". Either wrap the root component in a , or explicitly pass "'+C+'" as a prop to "'+_+'".'),n.initSelector(),n.initSubscription(),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(i,r),i.prototype.getChildContext=function(){var e,t=this.propsMode?null:this.subscription;return(e={})[w]=t||this.context[w],e},i.prototype.componentDidMount=function(){O&&(this.subscription.trySubscribe(),this.selector.run(this.props),this.selector.shouldComponentUpdate&&this.forceUpdate())},i.prototype.componentWillReceiveProps=function(e){this.selector.run(e)},i.prototype.shouldComponentUpdate=function(){return this.selector.shouldComponentUpdate},i.prototype.componentWillUnmount=function(){this.subscription&&this.subscription.tryUnsubscribe(),this.subscription=null,this.notifyNestedSubs=b,this.store=null,this.selector.run=b,this.selector.shouldComponentUpdate=!1},i.prototype.getWrappedInstance=function(){return d()(D,"To access the wrapped instance, you need to specify { withRef: true } in the options argument of the "+c+"() call."),this.wrappedInstance},i.prototype.setWrappedInstance=function(e){this.wrappedInstance=e},i.prototype.initSelector=function(){var t=e(this.store.dispatch,a);this.selector=function(e,t){var r={run:function(n){try{var _=e(t.getState(),n);(_!==r.props||r.error)&&(r.shouldComponentUpdate=!0,r.props=_,r.error=null)}catch(e){r.shouldComponentUpdate=!0,r.error=e}}};return r}(t,this.store),this.selector.run(this.props)},i.prototype.initSubscription=function(){if(O){var e=(this.propsMode?this.props:this.context)[w];this.subscription=new h(this.store,e,this.onStateChange.bind(this)),this.notifyNestedSubs=this.subscription.notifyNestedSubs.bind(this.subscription)}},i.prototype.onStateChange=function(){this.selector.run(this.props),this.selector.shouldComponentUpdate?(this.componentDidUpdate=this.notifyNestedSubsOnComponentDidUpdate,this.setState(g)):this.notifyNestedSubs()},i.prototype.notifyNestedSubsOnComponentDidUpdate=function(){this.componentDidUpdate=void 0,this.notifyNestedSubs()},i.prototype.isSubscribed=function(){return Boolean(this.subscription)&&this.subscription.isSubscribed()},i.prototype.addExtraProps=function(e){if(!(D||p||this.propsMode&&this.subscription))return e;var t=E({},e);return D&&(t.ref=this.setWrappedInstance),p&&(t[p]=this.renderCount++),this.propsMode&&this.subscription&&(t[w]=this.subscription),t},i.prototype.render=function(){var e=this.selector;if(e.shouldComponentUpdate=!1,e.error)throw e.error;return Object(n.createElement)(t,this.addExtraProps(e.props))},i}(n.Component);return i.WrappedComponent=t,i.displayName=_,i.childContextTypes=k,i.contextTypes=A,i.propTypes=A,u()(i,t)}}var O=Object.prototype.hasOwnProperty;function M(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function C(e,t){if(M(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(var _=0;_=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r}(t,["initMapStateToProps","initMapDispatchToProps","initMergeProps"]),i=r(e,a),o=n(e,a),s=_(e,a);return(a.pure?N:j)(i,o,s,e,a)}var F=Object.assign||function(e){for(var t=1;t=0;n--){var _=t[n](e);if(_)return _}return function(t,n){throw new Error("Invalid value of type "+typeof e+" for "+r+" argument when connecting component "+n.wrappedComponentName+".")}}function H(e,t){return e===t}var z=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.connectHOC,r=void 0===t?v:t,n=e.mapStateToPropsFactories,_=void 0===n?S:n,a=e.mapDispatchToPropsFactories,i=void 0===a?U:a,o=e.mergePropsFactories,s=void 0===o?x:o,l=e.selectorFactory,u=void 0===l?q:l;return function(e,t,n){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=a.pure,l=void 0===o||o,c=a.areStatesEqual,d=void 0===c?H:c,f=a.areOwnPropsEqual,p=void 0===f?C:f,h=a.areStatePropsEqual,E=void 0===h?C:h,m=a.areMergedPropsEqual,g=void 0===m?C:m,b=function(e,t){var r={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r}(a,["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"]),v=V(e,_,"mapStateToProps"),O=V(t,i,"mapDispatchToProps"),M=V(n,s,"mergeProps");return r(u,F({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:v,initMapDispatchToProps:O,initMergeProps:M,pure:l,areStatesEqual:d,areOwnPropsEqual:p,areStatePropsEqual:E,areMergedPropsEqual:g},b))}}();r.d(t,"a",function(){return s}),r.d(t,"b",function(){return z})},function(e,t,r){"use strict";var n=function(e){};e.exports=function(e,t,r,_,a,i,o,s){if(n(t),!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[r,_,a,i,o,s],c=0;(l=new Error(t.replace(/%s/g,function(){return u[c++]}))).name="Invariant Violation"}throw l.framesToPop=1,l}}},function(e,t,r){e.exports=function(){"use strict";var e=Array.prototype.slice;function t(e,t){t&&(e.prototype=Object.create(t.prototype)),e.prototype.constructor=e}function r(e){return i(e)?e:z(e)}function n(e){return o(e)?e:G(e)}function _(e){return s(e)?e:Y(e)}function a(e){return i(e)&&!l(e)?e:J(e)}function i(e){return!(!e||!e[c])}function o(e){return!(!e||!e[d])}function s(e){return!(!e||!e[f])}function l(e){return o(e)||s(e)}function u(e){return!(!e||!e[p])}t(n,r),t(_,r),t(a,r),r.isIterable=i,r.isKeyed=o,r.isIndexed=s,r.isAssociative=l,r.isOrdered=u,r.Keyed=n,r.Indexed=_,r.Set=a;var c="@@__IMMUTABLE_ITERABLE__@@",d="@@__IMMUTABLE_KEYED__@@",f="@@__IMMUTABLE_INDEXED__@@",p="@@__IMMUTABLE_ORDERED__@@",h=5,E=1<>>0;if(""+r!==t||4294967295===r)return NaN;t=r}return t<0?D(e)+t:t}function w(){return!0}function T(e,t,r){return(0===e||void 0!==r&&e<=-r)&&(void 0===t||void 0!==r&&t>=r)}function A(e,t){return I(e,t,0)}function k(e,t){return I(e,t,t)}function I(e,t,r){return void 0===e?r:e<0?Math.max(0,t+e):void 0===t?e:Math.min(t,e)}var R=0,L=1,B=2,U="function"==typeof Symbol&&Symbol.iterator,S="@@iterator",K=U||S;function W(e){this.next=e}function x(e,t,r,n){var _=0===e?t:1===e?r:[t,r];return n?n.value=_:n={value:_,done:!1},n}function j(){return{value:void 0,done:!0}}function N(e){return!!V(e)}function q(e){return e&&"function"==typeof e.next}function F(e){var t=V(e);return t&&t.call(e)}function V(e){var t=e&&(U&&e[U]||e[S]);if("function"==typeof t)return t}function H(e){return e&&"number"==typeof e.length}function z(e){return null===e||void 0===e?ae():i(e)?e.toSeq():function(e){var t=se(e)||"object"==typeof e&&new te(e);if(!t)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+e);return t}(e)}function G(e){return null===e||void 0===e?ae().toKeyedSeq():i(e)?o(e)?e.toSeq():e.fromEntrySeq():ie(e)}function Y(e){return null===e||void 0===e?ae():i(e)?o(e)?e.entrySeq():e.toIndexedSeq():oe(e)}function J(e){return(null===e||void 0===e?ae():i(e)?o(e)?e.entrySeq():e:oe(e)).toSetSeq()}W.prototype.toString=function(){return"[Iterator]"},W.KEYS=R,W.VALUES=L,W.ENTRIES=B,W.prototype.inspect=W.prototype.toSource=function(){return this.toString()},W.prototype[K]=function(){return this},t(z,r),z.of=function(){return z(arguments)},z.prototype.toSeq=function(){return this},z.prototype.toString=function(){return this.__toString("Seq {","}")},z.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},z.prototype.__iterate=function(e,t){return le(this,e,t,!0)},z.prototype.__iterator=function(e,t){return ue(this,e,t,!0)},t(G,z),G.prototype.toKeyedSeq=function(){return this},t(Y,z),Y.of=function(){return Y(arguments)},Y.prototype.toIndexedSeq=function(){return this},Y.prototype.toString=function(){return this.__toString("Seq [","]")},Y.prototype.__iterate=function(e,t){return le(this,e,t,!1)},Y.prototype.__iterator=function(e,t){return ue(this,e,t,!1)},t(J,z),J.of=function(){return J(arguments)},J.prototype.toSetSeq=function(){return this},z.isSeq=_e,z.Keyed=G,z.Set=J,z.Indexed=Y;var X,Q,$,Z="@@__IMMUTABLE_SEQ__@@";function ee(e){this._array=e,this.size=e.length}function te(e){var t=Object.keys(e);this._object=e,this._keys=t,this.size=t.length}function re(e){this._iterable=e,this.size=e.length||e.size}function ne(e){this._iterator=e,this._iteratorCache=[]}function _e(e){return!(!e||!e[Z])}function ae(){return X||(X=new ee([]))}function ie(e){var t=Array.isArray(e)?new ee(e).fromEntrySeq():q(e)?new ne(e).fromEntrySeq():N(e)?new re(e).fromEntrySeq():"object"==typeof e?new te(e):void 0;if(!t)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+e);return t}function oe(e){var t=se(e);if(!t)throw new TypeError("Expected Array or iterable object of values: "+e);return t}function se(e){return H(e)?new ee(e):q(e)?new ne(e):N(e)?new re(e):void 0}function le(e,t,r,n){var _=e._cache;if(_){for(var a=_.length-1,i=0;i<=a;i++){var o=_[r?a-i:i];if(!1===t(o[1],n?o[0]:i,e))return i+1}return i}return e.__iterateUncached(t,r)}function ue(e,t,r,n){var _=e._cache;if(_){var a=_.length-1,i=0;return new W(function(){var e=_[r?a-i:i];return i++>a?{value:void 0,done:!0}:x(t,n?e[0]:i-1,e[1])})}return e.__iteratorUncached(t,r)}function ce(e,t){return t?function e(t,r,n,_){return Array.isArray(r)?t.call(_,n,Y(r).map(function(n,_){return e(t,n,_,r)})):fe(r)?t.call(_,n,G(r).map(function(n,_){return e(t,n,_,r)})):r}(t,e,"",{"":e}):de(e)}function de(e){return Array.isArray(e)?Y(e).map(de).toList():fe(e)?G(e).map(de).toMap():e}function fe(e){return e&&(e.constructor===Object||void 0===e.constructor)}function pe(e,t){if(e===t||e!=e&&t!=t)return!0;if(!e||!t)return!1;if("function"==typeof e.valueOf&&"function"==typeof t.valueOf){if(e=e.valueOf(),t=t.valueOf(),e===t||e!=e&&t!=t)return!0;if(!e||!t)return!1}return!("function"!=typeof e.equals||"function"!=typeof t.equals||!e.equals(t))}function he(e,t){if(e===t)return!0;if(!i(t)||void 0!==e.size&&void 0!==t.size&&e.size!==t.size||void 0!==e.__hash&&void 0!==t.__hash&&e.__hash!==t.__hash||o(e)!==o(t)||s(e)!==s(t)||u(e)!==u(t))return!1;if(0===e.size&&0===t.size)return!0;var r=!l(e);if(u(e)){var n=e.entries();return t.every(function(e,t){var _=n.next().value;return _&&pe(_[1],e)&&(r||pe(_[0],t))})&&n.next().done}var _=!1;if(void 0===e.size)if(void 0===t.size)"function"==typeof e.cacheResult&&e.cacheResult();else{_=!0;var a=e;e=t,t=a}var c=!0,d=t.__iterate(function(t,n){if(r?!e.has(t):_?!pe(t,e.get(n,g)):!pe(e.get(n,g),t))return c=!1,!1});return c&&e.size===d}function Ee(e,t){if(!(this instanceof Ee))return new Ee(e,t);if(this._value=e,this.size=void 0===t?1/0:Math.max(0,t),0===this.size){if(Q)return Q;Q=this}}function me(e,t){if(!e)throw new Error(t)}function ge(e,t,r){if(!(this instanceof ge))return new ge(e,t,r);if(me(0!==r,"Cannot step a Range by 0"),e=e||0,void 0===t&&(t=1/0),r=void 0===r?1:Math.abs(r),tn?{value:void 0,done:!0}:x(e,_,r[t?n-_++:_++])})},t(te,G),te.prototype.get=function(e,t){return void 0===t||this.has(e)?this._object[e]:t},te.prototype.has=function(e){return this._object.hasOwnProperty(e)},te.prototype.__iterate=function(e,t){for(var r=this._object,n=this._keys,_=n.length-1,a=0;a<=_;a++){var i=n[t?_-a:a];if(!1===e(r[i],i,this))return a+1}return a},te.prototype.__iterator=function(e,t){var r=this._object,n=this._keys,_=n.length-1,a=0;return new W(function(){var i=n[t?_-a:a];return a++>_?{value:void 0,done:!0}:x(e,i,r[i])})},te.prototype[p]=!0,t(re,Y),re.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var r=this._iterable,n=F(r),_=0;if(q(n))for(var a;!(a=n.next()).done&&!1!==e(a.value,_++,this););return _},re.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var r=this._iterable,n=F(r);if(!q(n))return new W(j);var _=0;return new W(function(){var t=n.next();return t.done?t:x(e,_++,t.value)})},t(ne,Y),ne.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);for(var r,n=this._iterator,_=this._iteratorCache,a=0;a<_.length;)if(!1===e(_[a],a++,this))return a;for(;!(r=n.next()).done;){var i=r.value;if(_[a]=i,!1===e(i,a++,this))break}return a},ne.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var r=this._iterator,n=this._iteratorCache,_=0;return new W(function(){if(_>=n.length){var t=r.next();if(t.done)return t;n[_]=t.value}return x(e,_,n[_++])})},t(Ee,Y),Ee.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},Ee.prototype.get=function(e,t){return this.has(e)?this._value:t},Ee.prototype.includes=function(e){return pe(this._value,e)},Ee.prototype.slice=function(e,t){var r=this.size;return T(e,t,r)?this:new Ee(this._value,k(t,r)-A(e,r))},Ee.prototype.reverse=function(){return this},Ee.prototype.indexOf=function(e){return pe(this._value,e)?0:-1},Ee.prototype.lastIndexOf=function(e){return pe(this._value,e)?this.size:-1},Ee.prototype.__iterate=function(e,t){for(var r=0;r1?" by "+this._step:"")+" ]"},ge.prototype.get=function(e,t){return this.has(e)?this._start+y(this,e)*this._step:t},ge.prototype.includes=function(e){var t=(e-this._start)/this._step;return t>=0&&t=0&&rr?{value:void 0,done:!0}:x(e,a++,i)})},ge.prototype.equals=function(e){return e instanceof ge?this._start===e._start&&this._end===e._end&&this._step===e._step:he(this,e)},t(be,r),t(ve,be),t(Oe,be),t(Me,be),be.Keyed=ve,be.Indexed=Oe,be.Set=Me;var Ce="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(e,t){var r=65535&(e|=0),n=65535&(t|=0);return r*n+((e>>>16)*n+r*(t>>>16)<<16>>>0)|0};function Pe(e){return e>>>1&1073741824|3221225471&e}function De(e){if(!1===e||null===e||void 0===e)return 0;if("function"==typeof e.valueOf&&(!1===(e=e.valueOf())||null===e||void 0===e))return 0;if(!0===e)return 1;var t=typeof e;if("number"===t){var r=0|e;for(r!==e&&(r^=4294967295*e);e>4294967295;)r^=e/=4294967295;return Pe(r)}if("string"===t)return e.length>Le?function(e){var t=Se[e];return void 0===t&&(t=ye(e),Ue===Be&&(Ue=0,Se={}),Ue++,Se[e]=t),t}(e):ye(e);if("function"==typeof e.hashCode)return e.hashCode();if("object"===t)return function(e){var t;if(ke&&void 0!==(t=we.get(e)))return t;if(void 0!==(t=e[Re]))return t;if(!Ae){if(void 0!==(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[Re]))return t;if(void 0!==(t=function(e){if(e&&e.nodeType>0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}(e)))return t}if(t=++Ie,1073741824&Ie&&(Ie=0),ke)we.set(e,t);else{if(void 0!==Te&&!1===Te(e))throw new Error("Non-extensible objects are not allowed as keys.");if(Ae)Object.defineProperty(e,Re,{enumerable:!1,configurable:!1,writable:!1,value:t});else if(void 0!==e.propertyIsEnumerable&&e.propertyIsEnumerable===e.constructor.prototype.propertyIsEnumerable)e.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},e.propertyIsEnumerable[Re]=t;else{if(void 0===e.nodeType)throw new Error("Unable to set a non-enumerable property on object.");e[Re]=t}}return t}(e);if("function"==typeof e.toString)return ye(e.toString());throw new Error("Value type "+t+" cannot be hashed.")}function ye(e){for(var t=0,r=0;r>>r)&m,o=(0===r?n:n>>>r)&m,s=i===o?[rt(e,t,r+h,n,_)]:(a=new Ge(t,n,_),i>1&1431655765))+(e>>2&858993459))+(e>>4)&252645135,e+=e>>8,127&(e+=e>>16)}function st(e,t,r,n){var _=n?e:P(e);return _[t]=r,_}qe[Ne]=!0,qe.delete=qe.remove,qe.removeIn=qe.deleteIn,Fe.prototype.get=function(e,t,r,n){for(var _=this.entries,a=0,i=_.length;a=lt)return function(e,t,r,n){e||(e=new C);for(var _=new Ge(e,De(r),[r,n]),a=0;a>>e)&m),a=this.bitmap;return 0==(a&_)?n:this.nodes[ot(a&_-1)].get(e+h,t,r,n)},Ve.prototype.update=function(e,t,r,n,_,a,i){void 0===r&&(r=De(n));var o=(0===t?r:r>>>t)&m,s=1<=ut)return function(e,t,r,n,_){for(var a=0,i=new Array(E),o=0;0!==r;o++,r>>>=1)i[o]=1&r?t[a++]:void 0;return i[n]=_,new He(e,a+1,i)}(e,d,l,o,p);if(u&&!p&&2===d.length&&tt(d[1^c]))return d[1^c];if(u&&p&&1===d.length&&tt(p))return p;var b=e&&e===this.ownerID,v=u?p?l:l^s:l|s,O=u?p?st(d,c,p,b):function(e,t,r){var n=e.length-1;if(r&&t===n)return e.pop(),e;for(var _=new Array(n),a=0,i=0;i>>e)&m,a=this.nodes[_];return a?a.get(e+h,t,r,n):n},He.prototype.update=function(e,t,r,n,_,a,i){void 0===r&&(r=De(n));var o=(0===t?r:r>>>t)&m,s=_===g,l=this.nodes,u=l[o];if(s&&!u)return this;var c=et(u,e,t+h,r,n,_,a,i);if(c===u)return this;var d=this.count;if(u){if(!c&&--d0&&n=0&&e=e.size||t<0)return e.withMutations(function(e){t<0?yt(e,t).set(0,r):yt(e,0,t+1).set(t,r)});t+=e._origin;var n=e._tail,_=e._root,a=O(v);return t>=Tt(e._capacity)?n=Ct(n,e.__ownerID,0,t,r,a):_=Ct(_,e.__ownerID,e._level,t,r,a),a.value?e.__ownerID?(e._root=_,e._tail=n,e.__hash=void 0,e.__altered=!0,e):Ot(e._origin,e._capacity,e._level,_,n):e}(this,e,t)},dt.prototype.remove=function(e){return this.has(e)?0===e?this.shift():e===this.size-1?this.pop():this.splice(e,1):this},dt.prototype.insert=function(e,t){return this.splice(e,0,t)},dt.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=h,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):Mt()},dt.prototype.push=function(){var e=arguments,t=this.size;return this.withMutations(function(r){yt(r,0,t+e.length);for(var n=0;n>>t&m;if(n>=this.array.length)return new Et([],e);var _,a=0===n;if(t>0){var i=this.array[n];if((_=i&&i.removeBefore(e,t-h,r))===i&&a)return this}if(a&&!_)return this;var o=Pt(this,e);if(!a)for(var s=0;s>>t&m;if(_>=this.array.length)return this;if(t>0){var a=this.array[_];if((n=a&&a.removeAfter(e,t-h,r))===a&&_===this.array.length-1)return this}var i=Pt(this,e);return i.array.splice(_+1),n&&(i.array[_]=n),i};var mt,gt,bt={};function vt(e,t){var r=e._origin,n=e._capacity,_=Tt(n),a=e._tail;return i(e._root,e._level,0);function i(e,o,s){return 0===o?function(e,i){var o=i===_?a&&a.array:e&&e.array,s=i>r?0:r-i,l=n-i;return l>E&&(l=E),function(){if(s===l)return bt;var e=t?--l:s++;return o&&o[e]}}(e,s):function(e,_,a){var o,s=e&&e.array,l=a>r?0:r-a>>_,u=1+(n-a>>_);return u>E&&(u=E),function(){for(;;){if(o){var e=o();if(e!==bt)return e;o=null}if(l===u)return bt;var r=t?--u:l++;o=i(s&&s[r],_-h,a+(r<<_))}}}(e,o,s)}}function Ot(e,t,r,n,_,a,i){var o=Object.create(ht);return o.size=t-e,o._origin=e,o._capacity=t,o._level=r,o._root=n,o._tail=_,o.__ownerID=a,o.__hash=i,o.__altered=!1,o}function Mt(){return mt||(mt=Ot(0,0,h))}function Ct(e,t,r,n,_,a){var i,o=n>>>r&m,s=e&&o0){var l=e&&e.array[o],u=Ct(l,t,r-h,n,_,a);return u===l?e:((i=Pt(e,t)).array[o]=u,i)}return s&&e.array[o]===_?e:(M(a),i=Pt(e,t),void 0===_&&o===i.array.length-1?i.array.pop():i.array[o]=_,i)}function Pt(e,t){return t&&e&&t===e.ownerID?e:new Et(e?e.array.slice():[],t)}function Dt(e,t){if(t>=Tt(e._capacity))return e._tail;if(t<1<0;)r=r.array[t>>>n&m],n-=h;return r}}function yt(e,t,r){void 0!==t&&(t|=0),void 0!==r&&(r|=0);var n=e.__ownerID||new C,_=e._origin,a=e._capacity,i=_+t,o=void 0===r?a:r<0?a+r:_+r;if(i===_&&o===a)return e;if(i>=o)return e.clear();for(var s=e._level,l=e._root,u=0;i+u<0;)l=new Et(l&&l.array.length?[void 0,l]:[],n),u+=1<<(s+=h);u&&(i+=u,_+=u,o+=u,a+=u);for(var c=Tt(a),d=Tt(o);d>=1<c?new Et([],n):f;if(f&&d>c&&ih;g-=h){var b=c>>>g&m;E=E.array[b]=Pt(E.array[b],n)}E.array[c>>>h&m]=f}if(o=d)i-=d,o-=d,s=h,l=null,p=p&&p.removeBefore(n,0,i);else if(i>_||d>>s&m;if(v!==d>>>s&m)break;v&&(u+=(1<_&&(l=l.removeBefore(n,s,i-u)),l&&da&&(a=l.size),i(s)||(l=l.map(function(e){return ce(e)})),n.push(l)}return a>e.size&&(e=e.setSize(a)),it(e,t,n)}function Tt(e){return e>>h<=E&&i.size>=2*a.size?(_=i.filter(function(e,t){return void 0!==e&&o!==t}),n=_.toKeyedSeq().map(function(e){return e[0]}).flip().toMap(),e.__ownerID&&(n.__ownerID=_.__ownerID=e.__ownerID)):(n=a.remove(t),_=o===i.size-1?i.pop():i.set(o,void 0))}else if(s){if(r===i.get(o)[1])return e;n=a,_=i.set(o,[t,r])}else n=a.set(t,i.size),_=i.set(i.size,[t,r]);return e.__ownerID?(e.size=n.size,e._map=n,e._list=_,e.__hash=void 0,e):It(n,_)}function Bt(e,t){this._iter=e,this._useKeys=t,this.size=e.size}function Ut(e){this._iter=e,this.size=e.size}function St(e){this._iter=e,this.size=e.size}function Kt(e){this._iter=e,this.size=e.size}function Wt(e){var t=Zt(e);return t._iter=e,t.size=e.size,t.flip=function(){return e},t.reverse=function(){var t=e.reverse.apply(this);return t.flip=function(){return e.reverse()},t},t.has=function(t){return e.includes(t)},t.includes=function(t){return e.has(t)},t.cacheResult=er,t.__iterateUncached=function(t,r){var n=this;return e.__iterate(function(e,r){return!1!==t(r,e,n)},r)},t.__iteratorUncached=function(t,r){if(t===B){var n=e.__iterator(t,r);return new W(function(){var e=n.next();if(!e.done){var t=e.value[0];e.value[0]=e.value[1],e.value[1]=t}return e})}return e.__iterator(t===L?R:L,r)},t}function xt(e,t,r){var n=Zt(e);return n.size=e.size,n.has=function(t){return e.has(t)},n.get=function(n,_){var a=e.get(n,g);return a===g?_:t.call(r,a,n,e)},n.__iterateUncached=function(n,_){var a=this;return e.__iterate(function(e,_,i){return!1!==n(t.call(r,e,_,i),_,a)},_)},n.__iteratorUncached=function(n,_){var a=e.__iterator(B,_);return new W(function(){var _=a.next();if(_.done)return _;var i=_.value,o=i[0];return x(n,o,t.call(r,i[1],o,e),_)})},n}function jt(e,t){var r=Zt(e);return r._iter=e,r.size=e.size,r.reverse=function(){return e},e.flip&&(r.flip=function(){var t=Wt(e);return t.reverse=function(){return e.flip()},t}),r.get=function(r,n){return e.get(t?r:-1-r,n)},r.has=function(r){return e.has(t?r:-1-r)},r.includes=function(t){return e.includes(t)},r.cacheResult=er,r.__iterate=function(t,r){var n=this;return e.__iterate(function(e,r){return t(e,r,n)},!r)},r.__iterator=function(t,r){return e.__iterator(t,!r)},r}function Nt(e,t,r,n){var _=Zt(e);return n&&(_.has=function(n){var _=e.get(n,g);return _!==g&&!!t.call(r,_,n,e)},_.get=function(n,_){var a=e.get(n,g);return a!==g&&t.call(r,a,n,e)?a:_}),_.__iterateUncached=function(_,a){var i=this,o=0;return e.__iterate(function(e,a,s){if(t.call(r,e,a,s))return o++,_(e,n?a:o-1,i)},a),o},_.__iteratorUncached=function(_,a){var i=e.__iterator(B,a),o=0;return new W(function(){for(;;){var a=i.next();if(a.done)return a;var s=a.value,l=s[0],u=s[1];if(t.call(r,u,l,e))return x(_,n?l:o++,u,a)}})},_}function qt(e,t,r,n){var _=e.size;if(void 0!==t&&(t|=0),void 0!==r&&(r|=0),T(t,r,_))return e;var a=A(t,_),i=k(r,_);if(a!=a||i!=i)return qt(e.toSeq().cacheResult(),t,r,n);var o,s=i-a;s==s&&(o=s<0?0:s);var l=Zt(e);return l.size=0===o?o:e.size&&o||void 0,!n&&_e(e)&&o>=0&&(l.get=function(t,r){return(t=y(this,t))>=0&&to)return{value:void 0,done:!0};var e=_.next();return n||t===L?e:x(t,s-1,t===R?void 0:e.value[1],e)})},l}function Ft(e,t,r,n){var _=Zt(e);return _.__iterateUncached=function(_,a){var i=this;if(a)return this.cacheResult().__iterate(_,a);var o=!0,s=0;return e.__iterate(function(e,a,l){if(!o||!(o=t.call(r,e,a,l)))return s++,_(e,n?a:s-1,i)}),s},_.__iteratorUncached=function(_,a){var i=this;if(a)return this.cacheResult().__iterator(_,a);var o=e.__iterator(B,a),s=!0,l=0;return new W(function(){var e,a,u;do{if((e=o.next()).done)return n||_===L?e:x(_,l++,_===R?void 0:e.value[1],e);var c=e.value;a=c[0],u=c[1],s&&(s=t.call(r,u,a,i))}while(s);return _===B?e:x(_,a,u,e)})},_}function Vt(e,t,r){var n=Zt(e);return n.__iterateUncached=function(n,_){var a=0,o=!1;return function e(s,l){var u=this;s.__iterate(function(_,s){return(!t||l0}function Yt(e,t,n){var _=Zt(e);return _.size=new ee(n).map(function(e){return e.size}).min(),_.__iterate=function(e,t){for(var r,n=this.__iterator(L,t),_=0;!(r=n.next()).done&&!1!==e(r.value,_++,this););return _},_.__iteratorUncached=function(e,_){var a=n.map(function(e){return e=r(e),F(_?e.reverse():e)}),i=0,o=!1;return new W(function(){var r;return o||(r=a.map(function(e){return e.next()}),o=r.some(function(e){return e.done})),o?{value:void 0,done:!0}:x(e,i++,t.apply(null,r.map(function(e){return e.value})))})},_}function Jt(e,t){return _e(e)?t:e.constructor(t)}function Xt(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function Qt(e){return Ke(e.size),D(e)}function $t(e){return o(e)?n:s(e)?_:a}function Zt(e){return Object.create((o(e)?G:s(e)?Y:J).prototype)}function er(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):z.prototype.cacheResult.call(this)}function tr(e,t){return e>t?1:e=0;r--)t={value:arguments[r],next:t};return this.__ownerID?(this.size=e,this._head=t,this.__hash=void 0,this.__altered=!0,this):yr(e,t)},Or.prototype.pushAll=function(e){if(0===(e=_(e)).size)return this;Ke(e.size);var t=this.size,r=this._head;return e.reverse().forEach(function(e){t++,r={value:e,next:r}}),this.__ownerID?(this.size=t,this._head=r,this.__hash=void 0,this.__altered=!0,this):yr(t,r)},Or.prototype.pop=function(){return this.slice(1)},Or.prototype.unshift=function(){return this.push.apply(this,arguments)},Or.prototype.unshiftAll=function(e){return this.pushAll(e)},Or.prototype.shift=function(){return this.pop.apply(this,arguments)},Or.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):wr()},Or.prototype.slice=function(e,t){if(T(e,t,this.size))return this;var r=A(e,this.size),n=k(t,this.size);if(n!==this.size)return Oe.prototype.slice.call(this,e,t);for(var _=this.size-r,a=this._head;r--;)a=a.next;return this.__ownerID?(this.size=_,this._head=a,this.__hash=void 0,this.__altered=!0,this):yr(_,a)},Or.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?yr(this.size,this._head,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},Or.prototype.__iterate=function(e,t){if(t)return this.reverse().__iterate(e);for(var r=0,n=this._head;n&&!1!==e(n.value,r++,this);)n=n.next;return r},Or.prototype.__iterator=function(e,t){if(t)return this.reverse().__iterator(e);var r=0,n=this._head;return new W(function(){if(n){var t=n.value;return n=n.next,x(e,r++,t)}return{value:void 0,done:!0}})},Or.isStack=Mr;var Cr,Pr="@@__IMMUTABLE_STACK__@@",Dr=Or.prototype;function yr(e,t,r,n){var _=Object.create(Dr);return _.size=e,_._head=t,_.__ownerID=r,_.__hash=n,_.__altered=!1,_}function wr(){return Cr||(Cr=yr(0))}function Tr(e,t){var r=function(r){e.prototype[r]=t[r]};return Object.keys(t).forEach(r),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach(r),e}Dr[Pr]=!0,Dr.withMutations=qe.withMutations,Dr.asMutable=qe.asMutable,Dr.asImmutable=qe.asImmutable,Dr.wasAltered=qe.wasAltered,r.Iterator=W,Tr(r,{toArray:function(){Ke(this.size);var e=new Array(this.size||0);return this.valueSeq().__iterate(function(t,r){e[r]=t}),e},toIndexedSeq:function(){return new Ut(this)},toJS:function(){return this.toSeq().map(function(e){return e&&"function"==typeof e.toJS?e.toJS():e}).__toJS()},toJSON:function(){return this.toSeq().map(function(e){return e&&"function"==typeof e.toJSON?e.toJSON():e}).__toJS()},toKeyedSeq:function(){return new Bt(this,!0)},toMap:function(){return We(this.toKeyedSeq())},toObject:function(){Ke(this.size);var e={};return this.__iterate(function(t,r){e[r]=t}),e},toOrderedMap:function(){return At(this.toKeyedSeq())},toOrderedSet:function(){return hr(o(this)?this.valueSeq():this)},toSet:function(){return or(o(this)?this.valueSeq():this)},toSetSeq:function(){return new St(this)},toSeq:function(){return s(this)?this.toIndexedSeq():o(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return Or(o(this)?this.valueSeq():this)},toList:function(){return dt(o(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(e,t){return 0===this.size?e+t:e+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+t},concat:function(){var t=e.call(arguments,0);return Jt(this,function(e,t){var r=o(e),_=[e].concat(t).map(function(e){return i(e)?r&&(e=n(e)):e=r?ie(e):oe(Array.isArray(e)?e:[e]),e}).filter(function(e){return 0!==e.size});if(0===_.length)return e;if(1===_.length){var a=_[0];if(a===e||r&&o(a)||s(e)&&s(a))return a}var l=new ee(_);return r?l=l.toKeyedSeq():s(e)||(l=l.toSetSeq()),(l=l.flatten(!0)).size=_.reduce(function(e,t){if(void 0!==e){var r=t.size;if(void 0!==r)return e+r}},0),l}(this,t))},includes:function(e){return this.some(function(t){return pe(t,e)})},entries:function(){return this.__iterator(B)},every:function(e,t){Ke(this.size);var r=!0;return this.__iterate(function(n,_,a){if(!e.call(t,n,_,a))return r=!1,!1}),r},filter:function(e,t){return Jt(this,Nt(this,e,t,!0))},find:function(e,t,r){var n=this.findEntry(e,t);return n?n[1]:r},findEntry:function(e,t){var r;return this.__iterate(function(n,_,a){if(e.call(t,n,_,a))return r=[_,n],!1}),r},findLastEntry:function(e,t){return this.toSeq().reverse().findEntry(e,t)},forEach:function(e,t){return Ke(this.size),this.__iterate(t?e.bind(t):e)},join:function(e){Ke(this.size),e=void 0!==e?""+e:",";var t="",r=!0;return this.__iterate(function(n){r?r=!1:t+=e,t+=null!==n&&void 0!==n?n.toString():""}),t},keys:function(){return this.__iterator(R)},map:function(e,t){return Jt(this,xt(this,e,t))},reduce:function(e,t,r){var n,_;return Ke(this.size),arguments.length<2?_=!0:n=t,this.__iterate(function(t,a,i){_?(_=!1,n=t):n=e.call(r,n,t,a,i)}),n},reduceRight:function(e,t,r){var n=this.toKeyedSeq().reverse();return n.reduce.apply(n,arguments)},reverse:function(){return Jt(this,jt(this,!0))},slice:function(e,t){return Jt(this,qt(this,e,t,!0))},some:function(e,t){return!this.every(Lr(e),t)},sort:function(e){return Jt(this,Ht(this,e))},values:function(){return this.__iterator(L)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some(function(){return!0})},count:function(e,t){return D(e?this.toSeq().filter(e,t):this)},countBy:function(e,t){return function(e,t,r){var n=We().asMutable();return e.__iterate(function(_,a){n.update(t.call(r,_,a,e),0,function(e){return e+1})}),n.asImmutable()}(this,e,t)},equals:function(e){return he(this,e)},entrySeq:function(){var e=this;if(e._cache)return new ee(e._cache);var t=e.toSeq().map(Rr).toIndexedSeq();return t.fromEntrySeq=function(){return e.toSeq()},t},filterNot:function(e,t){return this.filter(Lr(e),t)},findLast:function(e,t,r){return this.toKeyedSeq().reverse().find(e,t,r)},first:function(){return this.find(w)},flatMap:function(e,t){return Jt(this,function(e,t,r){var n=$t(e);return e.toSeq().map(function(_,a){return n(t.call(r,_,a,e))}).flatten(!0)}(this,e,t))},flatten:function(e){return Jt(this,Vt(this,e,!0))},fromEntrySeq:function(){return new Kt(this)},get:function(e,t){return this.find(function(t,r){return pe(r,e)},void 0,t)},getIn:function(e,t){for(var r,n=this,_=rr(e);!(r=_.next()).done;){var a=r.value;if((n=n&&n.get?n.get(a,g):g)===g)return t}return n},groupBy:function(e,t){return function(e,t,r){var n=o(e),_=(u(e)?At():We()).asMutable();e.__iterate(function(a,i){_.update(t.call(r,a,i,e),function(e){return(e=e||[]).push(n?[i,a]:a),e})});var a=$t(e);return _.map(function(t){return Jt(e,a(t))})}(this,e,t)},has:function(e){return this.get(e,g)!==g},hasIn:function(e){return this.getIn(e,g)!==g},isSubset:function(e){return e="function"==typeof e.includes?e:r(e),this.every(function(t){return e.includes(t)})},isSuperset:function(e){return(e="function"==typeof e.isSubset?e:r(e)).isSubset(this)},keySeq:function(){return this.toSeq().map(Ir).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},max:function(e){return zt(this,e)},maxBy:function(e,t){return zt(this,t,e)},min:function(e){return zt(this,e?Br(e):Kr)},minBy:function(e,t){return zt(this,t?Br(t):Kr,e)},rest:function(){return this.slice(1)},skip:function(e){return this.slice(Math.max(0,e))},skipLast:function(e){return Jt(this,this.toSeq().reverse().skip(e).reverse())},skipWhile:function(e,t){return Jt(this,Ft(this,e,t,!0))},skipUntil:function(e,t){return this.skipWhile(Lr(e),t)},sortBy:function(e,t){return Jt(this,Ht(this,t,e))},take:function(e){return this.slice(0,Math.max(0,e))},takeLast:function(e){return Jt(this,this.toSeq().reverse().take(e).reverse())},takeWhile:function(e,t){return Jt(this,function(e,t,r){var n=Zt(e);return n.__iterateUncached=function(n,_){var a=this;if(_)return this.cacheResult().__iterate(n,_);var i=0;return e.__iterate(function(e,_,o){return t.call(r,e,_,o)&&++i&&n(e,_,a)}),i},n.__iteratorUncached=function(n,_){var a=this;if(_)return this.cacheResult().__iterator(n,_);var i=e.__iterator(B,_),o=!0;return new W(function(){if(!o)return{value:void 0,done:!0};var e=i.next();if(e.done)return e;var _=e.value,s=_[0],l=_[1];return t.call(r,l,s,a)?n===B?e:x(n,s,l,e):(o=!1,{value:void 0,done:!0})})},n}(this,e,t))},takeUntil:function(e,t){return this.takeWhile(Lr(e),t)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=function(e){if(e.size===1/0)return 0;var t=u(e),r=o(e),n=t?1:0;return function(e,t){return t=Ce(t,3432918353),t=Ce(t<<15|t>>>-15,461845907),t=Ce(t<<13|t>>>-13,5),t=Ce((t=(t+3864292196|0)^e)^t>>>16,2246822507),t=Pe((t=Ce(t^t>>>13,3266489909))^t>>>16)}(e.__iterate(r?t?function(e,t){n=31*n+Wr(De(e),De(t))|0}:function(e,t){n=n+Wr(De(e),De(t))|0}:t?function(e){n=31*n+De(e)|0}:function(e){n=n+De(e)|0}),n)}(this))}});var Ar=r.prototype;Ar[c]=!0,Ar[K]=Ar.values,Ar.__toJS=Ar.toArray,Ar.__toStringMapper=Ur,Ar.inspect=Ar.toSource=function(){return this.toString()},Ar.chain=Ar.flatMap,Ar.contains=Ar.includes,function(){try{Object.defineProperty(Ar,"length",{get:function(){if(!r.noLengthWarning){var e;try{throw new Error}catch(t){e=t.stack}if(-1===e.indexOf("_wrapObject"))return console&&console.warn&&console.warn("iterable.length has been deprecated, use iterable.size or iterable.count(). This warning will become a silent error in a future version. "+e),this.size}}})}catch(e){}}(),Tr(n,{flip:function(){return Jt(this,Wt(this))},findKey:function(e,t){var r=this.findEntry(e,t);return r&&r[0]},findLastKey:function(e,t){return this.toSeq().reverse().findKey(e,t)},keyOf:function(e){return this.findKey(function(t){return pe(t,e)})},lastKeyOf:function(e){return this.findLastKey(function(t){return pe(t,e)})},mapEntries:function(e,t){var r=this,n=0;return Jt(this,this.toSeq().map(function(_,a){return e.call(t,[a,_],n++,r)}).fromEntrySeq())},mapKeys:function(e,t){var r=this;return Jt(this,this.toSeq().flip().map(function(n,_){return e.call(t,n,_,r)}).flip())}});var kr=n.prototype;function Ir(e,t){return t}function Rr(e,t){return[t,e]}function Lr(e){return function(){return!e.apply(this,arguments)}}function Br(e){return function(){return-e.apply(this,arguments)}}function Ur(e){return"string"==typeof e?JSON.stringify(e):e}function Sr(){return P(arguments)}function Kr(e,t){return et?-1:0}function Wr(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}return kr[d]=!0,kr[K]=Ar.entries,kr.__toJS=Ar.toObject,kr.__toStringMapper=function(e,t){return JSON.stringify(t)+": "+Ur(e)},Tr(_,{toKeyedSeq:function(){return new Bt(this,!1)},filter:function(e,t){return Jt(this,Nt(this,e,t,!1))},findIndex:function(e,t){var r=this.findEntry(e,t);return r?r[0]:-1},indexOf:function(e){var t=this.toKeyedSeq().keyOf(e);return void 0===t?-1:t},lastIndexOf:function(e){var t=this.toKeyedSeq().reverse().keyOf(e);return void 0===t?-1:t},reverse:function(){return Jt(this,jt(this,!1))},slice:function(e,t){return Jt(this,qt(this,e,t,!1))},splice:function(e,t){var r=arguments.length;if(t=Math.max(0|t,0),0===r||2===r&&!t)return this;e=A(e,e<0?this.count():this.size);var n=this.slice(0,e);return Jt(this,1===r?n:n.concat(P(arguments,2),this.slice(e+t)))},findLastIndex:function(e,t){var r=this.toKeyedSeq().findLastKey(e,t);return void 0===r?-1:r},first:function(){return this.get(0)},flatten:function(e){return Jt(this,Vt(this,e,!1))},get:function(e,t){return(e=y(this,e))<0||this.size===1/0||void 0!==this.size&&e>this.size?t:this.find(function(t,r){return r===e},void 0,t)},has:function(e){return(e=y(this,e))>=0&&(void 0!==this.size?this.size===1/0||e0)return _.getInlineStyleAt(n-1);if(_.getLength())return _.getInlineStyleAt(0);return E(e,r)}(t,r):function(e,t){var r=t.getStartKey(),n=t.getStartOffset(),_=e.getBlockForKey(r);if(n<_.getLength())return _.getInlineStyleAt(n);if(n>0)return _.getInlineStyleAt(n-1);return E(e,r)}(t,r)},e.prototype.getBlockTree=function(e){return this.getImmutable().getIn(["treeMap",e])},e.prototype.isSelectionAtStartOfContent=function(){var e=this.getCurrentContent().getBlockMap().first().getKey();return this.getSelection().hasEdgeWithin(e,0,0)},e.prototype.isSelectionAtEndOfContent=function(){var e=this.getCurrentContent().getBlockMap().last(),t=e.getLength();return this.getSelection().hasEdgeWithin(e.getKey(),t,t)},e.prototype.getDirectionMap=function(){return this.getImmutable().get("directionMap")},e.acceptSelection=function(e,t){return p(e,t,!1)},e.forceSelection=function(e,t){return t.getHasFocus()||(t=t.set("hasFocus",!0)),p(e,t,!0)},e.moveSelectionToEnd=function(t){var r=t.getCurrentContent().getLastBlock(),n=r.getKey(),_=r.getLength();return e.acceptSelection(t,new s({anchorKey:n,anchorOffset:_,focusKey:n,focusOffset:_,isBackward:!1}))},e.moveFocusToEnd=function(t){var r=e.moveSelectionToEnd(t);return e.forceSelection(r,r.getSelection())},e.push=function(t,r,n){if(t.getCurrentContent()===r)return t;var _="insert-characters"!==n,a=i.getDirectionMap(r,t.getDirectionMap());if(!t.getAllowUndo())return e.set(t,{currentContent:r,directionMap:a,lastChangeType:n,selection:r.getSelectionAfter(),forceSelection:_,inlineStyleOverride:null});var o=t.getSelection(),s=t.getCurrentContent(),l=t.getUndoStack(),u=r;o!==s.getSelectionAfter()||function(e,t){var r=e.getLastChangeType();return t!==r||"insert-characters"!==t&&"backspace-character"!==t&&"delete-character"!==t}(t,n)?(l=l.push(s),u=u.set("selectionBefore",o)):"insert-characters"!==n&&"backspace-character"!==n&&"delete-character"!==n||(u=u.set("selectionBefore",s.getSelectionBefore()));var d=t.getInlineStyleOverride();-1===["adjust-depth","change-block-type","split-block"].indexOf(n)&&(d=null);var f={currentContent:u,directionMap:a,undoStack:l,redoStack:c(),lastChangeType:n,selection:r.getSelectionAfter(),forceSelection:_,inlineStyleOverride:d};return e.set(t,f)},e.undo=function(t){if(!t.getAllowUndo())return t;var r=t.getUndoStack(),n=r.peek();if(!n)return t;var _=t.getCurrentContent(),a=i.getDirectionMap(n,t.getDirectionMap());return e.set(t,{currentContent:n,directionMap:a,undoStack:r.shift(),redoStack:t.getRedoStack().push(_),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"undo",nativelyRenderedContent:null,selection:_.getSelectionBefore()})},e.redo=function(t){if(!t.getAllowUndo())return t;var r=t.getRedoStack(),n=r.peek();if(!n)return t;var _=t.getCurrentContent(),a=i.getDirectionMap(n,t.getDirectionMap());return e.set(t,{currentContent:n,directionMap:a,undoStack:t.getUndoStack().push(_),redoStack:r.shift(),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"redo",nativelyRenderedContent:null,selection:n.getSelectionAfter()})},e.prototype.getImmutable=function(){return this._immutable},e}();function p(e,t,r){return f.set(e,{selection:t,forceSelection:r,nativelyRenderedContent:null,inlineStyleOverride:null})}function h(e,t){return e.getBlockMap().map(function(r){return _.generate(e,r,t)}).toOrderedMap()}function E(e,t){var r=e.getBlockMap().reverse().skipUntil(function(e,r){return r===t}).skip(1).skipUntil(function(e,t){return e.getLength()}).first();return r?r.getInlineStyleAt(r.getLength()-1):l()}e.exports=f},function(e,t,r){t.__esModule=!0,t.Helmet=void 0;var n=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r}var f=function(e){var t,r;return r=t=function(t){function r(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,t.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(r,t),r.prototype.shouldComponentUpdate=function(e){return!(0,s.default)(this.props,e)},r.prototype.mapNestedChildrenToProps=function(e,t){if(!t)return null;switch(e.type){case u.TAG_NAMES.SCRIPT:case u.TAG_NAMES.NOSCRIPT:return{innerHTML:t};case u.TAG_NAMES.STYLE:return{cssText:t}}throw new Error("<"+e.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")},r.prototype.flattenArrayTypeChildren=function(e){var t,r=e.child,_=e.arrayTypeChildren,a=e.newChildProps,i=e.nestedChildren;return n({},_,((t={})[r.type]=[].concat(_[r.type]||[],[n({},a,this.mapNestedChildrenToProps(r,i))]),t))},r.prototype.mapObjectTypeChildren=function(e){var t,r,_=e.child,a=e.newProps,i=e.newChildProps,o=e.nestedChildren;switch(_.type){case u.TAG_NAMES.TITLE:return n({},a,((t={})[_.type]=o,t.titleAttributes=n({},i),t));case u.TAG_NAMES.BODY:return n({},a,{bodyAttributes:n({},i)});case u.TAG_NAMES.HTML:return n({},a,{htmlAttributes:n({},i)})}return n({},a,((r={})[_.type]=n({},i),r))},r.prototype.mapArrayTypeChildrenToProps=function(e,t){var r=n({},t);return Object.keys(e).forEach(function(t){var _;r=n({},r,((_={})[t]=e[t],_))}),r},r.prototype.warnOnInvalidChildren=function(e,t){return!0},r.prototype.mapChildrenToProps=function(e,t){var r=this,n={};return a.default.Children.forEach(e,function(e){if(e&&e.props){var _=e.props,a=_.children,i=d(_,["children"]),o=(0,l.convertReactPropstoHtmlAttributes)(i);switch(r.warnOnInvalidChildren(e,a),e.type){case u.TAG_NAMES.LINK:case u.TAG_NAMES.META:case u.TAG_NAMES.NOSCRIPT:case u.TAG_NAMES.SCRIPT:case u.TAG_NAMES.STYLE:n=r.flattenArrayTypeChildren({child:e,arrayTypeChildren:n,newChildProps:o,nestedChildren:a});break;default:t=r.mapObjectTypeChildren({child:e,newProps:t,newChildProps:o,nestedChildren:a})}}}),t=this.mapArrayTypeChildrenToProps(n,t)},r.prototype.render=function(){var t=this.props,r=t.children,_=d(t,["children"]),i=n({},_);return r&&(i=this.mapChildrenToProps(r,i)),a.default.createElement(e,i)},_(r,null,[{key:"canUseDOM",set:function(t){e.canUseDOM=t}}]),r}(a.default.Component),t.propTypes={base:i.default.object,bodyAttributes:i.default.object,children:i.default.oneOfType([i.default.arrayOf(i.default.node),i.default.node]),defaultTitle:i.default.string,defer:i.default.bool,encodeSpecialCharacters:i.default.bool,htmlAttributes:i.default.object,link:i.default.arrayOf(i.default.object),meta:i.default.arrayOf(i.default.object),noscript:i.default.arrayOf(i.default.object),onChangeClientState:i.default.func,script:i.default.arrayOf(i.default.object),style:i.default.arrayOf(i.default.object),title:i.default.string,titleAttributes:i.default.object,titleTemplate:i.default.string},t.defaultProps={defer:!0,encodeSpecialCharacters:!0},t.peek=e.peek,t.rewind=function(){var t=e.rewind();return t||(t=(0,l.mapStateOnServer)({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),t},r}((0,o.default)(l.reducePropsToState,l.handleClientStateChange,l.mapStateOnServer)(function(){return null}));f.renderStatic=f.rewind,t.Helmet=f,t.default=f},function(e,t,r){"use strict"; +!function(e){var t={};function r(n){if(t[n])return t[n].exports;var _=t[n]={i:n,l:!1,exports:{}};return e[n].call(_.exports,_,_.exports,r),_.l=!0,_.exports}r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var _ in e)r.d(n,_,function(t){return e[t]}.bind(null,_));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="/",r(r.s=390)}([function(e,t,r){"use strict";e.exports=r(392)},function(module,exports,__webpack_require__){"use strict";var evalAllowed=!1;try{eval("evalAllowed = true")}catch(e){}var platformSupported=!!Object.setPrototypeOf&&evalAllowed;module.exports=__webpack_require__(391)},function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t){function r(e,t){for(var r=0;r0&&void 0!==arguments[0]?arguments[0]:V,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case i:return _()({},e,{initEnded:!0});case a.f:return _()({},e,{initEnded:!1});case c:return _()({},e,{openedPage:t.openedPage});case o:return _()({},e,{alertShowing:!0,alertParams:t.params});case s:return _()({},e,{alertShowing:!1});case l:return _()({},e,{modalShowing:!0,modalType:t.modalType,modalParams:t.params});case u:return _()({},e,{modalShowing:!1});default:return e}}!function(){var t=r(1).default,n=r(1).leaveModule;t&&(t.register(i,"INIT_END","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register(o,"SHOW_ALERT","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register(s,"CLOSE_ALERT","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register(l,"SHOW_MODAL","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register(u,"CLOSE_MODAL","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register(c,"SET_CURRENT_PAGE","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register("app/nav/pages/PAGE_NO_SITES","PAGE_NO_SITES","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register(d,"PAGE_MODELS","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register(f,"PAGE_MODELS_ITEM","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register(p,"PAGE_CONTENT","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register(h,"PAGE_CONTENT_ITEM","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register(E,"PAGE_API","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register(m,"PAGE_SETTINGS","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register(g,"PAGE_SHARING","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register(b,"PAGE_PROFILE","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register(v,"MODAL_TYPE_FIELD","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register(O,"MODAL_TYPE_MEDIA","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register(M,"MODAL_TYPE_REFERENCE","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register(C,"MODAL_TYPE_WYSIWYG","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register(P,"MODAL_TYPE_MARKDOWN","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register(D,"MODAL_TYPE_MODEL_CHOOSE","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register("email-verify","URL_EMAIL_VERIFY","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register("password-set","URL_PASSWORD_SET","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register("password-set-success","URL_PASSWORD_SUCCESS","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register("invalid-link","URL_INVALID_LINK","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register(y,"URL_SIGN","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register(w,"URL_USERSPACE","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register(T,"URL_SITE","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register(A,"URL_MODELS","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register(k,"URL_MODEL","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register(I,"URL_CONTENT","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register(R,"URL_ITEM","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register(L,"URL_API","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register(B,"URL_SETTINGS","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register(U,"URL_SHARING","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register(S,"URL_PROFILE","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register(K,"URLS_EMAIL","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register(W,"initEnd","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register(x,"showAlert","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register(j,"closeAlert","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register(N,"showModal","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register(q,"closeModal","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register(F,"setCurrentPage","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register(V,"initialState","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register(H,"navReducer","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),n(e))}()}).call(this,r(12)(e))},function(module,__webpack_exports__,__webpack_require__){"use strict";(function(module){__webpack_require__.d(__webpack_exports__,"B",function(){return SiteData}),__webpack_require__.d(__webpack_exports__,"z",function(){return ModelData}),__webpack_require__.d(__webpack_exports__,"y",function(){return FIELD_TYPE_SHORT_TEXT}),__webpack_require__.d(__webpack_exports__,"v",function(){return FIELD_TYPE_LONG_TEXT}),__webpack_require__.d(__webpack_exports__,"u",function(){return FIELD_TYPE_INTEGER}),__webpack_require__.d(__webpack_exports__,"t",function(){return FIELD_TYPE_FLOAT}),__webpack_require__.d(__webpack_exports__,"r",function(){return FIELD_TYPE_BOOLEAN}),__webpack_require__.d(__webpack_exports__,"s",function(){return FIELD_TYPE_DATE}),__webpack_require__.d(__webpack_exports__,"w",function(){return FIELD_TYPE_MEDIA}),__webpack_require__.d(__webpack_exports__,"x",function(){return FIELD_TYPE_REFERENCE}),__webpack_require__.d(__webpack_exports__,"m",function(){return FIELD_APPEARANCE__SHORT_TEXT__SINGLE}),__webpack_require__.d(__webpack_exports__,"n",function(){return FIELD_APPEARANCE__SHORT_TEXT__SLUG}),__webpack_require__.d(__webpack_exports__,"o",function(){return FIELD_APPEARANCE__SHORT_TEXT__URL}),__webpack_require__.d(__webpack_exports__,"k",function(){return FIELD_APPEARANCE__LONG_TEXT__SINGLE}),__webpack_require__.d(__webpack_exports__,"j",function(){return FIELD_APPEARANCE__LONG_TEXT__MULTI}),__webpack_require__.d(__webpack_exports__,"l",function(){return FIELD_APPEARANCE__LONG_TEXT__WYSIWIG}),__webpack_require__.d(__webpack_exports__,"i",function(){return FIELD_APPEARANCE__LONG_TEXT__MARKDOWN}),__webpack_require__.d(__webpack_exports__,"g",function(){return FIELD_APPEARANCE__INTEGER__DECIMAL}),__webpack_require__.d(__webpack_exports__,"h",function(){return FIELD_APPEARANCE__INTEGER__RATING}),__webpack_require__.d(__webpack_exports__,"f",function(){return FIELD_APPEARANCE__FLOAT__DECIMAL}),__webpack_require__.d(__webpack_exports__,"a",function(){return FIELD_APPEARANCE__BOOLEAN__RADIO}),__webpack_require__.d(__webpack_exports__,"b",function(){return FIELD_APPEARANCE__BOOLEAN__SWITCH}),__webpack_require__.d(__webpack_exports__,"c",function(){return FIELD_APPEARANCE__DATE__DATE}),__webpack_require__.d(__webpack_exports__,"d",function(){return FIELD_APPEARANCE__DATE__DATE_ONLY}),__webpack_require__.d(__webpack_exports__,"e",function(){return FIELD_APPEARANCE__DATE__TIME_ONLY}),__webpack_require__.d(__webpack_exports__,"q",function(){return FIELD_TYPES}),__webpack_require__.d(__webpack_exports__,"D",function(){return canBeTitle}),__webpack_require__.d(__webpack_exports__,"C",function(){return canBeList}),__webpack_require__.d(__webpack_exports__,"A",function(){return ModelFieldData}),__webpack_require__.d(__webpack_exports__,"p",function(){return FIELD_NAMES_RESERVED});var core_js_modules_es6_array_iterator__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(76),core_js_modules_es6_array_iterator__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(core_js_modules_es6_array_iterator__WEBPACK_IMPORTED_MODULE_0__),core_js_modules_es6_string_iterator__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(97),core_js_modules_es6_string_iterator__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(core_js_modules_es6_string_iterator__WEBPACK_IMPORTED_MODULE_1__),core_js_modules_es6_map__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(162),core_js_modules_es6_map__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(core_js_modules_es6_map__WEBPACK_IMPORTED_MODULE_2__),core_js_modules_es7_symbol_async_iterator__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(52),core_js_modules_es7_symbol_async_iterator__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(core_js_modules_es7_symbol_async_iterator__WEBPACK_IMPORTED_MODULE_3__),core_js_modules_es6_symbol__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(53),core_js_modules_es6_symbol__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(core_js_modules_es6_symbol__WEBPACK_IMPORTED_MODULE_4__),core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(43),core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_5__),core_js_modules_es6_regexp_to_string__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(565),core_js_modules_es6_regexp_to_string__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(core_js_modules_es6_regexp_to_string__WEBPACK_IMPORTED_MODULE_6__),core_js_modules_es6_date_to_string__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(566),core_js_modules_es6_date_to_string__WEBPACK_IMPORTED_MODULE_7___default=__webpack_require__.n(core_js_modules_es6_date_to_string__WEBPACK_IMPORTED_MODULE_7__),core_js_modules_es6_regexp_replace__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(106),core_js_modules_es6_regexp_replace__WEBPACK_IMPORTED_MODULE_8___default=__webpack_require__.n(core_js_modules_es6_regexp_replace__WEBPACK_IMPORTED_MODULE_8__),core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(32),core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_9___default=__webpack_require__.n(core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_9__),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(2),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_10___default=__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_10__),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(3),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_11___default=__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_11__),parse__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(14),parse__WEBPACK_IMPORTED_MODULE_12___default=__webpack_require__.n(parse__WEBPACK_IMPORTED_MODULE_12__),utils_common__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(20);!function(){var e=__webpack_require__(1).enterModule;e&&e(module)}();var SiteData=function(){function SiteData(){_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_10___default()(this,SiteData),this.origin=null,this.domain="",this.webhook="",this.icon=null,this._name="",this._nameId="",this.owner=null,this.collaborations=[],this.models=[]}return _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_11___default()(SiteData,[{key:"setOrigin",value:function(e){return this.origin=e,e.get("name")&&(this.name=e.get("name")),e.get("nameId")&&(this.nameId=e.get("nameId")),e.get("domain")&&(this.domain=e.get("domain")),e.get("webhook")&&(this.webhook=e.get("webhook")),e.get("icon")&&(this.icon=e.get("icon")),this}},{key:"updateOrigin",value:function(){this.origin||(this.origin=new SiteData.OriginClass),this.origin.set("name",this.name),this.origin.set("nameId",this.nameId),this.origin.set("domain",this.domain),this.origin.set("webhook",this.webhook),this.origin.set("icon",this.icon),this.origin.set("owner",this.owner.origin)}},{key:"__reactstandin__regenerateByEval",value:function __reactstandin__regenerateByEval(key,code){this[key]=eval(code)}},{key:"name",get:function(){return this._name},set:function(e){this._name=Object(utils_common__WEBPACK_IMPORTED_MODULE_13__.i)(e)}},{key:"nameId",get:function(){return this._nameId},set:function(e){this._nameId=Object(utils_common__WEBPACK_IMPORTED_MODULE_13__.d)(e)}}],[{key:"OriginClass",get:function(){return parse__WEBPACK_IMPORTED_MODULE_12__.Parse.Object.extend("Site")}}]),SiteData}(),ModelData=function(){function ModelData(){_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_10___default()(this,ModelData),this.origin=null,this.description="",this.tableName="",this.color="rgba(0, 0, 0, 1)",this._name="",this._nameId="",this.site=null,this.fields=[]}return _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_11___default()(ModelData,[{key:"setOrigin",value:function(e){return this.origin=e,e.get("name")&&(this.name=e.get("name")),e.get("nameId")&&(this.nameId=e.get("nameId")),e.get("description")&&(this.description=e.get("description")),e.get("tableName")&&(this.tableName=e.get("tableName")),e.get("color")&&(this.color=e.get("color")),this}},{key:"updateOrigin",value:function(){this.origin||(this.origin=new ModelData.OriginClass),this.origin.set("name",this.name),this.origin.set("nameId",this.nameId),this.origin.set("description",this.description),this.origin.set("tableName",this.tableName),this.origin.set("color",this.color),this.origin.set("site",this.site.origin)}},{key:"setTableName",value:function(){var e=encodeURIComponent(this.site.owner.email).replace(/[!'()*.~_-]/g,function(e){return"%"+e.charCodeAt(0).toString(16)}).replace(/%/g,"_");this.tableName="ct__".concat(e,"__").concat(this.site.nameId,"__").concat(this.nameId)}},{key:"toJSON",value:function(){return{name:this.name,nameId:this.nameId,description:this.description,tableName:this.tableName,color:this.color,fields:this.fields}}},{key:"hasTitle",value:function(){var e=!0,t=!1,r=void 0;try{for(var n,_=this.fields[Symbol.iterator]();!(e=(n=_.next()).done);e=!0){if(n.value.isTitle)return!0}}catch(e){t=!0,r=e}finally{try{e||null==_.return||_.return()}finally{if(t)throw r}}return!1}},{key:"__reactstandin__regenerateByEval",value:function __reactstandin__regenerateByEval(key,code){this[key]=eval(code)}},{key:"name",get:function(){return this._name},set:function(e){this._name=Object(utils_common__WEBPACK_IMPORTED_MODULE_13__.i)(e)}},{key:"nameId",get:function(){return this._nameId},set:function(e){this._nameId=Object(utils_common__WEBPACK_IMPORTED_MODULE_13__.d)(e)}}],[{key:"OriginClass",get:function(){return parse__WEBPACK_IMPORTED_MODULE_12__.Parse.Object.extend("Model")}}]),ModelData}(),FIELD_TYPE_SHORT_TEXT="Short Text",FIELD_TYPE_LONG_TEXT="Long Text",FIELD_TYPE_INTEGER="Number Int",FIELD_TYPE_FLOAT="Number",FIELD_TYPE_BOOLEAN="Boolean",FIELD_TYPE_DATE="Date/time",FIELD_TYPE_MEDIA="Media",FIELD_TYPE_JSON="JSON",FIELD_TYPE_REFERENCE="Reference",FIELD_APPEARANCE__SHORT_TEXT__SINGLE="Single line",FIELD_APPEARANCE__SHORT_TEXT__SLUG="Slug",FIELD_APPEARANCE__SHORT_TEXT__URL="URL",FIELD_APPEARANCE__SHORT_TEXT__DROPDOWN="Dropdown",FIELD_APPEARANCE__SHORT_TEXT__RADIO="Radio buttons",FIELD_APPEARANCE__LONG_TEXT__SINGLE="Single line",FIELD_APPEARANCE__LONG_TEXT__MULTI="Multi-line",FIELD_APPEARANCE__LONG_TEXT__WYSIWIG="WYSIWYG",FIELD_APPEARANCE__LONG_TEXT__MARKDOWN="Markdown",FIELD_APPEARANCE__INTEGER__DECIMAL="Decimal",FIELD_APPEARANCE__INTEGER__RATING="Rating",FIELD_APPEARANCE__FLOAT__DECIMAL="Decimal",FIELD_APPEARANCE__BOOLEAN__RADIO="Radio buttons",FIELD_APPEARANCE__BOOLEAN__SWITCH="Switch",FIELD_APPEARANCE__DATE__DATE="Date & time",FIELD_APPEARANCE__DATE__DATE_ONLY="Date",FIELD_APPEARANCE__DATE__TIME_ONLY="Time",FIELD_APPEARANCE__MEDIA__MEDIA="Media",FIELD_APPEARANCE__JSON__JSON="Date & time",FIELD_APPEARANCE__REFERENCE_REFERENCE="Reference",FIELD_TYPES=new Map([[FIELD_TYPE_SHORT_TEXT,[FIELD_APPEARANCE__SHORT_TEXT__SINGLE,FIELD_APPEARANCE__SHORT_TEXT__SLUG,FIELD_APPEARANCE__SHORT_TEXT__URL]],[FIELD_TYPE_LONG_TEXT,[FIELD_APPEARANCE__LONG_TEXT__SINGLE,FIELD_APPEARANCE__LONG_TEXT__MULTI,FIELD_APPEARANCE__LONG_TEXT__MARKDOWN]],[FIELD_TYPE_INTEGER,[FIELD_APPEARANCE__INTEGER__DECIMAL,FIELD_APPEARANCE__INTEGER__RATING]],[FIELD_TYPE_FLOAT,[FIELD_APPEARANCE__FLOAT__DECIMAL]],[FIELD_TYPE_BOOLEAN,[FIELD_APPEARANCE__BOOLEAN__RADIO,FIELD_APPEARANCE__BOOLEAN__SWITCH]],[FIELD_TYPE_DATE,[FIELD_APPEARANCE__DATE__DATE,FIELD_APPEARANCE__DATE__DATE_ONLY,FIELD_APPEARANCE__DATE__TIME_ONLY]],[FIELD_TYPE_MEDIA,[FIELD_APPEARANCE__MEDIA__MEDIA]],[FIELD_TYPE_REFERENCE,[FIELD_APPEARANCE__REFERENCE_REFERENCE]]]);function canBeTitle(e){return e.type==FIELD_TYPE_SHORT_TEXT&&e.appearance==FIELD_APPEARANCE__SHORT_TEXT__SINGLE&&!e.isList&&!e.isDisabled}function canBeList(e){return(e.type==FIELD_TYPE_SHORT_TEXT&&e.appearance==FIELD_APPEARANCE__SHORT_TEXT__SINGLE||e.type==FIELD_TYPE_INTEGER&&e.appearance==FIELD_APPEARANCE__INTEGER__DECIMAL||e.type==FIELD_TYPE_FLOAT&&e.appearance==FIELD_APPEARANCE__FLOAT__DECIMAL||e.type==FIELD_TYPE_MEDIA&&e.appearance==FIELD_APPEARANCE__MEDIA__MEDIA||e.type==FIELD_TYPE_REFERENCE&&e.appearance==FIELD_APPEARANCE__REFERENCE_REFERENCE)&&!e.isTitle}var ModelFieldData=function(){function ModelFieldData(){_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_10___default()(this,ModelFieldData),this.origin=null,this.type=FIELD_TYPE_SHORT_TEXT,this.appearance=FIELD_APPEARANCE__SHORT_TEXT__SINGLE,this.color="rgba(0, 0, 0, 1)",this.isRequired=!1,this.isTitle=!1,this.isList=!1,this.isDisabled=!1,this.order=-1,this.validations=null,this._name="",this._nameId="",this.model=null}return _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_11___default()(ModelFieldData,[{key:"setOrigin",value:function(e){return this.origin=e,e.get("name")&&(this.name=e.get("name")),e.get("nameId")&&(this.nameId=e.get("nameId")),e.get("type")&&(this.type=e.get("type")),e.get("appearance")&&(this.appearance=e.get("appearance")),e.get("color")&&(this.color=e.get("color")),e.get("isRequired")&&(this.isRequired=!0),e.get("isTitle")&&(this.isTitle=!0),e.get("isList")&&(this.isList=!0),e.get("isDisabled")&&(this.isDisabled=!0),e.get("validations")&&(this.validations=e.get("validations")),(e.get("order")||0===e.get("order"))&&(this.order=e.get("order")),this}},{key:"updateOrigin",value:function(){this.origin||(this.origin=new ModelFieldData.OriginClass),this.origin.set("name",this.name),this.origin.set("nameId",this.nameId),this.origin.set("type",this.type),this.origin.set("appearance",this.appearance),this.origin.set("color",this.color),this.origin.set("isRequired",this.isRequired),this.origin.set("isTitle",this.isTitle),this.origin.set("isList",this.isList),this.origin.set("isDisabled",this.isDisabled),this.origin.set("order",this.order),this.origin.set("validations",this.validations),this.origin.set("model",this.model.origin)}},{key:"toJSON",value:function(){return{name:this.name,nameId:this.nameId,type:this.type,appearance:this.appearance,color:this.color,isRequired:this.isRequired,isTitle:this.isTitle,isList:this.isList,isDisabled:this.isDisabled,order:this.order,validations:this.validations}}},{key:"__reactstandin__regenerateByEval",value:function __reactstandin__regenerateByEval(key,code){this[key]=eval(code)}},{key:"name",get:function(){return this._name},set:function(e){this._name=Object(utils_common__WEBPACK_IMPORTED_MODULE_13__.i)(e)}},{key:"nameId",get:function(){return this._nameId},set:function(e){this._nameId=Object(utils_common__WEBPACK_IMPORTED_MODULE_13__.d)(e)}}],[{key:"OriginClass",get:function(){return parse__WEBPACK_IMPORTED_MODULE_12__.Parse.Object.extend("ModelField")}}]),ModelFieldData}(),FIELD_NAMES_RESERVED=["objectId","ACL","createdAt","updatedAt","t__color","t__status","t__owner","t__model"];!function(){var e=__webpack_require__(1).default,t=__webpack_require__(1).leaveModule;e&&(e.register(SiteData,"SiteData","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/ModelData.js"),e.register(ModelData,"ModelData","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/ModelData.js"),e.register(FIELD_TYPE_SHORT_TEXT,"FIELD_TYPE_SHORT_TEXT","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/ModelData.js"),e.register(FIELD_TYPE_LONG_TEXT,"FIELD_TYPE_LONG_TEXT","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/ModelData.js"),e.register(FIELD_TYPE_INTEGER,"FIELD_TYPE_INTEGER","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/ModelData.js"),e.register(FIELD_TYPE_FLOAT,"FIELD_TYPE_FLOAT","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/ModelData.js"),e.register(FIELD_TYPE_BOOLEAN,"FIELD_TYPE_BOOLEAN","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/ModelData.js"),e.register(FIELD_TYPE_DATE,"FIELD_TYPE_DATE","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/ModelData.js"),e.register(FIELD_TYPE_MEDIA,"FIELD_TYPE_MEDIA","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/ModelData.js"),e.register(FIELD_TYPE_JSON,"FIELD_TYPE_JSON","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/ModelData.js"),e.register(FIELD_TYPE_REFERENCE,"FIELD_TYPE_REFERENCE","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/ModelData.js"),e.register(FIELD_APPEARANCE__SHORT_TEXT__SINGLE,"FIELD_APPEARANCE__SHORT_TEXT__SINGLE","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/ModelData.js"),e.register(FIELD_APPEARANCE__SHORT_TEXT__SLUG,"FIELD_APPEARANCE__SHORT_TEXT__SLUG","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/ModelData.js"),e.register(FIELD_APPEARANCE__SHORT_TEXT__URL,"FIELD_APPEARANCE__SHORT_TEXT__URL","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/ModelData.js"),e.register(FIELD_APPEARANCE__SHORT_TEXT__DROPDOWN,"FIELD_APPEARANCE__SHORT_TEXT__DROPDOWN","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/ModelData.js"),e.register(FIELD_APPEARANCE__SHORT_TEXT__RADIO,"FIELD_APPEARANCE__SHORT_TEXT__RADIO","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/ModelData.js"),e.register(FIELD_APPEARANCE__LONG_TEXT__SINGLE,"FIELD_APPEARANCE__LONG_TEXT__SINGLE","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/ModelData.js"),e.register(FIELD_APPEARANCE__LONG_TEXT__MULTI,"FIELD_APPEARANCE__LONG_TEXT__MULTI","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/ModelData.js"),e.register(FIELD_APPEARANCE__LONG_TEXT__WYSIWIG,"FIELD_APPEARANCE__LONG_TEXT__WYSIWIG","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/ModelData.js"),e.register(FIELD_APPEARANCE__LONG_TEXT__MARKDOWN,"FIELD_APPEARANCE__LONG_TEXT__MARKDOWN","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/ModelData.js"),e.register(FIELD_APPEARANCE__INTEGER__DECIMAL,"FIELD_APPEARANCE__INTEGER__DECIMAL","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/ModelData.js"),e.register(FIELD_APPEARANCE__INTEGER__RATING,"FIELD_APPEARANCE__INTEGER__RATING","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/ModelData.js"),e.register(FIELD_APPEARANCE__FLOAT__DECIMAL,"FIELD_APPEARANCE__FLOAT__DECIMAL","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/ModelData.js"),e.register(FIELD_APPEARANCE__BOOLEAN__RADIO,"FIELD_APPEARANCE__BOOLEAN__RADIO","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/ModelData.js"),e.register(FIELD_APPEARANCE__BOOLEAN__SWITCH,"FIELD_APPEARANCE__BOOLEAN__SWITCH","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/ModelData.js"),e.register(FIELD_APPEARANCE__DATE__DATE,"FIELD_APPEARANCE__DATE__DATE","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/ModelData.js"),e.register(FIELD_APPEARANCE__DATE__DATE_ONLY,"FIELD_APPEARANCE__DATE__DATE_ONLY","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/ModelData.js"),e.register(FIELD_APPEARANCE__DATE__TIME_ONLY,"FIELD_APPEARANCE__DATE__TIME_ONLY","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/ModelData.js"),e.register(FIELD_APPEARANCE__MEDIA__MEDIA,"FIELD_APPEARANCE__MEDIA__MEDIA","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/ModelData.js"),e.register(FIELD_APPEARANCE__JSON__JSON,"FIELD_APPEARANCE__JSON__JSON","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/ModelData.js"),e.register(FIELD_APPEARANCE__REFERENCE_REFERENCE,"FIELD_APPEARANCE__REFERENCE_REFERENCE","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/ModelData.js"),e.register(FIELD_TYPES,"FIELD_TYPES","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/ModelData.js"),e.register(canBeTitle,"canBeTitle","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/ModelData.js"),e.register(canBeList,"canBeList","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/ModelData.js"),e.register(ModelFieldData,"ModelFieldData","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/ModelData.js"),e.register(FIELD_NAMES_RESERVED,"FIELD_NAMES_RESERVED","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/ModelData.js"),t(module))}()}).call(this,__webpack_require__(12)(module))},function(e,t,r){e.exports=r(397)()},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(r(149)),_=o(r(409)),a=o(r(508)),i=o(r(520));function o(e){return e&&e.__esModule?e:{default:e}}var s=function(e,t,r){var o=void 0,s=(0,i.default)(r);return o=function(e){return"prototype"in e&&(0,n.default)(e.prototype.render)}(e)?(0,_.default)(e,t,s):(0,a.default)(e,t,s),e.displayName?o.displayName=e.displayName:o.displayName=e.name,o};t.default=function(){return(0,n.default)(arguments.length<=0?void 0:arguments[0])?s(arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],arguments.length<=2?void 0:arguments[2]):function(e,t){return function(r){return s(r,e,t)}}(arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1])},e.exports=t.default},function(e,t,r){var n=r(59);e.exports=function(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:[];if(!e)return null;var n=Object(i.d)(e);return function e(){var _=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,a=_?"".concat(n,"_").concat(_):n;if(-1!=r.indexOf(a))return e(++_);var i=!0,o=!1,s=void 0;try{for(var l,u=t[Symbol.iterator]();!(i=(l=u.next()).done);i=!0)if(l.value.nameId==a)return e(++_)}catch(e){o=!0,s=e}finally{try{i||null==u.return||u.return()}finally{if(o)throw s}}return a}()}!function(){var t=r(1).default,n=r(1).leaveModule;t&&(t.register(s,"NAME_CORRECT","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/data.js"),t.register(l,"NAME_ERROR_NAME_EXIST","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/data.js"),t.register(u,"NAME_ERROR_OTHER","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/data.js"),t.register(c,"getAlertForNameError","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/data.js"),t.register(d,"getUser","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/data.js"),t.register(f,"checkSiteName","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/data.js"),t.register(p,"DOMAIN_CORRECT","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/data.js"),t.register(h,"DOMAIN_ERROR_EXIST","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/data.js"),t.register(E,"DOMAIN_ERROR_SYNTAX","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/data.js"),t.register(m,"DOMAIN_ERROR_OTHER","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/data.js"),t.register(g,"checkSiteDomain","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/data.js"),t.register(b,"getSite","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/data.js"),t.register(v,"getSiteByNameId","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/data.js"),t.register(O,"COLLAB_CORRECT","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/data.js"),t.register(M,"COLLAB_ERROR_EXIST","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/data.js"),t.register(C,"COLLAB_ERROR_SELF","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/data.js"),t.register(P,"checkCollaboration","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/data.js"),t.register(D,"checkModelName","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/data.js"),t.register(y,"getModelByName","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/data.js"),t.register(w,"getModelByNameId","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/data.js"),t.register(T,"checkFieldName","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/data.js"),t.register(A,"getContentForModel","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/data.js"),t.register(k,"getContentForSite","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/data.js"),t.register(I,"getContentByModelAndId","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/data.js"),t.register(R,"getContentByO","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/data.js"),t.register(L,"checkContentExistense","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/data.js"),t.register(B,"getMediaByO","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/data.js"),t.register(U,"getRole","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/data.js"),t.register(S,"checkPassword","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/data.js"),t.register(K,"getNameId","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/data.js"),n(e))}()}).call(this,r(12)(e))},function(e,t,r){"use strict";var n=r(27),_=r.n(n),a=r(0),i=r.n(a),o=r(37),s=r.n(o),l=r(9),u=r.n(l);r(79);function c(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}var d=Object.create(null);function f(e){return d[e]||(d[e]=function(e){for(var t="",r=[],n=[],_=void 0,a=0,i=/:([a-zA-Z_$][a-zA-Z0-9_$]*)|\*\*|\*|\(|\)|\\\(|\\\)/g;_=i.exec(e);)_.index!==a&&(n.push(e.slice(a,_.index)),t+=c(e.slice(a,_.index))),_[1]?(t+="([^/]+)",r.push(_[1])):"**"===_[0]?(t+="(.*)",r.push("splat")):"*"===_[0]?(t+="(.*?)",r.push("splat")):"("===_[0]?t+="(?:":")"===_[0]?t+=")?":"\\("===_[0]?t+="\\(":"\\)"===_[0]&&(t+="\\)"),n.push(_[0]),a=i.lastIndex;return a!==e.length&&(n.push(e.slice(a,e.length)),t+=c(e.slice(a,e.length))),{pattern:e,regexpSource:t,paramNames:r,tokens:n}}(e)),d[e]}function p(e,t){"/"!==e.charAt(0)&&(e="/"+e);var r=f(e),n=r.regexpSource,_=r.paramNames,a=r.tokens;"/"!==e.charAt(e.length-1)&&(n+="/?"),"*"===a[a.length-1]&&(n+="$");var i=t.match(new RegExp("^"+n,"i"));if(null==i)return null;var o=i[0],s=t.substr(o.length);if(s){if("/"!==o.charAt(o.length-1))return null;s="/"+s}return{remainingPathname:s,paramNames:_,paramValues:i.slice(1).map(function(e){return e&&decodeURIComponent(e)})}}function h(e){return f(e).paramNames}function E(e,t){t=t||{};for(var r=f(e).tokens,n=0,a="",i=0,o=[],s=void 0,l=void 0,u=0,c=r.length;u0||_()(!1),null!=l&&(a+=encodeURI(l));else if("("===s)o[n]="",n+=1;else if(")"===s){var d=o.pop();(n-=1)?o[n-1]+=d:a+=d}else if("\\("===s)a+="(";else if("\\)"===s)a+=")";else if(":"===s.charAt(0))if(null!=(l=t[s.substring(1)])||n>0||_()(!1),null==l){if(n){o[n-1]="";for(var p=r.indexOf(s),h=r.slice(p,r.length),E=-1,m=0;m0||_()(!1),u=p+E-1}}else n?o[n-1]+=encodeURIComponent(l):a+=encodeURIComponent(l);else n?o[n-1]+=s:a+=s;return n<=0||_()(!1),a.replace(/\/+/g,"/")}var m=function(e,t){var r=e&&e.routes,n=t.routes,_=void 0,a=void 0,i=void 0;if(r){var o=!1;(_=r.filter(function(r){if(o)return!0;var _=-1===n.indexOf(r)||function(e,t,r){return!!e.path&&h(e.path).some(function(e){return t.params[e]!==r.params[e]})}(r,e,t);return _&&(o=!0),_})).reverse(),i=[],a=[],n.forEach(function(e){var t=-1===r.indexOf(e),n=-1!==_.indexOf(e);t||n?i.push(e):a.push(e)})}else _=[],a=[],i=n;return{leaveRoutes:_,changeRoutes:a,enterRoutes:i}};function g(e,t,r){var n=0,_=!1,a=!1,i=!1,o=void 0;function s(){_=!0,a?o=[].concat(Array.prototype.slice.call(arguments)):r.apply(this,arguments)}!function l(){if(!_&&(i=!0,!a)){for(a=!0;!_&&n=e&&i&&(_=!0,r())}}()}function b(e,t,r){var n=e.length,_=[];if(0===n)return r(null,_);var a=!1,i=0;e.forEach(function(e,o){t(e,o,function(e,t){!function(e,t,o){a||(t?(a=!0,r(t)):(_[e]=o,(a=++i===n)&&r(null,_)))}(o,e,t)})})}var v=function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.hooks=[],this.add=function(e){return t.hooks.push(e)},this.remove=function(e){return t.hooks=t.hooks.filter(function(t){return t!==e})},this.has=function(e){return-1!==t.hooks.indexOf(e)},this.clear=function(){return t.hooks=[]}};function O(){var e=new v,t=new v;function r(e,t,r,n){var _=e.length4&&void 0!==arguments[4]?arguments[4]:[],a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[];void 0===n&&("/"!==t.pathname.charAt(0)&&(t=L({},t,{pathname:"/"+t.pathname})),n=t.pathname),g(e.length,function(r,i,o){S(e[r],t,n,_,a,function(e,t){e||t?o(e,t):i()})},r)}var W=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1]&&arguments[1];return e.__id__||t&&(e.__id__=u++)}var d=Object.create(null);function f(e){return e.map(function(e){return d[c(e)]}).filter(function(e){return e})}function p(e,n){K(t,e,function(t,_){if(null!=_){o=W({},_,{location:e});for(var a=f(m(r,o).leaveRoutes),i=void 0,s=0,l=a.length;null==i&&s should not have a "'+t+'" prop')}Object(l.shape)({listen:l.func.isRequired,push:l.func.isRequired,replace:l.func.isRequired,go:l.func.isRequired,goBack:l.func.isRequired,goForward:l.func.isRequired});var q=Object(l.oneOfType)([l.func,l.string]),F=Object(l.oneOfType)([q,l.object]),V=Object(l.oneOfType)([l.object,l.element]),H=Object(l.oneOfType)([V,Object(l.arrayOf)(V)]);var z=function(e,t){var r={};return e.path?(h(e.path).forEach(function(e){Object.prototype.hasOwnProperty.call(t,e)&&(r[e]=t[e])}),r):r},G=u.a.shape({subscribe:u.a.func.isRequired,eventIndex:u.a.number.isRequired});function Y(e){return"@@contextSubscriber/"+e}function J(e){var t,r,n=Y(e),_=n+"/lastRenderedEventIndex",a=n+"/handleContextUpdate",i=n+"/unsubscribe";return(r={contextTypes:(t={},t[n]=G,t),getInitialState:function(){var e;return this.context[n]?((e={})[_]=this.context[n].eventIndex,e):{}},componentDidMount:function(){this.context[n]&&(this[i]=this.context[n].subscribe(this[a]))},componentWillReceiveProps:function(){var e;this.context[n]&&this.setState(((e={})[_]=this.context[n].eventIndex,e))},componentWillUnmount:function(){this[i]&&(this[i](),this[i]=null)}})[a]=function(e){var t;e!==this.state[_]&&this.setState(((t={})[_]=e,t))},r}var X=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r}(a,["createElement","render"]);return null==t?null:(Object.keys(ne).forEach(function(e){return delete s[e]}),o(re({},s,{router:this.router,location:t,routes:r,params:n,components:_,createElement:i})))}}),ae=Object(l.shape)({push:l.func.isRequired,replace:l.func.isRequired,go:l.func.isRequired,goBack:l.func.isRequired,goForward:l.func.isRequired,setRouteLeaveHook:l.func.isRequired,isActive:l.func.isRequired}),ie=(Object(l.shape)({pathname:l.string.isRequired,search:l.string.isRequired,state:l.object,action:l.string.isRequired,key:l.string}),Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r}(e,["to","activeClassName","activeStyle","onlyActiveOnIndex"]),o=this.context.router;if(o){if(!t)return i.a.createElement("a",a);var s=oe(t,o);a.href=o.createHref(s),(r||null!=n&&!function(e){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!1;return!0}(n))&&o.isActive(s,_)&&(r&&(a.className?a.className+=" "+r:a.className=r),n&&(a.style=ie({},a.style,n)))}return i.a.createElement("a",ie({},a,{onClick:this.handleClick}))}}),le=Object.assign||function(e){for(var t=1;t=0;n--){var _=e[n].path||"";if(r=_.replace(/\/*$/,"/")+r,0===_.indexOf("/"))break}return"/"+r}},propTypes:{path:l.string,from:l.string,to:l.string.isRequired,query:l.object,state:l.object,onEnter:N,children:N},render:function(){_()(!1)}}),ce=ue,de=s()({displayName:"IndexRedirect",statics:{createRouteFromReactElement:function(e,t){t&&(t.indexRoute=ce.createRouteFromReactElement(e))}},propTypes:{to:l.string.isRequired,query:l.object,state:l.object,onEnter:N,children:N},render:function(){_()(!1)}}),fe=(s()({displayName:"IndexRoute",statics:{createRouteFromReactElement:function(e,t){t&&(t.indexRoute=k(e))}},propTypes:{path:N,component:q,components:F,getComponent:l.func,getComponents:l.func},render:function(){_()(!1)}}),s()({displayName:"Route",statics:{createRouteFromReactElement:k},propTypes:{path:l.string,component:q,components:F,getComponent:l.func,getComponents:l.func},render:function(){_()(!1)}})),pe=(r(139),r(171)),he=r.n(pe),Ee=r(172),me=r.n(Ee);r(338);Object.assign;Object.assign;var ge=r(339),be=r.n(ge),ve=!("undefined"==typeof window||!window.document||!window.document.createElement);function Oe(e){var t=void 0;return ve&&(t=function(e){return function(t){return he()(me()(e))(t)}}(e)()),t}var Me=Oe(be.a),Ce=r(340);Oe(r.n(Ce).a);r.d(t,"e",function(){return _e}),r.d(t,"b",function(){return se}),r.d(t,"a",function(){return de}),r.d(t,"c",function(){return ce}),r.d(t,"d",function(){return fe}),r.d(t,"f",function(){return Me})},function(module,__webpack_exports__,__webpack_require__){"use strict";(function(module){__webpack_require__.d(__webpack_exports__,"a",function(){return InputControl});var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(2),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(3),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(5),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(4),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(6),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__),react__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(0),react__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_5__),react_css_modules__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(10),react_css_modules__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(react_css_modules__WEBPACK_IMPORTED_MODULE_6__),components_elements_IconsComponent_IconsComponent__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(344),_InputControl_sss__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(765),_InputControl_sss__WEBPACK_IMPORTED_MODULE_8___default=__webpack_require__.n(_InputControl_sss__WEBPACK_IMPORTED_MODULE_8__),_dec,_class;!function(){var e=__webpack_require__(1).enterModule;e&&e(module)}();var InputControl=(_dec=react_css_modules__WEBPACK_IMPORTED_MODULE_6___default()(_InputControl_sss__WEBPACK_IMPORTED_MODULE_8___default.a,{allowMultiple:!0}),_dec(_class=function(_Component){function InputControl(){return _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this,InputControl),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default()(this,_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default()(InputControl).apply(this,arguments))}return _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default()(InputControl,_Component),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(InputControl,[{key:"render",value:function(){var e=this.props,t=e.label,r=e.type,n=e.value,_=e.placeholder,a=e.onChange,i=e.readOnly,o=e.autoFocus,s=e.onKeyDown,l=e.onBlur,u=e.DOMRef,c=e.icon,d=e.onIconClick,f=e.inputType,p=e.dropdown;void 0!=n&&null!=n||(n=""),f||(f="text");var h,E="input";return"big"===r&&(E="input-big"),i&&(E+=" input-readOnly"),p&&(E+=" input-disabled"),c&&(h=react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{onClick:d,styleName:c},react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement(components_elements_IconsComponent_IconsComponent__WEBPACK_IMPORTED_MODULE_7__.a,{icon:c}))),react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{styleName:"InputControl"},h,react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("input",{type:f,styleName:E,icon:c,value:n,autoFocus:o,placeholder:_,onChange:a,onBlur:l,onKeyDown:s,readOnly:i,ref:u}),react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("label",{styleName:"label"}," ",t," "))}},{key:"__reactstandin__regenerateByEval",value:function __reactstandin__regenerateByEval(key,code){this[key]=eval(code)}}]),InputControl}(react__WEBPACK_IMPORTED_MODULE_5__.Component))||_class);!function(){var e=__webpack_require__(1).default,t=__webpack_require__(1).leaveModule;e&&(e.register(InputControl,"InputControl","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/components/elements/InputControl/InputControl.js"),t(module))}()}).call(this,__webpack_require__(12)(module))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t: `children` prop will be ignored.")}},{key:"render",value:function(){var e=void 0,t=void 0,r=void 0,_=this.props,i=_.element,s=_.raw,l=_.src,u=function(e,t){var r={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r}(_,["element","raw","src"]);return!0===s&&(e="svg",r=(0,o.extractSVGProps)(l),t=(0,o.getSVGFromSource)(l).innerHTML),t=t||l,e=e||i,r=r||{},a.default.createElement(e,n({},r,u,{src:null,children:null,dangerouslySetInnerHTML:{__html:t}}))}}]),t}();t.default=l,l.defaultProps={element:"i",raw:!1,src:""},l.propTypes={src:i.string.isRequired,element:i.string,raw:i.bool}},function(module,__webpack_exports__,__webpack_require__){"use strict";(function(module){__webpack_require__.d(__webpack_exports__,"f",function(){return UserData}),__webpack_require__.d(__webpack_exports__,"e",function(){return ROLE_OWNER}),__webpack_require__.d(__webpack_exports__,"b",function(){return ROLE_ADMIN}),__webpack_require__.d(__webpack_exports__,"d",function(){return ROLE_EDITOR}),__webpack_require__.d(__webpack_exports__,"c",function(){return ROLE_DEVELOPER}),__webpack_require__.d(__webpack_exports__,"a",function(){return CollaborationData});var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(2),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(3),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__),parse__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(14),parse__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(parse__WEBPACK_IMPORTED_MODULE_2__);!function(){var e=__webpack_require__(1).enterModule;e&&e(module)}();var UserData=function(){function UserData(){_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this,UserData),this.origin=null,this.email="",this.emailNew="",this.firstName="",this.lastName="",this.avatar=null,this.sex="male"}return _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(UserData,[{key:"setOrigin",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:parse__WEBPACK_IMPORTED_MODULE_2__.Parse.User.current();return this.origin=e,e.get("email")&&(this.email=e.get("email")),this.email||(this.email=e.get("username")),e.get("emailNew")&&(this.emailNew=e.get("emailNew")),e.get("firstName")&&(this.firstName=e.get("firstName")),e.get("lastName")&&(this.lastName=e.get("lastName")),e.get("avatar")&&(this.avatar=e.get("avatar")),e.get("sex")&&(this.sex=e.get("sex")),this}},{key:"updateOrigin",value:function(){this.origin.set("firstName",this.firstName),this.origin.set("lastName",this.lastName),this.origin.set("avatar",this.avatar),this.origin.set("sex",this.sex)}},{key:"__reactstandin__regenerateByEval",value:function __reactstandin__regenerateByEval(key,code){this[key]=eval(code)}}]),UserData}(),ROLE_OWNER="OWNER",ROLE_ADMIN="ADMIN",ROLE_EDITOR="EDITOR",ROLE_DEVELOPER="DEVELOPER",CollaborationData=function(){function CollaborationData(){_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this,CollaborationData),this.origin=null,this.role=ROLE_DEVELOPER,this.email="",this.site=null,this.user=null}return _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(CollaborationData,[{key:"setOrigin",value:function(e){return this.origin=e,e.get("role")&&(this.role=e.get("role")),e.get("email")&&(this.email=e.get("email")),this}},{key:"updateOrigin",value:function(){this.origin||(this.origin=new CollaborationData.OriginClass),this.origin.set("role",this.role),this.origin.set("email",this.email),this.origin.set("site",this.site.origin),this.user&&this.origin.set("user",this.user.origin)}},{key:"__reactstandin__regenerateByEval",value:function __reactstandin__regenerateByEval(key,code){this[key]=eval(code)}}],[{key:"OriginClass",get:function(){return parse__WEBPACK_IMPORTED_MODULE_2__.Parse.Object.extend("Collaboration")}}]),CollaborationData}();!function(){var e=__webpack_require__(1).default,t=__webpack_require__(1).leaveModule;e&&(e.register(UserData,"UserData","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/UserData.js"),e.register(ROLE_OWNER,"ROLE_OWNER","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/UserData.js"),e.register(ROLE_ADMIN,"ROLE_ADMIN","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/UserData.js"),e.register(ROLE_EDITOR,"ROLE_EDITOR","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/UserData.js"),e.register(ROLE_DEVELOPER,"ROLE_DEVELOPER","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/UserData.js"),e.register(CollaborationData,"CollaborationData","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/UserData.js"),t(module))}()}).call(this,__webpack_require__(12)(module))},function(e,t,r){"use strict";(function(e){r.d(t,"i",function(){return n}),r.d(t,"d",function(){return _}),r.d(t,"e",function(){return a}),r.d(t,"f",function(){return i}),r.d(t,"j",function(){return o}),r.d(t,"c",function(){return s}),r.d(t,"b",function(){return l}),r.d(t,"g",function(){return u}),r.d(t,"h",function(){return c}),r.d(t,"a",function(){return d});r(43),r(76),r(589),r(58),r(591),r(298),r(593),r(594),r(106);function n(e){return e?e.trim().replace(/\s+/g," "):""}function _(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"_";return e?(e=n(e)).replace(/\W/g,t):""}function a(e,t){return(e=_(e,t)).toLowerCase()}function i(){var e=Math.floor(256*Math.random()),t=Math.floor(256*Math.random()),r=Math.floor(256*Math.random());return"rgba(".concat(e,", ").concat(t,", ").concat(r,", 1)")}function o(e){var t=e.lastIndexOf(".");return t>0?e.slice(0,t):e}function s(e){return new RegExp("^(https?:\\/\\/)((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.?)+[a-z]{2,}|((\\d{1,3}\\.){3}\\d{1,3}))(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*(\\?[;&a-z\\d%_.~+=-]*)?(\\#[-a-z\\d_]*)?$","i").test(e)}function l(e){return/^[a-z0-9!#$%&'*+\/=?^_`{|}~.-]+@[a-z0-9]([a-z0-9-]*[a-z0-9])?(\.[a-z0-9]([a-z0-9-]*[a-z0-9])?)*$/i.test(e)}function u(e){var t=new Date,r=t-e,n=navigator.language||navigator.userLanguage,_=e.toLocaleString(n,{hour:"numeric",minute:"numeric"}),a=e.toLocaleString(n,{year:"numeric",month:"short",day:"numeric",hour:"numeric",minute:"numeric"});if(r<6e4)return r<1e4?"A few seconds ago":"Less a minute ago";if(r<36e5){var i=Math.floor(r/6e4);return"".concat(i,1==i?" minute ago":" minutes ago")}if(t.getDate()==e.getDate()&&t.getMonth()==e.getMonth()&&t.getFullYear()==e.getFullYear())return"Today, at ".concat(_);var o=new Date(e);return o.setDate(o.getDate()+1),t.getDate()==o.getDate()&&t.getMonth()==o.getMonth()&&t.getFullYear()==o.getFullYear()?"Yesterday, at ".concat(_):a}function c(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r={},n=/([^&=]+)=?([^&]*)/g,_=function(e){return decodeURIComponent(e.replace(/\+/g," "))};for(t||(t=location.search.substring(1));e=n.exec(t);)r[_(e[1])]=_(e[2]);return r}function d(e){return Object.keys(e).map(function(t){return encodeURIComponent(t)+"="+encodeURIComponent(e[t])}).join("&")}!function(){var t=r(1).enterModule;t&&t(e)}(),function(){var t=r(1).default,f=r(1).leaveModule;t&&(t.register(n,"removeOddSpaces","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/common.js"),t.register(_,"filterSpecials","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/common.js"),t.register(a,"filterSpecialsAndCapital","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/common.js"),t.register(i,"getRandomColor","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/common.js"),t.register(o,"trimFileExt","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/common.js"),t.register(s,"checkURL","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/common.js"),t.register(l,"checkEmail","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/common.js"),t.register(u,"getRelativeTime","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/common.js"),t.register(c,"parseURLParams","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/common.js"),t.register(d,"URLEncode","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/common.js"),f(e))}()}).call(this,r(12)(e))},function(e,t,r){"use strict";r.r(t),function(e){r.d(t,"store",function(){return w});r(393),r(743),r(748),r(755);var n=r(0),_=r.n(n),a=r(50),i=r.n(a),o=r(28),s=r(16),l=r(111),u=r(341),c=r(353),d=r(72),f=r(7),p=r(359),h=r(360),E=r(361),m=r(367),g=r(369),b=r(371),v=r(373),O=r(376),M=r(378),C=r(387),P=r(388),D=r(233),y=r(389);!function(){var t=r(1).enterModule;t&&t(e)}();var w=Object(c.a)(),T=Object(l.syncHistoryWithStore)(s.f,w);Object(d.c)();var A=function(e){return w.dispatch(Object(f.F)(e))};i.a.render(_.a.createElement(o.a,{store:w},_.a.createElement(s.e,{history:T},_.a.createElement(s.d,{path:"/",component:u.a},_.a.createElement(s.d,{path:"/email-verify",component:P.a}),_.a.createElement(s.d,{path:"/password-set-success",component:D.a}),_.a.createElement(s.d,{path:"/password-set",component:D.a}),_.a.createElement(s.d,{path:"/invalid-link",component:y.a}),_.a.createElement(s.d,{path:"/sign",component:h.a}),_.a.createElement(s.d,{path:"/userspace",component:E.a},_.a.createElement(s.d,{path:"/userspace/profile",component:C.a,onEnter:function(){return A(f.m)}}),_.a.createElement(s.d,{path:"/userspace/:site/models",component:b.a,onEnter:function(){return A(f.k)}}),_.a.createElement(s.d,{path:"/userspace/:site/models/:model",component:v.a,onEnter:function(){return A(f.l)}}),_.a.createElement(s.d,{path:"/userspace/:site/content",component:O.a,onEnter:function(){return A(f.i)}}),_.a.createElement(s.d,{path:"/userspace/:site/content/:item",component:M.a,onEnter:function(){return A(f.j)}}),_.a.createElement(s.d,{path:"/userspace/:site/api",component:p.a,onEnter:function(){return A(f.h)}}),_.a.createElement(s.d,{path:"/userspace/:site/settings",component:m.a,onEnter:function(){return A(f.n)}}),_.a.createElement(s.d,{path:"/userspace/:site/sharing",component:g.a,onEnter:function(){return A(f.o)}}),_.a.createElement(s.c,{from:"/userspace/:site",to:"/userspace/:site/models"})),_.a.createElement(s.a,{to:"/userspace"}),_.a.createElement(s.c,{from:"/*",to:"/invalid-link"})))),document.getElementById("app-root")),function(){var t=r(1).default,n=r(1).leaveModule;t&&(t.register(w,"store","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/index.js"),t.register(T,"history","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/index.js"),t.register(A,"SCP","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/index.js"),n(e))}()}.call(this,r(12)(e))},function(e,t,r){"use strict";r.d(t,"d",function(){return o}),r.d(t,"c",function(){return l}),r.d(t,"b",function(){return c}),r.d(t,"a",function(){return f});var n=r(228),_=function(){return Math.random().toString(36).substring(7).split("").join(".")},a={INIT:"@@redux/INIT"+_(),REPLACE:"@@redux/REPLACE"+_(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+_()}};function i(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function o(e,t,r){var _;if("function"==typeof t&&"function"==typeof r||"function"==typeof r&&"function"==typeof arguments[3])throw new Error("It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function");if("function"==typeof t&&void 0===r&&(r=t,t=void 0),void 0!==r){if("function"!=typeof r)throw new Error("Expected the enhancer to be a function.");return r(o)(e,t)}if("function"!=typeof e)throw new Error("Expected the reducer to be a function.");var s=e,l=t,u=[],c=u,d=!1;function f(){c===u&&(c=u.slice())}function p(){if(d)throw new Error("You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return l}function h(e){if("function"!=typeof e)throw new Error("Expected the listener to be a function.");if(d)throw new Error("You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api-reference/store#subscribe(listener) for more details.");var t=!0;return f(),c.push(e),function(){if(t){if(d)throw new Error("You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api-reference/store#subscribe(listener) for more details.");t=!1,f();var r=c.indexOf(e);c.splice(r,1)}}}function E(e){if(!i(e))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if(void 0===e.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(d)throw new Error("Reducers may not dispatch actions.");try{d=!0,l=s(l,e)}finally{d=!1}for(var t=u=c,r=0;r0&&void 0!==arguments[0]?arguments[0]:K,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case c:case f:return _()({},e,{authorized:!1,status:null,email:t.email,password:t.password,pending:!0});case d:return _()({},e,{authorized:t.authorized,status:t.status,userData:t.userData,localStorageReady:!0,password:"",pending:!1});case p:return _()({},e,{status:t.status,localStorageReady:!0,password:"",pending:!1});case h:return _()({},e,{authorized:!1,email:""});case E:return _()({},e,{userData:t.data});case m:var r=e.userData;return t.email&&(r.emailNew=t.email),_()({},e,{userData:r,status:t.status});case b:return _()({},e,{status:t.status});case g:case v:return _()({},e);case O:return _()({},e,{status:null});default:return e}}!function(){var t=r(1).default,n=r(1).leaveModule;t&&(t.register(c,"LOGIN_REQUEST","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/user.js"),t.register(d,"LOGIN_RESPONSE","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/user.js"),t.register(f,"REGISTER_REQUEST","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/user.js"),t.register(p,"REGISTER_RESPONSE","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/user.js"),t.register(h,"LOGOUT","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/user.js"),t.register(E,"UPDATE","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/user.js"),t.register(m,"UPDATE_EMAIL","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/user.js"),t.register(g,"UPDATE_PASSWORD","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/user.js"),t.register(b,"RESTORE_PASSWORD","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/user.js"),t.register(v,"RESEND_VERIF","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/user.js"),t.register(O,"RESET_STATUS","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/user.js"),t.register(M,"ERROR_USER_EXISTS","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/user.js"),t.register(C,"ERROR_WRONG_PASS","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/user.js"),t.register(P,"ERROR_UNVERIF","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/user.js"),t.register(D,"ERROR_OTHER","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/user.js"),t.register(y,"OK","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/user.js"),t.register(w,"register","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/user.js"),t.register(T,"login","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/user.js"),t.register(A,"getLocalStorage","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/user.js"),t.register(k,"logout","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/user.js"),t.register(I,"update","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/user.js"),t.register(R,"updateEmail","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/user.js"),t.register(L,"updatePassword","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/user.js"),t.register(B,"restorePassword","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/user.js"),t.register(U,"resendVerEmail","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/user.js"),t.register(S,"resetStatus","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/user.js"),t.register(K,"initialState","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/user.js"),t.register(W,"userReducer","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/user.js"),n(e))}()}).call(this,r(12)(e))},function(e,t,r){"use strict";(function(e){r.d(t,"d",function(){return f}),r.d(t,"f",function(){return E}),r.d(t,"e",function(){return C}),r.d(t,"a",function(){return P}),r.d(t,"c",function(){return D}),r.d(t,"b",function(){return y}),r.d(t,"r",function(){return B}),r.d(t,"t",function(){return U}),r.d(t,"k",function(){return S}),r.d(t,"x",function(){return K}),r.d(t,"q",function(){return W}),r.d(t,"g",function(){return x}),r.d(t,"i",function(){return j}),r.d(t,"u",function(){return N}),r.d(t,"m",function(){return q}),r.d(t,"p",function(){return F}),r.d(t,"j",function(){return V}),r.d(t,"w",function(){return H}),r.d(t,"s",function(){return z}),r.d(t,"o",function(){return G}),r.d(t,"h",function(){return J}),r.d(t,"v",function(){return X}),r.d(t,"n",function(){return Q}),r.d(t,"l",function(){return Z});r(45);var n=r(11),_=r.n(n),a=(r(32),r(718),r(133),r(76),r(97),r(52),r(53),r(43),r(227),r(14)),i=r(21),o=r(19),s=r(8),l=r(20),u=r(15),c=r(24),d=r(13);!function(){var t=r(1).enterModule;t&&t(e)}();var f="app/models/INIT_END",p="app/models/SITE_ADD",h="app/models/SITE_UPDATE",E="app/models/SITE_DELETE",m="app/models/COLLABORATION_ADD",g="app/models/COLLABORATION_UPDATE",b="app/models/COLLABORATION_DELETE",v="app/models/COLLABORATION_SELF_DELETE",O="app/models/MODEL_ADD",M="app/models/MODEL_UPDATE",C="app/models/MODEL_DELETE",P="app/models/FIELD_ADD",D="app/models/FIELD_UPDATE",y="app/models/FIELD_DELETE",w="app/models/SET_CURRENT_SITE",T="app/models/SET_CURRENT_MODEL";function A(){var e=[];return Object(d.a)(new a.Parse.Query(o.a.OriginClass).equalTo("user",a.Parse.User.current()).find()).then(function(t){var r=!0,n=!1,_=void 0;try{for(var i,o=t[Symbol.iterator]();!(r=(i=o.next()).done);r=!0){var s=i.value;e.push(s.get("site"))}}catch(e){n=!0,_=e}finally{try{r||null==o.return||o.return()}finally{if(n)throw _}}return Object(d.a)(a.Parse.Object.fetchAllIfNeeded(e))}).then(function(){return e})}function k(){return Object(d.a)(new a.Parse.Query(s.B.OriginClass).equalTo("owner",a.Parse.User.current()).find())}function I(e,t){return Object(d.a)(new a.Parse.Query(o.a.OriginClass).containedIn("site",e).find()).then(function(e){var r=[],n=!0,_=!1,a=void 0;try{for(var i,s=function(){var e=i.value,n=(new o.a).setOrigin(e),_=e.get("user");_&&r.push(Object(d.a)(_.fetch()).then(function(e){var t=(new o.f).setOrigin(e);n.user=t}));var a=e.get("site"),s=!0,l=!1,u=void 0;try{for(var c,f=t[Symbol.iterator]();!(s=(c=f.next()).done);s=!0){var p=c.value;if(p.origin.id==a.id){n.site=p,p.collaborations.push(n);break}}}catch(e){l=!0,u=e}finally{try{s||null==f.return||f.return()}finally{if(l)throw u}}},l=e[Symbol.iterator]();!(n=(i=l.next()).done);n=!0)s()}catch(e){_=!0,a=e}finally{try{n||null==l.return||l.return()}finally{if(_)throw a}}return Promise.all(r)})}function R(e,t,r,n){return Object(d.a)(new a.Parse.Query(s.z.OriginClass).containedIn("site",e).find()).then(function(e){Array.prototype.push.apply(r,e);var _=!0,a=!1,i=void 0;try{for(var o,l=r[Symbol.iterator]();!(_=(o=l.next()).done);_=!0){var u=o.value,c=(new s.z).setOrigin(u),d=u.get("site"),f=!0,p=!1,h=void 0;try{for(var E,m=t[Symbol.iterator]();!(f=(E=m.next()).done);f=!0){var g=E.value;if(g.origin.id==d.id){c.site=g,g.models.push(c),n.push(c);break}}}catch(e){p=!0,h=e}finally{try{f||null==m.return||m.return()}finally{if(p)throw h}}}}catch(e){a=!0,i=e}finally{try{_||null==l.return||l.return()}finally{if(a)throw i}}})}function L(e,t){return Object(d.a)(new a.Parse.Query(s.A.OriginClass).containedIn("model",e).find()).then(function(e){var r=!0,n=!1,_=void 0;try{for(var a,i=e[Symbol.iterator]();!(r=(a=i.next()).done);r=!0){var o=a.value,l=(new s.A).setOrigin(o),u=o.get("model"),c=!0,d=!1,f=void 0;try{for(var p,h=t[Symbol.iterator]();!(c=(p=h.next()).done);c=!0){var E=p.value;if(E.origin.id==u.id){l.model=E,E.fields.push(l);break}}}catch(e){d=!0,f=e}finally{try{c||null==h.return||h.return()}finally{if(d)throw f}}}}catch(e){n=!0,_=e}finally{try{r||null==i.return||i.return()}finally{if(n)throw _}}})}function B(){return function(e){var t=[],r=[],n=[],_=[];A().then(function(e){return t=e,k()}).then(function(e){t=t.concat(e);var a=[],i=!0,l=!1,u=void 0;try{for(var c,f=function(){var e=c.value,t=(new s.B).setOrigin(e);a.push(Object(d.a)(e.get("owner").fetch()).then(function(e){return t.owner=(new o.f).setOrigin(e)})),r.push(t)},p=t[Symbol.iterator]();!(i=(c=p.next()).done);i=!0)f()}catch(e){l=!0,u=e}finally{try{i||null==p.return||p.return()}finally{if(l)throw u}}return Promise.all(a).then(function(){return Promise.all([I(t,r),R(t,r,n,_).then(function(){return L(n,_)}).then(function(){for(var e=0;e<_.length;e++){_[e].fields.sort(function(e,t){return e.order>t.order?1:-1})}})])})}).then(function(){return e({type:f,sites:r})})}}function U(e){if(!e)return{type:w,currentSite:null};var t=Object(u.x)(e);return{type:w,currentSite:e,role:t}}function S(e){return e.owner=i.store.getState().user.userData,e.nameId=Object(u.w)(e.name,i.store.getState().models.sites),e.updateOrigin(),e.origin.setACL(new a.Parse.ACL(a.Parse.User.current())),Object(d.a)(e.origin.save()),{type:p,site:e}}function K(e){return e.updateOrigin(),Object(d.a)(e.origin.save()),{type:h}}function W(e){return Object(d.a)(a.Parse.Cloud.run("deleteSite",{siteId:e.origin.id})),{type:E,site:e}}function x(e,t){var r=new o.a;r.user=e,r.email=t;var n=i.store.getState().models.currentSite;return r.site=n,r.updateOrigin(),r.origin.setACL(new a.Parse.ACL(n.owner.origin)),Object(d.a)(r.origin.save()).then(function(){return Object(d.a)(a.Parse.Cloud.run("onCollaborationModify",{collabId:r.origin.id}))}),{type:m,collab:r}}function j(e){var t=new o.a;t.email=e;var r=i.store.getState().models.currentSite;return t.site=r,t.updateOrigin(),t.origin.setACL(new a.Parse.ACL(r.owner.origin)),Object(d.a)(t.origin.save()),Object(d.a)(a.Parse.Cloud.run("inviteUser",{email:e,siteName:r.name})),{type:m,collab:t}}function N(e){return e.updateOrigin(),Object(d.a)(e.origin.save()).then(function(){return Object(d.a)(a.Parse.Cloud.run("onCollaborationModify",{collabId:e.origin.id}))}),{type:g,collab:e}}function q(e){return Object(d.a)(a.Parse.Cloud.run("onCollaborationModify",{collabId:e.origin.id,deleting:!0})).then(function(){return Object(d.a)(e.origin.destroy())}),{type:b,collab:e}}function F(e){return Object(d.a)(a.Parse.Cloud.run("onCollaborationModify",{collabId:e.origin.id,deleting:!0})).then(function(){return Object(d.a)(e.origin.destroy())}),{type:v,collab:e}}function V(e){var t=i.store.getState().models.currentSite,r=new s.z;return r.name=e,r.nameId=Object(u.w)(e,t.models),r.color=Object(l.f)(),r.site=t,r.setTableName(),r.updateOrigin(),Object(d.a)(r.origin.save()).then(function(){return Object(d.a)(a.Parse.Cloud.run("onModelAdd",{modelId:r.origin.id}))}),{type:O,model:r}}function H(e){return e.updateOrigin(),Object(d.a)(e.origin.save()),{type:M,model:e}}function z(e){return{type:T,currentModel:e}}function G(e){return Object(d.a)(a.Parse.Cloud.run("deleteModel",{modelId:e.origin.id})),{type:C,model:e}}function Y(e){if(Object(s.D)(e)||(e.isTitle=!1),e.isTitle){var t=!0,r=!1,n=void 0;try{for(var _,a=e.model.fields[Symbol.iterator]();!(t=(_=a.next()).done);t=!0){var i=_.value;i!=e&&i.isTitle&&(i.isTitle=!1,i.updateOrigin(),Object(d.a)(i.origin.save()))}}catch(e){r=!0,n=e}finally{try{t||null==a.return||a.return()}finally{if(r)throw n}}}}function J(e){return e.color=Object(l.f)(),e.nameId=Object(u.w)(e.name,e.model.fields,s.p),e.order=e.model.fields.length,Y(e),e.updateOrigin(),Object(d.a)(e.origin.save()).then(function(){return Object(d.a)(a.Parse.Cloud.run("onFieldAdd",{fieldId:e.origin.id}))}),Object(d.a)(e.model.origin.save()),{type:P,field:e}}function X(e){return Y(e),e.updateOrigin(),Object(d.a)(e.origin.save()),Object(d.a)(e.model.origin.save()),{type:D,field:e}}function Q(e){return Object(d.a)(e.origin.destroy()),Object(d.a)(e.model.origin.save()),{type:y,field:e}}var $={sites:[],currentSite:null,currentModel:null,role:null};function Z(){var e,t,r,n,a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:$,i=arguments.length>1?arguments[1]:void 0;switch(i.type){case f:return _()({},a,{sites:i.sites});case w:return _()({},a,{currentSite:i.currentSite,role:i.role});case T:return _()({},a,{currentModel:i.currentModel});case p:return(e=a.sites).push(i.site),_()({},a,{sites:e});case E:return(e=a.sites).splice(e.indexOf(i.site),1),_()({},a,{sites:e,currentSite:null});case m:return(t=a.currentSite).collaborations.push(i.collab),_()({},a,{currentSite:t});case b:return(n=(t=a.currentSite).collaborations).splice(n.indexOf(i.collab),1),_()({},a,{currentSite:t});case v:return(n=(t=a.currentSite).collaborations).splice(n.indexOf(i.collab),1),(e=a.sites).splice(e.indexOf(t),1),_()({},a,{currentSite:e[0]});case O:return(t=a.currentSite).models.push(i.model),_()({},a,{currentSite:t});case C:var o=(t=a.currentSite).models;return o.splice(o.indexOf(i.model),1),_()({},a,{currentSite:t});case P:return(r=a.currentModel).fields.push(i.field),_()({},a,{currentModel:r});case y:var s=(r=a.currentModel).fields;return s.splice(s.indexOf(i.field),1),_()({},a,{currentModel:r});case h:case g:case M:return _()({},a);case D:return i.field.model.fields.sort(function(e,t){return e.order>t.order?1:-1}),_()({},a);case c.f:return _()({},a,{currentModel:null,currentSite:null,role:null});default:return a}}!function(){var t=r(1).default,n=r(1).leaveModule;t&&(t.register(f,"INIT_END","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/models.js"),t.register(p,"SITE_ADD","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/models.js"),t.register(h,"SITE_UPDATE","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/models.js"),t.register(E,"SITE_DELETE","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/models.js"),t.register(m,"COLLABORATION_ADD","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/models.js"),t.register(g,"COLLABORATION_UPDATE","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/models.js"),t.register(b,"COLLABORATION_DELETE","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/models.js"),t.register(v,"COLLABORATION_SELF_DELETE","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/models.js"),t.register(O,"MODEL_ADD","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/models.js"),t.register(M,"MODEL_UPDATE","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/models.js"),t.register(C,"MODEL_DELETE","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/models.js"),t.register(P,"FIELD_ADD","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/models.js"),t.register(D,"FIELD_UPDATE","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/models.js"),t.register(y,"FIELD_DELETE","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/models.js"),t.register(w,"SET_CURRENT_SITE","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/models.js"),t.register(T,"SET_CURRENT_MODEL","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/models.js"),t.register(A,"requestCollaborationsPre","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/models.js"),t.register(k,"requestUserSites","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/models.js"),t.register(I,"requestCollaborationsPost","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/models.js"),t.register(R,"requestModels","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/models.js"),t.register(L,"requestFields","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/models.js"),t.register(B,"init","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/models.js"),t.register(U,"setCurrentSite","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/models.js"),t.register(S,"addSite","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/models.js"),t.register(K,"updateSite","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/models.js"),t.register(W,"deleteSite","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/models.js"),t.register(x,"addCollaboration","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/models.js"),t.register(j,"addInviteCollaboration","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/models.js"),t.register(N,"updateCollaboration","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/models.js"),t.register(q,"deleteCollaboration","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/models.js"),t.register(F,"deleteSelfCollaboration","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/models.js"),t.register(V,"addModel","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/models.js"),t.register(H,"updateModel","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/models.js"),t.register(z,"setCurrentModel","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/models.js"),t.register(G,"deleteModel","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/models.js"),t.register(Y,"checkNewTitle","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/models.js"),t.register(J,"addField","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/models.js"),t.register(X,"updateField","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/models.js"),t.register(Q,"deleteField","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/models.js"),t.register($,"initialState","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/models.js"),t.register(Z,"modelsReducer","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/models.js"),n(e))}()}).call(this,r(12)(e))},function(e,t){e.exports=function(e){return e&&e.__esModule?e:{default:e}}},function(e,t,r){"use strict";e.exports=function(e,t,r,n,_,a,i,o){if(!e){var s;if(void 0===t)s=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[r,n,_,a,i,o],u=0;(s=new Error(t.replace(/%s/g,function(){return l[u++]}))).name="Invariant Violation"}throw s.framesToPop=1,s}}},function(e,t,r){"use strict";var n=r(0),_=r(9),a=r.n(_),i=a.a.shape({trySubscribe:a.a.func.isRequired,tryUnsubscribe:a.a.func.isRequired,notifyNestedSubs:a.a.func.isRequired,isSubscribed:a.a.func.isRequired}),o=a.a.shape({subscribe:a.a.func.isRequired,dispatch:a.a.func.isRequired,getState:a.a.func.isRequired});var s=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"store",r=arguments[1]||t+"Subscription",_=function(e){function _(r,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,_);var a=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,r,n));return a[t]=r.store,a}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(_,e),_.prototype.getChildContext=function(){var e;return(e={})[t]=this[t],e[r]=null,e},_.prototype.render=function(){return n.Children.only(this.props.children)},_}(n.Component);return _.propTypes={store:o.isRequired,children:a.a.element.isRequired},_.childContextTypes=((e={})[t]=o.isRequired,e[r]=i,e),_}(),l=r(334),u=r.n(l),c=r(27),d=r.n(c);var f=null,p={notify:function(){}};var h=function(){function e(t,r,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.store=t,this.parentSub=r,this.onStateChange=n,this.unsubscribe=null,this.listeners=p}return e.prototype.addNestedSub=function(e){return this.trySubscribe(),this.listeners.subscribe(e)},e.prototype.notifyNestedSubs=function(){this.listeners.notify()},e.prototype.isSubscribed=function(){return Boolean(this.unsubscribe)},e.prototype.trySubscribe=function(){this.unsubscribe||(this.unsubscribe=this.parentSub?this.parentSub.addNestedSub(this.onStateChange):this.store.subscribe(this.onStateChange),this.listeners=function(){var e=[],t=[];return{clear:function(){t=f,e=f},notify:function(){for(var r=e=t,n=0;n1&&void 0!==arguments[1]?arguments[1]:{},a=_.getDisplayName,s=void 0===a?function(e){return"ConnectAdvanced("+e+")"}:a,l=_.methodName,c=void 0===l?"connectAdvanced":l,f=_.renderCountProp,p=void 0===f?void 0:f,v=_.shouldHandleStateChanges,O=void 0===v||v,M=_.storeKey,C=void 0===M?"store":M,P=_.withRef,D=void 0!==P&&P,y=function(e,t){var r={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r}(_,["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef"]),w=C+"Subscription",T=m++,A=((t={})[C]=o,t[w]=i,t),k=((r={})[w]=i,r);return function(t){d()("function"==typeof t,"You must pass a component to the function returned by "+c+". Instead received "+JSON.stringify(t));var r=t.displayName||t.name||"Component",_=s(r),a=E({},y,{getDisplayName:s,methodName:c,renderCountProp:p,shouldHandleStateChanges:O,storeKey:C,withRef:D,displayName:_,wrappedComponentName:r,WrappedComponent:t}),i=function(r){function i(e,t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,r.call(this,e,t));return n.version=T,n.state={},n.renderCount=0,n.store=e[C]||t[C],n.propsMode=Boolean(e[C]),n.setWrappedInstance=n.setWrappedInstance.bind(n),d()(n.store,'Could not find "'+C+'" in either the context or props of "'+_+'". Either wrap the root component in a , or explicitly pass "'+C+'" as a prop to "'+_+'".'),n.initSelector(),n.initSubscription(),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(i,r),i.prototype.getChildContext=function(){var e,t=this.propsMode?null:this.subscription;return(e={})[w]=t||this.context[w],e},i.prototype.componentDidMount=function(){O&&(this.subscription.trySubscribe(),this.selector.run(this.props),this.selector.shouldComponentUpdate&&this.forceUpdate())},i.prototype.componentWillReceiveProps=function(e){this.selector.run(e)},i.prototype.shouldComponentUpdate=function(){return this.selector.shouldComponentUpdate},i.prototype.componentWillUnmount=function(){this.subscription&&this.subscription.tryUnsubscribe(),this.subscription=null,this.notifyNestedSubs=b,this.store=null,this.selector.run=b,this.selector.shouldComponentUpdate=!1},i.prototype.getWrappedInstance=function(){return d()(D,"To access the wrapped instance, you need to specify { withRef: true } in the options argument of the "+c+"() call."),this.wrappedInstance},i.prototype.setWrappedInstance=function(e){this.wrappedInstance=e},i.prototype.initSelector=function(){var t=e(this.store.dispatch,a);this.selector=function(e,t){var r={run:function(n){try{var _=e(t.getState(),n);(_!==r.props||r.error)&&(r.shouldComponentUpdate=!0,r.props=_,r.error=null)}catch(e){r.shouldComponentUpdate=!0,r.error=e}}};return r}(t,this.store),this.selector.run(this.props)},i.prototype.initSubscription=function(){if(O){var e=(this.propsMode?this.props:this.context)[w];this.subscription=new h(this.store,e,this.onStateChange.bind(this)),this.notifyNestedSubs=this.subscription.notifyNestedSubs.bind(this.subscription)}},i.prototype.onStateChange=function(){this.selector.run(this.props),this.selector.shouldComponentUpdate?(this.componentDidUpdate=this.notifyNestedSubsOnComponentDidUpdate,this.setState(g)):this.notifyNestedSubs()},i.prototype.notifyNestedSubsOnComponentDidUpdate=function(){this.componentDidUpdate=void 0,this.notifyNestedSubs()},i.prototype.isSubscribed=function(){return Boolean(this.subscription)&&this.subscription.isSubscribed()},i.prototype.addExtraProps=function(e){if(!(D||p||this.propsMode&&this.subscription))return e;var t=E({},e);return D&&(t.ref=this.setWrappedInstance),p&&(t[p]=this.renderCount++),this.propsMode&&this.subscription&&(t[w]=this.subscription),t},i.prototype.render=function(){var e=this.selector;if(e.shouldComponentUpdate=!1,e.error)throw e.error;return Object(n.createElement)(t,this.addExtraProps(e.props))},i}(n.Component);return i.WrappedComponent=t,i.displayName=_,i.childContextTypes=k,i.contextTypes=A,i.propTypes=A,u()(i,t)}}var O=Object.prototype.hasOwnProperty;function M(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function C(e,t){if(M(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(var _=0;_=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r}(t,["initMapStateToProps","initMapDispatchToProps","initMergeProps"]),i=r(e,a),o=n(e,a),s=_(e,a);return(a.pure?N:j)(i,o,s,e,a)}var F=Object.assign||function(e){for(var t=1;t=0;n--){var _=t[n](e);if(_)return _}return function(t,n){throw new Error("Invalid value of type "+typeof e+" for "+r+" argument when connecting component "+n.wrappedComponentName+".")}}function H(e,t){return e===t}var z=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.connectHOC,r=void 0===t?v:t,n=e.mapStateToPropsFactories,_=void 0===n?S:n,a=e.mapDispatchToPropsFactories,i=void 0===a?U:a,o=e.mergePropsFactories,s=void 0===o?x:o,l=e.selectorFactory,u=void 0===l?q:l;return function(e,t,n){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=a.pure,l=void 0===o||o,c=a.areStatesEqual,d=void 0===c?H:c,f=a.areOwnPropsEqual,p=void 0===f?C:f,h=a.areStatePropsEqual,E=void 0===h?C:h,m=a.areMergedPropsEqual,g=void 0===m?C:m,b=function(e,t){var r={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r}(a,["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"]),v=V(e,_,"mapStateToProps"),O=V(t,i,"mapDispatchToProps"),M=V(n,s,"mergeProps");return r(u,F({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:v,initMapDispatchToProps:O,initMergeProps:M,pure:l,areStatesEqual:d,areOwnPropsEqual:p,areStatePropsEqual:E,areMergedPropsEqual:g},b))}}();r.d(t,"a",function(){return s}),r.d(t,"b",function(){return z})},function(e,t,r){"use strict";var n=function(e){};e.exports=function(e,t,r,_,a,i,o,s){if(n(t),!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[r,_,a,i,o,s],c=0;(l=new Error(t.replace(/%s/g,function(){return u[c++]}))).name="Invariant Violation"}throw l.framesToPop=1,l}}},function(e,t,r){e.exports=function(){"use strict";var e=Array.prototype.slice;function t(e,t){t&&(e.prototype=Object.create(t.prototype)),e.prototype.constructor=e}function r(e){return i(e)?e:z(e)}function n(e){return o(e)?e:G(e)}function _(e){return s(e)?e:Y(e)}function a(e){return i(e)&&!l(e)?e:J(e)}function i(e){return!(!e||!e[c])}function o(e){return!(!e||!e[d])}function s(e){return!(!e||!e[f])}function l(e){return o(e)||s(e)}function u(e){return!(!e||!e[p])}t(n,r),t(_,r),t(a,r),r.isIterable=i,r.isKeyed=o,r.isIndexed=s,r.isAssociative=l,r.isOrdered=u,r.Keyed=n,r.Indexed=_,r.Set=a;var c="@@__IMMUTABLE_ITERABLE__@@",d="@@__IMMUTABLE_KEYED__@@",f="@@__IMMUTABLE_INDEXED__@@",p="@@__IMMUTABLE_ORDERED__@@",h=5,E=1<>>0;if(""+r!==t||4294967295===r)return NaN;t=r}return t<0?D(e)+t:t}function w(){return!0}function T(e,t,r){return(0===e||void 0!==r&&e<=-r)&&(void 0===t||void 0!==r&&t>=r)}function A(e,t){return I(e,t,0)}function k(e,t){return I(e,t,t)}function I(e,t,r){return void 0===e?r:e<0?Math.max(0,t+e):void 0===t?e:Math.min(t,e)}var R=0,L=1,B=2,U="function"==typeof Symbol&&Symbol.iterator,S="@@iterator",K=U||S;function W(e){this.next=e}function x(e,t,r,n){var _=0===e?t:1===e?r:[t,r];return n?n.value=_:n={value:_,done:!1},n}function j(){return{value:void 0,done:!0}}function N(e){return!!V(e)}function q(e){return e&&"function"==typeof e.next}function F(e){var t=V(e);return t&&t.call(e)}function V(e){var t=e&&(U&&e[U]||e[S]);if("function"==typeof t)return t}function H(e){return e&&"number"==typeof e.length}function z(e){return null===e||void 0===e?ae():i(e)?e.toSeq():function(e){var t=se(e)||"object"==typeof e&&new te(e);if(!t)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+e);return t}(e)}function G(e){return null===e||void 0===e?ae().toKeyedSeq():i(e)?o(e)?e.toSeq():e.fromEntrySeq():ie(e)}function Y(e){return null===e||void 0===e?ae():i(e)?o(e)?e.entrySeq():e.toIndexedSeq():oe(e)}function J(e){return(null===e||void 0===e?ae():i(e)?o(e)?e.entrySeq():e:oe(e)).toSetSeq()}W.prototype.toString=function(){return"[Iterator]"},W.KEYS=R,W.VALUES=L,W.ENTRIES=B,W.prototype.inspect=W.prototype.toSource=function(){return this.toString()},W.prototype[K]=function(){return this},t(z,r),z.of=function(){return z(arguments)},z.prototype.toSeq=function(){return this},z.prototype.toString=function(){return this.__toString("Seq {","}")},z.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},z.prototype.__iterate=function(e,t){return le(this,e,t,!0)},z.prototype.__iterator=function(e,t){return ue(this,e,t,!0)},t(G,z),G.prototype.toKeyedSeq=function(){return this},t(Y,z),Y.of=function(){return Y(arguments)},Y.prototype.toIndexedSeq=function(){return this},Y.prototype.toString=function(){return this.__toString("Seq [","]")},Y.prototype.__iterate=function(e,t){return le(this,e,t,!1)},Y.prototype.__iterator=function(e,t){return ue(this,e,t,!1)},t(J,z),J.of=function(){return J(arguments)},J.prototype.toSetSeq=function(){return this},z.isSeq=_e,z.Keyed=G,z.Set=J,z.Indexed=Y;var X,Q,$,Z="@@__IMMUTABLE_SEQ__@@";function ee(e){this._array=e,this.size=e.length}function te(e){var t=Object.keys(e);this._object=e,this._keys=t,this.size=t.length}function re(e){this._iterable=e,this.size=e.length||e.size}function ne(e){this._iterator=e,this._iteratorCache=[]}function _e(e){return!(!e||!e[Z])}function ae(){return X||(X=new ee([]))}function ie(e){var t=Array.isArray(e)?new ee(e).fromEntrySeq():q(e)?new ne(e).fromEntrySeq():N(e)?new re(e).fromEntrySeq():"object"==typeof e?new te(e):void 0;if(!t)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+e);return t}function oe(e){var t=se(e);if(!t)throw new TypeError("Expected Array or iterable object of values: "+e);return t}function se(e){return H(e)?new ee(e):q(e)?new ne(e):N(e)?new re(e):void 0}function le(e,t,r,n){var _=e._cache;if(_){for(var a=_.length-1,i=0;i<=a;i++){var o=_[r?a-i:i];if(!1===t(o[1],n?o[0]:i,e))return i+1}return i}return e.__iterateUncached(t,r)}function ue(e,t,r,n){var _=e._cache;if(_){var a=_.length-1,i=0;return new W(function(){var e=_[r?a-i:i];return i++>a?{value:void 0,done:!0}:x(t,n?e[0]:i-1,e[1])})}return e.__iteratorUncached(t,r)}function ce(e,t){return t?function e(t,r,n,_){return Array.isArray(r)?t.call(_,n,Y(r).map(function(n,_){return e(t,n,_,r)})):fe(r)?t.call(_,n,G(r).map(function(n,_){return e(t,n,_,r)})):r}(t,e,"",{"":e}):de(e)}function de(e){return Array.isArray(e)?Y(e).map(de).toList():fe(e)?G(e).map(de).toMap():e}function fe(e){return e&&(e.constructor===Object||void 0===e.constructor)}function pe(e,t){if(e===t||e!=e&&t!=t)return!0;if(!e||!t)return!1;if("function"==typeof e.valueOf&&"function"==typeof t.valueOf){if(e=e.valueOf(),t=t.valueOf(),e===t||e!=e&&t!=t)return!0;if(!e||!t)return!1}return!("function"!=typeof e.equals||"function"!=typeof t.equals||!e.equals(t))}function he(e,t){if(e===t)return!0;if(!i(t)||void 0!==e.size&&void 0!==t.size&&e.size!==t.size||void 0!==e.__hash&&void 0!==t.__hash&&e.__hash!==t.__hash||o(e)!==o(t)||s(e)!==s(t)||u(e)!==u(t))return!1;if(0===e.size&&0===t.size)return!0;var r=!l(e);if(u(e)){var n=e.entries();return t.every(function(e,t){var _=n.next().value;return _&&pe(_[1],e)&&(r||pe(_[0],t))})&&n.next().done}var _=!1;if(void 0===e.size)if(void 0===t.size)"function"==typeof e.cacheResult&&e.cacheResult();else{_=!0;var a=e;e=t,t=a}var c=!0,d=t.__iterate(function(t,n){if(r?!e.has(t):_?!pe(t,e.get(n,g)):!pe(e.get(n,g),t))return c=!1,!1});return c&&e.size===d}function Ee(e,t){if(!(this instanceof Ee))return new Ee(e,t);if(this._value=e,this.size=void 0===t?1/0:Math.max(0,t),0===this.size){if(Q)return Q;Q=this}}function me(e,t){if(!e)throw new Error(t)}function ge(e,t,r){if(!(this instanceof ge))return new ge(e,t,r);if(me(0!==r,"Cannot step a Range by 0"),e=e||0,void 0===t&&(t=1/0),r=void 0===r?1:Math.abs(r),tn?{value:void 0,done:!0}:x(e,_,r[t?n-_++:_++])})},t(te,G),te.prototype.get=function(e,t){return void 0===t||this.has(e)?this._object[e]:t},te.prototype.has=function(e){return this._object.hasOwnProperty(e)},te.prototype.__iterate=function(e,t){for(var r=this._object,n=this._keys,_=n.length-1,a=0;a<=_;a++){var i=n[t?_-a:a];if(!1===e(r[i],i,this))return a+1}return a},te.prototype.__iterator=function(e,t){var r=this._object,n=this._keys,_=n.length-1,a=0;return new W(function(){var i=n[t?_-a:a];return a++>_?{value:void 0,done:!0}:x(e,i,r[i])})},te.prototype[p]=!0,t(re,Y),re.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var r=this._iterable,n=F(r),_=0;if(q(n))for(var a;!(a=n.next()).done&&!1!==e(a.value,_++,this););return _},re.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var r=this._iterable,n=F(r);if(!q(n))return new W(j);var _=0;return new W(function(){var t=n.next();return t.done?t:x(e,_++,t.value)})},t(ne,Y),ne.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);for(var r,n=this._iterator,_=this._iteratorCache,a=0;a<_.length;)if(!1===e(_[a],a++,this))return a;for(;!(r=n.next()).done;){var i=r.value;if(_[a]=i,!1===e(i,a++,this))break}return a},ne.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var r=this._iterator,n=this._iteratorCache,_=0;return new W(function(){if(_>=n.length){var t=r.next();if(t.done)return t;n[_]=t.value}return x(e,_,n[_++])})},t(Ee,Y),Ee.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},Ee.prototype.get=function(e,t){return this.has(e)?this._value:t},Ee.prototype.includes=function(e){return pe(this._value,e)},Ee.prototype.slice=function(e,t){var r=this.size;return T(e,t,r)?this:new Ee(this._value,k(t,r)-A(e,r))},Ee.prototype.reverse=function(){return this},Ee.prototype.indexOf=function(e){return pe(this._value,e)?0:-1},Ee.prototype.lastIndexOf=function(e){return pe(this._value,e)?this.size:-1},Ee.prototype.__iterate=function(e,t){for(var r=0;r1?" by "+this._step:"")+" ]"},ge.prototype.get=function(e,t){return this.has(e)?this._start+y(this,e)*this._step:t},ge.prototype.includes=function(e){var t=(e-this._start)/this._step;return t>=0&&t=0&&rr?{value:void 0,done:!0}:x(e,a++,i)})},ge.prototype.equals=function(e){return e instanceof ge?this._start===e._start&&this._end===e._end&&this._step===e._step:he(this,e)},t(be,r),t(ve,be),t(Oe,be),t(Me,be),be.Keyed=ve,be.Indexed=Oe,be.Set=Me;var Ce="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(e,t){var r=65535&(e|=0),n=65535&(t|=0);return r*n+((e>>>16)*n+r*(t>>>16)<<16>>>0)|0};function Pe(e){return e>>>1&1073741824|3221225471&e}function De(e){if(!1===e||null===e||void 0===e)return 0;if("function"==typeof e.valueOf&&(!1===(e=e.valueOf())||null===e||void 0===e))return 0;if(!0===e)return 1;var t=typeof e;if("number"===t){var r=0|e;for(r!==e&&(r^=4294967295*e);e>4294967295;)r^=e/=4294967295;return Pe(r)}if("string"===t)return e.length>Le?function(e){var t=Se[e];return void 0===t&&(t=ye(e),Ue===Be&&(Ue=0,Se={}),Ue++,Se[e]=t),t}(e):ye(e);if("function"==typeof e.hashCode)return e.hashCode();if("object"===t)return function(e){var t;if(ke&&void 0!==(t=we.get(e)))return t;if(void 0!==(t=e[Re]))return t;if(!Ae){if(void 0!==(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[Re]))return t;if(void 0!==(t=function(e){if(e&&e.nodeType>0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}(e)))return t}if(t=++Ie,1073741824&Ie&&(Ie=0),ke)we.set(e,t);else{if(void 0!==Te&&!1===Te(e))throw new Error("Non-extensible objects are not allowed as keys.");if(Ae)Object.defineProperty(e,Re,{enumerable:!1,configurable:!1,writable:!1,value:t});else if(void 0!==e.propertyIsEnumerable&&e.propertyIsEnumerable===e.constructor.prototype.propertyIsEnumerable)e.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},e.propertyIsEnumerable[Re]=t;else{if(void 0===e.nodeType)throw new Error("Unable to set a non-enumerable property on object.");e[Re]=t}}return t}(e);if("function"==typeof e.toString)return ye(e.toString());throw new Error("Value type "+t+" cannot be hashed.")}function ye(e){for(var t=0,r=0;r>>r)&m,o=(0===r?n:n>>>r)&m,s=i===o?[rt(e,t,r+h,n,_)]:(a=new Ge(t,n,_),i>1&1431655765))+(e>>2&858993459))+(e>>4)&252645135,e+=e>>8,127&(e+=e>>16)}function st(e,t,r,n){var _=n?e:P(e);return _[t]=r,_}qe[Ne]=!0,qe.delete=qe.remove,qe.removeIn=qe.deleteIn,Fe.prototype.get=function(e,t,r,n){for(var _=this.entries,a=0,i=_.length;a=lt)return function(e,t,r,n){e||(e=new C);for(var _=new Ge(e,De(r),[r,n]),a=0;a>>e)&m),a=this.bitmap;return 0==(a&_)?n:this.nodes[ot(a&_-1)].get(e+h,t,r,n)},Ve.prototype.update=function(e,t,r,n,_,a,i){void 0===r&&(r=De(n));var o=(0===t?r:r>>>t)&m,s=1<=ut)return function(e,t,r,n,_){for(var a=0,i=new Array(E),o=0;0!==r;o++,r>>>=1)i[o]=1&r?t[a++]:void 0;return i[n]=_,new He(e,a+1,i)}(e,d,l,o,p);if(u&&!p&&2===d.length&&tt(d[1^c]))return d[1^c];if(u&&p&&1===d.length&&tt(p))return p;var b=e&&e===this.ownerID,v=u?p?l:l^s:l|s,O=u?p?st(d,c,p,b):function(e,t,r){var n=e.length-1;if(r&&t===n)return e.pop(),e;for(var _=new Array(n),a=0,i=0;i>>e)&m,a=this.nodes[_];return a?a.get(e+h,t,r,n):n},He.prototype.update=function(e,t,r,n,_,a,i){void 0===r&&(r=De(n));var o=(0===t?r:r>>>t)&m,s=_===g,l=this.nodes,u=l[o];if(s&&!u)return this;var c=et(u,e,t+h,r,n,_,a,i);if(c===u)return this;var d=this.count;if(u){if(!c&&--d0&&n=0&&e=e.size||t<0)return e.withMutations(function(e){t<0?yt(e,t).set(0,r):yt(e,0,t+1).set(t,r)});t+=e._origin;var n=e._tail,_=e._root,a=O(v);return t>=Tt(e._capacity)?n=Ct(n,e.__ownerID,0,t,r,a):_=Ct(_,e.__ownerID,e._level,t,r,a),a.value?e.__ownerID?(e._root=_,e._tail=n,e.__hash=void 0,e.__altered=!0,e):Ot(e._origin,e._capacity,e._level,_,n):e}(this,e,t)},dt.prototype.remove=function(e){return this.has(e)?0===e?this.shift():e===this.size-1?this.pop():this.splice(e,1):this},dt.prototype.insert=function(e,t){return this.splice(e,0,t)},dt.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=h,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):Mt()},dt.prototype.push=function(){var e=arguments,t=this.size;return this.withMutations(function(r){yt(r,0,t+e.length);for(var n=0;n>>t&m;if(n>=this.array.length)return new Et([],e);var _,a=0===n;if(t>0){var i=this.array[n];if((_=i&&i.removeBefore(e,t-h,r))===i&&a)return this}if(a&&!_)return this;var o=Pt(this,e);if(!a)for(var s=0;s>>t&m;if(_>=this.array.length)return this;if(t>0){var a=this.array[_];if((n=a&&a.removeAfter(e,t-h,r))===a&&_===this.array.length-1)return this}var i=Pt(this,e);return i.array.splice(_+1),n&&(i.array[_]=n),i};var mt,gt,bt={};function vt(e,t){var r=e._origin,n=e._capacity,_=Tt(n),a=e._tail;return i(e._root,e._level,0);function i(e,o,s){return 0===o?function(e,i){var o=i===_?a&&a.array:e&&e.array,s=i>r?0:r-i,l=n-i;return l>E&&(l=E),function(){if(s===l)return bt;var e=t?--l:s++;return o&&o[e]}}(e,s):function(e,_,a){var o,s=e&&e.array,l=a>r?0:r-a>>_,u=1+(n-a>>_);return u>E&&(u=E),function(){for(;;){if(o){var e=o();if(e!==bt)return e;o=null}if(l===u)return bt;var r=t?--u:l++;o=i(s&&s[r],_-h,a+(r<<_))}}}(e,o,s)}}function Ot(e,t,r,n,_,a,i){var o=Object.create(ht);return o.size=t-e,o._origin=e,o._capacity=t,o._level=r,o._root=n,o._tail=_,o.__ownerID=a,o.__hash=i,o.__altered=!1,o}function Mt(){return mt||(mt=Ot(0,0,h))}function Ct(e,t,r,n,_,a){var i,o=n>>>r&m,s=e&&o0){var l=e&&e.array[o],u=Ct(l,t,r-h,n,_,a);return u===l?e:((i=Pt(e,t)).array[o]=u,i)}return s&&e.array[o]===_?e:(M(a),i=Pt(e,t),void 0===_&&o===i.array.length-1?i.array.pop():i.array[o]=_,i)}function Pt(e,t){return t&&e&&t===e.ownerID?e:new Et(e?e.array.slice():[],t)}function Dt(e,t){if(t>=Tt(e._capacity))return e._tail;if(t<1<0;)r=r.array[t>>>n&m],n-=h;return r}}function yt(e,t,r){void 0!==t&&(t|=0),void 0!==r&&(r|=0);var n=e.__ownerID||new C,_=e._origin,a=e._capacity,i=_+t,o=void 0===r?a:r<0?a+r:_+r;if(i===_&&o===a)return e;if(i>=o)return e.clear();for(var s=e._level,l=e._root,u=0;i+u<0;)l=new Et(l&&l.array.length?[void 0,l]:[],n),u+=1<<(s+=h);u&&(i+=u,_+=u,o+=u,a+=u);for(var c=Tt(a),d=Tt(o);d>=1<c?new Et([],n):f;if(f&&d>c&&ih;g-=h){var b=c>>>g&m;E=E.array[b]=Pt(E.array[b],n)}E.array[c>>>h&m]=f}if(o=d)i-=d,o-=d,s=h,l=null,p=p&&p.removeBefore(n,0,i);else if(i>_||d>>s&m;if(v!==d>>>s&m)break;v&&(u+=(1<_&&(l=l.removeBefore(n,s,i-u)),l&&da&&(a=l.size),i(s)||(l=l.map(function(e){return ce(e)})),n.push(l)}return a>e.size&&(e=e.setSize(a)),it(e,t,n)}function Tt(e){return e>>h<=E&&i.size>=2*a.size?(_=i.filter(function(e,t){return void 0!==e&&o!==t}),n=_.toKeyedSeq().map(function(e){return e[0]}).flip().toMap(),e.__ownerID&&(n.__ownerID=_.__ownerID=e.__ownerID)):(n=a.remove(t),_=o===i.size-1?i.pop():i.set(o,void 0))}else if(s){if(r===i.get(o)[1])return e;n=a,_=i.set(o,[t,r])}else n=a.set(t,i.size),_=i.set(i.size,[t,r]);return e.__ownerID?(e.size=n.size,e._map=n,e._list=_,e.__hash=void 0,e):It(n,_)}function Bt(e,t){this._iter=e,this._useKeys=t,this.size=e.size}function Ut(e){this._iter=e,this.size=e.size}function St(e){this._iter=e,this.size=e.size}function Kt(e){this._iter=e,this.size=e.size}function Wt(e){var t=Zt(e);return t._iter=e,t.size=e.size,t.flip=function(){return e},t.reverse=function(){var t=e.reverse.apply(this);return t.flip=function(){return e.reverse()},t},t.has=function(t){return e.includes(t)},t.includes=function(t){return e.has(t)},t.cacheResult=er,t.__iterateUncached=function(t,r){var n=this;return e.__iterate(function(e,r){return!1!==t(r,e,n)},r)},t.__iteratorUncached=function(t,r){if(t===B){var n=e.__iterator(t,r);return new W(function(){var e=n.next();if(!e.done){var t=e.value[0];e.value[0]=e.value[1],e.value[1]=t}return e})}return e.__iterator(t===L?R:L,r)},t}function xt(e,t,r){var n=Zt(e);return n.size=e.size,n.has=function(t){return e.has(t)},n.get=function(n,_){var a=e.get(n,g);return a===g?_:t.call(r,a,n,e)},n.__iterateUncached=function(n,_){var a=this;return e.__iterate(function(e,_,i){return!1!==n(t.call(r,e,_,i),_,a)},_)},n.__iteratorUncached=function(n,_){var a=e.__iterator(B,_);return new W(function(){var _=a.next();if(_.done)return _;var i=_.value,o=i[0];return x(n,o,t.call(r,i[1],o,e),_)})},n}function jt(e,t){var r=Zt(e);return r._iter=e,r.size=e.size,r.reverse=function(){return e},e.flip&&(r.flip=function(){var t=Wt(e);return t.reverse=function(){return e.flip()},t}),r.get=function(r,n){return e.get(t?r:-1-r,n)},r.has=function(r){return e.has(t?r:-1-r)},r.includes=function(t){return e.includes(t)},r.cacheResult=er,r.__iterate=function(t,r){var n=this;return e.__iterate(function(e,r){return t(e,r,n)},!r)},r.__iterator=function(t,r){return e.__iterator(t,!r)},r}function Nt(e,t,r,n){var _=Zt(e);return n&&(_.has=function(n){var _=e.get(n,g);return _!==g&&!!t.call(r,_,n,e)},_.get=function(n,_){var a=e.get(n,g);return a!==g&&t.call(r,a,n,e)?a:_}),_.__iterateUncached=function(_,a){var i=this,o=0;return e.__iterate(function(e,a,s){if(t.call(r,e,a,s))return o++,_(e,n?a:o-1,i)},a),o},_.__iteratorUncached=function(_,a){var i=e.__iterator(B,a),o=0;return new W(function(){for(;;){var a=i.next();if(a.done)return a;var s=a.value,l=s[0],u=s[1];if(t.call(r,u,l,e))return x(_,n?l:o++,u,a)}})},_}function qt(e,t,r,n){var _=e.size;if(void 0!==t&&(t|=0),void 0!==r&&(r|=0),T(t,r,_))return e;var a=A(t,_),i=k(r,_);if(a!=a||i!=i)return qt(e.toSeq().cacheResult(),t,r,n);var o,s=i-a;s==s&&(o=s<0?0:s);var l=Zt(e);return l.size=0===o?o:e.size&&o||void 0,!n&&_e(e)&&o>=0&&(l.get=function(t,r){return(t=y(this,t))>=0&&to)return{value:void 0,done:!0};var e=_.next();return n||t===L?e:x(t,s-1,t===R?void 0:e.value[1],e)})},l}function Ft(e,t,r,n){var _=Zt(e);return _.__iterateUncached=function(_,a){var i=this;if(a)return this.cacheResult().__iterate(_,a);var o=!0,s=0;return e.__iterate(function(e,a,l){if(!o||!(o=t.call(r,e,a,l)))return s++,_(e,n?a:s-1,i)}),s},_.__iteratorUncached=function(_,a){var i=this;if(a)return this.cacheResult().__iterator(_,a);var o=e.__iterator(B,a),s=!0,l=0;return new W(function(){var e,a,u;do{if((e=o.next()).done)return n||_===L?e:x(_,l++,_===R?void 0:e.value[1],e);var c=e.value;a=c[0],u=c[1],s&&(s=t.call(r,u,a,i))}while(s);return _===B?e:x(_,a,u,e)})},_}function Vt(e,t,r){var n=Zt(e);return n.__iterateUncached=function(n,_){var a=0,o=!1;return function e(s,l){var u=this;s.__iterate(function(_,s){return(!t||l0}function Yt(e,t,n){var _=Zt(e);return _.size=new ee(n).map(function(e){return e.size}).min(),_.__iterate=function(e,t){for(var r,n=this.__iterator(L,t),_=0;!(r=n.next()).done&&!1!==e(r.value,_++,this););return _},_.__iteratorUncached=function(e,_){var a=n.map(function(e){return e=r(e),F(_?e.reverse():e)}),i=0,o=!1;return new W(function(){var r;return o||(r=a.map(function(e){return e.next()}),o=r.some(function(e){return e.done})),o?{value:void 0,done:!0}:x(e,i++,t.apply(null,r.map(function(e){return e.value})))})},_}function Jt(e,t){return _e(e)?t:e.constructor(t)}function Xt(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function Qt(e){return Ke(e.size),D(e)}function $t(e){return o(e)?n:s(e)?_:a}function Zt(e){return Object.create((o(e)?G:s(e)?Y:J).prototype)}function er(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):z.prototype.cacheResult.call(this)}function tr(e,t){return e>t?1:e=0;r--)t={value:arguments[r],next:t};return this.__ownerID?(this.size=e,this._head=t,this.__hash=void 0,this.__altered=!0,this):yr(e,t)},Or.prototype.pushAll=function(e){if(0===(e=_(e)).size)return this;Ke(e.size);var t=this.size,r=this._head;return e.reverse().forEach(function(e){t++,r={value:e,next:r}}),this.__ownerID?(this.size=t,this._head=r,this.__hash=void 0,this.__altered=!0,this):yr(t,r)},Or.prototype.pop=function(){return this.slice(1)},Or.prototype.unshift=function(){return this.push.apply(this,arguments)},Or.prototype.unshiftAll=function(e){return this.pushAll(e)},Or.prototype.shift=function(){return this.pop.apply(this,arguments)},Or.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):wr()},Or.prototype.slice=function(e,t){if(T(e,t,this.size))return this;var r=A(e,this.size),n=k(t,this.size);if(n!==this.size)return Oe.prototype.slice.call(this,e,t);for(var _=this.size-r,a=this._head;r--;)a=a.next;return this.__ownerID?(this.size=_,this._head=a,this.__hash=void 0,this.__altered=!0,this):yr(_,a)},Or.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?yr(this.size,this._head,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},Or.prototype.__iterate=function(e,t){if(t)return this.reverse().__iterate(e);for(var r=0,n=this._head;n&&!1!==e(n.value,r++,this);)n=n.next;return r},Or.prototype.__iterator=function(e,t){if(t)return this.reverse().__iterator(e);var r=0,n=this._head;return new W(function(){if(n){var t=n.value;return n=n.next,x(e,r++,t)}return{value:void 0,done:!0}})},Or.isStack=Mr;var Cr,Pr="@@__IMMUTABLE_STACK__@@",Dr=Or.prototype;function yr(e,t,r,n){var _=Object.create(Dr);return _.size=e,_._head=t,_.__ownerID=r,_.__hash=n,_.__altered=!1,_}function wr(){return Cr||(Cr=yr(0))}function Tr(e,t){var r=function(r){e.prototype[r]=t[r]};return Object.keys(t).forEach(r),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach(r),e}Dr[Pr]=!0,Dr.withMutations=qe.withMutations,Dr.asMutable=qe.asMutable,Dr.asImmutable=qe.asImmutable,Dr.wasAltered=qe.wasAltered,r.Iterator=W,Tr(r,{toArray:function(){Ke(this.size);var e=new Array(this.size||0);return this.valueSeq().__iterate(function(t,r){e[r]=t}),e},toIndexedSeq:function(){return new Ut(this)},toJS:function(){return this.toSeq().map(function(e){return e&&"function"==typeof e.toJS?e.toJS():e}).__toJS()},toJSON:function(){return this.toSeq().map(function(e){return e&&"function"==typeof e.toJSON?e.toJSON():e}).__toJS()},toKeyedSeq:function(){return new Bt(this,!0)},toMap:function(){return We(this.toKeyedSeq())},toObject:function(){Ke(this.size);var e={};return this.__iterate(function(t,r){e[r]=t}),e},toOrderedMap:function(){return At(this.toKeyedSeq())},toOrderedSet:function(){return hr(o(this)?this.valueSeq():this)},toSet:function(){return or(o(this)?this.valueSeq():this)},toSetSeq:function(){return new St(this)},toSeq:function(){return s(this)?this.toIndexedSeq():o(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return Or(o(this)?this.valueSeq():this)},toList:function(){return dt(o(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(e,t){return 0===this.size?e+t:e+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+t},concat:function(){var t=e.call(arguments,0);return Jt(this,function(e,t){var r=o(e),_=[e].concat(t).map(function(e){return i(e)?r&&(e=n(e)):e=r?ie(e):oe(Array.isArray(e)?e:[e]),e}).filter(function(e){return 0!==e.size});if(0===_.length)return e;if(1===_.length){var a=_[0];if(a===e||r&&o(a)||s(e)&&s(a))return a}var l=new ee(_);return r?l=l.toKeyedSeq():s(e)||(l=l.toSetSeq()),(l=l.flatten(!0)).size=_.reduce(function(e,t){if(void 0!==e){var r=t.size;if(void 0!==r)return e+r}},0),l}(this,t))},includes:function(e){return this.some(function(t){return pe(t,e)})},entries:function(){return this.__iterator(B)},every:function(e,t){Ke(this.size);var r=!0;return this.__iterate(function(n,_,a){if(!e.call(t,n,_,a))return r=!1,!1}),r},filter:function(e,t){return Jt(this,Nt(this,e,t,!0))},find:function(e,t,r){var n=this.findEntry(e,t);return n?n[1]:r},findEntry:function(e,t){var r;return this.__iterate(function(n,_,a){if(e.call(t,n,_,a))return r=[_,n],!1}),r},findLastEntry:function(e,t){return this.toSeq().reverse().findEntry(e,t)},forEach:function(e,t){return Ke(this.size),this.__iterate(t?e.bind(t):e)},join:function(e){Ke(this.size),e=void 0!==e?""+e:",";var t="",r=!0;return this.__iterate(function(n){r?r=!1:t+=e,t+=null!==n&&void 0!==n?n.toString():""}),t},keys:function(){return this.__iterator(R)},map:function(e,t){return Jt(this,xt(this,e,t))},reduce:function(e,t,r){var n,_;return Ke(this.size),arguments.length<2?_=!0:n=t,this.__iterate(function(t,a,i){_?(_=!1,n=t):n=e.call(r,n,t,a,i)}),n},reduceRight:function(e,t,r){var n=this.toKeyedSeq().reverse();return n.reduce.apply(n,arguments)},reverse:function(){return Jt(this,jt(this,!0))},slice:function(e,t){return Jt(this,qt(this,e,t,!0))},some:function(e,t){return!this.every(Lr(e),t)},sort:function(e){return Jt(this,Ht(this,e))},values:function(){return this.__iterator(L)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some(function(){return!0})},count:function(e,t){return D(e?this.toSeq().filter(e,t):this)},countBy:function(e,t){return function(e,t,r){var n=We().asMutable();return e.__iterate(function(_,a){n.update(t.call(r,_,a,e),0,function(e){return e+1})}),n.asImmutable()}(this,e,t)},equals:function(e){return he(this,e)},entrySeq:function(){var e=this;if(e._cache)return new ee(e._cache);var t=e.toSeq().map(Rr).toIndexedSeq();return t.fromEntrySeq=function(){return e.toSeq()},t},filterNot:function(e,t){return this.filter(Lr(e),t)},findLast:function(e,t,r){return this.toKeyedSeq().reverse().find(e,t,r)},first:function(){return this.find(w)},flatMap:function(e,t){return Jt(this,function(e,t,r){var n=$t(e);return e.toSeq().map(function(_,a){return n(t.call(r,_,a,e))}).flatten(!0)}(this,e,t))},flatten:function(e){return Jt(this,Vt(this,e,!0))},fromEntrySeq:function(){return new Kt(this)},get:function(e,t){return this.find(function(t,r){return pe(r,e)},void 0,t)},getIn:function(e,t){for(var r,n=this,_=rr(e);!(r=_.next()).done;){var a=r.value;if((n=n&&n.get?n.get(a,g):g)===g)return t}return n},groupBy:function(e,t){return function(e,t,r){var n=o(e),_=(u(e)?At():We()).asMutable();e.__iterate(function(a,i){_.update(t.call(r,a,i,e),function(e){return(e=e||[]).push(n?[i,a]:a),e})});var a=$t(e);return _.map(function(t){return Jt(e,a(t))})}(this,e,t)},has:function(e){return this.get(e,g)!==g},hasIn:function(e){return this.getIn(e,g)!==g},isSubset:function(e){return e="function"==typeof e.includes?e:r(e),this.every(function(t){return e.includes(t)})},isSuperset:function(e){return(e="function"==typeof e.isSubset?e:r(e)).isSubset(this)},keySeq:function(){return this.toSeq().map(Ir).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},max:function(e){return zt(this,e)},maxBy:function(e,t){return zt(this,t,e)},min:function(e){return zt(this,e?Br(e):Kr)},minBy:function(e,t){return zt(this,t?Br(t):Kr,e)},rest:function(){return this.slice(1)},skip:function(e){return this.slice(Math.max(0,e))},skipLast:function(e){return Jt(this,this.toSeq().reverse().skip(e).reverse())},skipWhile:function(e,t){return Jt(this,Ft(this,e,t,!0))},skipUntil:function(e,t){return this.skipWhile(Lr(e),t)},sortBy:function(e,t){return Jt(this,Ht(this,t,e))},take:function(e){return this.slice(0,Math.max(0,e))},takeLast:function(e){return Jt(this,this.toSeq().reverse().take(e).reverse())},takeWhile:function(e,t){return Jt(this,function(e,t,r){var n=Zt(e);return n.__iterateUncached=function(n,_){var a=this;if(_)return this.cacheResult().__iterate(n,_);var i=0;return e.__iterate(function(e,_,o){return t.call(r,e,_,o)&&++i&&n(e,_,a)}),i},n.__iteratorUncached=function(n,_){var a=this;if(_)return this.cacheResult().__iterator(n,_);var i=e.__iterator(B,_),o=!0;return new W(function(){if(!o)return{value:void 0,done:!0};var e=i.next();if(e.done)return e;var _=e.value,s=_[0],l=_[1];return t.call(r,l,s,a)?n===B?e:x(n,s,l,e):(o=!1,{value:void 0,done:!0})})},n}(this,e,t))},takeUntil:function(e,t){return this.takeWhile(Lr(e),t)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=function(e){if(e.size===1/0)return 0;var t=u(e),r=o(e),n=t?1:0;return function(e,t){return t=Ce(t,3432918353),t=Ce(t<<15|t>>>-15,461845907),t=Ce(t<<13|t>>>-13,5),t=Ce((t=(t+3864292196|0)^e)^t>>>16,2246822507),t=Pe((t=Ce(t^t>>>13,3266489909))^t>>>16)}(e.__iterate(r?t?function(e,t){n=31*n+Wr(De(e),De(t))|0}:function(e,t){n=n+Wr(De(e),De(t))|0}:t?function(e){n=31*n+De(e)|0}:function(e){n=n+De(e)|0}),n)}(this))}});var Ar=r.prototype;Ar[c]=!0,Ar[K]=Ar.values,Ar.__toJS=Ar.toArray,Ar.__toStringMapper=Ur,Ar.inspect=Ar.toSource=function(){return this.toString()},Ar.chain=Ar.flatMap,Ar.contains=Ar.includes,function(){try{Object.defineProperty(Ar,"length",{get:function(){if(!r.noLengthWarning){var e;try{throw new Error}catch(t){e=t.stack}if(-1===e.indexOf("_wrapObject"))return console&&console.warn&&console.warn("iterable.length has been deprecated, use iterable.size or iterable.count(). This warning will become a silent error in a future version. "+e),this.size}}})}catch(e){}}(),Tr(n,{flip:function(){return Jt(this,Wt(this))},findKey:function(e,t){var r=this.findEntry(e,t);return r&&r[0]},findLastKey:function(e,t){return this.toSeq().reverse().findKey(e,t)},keyOf:function(e){return this.findKey(function(t){return pe(t,e)})},lastKeyOf:function(e){return this.findLastKey(function(t){return pe(t,e)})},mapEntries:function(e,t){var r=this,n=0;return Jt(this,this.toSeq().map(function(_,a){return e.call(t,[a,_],n++,r)}).fromEntrySeq())},mapKeys:function(e,t){var r=this;return Jt(this,this.toSeq().flip().map(function(n,_){return e.call(t,n,_,r)}).flip())}});var kr=n.prototype;function Ir(e,t){return t}function Rr(e,t){return[t,e]}function Lr(e){return function(){return!e.apply(this,arguments)}}function Br(e){return function(){return-e.apply(this,arguments)}}function Ur(e){return"string"==typeof e?JSON.stringify(e):e}function Sr(){return P(arguments)}function Kr(e,t){return et?-1:0}function Wr(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}return kr[d]=!0,kr[K]=Ar.entries,kr.__toJS=Ar.toObject,kr.__toStringMapper=function(e,t){return JSON.stringify(t)+": "+Ur(e)},Tr(_,{toKeyedSeq:function(){return new Bt(this,!1)},filter:function(e,t){return Jt(this,Nt(this,e,t,!1))},findIndex:function(e,t){var r=this.findEntry(e,t);return r?r[0]:-1},indexOf:function(e){var t=this.toKeyedSeq().keyOf(e);return void 0===t?-1:t},lastIndexOf:function(e){var t=this.toKeyedSeq().reverse().keyOf(e);return void 0===t?-1:t},reverse:function(){return Jt(this,jt(this,!1))},slice:function(e,t){return Jt(this,qt(this,e,t,!1))},splice:function(e,t){var r=arguments.length;if(t=Math.max(0|t,0),0===r||2===r&&!t)return this;e=A(e,e<0?this.count():this.size);var n=this.slice(0,e);return Jt(this,1===r?n:n.concat(P(arguments,2),this.slice(e+t)))},findLastIndex:function(e,t){var r=this.toKeyedSeq().findLastKey(e,t);return void 0===r?-1:r},first:function(){return this.get(0)},flatten:function(e){return Jt(this,Vt(this,e,!1))},get:function(e,t){return(e=y(this,e))<0||this.size===1/0||void 0!==this.size&&e>this.size?t:this.find(function(t,r){return r===e},void 0,t)},has:function(e){return(e=y(this,e))>=0&&(void 0!==this.size?this.size===1/0||e0)return _.getInlineStyleAt(n-1);if(_.getLength())return _.getInlineStyleAt(0);return E(e,r)}(t,r):function(e,t){var r=t.getStartKey(),n=t.getStartOffset(),_=e.getBlockForKey(r);if(n<_.getLength())return _.getInlineStyleAt(n);if(n>0)return _.getInlineStyleAt(n-1);return E(e,r)}(t,r)},e.prototype.getBlockTree=function(e){return this.getImmutable().getIn(["treeMap",e])},e.prototype.isSelectionAtStartOfContent=function(){var e=this.getCurrentContent().getBlockMap().first().getKey();return this.getSelection().hasEdgeWithin(e,0,0)},e.prototype.isSelectionAtEndOfContent=function(){var e=this.getCurrentContent().getBlockMap().last(),t=e.getLength();return this.getSelection().hasEdgeWithin(e.getKey(),t,t)},e.prototype.getDirectionMap=function(){return this.getImmutable().get("directionMap")},e.acceptSelection=function(e,t){return p(e,t,!1)},e.forceSelection=function(e,t){return t.getHasFocus()||(t=t.set("hasFocus",!0)),p(e,t,!0)},e.moveSelectionToEnd=function(t){var r=t.getCurrentContent().getLastBlock(),n=r.getKey(),_=r.getLength();return e.acceptSelection(t,new s({anchorKey:n,anchorOffset:_,focusKey:n,focusOffset:_,isBackward:!1}))},e.moveFocusToEnd=function(t){var r=e.moveSelectionToEnd(t);return e.forceSelection(r,r.getSelection())},e.push=function(t,r,n){if(t.getCurrentContent()===r)return t;var _="insert-characters"!==n,a=i.getDirectionMap(r,t.getDirectionMap());if(!t.getAllowUndo())return e.set(t,{currentContent:r,directionMap:a,lastChangeType:n,selection:r.getSelectionAfter(),forceSelection:_,inlineStyleOverride:null});var o=t.getSelection(),s=t.getCurrentContent(),l=t.getUndoStack(),u=r;o!==s.getSelectionAfter()||function(e,t){var r=e.getLastChangeType();return t!==r||"insert-characters"!==t&&"backspace-character"!==t&&"delete-character"!==t}(t,n)?(l=l.push(s),u=u.set("selectionBefore",o)):"insert-characters"!==n&&"backspace-character"!==n&&"delete-character"!==n||(u=u.set("selectionBefore",s.getSelectionBefore()));var d=t.getInlineStyleOverride();-1===["adjust-depth","change-block-type","split-block"].indexOf(n)&&(d=null);var f={currentContent:u,directionMap:a,undoStack:l,redoStack:c(),lastChangeType:n,selection:r.getSelectionAfter(),forceSelection:_,inlineStyleOverride:d};return e.set(t,f)},e.undo=function(t){if(!t.getAllowUndo())return t;var r=t.getUndoStack(),n=r.peek();if(!n)return t;var _=t.getCurrentContent(),a=i.getDirectionMap(n,t.getDirectionMap());return e.set(t,{currentContent:n,directionMap:a,undoStack:r.shift(),redoStack:t.getRedoStack().push(_),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"undo",nativelyRenderedContent:null,selection:_.getSelectionBefore()})},e.redo=function(t){if(!t.getAllowUndo())return t;var r=t.getRedoStack(),n=r.peek();if(!n)return t;var _=t.getCurrentContent(),a=i.getDirectionMap(n,t.getDirectionMap());return e.set(t,{currentContent:n,directionMap:a,undoStack:t.getUndoStack().push(_),redoStack:r.shift(),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"redo",nativelyRenderedContent:null,selection:n.getSelectionAfter()})},e.prototype.getImmutable=function(){return this._immutable},e}();function p(e,t,r){return f.set(e,{selection:t,forceSelection:r,nativelyRenderedContent:null,inlineStyleOverride:null})}function h(e,t){return e.getBlockMap().map(function(r){return _.generate(e,r,t)}).toOrderedMap()}function E(e,t){var r=e.getBlockMap().reverse().skipUntil(function(e,r){return r===t}).skip(1).skipUntil(function(e,t){return e.getLength()}).first();return r?r.getInlineStyleAt(r.getLength()-1):l()}e.exports=f},function(e,t,r){t.__esModule=!0,t.Helmet=void 0;var n=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r}var f=function(e){var t,r;return r=t=function(t){function r(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,t.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(r,t),r.prototype.shouldComponentUpdate=function(e){return!(0,s.default)(this.props,e)},r.prototype.mapNestedChildrenToProps=function(e,t){if(!t)return null;switch(e.type){case u.TAG_NAMES.SCRIPT:case u.TAG_NAMES.NOSCRIPT:return{innerHTML:t};case u.TAG_NAMES.STYLE:return{cssText:t}}throw new Error("<"+e.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")},r.prototype.flattenArrayTypeChildren=function(e){var t,r=e.child,_=e.arrayTypeChildren,a=e.newChildProps,i=e.nestedChildren;return n({},_,((t={})[r.type]=[].concat(_[r.type]||[],[n({},a,this.mapNestedChildrenToProps(r,i))]),t))},r.prototype.mapObjectTypeChildren=function(e){var t,r,_=e.child,a=e.newProps,i=e.newChildProps,o=e.nestedChildren;switch(_.type){case u.TAG_NAMES.TITLE:return n({},a,((t={})[_.type]=o,t.titleAttributes=n({},i),t));case u.TAG_NAMES.BODY:return n({},a,{bodyAttributes:n({},i)});case u.TAG_NAMES.HTML:return n({},a,{htmlAttributes:n({},i)})}return n({},a,((r={})[_.type]=n({},i),r))},r.prototype.mapArrayTypeChildrenToProps=function(e,t){var r=n({},t);return Object.keys(e).forEach(function(t){var _;r=n({},r,((_={})[t]=e[t],_))}),r},r.prototype.warnOnInvalidChildren=function(e,t){return!0},r.prototype.mapChildrenToProps=function(e,t){var r=this,n={};return a.default.Children.forEach(e,function(e){if(e&&e.props){var _=e.props,a=_.children,i=d(_,["children"]),o=(0,l.convertReactPropstoHtmlAttributes)(i);switch(r.warnOnInvalidChildren(e,a),e.type){case u.TAG_NAMES.LINK:case u.TAG_NAMES.META:case u.TAG_NAMES.NOSCRIPT:case u.TAG_NAMES.SCRIPT:case u.TAG_NAMES.STYLE:n=r.flattenArrayTypeChildren({child:e,arrayTypeChildren:n,newChildProps:o,nestedChildren:a});break;default:t=r.mapObjectTypeChildren({child:e,newProps:t,newChildProps:o,nestedChildren:a})}}}),t=this.mapArrayTypeChildrenToProps(n,t)},r.prototype.render=function(){var t=this.props,r=t.children,_=d(t,["children"]),i=n({},_);return r&&(i=this.mapChildrenToProps(r,i)),a.default.createElement(e,i)},_(r,null,[{key:"canUseDOM",set:function(t){e.canUseDOM=t}}]),r}(a.default.Component),t.propTypes={base:i.default.object,bodyAttributes:i.default.object,children:i.default.oneOfType([i.default.arrayOf(i.default.node),i.default.node]),defaultTitle:i.default.string,defer:i.default.bool,encodeSpecialCharacters:i.default.bool,htmlAttributes:i.default.object,link:i.default.arrayOf(i.default.object),meta:i.default.arrayOf(i.default.object),noscript:i.default.arrayOf(i.default.object),onChangeClientState:i.default.func,script:i.default.arrayOf(i.default.object),style:i.default.arrayOf(i.default.object),title:i.default.string,titleAttributes:i.default.object,titleTemplate:i.default.string},t.defaultProps={defer:!0,encodeSpecialCharacters:!0},t.peek=e.peek,t.rewind=function(){var t=e.rewind();return t||(t=(0,l.mapStateOnServer)({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),t},r}((0,o.default)(l.reducePropsToState,l.handleClientStateChange,l.mapStateOnServer)(function(){return null}));f.renderStatic=f.rewind,t.Helmet=f,t.default=f},function(e,t,r){"use strict"; /* object-assign (c) Sindre Sorhus @license MIT -*/var n=Object.getOwnPropertySymbols,_=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach(function(e){n[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var r,i,o=function(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),s=1;s0&&void 0!==arguments[0]?arguments[0]:S,a=arguments.length>1?arguments[1]:void 0;switch(a.type){case f:e=a.items,t=a.itemsDraft;var i=!0,o=!1,u=void 0;try{for(var d,P=e[Symbol.iterator]();!(i=(d=P.next()).done);i=!0){d.value.postInit(e)}}catch(e){o=!0,u=e}finally{try{i||null==P.return||P.return()}finally{if(o)throw u}}var D=!0,y=!1,w=void 0;try{for(var T,A=t[Symbol.iterator]();!(D=(T=A.next()).done);D=!0){T.value.postInit(e)}}catch(e){y=!0,w=e}finally{try{D||null==A.return||A.return()}finally{if(y)throw w}}var k=!0,I=!1,R=void 0;try{for(var L,B=t[Symbol.iterator]();!(k=(L=B.next()).done);k=!0){var U=L.value,K=U.origin.get("t__owner"),W=!0,x=!1,j=void 0;try{for(var N,q=e[Symbol.iterator]();!(W=(N=q.next()).done);W=!0){var F=N.value;if(F.origin.id==K.id){F.draft=U,U.owner=F;break}}}catch(e){x=!0,j=e}finally{try{W||null==q.return||q.return()}finally{if(x)throw j}}}}catch(e){I=!0,R=e}finally{try{k||null==B.return||B.return()}finally{if(I)throw R}}return _()({},n,{items:e,itemsDraft:t});case O:return _()({},n,{currentItem:a.currentItem});case p:return(e=n.items).push(a.item),_()({},n,{items:e});case h:case m:case g:case b:return _()({},n);case E:return a.isNewDraft?((t=n.itemsDraft).push(a.item.draft),_()({},n,{itemsDraft:t})):_()({},n);case v:var V=a.item;return e=n.items,t=n.itemsDraft,e.splice(e.indexOf(V),1),V.draft&&t.splice(t.indexOf(V.draft),1),_()({},n,{items:e,itemsDraft:t});case M:var H=n.filteredModels,z=new Set(H);return H.has(a.model)?z.delete(a.model):z.add(a.model),_()({},n,{filteredModels:z});case C:var G=n.filteredStatuses,Y=new Set(G);return G.has(a.status)?Y.delete(a.status):Y.add(a.status),_()({},n,{filteredStatuses:Y});case s.e:e=n.items,t=n.itemsDraft,r=Object(c.r)(a.model,e);var J=!0,X=!1,Q=void 0;try{for(var $,Z=r[Symbol.iterator]();!(J=($=Z.next()).done);J=!0){var ee=$.value;e.splice(e.indexOf(ee),1),ee.draft&&t.splice(t.indexOf(ee.draft),1)}}catch(e){X=!0,Q=e}finally{try{J||null==Z.return||Z.return()}finally{if(X)throw Q}}return _()({},n,{items:e,itemsDraft:t});case s.f:e=n.items,t=n.itemsDraft,r=Object(c.s)(a.site,e);var te=!0,re=!1,ne=void 0;try{for(var _e,ae=r[Symbol.iterator]();!(te=(_e=ae.next()).done);te=!0){var ie=_e.value;e.splice(e.indexOf(ie),1),ie.draft&&t.splice(t.indexOf(ie.draft),1)}}catch(e){re=!0,ne=e}finally{try{te||null==ae.return||ae.return()}finally{if(re)throw ne}}return _()({},n,{items:e,itemsDraft:t});case s.a:case s.c:case s.b:e=n.items,t=n.itemsDraft;var oe=a.field.model,se=!0,le=!1,ue=void 0;try{for(var ce,de=e[Symbol.iterator]();!(se=(ce=de.next()).done);se=!0){var fe=ce.value;fe.model==oe&&(fe.model=oe)}}catch(e){le=!0,ue=e}finally{try{se||null==de.return||de.return()}finally{if(le)throw ue}}var pe=!0,he=!1,Ee=void 0;try{for(var me,ge=t[Symbol.iterator]();!(pe=(me=ge.next()).done);pe=!0){var be=me.value;be.model==oe&&(be.model=oe)}}catch(e){he=!0,Ee=e}finally{try{pe||null==ge.return||ge.return()}finally{if(he)throw Ee}}return _()({},n,{items:e,itemsDraft:t});case l.f:return _()({},n,{currentItem:null});default:return n}}!function(){var t=r(1).default,n=r(1).leaveModule;t&&(t.register(f,"INIT_END","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/content.js"),t.register(p,"ITEM_ADD","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/content.js"),t.register(h,"ITEM_UPDATE","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/content.js"),t.register(E,"ITEM_PUBLISH","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/content.js"),t.register(m,"ITEM_DISCARD","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/content.js"),t.register(g,"ITEM_ARCHIVE","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/content.js"),t.register(b,"ITEM_RESTORE","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/content.js"),t.register(v,"ITEM_DELETE","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/content.js"),t.register(O,"SET_CURRENT_ITEM","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/content.js"),t.register(M,"FILTER_MODEL","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/content.js"),t.register(C,"FILTER_STATUS","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/content.js"),t.register(P,"requestContentItems","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/content.js"),t.register(D,"init","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/content.js"),t.register(y,"addItem","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/content.js"),t.register(w,"updateItem","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/content.js"),t.register(T,"publishItem","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/content.js"),t.register(A,"discardItem","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/content.js"),t.register(k,"archiveItem","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/content.js"),t.register(I,"restoreItem","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/content.js"),t.register(R,"setCurrentItem","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/content.js"),t.register(L,"deleteItem","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/content.js"),t.register(B,"filterModel","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/content.js"),t.register(U,"filterStatus","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/content.js"),t.register(S,"initialState","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/content.js"),t.register(K,"contentReducer","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/content.js"),n(e))}()}).call(this,r(12)(e))},function(e,t){function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function n(t){return"function"==typeof Symbol&&"symbol"===r(Symbol.iterator)?e.exports=n=function(e){return r(e)}:e.exports=n=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":r(e)},n(t)}e.exports=n},function(e,t){var r=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=r)},function(e,t,r){for(var n=r(76),_=r(105),a=r(71),i=r(42),o=r(84),s=r(122),l=r(36),u=l("iterator"),c=l("toStringTag"),d=s.Array,f={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},p=_(f),h=0;h-1)throw new Error("Cannot modify readonly attribute: "+o);r.unset?_[o]=new b.UnsetOp:n[o]instanceof b.Op?_[o]=n[o]:n[o]&&"object"===(0,a.default)(n[o])&&"string"==typeof n[o].__op?_[o]=(0,b.opFromJSON)(n[o]):"objectId"===o||"id"===o?"string"==typeof n[o]&&(this.id=n[o]):"ACL"!==o||"object"!==(0,a.default)(n[o])||n[o]instanceof p.default?_[o]=new b.SetOp(n[o]):_[o]=new b.SetOp(new p.default(n[o]))}var s=this.attributes,u={};for(var c in _)_[c]instanceof b.RelationOp?u[c]=_[c].applyTo(s[c],this,c):_[c]instanceof b.UnsetOp||(u[c]=_[c].applyTo(s[c]));if(!r.ignoreValidation){var d=this.validate(u);if(d)return"function"==typeof r.error&&r.error(this,d),!1}var f=this._getPendingOps(),h=f.length-1,E=l.default.getObjectStateController();for(var m in _){var g=_[m].mergeWith(f[h][m]);E.setPendingOp(this._getStateIdentifier(),m,g)}return this}},{key:"unset",value:function(e,t){return(t=t||{}).unset=!0,this.set(e,null,t)}},{key:"increment",value:function(e,t){if(void 0===t&&(t=1),"number"!=typeof t)throw new Error("Cannot increment by a non-numeric amount.");return this.set(e,new b.IncrementOp(t))}},{key:"add",value:function(e,t){return this.set(e,new b.AddOp([t]))}},{key:"addAll",value:function(e,t){return this.set(e,new b.AddOp(t))}},{key:"addUnique",value:function(e,t){return this.set(e,new b.AddUniqueOp([t]))}},{key:"addAllUnique",value:function(e,t){return this.set(e,new b.AddUniqueOp(t))}},{key:"remove",value:function(e,t){return this.set(e,new b.RemoveOp([t]))}},{key:"removeAll",value:function(e,t){return this.set(e,new b.RemoveOp(t))}},{key:"op",value:function(e){for(var t=this._getPendingOps(),r=t.length;r--;)if(t[r][e])return t[r][e]}},{key:"clone",value:function(){var e=new this.constructor;e.className||(e.className=this.className);var t=this.attributes;if("function"==typeof this.constructor.readOnlyAttributes){var r=this.constructor.readOnlyAttributes()||[],n={};for(var _ in t)r.indexOf(_)<0&&(n[_]=t[_]);t=n}return e.set&&e.set(t),e}},{key:"newInstance",value:function(){var e=new this.constructor;if(e.className||(e.className=this.className),e.id=this.id,A)return e;var t=l.default.getObjectStateController();return t&&t.duplicateState(this._getStateIdentifier(),e._getStateIdentifier()),e}},{key:"isNew",value:function(){return!this.id}},{key:"existed",value:function(){if(!this.id)return!1;var e=l.default.getObjectStateController().getState(this._getStateIdentifier());return!!e&&e.existed}},{key:"isValid",value:function(){return!this.validate(this.attributes)}},{key:"validate",value:function(e){if(e.hasOwnProperty("ACL")&&!(e.ACL instanceof p.default))return new E.default(E.default.OTHER_CAUSE,"ACL must be a Parse ACL.");for(var t in e)if(!/^[A-Za-z][0-9A-Za-z_]*$/.test(t))return new E.default(E.default.INVALID_KEY_NAME);return!1}},{key:"getACL",value:function(){var e=this.get("ACL");return e instanceof p.default?e:null}},{key:"setACL",value:function(e,t){return this.set("ACL",e,t)}},{key:"revert",value:function(){this._clearPendingOps()}},{key:"clear",value:function(){var e=this.attributes,t={},r=["createdAt","updatedAt"];for(var n in"function"==typeof this.constructor.readOnlyAttributes&&(r=r.concat(this.constructor.readOnlyAttributes())),e)r.indexOf(n)<0&&(t[n]=!0);return this.set(t,{unset:!0})}},{key:"fetch",value:function(e){var t={};return(e=e||{}).hasOwnProperty("useMasterKey")&&(t.useMasterKey=e.useMasterKey),e.hasOwnProperty("sessionToken")&&(t.sessionToken=e.sessionToken),e.hasOwnProperty("include")&&(t.include=[],Array.isArray(e.include)?e.include.forEach(function(e){Array.isArray(e)?t.include=t.include.concat(e):t.include.push(e)}):t.include.push(e.include)),l.default.getObjectController().fetch(this,!0,t)}},{key:"fetchWithInclude",value:function(e,t){return(t=t||{}).include=e,this.fetch(t)}},{key:"save",value:function(e,t,r){var n,_,i=this;if("object"===(0,a.default)(e)||void 0===e?(n=e,"object"===(0,a.default)(t)&&(_=t)):((n={})[e]=t,_=r),!_&&n&&(_={},"function"==typeof n.success&&(_.success=n.success,delete n.success),"function"==typeof n.error&&(_.error=n.error,delete n.error)),n){var o=this.validate(n);if(o)return _&&"function"==typeof _.error&&_.error(this,o),Promise.reject(o);this.set(n,_)}var s={};(_=_||{}).hasOwnProperty("useMasterKey")&&(s.useMasterKey=!!_.useMasterKey),_.hasOwnProperty("sessionToken")&&"string"==typeof _.sessionToken&&(s.sessionToken=_.sessionToken);var u=l.default.getObjectController(),c=(0,D.default)(this);return u.save(c,s).then(function(){return u.save(i,s)})}},{key:"destroy",value:function(e){var t={};return(e=e||{}).hasOwnProperty("useMasterKey")&&(t.useMasterKey=e.useMasterKey),e.hasOwnProperty("sessionToken")&&(t.sessionToken=e.sessionToken),this.id?l.default.getObjectController().destroy(this,t):Promise.resolve()}},{key:"attributes",get:function(){var e=l.default.getObjectStateController();return Object.freeze(e.estimateAttributes(this._getStateIdentifier()))}},{key:"createdAt",get:function(){return this._getServerData().createdAt}},{key:"updatedAt",get:function(){return this._getServerData().updatedAt}}],[{key:"_clearAllState",value:function(){l.default.getObjectStateController().clearAllState()}},{key:"fetchAll",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={};return t.hasOwnProperty("useMasterKey")&&(r.useMasterKey=t.useMasterKey),t.hasOwnProperty("sessionToken")&&(r.sessionToken=t.sessionToken),t.hasOwnProperty("include")&&(r.include=[],Array.isArray(t.include)?t.include.forEach(function(e){Array.isArray(e)?r.include=r.include.concat(e):r.include.push(e)}):r.include.push(t.include)),l.default.getObjectController().fetch(e,!0,r)}},{key:"fetchAllWithInclude",value:function(t,r,n){return(n=n||{}).include=r,e.fetchAll(t,n)}},{key:"fetchAllIfNeeded",value:function(e,t){var r={};return(t=t||{}).hasOwnProperty("useMasterKey")&&(r.useMasterKey=t.useMasterKey),t.hasOwnProperty("sessionToken")&&(r.sessionToken=t.sessionToken),l.default.getObjectController().fetch(e,!1,r)}},{key:"destroyAll",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={};return t.hasOwnProperty("useMasterKey")&&(r.useMasterKey=t.useMasterKey),t.hasOwnProperty("sessionToken")&&(r.sessionToken=t.sessionToken),l.default.getObjectController().destroy(e,r)}},{key:"saveAll",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={};return t.hasOwnProperty("useMasterKey")&&(r.useMasterKey=t.useMasterKey),t.hasOwnProperty("sessionToken")&&(r.sessionToken=t.sessionToken),l.default.getObjectController().save(e,r)}},{key:"createWithoutData",value:function(e){var t=new this;return t.id=e,t}},{key:"fromJSON",value:function(t,r){if(!t.className)throw new Error("Cannot create an object without a className");var n=y[t.className],_=n?new n:new e(t.className),a={};for(var i in t)"className"!==i&&"__type"!==i&&(a[i]=t[i]);if(r){a.objectId&&(_.id=a.objectId);var o=null;"function"==typeof _._preserveFieldsOnFetch&&(o=_._preserveFieldsOnFetch()),_._clearServerData(),o&&_._finishFetch(o)}return _._finishFetch(a),t.objectId&&_._setExisted(!0),_}},{key:"registerSubclass",value:function(e,t){if("string"!=typeof e)throw new TypeError("The first argument must be a valid class name.");if(void 0===t)throw new TypeError("You must supply a subclass constructor.");if("function"!=typeof t)throw new TypeError("You must register the subclass constructor. Did you attempt to register an instance of the subclass?");y[e]=t,t.className||(t.className=e)}},{key:"extend",value:function(t,r,n){if("string"!=typeof t){if(t&&"string"==typeof t.className)return e.extend(t.className,t,r);throw new Error("Parse.Object.extend's first argument should be the className.")}var _=t;"User"===_&&l.default.get("PERFORM_USER_REWRITE")&&(_="_User");var i=e.prototype;this.hasOwnProperty("__super__")&&this.__super__?i=this.prototype:y[_]&&(i=y[_].prototype);var o=function(e,t){if(this.className=_,this._objCount=T++,"function"==typeof this.initialize&&this.initialize.apply(this,arguments),e&&"object"===(0,a.default)(e)&&!this.set(e||{},t))throw new Error("Can't create an invalid Parse Object")};if(o.className=_,o.__super__=i,o.prototype=Object.create(i,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),r)for(var s in r)"className"!==s&&Object.defineProperty(o.prototype,s,{value:r[s],enumerable:!1,writable:!0,configurable:!0});if(n)for(var u in n)"className"!==u&&Object.defineProperty(o,u,{value:n[u],enumerable:!1,writable:!0,configurable:!0});return o.extend=function(t,r,n){return"string"==typeof t?e.extend.call(o,t,r,n):e.extend.call(o,_,t,r)},o.createWithoutData=e.createWithoutData,y[_]=o,o}},{key:"enableSingleInstance",value:function(){A=!0,l.default.setObjectStateController(M)}},{key:"disableSingleInstance",value:function(){A=!1,l.default.setObjectStateController(P)}}]),e}(),R={fetch:function(e,t,r){if(Array.isArray(e)){if(e.length<1)return Promise.resolve([]);var n=[],_=[],a=null,i=[],o=null;if(e.forEach(function(e){o||(a||(a=e.className),a!==e.className&&(o=new E.default(E.default.INVALID_CLASS_NAME,"All objects should be of the same class")),e.id||(o=new E.default(E.default.MISSING_OBJECT_ID,"All objects must have an ID")),(t||0===Object.keys(e._getServerData()).length)&&(_.push(e.id),n.push(e)),i.push(e))}),o)return Promise.reject(o);var s=new v.default(a);return s.containedIn("objectId",_),r&&r.include&&s.include(r.include),s._limit=_.length,s.find(r).then(function(e){var r={};e.forEach(function(e){r[e.id]=e});for(var _=0;_=20&&n.push([]))}),0===n[n.length-1].length&&n.pop();var _=Promise.resolve(),a=[];return n.forEach(function(e){_=_.then(function(){return r.request("POST","batch",{requests:e.map(function(e){return{method:"DELETE",path:k()+"classes/"+e.className+"/"+e._getId(),body:{}}})},t).then(function(t){for(var r=0;r0},function(){var e,a,i=[],s=[];if(o.forEach(function(e){i.length<20&&(0,u.default)(e)?i.push(e):s.push(e)}),o=s,i.length<1)return Promise.reject(new E.default(E.default.OTHER_CAUSE,"Tried to save a batch with a cycle."));var l=new Promise(function(t,r){e=t,a=r});l.resolve=e,l.reject=a;var c=[],d=[];return i.forEach(function(e,t){var r,a,i=new Promise(function(e,t){r=e,a=t});i.resolve=r,i.reject=a,c.push(i),n.pushPendingState(e._getStateIdentifier()),d.push(n.enqueueTask(e._getStateIdentifier(),function(){return i.resolve(),l.then(function(r,n){if(r[t].hasOwnProperty("success"))e._handleSaveResponse(r[t].success,n);else{if(!_&&r[t].hasOwnProperty("error")){var a=r[t].error;_=new E.default(a.code,a.error),o=[]}e._handleSaveError()}})}))}),(0,g.when)(c).then(function(){return r.request("POST","batch",{requests:i.map(function(e){var t=e._getSaveParams();return t.path=k()+t.path,t})},t)}).then(function(e,t){l.resolve(e,t)},function(e){l.reject(new E.default(E.default.INCORRECT_TYPE,e.message))}),(0,g.when)(d)}).then(function(){return _?Promise.reject(_):Promise.resolve(e)})})}if(e instanceof I){var s=e;return n.pushPendingState(e._getStateIdentifier()),n.enqueueTask(e._getStateIdentifier(),function(){var e=s._getSaveParams();return r.request(e.method,e.path,e.body,t).then(function(e,t){s._handleSaveResponse(e,t)},function(e){return s._handleSaveError(),Promise.reject(e)})}).then(function(){return e},function(e){return Promise.reject(e)})}return Promise.resolve()}};l.default.setObjectController(R);var L=I;t.default=L},function(e,t,r){"use strict";(function(t){var r={IS_NODE:void 0!==t&&!!t.versions&&!!t.versions.node&&!t.versions.electron,REQUEST_ATTEMPT_LIMIT:5,SERVER_URL:"https://api.parse.com/1",LIVEQUERY_SERVER_URL:null,VERSION:"js2.1.0",APPLICATION_ID:null,JAVASCRIPT_KEY:null,MASTER_KEY:null,USE_MASTER_KEY:!1,PERFORM_USER_REWRITE:!0,FORCE_REVOCABLE_SESSION:!1};function n(e,t,r){t.forEach(function(t){if("function"!=typeof r[t])throw new Error("".concat(e," must implement ").concat(t,"()"))})}e.exports={get:function(e){if(r.hasOwnProperty(e))return r[e];throw new Error("Configuration key not found: "+e)},set:function(e,t){r[e]=t},setAnalyticsController:function(e){n("AnalyticsController",["track"],e),r.AnalyticsController=e},getAnalyticsController:function(){return r.AnalyticsController},setCloudController:function(e){n("CloudController",["run","getJobsData","startJob"],e),r.CloudController=e},getCloudController:function(){return r.CloudController},setConfigController:function(e){n("ConfigController",["current","get"],e),r.ConfigController=e},getConfigController:function(){return r.ConfigController},setFileController:function(e){n("FileController",["saveFile","saveBase64"],e),r.FileController=e},getFileController:function(){return r.FileController},setInstallationController:function(e){n("InstallationController",["currentInstallationId"],e),r.InstallationController=e},getInstallationController:function(){return r.InstallationController},setObjectController:function(e){n("ObjectController",["save","fetch","destroy"],e),r.ObjectController=e},getObjectController:function(){return r.ObjectController},setObjectStateController:function(e){n("ObjectStateController",["getState","initializeState","removeState","getServerData","setServerData","getPendingOps","setPendingOp","pushPendingState","popPendingState","mergeFirstPendingState","getObjectCache","estimateAttribute","estimateAttributes","commitServerChanges","enqueueTask","clearAllState"],e),r.ObjectStateController=e},getObjectStateController:function(){return r.ObjectStateController},setPushController:function(e){n("PushController",["send"],e),r.PushController=e},getPushController:function(){return r.PushController},setQueryController:function(e){n("QueryController",["find","aggregate"],e),r.QueryController=e},getQueryController:function(){return r.QueryController},setRESTController:function(e){n("RESTController",["request","ajax"],e),r.RESTController=e},getRESTController:function(){return r.RESTController},setSchemaController:function(e){n("SchemaController",["get","create","update","delete","send","purge"],e),r.SchemaController=e},getSchemaController:function(){return r.SchemaController},setSessionController:function(e){n("SessionController",["getSession"],e),r.SessionController=e},getSessionController:function(){return r.SessionController},setStorageController:function(e){e.async?n("An async StorageController",["getItemAsync","setItemAsync","removeItemAsync"],e):n("A synchronous StorageController",["getItem","setItem","removeItem"],e),r.StorageController=e},getStorageController:function(){return r.StorageController},setAsyncStorage:function(e){r.AsyncStorage=e},getAsyncStorage:function(){return r.AsyncStorage},setUserController:function(e){n("UserController",["setCurrentUser","currentUser","currentUserAsync","signUp","logIn","become","logOut","requestPasswordReset","upgradeToRevocableSession","linkWith"],e),r.UserController=e},getUserController:function(){return r.UserController},setLiveQueryController:function(e){n("LiveQueryController",["subscribe","unsubscribe","open","close"],e),r.LiveQueryController=e},getLiveQueryController:function(){return r.LiveQueryController},setHooksController:function(e){n("HooksController",["create","get","update","remove"],e),r.HooksController=e},getHooksController:function(){return r.HooksController}}}).call(this,r(131))},function(e,t,r){"use strict";function n(e){for(var r in e)t.hasOwnProperty(r)||(t[r]=e[r])}Object.defineProperty(t,"__esModule",{value:!0}),n(r(329)),n(r(226)),n(r(330)),n(r(696)),n(r(697)),n(r(698)),n(r(699))},function(e,t){var r;r=function(){return this}();try{r=r||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(r=window)}e.exports=r},function(e,t,r){"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=r(394)},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,r){r(286)("asyncIterator")},function(e,t,r){"use strict";var n=r(42),_=r(96),a=r(64),i=r(44),o=r(71),s=r(205).KEY,l=r(51),u=r(189),c=r(126),d=r(120),f=r(36),p=r(287),h=r(286),E=r(563),m=r(274),g=r(67),b=r(57),v=r(95),O=r(188),M=r(121),C=r(192),P=r(564),D=r(285),y=r(63),w=r(105),T=D.f,A=y.f,k=P.f,I=n.Symbol,R=n.JSON,L=R&&R.stringify,B=f("_hidden"),U=f("toPrimitive"),S={}.propertyIsEnumerable,K=u("symbol-registry"),W=u("symbols"),x=u("op-symbols"),j=Object.prototype,N="function"==typeof I,q=n.QObject,F=!q||!q.prototype||!q.prototype.findChild,V=a&&l(function(){return 7!=C(A({},"a",{get:function(){return A(this,"a",{value:7}).a}})).a})?function(e,t,r){var n=T(j,t);n&&delete j[t],A(e,t,r),n&&e!==j&&A(j,t,n)}:A,H=function(e){var t=W[e]=C(I.prototype);return t._k=e,t},z=N&&"symbol"==typeof I.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof I},G=function(e,t,r){return e===j&&G(x,t,r),g(e),t=O(t,!0),g(r),_(W,t)?(r.enumerable?(_(e,B)&&e[B][t]&&(e[B][t]=!1),r=C(r,{enumerable:M(0,!1)})):(_(e,B)||A(e,B,M(1,{})),e[B][t]=!0),V(e,t,r)):A(e,t,r)},Y=function(e,t){g(e);for(var r,n=E(t=v(t)),_=0,a=n.length;a>_;)G(e,r=n[_++],t[r]);return e},J=function(e){var t=S.call(this,e=O(e,!0));return!(this===j&&_(W,e)&&!_(x,e))&&(!(t||!_(this,e)||!_(W,e)||_(this,B)&&this[B][e])||t)},X=function(e,t){if(e=v(e),t=O(t,!0),e!==j||!_(W,t)||_(x,t)){var r=T(e,t);return!r||!_(W,t)||_(e,B)&&e[B][t]||(r.enumerable=!0),r}},Q=function(e){for(var t,r=k(v(e)),n=[],a=0;r.length>a;)_(W,t=r[a++])||t==B||t==s||n.push(t);return n},$=function(e){for(var t,r=e===j,n=k(r?x:v(e)),a=[],i=0;n.length>i;)!_(W,t=n[i++])||r&&!_(j,t)||a.push(W[t]);return a};N||(o((I=function(){if(this instanceof I)throw TypeError("Symbol is not a constructor!");var e=d(arguments.length>0?arguments[0]:void 0),t=function(r){this===j&&t.call(x,r),_(this,B)&&_(this[B],e)&&(this[B][e]=!1),V(this,e,M(1,r))};return a&&F&&V(j,e,{configurable:!0,set:t}),H(e)}).prototype,"toString",function(){return this._k}),D.f=X,y.f=G,r(207).f=P.f=Q,r(161).f=J,r(197).f=$,a&&!r(119)&&o(j,"propertyIsEnumerable",J,!0),p.f=function(e){return H(f(e))}),i(i.G+i.W+i.F*!N,{Symbol:I});for(var Z="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ee=0;Z.length>ee;)f(Z[ee++]);for(var te=w(f.store),re=0;te.length>re;)h(te[re++]);i(i.S+i.F*!N,"Symbol",{for:function(e){return _(K,e+="")?K[e]:K[e]=I(e)},keyFor:function(e){if(!z(e))throw TypeError(e+" is not a symbol!");for(var t in K)if(K[t]===e)return t},useSetter:function(){F=!0},useSimple:function(){F=!1}}),i(i.S+i.F*!N,"Object",{create:function(e,t){return void 0===t?C(e):Y(C(e),t)},defineProperty:G,defineProperties:Y,getOwnPropertyDescriptor:X,getOwnPropertyNames:Q,getOwnPropertySymbols:$}),R&&i(i.S+i.F*(!N||l(function(){var e=I();return"[null]"!=L([e])||"{}"!=L({a:e})||"{}"!=L(Object(e))})),"JSON",{stringify:function(e){for(var t,r,n=[e],_=1;arguments.length>_;)n.push(arguments[_++]);if(r=t=n[1],(b(t)||void 0!==e)&&!z(e))return m(t)||(t=function(e,t){if("function"==typeof r&&(t=r.call(this,e,t)),!z(t))return t}),n[1]=t,L.apply(R,n)}}),I.prototype[U]||r(84)(I.prototype,U,I.prototype.valueOf),c(I,"Symbol"),c(Math,"Math",!0),c(n.JSON,"JSON",!0)},function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(_,a){function i(e){try{s(n.next(e))}catch(e){a(e)}}function o(e){try{s(n.throw(e))}catch(e){a(e)}}function s(e){e.done?_(e.value):new r(function(t){t(e.value)}).then(i,o)}s((n=n.apply(e,t||[])).next())})},_=this&&this.__generator||function(e,t){var r,n,_,a,i={label:0,sent:function(){if(1&_[0])throw _[1];return _[1]},trys:[],ops:[]};return a={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function o(a){return function(o){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;i;)try{if(r=1,n&&(_=n[2&a[0]?"return":a[0]?"throw":"next"])&&!(_=_.call(n,a[1])).done)return _;switch(n=0,_&&(a=[0,_.value]),a[0]){case 0:case 1:_=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,n=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!(_=(_=i.trys).length>0&&_[_.length-1])&&(6===a[0]||2===a[0])){i=0;continue}if(3===a[0]&&(!_||a[1]>_[0]&&a[1]<_[3])){i.label=a[1];break}if(6===a[0]&&i.label<_[1]){i.label=_[1],_=a;break}if(_&&i.label<_[2]){i.label=_[2],i.ops.push(a);break}_[2]&&i.ops.pop(),i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e],n=0}finally{r=_=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,o])}}};Object.defineProperty(t,"__esModule",{value:!0});var a=r(212);function i(e,t){for(var r,n=0,_=t;r=e.getCurrentContent().getBlockBefore(_);)n+=r.getText().length+1,_=r.getKey();return n}function o(e){var t=e.getSelection(),r=t.getStartKey(),n=t.getStartOffset(),_=t.getEndKey(),a=t.getEndOffset(),o=i(e,r);return{start:n+o,end:n+s(e,r,n,_,a)+o}}function s(e,t,r,n,_){if(t===n)return _-r;for(var a,i=e.getCurrentContent().getBlockForKey(t).getText().length-r,o=t;(a=e.getCurrentContent().getBlockAfter(o))&&a.getKey()!==n;)i+=a.getText().length+1,o=a.getKey();return i+=_+1}function l(e){return e.getCurrentContent().getPlainText("\n")}t.getContentLengthOfAllBlocksBefore=i,t.getSelection=o,t.getContentLengthBetween=s,t.getPlainText=l;var u=function(e,t,r,n,_){return!t||er+t.getText().length?u(e,_.getBlockAfter(t.getKey()),r+t.getText().length+1,0,_):{block:t,globalOffset:r,blockOffset:e-r}};function c(e,t){var r=e.getFirstBlock();if(null===r)return null;var n=u(t.start,r,0,0,e);if(null===n)return null;var _=u(t.end,n.block,n.globalOffset,n.blockOffset,e);return null===_?null:a.SelectionState.createEmpty(n.block.getKey()).merge({anchorKey:n.block.getKey(),anchorOffset:n.blockOffset,focusKey:_.block.getKey(),focusOffset:_.blockOffset})}function d(e,t){var r=t.text,n=t.selection,_=a.ContentState.createFromText(r),i=a.EditorState.forceSelection(e,e.getSelection());i=a.EditorState.push(i,_,"insert-characters");var o=n?c(i.getCurrentContent(),n):e.getSelection();return a.EditorState.forceSelection(i,o)}t.buildSelectionState=c,t.getMarkdownStateFromDraftState=function(e){return{text:l(e),selection:o(e)}},t.getMdeStateFromDraftState=function(e,t){return n(this,void 0,void 0,function(){var r,n;return _(this,function(_){switch(_.label){case 0:return r=l(e),t?[4,t(r)]:[3,2];case 1:return n=_.sent(),[3,3];case 2:n="",_.label=3;case 3:return[2,{html:n,markdown:r,draftEditorState:e}]}})})},t.buildNewDraftState=d,t.buildNewMdeState=function(e,t,r,a){return void 0===a&&(a=null),n(this,void 0,void 0,function(){var n,i;return _(this,function(_){switch(_.label){case 0:return n=d(e.draftEditorState,{text:r,selection:a}),t?[4,t(r)]:[3,2];case 1:return i=_.sent(),[3,3];case 2:i="",_.label=3;case 3:return[2,{html:i,markdown:r,draftEditorState:n}]}})})}},function(e,t,r){"use strict";var n=r(61),_=r(609),a=r(89),i=r(30),o=r(610),s=r(612),l=r(167),u=r(615),c=r(616),d=r(29),f=r(617),p=r(304),h=r(618),E=r(619),m=i.OrderedSet,g={replaceText:function(e,t,r,_,a){var i=p(e,t),o=h(i,t),s=n.create({style:_||m(),entity:a||null});return c(o,o.getSelectionAfter(),r,s)},insertText:function(e,t,r,n,_){return t.isCollapsed()||d(!1),g.replaceText(e,t,r,n,_)},moveText:function(e,t,r){var n=l(e,t),_=g.removeRange(e,t,"backward");return g.replaceWithFragment(_,r,n)},replaceWithFragment:function(e,t,r){var n=p(e,t),_=h(n,t);return u(_,_.getSelectionAfter(),r)},removeRange:function(e,t,r){var n,_,i=void 0,o=void 0;t.getIsBackward()&&(t=t.merge({anchorKey:t.getFocusKey(),anchorOffset:t.getFocusOffset(),focusKey:t.getAnchorKey(),focusOffset:t.getAnchorOffset(),isBackward:!1})),n=t.getAnchorKey(),_=t.getFocusKey(),i=e.getBlockForKey(n),o=e.getBlockForKey(_);var l=t.getStartOffset(),u=t.getEndOffset(),c=i.getEntityAt(l),d=o.getEntityAt(u-1);if(n===_&&c&&c===d){var f=s(e.getEntityMap(),i,o,t,r);return h(e,f)}var E=t;a.draft_segmented_entities_behavior&&(E=s(e.getEntityMap(),i,o,t,r));var m=p(e,E);return h(m,E)},splitBlock:function(e,t){var r=p(e,t),n=h(r,t);return E(n,n.getSelectionAfter())},applyInlineStyle:function(e,t,r){return _.add(e,t,r)},removeInlineStyle:function(e,t,r){return _.remove(e,t,r)},setBlockType:function(e,t,r){return f(e,t,function(e){return e.merge({type:r,depth:0})})},setBlockData:function(e,t,r){return f(e,t,function(e){return e.merge({data:r})})},mergeBlockData:function(e,t,r){return f(e,t,function(e){return e.merge({data:e.getData().merge(r)})})},applyEntity:function(e,t,r){var n=p(e,t);return o(n,t,r)}};e.exports=g},function(module,__webpack_exports__,__webpack_require__){"use strict";(function(module){__webpack_require__.d(__webpack_exports__,"a",function(){return ContainerComponent});var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(2),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(3),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(5),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(4),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(6),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__),react__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(0),react__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_5__),react_css_modules__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(10),react_css_modules__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(react_css_modules__WEBPACK_IMPORTED_MODULE_6__),_ContainerComponent_sss__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(812),_ContainerComponent_sss__WEBPACK_IMPORTED_MODULE_7___default=__webpack_require__.n(_ContainerComponent_sss__WEBPACK_IMPORTED_MODULE_7__),_dec,_class;!function(){var e=__webpack_require__(1).enterModule;e&&e(module)}();var ContainerComponent=(_dec=react_css_modules__WEBPACK_IMPORTED_MODULE_6___default()(_ContainerComponent_sss__WEBPACK_IMPORTED_MODULE_7___default.a,{allowMultiple:!0}),_dec(_class=function(_Component){function ContainerComponent(){return _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this,ContainerComponent),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default()(this,_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default()(ContainerComponent).apply(this,arguments))}return _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default()(ContainerComponent,_Component),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(ContainerComponent,[{key:"render",value:function(){var e=this.props,t=e.haveTitle2,r=e.title,n=e.titles,_=e.children,a=e.onClickBack,i=e.onClickRLink,o=e.rLinkTitle,s=e.backgroundOffset,l="header";t&&(l="header header-double");var u=n;r&&(u=react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{styleName:"title"},r));var c={};return s&&(c={height:"calc(100% - ".concat(s,"px)")}),react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{styleName:"ContainerComponent"},react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{styleName:"background",style:c}),react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{styleName:l},a&&react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{styleName:"back",onClick:a},"Back"),u,o&&i&&react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{styleName:"json-fields",onClick:i},o)),react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{styleName:"content"},_))}},{key:"__reactstandin__regenerateByEval",value:function __reactstandin__regenerateByEval(key,code){this[key]=eval(code)}}]),ContainerComponent}(react__WEBPACK_IMPORTED_MODULE_5__.Component))||_class);!function(){var e=__webpack_require__(1).default,t=__webpack_require__(1).leaveModule;e&&(e.register(ContainerComponent,"ContainerComponent","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/components/elements/ContainerComponent/ContainerComponent.js"),t(module))}()}).call(this,__webpack_require__(12)(module))},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,r){"use strict";var n=r(44),_=r(196)(1);n(n.P+n.F*!r(127)([].map,!0),"Array",{map:function(e){return _(this,e,arguments[1])}})},function(e,t){e.exports=function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}},function(e,t,r){"use strict";var n=this&&this.__assign||Object.assign||function(e){for(var t,r=1,n=arguments.length;r-1;a--)if(r(e[a-1])){n=a;break}for(a=t;a=0&&r>=0;_--)switch(e.charCodeAt(_)){case 32:continue;case 10:r--,n=!1;break;default:return r}return n?0:r}function u(e,t){if(void 0===e&&(e=""),t===e.length-1)return 0;for(var r=2,n=!0,_=t;_=0;_++)switch(e.charCodeAt(_)){case 32:continue;case 10:r--,n=!1;break;default:return r}return n?0:r}function c(e){var t=e.text,r=e.selection,n=u(t,r.end),_=Array(n+1).join("\n"),a=t,i=0;if(_){var o=s(t,_,r.end);a=o.newText,i=o.insertionLength}return{newText:a,insertionLength:i,newSelection:r}}function d(e,t,r){var n=e.slice(r.start,r.end).split(/\n/),_=0,a=n.map(function(e,r){if("string"==typeof t)return _+=t.length,t+e;if("function"==typeof t){var n=t(e,r);return _+=n.length,t(e,r)+e}throw Error("insertion is expected to be either a string or a function")}).join("\n");return{newText:e.slice(0,r.start)+a+e.slice(r.end),insertionLength:_,newSelection:{start:n.length>1?r.start:r.start+_,end:r.end+_}}}Object.defineProperty(t,"__esModule",{value:!0}),t.getSurroundingWord=_,t.insertBeforeAndAfter=function(e,t){var r=e.text,n=e.selection,_=s(r,t,(n=a({text:r,selection:n})).start),i=_.newText,o=_.insertionLength;return{text:s(i,t,n.end+o).newText,selection:{start:n.start+o,end:n.end+o}}},t.selectWordIfCaretIsInsideOne=a,t.insertBreaksBeforeSoThatThereIsAnEmptyLineBefore=i,t.insertBefore=o,t.insertAfter=function(e,t,r){var _=s(e,t,r.end),a={start:r.start,end:r.end+_.insertionLength};return n({},_,{newSelection:a})},t.insertText=s,t.getBreaksNeededForEmptyLineBefore=l,t.getBreaksNeededForEmptyLineAfter=u,t.insertBreaksAfterSoThatThereIsAnEmptyLineAfter=c,t.insertBeforeEachLine=d,t.makeList=function(e,t){var r,n=e.text,_=e.selection;return{text:n=(r=d(n=(r=c({text:n=(r=i({text:n,selection:_=a({text:n,selection:_})})).newText,selection:_=r.newSelection})).newText,t,_=r.newSelection)).newText,selection:_=r.newSelection}},t.onTab=function(e,t){for(var r=e.text,n=e.selection,_=0,a=n.start;a-1>-1;a--)if("\n"===r[a-1]){_=a;break}var i=r.length;for(a=n.end;a0&&void 0!==arguments[0]?arguments[0]:d;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,h(r)))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.getKey=function(){return this.get("key")},t.prototype.getType=function(){return this.get("type")},t.prototype.getText=function(){return this.get("text")},t.prototype.getCharacterList=function(){return this.get("characterList")},t.prototype.getLength=function(){return this.getText().length},t.prototype.getDepth=function(){return this.get("depth")},t.prototype.getData=function(){return this.get("data")},t.prototype.getInlineStyleAt=function(e){var t=this.getCharacterList().get(e);return t?t.getStyle():c},t.prototype.getEntityAt=function(e){var t=this.getCharacterList().get(e);return t?t.getEntity():null},t.prototype.getChildKeys=function(){return this.get("children")},t.prototype.getParentKey=function(){return this.get("parent")},t.prototype.getPrevSiblingKey=function(){return this.get("prevSibling")},t.prototype.getNextSiblingKey=function(){return this.get("nextSibling")},t.prototype.findStyleRanges=function(e,t){a(this.getCharacterList(),f,e,t)},t.prototype.findEntityRanges=function(e,t){a(this.getCharacterList(),p,e,t)},t}(l(d));e.exports=E},function(module,__webpack_exports__,__webpack_require__){"use strict";(function(module){__webpack_require__.d(__webpack_exports__,"a",function(){return ContentBase});var core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(32),core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_0__),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(2),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(3),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(5),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(4),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(6),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5__),react__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(0),react__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_6__),react_css_modules__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(10),react_css_modules__WEBPACK_IMPORTED_MODULE_7___default=__webpack_require__.n(react_css_modules__WEBPACK_IMPORTED_MODULE_7__),_ContentEdit_sss__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(828),_ContentEdit_sss__WEBPACK_IMPORTED_MODULE_8___default=__webpack_require__.n(_ContentEdit_sss__WEBPACK_IMPORTED_MODULE_8__),_dec,_class;!function(){var e=__webpack_require__(1).enterModule;e&&e(module)}();var ContentBase=(_dec=react_css_modules__WEBPACK_IMPORTED_MODULE_7___default()(_ContentEdit_sss__WEBPACK_IMPORTED_MODULE_8___default.a,{allowMultiple:!0}),_dec(_class=function(_Component){function ContentBase(e){var t;return _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this,ContentBase),(t=_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this,_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(ContentBase).call(this,e))).state={error:null,value:null,isEditable:!1},t.field=null,t.setFieldValue=null,t.field=e.field,t.setFieldValue=e.setFieldValue,t.state.isEditable=e.isEditable,t.state.value=e.value,t}return _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5___default()(ContentBase,_Component),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default()(ContentBase,[{key:"componentWillReceiveProps",value:function(e){this.setState({isEditable:e.isEditable,value:e.value})}},{key:"setValue",value:function(e,t){this.setState({value:e,error:null}),this.setFieldValue(this.field,e,t)}},{key:"getError",value:function(){return this.field.isRequired&&!this.state.value?"This field is required!":null}},{key:"validate",value:function(){var e=this.getError();return this.setState({error:e}),!e}},{key:"getTitle",value:function(){return react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"field-title"},this.field.name)}},{key:"getInput",value:function(){return null}},{key:"render",value:function(){return react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"field"},this.getTitle(),this.getInput(),react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"field-error"},this.state.error))}},{key:"__reactstandin__regenerateByEval",value:function __reactstandin__regenerateByEval(key,code){this[key]=eval(code)}}]),ContentBase}(react__WEBPACK_IMPORTED_MODULE_6__.Component))||_class);!function(){var e=__webpack_require__(1).default,t=__webpack_require__(1).leaveModule;e&&(e.register(ContentBase,"ContentBase","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/components/mainArea/content/ContentEdit/elements/ContentBase.js"),t(module))}()}).call(this,__webpack_require__(12)(module))},function(e,t,r){var n=r(57);e.exports=function(e){if(!n(e))throw TypeError(e+" is not an object!");return e}},function(e,t,r){"use strict";e.exports=function(e){if(null!=e)return e;throw new Error("Got unexpected null or undefined")}},function(e,t,r){r(4);var n=r(568);function _(t,r,a){return"undefined"!=typeof Reflect&&Reflect.get?e.exports=_=Reflect.get:e.exports=_=function(e,t,r){var _=n(e,t);if(_){var a=Object.getOwnPropertyDescriptor(_,t);return a.get?a.get.call(r):a.value}},_(t,r,a||t)}e.exports=_},function(e,t,r){"use strict";(function(e,n){r.d(t,"b",function(){return s}),r.d(t,"c",function(){return c}),r.d(t,"a",function(){return d});var _=r(14),a=r(21),i=r(24),o=r(102);!function(){var t=r(1).enterModule;t&&t(e)}();var s={};function l(){return s.serverURL=n.env.REACT_APP_SERVER_URL||o.b.serverURL,s.appId=n.env.REACT_APP_APP_ID||o.b.appId,s.JSkey=n.env.JS_KEY||o.b.JSkey,s.RESTkey=n.env.REST_KEY||o.b.RESTkey,fetch("/chisel-config.json").then(function(e){if(e.ok)return e.json();throw e.statusText}).then(function(e){s.serverURL=e.configServerURL||s.serverURL,s.appId=e.configAppId||s.appId,s.JSkey=e.configJSkey||s.JSkey,s.RESTkey=e.configRESTkey||s.RESTkey}).catch(function(){})}function u(){_.Parse.initialize(s.appId,s.JSkey),_.Parse.serverURL=s.serverURL}function c(){l().then(function(){u(),a.store.dispatch(Object(i.j)())}).catch(function(e){console.log(e)})}function d(e){e&&(s.serverURL=e,localStorage.setItem("parseServerURL",e),_.Parse.serverURL=e)}!function(){var t=r(1).default,n=r(1).leaveModule;t&&(t.register(s,"config","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/initialize.js"),t.register(l,"requestConfig","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/initialize.js"),t.register(u,"subInitParse","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/initialize.js"),t.register(c,"initApp","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/initialize.js"),t.register(d,"changeServerURL","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/initialize.js"),n(e))}()}).call(this,r(12)(e),r(131))},function(e,t,r){var n=r(42),_=r(84),a=r(96),i=r(120)("src"),o=Function.toString,s=(""+o).split("toString");r(94).inspectSource=function(e){return o.call(e)},(e.exports=function(e,t,r,o){var l="function"==typeof r;l&&(a(r,"name")||_(r,"name",t)),e[t]!==r&&(l&&(a(r,i)||_(r,i,e[t]?""+e[t]:s.join(String(t)))),e===n?e[t]=r:o?e[t]?e[t]=r:_(e,t,r):(delete e[t],_(e,t,r)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[i]||o.call(this)})},function(e,t,r){"use strict";var n=r(630),_=r(633),a=r(634),i=r(635);function o(e,t,r,n){if(e===r)return!0;if(!r.startsWith(e))return!1;var a=r.slice(e.length);return!!t&&(a=n?n(a):a,_.contains(a,t))}function s(e){return"Windows"===n.platformName?e.replace(/^\s*NT/,""):e}var l={isBrowser:function(e){return o(n.browserName,n.browserFullVersion,e)},isBrowserArchitecture:function(e){return o(n.browserArchitecture,null,e)},isDevice:function(e){return o(n.deviceName,null,e)},isEngine:function(e){return o(n.engineName,n.engineVersion,e)},isPlatform:function(e){return o(n.platformName,n.platformFullVersion,e,s)},isPlatformArchitecture:function(e){return o(n.platformArchitecture,null,e)}};e.exports=a(l,i)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t=0;a--){var i=_[a],o=r[i];o!==n[i]&&(-1===u.indexOf(i)||Array.isArray(o)||(o=[o]),this.flatpickr.set(i,o))}e.hasOwnProperty("value")&&e.value!==this.props.value&&this.flatpickr.setDate(e.value,!1)}},{key:"componentDidMount",value:function(){var e=this,t=n({onClose:function(){e.node.blur&&e.node.blur()}},this.props.options);u.forEach(function(r){e.props[r]&&(t[r]=e.props[r])}),this.flatpickr=new s.default(this.node,t),this.props.hasOwnProperty("value")&&this.flatpickr.setDate(this.props.value,!1)}},{key:"componentWillUnmount",value:function(){this.flatpickr.destroy()}},{key:"render",value:function(){var e=this,t=this.props,r=t.options,_=t.defaultValue,a=(t.value,t.children),o=function(e,t){var r={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r}(t,["options","defaultValue","value","children"]);return u.forEach(function(e){delete o[e]}),r.wrap?i.default.createElement("div",n({},o,{ref:function(t){e.node=t}}),a):i.default.createElement("input",n({},o,{defaultValue:_,ref:function(t){e.node=t}}))}}]),t}();c.propTypes={defaultValue:o.default.string,options:o.default.object,onChange:o.default.func,onOpen:o.default.func,onClose:o.default.func,onMonthChange:o.default.func,onYearChange:o.default.func,onReady:o.default.func,onValueUpdate:o.default.func,onDayCreate:o.default.func,value:o.default.oneOfType([o.default.string,o.default.array,o.default.object,o.default.number]),children:o.default.node},c.defaultProps={options:{}},t.default=c},function(e,t,r){var n=r(238),_="object"==typeof self&&self&&self.Object===Object&&self,a=n||_||Function("return this")();e.exports=a},function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},function(e,t,r){"use strict";var n=r(264),_=r(265),a=r(122),i=r(95);e.exports=r(191)(Array,"Array",function(e,t){this._t=i(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,r=this._i++;return!e||r>=e.length?(this._t=void 0,_(1)):_(0,"keys"==t?r:"values"==t?e[r]:[r,e[r]])},"values"),a.Arguments=a.Array,n("keys"),n("values"),n("entries")},function(e,t){e.exports='Group 4Created with Sketch.'},function(e,t,r){"use strict";var n={},_=Math.pow(2,24);e.exports=function(){for(var e=void 0;void 0===e||n.hasOwnProperty(e)||!isNaN(+e);)e=Math.floor(Math.random()*_).toString(32);return n[e]=!0,e}},function(e,t,r){"use strict";e.exports=function(){}},function(e,t,r){var n; +*/var n=Object.getOwnPropertySymbols,_=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach(function(e){n[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var r,i,o=function(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),s=1;s0&&void 0!==arguments[0]?arguments[0]:S,a=arguments.length>1?arguments[1]:void 0;switch(a.type){case f:e=a.items,t=a.itemsDraft;var i=!0,o=!1,u=void 0;try{for(var d,P=e[Symbol.iterator]();!(i=(d=P.next()).done);i=!0){d.value.postInit(e)}}catch(e){o=!0,u=e}finally{try{i||null==P.return||P.return()}finally{if(o)throw u}}var D=!0,y=!1,w=void 0;try{for(var T,A=t[Symbol.iterator]();!(D=(T=A.next()).done);D=!0){T.value.postInit(e)}}catch(e){y=!0,w=e}finally{try{D||null==A.return||A.return()}finally{if(y)throw w}}var k=!0,I=!1,R=void 0;try{for(var L,B=t[Symbol.iterator]();!(k=(L=B.next()).done);k=!0){var U=L.value,K=U.origin.get("t__owner"),W=!0,x=!1,j=void 0;try{for(var N,q=e[Symbol.iterator]();!(W=(N=q.next()).done);W=!0){var F=N.value;if(F.origin.id==K.id){F.draft=U,U.owner=F;break}}}catch(e){x=!0,j=e}finally{try{W||null==q.return||q.return()}finally{if(x)throw j}}}}catch(e){I=!0,R=e}finally{try{k||null==B.return||B.return()}finally{if(I)throw R}}return _()({},n,{items:e,itemsDraft:t});case O:return _()({},n,{currentItem:a.currentItem});case p:return(e=n.items).push(a.item),_()({},n,{items:e});case h:case m:case g:case b:return _()({},n);case E:return a.isNewDraft?((t=n.itemsDraft).push(a.item.draft),_()({},n,{itemsDraft:t})):_()({},n);case v:var V=a.item;return e=n.items,t=n.itemsDraft,e.splice(e.indexOf(V),1),V.draft&&t.splice(t.indexOf(V.draft),1),_()({},n,{items:e,itemsDraft:t});case M:var H=n.filteredModels,z=new Set(H);return H.has(a.model)?z.delete(a.model):z.add(a.model),_()({},n,{filteredModels:z});case C:var G=n.filteredStatuses,Y=new Set(G);return G.has(a.status)?Y.delete(a.status):Y.add(a.status),_()({},n,{filteredStatuses:Y});case s.e:e=n.items,t=n.itemsDraft,r=Object(c.r)(a.model,e);var J=!0,X=!1,Q=void 0;try{for(var $,Z=r[Symbol.iterator]();!(J=($=Z.next()).done);J=!0){var ee=$.value;e.splice(e.indexOf(ee),1),ee.draft&&t.splice(t.indexOf(ee.draft),1)}}catch(e){X=!0,Q=e}finally{try{J||null==Z.return||Z.return()}finally{if(X)throw Q}}return _()({},n,{items:e,itemsDraft:t});case s.f:e=n.items,t=n.itemsDraft,r=Object(c.s)(a.site,e);var te=!0,re=!1,ne=void 0;try{for(var _e,ae=r[Symbol.iterator]();!(te=(_e=ae.next()).done);te=!0){var ie=_e.value;e.splice(e.indexOf(ie),1),ie.draft&&t.splice(t.indexOf(ie.draft),1)}}catch(e){re=!0,ne=e}finally{try{te||null==ae.return||ae.return()}finally{if(re)throw ne}}return _()({},n,{items:e,itemsDraft:t});case s.a:case s.c:case s.b:e=n.items,t=n.itemsDraft;var oe=a.field.model,se=!0,le=!1,ue=void 0;try{for(var ce,de=e[Symbol.iterator]();!(se=(ce=de.next()).done);se=!0){var fe=ce.value;fe.model==oe&&(fe.model=oe)}}catch(e){le=!0,ue=e}finally{try{se||null==de.return||de.return()}finally{if(le)throw ue}}var pe=!0,he=!1,Ee=void 0;try{for(var me,ge=t[Symbol.iterator]();!(pe=(me=ge.next()).done);pe=!0){var be=me.value;be.model==oe&&(be.model=oe)}}catch(e){he=!0,Ee=e}finally{try{pe||null==ge.return||ge.return()}finally{if(he)throw Ee}}return _()({},n,{items:e,itemsDraft:t});case l.f:return _()({},n,{currentItem:null});default:return n}}!function(){var t=r(1).default,n=r(1).leaveModule;t&&(t.register(f,"INIT_END","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/content.js"),t.register(p,"ITEM_ADD","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/content.js"),t.register(h,"ITEM_UPDATE","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/content.js"),t.register(E,"ITEM_PUBLISH","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/content.js"),t.register(m,"ITEM_DISCARD","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/content.js"),t.register(g,"ITEM_ARCHIVE","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/content.js"),t.register(b,"ITEM_RESTORE","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/content.js"),t.register(v,"ITEM_DELETE","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/content.js"),t.register(O,"SET_CURRENT_ITEM","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/content.js"),t.register(M,"FILTER_MODEL","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/content.js"),t.register(C,"FILTER_STATUS","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/content.js"),t.register(P,"requestContentItems","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/content.js"),t.register(D,"init","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/content.js"),t.register(y,"addItem","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/content.js"),t.register(w,"updateItem","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/content.js"),t.register(T,"publishItem","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/content.js"),t.register(A,"discardItem","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/content.js"),t.register(k,"archiveItem","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/content.js"),t.register(I,"restoreItem","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/content.js"),t.register(R,"setCurrentItem","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/content.js"),t.register(L,"deleteItem","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/content.js"),t.register(B,"filterModel","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/content.js"),t.register(U,"filterStatus","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/content.js"),t.register(S,"initialState","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/content.js"),t.register(K,"contentReducer","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/content.js"),n(e))}()}).call(this,r(12)(e))},function(e,t){function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function n(t){return"function"==typeof Symbol&&"symbol"===r(Symbol.iterator)?e.exports=n=function(e){return r(e)}:e.exports=n=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":r(e)},n(t)}e.exports=n},function(e,t){var r=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=r)},function(e,t,r){for(var n=r(76),_=r(104),a=r(70),i=r(42),o=r(84),s=r(121),l=r(36),u=l("iterator"),c=l("toStringTag"),d=s.Array,f={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},p=_(f),h=0;h-1)throw new Error("Cannot modify readonly attribute: "+o);r.unset?_[o]=new b.UnsetOp:n[o]instanceof b.Op?_[o]=n[o]:n[o]&&"object"===(0,a.default)(n[o])&&"string"==typeof n[o].__op?_[o]=(0,b.opFromJSON)(n[o]):"objectId"===o||"id"===o?"string"==typeof n[o]&&(this.id=n[o]):"ACL"!==o||"object"!==(0,a.default)(n[o])||n[o]instanceof p.default?_[o]=new b.SetOp(n[o]):_[o]=new b.SetOp(new p.default(n[o]))}var s=this.attributes,u={};for(var c in _)_[c]instanceof b.RelationOp?u[c]=_[c].applyTo(s[c],this,c):_[c]instanceof b.UnsetOp||(u[c]=_[c].applyTo(s[c]));if(!r.ignoreValidation){var d=this.validate(u);if(d)return"function"==typeof r.error&&r.error(this,d),!1}var f=this._getPendingOps(),h=f.length-1,E=l.default.getObjectStateController();for(var m in _){var g=_[m].mergeWith(f[h][m]);E.setPendingOp(this._getStateIdentifier(),m,g)}return this}},{key:"unset",value:function(e,t){return(t=t||{}).unset=!0,this.set(e,null,t)}},{key:"increment",value:function(e,t){if(void 0===t&&(t=1),"number"!=typeof t)throw new Error("Cannot increment by a non-numeric amount.");return this.set(e,new b.IncrementOp(t))}},{key:"add",value:function(e,t){return this.set(e,new b.AddOp([t]))}},{key:"addAll",value:function(e,t){return this.set(e,new b.AddOp(t))}},{key:"addUnique",value:function(e,t){return this.set(e,new b.AddUniqueOp([t]))}},{key:"addAllUnique",value:function(e,t){return this.set(e,new b.AddUniqueOp(t))}},{key:"remove",value:function(e,t){return this.set(e,new b.RemoveOp([t]))}},{key:"removeAll",value:function(e,t){return this.set(e,new b.RemoveOp(t))}},{key:"op",value:function(e){for(var t=this._getPendingOps(),r=t.length;r--;)if(t[r][e])return t[r][e]}},{key:"clone",value:function(){var e=new this.constructor;e.className||(e.className=this.className);var t=this.attributes;if("function"==typeof this.constructor.readOnlyAttributes){var r=this.constructor.readOnlyAttributes()||[],n={};for(var _ in t)r.indexOf(_)<0&&(n[_]=t[_]);t=n}return e.set&&e.set(t),e}},{key:"newInstance",value:function(){var e=new this.constructor;if(e.className||(e.className=this.className),e.id=this.id,A)return e;var t=l.default.getObjectStateController();return t&&t.duplicateState(this._getStateIdentifier(),e._getStateIdentifier()),e}},{key:"isNew",value:function(){return!this.id}},{key:"existed",value:function(){if(!this.id)return!1;var e=l.default.getObjectStateController().getState(this._getStateIdentifier());return!!e&&e.existed}},{key:"isValid",value:function(){return!this.validate(this.attributes)}},{key:"validate",value:function(e){if(e.hasOwnProperty("ACL")&&!(e.ACL instanceof p.default))return new E.default(E.default.OTHER_CAUSE,"ACL must be a Parse ACL.");for(var t in e)if(!/^[A-Za-z][0-9A-Za-z_]*$/.test(t))return new E.default(E.default.INVALID_KEY_NAME);return!1}},{key:"getACL",value:function(){var e=this.get("ACL");return e instanceof p.default?e:null}},{key:"setACL",value:function(e,t){return this.set("ACL",e,t)}},{key:"revert",value:function(){this._clearPendingOps()}},{key:"clear",value:function(){var e=this.attributes,t={},r=["createdAt","updatedAt"];for(var n in"function"==typeof this.constructor.readOnlyAttributes&&(r=r.concat(this.constructor.readOnlyAttributes())),e)r.indexOf(n)<0&&(t[n]=!0);return this.set(t,{unset:!0})}},{key:"fetch",value:function(e){var t={};return(e=e||{}).hasOwnProperty("useMasterKey")&&(t.useMasterKey=e.useMasterKey),e.hasOwnProperty("sessionToken")&&(t.sessionToken=e.sessionToken),e.hasOwnProperty("include")&&(t.include=[],Array.isArray(e.include)?e.include.forEach(function(e){Array.isArray(e)?t.include=t.include.concat(e):t.include.push(e)}):t.include.push(e.include)),l.default.getObjectController().fetch(this,!0,t)}},{key:"fetchWithInclude",value:function(e,t){return(t=t||{}).include=e,this.fetch(t)}},{key:"save",value:function(e,t,r){var n,_,i=this;if("object"===(0,a.default)(e)||void 0===e?(n=e,"object"===(0,a.default)(t)&&(_=t)):((n={})[e]=t,_=r),!_&&n&&(_={},"function"==typeof n.success&&(_.success=n.success,delete n.success),"function"==typeof n.error&&(_.error=n.error,delete n.error)),n){var o=this.validate(n);if(o)return _&&"function"==typeof _.error&&_.error(this,o),Promise.reject(o);this.set(n,_)}var s={};(_=_||{}).hasOwnProperty("useMasterKey")&&(s.useMasterKey=!!_.useMasterKey),_.hasOwnProperty("sessionToken")&&"string"==typeof _.sessionToken&&(s.sessionToken=_.sessionToken);var u=l.default.getObjectController(),c=(0,D.default)(this);return u.save(c,s).then(function(){return u.save(i,s)})}},{key:"destroy",value:function(e){var t={};return(e=e||{}).hasOwnProperty("useMasterKey")&&(t.useMasterKey=e.useMasterKey),e.hasOwnProperty("sessionToken")&&(t.sessionToken=e.sessionToken),this.id?l.default.getObjectController().destroy(this,t):Promise.resolve()}},{key:"attributes",get:function(){var e=l.default.getObjectStateController();return Object.freeze(e.estimateAttributes(this._getStateIdentifier()))}},{key:"createdAt",get:function(){return this._getServerData().createdAt}},{key:"updatedAt",get:function(){return this._getServerData().updatedAt}}],[{key:"_clearAllState",value:function(){l.default.getObjectStateController().clearAllState()}},{key:"fetchAll",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={};return t.hasOwnProperty("useMasterKey")&&(r.useMasterKey=t.useMasterKey),t.hasOwnProperty("sessionToken")&&(r.sessionToken=t.sessionToken),t.hasOwnProperty("include")&&(r.include=[],Array.isArray(t.include)?t.include.forEach(function(e){Array.isArray(e)?r.include=r.include.concat(e):r.include.push(e)}):r.include.push(t.include)),l.default.getObjectController().fetch(e,!0,r)}},{key:"fetchAllWithInclude",value:function(t,r,n){return(n=n||{}).include=r,e.fetchAll(t,n)}},{key:"fetchAllIfNeeded",value:function(e,t){var r={};return(t=t||{}).hasOwnProperty("useMasterKey")&&(r.useMasterKey=t.useMasterKey),t.hasOwnProperty("sessionToken")&&(r.sessionToken=t.sessionToken),l.default.getObjectController().fetch(e,!1,r)}},{key:"destroyAll",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={};return t.hasOwnProperty("useMasterKey")&&(r.useMasterKey=t.useMasterKey),t.hasOwnProperty("sessionToken")&&(r.sessionToken=t.sessionToken),l.default.getObjectController().destroy(e,r)}},{key:"saveAll",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={};return t.hasOwnProperty("useMasterKey")&&(r.useMasterKey=t.useMasterKey),t.hasOwnProperty("sessionToken")&&(r.sessionToken=t.sessionToken),l.default.getObjectController().save(e,r)}},{key:"createWithoutData",value:function(e){var t=new this;return t.id=e,t}},{key:"fromJSON",value:function(t,r){if(!t.className)throw new Error("Cannot create an object without a className");var n=y[t.className],_=n?new n:new e(t.className),a={};for(var i in t)"className"!==i&&"__type"!==i&&(a[i]=t[i]);if(r){a.objectId&&(_.id=a.objectId);var o=null;"function"==typeof _._preserveFieldsOnFetch&&(o=_._preserveFieldsOnFetch()),_._clearServerData(),o&&_._finishFetch(o)}return _._finishFetch(a),t.objectId&&_._setExisted(!0),_}},{key:"registerSubclass",value:function(e,t){if("string"!=typeof e)throw new TypeError("The first argument must be a valid class name.");if(void 0===t)throw new TypeError("You must supply a subclass constructor.");if("function"!=typeof t)throw new TypeError("You must register the subclass constructor. Did you attempt to register an instance of the subclass?");y[e]=t,t.className||(t.className=e)}},{key:"extend",value:function(t,r,n){if("string"!=typeof t){if(t&&"string"==typeof t.className)return e.extend(t.className,t,r);throw new Error("Parse.Object.extend's first argument should be the className.")}var _=t;"User"===_&&l.default.get("PERFORM_USER_REWRITE")&&(_="_User");var i=e.prototype;this.hasOwnProperty("__super__")&&this.__super__?i=this.prototype:y[_]&&(i=y[_].prototype);var o=function(e,t){if(this.className=_,this._objCount=T++,"function"==typeof this.initialize&&this.initialize.apply(this,arguments),e&&"object"===(0,a.default)(e)&&!this.set(e||{},t))throw new Error("Can't create an invalid Parse Object")};if(o.className=_,o.__super__=i,o.prototype=Object.create(i,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),r)for(var s in r)"className"!==s&&Object.defineProperty(o.prototype,s,{value:r[s],enumerable:!1,writable:!0,configurable:!0});if(n)for(var u in n)"className"!==u&&Object.defineProperty(o,u,{value:n[u],enumerable:!1,writable:!0,configurable:!0});return o.extend=function(t,r,n){return"string"==typeof t?e.extend.call(o,t,r,n):e.extend.call(o,_,t,r)},o.createWithoutData=e.createWithoutData,y[_]=o,o}},{key:"enableSingleInstance",value:function(){A=!0,l.default.setObjectStateController(M)}},{key:"disableSingleInstance",value:function(){A=!1,l.default.setObjectStateController(P)}}]),e}(),R={fetch:function(e,t,r){if(Array.isArray(e)){if(e.length<1)return Promise.resolve([]);var n=[],_=[],a=null,i=[],o=null;if(e.forEach(function(e){o||(a||(a=e.className),a!==e.className&&(o=new E.default(E.default.INVALID_CLASS_NAME,"All objects should be of the same class")),e.id||(o=new E.default(E.default.MISSING_OBJECT_ID,"All objects must have an ID")),(t||0===Object.keys(e._getServerData()).length)&&(_.push(e.id),n.push(e)),i.push(e))}),o)return Promise.reject(o);var s=new v.default(a);return s.containedIn("objectId",_),r&&r.include&&s.include(r.include),s._limit=_.length,s.find(r).then(function(e){var r={};e.forEach(function(e){r[e.id]=e});for(var _=0;_=20&&n.push([]))}),0===n[n.length-1].length&&n.pop();var _=Promise.resolve(),a=[];return n.forEach(function(e){_=_.then(function(){return r.request("POST","batch",{requests:e.map(function(e){return{method:"DELETE",path:k()+"classes/"+e.className+"/"+e._getId(),body:{}}})},t).then(function(t){for(var r=0;r0},function(){var e,a,i=[],s=[];if(o.forEach(function(e){i.length<20&&(0,u.default)(e)?i.push(e):s.push(e)}),o=s,i.length<1)return Promise.reject(new E.default(E.default.OTHER_CAUSE,"Tried to save a batch with a cycle."));var l=new Promise(function(t,r){e=t,a=r});l.resolve=e,l.reject=a;var c=[],d=[];return i.forEach(function(e,t){var r,a,i=new Promise(function(e,t){r=e,a=t});i.resolve=r,i.reject=a,c.push(i),n.pushPendingState(e._getStateIdentifier()),d.push(n.enqueueTask(e._getStateIdentifier(),function(){return i.resolve(),l.then(function(r,n){if(r[t].hasOwnProperty("success"))e._handleSaveResponse(r[t].success,n);else{if(!_&&r[t].hasOwnProperty("error")){var a=r[t].error;_=new E.default(a.code,a.error),o=[]}e._handleSaveError()}})}))}),(0,g.when)(c).then(function(){return r.request("POST","batch",{requests:i.map(function(e){var t=e._getSaveParams();return t.path=k()+t.path,t})},t)}).then(function(e,t){l.resolve(e,t)},function(e){l.reject(new E.default(E.default.INCORRECT_TYPE,e.message))}),(0,g.when)(d)}).then(function(){return _?Promise.reject(_):Promise.resolve(e)})})}if(e instanceof I){var s=e;return n.pushPendingState(e._getStateIdentifier()),n.enqueueTask(e._getStateIdentifier(),function(){var e=s._getSaveParams();return r.request(e.method,e.path,e.body,t).then(function(e,t){s._handleSaveResponse(e,t)},function(e){return s._handleSaveError(),Promise.reject(e)})}).then(function(){return e},function(e){return Promise.reject(e)})}return Promise.resolve()}};l.default.setObjectController(R);var L=I;t.default=L},function(e,t,r){"use strict";(function(t){var r={IS_NODE:void 0!==t&&!!t.versions&&!!t.versions.node&&!t.versions.electron,REQUEST_ATTEMPT_LIMIT:5,SERVER_URL:"https://api.parse.com/1",LIVEQUERY_SERVER_URL:null,VERSION:"js2.1.0",APPLICATION_ID:null,JAVASCRIPT_KEY:null,MASTER_KEY:null,USE_MASTER_KEY:!1,PERFORM_USER_REWRITE:!0,FORCE_REVOCABLE_SESSION:!1};function n(e,t,r){t.forEach(function(t){if("function"!=typeof r[t])throw new Error("".concat(e," must implement ").concat(t,"()"))})}e.exports={get:function(e){if(r.hasOwnProperty(e))return r[e];throw new Error("Configuration key not found: "+e)},set:function(e,t){r[e]=t},setAnalyticsController:function(e){n("AnalyticsController",["track"],e),r.AnalyticsController=e},getAnalyticsController:function(){return r.AnalyticsController},setCloudController:function(e){n("CloudController",["run","getJobsData","startJob"],e),r.CloudController=e},getCloudController:function(){return r.CloudController},setConfigController:function(e){n("ConfigController",["current","get"],e),r.ConfigController=e},getConfigController:function(){return r.ConfigController},setFileController:function(e){n("FileController",["saveFile","saveBase64"],e),r.FileController=e},getFileController:function(){return r.FileController},setInstallationController:function(e){n("InstallationController",["currentInstallationId"],e),r.InstallationController=e},getInstallationController:function(){return r.InstallationController},setObjectController:function(e){n("ObjectController",["save","fetch","destroy"],e),r.ObjectController=e},getObjectController:function(){return r.ObjectController},setObjectStateController:function(e){n("ObjectStateController",["getState","initializeState","removeState","getServerData","setServerData","getPendingOps","setPendingOp","pushPendingState","popPendingState","mergeFirstPendingState","getObjectCache","estimateAttribute","estimateAttributes","commitServerChanges","enqueueTask","clearAllState"],e),r.ObjectStateController=e},getObjectStateController:function(){return r.ObjectStateController},setPushController:function(e){n("PushController",["send"],e),r.PushController=e},getPushController:function(){return r.PushController},setQueryController:function(e){n("QueryController",["find","aggregate"],e),r.QueryController=e},getQueryController:function(){return r.QueryController},setRESTController:function(e){n("RESTController",["request","ajax"],e),r.RESTController=e},getRESTController:function(){return r.RESTController},setSchemaController:function(e){n("SchemaController",["get","create","update","delete","send","purge"],e),r.SchemaController=e},getSchemaController:function(){return r.SchemaController},setSessionController:function(e){n("SessionController",["getSession"],e),r.SessionController=e},getSessionController:function(){return r.SessionController},setStorageController:function(e){e.async?n("An async StorageController",["getItemAsync","setItemAsync","removeItemAsync"],e):n("A synchronous StorageController",["getItem","setItem","removeItem"],e),r.StorageController=e},getStorageController:function(){return r.StorageController},setAsyncStorage:function(e){r.AsyncStorage=e},getAsyncStorage:function(){return r.AsyncStorage},setUserController:function(e){n("UserController",["setCurrentUser","currentUser","currentUserAsync","signUp","logIn","become","logOut","requestPasswordReset","upgradeToRevocableSession","linkWith"],e),r.UserController=e},getUserController:function(){return r.UserController},setLiveQueryController:function(e){n("LiveQueryController",["subscribe","unsubscribe","open","close"],e),r.LiveQueryController=e},getLiveQueryController:function(){return r.LiveQueryController},setHooksController:function(e){n("HooksController",["create","get","update","remove"],e),r.HooksController=e},getHooksController:function(){return r.HooksController}}}).call(this,r(130))},function(e,t,r){"use strict";function n(e){for(var r in e)t.hasOwnProperty(r)||(t[r]=e[r])}Object.defineProperty(t,"__esModule",{value:!0}),n(r(329)),n(r(226)),n(r(330)),n(r(696)),n(r(697)),n(r(698)),n(r(699))},function(e,t){var r;r=function(){return this}();try{r=r||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(r=window)}e.exports=r},function(e,t,r){"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=r(394)},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,r){r(286)("asyncIterator")},function(e,t,r){"use strict";var n=r(42),_=r(96),a=r(64),i=r(44),o=r(70),s=r(205).KEY,l=r(51),u=r(189),c=r(125),d=r(119),f=r(36),p=r(287),h=r(286),E=r(563),m=r(274),g=r(67),b=r(57),v=r(95),O=r(188),M=r(120),C=r(192),P=r(564),D=r(285),y=r(63),w=r(104),T=D.f,A=y.f,k=P.f,I=n.Symbol,R=n.JSON,L=R&&R.stringify,B=f("_hidden"),U=f("toPrimitive"),S={}.propertyIsEnumerable,K=u("symbol-registry"),W=u("symbols"),x=u("op-symbols"),j=Object.prototype,N="function"==typeof I,q=n.QObject,F=!q||!q.prototype||!q.prototype.findChild,V=a&&l(function(){return 7!=C(A({},"a",{get:function(){return A(this,"a",{value:7}).a}})).a})?function(e,t,r){var n=T(j,t);n&&delete j[t],A(e,t,r),n&&e!==j&&A(j,t,n)}:A,H=function(e){var t=W[e]=C(I.prototype);return t._k=e,t},z=N&&"symbol"==typeof I.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof I},G=function(e,t,r){return e===j&&G(x,t,r),g(e),t=O(t,!0),g(r),_(W,t)?(r.enumerable?(_(e,B)&&e[B][t]&&(e[B][t]=!1),r=C(r,{enumerable:M(0,!1)})):(_(e,B)||A(e,B,M(1,{})),e[B][t]=!0),V(e,t,r)):A(e,t,r)},Y=function(e,t){g(e);for(var r,n=E(t=v(t)),_=0,a=n.length;a>_;)G(e,r=n[_++],t[r]);return e},J=function(e){var t=S.call(this,e=O(e,!0));return!(this===j&&_(W,e)&&!_(x,e))&&(!(t||!_(this,e)||!_(W,e)||_(this,B)&&this[B][e])||t)},X=function(e,t){if(e=v(e),t=O(t,!0),e!==j||!_(W,t)||_(x,t)){var r=T(e,t);return!r||!_(W,t)||_(e,B)&&e[B][t]||(r.enumerable=!0),r}},Q=function(e){for(var t,r=k(v(e)),n=[],a=0;r.length>a;)_(W,t=r[a++])||t==B||t==s||n.push(t);return n},$=function(e){for(var t,r=e===j,n=k(r?x:v(e)),a=[],i=0;n.length>i;)!_(W,t=n[i++])||r&&!_(j,t)||a.push(W[t]);return a};N||(o((I=function(){if(this instanceof I)throw TypeError("Symbol is not a constructor!");var e=d(arguments.length>0?arguments[0]:void 0),t=function(r){this===j&&t.call(x,r),_(this,B)&&_(this[B],e)&&(this[B][e]=!1),V(this,e,M(1,r))};return a&&F&&V(j,e,{configurable:!0,set:t}),H(e)}).prototype,"toString",function(){return this._k}),D.f=X,y.f=G,r(207).f=P.f=Q,r(161).f=J,r(197).f=$,a&&!r(118)&&o(j,"propertyIsEnumerable",J,!0),p.f=function(e){return H(f(e))}),i(i.G+i.W+i.F*!N,{Symbol:I});for(var Z="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ee=0;Z.length>ee;)f(Z[ee++]);for(var te=w(f.store),re=0;te.length>re;)h(te[re++]);i(i.S+i.F*!N,"Symbol",{for:function(e){return _(K,e+="")?K[e]:K[e]=I(e)},keyFor:function(e){if(!z(e))throw TypeError(e+" is not a symbol!");for(var t in K)if(K[t]===e)return t},useSetter:function(){F=!0},useSimple:function(){F=!1}}),i(i.S+i.F*!N,"Object",{create:function(e,t){return void 0===t?C(e):Y(C(e),t)},defineProperty:G,defineProperties:Y,getOwnPropertyDescriptor:X,getOwnPropertyNames:Q,getOwnPropertySymbols:$}),R&&i(i.S+i.F*(!N||l(function(){var e=I();return"[null]"!=L([e])||"{}"!=L({a:e})||"{}"!=L(Object(e))})),"JSON",{stringify:function(e){for(var t,r,n=[e],_=1;arguments.length>_;)n.push(arguments[_++]);if(r=t=n[1],(b(t)||void 0!==e)&&!z(e))return m(t)||(t=function(e,t){if("function"==typeof r&&(t=r.call(this,e,t)),!z(t))return t}),n[1]=t,L.apply(R,n)}}),I.prototype[U]||r(84)(I.prototype,U,I.prototype.valueOf),c(I,"Symbol"),c(Math,"Math",!0),c(n.JSON,"JSON",!0)},function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(_,a){function i(e){try{s(n.next(e))}catch(e){a(e)}}function o(e){try{s(n.throw(e))}catch(e){a(e)}}function s(e){e.done?_(e.value):new r(function(t){t(e.value)}).then(i,o)}s((n=n.apply(e,t||[])).next())})},_=this&&this.__generator||function(e,t){var r,n,_,a,i={label:0,sent:function(){if(1&_[0])throw _[1];return _[1]},trys:[],ops:[]};return a={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function o(a){return function(o){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;i;)try{if(r=1,n&&(_=n[2&a[0]?"return":a[0]?"throw":"next"])&&!(_=_.call(n,a[1])).done)return _;switch(n=0,_&&(a=[0,_.value]),a[0]){case 0:case 1:_=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,n=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!(_=(_=i.trys).length>0&&_[_.length-1])&&(6===a[0]||2===a[0])){i=0;continue}if(3===a[0]&&(!_||a[1]>_[0]&&a[1]<_[3])){i.label=a[1];break}if(6===a[0]&&i.label<_[1]){i.label=_[1],_=a;break}if(_&&i.label<_[2]){i.label=_[2],i.ops.push(a);break}_[2]&&i.ops.pop(),i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e],n=0}finally{r=_=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,o])}}};Object.defineProperty(t,"__esModule",{value:!0});var a=r(212);function i(e,t){for(var r,n=0,_=t;r=e.getCurrentContent().getBlockBefore(_);)n+=r.getText().length+1,_=r.getKey();return n}function o(e){var t=e.getSelection(),r=t.getStartKey(),n=t.getStartOffset(),_=t.getEndKey(),a=t.getEndOffset(),o=i(e,r);return{start:n+o,end:n+s(e,r,n,_,a)+o}}function s(e,t,r,n,_){if(t===n)return _-r;for(var a,i=e.getCurrentContent().getBlockForKey(t).getText().length-r,o=t;(a=e.getCurrentContent().getBlockAfter(o))&&a.getKey()!==n;)i+=a.getText().length+1,o=a.getKey();return i+=_+1}function l(e){return e.getCurrentContent().getPlainText("\n")}t.getContentLengthOfAllBlocksBefore=i,t.getSelection=o,t.getContentLengthBetween=s,t.getPlainText=l;var u=function(e,t,r,n,_){return!t||er+t.getText().length?u(e,_.getBlockAfter(t.getKey()),r+t.getText().length+1,0,_):{block:t,globalOffset:r,blockOffset:e-r}};function c(e,t){var r=e.getFirstBlock();if(null===r)return null;var n=u(t.start,r,0,0,e);if(null===n)return null;var _=u(t.end,n.block,n.globalOffset,n.blockOffset,e);return null===_?null:a.SelectionState.createEmpty(n.block.getKey()).merge({anchorKey:n.block.getKey(),anchorOffset:n.blockOffset,focusKey:_.block.getKey(),focusOffset:_.blockOffset})}function d(e,t){var r=t.text,n=t.selection,_=a.ContentState.createFromText(r),i=a.EditorState.forceSelection(e,e.getSelection());i=a.EditorState.push(i,_,"insert-characters");var o=n?c(i.getCurrentContent(),n):e.getSelection();return a.EditorState.forceSelection(i,o)}t.buildSelectionState=c,t.getMarkdownStateFromDraftState=function(e){return{text:l(e),selection:o(e)}},t.getMdeStateFromDraftState=function(e,t){return n(this,void 0,void 0,function(){var r,n;return _(this,function(_){switch(_.label){case 0:return r=l(e),t?[4,t(r)]:[3,2];case 1:return n=_.sent(),[3,3];case 2:n="",_.label=3;case 3:return[2,{html:n,markdown:r,draftEditorState:e}]}})})},t.buildNewDraftState=d,t.buildNewMdeState=function(e,t,r,a){return void 0===a&&(a=null),n(this,void 0,void 0,function(){var n,i;return _(this,function(_){switch(_.label){case 0:return n=d(e.draftEditorState,{text:r,selection:a}),t?[4,t(r)]:[3,2];case 1:return i=_.sent(),[3,3];case 2:i="",_.label=3;case 3:return[2,{html:i,markdown:r,draftEditorState:n}]}})})}},function(e,t,r){"use strict";var n=r(61),_=r(609),a=r(89),i=r(30),o=r(610),s=r(612),l=r(167),u=r(615),c=r(616),d=r(29),f=r(617),p=r(304),h=r(618),E=r(619),m=i.OrderedSet,g={replaceText:function(e,t,r,_,a){var i=p(e,t),o=h(i,t),s=n.create({style:_||m(),entity:a||null});return c(o,o.getSelectionAfter(),r,s)},insertText:function(e,t,r,n,_){return t.isCollapsed()||d(!1),g.replaceText(e,t,r,n,_)},moveText:function(e,t,r){var n=l(e,t),_=g.removeRange(e,t,"backward");return g.replaceWithFragment(_,r,n)},replaceWithFragment:function(e,t,r){var n=p(e,t),_=h(n,t);return u(_,_.getSelectionAfter(),r)},removeRange:function(e,t,r){var n,_,i=void 0,o=void 0;t.getIsBackward()&&(t=t.merge({anchorKey:t.getFocusKey(),anchorOffset:t.getFocusOffset(),focusKey:t.getAnchorKey(),focusOffset:t.getAnchorOffset(),isBackward:!1})),n=t.getAnchorKey(),_=t.getFocusKey(),i=e.getBlockForKey(n),o=e.getBlockForKey(_);var l=t.getStartOffset(),u=t.getEndOffset(),c=i.getEntityAt(l),d=o.getEntityAt(u-1);if(n===_&&c&&c===d){var f=s(e.getEntityMap(),i,o,t,r);return h(e,f)}var E=t;a.draft_segmented_entities_behavior&&(E=s(e.getEntityMap(),i,o,t,r));var m=p(e,E);return h(m,E)},splitBlock:function(e,t){var r=p(e,t),n=h(r,t);return E(n,n.getSelectionAfter())},applyInlineStyle:function(e,t,r){return _.add(e,t,r)},removeInlineStyle:function(e,t,r){return _.remove(e,t,r)},setBlockType:function(e,t,r){return f(e,t,function(e){return e.merge({type:r,depth:0})})},setBlockData:function(e,t,r){return f(e,t,function(e){return e.merge({data:r})})},mergeBlockData:function(e,t,r){return f(e,t,function(e){return e.merge({data:e.getData().merge(r)})})},applyEntity:function(e,t,r){var n=p(e,t);return o(n,t,r)}};e.exports=g},function(module,__webpack_exports__,__webpack_require__){"use strict";(function(module){__webpack_require__.d(__webpack_exports__,"a",function(){return ContainerComponent});var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(2),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(3),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(5),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(4),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(6),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__),react__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(0),react__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_5__),react_css_modules__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(10),react_css_modules__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(react_css_modules__WEBPACK_IMPORTED_MODULE_6__),_ContainerComponent_sss__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(812),_ContainerComponent_sss__WEBPACK_IMPORTED_MODULE_7___default=__webpack_require__.n(_ContainerComponent_sss__WEBPACK_IMPORTED_MODULE_7__),_dec,_class;!function(){var e=__webpack_require__(1).enterModule;e&&e(module)}();var ContainerComponent=(_dec=react_css_modules__WEBPACK_IMPORTED_MODULE_6___default()(_ContainerComponent_sss__WEBPACK_IMPORTED_MODULE_7___default.a,{allowMultiple:!0}),_dec(_class=function(_Component){function ContainerComponent(){return _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this,ContainerComponent),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default()(this,_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default()(ContainerComponent).apply(this,arguments))}return _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default()(ContainerComponent,_Component),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(ContainerComponent,[{key:"render",value:function(){var e=this.props,t=e.haveTitle2,r=e.title,n=e.titles,_=e.children,a=e.onClickBack,i=e.onClickRLink,o=e.rLinkTitle,s=e.backgroundOffset,l="header";t&&(l="header header-double");var u=n;r&&(u=react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{styleName:"title"},r));var c={};return s&&(c={height:"calc(100% - ".concat(s,"px)")}),react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{styleName:"ContainerComponent"},react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{styleName:"background",style:c}),react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{styleName:l},a&&react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{styleName:"back",onClick:a},"Back"),u,o&&i&&react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{styleName:"json-fields",onClick:i},o)),react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{styleName:"content"},_))}},{key:"__reactstandin__regenerateByEval",value:function __reactstandin__regenerateByEval(key,code){this[key]=eval(code)}}]),ContainerComponent}(react__WEBPACK_IMPORTED_MODULE_5__.Component))||_class);!function(){var e=__webpack_require__(1).default,t=__webpack_require__(1).leaveModule;e&&(e.register(ContainerComponent,"ContainerComponent","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/components/elements/ContainerComponent/ContainerComponent.js"),t(module))}()}).call(this,__webpack_require__(12)(module))},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,r){"use strict";var n=r(44),_=r(196)(1);n(n.P+n.F*!r(126)([].map,!0),"Array",{map:function(e){return _(this,e,arguments[1])}})},function(e,t){e.exports=function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}},function(e,t,r){"use strict";var n=this&&this.__assign||Object.assign||function(e){for(var t,r=1,n=arguments.length;r-1;a--)if(r(e[a-1])){n=a;break}for(a=t;a=0&&r>=0;_--)switch(e.charCodeAt(_)){case 32:continue;case 10:r--,n=!1;break;default:return r}return n?0:r}function u(e,t){if(void 0===e&&(e=""),t===e.length-1)return 0;for(var r=2,n=!0,_=t;_=0;_++)switch(e.charCodeAt(_)){case 32:continue;case 10:r--,n=!1;break;default:return r}return n?0:r}function c(e){var t=e.text,r=e.selection,n=u(t,r.end),_=Array(n+1).join("\n"),a=t,i=0;if(_){var o=s(t,_,r.end);a=o.newText,i=o.insertionLength}return{newText:a,insertionLength:i,newSelection:r}}function d(e,t,r){var n=e.slice(r.start,r.end).split(/\n/),_=0,a=n.map(function(e,r){if("string"==typeof t)return _+=t.length,t+e;if("function"==typeof t){var n=t(e,r);return _+=n.length,t(e,r)+e}throw Error("insertion is expected to be either a string or a function")}).join("\n");return{newText:e.slice(0,r.start)+a+e.slice(r.end),insertionLength:_,newSelection:{start:n.length>1?r.start:r.start+_,end:r.end+_}}}Object.defineProperty(t,"__esModule",{value:!0}),t.getSurroundingWord=_,t.insertBeforeAndAfter=function(e,t){var r=e.text,n=e.selection,_=s(r,t,(n=a({text:r,selection:n})).start),i=_.newText,o=_.insertionLength;return{text:s(i,t,n.end+o).newText,selection:{start:n.start+o,end:n.end+o}}},t.selectWordIfCaretIsInsideOne=a,t.insertBreaksBeforeSoThatThereIsAnEmptyLineBefore=i,t.insertBefore=o,t.insertAfter=function(e,t,r){var _=s(e,t,r.end),a={start:r.start,end:r.end+_.insertionLength};return n({},_,{newSelection:a})},t.insertText=s,t.getBreaksNeededForEmptyLineBefore=l,t.getBreaksNeededForEmptyLineAfter=u,t.insertBreaksAfterSoThatThereIsAnEmptyLineAfter=c,t.insertBeforeEachLine=d,t.makeList=function(e,t){var r,n=e.text,_=e.selection;return{text:n=(r=d(n=(r=c({text:n=(r=i({text:n,selection:_=a({text:n,selection:_})})).newText,selection:_=r.newSelection})).newText,t,_=r.newSelection)).newText,selection:_=r.newSelection}},t.onTab=function(e,t){for(var r=e.text,n=e.selection,_=0,a=n.start;a-1>-1;a--)if("\n"===r[a-1]){_=a;break}var i=r.length;for(a=n.end;a0&&void 0!==arguments[0]?arguments[0]:d;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,h(r)))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.getKey=function(){return this.get("key")},t.prototype.getType=function(){return this.get("type")},t.prototype.getText=function(){return this.get("text")},t.prototype.getCharacterList=function(){return this.get("characterList")},t.prototype.getLength=function(){return this.getText().length},t.prototype.getDepth=function(){return this.get("depth")},t.prototype.getData=function(){return this.get("data")},t.prototype.getInlineStyleAt=function(e){var t=this.getCharacterList().get(e);return t?t.getStyle():c},t.prototype.getEntityAt=function(e){var t=this.getCharacterList().get(e);return t?t.getEntity():null},t.prototype.getChildKeys=function(){return this.get("children")},t.prototype.getParentKey=function(){return this.get("parent")},t.prototype.getPrevSiblingKey=function(){return this.get("prevSibling")},t.prototype.getNextSiblingKey=function(){return this.get("nextSibling")},t.prototype.findStyleRanges=function(e,t){a(this.getCharacterList(),f,e,t)},t.prototype.findEntityRanges=function(e,t){a(this.getCharacterList(),p,e,t)},t}(l(d));e.exports=E},function(module,__webpack_exports__,__webpack_require__){"use strict";(function(module){__webpack_require__.d(__webpack_exports__,"a",function(){return ContentBase});var core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(32),core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_0__),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(2),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(3),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(5),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(4),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(6),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5__),react__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(0),react__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_6__),react_css_modules__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(10),react_css_modules__WEBPACK_IMPORTED_MODULE_7___default=__webpack_require__.n(react_css_modules__WEBPACK_IMPORTED_MODULE_7__),_ContentEdit_sss__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(828),_ContentEdit_sss__WEBPACK_IMPORTED_MODULE_8___default=__webpack_require__.n(_ContentEdit_sss__WEBPACK_IMPORTED_MODULE_8__),_dec,_class;!function(){var e=__webpack_require__(1).enterModule;e&&e(module)}();var ContentBase=(_dec=react_css_modules__WEBPACK_IMPORTED_MODULE_7___default()(_ContentEdit_sss__WEBPACK_IMPORTED_MODULE_8___default.a,{allowMultiple:!0}),_dec(_class=function(_Component){function ContentBase(e){var t;return _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this,ContentBase),(t=_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this,_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(ContentBase).call(this,e))).state={error:null,value:null,isEditable:!1},t.field=null,t.setFieldValue=null,t.field=e.field,t.setFieldValue=e.setFieldValue,t.state.isEditable=e.isEditable,t.state.value=e.value,t}return _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5___default()(ContentBase,_Component),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default()(ContentBase,[{key:"componentWillReceiveProps",value:function(e){this.setState({isEditable:e.isEditable,value:e.value})}},{key:"setValue",value:function(e,t){this.setState({value:e,error:null}),this.setFieldValue(this.field,e,t)}},{key:"getError",value:function(){return this.field.isRequired&&!this.state.value?"This field is required!":null}},{key:"validate",value:function(){var e=this.getError();return this.setState({error:e}),!e}},{key:"getTitle",value:function(){return react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"field-title"},this.field.name)}},{key:"getInput",value:function(){return null}},{key:"render",value:function(){return react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"field"},this.getTitle(),this.getInput(),react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"field-error"},this.state.error))}},{key:"__reactstandin__regenerateByEval",value:function __reactstandin__regenerateByEval(key,code){this[key]=eval(code)}}]),ContentBase}(react__WEBPACK_IMPORTED_MODULE_6__.Component))||_class);!function(){var e=__webpack_require__(1).default,t=__webpack_require__(1).leaveModule;e&&(e.register(ContentBase,"ContentBase","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/components/mainArea/content/ContentEdit/elements/ContentBase.js"),t(module))}()}).call(this,__webpack_require__(12)(module))},function(e,t,r){var n=r(57);e.exports=function(e){if(!n(e))throw TypeError(e+" is not an object!");return e}},function(e,t,r){"use strict";e.exports=function(e){if(null!=e)return e;throw new Error("Got unexpected null or undefined")}},function(e,t,r){r(4);var n=r(568);function _(t,r,a){return"undefined"!=typeof Reflect&&Reflect.get?e.exports=_=Reflect.get:e.exports=_=function(e,t,r){var _=n(e,t);if(_){var a=Object.getOwnPropertyDescriptor(_,t);return a.get?a.get.call(r):a.value}},_(t,r,a||t)}e.exports=_},function(e,t,r){var n=r(42),_=r(84),a=r(96),i=r(119)("src"),o=Function.toString,s=(""+o).split("toString");r(94).inspectSource=function(e){return o.call(e)},(e.exports=function(e,t,r,o){var l="function"==typeof r;l&&(a(r,"name")||_(r,"name",t)),e[t]!==r&&(l&&(a(r,i)||_(r,i,e[t]?""+e[t]:s.join(String(t)))),e===n?e[t]=r:o?e[t]?e[t]=r:_(e,t,r):(delete e[t],_(e,t,r)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[i]||o.call(this)})},function(e,t,r){"use strict";var n=r(630),_=r(633),a=r(634),i=r(635);function o(e,t,r,n){if(e===r)return!0;if(!r.startsWith(e))return!1;var a=r.slice(e.length);return!!t&&(a=n?n(a):a,_.contains(a,t))}function s(e){return"Windows"===n.platformName?e.replace(/^\s*NT/,""):e}var l={isBrowser:function(e){return o(n.browserName,n.browserFullVersion,e)},isBrowserArchitecture:function(e){return o(n.browserArchitecture,null,e)},isDevice:function(e){return o(n.deviceName,null,e)},isEngine:function(e){return o(n.engineName,n.engineVersion,e)},isPlatform:function(e){return o(n.platformName,n.platformFullVersion,e,s)},isPlatformArchitecture:function(e){return o(n.platformArchitecture,null,e)}};e.exports=a(l,i)},function(e,t,r){"use strict";(function(e,n){r.d(t,"b",function(){return s}),r.d(t,"c",function(){return c}),r.d(t,"a",function(){return d});var _=r(14),a=r(21),i=r(24),o=r(142);!function(){var t=r(1).enterModule;t&&t(e)}();var s={};function l(){return s.serverURL=n.env.REACT_APP_SERVER_URL||o.b.serverURL,s.appId=n.env.REACT_APP_APP_ID||o.b.appId,fetch("/chisel-config.json").then(function(e){if(e.ok)return e.json();throw e.statusText}).then(function(e){s.serverURL=e.configServerURL||s.serverURL,s.appId=e.configAppId||s.appId}).catch(function(){})}function u(){_.Parse.initialize(s.appId),_.Parse.serverURL=s.serverURL}function c(){l().then(function(){u(),a.store.dispatch(Object(i.j)())}).catch(function(e){console.log(e)})}function d(e){e&&(s.serverURL=e,localStorage.setItem("parseServerURL",e),_.Parse.serverURL=e)}!function(){var t=r(1).default,n=r(1).leaveModule;t&&(t.register(s,"config","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/initialize.js"),t.register(l,"requestConfig","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/initialize.js"),t.register(u,"subInitParse","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/initialize.js"),t.register(c,"initApp","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/initialize.js"),t.register(d,"changeServerURL","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/initialize.js"),n(e))}()}).call(this,r(12)(e),r(130))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t=0;a--){var i=_[a],o=r[i];o!==n[i]&&(-1===u.indexOf(i)||Array.isArray(o)||(o=[o]),this.flatpickr.set(i,o))}e.hasOwnProperty("value")&&e.value!==this.props.value&&this.flatpickr.setDate(e.value,!1)}},{key:"componentDidMount",value:function(){var e=this,t=n({onClose:function(){e.node.blur&&e.node.blur()}},this.props.options);u.forEach(function(r){e.props[r]&&(t[r]=e.props[r])}),this.flatpickr=new s.default(this.node,t),this.props.hasOwnProperty("value")&&this.flatpickr.setDate(this.props.value,!1)}},{key:"componentWillUnmount",value:function(){this.flatpickr.destroy()}},{key:"render",value:function(){var e=this,t=this.props,r=t.options,_=t.defaultValue,a=(t.value,t.children),o=function(e,t){var r={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r}(t,["options","defaultValue","value","children"]);return u.forEach(function(e){delete o[e]}),r.wrap?i.default.createElement("div",n({},o,{ref:function(t){e.node=t}}),a):i.default.createElement("input",n({},o,{defaultValue:_,ref:function(t){e.node=t}}))}}]),t}();c.propTypes={defaultValue:o.default.string,options:o.default.object,onChange:o.default.func,onOpen:o.default.func,onClose:o.default.func,onMonthChange:o.default.func,onYearChange:o.default.func,onReady:o.default.func,onValueUpdate:o.default.func,onDayCreate:o.default.func,value:o.default.oneOfType([o.default.string,o.default.array,o.default.object,o.default.number]),children:o.default.node},c.defaultProps={options:{}},t.default=c},function(e,t,r){var n=r(238),_="object"==typeof self&&self&&self.Object===Object&&self,a=n||_||Function("return this")();e.exports=a},function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},function(e,t,r){"use strict";var n=r(264),_=r(265),a=r(121),i=r(95);e.exports=r(191)(Array,"Array",function(e,t){this._t=i(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,r=this._i++;return!e||r>=e.length?(this._t=void 0,_(1)):_(0,"keys"==t?r:"values"==t?e[r]:[r,e[r]])},"values"),a.Arguments=a.Array,n("keys"),n("values"),n("entries")},function(e,t){e.exports='Group 4Created with Sketch.'},function(e,t,r){"use strict";var n={},_=Math.pow(2,24);e.exports=function(){for(var e=void 0;void 0===e||n.hasOwnProperty(e)||!isNaN(+e);)e=Math.floor(Math.random()*_).toString(32);return n[e]=!0,e}},function(e,t,r){"use strict";e.exports=function(){}},function(e,t,r){var n; /*! Copyright (c) 2017 Jed Watson. Licensed under the MIT License (MIT), see @@ -14,7 +14,7 @@ object-assign Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames */ -!function(){"use strict";var r={}.hasOwnProperty;function _(){for(var e=[],t=0;t0&&void 0!==arguments[0]?arguments[0]:b,t=arguments.length>1?arguments[1]:void 0,r=e.items;switch(t.type){case u:return _()({},e,{items:t.items});case c:return r.push(t.item),_()({},e,{items:r});case f:return r.splice(r.indexOf(t.item),1),_()({},e,{items:r});case d:return _()({},e);default:return e}}!function(){var t=r(1).default,n=r(1).leaveModule;t&&(t.register(u,"INIT_END","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/media.js"),t.register(c,"ITEM_ADD","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/media.js"),t.register(d,"ITEM_UPDATE","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/media.js"),t.register(f,"ITEM_DELETE","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/media.js"),t.register(p,"requestMedia","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/media.js"),t.register(h,"init","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/media.js"),t.register(E,"addMediaItem","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/media.js"),t.register(m,"updateMediaItem","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/media.js"),t.register(g,"removeMediaItem","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/media.js"),t.register(b,"initialState","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/media.js"),t.register(v,"mediaReducer","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/media.js"),n(e))}()}).call(this,r(12)(e))},function(e,t,r){"use strict";t.__esModule=!0,t.createPath=t.parsePath=t.getQueryStringValueFromPath=t.stripQueryStringValueFromPath=t.addQueryStringValueToPath=void 0;!function(e){e&&e.__esModule}(r(79));t.addQueryStringValueToPath=function(e,t,r){var a=n(e),i=a.pathname,o=a.search,s=a.hash;return _({pathname:i,search:o+(-1===o.indexOf("?")?"?":"&")+t+"="+r,hash:s})},t.stripQueryStringValueFromPath=function(e,t){var r=n(e),a=r.pathname,i=r.search,o=r.hash;return _({pathname:a,search:i.replace(new RegExp("([?&])"+t+"=[a-zA-Z0-9]+(&?)"),function(e,t,r){return"?"===t?t:r}),hash:o})},t.getQueryStringValueFromPath=function(e,t){var r=n(e).search.match(new RegExp("[?&]"+t+"=([a-zA-Z0-9]+)"));return r&&r[1]};var n=t.parsePath=function(e){var t=function(e){var t=e.match(/^(https?:)?\/\/[^\/]*/);return null==t?e:e.substring(t[0].length)}(e),r="",n="",_=t.indexOf("#");-1!==_&&(n=t.substring(_),t=t.substring(0,_));var a=t.indexOf("?");return-1!==a&&(r=t.substring(a),t=t.substring(0,a)),""===t&&(t="/"),{pathname:t,search:r,hash:n}},_=t.createPath=function(e){if(null==e||"string"==typeof e)return e;var t=e.basename,r=e.pathname,n=e.search,_=e.hash,a=(t||"")+r;return n&&"?"!==n&&(a+=n),_&&(a+=_),a}},function(e,t,r){var n=r(63),_=r(121);e.exports=r(64)?function(e,t,r){return n.f(e,t,_(1,r))}:function(e,t,r){return e[t]=r,e}},function(e,t,r){var n=r(124);e.exports=function(e,t,r){if(n(e),void 0===t)return e;switch(r){case 1:return function(r){return e.call(t,r)};case 2:return function(r,n){return e.call(t,r,n)};case 3:return function(r,n,_){return e.call(t,r,n,_)}}return function(){return e.apply(t,arguments)}}},function(e,t){e.exports='icon-HammerCreated with Sketch.'},function(e,t,r){"use strict";var n=r(26);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var _=n(r(2)),a=n(r(3)),i=n(r(5)),o=n(r(4)),s=n(r(6)),l=n(r(148)),u=function(e){function t(e,r){var n;return(0,_.default)(this,t),(n=(0,i.default)(this,(0,o.default)(t).call(this,r))).code=e,Object.defineProperty((0,l.default)((0,l.default)(n)),"message",{enumerable:!0,value:r}),n}return(0,s.default)(t,e),(0,a.default)(t,[{key:"toString",value:function(){return"ParseError: "+this.code+" "+this.message}}]),t}((0,n(r(569)).default)(Error));u.OTHER_CAUSE=-1,u.INTERNAL_SERVER_ERROR=1,u.CONNECTION_FAILED=100,u.OBJECT_NOT_FOUND=101,u.INVALID_QUERY=102,u.INVALID_CLASS_NAME=103,u.MISSING_OBJECT_ID=104,u.INVALID_KEY_NAME=105,u.INVALID_POINTER=106,u.INVALID_JSON=107,u.COMMAND_UNAVAILABLE=108,u.NOT_INITIALIZED=109,u.INCORRECT_TYPE=111,u.INVALID_CHANNEL_NAME=112,u.PUSH_MISCONFIGURED=115,u.OBJECT_TOO_LARGE=116,u.OPERATION_FORBIDDEN=119,u.CACHE_MISS=120,u.INVALID_NESTED_KEY=121,u.INVALID_FILE_NAME=122,u.INVALID_ACL=123,u.TIMEOUT=124,u.INVALID_EMAIL_ADDRESS=125,u.MISSING_CONTENT_TYPE=126,u.MISSING_CONTENT_LENGTH=127,u.INVALID_CONTENT_LENGTH=128,u.FILE_TOO_LARGE=129,u.FILE_SAVE_ERROR=130,u.DUPLICATE_VALUE=137,u.INVALID_ROLE_NAME=139,u.EXCEEDED_QUOTA=140,u.SCRIPT_FAILED=141,u.VALIDATION_ERROR=142,u.INVALID_IMAGE_DATA=143,u.UNSAVED_FILE_ERROR=151,u.INVALID_PUSH_TIME_ERROR=152,u.FILE_DELETE_ERROR=153,u.REQUEST_LIMIT_EXCEEDED=155,u.INVALID_EVENT_NAME=160,u.USERNAME_MISSING=200,u.PASSWORD_MISSING=201,u.USERNAME_TAKEN=202,u.EMAIL_TAKEN=203,u.EMAIL_MISSING=204,u.EMAIL_NOT_FOUND=205,u.SESSION_MISSING=206,u.MUST_CREATE_USER_THROUGH_SIGNUP=207,u.ACCOUNT_ALREADY_LINKED=208,u.INVALID_SESSION_TOKEN=209,u.LINKED_ID_MISSING=250,u.INVALID_LINKED_SESSION=251,u.UNSUPPORTED_SERVICE=252,u.INVALID_SCHEMA_OPERATION=255,u.AGGREGATE_ERROR=600,u.FILE_READ_ERROR=601,u.X_DOMAIN_REQUEST=602;var c=u;t.default=c},function(e,t,r){"use strict";var n=r(26);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var _=n(r(2)),a=n(r(3)),i=n(r(59)),o=r(108),s=(n(r(46)),n(r(133))),l=function(){function e(t,r){(0,_.default)(this,e),(0,i.default)(this,"parent",void 0),(0,i.default)(this,"key",void 0),(0,i.default)(this,"targetClassName",void 0),this.parent=t,this.key=r,this.targetClassName=null}return(0,a.default)(e,[{key:"_ensureParentAndKey",value:function(e,t){if(this.key=this.key||t,this.key!==t)throw new Error("Internal Error. Relation retrieved from two different keys.");if(this.parent){if(this.parent.className!==e.className)throw new Error("Internal Error. Relation retrieved from two different Objects.");if(this.parent.id){if(this.parent.id!==e.id)throw new Error("Internal Error. Relation retrieved from two different Objects.")}else e.id&&(this.parent=e)}else this.parent=e}},{key:"add",value:function(e){Array.isArray(e)||(e=[e]);var t=new o.RelationOp(e,[]),r=this.parent;if(!r)throw new Error("Cannot add to a Relation without a parent");return r.set(this.key,t),this.targetClassName=t._targetClassName,r}},{key:"remove",value:function(e){Array.isArray(e)||(e=[e]);var t=new o.RelationOp([],e);if(!this.parent)throw new Error("Cannot remove from a Relation without a parent");this.parent.set(this.key,t),this.targetClassName=t._targetClassName}},{key:"toJSON",value:function(){return{__type:"Relation",className:this.targetClassName}}},{key:"query",value:function(){var e,t=this.parent;if(!t)throw new Error("Cannot construct a query for a Relation without a parent");return this.targetClassName?e=new s.default(this.targetClassName):(e=new s.default(t.className),e._extraOptions.redirectClassNameForKey=this.key),e._addCondition("$relatedTo","object",{__type:"Pointer",className:t.className,objectId:t.id}),e._addCondition("$relatedTo","key",this.key),e}}]),e}();t.default=l},function(e,t,r){"use strict";var n=r(608);e.exports=n},function(e,t,r){"use strict";(function(e){r.d(t,"b",function(){return f}),r.d(t,"c",function(){return p}),r.d(t,"d",function(){return h}),r.d(t,"a",function(){return g});r(45);var n=r(11),_=r.n(n),a=(r(302),r(21));!function(){var t=r(1).enterModule;t&&t(e)}();var i="app/serverStatus/LOG_REQUEST",o="app/serverStatus/LOG_RESPONSE",s="app/serverStatus/SET_PROBLEM_B",l="app/serverStatus/TIMER_TICK",u=0,c=7e3,d=2e4;function f(e){return u||(u=setInterval(function(){return a.store.dispatch(E())},1e3)),{type:i,time:e}}function p(e){var t=a.store.getState().serverStatus.requests;return(!t.length||1==t.length&&t[0]==e)&&(clearInterval(u),u=0),{type:o,time:e}}function h(){return clearInterval(u),u=0,{type:s}}function E(){return{type:l,time:Date.now()}}var m={requests:[],problemA:!1,problemB:!1};function g(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:m,t=arguments.length>1?arguments[1]:void 0,r=e.requests.slice();switch(t.type){case i:return r.push(t.time),_()({},e,{problemB:!1,requests:r});case o:return r.splice(r.indexOf(t.time),1),r.length?_()({},e,{requests:r}):_()({},e,{requests:r,problemA:!1,problemB:!1});case l:return _()({},e,{problemA:t.time-r[0]>c,problemB:t.time-r[0]>d});case s:return _()({},e,{problemB:!0});default:return e}}!function(){var t=r(1).default,n=r(1).leaveModule;t&&(t.register(i,"LOG_REQUEST","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/serverStatus.js"),t.register(o,"LOG_RESPONSE","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/serverStatus.js"),t.register(s,"SET_PROBLEM_B","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/serverStatus.js"),t.register(l,"TIMER_TICK","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/serverStatus.js"),t.register(u,"timer","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/serverStatus.js"),t.register(c,"TIME_A","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/serverStatus.js"),t.register(d,"TIME_B","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/serverStatus.js"),t.register(f,"logRequest","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/serverStatus.js"),t.register(p,"logResponse","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/serverStatus.js"),t.register(h,"setProblemB","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/serverStatus.js"),t.register(E,"timerTick","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/serverStatus.js"),t.register(m,"initialState","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/serverStatus.js"),t.register(g,"serverStatusReducer","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/serverStatus.js"),n(e))}()}).call(this,r(12)(e))},function(e,t,r){var n=r(150),_=r(407),a=r(408),i="[object Null]",o="[object Undefined]",s=n?n.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?o:i:s&&s in Object(e)?_(e):a(e)}},function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},function(e,t,r){var n=r(445),_=r(448);e.exports=function(e,t){var r=_(e,t);return n(r)?r:void 0}},function(e,t){var r=e.exports={version:"2.5.7"};"number"==typeof __e&&(__e=r)},function(e,t,r){var n=r(190),_=r(123);e.exports=function(e){return n(_(e))}},function(e,t){var r={}.hasOwnProperty;e.exports=function(e,t){return r.call(e,t)}},function(e,t,r){"use strict";var n=r(539)(!0);r(191)(String,"String",function(e){this._t=String(e),this._i=0},function(){var e,t=this._t,r=this._i;return r>=t.length?{value:void 0,done:!0}:(e=n(t,r),this._i+=e.length,{value:e,done:!1})})},function(e,t,r){"use strict";var n=r(26);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var _=n(r(2)),a=n(r(3)),i=n(r(59)),o=n(r(47)),s=/^data:([a-zA-Z]+\/[-a-zA-Z0-9+.]+)(;charset=[a-zA-Z0-9\-\/]*)?;base64,/;function l(e){if(e<26)return String.fromCharCode(65+e);if(e<52)return String.fromCharCode(e-26+97);if(e<62)return String.fromCharCode(e-52+48);if(62===e)return"+";if(63===e)return"/";throw new TypeError("Tried to encode large digit "+e+" in base64.")}var u=function(){function e(t,r,n){(0,_.default)(this,e),(0,i.default)(this,"_name",void 0),(0,i.default)(this,"_url",void 0),(0,i.default)(this,"_source",void 0),(0,i.default)(this,"_previousSave",void 0);var a=n||"";if(this._name=t,void 0!==r)if(Array.isArray(r))this._source={format:"base64",base64:e.encodeBase64(r),type:a};else if("undefined"!=typeof File&&r instanceof File)this._source={format:"file",file:r,type:a};else{if(!r||"string"!=typeof r.base64)throw new TypeError("Cannot create a Parse.File with that data.");var o=r.base64,l=o.indexOf(",");if(-1!==l){var u=s.exec(o.slice(0,l+1));this._source={format:"base64",base64:o.slice(l+1),type:u[1]}}else this._source={format:"base64",base64:o,type:a}}}return(0,a.default)(e,[{key:"name",value:function(){return this._name}},{key:"url",value:function(e){if(e=e||{},this._url)return e.forceSecure?this._url.replace(/^http:\/\//i,"https://"):this._url}},{key:"save",value:function(e){var t=this;e=e||{};var r=o.default.getFileController();if(this._previousSave||("file"===this._source.format?this._previousSave=r.saveFile(this._name,this._source,e).then(function(e){return t._name=e.name,t._url=e.url,t}):this._previousSave=r.saveBase64(this._name,this._source,e).then(function(e){return t._name=e.name,t._url=e.url,t})),this._previousSave)return this._previousSave}},{key:"toJSON",value:function(){return{__type:"File",name:this._name,url:this._url}}},{key:"equals",value:function(t){return this===t||t instanceof e&&this.name()===t.name()&&this.url()===t.url()&&void 0!==this.url()}}],[{key:"fromJSON",value:function(t){if("File"!==t.__type)throw new TypeError("JSON object does not represent a ParseFile");var r=new e(t.name);return r._url=t.url,r}},{key:"encodeBase64",value:function(e){var t=[];t.length=Math.ceil(e.length/3);for(var r=0;r>2&63),l(n<<4&48|_>>4&15),i?l(_<<2&60|a>>6&3):"=",o?l(63&a):"="].join("")}return t.join("")}}]),e}(),c={saveFile:function(e,t){if("file"!==t.format)throw new Error("saveFile can only be used with File-type sources.");var r={"X-Parse-Application-ID":o.default.get("APPLICATION_ID"),"Content-Type":t.type||(t.file?t.file.type:null)},n=o.default.get("JAVASCRIPT_KEY");n&&(r["X-Parse-JavaScript-Key"]=n);var _=o.default.get("SERVER_URL");return"/"!==_[_.length-1]&&(_+="/"),_+="files/"+e,o.default.getRESTController().ajax("POST",_,t.file,r).then(function(e){return e.response})},saveBase64:function(e,t,r){if("base64"!==t.format)throw new Error("saveBase64 can only be used with Base64-type sources.");var n={base64:t.base64};return t.type&&(n._ContentType=t.type),o.default.getRESTController().request("POST","files/"+e,n,r)}};o.default.setFileController(c);var d=u;t.default=d},function(e,t,r){"use strict";var n=r(61),_=r(30),a=r(136),i=_.List,o=_.Map,s=_.OrderedSet,l=_.Record,u=_.Repeat,c=s(),d=function(e){if(!e)return e;var t=e.characterList,r=e.text;return r&&!t&&(e.characterList=i(u(n.EMPTY,r.length))),e},f=function(e){function t(r){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,d(r)))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.getKey=function(){return this.get("key")},t.prototype.getType=function(){return this.get("type")},t.prototype.getText=function(){return this.get("text")},t.prototype.getCharacterList=function(){return this.get("characterList")},t.prototype.getLength=function(){return this.getText().length},t.prototype.getDepth=function(){return this.get("depth")},t.prototype.getData=function(){return this.get("data")},t.prototype.getInlineStyleAt=function(e){var t=this.getCharacterList().get(e);return t?t.getStyle():c},t.prototype.getEntityAt=function(e){var t=this.getCharacterList().get(e);return t?t.getEntity():null},t.prototype.findStyleRanges=function(e,t){a(this.getCharacterList(),p,e,t)},t.prototype.findEntityRanges=function(e,t){a(this.getCharacterList(),h,e,t)},t}(l({key:"",type:"unstyled",text:"",characterList:i(),depth:0,data:o()}));function p(e,t){return e.getStyle()===t.getStyle()}function h(e,t){return e.getEntity()===t.getEntity()}e.exports=f},function(e,t,r){"use strict";var n=r(29),_=55296,a=56319,i=56320,o=57343,s=/[\uD800-\uDFFF]/;function l(e){return _<=e&&e<=o}function u(e){return s.test(e)}function c(e,t){return 1+l(e.charCodeAt(t))}function d(e,t,r){if(t=t||0,r=void 0===r?1/0:r||0,!u(e))return e.substr(t,r);var n=e.length;if(n<=0||t>n||r<=0)return"";var _=0;if(t>0){for(;t>0&&_=n)return""}else if(t<0){for(_=n;t<0&&0<_;t++)_-=c(e,_-1);_<0&&(_=0)}var a=n;if(r0&&a0&&void 0!==arguments[0]?arguments[0]:b,t=arguments.length>1?arguments[1]:void 0,r=e.items;switch(t.type){case u:return _()({},e,{items:t.items});case c:return r.push(t.item),_()({},e,{items:r});case f:return r.splice(r.indexOf(t.item),1),_()({},e,{items:r});case d:return _()({},e);default:return e}}!function(){var t=r(1).default,n=r(1).leaveModule;t&&(t.register(u,"INIT_END","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/media.js"),t.register(c,"ITEM_ADD","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/media.js"),t.register(d,"ITEM_UPDATE","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/media.js"),t.register(f,"ITEM_DELETE","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/media.js"),t.register(p,"requestMedia","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/media.js"),t.register(h,"init","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/media.js"),t.register(E,"addMediaItem","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/media.js"),t.register(m,"updateMediaItem","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/media.js"),t.register(g,"removeMediaItem","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/media.js"),t.register(b,"initialState","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/media.js"),t.register(v,"mediaReducer","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/media.js"),n(e))}()}).call(this,r(12)(e))},function(e,t,r){"use strict";t.__esModule=!0,t.createPath=t.parsePath=t.getQueryStringValueFromPath=t.stripQueryStringValueFromPath=t.addQueryStringValueToPath=void 0;!function(e){e&&e.__esModule}(r(79));t.addQueryStringValueToPath=function(e,t,r){var a=n(e),i=a.pathname,o=a.search,s=a.hash;return _({pathname:i,search:o+(-1===o.indexOf("?")?"?":"&")+t+"="+r,hash:s})},t.stripQueryStringValueFromPath=function(e,t){var r=n(e),a=r.pathname,i=r.search,o=r.hash;return _({pathname:a,search:i.replace(new RegExp("([?&])"+t+"=[a-zA-Z0-9]+(&?)"),function(e,t,r){return"?"===t?t:r}),hash:o})},t.getQueryStringValueFromPath=function(e,t){var r=n(e).search.match(new RegExp("[?&]"+t+"=([a-zA-Z0-9]+)"));return r&&r[1]};var n=t.parsePath=function(e){var t=function(e){var t=e.match(/^(https?:)?\/\/[^\/]*/);return null==t?e:e.substring(t[0].length)}(e),r="",n="",_=t.indexOf("#");-1!==_&&(n=t.substring(_),t=t.substring(0,_));var a=t.indexOf("?");return-1!==a&&(r=t.substring(a),t=t.substring(0,a)),""===t&&(t="/"),{pathname:t,search:r,hash:n}},_=t.createPath=function(e){if(null==e||"string"==typeof e)return e;var t=e.basename,r=e.pathname,n=e.search,_=e.hash,a=(t||"")+r;return n&&"?"!==n&&(a+=n),_&&(a+=_),a}},function(e,t,r){var n=r(63),_=r(120);e.exports=r(64)?function(e,t,r){return n.f(e,t,_(1,r))}:function(e,t,r){return e[t]=r,e}},function(e,t,r){var n=r(123);e.exports=function(e,t,r){if(n(e),void 0===t)return e;switch(r){case 1:return function(r){return e.call(t,r)};case 2:return function(r,n){return e.call(t,r,n)};case 3:return function(r,n,_){return e.call(t,r,n,_)}}return function(){return e.apply(t,arguments)}}},function(e,t){e.exports='icon-HammerCreated with Sketch.'},function(e,t,r){"use strict";var n=r(26);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var _=n(r(2)),a=n(r(3)),i=n(r(5)),o=n(r(4)),s=n(r(6)),l=n(r(148)),u=function(e){function t(e,r){var n;return(0,_.default)(this,t),(n=(0,i.default)(this,(0,o.default)(t).call(this,r))).code=e,Object.defineProperty((0,l.default)((0,l.default)(n)),"message",{enumerable:!0,value:r}),n}return(0,s.default)(t,e),(0,a.default)(t,[{key:"toString",value:function(){return"ParseError: "+this.code+" "+this.message}}]),t}((0,n(r(569)).default)(Error));u.OTHER_CAUSE=-1,u.INTERNAL_SERVER_ERROR=1,u.CONNECTION_FAILED=100,u.OBJECT_NOT_FOUND=101,u.INVALID_QUERY=102,u.INVALID_CLASS_NAME=103,u.MISSING_OBJECT_ID=104,u.INVALID_KEY_NAME=105,u.INVALID_POINTER=106,u.INVALID_JSON=107,u.COMMAND_UNAVAILABLE=108,u.NOT_INITIALIZED=109,u.INCORRECT_TYPE=111,u.INVALID_CHANNEL_NAME=112,u.PUSH_MISCONFIGURED=115,u.OBJECT_TOO_LARGE=116,u.OPERATION_FORBIDDEN=119,u.CACHE_MISS=120,u.INVALID_NESTED_KEY=121,u.INVALID_FILE_NAME=122,u.INVALID_ACL=123,u.TIMEOUT=124,u.INVALID_EMAIL_ADDRESS=125,u.MISSING_CONTENT_TYPE=126,u.MISSING_CONTENT_LENGTH=127,u.INVALID_CONTENT_LENGTH=128,u.FILE_TOO_LARGE=129,u.FILE_SAVE_ERROR=130,u.DUPLICATE_VALUE=137,u.INVALID_ROLE_NAME=139,u.EXCEEDED_QUOTA=140,u.SCRIPT_FAILED=141,u.VALIDATION_ERROR=142,u.INVALID_IMAGE_DATA=143,u.UNSAVED_FILE_ERROR=151,u.INVALID_PUSH_TIME_ERROR=152,u.FILE_DELETE_ERROR=153,u.REQUEST_LIMIT_EXCEEDED=155,u.INVALID_EVENT_NAME=160,u.USERNAME_MISSING=200,u.PASSWORD_MISSING=201,u.USERNAME_TAKEN=202,u.EMAIL_TAKEN=203,u.EMAIL_MISSING=204,u.EMAIL_NOT_FOUND=205,u.SESSION_MISSING=206,u.MUST_CREATE_USER_THROUGH_SIGNUP=207,u.ACCOUNT_ALREADY_LINKED=208,u.INVALID_SESSION_TOKEN=209,u.LINKED_ID_MISSING=250,u.INVALID_LINKED_SESSION=251,u.UNSUPPORTED_SERVICE=252,u.INVALID_SCHEMA_OPERATION=255,u.AGGREGATE_ERROR=600,u.FILE_READ_ERROR=601,u.X_DOMAIN_REQUEST=602;var c=u;t.default=c},function(e,t,r){"use strict";var n=r(26);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var _=n(r(2)),a=n(r(3)),i=n(r(59)),o=r(107),s=(n(r(46)),n(r(132))),l=function(){function e(t,r){(0,_.default)(this,e),(0,i.default)(this,"parent",void 0),(0,i.default)(this,"key",void 0),(0,i.default)(this,"targetClassName",void 0),this.parent=t,this.key=r,this.targetClassName=null}return(0,a.default)(e,[{key:"_ensureParentAndKey",value:function(e,t){if(this.key=this.key||t,this.key!==t)throw new Error("Internal Error. Relation retrieved from two different keys.");if(this.parent){if(this.parent.className!==e.className)throw new Error("Internal Error. Relation retrieved from two different Objects.");if(this.parent.id){if(this.parent.id!==e.id)throw new Error("Internal Error. Relation retrieved from two different Objects.")}else e.id&&(this.parent=e)}else this.parent=e}},{key:"add",value:function(e){Array.isArray(e)||(e=[e]);var t=new o.RelationOp(e,[]),r=this.parent;if(!r)throw new Error("Cannot add to a Relation without a parent");return r.set(this.key,t),this.targetClassName=t._targetClassName,r}},{key:"remove",value:function(e){Array.isArray(e)||(e=[e]);var t=new o.RelationOp([],e);if(!this.parent)throw new Error("Cannot remove from a Relation without a parent");this.parent.set(this.key,t),this.targetClassName=t._targetClassName}},{key:"toJSON",value:function(){return{__type:"Relation",className:this.targetClassName}}},{key:"query",value:function(){var e,t=this.parent;if(!t)throw new Error("Cannot construct a query for a Relation without a parent");return this.targetClassName?e=new s.default(this.targetClassName):(e=new s.default(t.className),e._extraOptions.redirectClassNameForKey=this.key),e._addCondition("$relatedTo","object",{__type:"Pointer",className:t.className,objectId:t.id}),e._addCondition("$relatedTo","key",this.key),e}}]),e}();t.default=l},function(e,t,r){"use strict";var n=r(608);e.exports=n},function(e,t,r){"use strict";(function(e){r.d(t,"b",function(){return f}),r.d(t,"c",function(){return p}),r.d(t,"d",function(){return h}),r.d(t,"a",function(){return g});r(45);var n=r(11),_=r.n(n),a=(r(302),r(21));!function(){var t=r(1).enterModule;t&&t(e)}();var i="app/serverStatus/LOG_REQUEST",o="app/serverStatus/LOG_RESPONSE",s="app/serverStatus/SET_PROBLEM_B",l="app/serverStatus/TIMER_TICK",u=0,c=7e3,d=2e4;function f(e){return u||(u=setInterval(function(){return a.store.dispatch(E())},1e3)),{type:i,time:e}}function p(e){var t=a.store.getState().serverStatus.requests;return(!t.length||1==t.length&&t[0]==e)&&(clearInterval(u),u=0),{type:o,time:e}}function h(){return clearInterval(u),u=0,{type:s}}function E(){return{type:l,time:Date.now()}}var m={requests:[],problemA:!1,problemB:!1};function g(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:m,t=arguments.length>1?arguments[1]:void 0,r=e.requests.slice();switch(t.type){case i:return r.push(t.time),_()({},e,{problemB:!1,requests:r});case o:return r.splice(r.indexOf(t.time),1),r.length?_()({},e,{requests:r}):_()({},e,{requests:r,problemA:!1,problemB:!1});case l:return _()({},e,{problemA:t.time-r[0]>c,problemB:t.time-r[0]>d});case s:return _()({},e,{problemB:!0});default:return e}}!function(){var t=r(1).default,n=r(1).leaveModule;t&&(t.register(i,"LOG_REQUEST","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/serverStatus.js"),t.register(o,"LOG_RESPONSE","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/serverStatus.js"),t.register(s,"SET_PROBLEM_B","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/serverStatus.js"),t.register(l,"TIMER_TICK","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/serverStatus.js"),t.register(u,"timer","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/serverStatus.js"),t.register(c,"TIME_A","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/serverStatus.js"),t.register(d,"TIME_B","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/serverStatus.js"),t.register(f,"logRequest","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/serverStatus.js"),t.register(p,"logResponse","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/serverStatus.js"),t.register(h,"setProblemB","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/serverStatus.js"),t.register(E,"timerTick","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/serverStatus.js"),t.register(m,"initialState","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/serverStatus.js"),t.register(g,"serverStatusReducer","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/serverStatus.js"),n(e))}()}).call(this,r(12)(e))},function(e,t,r){var n=r(150),_=r(407),a=r(408),i="[object Null]",o="[object Undefined]",s=n?n.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?o:i:s&&s in Object(e)?_(e):a(e)}},function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},function(e,t,r){var n=r(445),_=r(448);e.exports=function(e,t){var r=_(e,t);return n(r)?r:void 0}},function(e,t){var r=e.exports={version:"2.5.7"};"number"==typeof __e&&(__e=r)},function(e,t,r){var n=r(190),_=r(122);e.exports=function(e){return n(_(e))}},function(e,t){var r={}.hasOwnProperty;e.exports=function(e,t){return r.call(e,t)}},function(e,t,r){"use strict";var n=r(539)(!0);r(191)(String,"String",function(e){this._t=String(e),this._i=0},function(){var e,t=this._t,r=this._i;return r>=t.length?{value:void 0,done:!0}:(e=n(t,r),this._i+=e.length,{value:e,done:!1})})},function(e,t,r){"use strict";var n=r(26);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var _=n(r(2)),a=n(r(3)),i=n(r(59)),o=n(r(47)),s=/^data:([a-zA-Z]+\/[-a-zA-Z0-9+.]+)(;charset=[a-zA-Z0-9\-\/]*)?;base64,/;function l(e){if(e<26)return String.fromCharCode(65+e);if(e<52)return String.fromCharCode(e-26+97);if(e<62)return String.fromCharCode(e-52+48);if(62===e)return"+";if(63===e)return"/";throw new TypeError("Tried to encode large digit "+e+" in base64.")}var u=function(){function e(t,r,n){(0,_.default)(this,e),(0,i.default)(this,"_name",void 0),(0,i.default)(this,"_url",void 0),(0,i.default)(this,"_source",void 0),(0,i.default)(this,"_previousSave",void 0);var a=n||"";if(this._name=t,void 0!==r)if(Array.isArray(r))this._source={format:"base64",base64:e.encodeBase64(r),type:a};else if("undefined"!=typeof File&&r instanceof File)this._source={format:"file",file:r,type:a};else{if(!r||"string"!=typeof r.base64)throw new TypeError("Cannot create a Parse.File with that data.");var o=r.base64,l=o.indexOf(",");if(-1!==l){var u=s.exec(o.slice(0,l+1));this._source={format:"base64",base64:o.slice(l+1),type:u[1]}}else this._source={format:"base64",base64:o,type:a}}}return(0,a.default)(e,[{key:"name",value:function(){return this._name}},{key:"url",value:function(e){if(e=e||{},this._url)return e.forceSecure?this._url.replace(/^http:\/\//i,"https://"):this._url}},{key:"save",value:function(e){var t=this;e=e||{};var r=o.default.getFileController();if(this._previousSave||("file"===this._source.format?this._previousSave=r.saveFile(this._name,this._source,e).then(function(e){return t._name=e.name,t._url=e.url,t}):this._previousSave=r.saveBase64(this._name,this._source,e).then(function(e){return t._name=e.name,t._url=e.url,t})),this._previousSave)return this._previousSave}},{key:"toJSON",value:function(){return{__type:"File",name:this._name,url:this._url}}},{key:"equals",value:function(t){return this===t||t instanceof e&&this.name()===t.name()&&this.url()===t.url()&&void 0!==this.url()}}],[{key:"fromJSON",value:function(t){if("File"!==t.__type)throw new TypeError("JSON object does not represent a ParseFile");var r=new e(t.name);return r._url=t.url,r}},{key:"encodeBase64",value:function(e){var t=[];t.length=Math.ceil(e.length/3);for(var r=0;r>2&63),l(n<<4&48|_>>4&15),i?l(_<<2&60|a>>6&3):"=",o?l(63&a):"="].join("")}return t.join("")}}]),e}(),c={saveFile:function(e,t){if("file"!==t.format)throw new Error("saveFile can only be used with File-type sources.");var r={"X-Parse-Application-ID":o.default.get("APPLICATION_ID"),"Content-Type":t.type||(t.file?t.file.type:null)},n=o.default.get("JAVASCRIPT_KEY");n&&(r["X-Parse-JavaScript-Key"]=n);var _=o.default.get("SERVER_URL");return"/"!==_[_.length-1]&&(_+="/"),_+="files/"+e,o.default.getRESTController().ajax("POST",_,t.file,r).then(function(e){return e.response})},saveBase64:function(e,t,r){if("base64"!==t.format)throw new Error("saveBase64 can only be used with Base64-type sources.");var n={base64:t.base64};return t.type&&(n._ContentType=t.type),o.default.getRESTController().request("POST","files/"+e,n,r)}};o.default.setFileController(c);var d=u;t.default=d},function(e,t,r){"use strict";var n=r(61),_=r(30),a=r(135),i=_.List,o=_.Map,s=_.OrderedSet,l=_.Record,u=_.Repeat,c=s(),d=function(e){if(!e)return e;var t=e.characterList,r=e.text;return r&&!t&&(e.characterList=i(u(n.EMPTY,r.length))),e},f=function(e){function t(r){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,d(r)))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.getKey=function(){return this.get("key")},t.prototype.getType=function(){return this.get("type")},t.prototype.getText=function(){return this.get("text")},t.prototype.getCharacterList=function(){return this.get("characterList")},t.prototype.getLength=function(){return this.getText().length},t.prototype.getDepth=function(){return this.get("depth")},t.prototype.getData=function(){return this.get("data")},t.prototype.getInlineStyleAt=function(e){var t=this.getCharacterList().get(e);return t?t.getStyle():c},t.prototype.getEntityAt=function(e){var t=this.getCharacterList().get(e);return t?t.getEntity():null},t.prototype.findStyleRanges=function(e,t){a(this.getCharacterList(),p,e,t)},t.prototype.findEntityRanges=function(e,t){a(this.getCharacterList(),h,e,t)},t}(l({key:"",type:"unstyled",text:"",characterList:i(),depth:0,data:o()}));function p(e,t){return e.getStyle()===t.getStyle()}function h(e,t){return e.getEntity()===t.getEntity()}e.exports=f},function(e,t,r){"use strict";var n=r(29),_=55296,a=56319,i=56320,o=57343,s=/[\uD800-\uDFFF]/;function l(e){return _<=e&&e<=o}function u(e){return s.test(e)}function c(e,t){return 1+l(e.charCodeAt(t))}function d(e,t,r){if(t=t||0,r=void 0===r?1/0:r||0,!u(e))return e.substr(t,r);var n=e.length;if(n<=0||t>n||r<=0)return"";var _=0;if(t>0){for(;t>0&&_=n)return""}else if(t<0){for(_=n;t<0&&0<_;t++)_-=c(e,_-1);_<0&&(_=0)}var a=n;if(r0&&a @@ -23,8 +23,8 @@ object-assign * Released under MIT license * Based on Underscore.js 1.8.3 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - */(function(){var a,i="Expected a function",o=1,s=2,l=1,u=1/0,c=9007199254740991,d="[object Arguments]",f="[object Array]",p="[object AsyncFunction]",h="[object Boolean]",E="[object Date]",m="[object Error]",g="[object Function]",b="[object GeneratorFunction]",v="[object Number]",O="[object Object]",M="[object Proxy]",C="[object RegExp]",P="[object String]",D=/[&<>"']/g,y=RegExp(D.source),w=/^(?:0|[1-9]\d*)$/,T="object"==typeof e&&e&&e.Object===Object&&e,A="object"==typeof self&&self&&self.Object===Object&&self,k=T||A||Function("return this")();t&&!t.nodeType&&t&&"object"==typeof n&&n&&n.nodeType;function I(e,t){return e.push.apply(e,t),e}function R(e){return function(t){return null==t?a:t[e]}}var L=function(e){return function(t){return null==e?a:e[t]}}({"&":"&","<":"<",">":">",'"':""","'":"'"});var B=Array.prototype,U=Object.prototype,S=U.hasOwnProperty,K=0,W=U.toString,x=k._,j=Object.create,N=U.propertyIsEnumerable,q=k.isFinite,F=function(e,t){return function(r){return e(t(r))}}(Object.keys,Object),V=Math.max;function H(e){return e instanceof G?e:new G(e)}var z=function(){function e(){}return function(t){if(!Ne(t))return{};if(j)return j(t);e.prototype=t;var r=new e;return e.prototype=a,r}}();function G(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t}function Y(e,t,r){var n=e[t];S.call(e,t)&&Ue(n,r)&&(r!==a||t in e)||J(e,t,r)}function J(e,t,r){e[t]=r}function X(e,t,r){if("function"!=typeof e)throw new TypeError(i);return setTimeout(function(){e.apply(a,r)},t)}G.prototype=z(H.prototype),G.prototype.constructor=G;var Q=function(e,t){return function(r,n){if(null==r)return r;if(!We(r))return e(r,n);for(var _=r.length,a=t?_:-1,i=Object(r);(t?a--:++a<_)&&!1!==n(i[a],a,i););return r}}(re);function $(e,t,r){for(var n=-1,_=e.length;++n<_;){var i=e[n],o=t(i);if(null!=o&&(s===a?o==o:r(o,s)))var s=o,l=i}return l}function Z(e,t){var r=[];return Q(e,function(e,n,_){t(e,n,_)&&r.push(e)}),r}function ee(e,t,r,n,_){var a=-1,i=e.length;for(r||(r=be),_||(_=[]);++a0&&r(o)?t>1?ee(o,t-1,r,n,_):I(_,o):n||(_[_.length]=o)}return _}var te=function(e){return function(t,r,n){for(var _=-1,a=Object(t),i=n(t),o=i.length;o--;){var s=i[e?o:++_];if(!1===r(a[s],s,a))break}return t}}();function re(e,t){return e&&te(e,t,$e)}function ne(e,t){return Z(t,function(t){return je(e[t])})}function _e(e){return function(e){return W.call(e)}(e)}function ae(e,t){return e>t}var ie=at;function oe(e,t,r,n,_){return e===t||(null==e||null==t||!qe(e)&&!qe(t)?e!=e&&t!=t:function(e,t,r,n,_,i){var l=Ke(e),u=Ke(t),c=l?f:_e(e),p=u?f:_e(t),g=(c=c==d?O:c)==O,b=(p=p==d?O:p)==O,M=c==p;i||(i=[]);var D=Te(i,function(t){return t[0]==e}),y=Te(i,function(e){return e[0]==t});if(D&&y)return D[1]==t;if(i.push([e,t]),i.push([t,e]),M&&!g){var w=l?function(e,t,r,n,_,i){var l=r&o,u=e.length,c=t.length;if(u!=c&&!(l&&c>u))return!1;var d=-1,f=!0,p=r&s?[]:a;for(;++d_?0:_+t),(r=r>_?_:r)<0&&(r+=_),_=t>r?0:r-t>>>0,t>>>=0;for(var a=Array(_);++n<_;)a[n]=e[n+t];return a}function pe(e){return fe(e,0,e.length)}function he(e,t){var r;return Q(e,function(e,n,_){return!(r=t(e,n,_))}),!!r}function Ee(e,t,r,n){var _=!r;r||(r={});for(var i=-1,o=t.length;++i1?r[_-1]:a;for(i=e.length>3&&"function"==typeof i?(_--,i):a,t=Object(t);++n<_;){var o=r[n];o&&e(t,o,n,i)}return t})}function ge(e,t,r,n){if("function"!=typeof e)throw new TypeError(i);var _=t&l,a=function(e){return function(){var t=arguments,r=z(e.prototype),n=e.apply(r,t);return Ne(n)?n:r}}(e);return function t(){for(var i=-1,o=arguments.length,s=-1,l=n.length,u=Array(l+o),c=this&&this!==k&&this instanceof t?a:e;++s-1&&e%1==0&&e-1?_[i?t[o]:o]:a}}(function(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var _=null==r?0:ze(r);return _<0&&(_=V(n+_,0)),function(e,t,r,n){for(var _=e.length,a=r+(n?1:-1);n?a--:++a<_;)if(t(e[a],a,e))return a;return-1}(e,se(t),_)});function Ae(e,t){return Q(e,se(t))}function ke(e,t,r){return function(e,t,r,n,_){return _(e,function(e,_,a){r=n?(n=!1,e):t(r,e,_,a)}),r}(e,se(t),r,arguments.length<3,Q)}function Ie(e,t){var r;if("function"!=typeof t)throw new TypeError(i);return e=ze(e),function(){return--e>0&&(r=t.apply(this,arguments)),e<=1&&(t=a),r}}var Re=de(function(e,t,r){return ge(e,32|l,t,r)}),Le=de(function(e,t){return X(e,1,t)}),Be=de(function(e,t,r){return X(e,Ge(t)||0,r)});function Ue(e,t){return e===t||e!=e&&t!=t}var Se=ie(function(){return arguments}())?ie:function(e){return qe(e)&&S.call(e,"callee")&&!N.call(e,"callee")},Ke=Array.isArray;function We(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=c}(e.length)&&!je(e)}var xe=function(e){return qe(e)&&_e(e)==E};function je(e){if(!Ne(e))return!1;var t=_e(e);return t==g||t==b||t==p||t==M}function Ne(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function qe(e){return null!=e&&"object"==typeof e}function Fe(e){return"number"==typeof e||qe(e)&&_e(e)==v}var Ve=function(e){return qe(e)&&_e(e)==C};function He(e){return"string"==typeof e||!Ke(e)&&qe(e)&&_e(e)==P}var ze=Number,Ge=Number;function Ye(e){return"string"==typeof e?e:null==e?"":e+""}var Je=me(function(e,t){Ee(t,F(t),e)}),Xe=me(function(e,t){Ee(t,Oe(t),e)});var Qe=de(function(e,t){e=Object(e);var r=-1,n=t.length,_=n>2?t[2]:a;for(_&&ve(t[0],t[1],_)&&(n=1);++rt||n&&i&&s||!r&&s||!_)return 1;if(!n&&e0&&void 0!==arguments[0]?arguments[0]:"/",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.POP,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n="string"==typeof e?(0,i.parsePath)(e):e;return{pathname:n.pathname||"/",search:n.search||"",hash:n.hash||"",state:n.state,action:t,key:r}};var l=function(e){return"[object Date]"===Object.prototype.toString.call(e)},u=t.statesAreEqual=function e(t,r){if(t===r)return!0;var _=void 0===t?"undefined":n(t);if(_!==(void 0===r?"undefined":n(r)))return!1;if("function"===_&&(0,a.default)(!1),"object"===_){if(l(t)&&l(r)&&(0,a.default)(!1),!Array.isArray(t)){var i=Object.keys(t),o=Object.keys(r);return i.length===o.length&&i.every(function(n){return e(t[n],r[n])})}return Array.isArray(r)&&t.length===r.length&&t.every(function(t,n){return e(t,r[n])})}return!1};t.locationsAreEqual=function(e,t){return e.key===t.key&&e.pathname===t.pathname&&e.search===t.search&&e.hash===t.hash&&u(e.state,t.state)}},function(e,t){var r={}.toString;e.exports=function(e){return r.call(e).slice(8,-1)}},function(e,t,r){var n=r(266),_=r(194);e.exports=Object.keys||function(e){return n(e,_)}},function(e,t,r){var n=r(123);e.exports=function(e){return Object(n(e))}},function(e,t,r){r(198)("replace",2,function(e,t,r){return[function(n,_){"use strict";var a=e(this),i=void 0==n?void 0:n[t];return void 0!==i?i.call(n,a,_):r.call(String(a),n,_)},r]})},function(e,t,r){"use strict";var n=r(26);Object.defineProperty(t,"__esModule",{value:!0}),t.opFromJSON=function(e){if(!e||!e.__op)return null;switch(e.__op){case"Delete":return new b;case"Increment":return new v(e.amount);case"Add":return new O((0,d.default)(e.objects));case"AddUnique":return new M((0,d.default)(e.objects));case"Remove":return new C((0,d.default)(e.objects));case"AddRelation":var t=(0,d.default)(e.objects);return Array.isArray(t)?new P(t,[]):new P([],[]);case"RemoveRelation":var r=(0,d.default)(e.objects);return Array.isArray(r)?new P([],r):new P([],[]);case"Batch":for(var n=[],_=[],a=0;a-1;)t.splice(n,1),n=t.indexOf(this._value[r]);if(this._value[r]instanceof p.default&&this._value[r].id)for(var _=0;_-1&&r.splice(t,1)}),this.relationsToAdd.forEach(function(e){r.indexOf(e)<0&&r.push(e)});var n=e.relationsToRemove.concat([]);this.relationsToAdd.forEach(function(e){var t=n.indexOf(e);t>-1&&n.splice(t,1)}),this.relationsToRemove.forEach(function(e){n.indexOf(e)<0&&n.push(e)});var _=new t(r,n);return _._targetClassName=this._targetClassName,_}throw new Error("Cannot merge Relation Op with the previous Op")}},{key:"toJSON",value:function(){var e=this,t=function(t){return{__type:"Pointer",className:e._targetClassName,objectId:t}},r=null,n=null;return this.relationsToAdd.length>0&&(r={__op:"AddRelation",objects:this.relationsToAdd.map(t)}),this.relationsToRemove.length>0&&(n={__op:"RemoveRelation",objects:this.relationsToRemove.map(t)}),r&&n?{__op:"Batch",ops:[r,n]}:r||n||{}}}]),t}(m);t.RelationOp=P},function(e,t,r){"use strict";var n=r(26);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r,n){return function e(t,r,n,f){if(t instanceof l.default){if(r)throw new Error("Parse Objects not allowed here");var p=t.id?t.className+":"+t.id:t;return n||!f||f.indexOf(p)>-1||t.dirty()||Object.keys(t._getServerData()).length<1?t.toPointer():(f=f.concat(p),t._toFullJSON(f))}if(t instanceof u.Op||t instanceof a.default||t instanceof o.default||t instanceof s.default||t instanceof c.default)return t.toJSON();if(t instanceof i.default){if(!t.url())throw new Error("Tried to encode an unsaved file.");return t.toJSON()}if("[object Date]"===d.call(t)){if(isNaN(t))throw new Error("Tried to encode an invalid date.");return{__type:"Date",iso:t.toJSON()}}if("[object RegExp]"===d.call(t)&&"string"==typeof t.source)return t.source;if(Array.isArray(t))return t.map(function(t){return e(t,r,n,f)});if(t&&"object"===(0,_.default)(t)){var h={};for(var E in t)h[E]=e(t[E],r,n,f);return h}return t}(e,!!t,!!r,n||[])};var _=n(r(41)),a=n(r(130)),i=n(r(98)),o=n(r(132)),s=n(r(208)),l=n(r(46)),u=r(108),c=n(r(88)),d=Object.prototype.toString},function(e,t,r){"use strict";var n=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.serialize=function(){return"Anchor: "+this.getAnchorKey()+":"+this.getAnchorOffset()+", Focus: "+this.getFocusKey()+":"+this.getFocusOffset()+", Is Backward: "+String(this.getIsBackward())+", Has Focus: "+String(this.getHasFocus())},t.prototype.getAnchorKey=function(){return this.get("anchorKey")},t.prototype.getAnchorOffset=function(){return this.get("anchorOffset")},t.prototype.getFocusKey=function(){return this.get("focusKey")},t.prototype.getFocusOffset=function(){return this.get("focusOffset")},t.prototype.getIsBackward=function(){return this.get("isBackward")},t.prototype.getHasFocus=function(){return this.get("hasFocus")},t.prototype.hasEdgeWithin=function(e,t,r){var n=this.getAnchorKey(),_=this.getFocusKey();if(n===_&&n===e){var a=this.getStartOffset();return t<=this.getEndOffset()&&a<=r}if(e!==n&&e!==_)return!1;var i=e===n?this.getAnchorOffset():this.getFocusOffset();return t<=i&&r>=i},t.prototype.isCollapsed=function(){return this.getAnchorKey()===this.getFocusKey()&&this.getAnchorOffset()===this.getFocusOffset()},t.prototype.getStartKey=function(){return this.getIsBackward()?this.getFocusKey():this.getAnchorKey()},t.prototype.getStartOffset=function(){return this.getIsBackward()?this.getFocusOffset():this.getAnchorOffset()},t.prototype.getEndKey=function(){return this.getIsBackward()?this.getAnchorKey():this.getFocusKey()},t.prototype.getEndOffset=function(){return this.getIsBackward()?this.getAnchorOffset():this.getFocusOffset()},t.createEmpty=function(e){return new t({anchorKey:e,anchorOffset:0,focusKey:e,focusOffset:0,isBackward:!1,hasFocus:!1})},t}((0,r(30).Record)({anchorKey:"",anchorOffset:0,focusKey:"",focusOffset:0,isBackward:!1,hasFocus:!1}));e.exports=n},function(e,t,r){"use strict";function n(e){return e.replace(/\//g,"-")}e.exports=function(e){return"object"==typeof e?Object.keys(e).filter(function(t){return e[t]}).map(n).join(" "):Array.prototype.map.call(arguments,n).join(" ")}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.routerMiddleware=t.routerActions=t.goForward=t.goBack=t.go=t.replace=t.push=t.CALL_HISTORY_METHOD=t.routerReducer=t.LOCATION_CHANGE=t.syncHistoryWithStore=void 0;var n=r(236);Object.defineProperty(t,"LOCATION_CHANGE",{enumerable:!0,get:function(){return n.LOCATION_CHANGE}}),Object.defineProperty(t,"routerReducer",{enumerable:!0,get:function(){return n.routerReducer}});var _=r(237);Object.defineProperty(t,"CALL_HISTORY_METHOD",{enumerable:!0,get:function(){return _.CALL_HISTORY_METHOD}}),Object.defineProperty(t,"push",{enumerable:!0,get:function(){return _.push}}),Object.defineProperty(t,"replace",{enumerable:!0,get:function(){return _.replace}}),Object.defineProperty(t,"go",{enumerable:!0,get:function(){return _.go}}),Object.defineProperty(t,"goBack",{enumerable:!0,get:function(){return _.goBack}}),Object.defineProperty(t,"goForward",{enumerable:!0,get:function(){return _.goForward}}),Object.defineProperty(t,"routerActions",{enumerable:!0,get:function(){return _.routerActions}});var a=o(r(405)),i=o(r(406));function o(e){return e&&e.__esModule?e:{default:e}}t.syncHistoryWithStore=a.default,t.routerMiddleware=i.default},function(e,t,r){"use strict";(function(e){r.d(t,"a",function(){return o});var n=r(0),_=r.n(n),a=r(18),i=r.n(a);!function(){var t=r(1).enterModule;t&&t(e)}();var o=function(){return _.a.createElement("div",{className:"start-working"},_.a.createElement(i.a,{className:"hammer",src:r(86)}),"You don't have rights to access this section.")};!function(){var t=r(1).default,n=r(1).leaveModule;t&&(t.register(o,"NoRights","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/components/mainArea/common/NoRights.js"),n(e))}()}).call(this,r(12)(e))},function(e,t,r){"use strict";var n=r(0),_=r.n(n),a=r(50),i=r.n(a);function o(e){var t=!1;return function(){t||(console.warn(e),t=!0)}}o("\n>> Error, via react-flip-move <<\n\nYou provided a stateless functional component as a child to . Unfortunately, SFCs aren't supported, because Flip Move needs access to the backing instances via refs, and SFCs don't have a public instance that holds that info.\n\nPlease wrap your components in a native element (eg.
), or a non-functional component.\n"),o("\n>> Error, via react-flip-move <<\n\nYou provided a primitive (text or number) node as a child to . Flip Move needs containers with unique keys to move children around.\n\nPlease wrap your value in a native element (eg. ), or a component.\n");var s=o("\n>> Warning, via react-flip-move <<\n\nWhen using \"wrapperless\" mode (by supplying 'typeName' of 'null'), strange things happen when the direct parent has the default \"static\" position.\n\nFlipMove has added 'position: relative' to this node, to ensure Flip Move animates correctly.\n\nTo avoid seeing this warning, simply apply a non-static position to that parent node.\n"),l=o("\n>> Warning, via react-flip-move <<\n\nOne or more of Flip Move's child elements have the html attribute 'disabled' set to true.\n\nPlease note that this will cause animations to break in Internet Explorer 11 and below. Either remove the disabled attribute or set 'animation' to false.\n"),u={elevator:{from:{transform:"scale(0)",opacity:"0"},to:{transform:"",opacity:""}},fade:{from:{opacity:"0"},to:{opacity:""}},accordionVertical:{from:{transform:"scaleY(0)",transformOrigin:"center top"},to:{transform:"",transformOrigin:"center top"}},accordionHorizontal:{from:{transform:"scaleX(0)",transformOrigin:"left center"},to:{transform:"",transformOrigin:"left center"}},none:null},c={elevator:{from:{transform:"scale(1)",opacity:"1"},to:{transform:"scale(0)",opacity:"0"}},fade:{from:{opacity:"1"},to:{opacity:"0"}},accordionVertical:{from:{transform:"scaleY(1)",transformOrigin:"center top"},to:{transform:"scaleY(0)",transformOrigin:"center top"}},accordionHorizontal:{from:{transform:"scaleX(1)",transformOrigin:"left center"},to:{transform:"scaleX(0)",transformOrigin:"left center"}},none:null},d=u,f="elevator",p="none",h=function(e,t){for(var r=0;r1&&void 0!==arguments[1]?arguments[1]:[],r={};return Object.keys(e).forEach(function(n){-1===t.indexOf(n)&&(r[n]=e[n])}),r}(this.props,r);return n.style=O({position:"relative"},n.style),t.delegated=n,t},r.prototype.convertTimingProp=function(e){var t=this.props[e],n="number"==typeof t?t:parseInt(t,10);return isNaN(n)?r.defaultProps[e]:n},r.prototype.convertAnimationProp=function(e,t){switch(void 0===e?"undefined":b(e)){case"boolean":return t[e?f:p];case"string":return-1===Object.keys(t).indexOf(e)?t[f]:t[e];default:return e}},r.prototype.render=function(){return _.a.createElement(e,this.convertProps(this.props))},r}(n.Component),t.defaultProps={easing:"ease-in-out",duration:350,delay:0,staggerDurationBy:0,staggerDelayBy:0,typeName:"div",enterAnimation:f,leaveAnimation:f,disableAllAnimations:!1,getPosition:function(e){return e.getBoundingClientRect()},maintainContainerHeight:!1,verticalAlignment:"top"},r}(function(e){function t(){var r,n;v(this,t);for(var _=arguments.length,a=Array(_),o=0;o<_;o++)a[o]=arguments[o];return r=n=C(this,e.call.apply(e,[this].concat(a))),n.state={children:A(n.props?n.props.children:[]).map(function(e){return O({},e,{element:e,appearing:!0})})},n.childrenData={},n.parentData={domNode:null,boundingBox:null},n.heightPlaceholderData={domNode:null},n.remainingAnimations=0,n.childrenToAnimate=[],n.findDOMContainer=function(){var e=i.a.findDOMNode(n),t=e&&e.parentNode;t&&t instanceof HTMLElement&&("static"===window.getComputedStyle(t).position&&(t.style.position="relative",s()),n.parentData.domNode=t)},n.runAnimation=function(){var e=n.state.children.filter(n.doesChildNeedToBeAnimated),t=e.map(function(e){return n.computeInitialStyles(e)});e.forEach(function(e,r){n.remainingAnimations+=1,n.childrenToAnimate.push(T(e)),n.animateChild(e,r,t[r])}),"function"==typeof n.props.onStartAll&&n.callChildrenHook(n.props.onStartAll)},n.doesChildNeedToBeAnimated=function(e){if(!T(e))return!1;var t=n.getChildData(T(e)),r=t.domNode,_=t.boundingBox,a=n.parentData.boundingBox;if(!r)return!1;var i=n.props,o=i.appearAnimation,s=i.enterAnimation,l=i.leaveAnimation,u=i.getPosition,c=e.appearing&&o,d=e.entering&&s,f=e.leaving&&l;if(c||d||f)return!0;var p=D({childDomNode:r,childBoundingBox:_,parentBoundingBox:a,getPosition:u}),h=p[0],E=p[1];return 0!==h||0!==E},C(n,r)}return M(t,e),t.prototype.componentDidMount=function(){null===this.props.typeName&&this.findDOMContainer(),this.props.appearAnimation&&!this.isAnimationDisabled(this.props)&&(this.prepForAnimation(),this.runAnimation())},t.prototype.componentWillReceiveProps=function(e){this.updateBoundingBoxCaches();var t=A(e.children);this.setState({children:this.isAnimationDisabled(e)?t.map(function(e){return O({},e,{element:e})}):this.calculateNextSetOfChildren(t)})},t.prototype.componentDidUpdate=function(e){null===this.props.typeName&&this.findDOMContainer(),!function(e,t){if(e===t)return!0;var r=!m(e)||!m(t),n=e.length!==t.length;return!r&&!n&&E(function(e,r){return e===t[r]},e)}(A(this.props.children).map(function(e){return e.key}),A(e.children).map(function(e){return e.key}))&&!this.isAnimationDisabled(this.props)&&(this.prepForAnimation(),this.runAnimation())},t.prototype.calculateNextSetOfChildren=function(e){var t=this,r=e.map(function(e){var r=t.findChildByKey(e.key),n=!r||r.leaving;return O({},e,{element:e,entering:n})}),n=0;return this.state.children.forEach(function(_,a){if(!h(function(e){return e.key===T(_)},e)&&t.props.leaveAnimation){var i=O({},_,{leaving:!0}),o=a+n;r.splice(o,0,i),n+=1}}),r},t.prototype.prepForAnimation=function(){var e=this,t=this.props,r=t.leaveAnimation,n=t.maintainContainerHeight,_=t.getPosition;r&&(this.state.children.filter(function(e){return e.leaving}).forEach(function(t){var r=e.getChildData(T(t));!e.isAnimationDisabled(e.props)&&r.domNode&&r.domNode.disabled&&l(),r.boundingBox&&function(e,t){var r=e.domNode,n=e.boundingBox;if(r&&n){var _=window.getComputedStyle(r),a=["margin-top","margin-left","margin-right"].reduce(function(e,t){var r,n=_.getPropertyValue(t);return O({},e,((r={})[t]=Number(n.replace("px","")),r))},{});P({domNode:r,styles:{position:"absolute",top:("bottom"===t?n.top-n.height:n.top)-a["margin-top"]+"px",left:n.left-a["margin-left"]+"px",right:n.right-a["margin-right"]+"px"}})}}(r,e.props.verticalAlignment)}),n&&this.heightPlaceholderData.domNode&&function(e){var t=e.domNode,r=e.parentData,n=e.getPosition,_=r.domNode,a=r.boundingBox;if(_&&a){P({domNode:t,styles:{height:"0"}});var i=a.height-n(_).height;P({domNode:t,styles:{height:i>0?i+"px":"0"}})}}({domNode:this.heightPlaceholderData.domNode,parentData:this.parentData,getPosition:_}));this.state.children.forEach(function(t){var r=e.getChildData(T(t)).domNode;r&&(t.entering||t.leaving||P({domNode:r,styles:{transition:""}}))})},t.prototype.animateChild=function(e,t,r){var n=this,_=this.getChildData(T(e)).domNode;_&&(P({domNode:_,styles:r}),this.props.onStart&&this.props.onStart(e,_),requestAnimationFrame(function(){requestAnimationFrame(function(){var r={transition:function(e,t){var r=t.delay,n=t.duration,_=t.staggerDurationBy,a=t.staggerDelayBy,i=t.easing;r+=e*a,n+=e*_;return["transform","opacity"].map(function(e){return e+" "+n+"ms "+i+" "+r+"ms"}).join(", ")}(t,n.props),transform:"",opacity:""};e.appearing&&n.props.appearAnimation?r=O({},r,n.props.appearAnimation.to):e.entering&&n.props.enterAnimation?r=O({},r,n.props.enterAnimation.to):e.leaving&&n.props.leaveAnimation&&(r=O({},r,n.props.leaveAnimation.to)),P({domNode:_,styles:r})})}),this.bindTransitionEndHandler(e))},t.prototype.bindTransitionEndHandler=function(e){var t=this,r=this.getChildData(T(e)).domNode;if(r){r.addEventListener(y,function n(_){_.target===r&&(r.style.transition="",t.triggerFinishHooks(e,r),r.removeEventListener(y,n),e.leaving&&t.removeChildData(T(e)))})}},t.prototype.triggerFinishHooks=function(e,t){var r=this;if(this.props.onFinish&&this.props.onFinish(e,t),this.remainingAnimations-=1,0===this.remainingAnimations){var n=this.state.children.filter(function(e){return!e.leaving}).map(function(e){return O({},e,{element:e.element,appearing:!1,entering:!1})});this.setState({children:n},function(){"function"==typeof r.props.onFinishAll&&r.callChildrenHook(r.props.onFinishAll),r.childrenToAnimate=[]}),this.heightPlaceholderData.domNode&&(this.heightPlaceholderData.domNode.style.height="0")}},t.prototype.callChildrenHook=function(e){var t=this,r=[],n=[];this.childrenToAnimate.forEach(function(e){var _=t.findChildByKey(e);_&&(r.push(_),t.hasChildData(e)&&n.push(t.getChildData(e).domNode))}),e(r,n)},t.prototype.updateBoundingBoxCaches=function(){var e=this,t=this.parentData.domNode;if(t){this.parentData.boundingBox=this.props.getPosition(t);var r=[];this.state.children.forEach(function(n){var _=T(n);if(_)if(e.hasChildData(_)){var a=e.getChildData(_);a.domNode&&n?r.push(function(e){var t=e.childDomNode,r=e.parentDomNode,n=e.getPosition,_=n(r),a=n(t),i=a.top,o=a.left,s=a.right,l=a.bottom,u=a.width,c=a.height;return{top:i-_.top,left:o-_.left,right:_.right-s,bottom:_.bottom-l,width:u,height:c}}({childDomNode:a.domNode,parentDomNode:t,getPosition:e.props.getPosition})):r.push(null)}else r.push(null);else r.push(null)}),this.state.children.forEach(function(t,n){var _=T(t),a=r[n];_&&e.setChildData(_,{boundingBox:a})})}},t.prototype.computeInitialStyles=function(e){if(e.appearing)return this.props.appearAnimation?this.props.appearAnimation.from:{};if(e.entering)return this.props.enterAnimation?O({position:"",top:"",left:"",right:"",bottom:""},this.props.enterAnimation.from):{};if(e.leaving)return this.props.leaveAnimation?this.props.leaveAnimation.from:{};var t=this.getChildData(T(e)),r=t.domNode,n=t.boundingBox,_=this.parentData.boundingBox;if(!r)return{};var a=D({childDomNode:r,childBoundingBox:n,parentBoundingBox:_,getPosition:this.props.getPosition});return{transform:"translate("+a[0]+"px, "+a[1]+"px)"}},t.prototype.isAnimationDisabled=function(e){return w||e.disableAllAnimations||0===e.duration&&0===e.delay&&0===e.staggerDurationBy&&0===e.staggerDelayBy},t.prototype.findChildByKey=function(e){return h(function(t){return T(t)===e},this.state.children)},t.prototype.hasChildData=function(e){return Object.prototype.hasOwnProperty.call(this.childrenData,e)},t.prototype.getChildData=function(e){return this.hasChildData(e)?this.childrenData[e]:{}},t.prototype.setChildData=function(e,t){this.childrenData[e]=O({},this.getChildData(e),t)},t.prototype.removeChildData=function(e){delete this.childrenData[e],this.setState(function(t){return O({},t,{children:t.children.filter(function(t){return t.element.key!==e})})})},t.prototype.createHeightPlaceholder=function(){var e=this,t=this.props.typeName,r="ul"===t||"ol"===t?"li":"div";return Object(n.createElement)(r,{key:"height-placeholder",ref:function(t){e.heightPlaceholderData.domNode=t},style:{visibility:"hidden",height:0}})},t.prototype.childrenWithRefs=function(){var e=this;return this.state.children.map(function(t){return Object(n.cloneElement)(t.element,{ref:function(r){if(r){var n=function(e){if("undefined"==typeof HTMLElement)return null;if(e instanceof HTMLElement)return e;var t=Object(a.findDOMNode)(e);return t&&t.nodeType===Node.TEXT_NODE?null:t}(r);e.setChildData(T(t),{domNode:n})}}})})},t.prototype.render=function(){var e=this,t=this.props,r=t.typeName,_=t.delegated,a=t.leaveAnimation,i=t.maintainContainerHeight,o=this.childrenWithRefs();if(a&&i&&o.push(this.createHeightPlaceholder()),!r)return o;var s=O({},_,{children:o,ref:function(t){e.parentData.domNode=t}});return Object(n.createElement)(r,s)},t}(n.Component));t.a=k},function(module,__webpack_exports__,__webpack_require__){"use strict";(function(module){__webpack_require__.d(__webpack_exports__,"a",function(){return SwitchControl});var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(2),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(3),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(5),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(4),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(6),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__),react__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(0),react__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_5__),react_css_modules__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(10),react_css_modules__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(react_css_modules__WEBPACK_IMPORTED_MODULE_6__),lodash_core__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(101),lodash_core__WEBPACK_IMPORTED_MODULE_7___default=__webpack_require__.n(lodash_core__WEBPACK_IMPORTED_MODULE_7__),_SwitchControl_sss__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(759),_SwitchControl_sss__WEBPACK_IMPORTED_MODULE_8___default=__webpack_require__.n(_SwitchControl_sss__WEBPACK_IMPORTED_MODULE_8__),_dec,_class;!function(){var e=__webpack_require__(1).enterModule;e&&e(module)}();var SwitchControl=(_dec=react_css_modules__WEBPACK_IMPORTED_MODULE_6___default()(_SwitchControl_sss__WEBPACK_IMPORTED_MODULE_8___default.a,{allowMultiple:!0}),_dec(_class=function(_Component){function SwitchControl(e){var t;return _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this,SwitchControl),(t=_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default()(this,_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default()(SwitchControl).call(this,e))).id="0",t.onChange=function(e){var r=t.props,n=r.onChange,_=r.disabled;n&&!_&&n(e.target.checked)},t.id=lodash_core__WEBPACK_IMPORTED_MODULE_7___default.a.uniqueId("switch_"),t}return _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default()(SwitchControl,_Component),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(SwitchControl,[{key:"render",value:function(){var e=this.props,t=e.label,r=e.checked,n=e.disabled,_="SwitchControl";return n&&(_+=" disabled"),react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{styleName:_},react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("input",{type:"checkbox",styleName:"checkbox",id:this.id,disabled:n,checked:r,onChange:this.onChange}),react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("label",{styleName:"label",htmlFor:this.id},t))}},{key:"__reactstandin__regenerateByEval",value:function __reactstandin__regenerateByEval(key,code){this[key]=eval(code)}}]),SwitchControl}(react__WEBPACK_IMPORTED_MODULE_5__.Component))||_class);!function(){var e=__webpack_require__(1).default,t=__webpack_require__(1).leaveModule;e&&(e.register(SwitchControl,"SwitchControl","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/components/elements/SwitchControl/SwitchControl.js"),t(module))}()}).call(this,__webpack_require__(12)(module))},function(module,__webpack_exports__,__webpack_require__){"use strict";(function(module){__webpack_require__.d(__webpack_exports__,"a",function(){return EditableTitleControl});var core_js_modules_es6_object_assign__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(128),core_js_modules_es6_object_assign__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(core_js_modules_es6_object_assign__WEBPACK_IMPORTED_MODULE_0__),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(2),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(3),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(5),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(4),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(6),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5__),react__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(0),react__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_6__),react_css_modules__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(10),react_css_modules__WEBPACK_IMPORTED_MODULE_7___default=__webpack_require__.n(react_css_modules__WEBPACK_IMPORTED_MODULE_7__),_EditableTitleControl_sss__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(820),_EditableTitleControl_sss__WEBPACK_IMPORTED_MODULE_8___default=__webpack_require__.n(_EditableTitleControl_sss__WEBPACK_IMPORTED_MODULE_8__),_dec,_class;!function(){var e=__webpack_require__(1).enterModule;e&&e(module)}();var MIN_TEXT="WWWW",EditableTitleControl=(_dec=react_css_modules__WEBPACK_IMPORTED_MODULE_7___default()(_EditableTitleControl_sss__WEBPACK_IMPORTED_MODULE_8___default.a,{allowMultiple:!0}),_dec(_class=function(_Component){function EditableTitleControl(e){var t;return _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this,EditableTitleControl),(t=_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this,_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(EditableTitleControl).call(this,e))).state={text:"",editing:!1,width:0},t.input=null,t.testTextElm=null,t.minTextWidth=0,t.editable=!1,t.startText=void 0,t.onEditClick=function(){t.editable&&!t.state.editing&&t.setState({editing:!0},function(){return t.input.focus()})},t.onChange=function(e){t.setText(e.target.value)},t.onBlur=function(){t.editable&&!t.props.alertShowing&&(!t.props.required||t.state.text?(t.setState({editing:!1}),t.props.update(t.state.text,function(e){return t.setText(e)},!0)):t.props.required&&t.setText(t.startText))},t.onKeyDown=function(e){e.stopPropagation(),!t.props.alertShowing&&t.editable&&(13==e.keyCode?t.props.required&&!t.state.text||(t.setState({editing:!1}),t.props.update(t.state.text)):27==e.keyCode&&(t.setState({editing:!1}),t.setText(t.startText)))},t.startText=e.text,t.editable=!e.disabled&&!!e.update,t}return _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5___default()(EditableTitleControl,_Component),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default()(EditableTitleControl,[{key:"setText",value:function(e){var t=e=e||"";t||(t=this.props.placeholder),t||(t=MIN_TEXT),this.testTextElm.innerText=t;var r=this.testTextElm.clientWidth+15;r0?_(n(e),9007199254740991):0}},function(e,t,r){var n=r(63).f,_=r(96),a=r(36)("toStringTag");e.exports=function(e,t,r){e&&!_(e=r?e:e.prototype,a)&&n(e,a,{configurable:!0,value:t})}},function(e,t,r){"use strict";var n=r(51);e.exports=function(e,t){return!!e&&n(function(){t?e.call(null,function(){},1):e.call(null)})}},function(e,t,r){var n=r(44);n(n.S+n.F,"Object",{assign:r(558)})},function(e,t,r){"use strict";var n=r(26);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t){if(null===t||"object"!==(0,_.default)(t))return t;if(Array.isArray(t)){var r=[];return t.forEach(function(t,n){r[n]=e(t)}),r}if("string"==typeof t.__op)return(0,l.opFromJSON)(t);if("Pointer"===t.__type&&t.className)return s.default.fromJSON(t);if("Object"===t.__type&&t.className)return s.default.fromJSON(t);if("Relation"===t.__type){var n=new u.default(null,null);return n.targetClassName=t.className,n}if("Date"===t.__type)return new Date(t.iso);if("File"===t.__type)return a.default.fromJSON(t);if("GeoPoint"===t.__type)return new i.default({latitude:t.latitude,longitude:t.longitude});if("Polygon"===t.__type)return new o.default(t.coordinates);var c={};for(var d in t)c[d]=e(t[d]);return c};var _=n(r(41)),a=(n(r(130)),n(r(98))),i=n(r(132)),o=n(r(208)),s=n(r(46)),l=r(108),u=n(r(88))},function(e,t,r){"use strict";var n=r(26);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var _=n(r(41)),a=n(r(2)),i=n(r(3)),o=n(r(59)),s=n(r(288)),l=n(r(164)),u=function(){function e(t){if((0,a.default)(this,e),(0,o.default)(this,"permissionsById",void 0),this.permissionsById={},t&&"object"===(0,_.default)(t))if(t instanceof l.default)this.setReadAccess(t,!0),this.setWriteAccess(t,!0);else for(var r in t){var n=t[r];if("string"!=typeof r)throw new TypeError("Tried to create an ACL with an invalid user id.");for(var i in this.permissionsById[r]={},n){var s=n[i];if("read"!==i&&"write"!==i)throw new TypeError("Tried to create an ACL with an invalid permission type.");if("boolean"!=typeof s)throw new TypeError("Tried to create an ACL with an invalid permission value.");this.permissionsById[r][i]=s}}else if("function"==typeof t)throw new TypeError("ParseACL constructed with a function. Did you forget ()?")}return(0,i.default)(e,[{key:"toJSON",value:function(){var e={};for(var t in this.permissionsById)e[t]=this.permissionsById[t];return e}},{key:"equals",value:function(t){if(!(t instanceof e))return!1;var r=Object.keys(this.permissionsById),n=Object.keys(t.permissionsById);if(r.length!==n.length)return!1;for(var _ in this.permissionsById){if(!t.permissionsById[_])return!1;if(this.permissionsById[_].read!==t.permissionsById[_].read)return!1;if(this.permissionsById[_].write!==t.permissionsById[_].write)return!1}return!0}},{key:"_setAccess",value:function(e,t,r){if(t instanceof l.default)t=t.id;else if(t instanceof s.default){var n=t.getName();if(!n)throw new TypeError("Role must have a name");t="role:"+n}if("string"!=typeof t)throw new TypeError("userId must be a string.");if("boolean"!=typeof r)throw new TypeError("allowed must be either true or false.");var _=this.permissionsById[t];if(!_){if(!r)return;_={},this.permissionsById[t]=_}r?this.permissionsById[t][e]=!0:(delete _[e],0===Object.keys(_).length&&delete this.permissionsById[t])}},{key:"_getAccess",value:function(e,t){if(t instanceof l.default){if(!(t=t.id))throw new Error("Cannot get access for a ParseUser without an ID")}else if(t instanceof s.default){var r=t.getName();if(!r)throw new TypeError("Role must have a name");t="role:"+r}var n=this.permissionsById[t];return!!n&&!!n[e]}},{key:"setReadAccess",value:function(e,t){this._setAccess("read",e,t)}},{key:"getReadAccess",value:function(e){return this._getAccess("read",e)}},{key:"setWriteAccess",value:function(e,t){this._setAccess("write",e,t)}},{key:"getWriteAccess",value:function(e){return this._getAccess("write",e)}},{key:"setPublicReadAccess",value:function(e){this.setReadAccess("*",e)}},{key:"getPublicReadAccess",value:function(){return this.getReadAccess("*")}},{key:"setPublicWriteAccess",value:function(e){this.setWriteAccess("*",e)}},{key:"getPublicWriteAccess",value:function(){return this.getWriteAccess("*")}},{key:"getRoleReadAccess",value:function(e){if(e instanceof s.default&&(e=e.getName()),"string"!=typeof e)throw new TypeError("role must be a ParseRole or a String");return this.getReadAccess("role:"+e)}},{key:"getRoleWriteAccess",value:function(e){if(e instanceof s.default&&(e=e.getName()),"string"!=typeof e)throw new TypeError("role must be a ParseRole or a String");return this.getWriteAccess("role:"+e)}},{key:"setRoleReadAccess",value:function(e,t){if(e instanceof s.default&&(e=e.getName()),"string"!=typeof e)throw new TypeError("role must be a ParseRole or a String");this.setReadAccess("role:"+e,t)}},{key:"setRoleWriteAccess",value:function(e,t){if(e instanceof s.default&&(e=e.getName()),"string"!=typeof e)throw new TypeError("role must be a ParseRole or a String");this.setWriteAccess("role:"+e,t)}}]),e}();t.default=u},function(e,t){var r,n,_=e.exports={};function a(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function o(e){if(r===setTimeout)return setTimeout(e,0);if((r===a||!r)&&setTimeout)return r=setTimeout,setTimeout(e,0);try{return r(e,0)}catch(t){try{return r.call(null,e,0)}catch(t){return r.call(this,e,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:a}catch(e){r=a}try{n="function"==typeof clearTimeout?clearTimeout:i}catch(e){n=i}}();var s,l=[],u=!1,c=-1;function d(){u&&s&&(u=!1,s.length?l=s.concat(l):c=-1,l.length&&f())}function f(){if(!u){var e=o(d);u=!0;for(var t=l.length;t;){for(s=l,l=[];++c1)for(var r=1;r90)throw new TypeError("GeoPoint latitude out of bounds: "+e+" > 90.0.");if(t<-180)throw new TypeError("GeoPoint longitude out of bounds: "+t+" < -180.0.");if(t>180)throw new TypeError("GeoPoint longitude out of bounds: "+t+" > 180.0.")}},{key:"current",value:function(){return navigator.geolocation.getCurrentPosition(function(t){return new e(t.coords.latitude,t.coords.longitude)})}}]),e}();t.default=s},function(e,t,r){"use strict";var n=r(26);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var _=n(r(41)),a=n(r(2)),i=n(r(3)),o=n(r(59)),s=n(r(47)),l=n(r(109)),u=r(209),c=n(r(87)),d=n(r(132)),f=n(r(46));function p(e){return"\\Q"+e.replace("\\E","\\E\\\\E\\Q")+"\\E"}function h(e){var t=null;return e.forEach(function(e){if(t||(t=e.className),t!==e.className)throw new Error("All queries must be for the same class.")}),t}function E(e,t){var r={};(t.forEach(function(t){var n=-1!==t.indexOf(".");if(n||e.hasOwnProperty(t)){if(n){var _=t.split("."),a=e,i=r;_.forEach(function(e,t,r){a&&!a.hasOwnProperty(e)&&(a[e]=void 0),void 0!==a&&(a=a[e]),t0)&&function e(t,r,n,_){if(_)for(var a in t)t.hasOwnProperty(a)&&!r.hasOwnProperty(a)&&(r[a]=t[a]);for(var i in n)void 0!==r[i]&&null!==r[i]&&void 0!==t&&null!==t&&e(t[i],r[i],n[i],!0)}(s.default.getObjectStateController().getServerData({id:e.objectId,className:e.className}),e,r,!1)}var m=function(){function e(t){if((0,a.default)(this,e),(0,o.default)(this,"className",void 0),(0,o.default)(this,"_where",void 0),(0,o.default)(this,"_include",void 0),(0,o.default)(this,"_select",void 0),(0,o.default)(this,"_limit",void 0),(0,o.default)(this,"_skip",void 0),(0,o.default)(this,"_order",void 0),(0,o.default)(this,"_extraOptions",void 0),"string"==typeof t)"User"===t&&s.default.get("PERFORM_USER_REWRITE")?this.className="_User":this.className=t;else if(t instanceof f.default)this.className=t.className;else{if("function"!=typeof t)throw new TypeError("A ParseQuery must be constructed with a ParseObject or class name.");if("string"==typeof t.className)this.className=t.className;else{var r=new t;this.className=r.className}}this._where={},this._include=[],this._limit=-1,this._skip=0,this._extraOptions={}}return(0,i.default)(e,[{key:"_orQuery",value:function(e){var t=e.map(function(e){return e.toJSON().where});return this._where.$or=t,this}},{key:"_andQuery",value:function(e){var t=e.map(function(e){return e.toJSON().where});return this._where.$and=t,this}},{key:"_norQuery",value:function(e){var t=e.map(function(e){return e.toJSON().where});return this._where.$nor=t,this}},{key:"_addCondition",value:function(e,t,r){return this._where[e]&&"string"!=typeof this._where[e]||(this._where[e]={}),this._where[e][t]=(0,l.default)(r,!1,!0),this}},{key:"_regexStartWith",value:function(e){return"^"+p(e)}},{key:"toJSON",value:function(){var e={where:this._where};for(var t in this._include.length&&(e.include=this._include.join(",")),this._select&&(e.keys=this._select.join(",")),this._limit>=0&&(e.limit=this._limit),this._skip>0&&(e.skip=this._skip),this._order&&(e.order=this._order.join(",")),this._extraOptions)e[t]=this._extraOptions[t];return e}},{key:"withJSON",value:function(e){for(var t in e.where&&(this._where=e.where),e.include&&(this._include=e.include.split(",")),e.keys&&(this._select=e.keys.split(",")),e.limit&&(this._limit=e.limit),e.skip&&(this._skip=e.skip),e.order&&(this._order=e.order.split(",")),e)e.hasOwnProperty(t)&&-1===["where","include","keys","limit","skip","order"].indexOf(t)&&(this._extraOptions[t]=e[t]);return this}},{key:"get",value:function(e,t){this.equalTo("objectId",e);var r={};return t&&t.hasOwnProperty("useMasterKey")&&(r.useMasterKey=t.useMasterKey),t&&t.hasOwnProperty("sessionToken")&&(r.sessionToken=t.sessionToken),this.first(r).then(function(e){if(e)return e;var t=new c.default(c.default.OBJECT_NOT_FOUND,"Object not found.");return Promise.reject(t)})}},{key:"find",value:function(e){var t=this,r={};(e=e||{}).hasOwnProperty("useMasterKey")&&(r.useMasterKey=e.useMasterKey),e.hasOwnProperty("sessionToken")&&(r.sessionToken=e.sessionToken);var n=s.default.getQueryController(),_=this._select;return n.find(this.className,this.toJSON(),r).then(function(e){return e.results.map(function(r){var n=e.className||t.className;return r.className||(r.className=n),_&&E(r,_),f.default.fromJSON(r,!_)})})}},{key:"count",value:function(e){var t={};(e=e||{}).hasOwnProperty("useMasterKey")&&(t.useMasterKey=e.useMasterKey),e.hasOwnProperty("sessionToken")&&(t.sessionToken=e.sessionToken);var r=s.default.getQueryController(),n=this.toJSON();return n.limit=0,n.count=1,r.find(this.className,n,t).then(function(e){return e.count})}},{key:"distinct",value:function(e,t){var r={useMasterKey:!0};(t=t||{}).hasOwnProperty("sessionToken")&&(r.sessionToken=t.sessionToken);var n=s.default.getQueryController(),_={distinct:e,where:this._where};return n.aggregate(this.className,_,r).then(function(e){return e.results})}},{key:"aggregate",value:function(e,t){var r={useMasterKey:!0};(t=t||{}).hasOwnProperty("sessionToken")&&(r.sessionToken=t.sessionToken);var n=s.default.getQueryController();if(!Array.isArray(e)&&"object"!==(0,_.default)(e))throw new Error("Invalid pipeline must be Array or Object");return n.aggregate(this.className,{pipeline:e},r).then(function(e){return e.results})}},{key:"first",value:function(e){var t=this,r={};(e=e||{}).hasOwnProperty("useMasterKey")&&(r.useMasterKey=e.useMasterKey),e.hasOwnProperty("sessionToken")&&(r.sessionToken=e.sessionToken);var n=s.default.getQueryController(),_=this.toJSON();_.limit=1;var a=this._select;return n.find(this.className,_,r).then(function(e){var r=e.results;if(r[0])return r[0].className||(r[0].className=t.className),a&&E(r[0],a),f.default.fromJSON(r[0],!a)})}},{key:"each",value:function(t,r){if(r=r||{},this._order||this._skip||this._limit>=0)return Promise.reject("Cannot iterate on a query with sort, skip, or limit.");var n=new e(this.className);for(var a in n._limit=r.batchSize||100,n._include=this._include.map(function(e){return e}),this._select&&(n._select=this._select.map(function(e){return e})),n._where={},this._where){var i=this._where[a];if(Array.isArray(i))n._where[a]=i.map(function(e){return e});else if(i&&"object"===(0,_.default)(i)){var o={};for(var s in n._where[a]=o,i)o[s]=i[s]}else n._where[a]=i}n.ascending("objectId");var l={};r.hasOwnProperty("useMasterKey")&&(l.useMasterKey=r.useMasterKey),r.hasOwnProperty("sessionToken")&&(l.sessionToken=r.sessionToken);var c=!1;return(0,u.continueWhile)(function(){return!c},function(){return n.find(l).then(function(e){var r=Promise.resolve();return e.forEach(function(e){r=r.then(function(){return t(e)})}),r.then(function(){e.length>=n._limit?n.greaterThan("objectId",e[e.length-1].id):c=!0})})})}},{key:"equalTo",value:function(e,t){return void 0===t?this.doesNotExist(e):(this._where[e]=(0,l.default)(t,!1,!0),this)}},{key:"notEqualTo",value:function(e,t){return this._addCondition(e,"$ne",t)}},{key:"lessThan",value:function(e,t){return this._addCondition(e,"$lt",t)}},{key:"greaterThan",value:function(e,t){return this._addCondition(e,"$gt",t)}},{key:"lessThanOrEqualTo",value:function(e,t){return this._addCondition(e,"$lte",t)}},{key:"greaterThanOrEqualTo",value:function(e,t){return this._addCondition(e,"$gte",t)}},{key:"containedIn",value:function(e,t){return this._addCondition(e,"$in",t)}},{key:"notContainedIn",value:function(e,t){return this._addCondition(e,"$nin",t)}},{key:"containedBy",value:function(e,t){return this._addCondition(e,"$containedBy",t)}},{key:"containsAll",value:function(e,t){return this._addCondition(e,"$all",t)}},{key:"containsAllStartingWith",value:function(e,t){var r=this;return Array.isArray(t)||(t=[t]),t=t.map(function(e){return{$regex:r._regexStartWith(e)}}),this.containsAll(e,t)}},{key:"exists",value:function(e){return this._addCondition(e,"$exists",!0)}},{key:"doesNotExist",value:function(e){return this._addCondition(e,"$exists",!1)}},{key:"matches",value:function(e,t,r){return this._addCondition(e,"$regex",t),r||(r=""),t.ignoreCase&&(r+="i"),t.multiline&&(r+="m"),r.length&&this._addCondition(e,"$options",r),this}},{key:"matchesQuery",value:function(e,t){var r=t.toJSON();return r.className=t.className,this._addCondition(e,"$inQuery",r)}},{key:"doesNotMatchQuery",value:function(e,t){var r=t.toJSON();return r.className=t.className,this._addCondition(e,"$notInQuery",r)}},{key:"matchesKeyInQuery",value:function(e,t,r){var n=r.toJSON();return n.className=r.className,this._addCondition(e,"$select",{key:t,query:n})}},{key:"doesNotMatchKeyInQuery",value:function(e,t,r){var n=r.toJSON();return n.className=r.className,this._addCondition(e,"$dontSelect",{key:t,query:n})}},{key:"contains",value:function(e,t){if("string"!=typeof t)throw new Error("The value being searched for must be a string.");return this._addCondition(e,"$regex",p(t))}},{key:"fullText",value:function(e,t,r){if(r=r||{},!e)throw new Error("A key is required.");if(!t)throw new Error("A search term is required");if("string"!=typeof t)throw new Error("The value being searched for must be a string.");var n={$term:t};for(var _ in r)switch(_){case"language":n.$language=r[_];break;case"caseSensitive":n.$caseSensitive=r[_];break;case"diacriticSensitive":n.$diacriticSensitive=r[_];break;default:throw new Error("Unknown option: ".concat(_))}return this._addCondition(e,"$text",{$search:n})}},{key:"sortByTextScore",value:function(){return this.ascending("$score"),this.select(["$score"]),this}},{key:"startsWith",value:function(e,t){if("string"!=typeof t)throw new Error("The value being searched for must be a string.");return this._addCondition(e,"$regex",this._regexStartWith(t))}},{key:"endsWith",value:function(e,t){if("string"!=typeof t)throw new Error("The value being searched for must be a string.");return this._addCondition(e,"$regex",p(t)+"$")}},{key:"near",value:function(e,t){return t instanceof d.default||(t=new d.default(t)),this._addCondition(e,"$nearSphere",t)}},{key:"withinRadians",value:function(e,t,r,n){return n||void 0===n?(this.near(e,t),this._addCondition(e,"$maxDistance",r)):this._addCondition(e,"$geoWithin",{$centerSphere:[[t.longitude,t.latitude],r]})}},{key:"withinMiles",value:function(e,t,r,n){return this.withinRadians(e,t,r/3958.8,n)}},{key:"withinKilometers",value:function(e,t,r,n){return this.withinRadians(e,t,r/6371,n)}},{key:"withinGeoBox",value:function(e,t,r){return t instanceof d.default||(t=new d.default(t)),r instanceof d.default||(r=new d.default(r)),this._addCondition(e,"$within",{$box:[t,r]}),this}},{key:"withinPolygon",value:function(e,t){return this._addCondition(e,"$geoWithin",{$polygon:t})}},{key:"polygonContains",value:function(e,t){return this._addCondition(e,"$geoIntersects",{$point:t})}},{key:"ascending",value:function(){this._order=[];for(var e=arguments.length,t=new Array(e),r=0;ra;)i(r[a++]);e._c=[],e._n=!1,t&&!e._h&&B(e)})}},B=function(e){m.call(s,function(){var t,r,n,_=e._v,a=U(e);if(a&&(t=v(function(){T?P.emit("unhandledRejection",_,e):(r=s.onunhandledrejection)?r({promise:e,reason:_}):(n=s.console)&&n.error&&n.error("Unhandled promise rejection",_)}),e._h=T||U(e)?2:1),e._a=void 0,a&&t.e)throw t.v})},U=function(e){return 1!==e._h&&0===(e._a||e._c).length},S=function(e){m.call(s,function(){var t;T?P.emit("rejectionHandled",e):(t=s.onrejectionhandled)&&t({promise:e,reason:e._v})})},K=function(e){var t=this;t._d||(t._d=!0,(t=t._w||t)._v=e,t._s=2,t._a||(t._a=t._c.slice()),L(t,!0))},W=function(e){var t,r=this;if(!r._d){r._d=!0,r=r._w||r;try{if(r===e)throw C("Promise can't be resolved itself");(t=R(e))?g(function(){var n={_w:r,_d:!1};try{t.call(e,l(W,n,1),l(K,n,1))}catch(e){K.call(n,e)}}):(r._v=e,r._s=1,L(r,!1))}catch(e){K.call({_w:r,_d:!1},e)}}};I||(w=function(e){p(this,w,"Promise","_h"),f(e),n.call(this);try{e(l(W,this,1),l(K,this,1))}catch(e){K.call(this,e)}},(n=function(e){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=r(201)(w.prototype,{then:function(e,t){var r=k(E(this,w));return r.ok="function"!=typeof e||e,r.fail="function"==typeof t&&t,r.domain=T?P.domain:void 0,this._c.push(r),this._a&&this._a.push(r),this._s&&L(this,!1),r.promise},catch:function(e){return this.then(void 0,e)}}),a=function(){var e=new n;this.promise=e,this.resolve=l(W,e,1),this.reject=l(K,e,1)},b.f=k=function(e){return e===w||e===i?new a(e):_(e)}),c(c.G+c.W+c.F*!I,{Promise:w}),r(126)(w,"Promise"),r(204)("Promise"),i=r(94).Promise,c(c.S+c.F*!I,"Promise",{reject:function(e){var t=k(this);return(0,t.reject)(e),t.promise}}),c(c.S+c.F*(o||!I),"Promise",{resolve:function(e){return M(o&&this===i?w:this,e)}}),c(c.S+c.F*!(I&&r(195)(function(e){w.all(e).catch(A)})),"Promise",{all:function(e){var t=this,r=k(t),n=r.resolve,_=r.reject,a=v(function(){var r=[],a=0,i=1;h(e,!1,function(e){var o=a++,s=!1;r.push(void 0),i++,t.resolve(e).then(function(e){s||(s=!0,r[o]=e,--i||n(r))},_)}),--i||n(r)});return a.e&&_(a.v),r.promise},race:function(e){var t=this,r=k(t),n=r.reject,_=v(function(){h(e,!1,function(e){t.resolve(e).then(r.resolve,n)})});return _.e&&n(_.v),r.promise}})},function(e,t,r){"use strict";var n=r(30).OrderedMap,_={createFromArray:function(e){return n(e.map(function(e){return[e.getKey(),e]}))}};e.exports=_},function(e,t,r){"use strict";e.exports=function(e,t,r,n){if(e.size){var _=0;e.reduce(function(e,a,i){return t(e,a)||(r(e)&&n(_,i),_=i),a}),r(e.last())&&n(_,e.count())}}},function(e,t,r){"use strict";e.exports=function(e){return"handled"===e||!0===e}},function(e,t,r){"use strict";var n=r(55);e.exports=function(e,t,r){var _=e.getSelection(),a=e.getCurrentContent(),i=_;if(_.isCollapsed()){if("forward"===r){if(e.isSelectionAtEndOfContent())return a}else if(e.isSelectionAtStartOfContent())return a;if((i=t(e))===_)return a}return n.removeRange(a,i,r)}},function(e,t,r){e.exports=r.p+"assets/images/chisel-logo.png"},function(e,t,r){"use strict";t.__esModule=!0;t.PUSH="PUSH",t.REPLACE="REPLACE",t.POP="POP"},function(module,__webpack_exports__,__webpack_require__){"use strict";(function(module){__webpack_require__.d(__webpack_exports__,"a",function(){return DropdownControl});var core_js_modules_es6_array_map__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(58),core_js_modules_es6_array_map__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(core_js_modules_es6_array_map__WEBPACK_IMPORTED_MODULE_0__),core_js_modules_es6_array_index_of__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(45),core_js_modules_es6_array_index_of__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(core_js_modules_es6_array_index_of__WEBPACK_IMPORTED_MODULE_1__),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(2),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2__),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(3),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3__),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(5),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(4),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(6),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_6__),react__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(0),react__WEBPACK_IMPORTED_MODULE_7___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_7__),react_css_modules__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(10),react_css_modules__WEBPACK_IMPORTED_MODULE_8___default=__webpack_require__.n(react_css_modules__WEBPACK_IMPORTED_MODULE_8__),classnames__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(80),classnames__WEBPACK_IMPORTED_MODULE_9___default=__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_9__),svg_inline_react__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(18),svg_inline_react__WEBPACK_IMPORTED_MODULE_10___default=__webpack_require__.n(svg_inline_react__WEBPACK_IMPORTED_MODULE_10__),components_elements_InputControl_InputControl__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(17),_DropdownControl_sss__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(767),_DropdownControl_sss__WEBPACK_IMPORTED_MODULE_12___default=__webpack_require__.n(_DropdownControl_sss__WEBPACK_IMPORTED_MODULE_12__),_dec,_class;!function(){var e=__webpack_require__(1).enterModule;e&&e(module)}();var DropdownControl=(_dec=react_css_modules__WEBPACK_IMPORTED_MODULE_8___default()(_DropdownControl_sss__WEBPACK_IMPORTED_MODULE_12___default.a,{allowMultiple:!0}),_dec(_class=function(_Component){function DropdownControl(e){var t;_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2___default()(this,DropdownControl),(t=_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default()(this,_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default()(DropdownControl).call(this,e))).state={suggestionValue:"",suggestionsVisibility:!1,disabled:!1},t.suggestionsList=[],t.onSuggest=null,t.onSuggestionClick=function(e){var r=e.target.innerText;t.setState({suggestionValue:r,suggestionsVisibility:!1}),t.onSuggest(r)},t.onSuggestionInputClick=function(e){t.setState({suggestionsVisibility:!t.state.suggestionsVisibility,suggestionValue:e.target.value})},t.onSuggestionBlur=function(){t.setState({suggestionsVisibility:!1})};var r=e.suggestionsList,n=e.suggest,_=e.current,a=e.disabled;return t.onSuggest=n,t.suggestionsList=r,t.state.disabled=a,t.state.suggestionValue=_,-1==r.indexOf(_)&&(t.state.suggestionValue=r[0]),t}return _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_6___default()(DropdownControl,_Component),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3___default()(DropdownControl,[{key:"componentWillReceiveProps",value:function(e){var t=e.suggestionsList,r=e.current,n=e.disabled;this.suggestionsList=t,-1!=t.indexOf(r)?this.setState({suggestionValue:r,disabled:n}):this.setState({suggestionValue:t[0],disabled:n})}},{key:"render",value:function(){var e=this,t=this.props,r=t.label,n=t.type;if(this.state.disabled)return react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement(components_elements_InputControl_InputControl__WEBPACK_IMPORTED_MODULE_11__.a,{label:r,icon:"lock",value:this.state.suggestionValue,dropdown:!0,readOnly:!0});var _,a=classnames__WEBPACK_IMPORTED_MODULE_9___default()({"input-wrapper type-wrapper":void 0===n,"input-wrapper type-wrapper dropdown-big":"big"===n}),i=classnames__WEBPACK_IMPORTED_MODULE_9___default()({input:!0,"input suggestions-visible":this.state.suggestionsVisibility}),o=classnames__WEBPACK_IMPORTED_MODULE_9___default()({"arrow-down":!0,"arrow-down arrow-rotated":this.state.suggestionsVisibility}),s=this.suggestionsList.map(function(t){return react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{onMouseDown:e.onSuggestionClick,styleName:"suggestion",key:t},t)}),l=react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement(svg_inline_react__WEBPACK_IMPORTED_MODULE_10___default.a,{styleName:o,src:__webpack_require__(275)});return"big"===n&&(l=react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement(svg_inline_react__WEBPACK_IMPORTED_MODULE_10___default.a,{styleName:"arrows",src:__webpack_require__(276)})),r&&(_=react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{styleName:"label"},r)),react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{styleName:a,onBlur:this.onSuggestionBlur},_,react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{styleName:"input-wrapper"},l,react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("input",{styleName:i,value:this.state.suggestionValue,onClick:this.onSuggestionInputClick,readOnly:!0}),react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{styleName:"suggestions"},s)))}},{key:"__reactstandin__regenerateByEval",value:function __reactstandin__regenerateByEval(key,code){this[key]=eval(code)}}]),DropdownControl}(react__WEBPACK_IMPORTED_MODULE_7__.Component))||_class);!function(){var e=__webpack_require__(1).default,t=__webpack_require__(1).leaveModule;e&&(e.register(DropdownControl,"DropdownControl","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/components/elements/DropdownControl/DropdownControl.js"),t(module))}()}).call(this,__webpack_require__(12)(module))},function(module,__webpack_exports__,__webpack_require__){"use strict";(function(module){__webpack_require__.d(__webpack_exports__,"a",function(){return LAYOUT_SPLIT}),__webpack_require__.d(__webpack_exports__,"b",function(){return MarkdownEditor});var core_js_modules_es6_promise__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(134),core_js_modules_es6_promise__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(core_js_modules_es6_promise__WEBPACK_IMPORTED_MODULE_0__),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(2),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(3),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(5),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(4),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(6),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5__),react__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(0),react__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_6__),react_mde__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(232),react_mde__WEBPACK_IMPORTED_MODULE_7___default=__webpack_require__.n(react_mde__WEBPACK_IMPORTED_MODULE_7__),showdown__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(350),showdown__WEBPACK_IMPORTED_MODULE_8___default=__webpack_require__.n(showdown__WEBPACK_IMPORTED_MODULE_8__),react_css_modules__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(10),react_css_modules__WEBPACK_IMPORTED_MODULE_9___default=__webpack_require__.n(react_css_modules__WEBPACK_IMPORTED_MODULE_9__),_MarkdownEditor_sss__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(784),_MarkdownEditor_sss__WEBPACK_IMPORTED_MODULE_10___default=__webpack_require__.n(_MarkdownEditor_sss__WEBPACK_IMPORTED_MODULE_10__),react_mde_lib_styles_css_react_mde_all_css__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(786),react_mde_lib_styles_css_react_mde_all_css__WEBPACK_IMPORTED_MODULE_11___default=__webpack_require__.n(react_mde_lib_styles_css_react_mde_all_css__WEBPACK_IMPORTED_MODULE_11__),_dec,_class;!function(){var e=__webpack_require__(1).enterModule;e&&e(module)}();var LAYOUT_TABS="tabbed",LAYOUT_SPLIT="horizontal",MarkdownEditor=(_dec=react_css_modules__WEBPACK_IMPORTED_MODULE_9___default()(_MarkdownEditor_sss__WEBPACK_IMPORTED_MODULE_10___default.a,{allowMultiple:!0}),_dec(_class=function(_Component){function MarkdownEditor(e){var t;return _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this,MarkdownEditor),(t=_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this,_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(MarkdownEditor).call(this,e))).state={mdeState:{markdown:""}},t.onChange=void 0,t.layout=LAYOUT_TABS,t.converter=null,t.onChangeMde=function(e){t.setState({mdeState:e}),t.onChange(e.markdown)},t.genPreview=function(e){return Promise.resolve(t.converter.makeHtml(e))},t.state.mdeState.markdown=e.value,t.onChange=e.onChange,e.layout&&(t.layout=e.layout),t.converter=new showdown__WEBPACK_IMPORTED_MODULE_8__.Converter({tables:!0,simplifiedAutoLink:!0,simpleLineBreaks:!0,tasklists:!0,strikethrough:!0}),t}return _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5___default()(MarkdownEditor,_Component),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default()(MarkdownEditor,[{key:"componentWillReceiveProps",value:function(e){var t=this,r=this.state.mdeState;e.value!=r.markdown&&react_mde__WEBPACK_IMPORTED_MODULE_7__.DraftUtil.buildNewMdeState(r,null,e.value).then(function(e){return t.setState({mdeState:e})})}},{key:"render",value:function(){return react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement(react_mde__WEBPACK_IMPORTED_MODULE_7___default.a,{className:this.props.className,onChange:this.onChangeMde,editorState:this.state.mdeState,generateMarkdownPreview:this.genPreview,layout:this.layout})}},{key:"__reactstandin__regenerateByEval",value:function __reactstandin__regenerateByEval(key,code){this[key]=eval(code)}}]),MarkdownEditor}(react__WEBPACK_IMPORTED_MODULE_6__.Component))||_class);!function(){var e=__webpack_require__(1).default,t=__webpack_require__(1).leaveModule;e&&(e.register(LAYOUT_TABS,"LAYOUT_TABS","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/components/elements/MarkdownEditor/MarkdownEditor.js"),e.register(LAYOUT_SPLIT,"LAYOUT_SPLIT","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/components/elements/MarkdownEditor/MarkdownEditor.js"),e.register(MarkdownEditor,"MarkdownEditor","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/components/elements/MarkdownEditor/MarkdownEditor.js"),t(module))}()}).call(this,__webpack_require__(12)(module))},function(e,t,r){var n=r(719),_=r(720),a=r(721);e.exports=function(e,t){return n(e)||_(e,t)||a()}},function(module,__webpack_exports__,__webpack_require__){"use strict";(function(module){__webpack_require__.d(__webpack_exports__,"a",function(){return MediaItemData});var core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(32),core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_0__),core_js_modules_es6_array_index_of__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(45),core_js_modules_es6_array_index_of__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(core_js_modules_es6_array_index_of__WEBPACK_IMPORTED_MODULE_1__),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(2),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2__),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(3),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3__),parse__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(14),parse__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(parse__WEBPACK_IMPORTED_MODULE_4__);!function(){var e=__webpack_require__(1).enterModule;e&&e(module)}();var MEDIA_TYPE__IMAGE="MEDIA_TYPE__IMAGE",keys=[],MediaItemData=function(){function MediaItemData(){for(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2___default()(this,MediaItemData),this.origin=null,this.name="",this.type=MEDIA_TYPE__IMAGE,this.file=null,this.assigned=!1,this.key=0,this.site=null;-1!=keys.indexOf(this.key);)this.key++;keys.push(this.key)}return _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3___default()(MediaItemData,null,[{key:"OriginClass",get:function(){return parse__WEBPACK_IMPORTED_MODULE_4__.Parse.Object.extend("MediaItem")}}]),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3___default()(MediaItemData,[{key:"setOrigin",value:function(e){return this.origin=e,e.get("name")&&(this.name=e.get("name")),e.get("type")&&(this.type=e.get("type")),e.get("file")&&(this.file=e.get("file")),e.get("assigned")&&(this.assigned=e.get("assigned")),this}},{key:"updateOrigin",value:function(){this.origin||(this.origin=new MediaItemData.OriginClass),this.origin.set("name",this.name),this.origin.set("type",this.type),this.origin.set("file",this.file),this.origin.set("assigned",this.assigned),this.origin.set("site",this.site.origin)}},{key:"clone",value:function(){var e=new MediaItemData;return e.file=this.file,e.name=this.name,e.type=this.type,e.site=this.site,e.assigned=this.assigned,e}},{key:"__reactstandin__regenerateByEval",value:function __reactstandin__regenerateByEval(key,code){this[key]=eval(code)}}]),MediaItemData}();!function(){var e=__webpack_require__(1).default,t=__webpack_require__(1).leaveModule;e&&(e.register(MEDIA_TYPE__IMAGE,"MEDIA_TYPE__IMAGE","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/MediaItemData.js"),e.register(keys,"keys","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/MediaItemData.js"),e.register(MediaItemData,"MediaItemData","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/MediaItemData.js"),t(module))}()}).call(this,__webpack_require__(12)(module))},function(e,t,r){"use strict";var n=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r}(this.props,[]);return delete p.md5,delete p.email,delete p.protocol,delete p.rating,delete p.size,delete p.style,delete p.className,delete p.default,!d&&(0,s.default)()?a.default.createElement("img",n({alt:"Gravatar for "+_,style:this.props.style,src:c,height:this.props.size,width:this.props.size},p,{className:f})):a.default.createElement("img",n({alt:"Gravatar for "+_,style:this.props.style,src:u,srcSet:c+" 2x",height:this.props.size,width:this.props.size},p,{className:f}))}}]),t}();c.displayName="Gravatar",c.propTypes={email:l.default.string,md5:l.default.string,size:l.default.number,rating:l.default.string,default:l.default.string,className:l.default.string,protocol:l.default.string,style:l.default.object},c.defaultProps={size:50,rating:"g",default:"retro",protocol:"//"},e.exports=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.arrayMove=t.sortableHandle=t.sortableElement=t.sortableContainer=t.SortableHandle=t.SortableElement=t.SortableContainer=void 0;var n=r(170);Object.defineProperty(t,"arrayMove",{enumerable:!0,get:function(){return n.arrayMove}});var _=o(r(736)),a=o(r(738)),i=o(r(739));function o(e){return e&&e.__esModule?e:{default:e}}t.SortableContainer=_.default,t.SortableElement=a.default,t.SortableHandle=i.default,t.sortableContainer=_.default,t.sortableElement=a.default,t.sortableHandle=i.default},function(e,t,r){"use strict";t.__esModule=!0;t.addEventListener=function(e,t,r){return e.addEventListener?e.addEventListener(t,r,!1):e.attachEvent("on"+t,r)},t.removeEventListener=function(e,t,r){return e.removeEventListener?e.removeEventListener(t,r,!1):e.detachEvent("on"+t,r)},t.supportsHistory=function(){var e=window.navigator.userAgent;return(-1===e.indexOf("Android 2.")&&-1===e.indexOf("Android 4.0")||-1===e.indexOf("Mobile Safari")||-1!==e.indexOf("Chrome")||-1!==e.indexOf("Windows Phone"))&&(window.history&&"pushState"in window.history)},t.supportsGoWithoutReloadUsingHash=function(){return-1===window.navigator.userAgent.indexOf("Firefox")},t.supportsPopstateOnHashchange=function(){return-1===window.navigator.userAgent.indexOf("Trident")},t.isExtraneousPopstateEvent=function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")}},function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},function(e,t,r){var n=r(91),_=r(75),a="[object AsyncFunction]",i="[object Function]",o="[object GeneratorFunction]",s="[object Proxy]";e.exports=function(e){if(!_(e))return!1;var t=n(e);return t==i||t==o||t==a||t==s}},function(e,t,r){var n=r(74).Symbol;e.exports=n},function(e,t){e.exports=function(e){return e}},function(e,t,r){var n=r(435),_=r(436),a=r(437),i=r(438),o=r(439);function s(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t0?n:r)(e)}},function(e,t){e.exports='icon-PopupCreated with Sketch.'},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,r){"use strict";var n=r(282),_=r(206);e.exports=r(283)("Map",function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},{get:function(e){var t=n.getEntry(_(this,"Map"),e);return t&&t.v},set:function(e,t){return n.def(_(this,"Map"),0===e?0:e,t)}},n,!0)},function(e,t){e.exports=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,r):{};n.get||n.set?Object.defineProperty(t,r,n):t[r]=e[r]}return t.default=e,t}},function(e,t,r){"use strict";var n=r(26);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var _=n(r(41)),a=n(r(2)),i=n(r(3)),o=n(r(5)),s=n(r(4)),l=n(r(69)),u=n(r(6)),c=n(r(47)),d=n(r(295)),f=n(r(87)),p=n(r(46)),h=n(r(296)),E=n(r(165)),m=!c.default.get("IS_NODE"),g=!1,b=null,v={},O=function(e){function t(e){var r;if((0,a.default)(this,t),r=(0,o.default)(this,(0,s.default)(t).call(this,"_User")),e&&"object"===(0,_.default)(e)&&!r.set(e||{}))throw new Error("Can't create an invalid Parse User");return r}return(0,u.default)(t,e),(0,i.default)(t,[{key:"_upgradeToRevocableSession",value:function(e){var t={};return(e=e||{}).hasOwnProperty("useMasterKey")&&(t.useMasterKey=e.useMasterKey),c.default.getUserController().upgradeToRevocableSession(this,t)}},{key:"_linkWith",value:function(e,t){var r,n=this;if("string"==typeof e?(r=e,e=v[e]):r=e.getAuthType(),t&&t.hasOwnProperty("authData")){var a=this.get("authData")||{};if("object"!==(0,_.default)(a))throw new Error("Invalid type: authData field should be an object");return a[r]=t.authData,c.default.getUserController().linkWith(this,a)}return new Promise(function(t,r){e.authenticate({success:function(e,_){var a={};a.authData=_,n._linkWith(e,a).then(function(){t(n)},function(e){r(e)})},error:function(e,t){r(t)}})})}},{key:"_synchronizeAuthData",value:function(e){if(this.isCurrent()&&e){var t;"string"==typeof e?e=v[t=e]:t=e.getAuthType();var r=this.get("authData");if(e&&r&&"object"===(0,_.default)(r))e.restoreAuthentication(r[t])||this._unlinkFrom(e)}}},{key:"_synchronizeAllAuthData",value:function(){var e=this.get("authData");if("object"===(0,_.default)(e))for(var t in e)this._synchronizeAuthData(t)}},{key:"_cleanupAuthData",value:function(){if(this.isCurrent()){var e=this.get("authData");if("object"===(0,_.default)(e))for(var t in e)e[t]||delete e[t]}}},{key:"_unlinkFrom",value:function(e){var t=this;return"string"==typeof e&&(e=v[e]),this._linkWith(e,{authData:null}).then(function(){return t._synchronizeAuthData(e),Promise.resolve(t)})}},{key:"_isLinked",value:function(e){var t;t="string"==typeof e?e:e.getAuthType();var r=this.get("authData")||{};return"object"===(0,_.default)(r)&&!!r[t]}},{key:"_logOutWithAll",value:function(){var e=this.get("authData");if("object"===(0,_.default)(e))for(var t in e)this._logOutWith(t)}},{key:"_logOutWith",value:function(e){this.isCurrent()&&("string"==typeof e&&(e=v[e]),e&&e.deauthenticate&&e.deauthenticate())}},{key:"_preserveFieldsOnFetch",value:function(){return{sessionToken:this.get("sessionToken")}}},{key:"isCurrent",value:function(){var e=t.current();return!!e&&e.id===this.id}},{key:"getUsername",value:function(){var e=this.get("username");return null==e||"string"==typeof e?e:""}},{key:"setUsername",value:function(e){var t=this.get("authData");t&&"object"===(0,_.default)(t)&&t.hasOwnProperty("anonymous")&&(t.anonymous=null),this.set("username",e)}},{key:"setPassword",value:function(e){this.set("password",e)}},{key:"getEmail",value:function(){var e=this.get("email");return null==e||"string"==typeof e?e:""}},{key:"setEmail",value:function(e){return this.set("email",e)}},{key:"getSessionToken",value:function(){var e=this.get("sessionToken");return null==e||"string"==typeof e?e:""}},{key:"authenticated",value:function(){var e=t.current();return!!this.get("sessionToken")&&!!e&&e.id===this.id}},{key:"signUp",value:function(e,t){var r={};return(t=t||{}).hasOwnProperty("useMasterKey")&&(r.useMasterKey=t.useMasterKey),t.hasOwnProperty("installationId")&&(r.installationId=t.installationId),c.default.getUserController().signUp(this,e,r)}},{key:"logIn",value:function(e){var t={};return(e=e||{}).hasOwnProperty("useMasterKey")&&(t.useMasterKey=e.useMasterKey),e.hasOwnProperty("installationId")&&(t.installationId=e.installationId),c.default.getUserController().logIn(this,t)}},{key:"requestEmailChange",value:function(e,t){var r={};return(t=t||{}).hasOwnProperty("useMasterKey")&&(r.useMasterKey=t.useMasterKey),t.hasOwnProperty("installationId")&&(r.installationId=t.installationId),c.default.getUserController().requestEmailChange(this,e,r)}},{key:"save",value:function(){for(var e=this,r=arguments.length,n=new Array(r),_=0;_=n.length)for(var _=r-n.length;1+_--;)n.push(void 0);return n.splice(r,0,n.splice(t,1)[0]),n},t.omit=function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;nt)return t;return r},t.getElementMargin=function(e){var t=window.getComputedStyle(e);return{top:_(t.marginTop),right:_(t.marginRight),bottom:_(t.marginBottom),left:_(t.marginLeft)}},t.provideDisplayName=function(e,t){var r=t.displayName||t.name;return r?e+"("+r+")":e},t.getPosition=function(e){return e.touches&&e.touches.length?{x:e.touches[0].pageX,y:e.touches[0].pageY}:e.changedTouches&&e.changedTouches.length?{x:e.changedTouches[0].pageX,y:e.changedTouches[0].pageY}:{x:e.pageX,y:e.pageY}},t.isTouchEvent=function(e){return e.touches&&e.touches.length||e.changedTouches&&e.changedTouches.length},t.getEdgeOffset=function e(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{top:0,left:0};if(t){var _={top:n.top+t.offsetTop,left:n.left+t.offsetLeft};return t.parentNode!==r?e(t.parentNode,r,_):_}},t.getLockPixelOffset=function(e){var t=e.lockOffset,r=e.width,_=e.height,a=t,i=t,o="px";if("string"==typeof t){var s=/^[+-]?\d*(?:\.\d*)?(px|%)$/.exec(t);(0,n.default)(null!==s,'lockOffset value should be a number or a string of a number followed by "px" or "%". Given %s',t),a=i=parseFloat(t),o=s[1]}(0,n.default)(isFinite(a)&&isFinite(i),"lockOffset value should be a finite. Given %s",t),"%"===o&&(a=a*r/100,i=i*_/100);return{x:a,y:i}};var n=function(e){return e&&e.__esModule?e:{default:e}}(r(27));t.events={start:["touchstart","mousedown"],move:["touchmove","mousemove"],end:["touchend","touchcancel","mouseup"]},t.vendorPrefix=function(){if("undefined"==typeof window||"undefined"==typeof document)return"";var e=window.getComputedStyle(document.documentElement,"")||["-moz-hidden-iframe"],t=(Array.prototype.slice.call(e).join("").match(/-(moz|webkit|ms)-/)||""===e.OLink&&["","o"])[1];switch(t){case"ms":return"ms";default:return t&&t.length?t[0].toUpperCase()+t.substr(1):""}}();function _(e){return"px"===e.substr(-2)?parseFloat(e):0}},function(e,t,r){"use strict";t.__esModule=!0;var n=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},r=e(t),_=t.stringifyQuery,u=t.parseQueryString;"function"!=typeof _&&(_=s),"function"!=typeof u&&(u=l);var c=function(e){return e?(null==e.query&&(e.query=u(e.search.substring(1))),e):e},d=function(e,t){if(null==t)return e;var r="string"==typeof e?(0,o.parsePath)(e):e,a=_(t);return n({},r,{search:a?"?"+a:""})};return n({},r,{getCurrentLocation:function(){return c(r.getCurrentLocation())},listenBefore:function(e){return r.listenBefore(function(t,r){return(0,a.default)(e,c(t),r)})},listen:function(e){return r.listen(function(t){return e(c(t))})},push:function(e){return r.push(d(e,e.query))},replace:function(e){return r.replace(d(e,e.query))},createPath:function(e){return r.createPath(d(e,e.query))},createHref:function(e){return r.createHref(d(e,e.query))},createLocation:function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),_=1;_0&&void 0!==arguments[0]?arguments[0]:{},r=e(t),i=t.basename,o=function(e){return e?(i&&null==e.basename&&(0===e.pathname.toLowerCase().indexOf(i.toLowerCase())?(e.pathname=e.pathname.substring(i.length),e.basename=i,""===e.pathname&&(e.pathname="/")):e.basename=""),e):e},s=function(e){if(!i)return e;var t="string"==typeof e?(0,a.parsePath)(e):e,r=t.pathname,_="/"===i.slice(-1)?i:i+"/",o="/"===r.charAt(0)?r.slice(1):r;return n({},t,{pathname:_+o})};return n({},r,{getCurrentLocation:function(){return o(r.getCurrentLocation())},listenBefore:function(e){return r.listenBefore(function(t,r){return(0,_.default)(e,o(t),r)})},listen:function(e){return r.listen(function(t){return e(o(t))})},push:function(e){return r.push(s(e))},replace:function(e){return r.replace(s(e))},createPath:function(e){return r.createPath(s(e))},createHref:function(e){return r.createHref(s(e))},createLocation:function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),_=1;_0&&void 0!==arguments[0]?arguments[0]:{},t=e.getCurrentLocation,r=e.getUserConfirmation,s=e.pushLocation,l=e.replaceLocation,u=e.go,c=e.keyLength,d=void 0,f=void 0,p=[],h=[],E=[],m=function(e){var t=f&&f.action===i.POP?E.indexOf(f.key):d?E.indexOf(d.key):-1;(d=e).action===i.PUSH?E=[].concat(E.slice(0,t+1),[d.key]):d.action===i.REPLACE&&(E[t]=d.key),h.forEach(function(e){return e(d)})},g=function(e){d&&(0,o.locationsAreEqual)(d,e)||f&&(0,o.locationsAreEqual)(f,e)||(f=e,function(e,t){(0,n.loopAsync)(p.length,function(t,r,n){(0,a.default)(p[t],e,function(e){return null!=e?n(e):r()})},function(e){r&&"string"==typeof e?r(e,function(e){return t(!1!==e)}):t(!1!==e)})}(e,function(t){if(f===e)if(f=null,t){if(e.action===i.PUSH){var r=(0,_.createPath)(d);(0,_.createPath)(e)===r&&(0,o.statesAreEqual)(d.state,e.state)&&(e.action=i.REPLACE)}e.action===i.POP?m(e):e.action===i.PUSH?!1!==s(e)&&m(e):e.action===i.REPLACE&&!1!==l(e)&&m(e)}else if(d&&e.action===i.POP){var n=E.indexOf(d.key),a=E.indexOf(e.key);-1!==n&&-1!==a&&u(n-a)}}))},b=function(){return Math.random().toString(36).substr(2,c||6)},v=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:b();return(0,o.createLocation)(e,t,r)};return{getCurrentLocation:t,listenBefore:function(e){return p.push(e),function(){return p=p.filter(function(t){return t!==e})}},listen:function(e){return h.push(e),function(){return h=h.filter(function(t){return t!==e})}},transitionTo:g,push:function(e){return g(v(e,i.PUSH))},replace:function(e){return g(v(e,i.REPLACE))},go:u,goBack:function(){return u(-1)},goForward:function(){return u(1)},createKey:b,createPath:_.createPath,createHref:function(e){return(0,_.createPath)(e)},createLocation:v}}},function(e,t,r){"use strict";t.__esModule=!0;t.canUseDOM=!("undefined"==typeof window||!window.document||!window.document.createElement)},function(e,t,r){"use strict";t.__esModule=!0,t.go=t.replaceLocation=t.pushLocation=t.startListener=t.getUserConfirmation=t.getCurrentLocation=void 0;var n=r(103),_=r(147),a=r(235),i=r(83),o=r(177).canUseDOM&&!(0,_.supportsPopstateOnHashchange)(),s=function(e){var t=e&&e.key;return(0,n.createLocation)({pathname:window.location.pathname,search:window.location.search,hash:window.location.hash,state:t?(0,a.readState)(t):void 0},void 0,t)},l=t.getCurrentLocation=function(){var e=void 0;try{e=window.history.state||{}}catch(t){e={}}return s(e)},u=(t.getUserConfirmation=function(e,t){return t(window.confirm(e))},t.startListener=function(e){var t=function(t){(0,_.isExtraneousPopstateEvent)(t)||e(s(t.state))};(0,_.addEventListener)(window,"popstate",t);var r=function(){return e(l())};return o&&(0,_.addEventListener)(window,"hashchange",r),function(){(0,_.removeEventListener)(window,"popstate",t),o&&(0,_.removeEventListener)(window,"hashchange",r)}},function(e,t){var r=e.state,n=e.key;void 0!==r&&(0,a.saveState)(n,r),t({key:n},(0,i.createPath)(e))});t.pushLocation=function(e){return u(e,function(e,t){return window.history.pushState(e,null,t)})},t.replaceLocation=function(e){return u(e,function(e,t){return window.history.replaceState(e,null,t)})},t.go=function(e){e&&window.history.go(e)}},function(e,t){function r(t,n){return e.exports=r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(t,n)}e.exports=r},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t){var r=9007199254740991,n=/^(?:0|[1-9]\d*)$/;e.exports=function(e,t){var _=typeof e;return!!(t=null==t?r:t)&&("number"==_||"symbol"!=_&&n.test(e))&&e>-1&&e%1==0&&e-1&&e%1==0&&e<=r}},function(e,t,r){var n=r(93)(r(74),"Map");e.exports=n},function(e,t,r){var n=r(449),_=r(456),a=r(458),i=r(459),o=r(460);function s(e){var t=-1,r=null==e?0:e.length;for(this.clear();++tdocument.F=Object<\/script>"),e.close(),s=e.F;n--;)delete s.prototype[a[n]];return s()};e.exports=Object.create||function(e,t){var r;return null!==e?(o.prototype=n(e),r=new o,o.prototype=null,r[i]=e):r=s(),void 0===t?r:_(r,t)}},function(e,t,r){var n=r(189)("keys"),_=r(120);e.exports=function(e){return n[e]||(n[e]=_(e))}},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,r){var n=r(36)("iterator"),_=!1;try{var a=[7][n]();a.return=function(){_=!0},Array.from(a,function(){throw 2})}catch(e){}e.exports=function(e,t){if(!t&&!_)return!1;var r=!1;try{var a=[7],i=a[n]();i.next=function(){return{done:r=!0}},a[n]=function(){return i},e(a)}catch(e){}return r}},function(e,t,r){var n=r(85),_=r(190),a=r(106),i=r(125),o=r(541);e.exports=function(e,t){var r=1==e,s=2==e,l=3==e,u=4==e,c=6==e,d=5==e||c,f=t||o;return function(t,o,p){for(var h,E,m=a(t),g=_(m),b=n(o,p,3),v=i(g.length),O=0,M=r?f(t,v):s?f(t,0):void 0;v>O;O++)if((d||O in g)&&(E=b(h=g[O],O,m),e))if(r)M[O]=E;else if(E)switch(e){case 3:return!0;case 5:return h;case 6:return O;case 2:M.push(h)}else if(u)return!1;return c?-1:l||u?u:M}}},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,r){"use strict";var n=r(84),_=r(71),a=r(51),i=r(123),o=r(36);e.exports=function(e,t,r){var s=o(e),l=r(i,s,""[e]),u=l[0],c=l[1];a(function(){var t={};return t[s]=function(){return 7},7!=""[e](t)})&&(_(String.prototype,e,u),n(RegExp.prototype,s,2==t?function(e,t){return c.call(e,this,t)}:function(e){return c.call(e,this)}))}},function(e,t,r){r(64)&&"g"!=/./g.flags&&r(63).f(RegExp.prototype,"flags",{configurable:!0,get:r(200)})},function(e,t,r){"use strict";var n=r(67);e.exports=function(){var e=n(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},function(e,t,r){var n=r(71);e.exports=function(e,t,r){for(var _ in t)n(e,_,t[_],r);return e}},function(e,t){e.exports=function(e,t,r,n){if(!(e instanceof t)||void 0!==n&&n in e)throw TypeError(r+": incorrect invocation!");return e}},function(e,t,r){var n=r(85),_=r(270),a=r(271),i=r(67),o=r(125),s=r(272),l={},u={};(t=e.exports=function(e,t,r,c,d){var f,p,h,E,m=d?function(){return e}:s(e),g=n(r,c,t?2:1),b=0;if("function"!=typeof m)throw TypeError(e+" is not iterable!");if(a(m)){for(f=o(e.length);f>b;b++)if((E=t?g(i(p=e[b])[0],p[1]):g(e[b]))===l||E===u)return E}else for(h=m.call(e);!(p=h.next()).done;)if((E=_(h,g,p.value,t))===l||E===u)return E}).BREAK=l,t.RETURN=u},function(e,t,r){"use strict";var n=r(42),_=r(63),a=r(64),i=r(36)("species");e.exports=function(e){var t=n[e];a&&t&&!t[i]&&_.f(t,i,{configurable:!0,get:function(){return this}})}},function(e,t,r){var n=r(120)("meta"),_=r(57),a=r(96),i=r(63).f,o=0,s=Object.isExtensible||function(){return!0},l=!r(51)(function(){return s(Object.preventExtensions({}))}),u=function(e){i(e,n,{value:{i:"O"+ ++o,w:{}}})},c=e.exports={KEY:n,NEED:!1,fastKey:function(e,t){if(!_(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!a(e,n)){if(!s(e))return"F";if(!t)return"E";u(e)}return e[n].i},getWeak:function(e,t){if(!a(e,n)){if(!s(e))return!0;if(!t)return!1;u(e)}return e[n].w},onFreeze:function(e){return l&&c.NEED&&s(e)&&!a(e,n)&&u(e),e}}},function(e,t,r){var n=r(57);e.exports=function(e,t){if(!n(e)||e._t!==t)throw TypeError("Incompatible receiver, "+t+" required!");return e}},function(e,t,r){var n=r(266),_=r(194).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,_)}},function(e,t,r){"use strict";var n=r(26);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var _=n(r(2)),a=n(r(3)),i=n(r(59)),o=n(r(132)),s=function(){function e(t){(0,_.default)(this,e),(0,i.default)(this,"_coordinates",void 0),this._coordinates=e._validate(t)}return(0,a.default)(e,[{key:"toJSON",value:function(){return e._validate(this._coordinates),{__type:"Polygon",coordinates:this._coordinates}}},{key:"equals",value:function(t){if(!(t instanceof e)||this.coordinates.length!==t.coordinates.length)return!1;for(var r=!0,n=1;nr||e.longitude_)return!1;for(var o=!1,s=0,l=this._coordinates.length-1;se.longitude!=f>e.longitude&&e.latitude<(d-u)*(e.longitude-c)/(f-c)+u&&(o=!o)}return o}},{key:"coordinates",get:function(){return this._coordinates},set:function(t){this._coordinates=e._validate(t)}}],[{key:"_validate",value:function(e){if(!Array.isArray(e))throw new TypeError("Coordinates must be an Array");if(e.length<3)throw new TypeError("Polygon must have at least 3 GeoPoints or Points");for(var t=[],r=0;r1||e.first().getLength()>0},t.prototype.createEntity=function(e,t,r){return o.__create(e,t,r),this},t.prototype.mergeEntityData=function(e,t){return o.__mergeData(e,t),this},t.prototype.replaceEntityData=function(e,t){return o.__replaceData(e,t),this},t.prototype.addEntity=function(e){return o.__add(e),this},t.prototype.getEntity=function(e){return o.__get(e)},t.createFromBlockArray=function(e,r){var _=Array.isArray(e)?e:e.contentBlocks,a=n.createFromArray(_),i=a.isEmpty()?new u:u.createEmpty(a.first().getKey());return new t({blockMap:a,entityMap:r||o,selectionBefore:i,selectionAfter:i})},t.createFromText=function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:/\r\n?|\n/g,n=e.split(r).map(function(e){return e=d(e),new E({key:c(),text:e,type:"unstyled",characterList:f(h(_.EMPTY,e.length))})});return t.createFromBlockArray(n)},t}(p({entityMap:null,blockMap:null,selectionBefore:null,selectionAfter:null}));e.exports=m},function(e,t,r){"use strict";var n=new RegExp("\r","g");e.exports=function(e){return e.replace(n,"")}},function(e,t,r){"use strict";var n=r(29),_="LTR",a="RTL",i=null;function o(e){return e===_||e===a}function s(e){return o(e)||n(!1),e===_?"ltr":"rtl"}function l(e){i=e}var u={NEUTRAL:"NEUTRAL",LTR:_,RTL:a,isStrong:o,getHTMLDir:s,getHTMLDirIfDifferent:function(e,t){return o(e)||n(!1),o(t)||n(!1),e===t?null:s(e)},setGlobalDir:l,initGlobalDir:function(){l(_)},getGlobalDir:function(){return i||this.initGlobalDir(),i||n(!1),i}};e.exports=u},function(e,t,r){"use strict";var n=r(30).Map,_=r(0),a=r(111),i=n({"header-one":{element:"h1"},"header-two":{element:"h2"},"header-three":{element:"h3"},"header-four":{element:"h4"},"header-five":{element:"h5"},"header-six":{element:"h6"},"unordered-list-item":{element:"li",wrapper:_.createElement("ul",{className:a("public/DraftStyleDefault/ul")})},"ordered-list-item":{element:"li",wrapper:_.createElement("ol",{className:a("public/DraftStyleDefault/ol")})},blockquote:{element:"blockquote"},atomic:{element:"figure"},"code-block":{element:"pre",wrapper:_.createElement("pre",{className:a("public/DraftStyleDefault/pre")})},unstyled:{element:"div",aliasedElements:["p"]}});e.exports=i},function(e,t,r){"use strict";e.exports={BACKSPACE:8,TAB:9,RETURN:13,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46,COMMA:188,PERIOD:190,A:65,Z:90,ZERO:48,NUMPAD_0:96,NUMPAD_9:105}},function(e,t,r){"use strict";function n(e,t){return t&&"MUTABLE"===e.__get(t).getMutability()?t:null}e.exports=function(e,t){var r;if(t.isCollapsed()){var _=t.getAnchorKey(),a=t.getAnchorOffset();return a>0?(r=e.getBlockForKey(_).getEntityAt(a-1))!==e.getBlockForKey(_).getEntityAt(a)?null:n(e.getEntityMap(),r):null}var i=t.getStartKey(),o=t.getStartOffset(),s=e.getBlockForKey(i);return r=o===s.getLength()?null:s.getEntityAt(o),n(e.getEntityMap(),r)}},function(e,t,r){"use strict";var n=r(638);e.exports=function e(t,r){return!(!t||!r)&&(t===r||!n(t)&&(n(r)?e(t,r.parentNode):"contains"in t?t.contains(r):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(r))))}},function(e,t,r){"use strict";function n(e,t){var r=_.get(e,t);return"auto"===r||"scroll"===r}var _={get:r(640),getScrollParent:function(e){if(!e)return null;for(var t=e.ownerDocument;e&&e!==t.body;){if(n(e,"overflow")||n(e,"overflowY")||n(e,"overflowX"))return e;e=e.parentNode}return t.defaultView||t.parentWindow}};e.exports=_},function(e,t,r){"use strict";var n=r(645),_=r(646);e.exports=function(e){var t=n(e.ownerDocument||e.document);e.Window&&e instanceof e.Window&&(e=t);var r=_(e),a=e===t?e.ownerDocument.documentElement:e,i=e.scrollWidth-a.clientWidth,o=e.scrollHeight-a.clientHeight;return r.x=Math.max(0,Math.min(r.x,i)),r.y=Math.max(0,Math.min(r.y,o)),r}},function(e,t,r){"use strict";var n=r(316);e.exports=function(e){for(var t=e;t&&t!==document.documentElement;){var r=n(t);if(null!=r)return r;t=t.parentNode}return null}},function(e,t,r){"use strict";var n=r(72).isPlatform("Mac OS X"),_={isCtrlKeyCommand:function(e){return!!e.ctrlKey&&!e.altKey},isOptionKeyCommand:function(e){return n&&e.altKey},hasCommandModifier:function(e){return n?!!e.metaKey&&!e.altKey:_.isCtrlKeyCommand(e)}};e.exports=_},function(e,t,r){"use strict";e.exports=function(e,t){var r=e.getSelection(),n=e.getCurrentContent(),_=r.getStartKey(),a=r.getStartOffset(),i=_,o=0;if(t>a){var s=n.getKeyBefore(_);null==s?i=_:(i=s,o=n.getBlockForKey(s).getText().length)}else o=a-t;return r.merge({focusKey:i,focusOffset:o,isBackward:!0})}},function(e,t,r){"use strict";var n=this&&this.__assign||Object.assign||function(e){for(var t,r=1,n=arguments.length;r1?arguments[1]:void 0)}}),r(264)("find")},function(e,t,r){"use strict";(function(e,n){var _,a=r(336);_="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==e?e:n;var i=Object(a.a)(_);t.a=i}).call(this,r(49),r(12)(e))},function(module,__webpack_exports__,__webpack_require__){"use strict";(function(module){__webpack_require__.d(__webpack_exports__,"a",function(){return SiteLoader});var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(2),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(3),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(5),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(4),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(6),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__),react__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(0),react__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_5__),react_css_modules__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(10),react_css_modules__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(react_css_modules__WEBPACK_IMPORTED_MODULE_6__),_SiteLoader_sss__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(757),_SiteLoader_sss__WEBPACK_IMPORTED_MODULE_7___default=__webpack_require__.n(_SiteLoader_sss__WEBPACK_IMPORTED_MODULE_7__),_dec,_class;!function(){var e=__webpack_require__(1).enterModule;e&&e(module)}();var SiteLoader=(_dec=react_css_modules__WEBPACK_IMPORTED_MODULE_6___default()(_SiteLoader_sss__WEBPACK_IMPORTED_MODULE_7___default.a,{allowMultiple:!0}),_dec(_class=function(_Component){function SiteLoader(){return _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this,SiteLoader),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default()(this,_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default()(SiteLoader).apply(this,arguments))}return _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default()(SiteLoader,_Component),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(SiteLoader,[{key:"render",value:function(){return react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{styleName:"loader-wrapper"},react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{styleName:"loader"},react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{styleName:"loader-inner"})))}},{key:"__reactstandin__regenerateByEval",value:function __reactstandin__regenerateByEval(key,code){this[key]=eval(code)}}]),SiteLoader}(react__WEBPACK_IMPORTED_MODULE_5__.Component))||_class);!function(){var e=__webpack_require__(1).default,t=__webpack_require__(1).leaveModule;e&&(e.register(SiteLoader,"SiteLoader","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/components/modals/SiteLoader/SiteLoader.js"),t(module))}()}).call(this,__webpack_require__(12)(module))},function(module,__webpack_exports__,__webpack_require__){"use strict";(function(module){__webpack_require__.d(__webpack_exports__,"a",function(){return ValidationNumber});var core_js_modules_es6_object_assign__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(128),core_js_modules_es6_object_assign__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(core_js_modules_es6_object_assign__WEBPACK_IMPORTED_MODULE_0__),_babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(11),_babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(_babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_1__),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(2),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2__),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(3),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3__),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(5),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(4),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(6),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_6__),react__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(0),react__WEBPACK_IMPORTED_MODULE_7___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_7__),react_css_modules__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(10),react_css_modules__WEBPACK_IMPORTED_MODULE_8___default=__webpack_require__.n(react_css_modules__WEBPACK_IMPORTED_MODULE_8__),components_elements_CheckboxControl_CheckboxControl__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(39),components_elements_InputControl_InputControl__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(17),components_elements_InputNumberControl_InputNumberControl__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(81),_FieldModal_sss__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(770),_FieldModal_sss__WEBPACK_IMPORTED_MODULE_12___default=__webpack_require__.n(_FieldModal_sss__WEBPACK_IMPORTED_MODULE_12__),_dec,_class;!function(){var e=__webpack_require__(1).enterModule;e&&e(module)}();var ValidationNumber=(_dec=react_css_modules__WEBPACK_IMPORTED_MODULE_8___default()(_FieldModal_sss__WEBPACK_IMPORTED_MODULE_12___default.a,{allowMultiple:!0}),_dec(_class=function(_Component){function ValidationNumber(e){var t;return _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2___default()(this,ValidationNumber),(t=_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default()(this,_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default()(ValidationNumber).call(this,e))).state={range:{active:!1,min:0,max:0,minActive:!0,maxActive:!0,errorMsg:""}},t.onRangeActive=function(e){t.setState({range:_babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_1___default()({},t.state.range,{active:e})},t.update)},t.onRangeMin=function(e){t.setState({range:_babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_1___default()({},t.state.range,{min:e})},t.update)},t.onRangeMax=function(e){t.setState({range:_babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_1___default()({},t.state.range,{max:e})},t.update)},t.onRangeMinActive=function(e){var r=t.state.range.maxActive;e||(r=!0),t.setState({range:_babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_1___default()({},t.state.range,{minActive:e,maxActive:r})},t.update)},t.onRangeMaxActive=function(e){var r=t.state.range.minActive;e||(r=!0),t.setState({range:_babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_1___default()({},t.state.range,{maxActive:e,minActive:r})},t.update)},t.onRangeErrorMsg=function(e){var r=e.target.value;t.setState({range:_babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_1___default()({},t.state.range,{errorMsg:r})},t.update)},t.update=function(){t.props.update(t.state)},Object.assign(t.state,e.validations),t}return _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_6___default()(ValidationNumber,_Component),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3___default()(ValidationNumber,[{key:"render",value:function(){return react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",null,react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{styleName:"validation"},react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{styleName:"switch"},react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement(components_elements_CheckboxControl_CheckboxControl__WEBPACK_IMPORTED_MODULE_9__.a,{title:"Accept only specified number range",checked:this.state.range.active,onChange:this.onRangeActive})),react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{styleName:"range"},react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement(components_elements_CheckboxControl_CheckboxControl__WEBPACK_IMPORTED_MODULE_9__.a,{title:"Min",checked:this.state.range.minActive,onChange:this.onRangeMinActive,disabled:!this.state.range.active}),react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{styleName:"range-field"},react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement(components_elements_InputNumberControl_InputNumberControl__WEBPACK_IMPORTED_MODULE_11__.a,{onChange:this.onRangeMin,value:this.state.range.min,readOnly:!this.state.range.active||!this.state.range.minActive})),react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement(components_elements_CheckboxControl_CheckboxControl__WEBPACK_IMPORTED_MODULE_9__.a,{title:"Max",checked:this.state.range.maxActive,onChange:this.onRangeMaxActive,disabled:!this.state.range.active}),react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{styleName:"range-field"},react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement(components_elements_InputNumberControl_InputNumberControl__WEBPACK_IMPORTED_MODULE_11__.a,{onChange:this.onRangeMax,value:this.state.range.max,readOnly:!this.state.range.active||!this.state.range.maxActive}))),react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement(components_elements_InputControl_InputControl__WEBPACK_IMPORTED_MODULE_10__.a,{label:"Custom error message",onChange:this.onRangeErrorMsg,value:this.state.range.errorMsg,readOnly:!this.state.range.active}),this.state.range.min>this.state.range.max&&react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{styleName:"error"},"Error: the min value should be smaller than max value! Please, fix it.")))}},{key:"__reactstandin__regenerateByEval",value:function __reactstandin__regenerateByEval(key,code){this[key]=eval(code)}}]),ValidationNumber}(react__WEBPACK_IMPORTED_MODULE_7__.Component))||_class);!function(){var e=__webpack_require__(1).default,t=__webpack_require__(1).leaveModule;e&&(e.register(ValidationNumber,"ValidationNumber","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/components/modals/FieldModal/Validations/ValidationNumber.js"),t(module))}()}).call(this,__webpack_require__(12)(module))},function(module,__webpack_exports__,__webpack_require__){"use strict";(function(module){__webpack_require__.d(__webpack_exports__,"a",function(){return ValidationString});var core_js_modules_es6_regexp_flags__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(199),core_js_modules_es6_regexp_flags__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(core_js_modules_es6_regexp_flags__WEBPACK_IMPORTED_MODULE_0__),core_js_modules_es6_object_assign__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(128),core_js_modules_es6_object_assign__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(core_js_modules_es6_object_assign__WEBPACK_IMPORTED_MODULE_1__),_babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(11),_babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(_babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_2__),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(2),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_3__),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(3),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_4__),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(5),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_5__),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(4),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_6__),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(6),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_7___default=__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_7__),react__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(0),react__WEBPACK_IMPORTED_MODULE_8___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_8__),react_css_modules__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(10),react_css_modules__WEBPACK_IMPORTED_MODULE_9___default=__webpack_require__.n(react_css_modules__WEBPACK_IMPORTED_MODULE_9__),components_elements_CheckboxControl_CheckboxControl__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(39),components_elements_InputControl_InputControl__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(17),components_elements_InputNumberControl_InputNumberControl__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(81),_FieldModal_sss__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(770),_FieldModal_sss__WEBPACK_IMPORTED_MODULE_13___default=__webpack_require__.n(_FieldModal_sss__WEBPACK_IMPORTED_MODULE_13__),_dec,_class;!function(){var e=__webpack_require__(1).enterModule;e&&e(module)}();var ValidationString=(_dec=react_css_modules__WEBPACK_IMPORTED_MODULE_9___default()(_FieldModal_sss__WEBPACK_IMPORTED_MODULE_13___default.a,{allowMultiple:!0}),_dec(_class=function(_Component){function ValidationString(e){var t;return _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_3___default()(this,ValidationString),(t=_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_5___default()(this,_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_6___default()(ValidationString).call(this,e))).state={range:{active:!1,min:0,max:0,minActive:!0,maxActive:!0,errorMsg:""},pattern:{active:!1,pattern:"",flags:"",errorMsg:""}},t.onRangeActive=function(e){t.setState({range:_babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_2___default()({},t.state.range,{active:e})},t.update)},t.onRangeMin=function(e){t.setState({range:_babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_2___default()({},t.state.range,{min:e})},t.update)},t.onRangeMax=function(e){t.setState({range:_babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_2___default()({},t.state.range,{max:e})},t.update)},t.onRangeMinActive=function(e){var r=t.state.range.maxActive;e||(r=!0),t.setState({range:_babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_2___default()({},t.state.range,{minActive:e,maxActive:r})},t.update)},t.onRangeMaxActive=function(e){var r=t.state.range.minActive;e||(r=!0),t.setState({range:_babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_2___default()({},t.state.range,{maxActive:e,minActive:r})},t.update)},t.onRangeErrorMsg=function(e){var r=e.target.value;t.setState({range:_babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_2___default()({},t.state.range,{errorMsg:r})},t.update)},t.onPatternActive=function(e){t.setState({pattern:_babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_2___default()({},t.state.pattern,{active:e})},t.update)},t.onPatternPattern=function(e){var r=e.target.value;t.setState({pattern:_babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_2___default()({},t.state.pattern,{pattern:r})},t.update)},t.onPatternFlags=function(e){var r=e.target.value;t.setState({pattern:_babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_2___default()({},t.state.pattern,{flags:r})},t.update)},t.onPatternErrorMsg=function(e){var r=e.target.value;t.setState({pattern:_babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_2___default()({},t.state.pattern,{errorMsg:r})},t.update)},t.update=function(){t.props.update(t.state)},Object.assign(t.state,e.validations),t}return _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_7___default()(ValidationString,_Component),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_4___default()(ValidationString,[{key:"render",value:function(){return react__WEBPACK_IMPORTED_MODULE_8___default.a.createElement("div",null,react__WEBPACK_IMPORTED_MODULE_8___default.a.createElement("div",{styleName:"validation"},react__WEBPACK_IMPORTED_MODULE_8___default.a.createElement("div",{styleName:"active"},react__WEBPACK_IMPORTED_MODULE_8___default.a.createElement(components_elements_CheckboxControl_CheckboxControl__WEBPACK_IMPORTED_MODULE_10__.a,{title:"Accept only specified number range",checked:this.state.range.active,onChange:this.onRangeActive})),react__WEBPACK_IMPORTED_MODULE_8___default.a.createElement("div",{styleName:"range"},react__WEBPACK_IMPORTED_MODULE_8___default.a.createElement(components_elements_CheckboxControl_CheckboxControl__WEBPACK_IMPORTED_MODULE_10__.a,{title:"Min",checked:this.state.range.minActive,onChange:this.onRangeMinActive,disabled:!this.state.range.active}),react__WEBPACK_IMPORTED_MODULE_8___default.a.createElement("div",{styleName:"range-field"},react__WEBPACK_IMPORTED_MODULE_8___default.a.createElement(components_elements_InputNumberControl_InputNumberControl__WEBPACK_IMPORTED_MODULE_12__.a,{onChange:this.onRangeMin,value:this.state.range.min,readOnly:!this.state.range.active||!this.state.range.minActive})),react__WEBPACK_IMPORTED_MODULE_8___default.a.createElement(components_elements_CheckboxControl_CheckboxControl__WEBPACK_IMPORTED_MODULE_10__.a,{title:"Max",checked:this.state.range.maxActive,onChange:this.onRangeMaxActive,disabled:!this.state.range.active}),react__WEBPACK_IMPORTED_MODULE_8___default.a.createElement("div",{styleName:"range-field"},react__WEBPACK_IMPORTED_MODULE_8___default.a.createElement(components_elements_InputNumberControl_InputNumberControl__WEBPACK_IMPORTED_MODULE_12__.a,{onChange:this.onRangeMax,value:this.state.range.max,readOnly:!this.state.range.active||!this.state.range.maxActive}))),react__WEBPACK_IMPORTED_MODULE_8___default.a.createElement(components_elements_InputControl_InputControl__WEBPACK_IMPORTED_MODULE_11__.a,{label:"Custom error message",onChange:this.onRangeErrorMsg,value:this.state.range.errorMsg,readOnly:!this.state.range.active}),this.state.range.min>this.state.range.max&&react__WEBPACK_IMPORTED_MODULE_8___default.a.createElement("div",{styleName:"error"},"Error: the min value should be smaller than max value! Please, fix it.")),react__WEBPACK_IMPORTED_MODULE_8___default.a.createElement("div",{styleName:"validation"},react__WEBPACK_IMPORTED_MODULE_8___default.a.createElement("div",{styleName:"active"},react__WEBPACK_IMPORTED_MODULE_8___default.a.createElement(components_elements_CheckboxControl_CheckboxControl__WEBPACK_IMPORTED_MODULE_10__.a,{title:"Match a specific pattern",checked:this.state.pattern.active,onChange:this.onPatternActive})),react__WEBPACK_IMPORTED_MODULE_8___default.a.createElement("div",{styleName:"pattern"},react__WEBPACK_IMPORTED_MODULE_8___default.a.createElement("div",{styleName:"pattern-pattern"},react__WEBPACK_IMPORTED_MODULE_8___default.a.createElement(components_elements_InputControl_InputControl__WEBPACK_IMPORTED_MODULE_11__.a,{onChange:this.onPatternPattern,placeholder:"Pattern",value:this.state.pattern.pattern,readOnly:!this.state.pattern.active})),react__WEBPACK_IMPORTED_MODULE_8___default.a.createElement("div",{styleName:"pattern-flags"},react__WEBPACK_IMPORTED_MODULE_8___default.a.createElement(components_elements_InputControl_InputControl__WEBPACK_IMPORTED_MODULE_11__.a,{onChange:this.onPatternFlags,placeholder:"Flags",value:this.state.pattern.flags,readOnly:!this.state.pattern.active}))),react__WEBPACK_IMPORTED_MODULE_8___default.a.createElement(components_elements_InputControl_InputControl__WEBPACK_IMPORTED_MODULE_11__.a,{label:"Custom error message",onChange:this.onPatternErrorMsg,value:this.state.pattern.errorMsg,readOnly:!this.state.pattern.active})))}},{key:"__reactstandin__regenerateByEval",value:function __reactstandin__regenerateByEval(key,code){this[key]=eval(code)}}]),ValidationString}(react__WEBPACK_IMPORTED_MODULE_8__.Component))||_class);!function(){var e=__webpack_require__(1).default,t=__webpack_require__(1).leaveModule;e&&(e.register(ValidationString,"ValidationString","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/components/modals/FieldModal/Validations/ValidationString.js"),t(module))}()}).call(this,__webpack_require__(12)(module))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(211);t.ReactMdeCommands=n;var _=r(711);t.ReactMdeTypes=_;var a=r(48);t.ReactMdeComponents=a;var i=r(331);t.ReactMdeLayoutComponents=i;var o=r(54);t.DraftUtil=o;var s=r(60);t.MarkdownUtil=s;var l=r(716);t.default=l.ReactMde},function(module,__webpack_exports__,__webpack_require__){"use strict";(function(module){var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(2),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(3),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(5),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(4),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(6),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__),react__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(0),react__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_5__),react_css_modules__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(10),react_css_modules__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(react_css_modules__WEBPACK_IMPORTED_MODULE_6__),react_redux__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(28),redux__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(22),react_helmet__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(34),react_helmet__WEBPACK_IMPORTED_MODULE_9___default=__webpack_require__.n(react_helmet__WEBPACK_IMPORTED_MODULE_9__),components_elements_ButtonControl_ButtonControl__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(23),utils_initialize__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(70),ducks_user__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(24),utils_common__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(20),_PasswordSet_sss__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(834),_PasswordSet_sss__WEBPACK_IMPORTED_MODULE_14___default=__webpack_require__.n(_PasswordSet_sss__WEBPACK_IMPORTED_MODULE_14__),_dec,_class;!function(){var e=__webpack_require__(1).enterModule;e&&e(module)}();var MODE_SETUP="MODE_SETUP",MODE_DONE="MODE_DONE",PasswordSet=(_dec=react_css_modules__WEBPACK_IMPORTED_MODULE_6___default()(_PasswordSet_sss__WEBPACK_IMPORTED_MODULE_14___default.a,{allowMultiple:!0}),_dec(_class=function(_Component){function PasswordSet(e){var t;return _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this,PasswordSet),(t=_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default()(this,_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default()(PasswordSet).call(this,e))).state={mode:MODE_SETUP,password:"",passwordConfirm:"",error:null},t.urlParams={},t.lock=!1,t.onPasswordChange=function(e){t.setState({password:e.target.value})},t.onPasswordConfirmChange=function(e){t.setState({passwordConfirm:e.target.value})},t.onChange=function(e){if(e.preventDefault(),!t.isAvail())return!1;var r={username:t.urlParams.username,token:t.urlParams.token,"utf-8":"✓",new_password:t.state.password};return fetch(utils_initialize__WEBPACK_IMPORTED_MODULE_11__.b.serverURL+"/apps/"+t.urlParams.id+"/request_password_reset",{method:"POST",mode:"no-cors",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:Object(utils_common__WEBPACK_IMPORTED_MODULE_13__.a)(r)}).then(function(e){t.setState({mode:MODE_DONE})}).catch(function(e){t.setState({error:e})}),!1},t.onLogin=function(e){(e.preventDefault(),t.lock)||(t.lock=!0,(0,t.props.userActions.login)(t.urlParams.username,t.state.password))},t.urlParams=Object(utils_common__WEBPACK_IMPORTED_MODULE_13__.h)(),t.state.error=t.urlParams.error,t}return _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default()(PasswordSet,_Component),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(PasswordSet,[{key:"isAvail",value:function(){return this.state.password&&this.state.password==this.state.passwordConfirm}},{key:"render",value:function(){var e,t;switch(this.state.mode){case MODE_SETUP:t="Please, type a new password for ".concat(this.urlParams.username,":"),e=react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("form",{styleName:"form",onSubmit:this.onChange},react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("input",{styleName:"input",name:"new_password",type:"password",value:this.state.password,placeholder:"Enter password",onChange:this.onPasswordChange}),react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("input",{styleName:"input",type:"password",value:this.state.passwordConfirm,placeholder:"Confirm password",onChange:this.onPasswordConfirmChange}),react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{styleName:"button"},react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement(components_elements_ButtonControl_ButtonControl__WEBPACK_IMPORTED_MODULE_10__.a,{color:"green",type:"submit",disabled:!this.isAvail(),value:"Change password"})),react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{styleName:"errors"},this.state.error&&react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{styleName:"error"},this.state.error)));break;case MODE_DONE:t="Your password was changed successfully.",e=react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("form",{styleName:"form",onSubmit:this.onLogin},react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{styleName:"button"},react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement(components_elements_ButtonControl_ButtonControl__WEBPACK_IMPORTED_MODULE_10__.a,{color:"green",type:"submit",value:"Log in"})))}return react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{className:"container"},react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement(react_helmet__WEBPACK_IMPORTED_MODULE_9__.Helmet,null,react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("title",null,"Changing password - Chisel")),react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{styleName:"PasswordSet"},react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{styleName:"logo"},react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("img",{src:__webpack_require__(139)})),react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{styleName:"title"},t),e))}},{key:"__reactstandin__regenerateByEval",value:function __reactstandin__regenerateByEval(key,code){this[key]=eval(code)}}]),PasswordSet}(react__WEBPACK_IMPORTED_MODULE_5__.Component))||_class);function mapStateToProps(e){return{authorized:e.user.authorized}}function mapDispatchToProps(e){return{userActions:Object(redux__WEBPACK_IMPORTED_MODULE_8__.b)({login:ducks_user__WEBPACK_IMPORTED_MODULE_12__.k},e)}}var _default=Object(react_redux__WEBPACK_IMPORTED_MODULE_7__.b)(mapStateToProps,mapDispatchToProps)(PasswordSet);__webpack_exports__.a=_default,function(){var e=__webpack_require__(1).default,t=__webpack_require__(1).leaveModule;e&&(e.register(MODE_SETUP,"MODE_SETUP","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/containers/LinksEmail/PasswordSet/PasswordSet.js"),e.register(MODE_DONE,"MODE_DONE","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/containers/LinksEmail/PasswordSet/PasswordSet.js"),e.register(PasswordSet,"PasswordSet","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/containers/LinksEmail/PasswordSet/PasswordSet.js"),e.register(mapStateToProps,"mapStateToProps","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/containers/LinksEmail/PasswordSet/PasswordSet.js"),e.register(mapDispatchToProps,"mapDispatchToProps","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/containers/LinksEmail/PasswordSet/PasswordSet.js"),e.register(_default,"default","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/containers/LinksEmail/PasswordSet/PasswordSet.js"),t(module))}()}).call(this,__webpack_require__(12)(module))},function(e,t,r){"use strict";var n=r(401),_=r(35);function a(e,t){return t.encode?t.strict?n(e):encodeURIComponent(e):e}t.extract=function(e){return e.split("?")[1]||""},t.parse=function(e,t){var r=function(e){var t;switch(e.arrayFormat){case"index":return function(e,r,n){t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),t?(void 0===n[e]&&(n[e]={}),n[e][t[1]]=r):n[e]=r};case"bracket":return function(e,r,n){t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),t?void 0!==n[e]?n[e]=[].concat(n[e],r):n[e]=[r]:n[e]=r};default:return function(e,t,r){void 0!==r[e]?r[e]=[].concat(r[e],t):r[e]=t}}}(t=_({arrayFormat:"none"},t)),n=Object.create(null);return"string"!=typeof e?n:(e=e.trim().replace(/^(\?|#|&)/,""))?(e.split("&").forEach(function(e){var t=e.replace(/\+/g," ").split("="),_=t.shift(),a=t.length>0?t.join("="):void 0;a=void 0===a?null:decodeURIComponent(a),r(decodeURIComponent(_),a,n)}),Object.keys(n).sort().reduce(function(e,t){var r=n[t];return Boolean(r)&&"object"==typeof r&&!Array.isArray(r)?e[t]=function e(t){return Array.isArray(t)?t.sort():"object"==typeof t?e(Object.keys(t)).sort(function(e,t){return Number(e)-Number(t)}).map(function(e){return t[e]}):t}(r):e[t]=r,e},Object.create(null))):n},t.stringify=function(e,t){var r=function(e){switch(e.arrayFormat){case"index":return function(t,r,n){return null===r?[a(t,e),"[",n,"]"].join(""):[a(t,e),"[",a(n,e),"]=",a(r,e)].join("")};case"bracket":return function(t,r){return null===r?a(t,e):[a(t,e),"[]=",a(r,e)].join("")};default:return function(t,r){return null===r?a(t,e):[a(t,e),"=",a(r,e)].join("")}}}(t=_({encode:!0,strict:!0,arrayFormat:"none"},t));return e?Object.keys(e).sort().map(function(n){var _=e[n];if(void 0===_)return"";if(null===_)return a(n,t);if(Array.isArray(_)){var i=[];return _.slice().forEach(function(e){void 0!==e&&i.push(r(n,e,i.length))}),i.join("&")}return a(n,t)+"="+a(_,t)}).filter(function(e){return e.length>0}).join("&"):""}},function(e,t,r){"use strict";t.__esModule=!0,t.readState=t.saveState=void 0;!function(e){e&&e.__esModule}(r(79));var n={QuotaExceededError:!0,QUOTA_EXCEEDED_ERR:!0},_={SecurityError:!0},a=function(e){return"@@History/"+e};t.saveState=function(e,t){if(window.sessionStorage)try{null==t?window.sessionStorage.removeItem(a(e)):window.sessionStorage.setItem(a(e),JSON.stringify(t))}catch(e){if(_[e.name])return;if(n[e.name]&&0===window.sessionStorage.length)return;throw e}},t.readState=function(e){var t=void 0;try{t=window.sessionStorage.getItem(a(e))}catch(e){if(_[e.name])return}if(t)try{return JSON.parse(t)}catch(e){}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:a,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.type,i=t.payload;if(r===_)return n({},e,{locationBeforeTransitions:i});return e};var _=t.LOCATION_CHANGE="@@router/LOCATION_CHANGE",a={locationBeforeTransitions:null}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=t.CALL_HISTORY_METHOD="@@router/CALL_HISTORY_METHOD";function _(e){return function(){for(var t=arguments.length,r=Array(t),_=0;_=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r}(g,["children"]);return i.default.isValidElement(b)?f.props.children=e(i.default.Children.only(b),r,n):((0,_.default)(b)||(0,s.default)(b))&&(f.props.children=d((0,o.default)(b),r,n)),(0,a.default)(v,function(t,a){i.default.isValidElement(t)?f.props[a]=e(i.default.Children.only(t),r,n):(0,_.default)(t)&&(f.props[a]=d(t,r,n))}),m.length&&(c=(0,u.default)(r,m,n.handleNotFoundStyleName))&&(f.props.className&&(c=f.props.className+" "+c),f.props.className=c),delete f.props.styleName,p?(Object.freeze(f.props),Object.freeze(f)):h&&Object.freeze(f.props),E&&Object.preventExtensions(f.props),f};t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return(0,n.default)(e)?f(e,t,r):e},e.exports=t.default},function(e,t,r){var n=r(411),_=r(241),a=r(426),i=r(62);e.exports=function(e,t){return(i(e)?n:_)(e,a(t))}},function(e,t,r){var n=r(412),_=r(425)(n);e.exports=_},function(e,t,r){var n=r(417),_=r(92),a=Object.prototype,i=a.hasOwnProperty,o=a.propertyIsEnumerable,s=n(function(){return arguments}())?n:function(e){return _(e)&&i.call(e,"callee")&&!o.call(e,"callee")};e.exports=s},function(e,t,r){(function(e){var n=r(74),_=r(418),a=t&&!t.nodeType&&t,i=a&&"object"==typeof e&&e&&!e.nodeType&&e,o=i&&i.exports===a?n.Buffer:void 0,s=(o?o.isBuffer:void 0)||_;e.exports=s}).call(this,r(180)(e))},function(e,t,r){var n=r(419),_=r(420),a=r(421),i=a&&a.isTypedArray,o=i?_(i):n;e.exports=o},function(e,t){var r=Object.prototype;e.exports=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||r)}},function(e,t){e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length,_=0,a=[];++rd))return!1;var p=u.get(e);if(p&&u.get(t))return p==t;var h=-1,E=!0,m=r&o?new n:void 0;for(u.set(e,t),u.set(t,e);++hs;)n(o,r=t[s++])&&(~a(l,r)||l.push(r));return l}},function(e,t,r){var n=r(95),_=r(125),a=r(537);e.exports=function(e){return function(t,r,i){var o,s=n(t),l=_(s.length),u=a(i,l);if(e&&r!=r){for(;l>u;)if((o=s[u++])!=o)return!0}else for(;l>u;u++)if((e||u in s)&&s[u]===r)return e||u||0;return!e&&-1}}},function(e,t,r){var n=r(42).document;e.exports=n&&n.documentElement},function(e,t,r){"use strict";var n=r(85),_=r(44),a=r(106),i=r(270),o=r(271),s=r(125),l=r(540),u=r(272);_(_.S+_.F*!r(195)(function(e){Array.from(e)}),"Array",{from:function(e){var t,r,_,c,d=a(e),f="function"==typeof this?this:Array,p=arguments.length,h=p>1?arguments[1]:void 0,E=void 0!==h,m=0,g=u(d);if(E&&(h=n(h,p>2?arguments[2]:void 0,2)),void 0==g||f==Array&&o(g))for(r=new f(t=s(d.length));t>m;m++)l(r,m,E?h(d[m],m):d[m]);else for(c=g.call(d),r=new f;!(_=c.next()).done;m++)l(r,m,E?i(c,h,[_.value,m],!0):_.value);return r.length=m,r}})},function(e,t,r){var n=r(67);e.exports=function(e,t,r,_){try{return _?t(n(r)[0],r[1]):t(r)}catch(t){var a=e.return;throw void 0!==a&&n(a.call(e)),t}}},function(e,t,r){var n=r(122),_=r(36)("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(n.Array===e||a[_]===e)}},function(e,t,r){var n=r(273),_=r(36)("iterator"),a=r(122);e.exports=r(94).getIteratorMethod=function(e){if(void 0!=e)return e[_]||e["@@iterator"]||a[n(e)]}},function(e,t,r){var n=r(104),_=r(36)("toStringTag"),a="Arguments"==n(function(){return arguments}());e.exports=function(e){var t,r,i;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),_))?r:a?n(t):"Object"==(i=n(t))&&"function"==typeof t.callee?"Arguments":i}},function(e,t,r){var n=r(104);e.exports=Array.isArray||function(e){return"Array"==n(e)}},function(e,t){e.exports='ShapeCreated with Sketch.'},function(e,t){e.exports='IconCreated with Sketch.'},function(e,t){e.exports=''},function(e,t){e.exports=''},function(e,t){e.exports=''},function(e,t){e.exports=''},function(e,t){e.exports='icon-AddCreated with Sketch.'},function(e,t,r){"use strict";var n=r(63).f,_=r(192),a=r(201),i=r(85),o=r(202),s=r(203),l=r(191),u=r(265),c=r(204),d=r(64),f=r(205).fastKey,p=r(206),h=d?"_s":"size",E=function(e,t){var r,n=f(t);if("F"!==n)return e._i[n];for(r=e._f;r;r=r.n)if(r.k==t)return r};e.exports={getConstructor:function(e,t,r,l){var u=e(function(e,n){o(e,u,t,"_i"),e._t=t,e._i=_(null),e._f=void 0,e._l=void 0,e[h]=0,void 0!=n&&s(n,r,e[l],e)});return a(u.prototype,{clear:function(){for(var e=p(this,t),r=e._i,n=e._f;n;n=n.n)n.r=!0,n.p&&(n.p=n.p.n=void 0),delete r[n.i];e._f=e._l=void 0,e[h]=0},delete:function(e){var r=p(this,t),n=E(r,e);if(n){var _=n.n,a=n.p;delete r._i[n.i],n.r=!0,a&&(a.n=_),_&&(_.p=a),r._f==n&&(r._f=_),r._l==n&&(r._l=a),r[h]--}return!!n},forEach:function(e){p(this,t);for(var r,n=i(e,arguments.length>1?arguments[1]:void 0,3);r=r?r.n:this._f;)for(n(r.v,r.k,this);r&&r.r;)r=r.p},has:function(e){return!!E(p(this,t),e)}}),d&&n(u.prototype,"size",{get:function(){return p(this,t)[h]}}),u},def:function(e,t,r){var n,_,a=E(e,t);return a?a.v=r:(e._l=a={i:_=f(t,!0),k:t,v:r,p:n=e._l,n:void 0,r:!1},e._f||(e._f=a),n&&(n.n=a),e[h]++,"F"!==_&&(e._i[_]=a)),e},getEntry:E,setStrong:function(e,t,r){l(e,t,function(e,r){this._t=p(e,t),this._k=r,this._l=void 0},function(){for(var e=this._k,t=this._l;t&&t.r;)t=t.p;return this._t&&(this._l=t=t?t.n:this._t._f)?u(0,"keys"==e?t.k:"values"==e?t.v:[t.k,t.v]):(this._t=void 0,u(1))},r?"entries":"values",!r,!0),c(t)}}},function(e,t,r){"use strict";var n=r(42),_=r(44),a=r(71),i=r(201),o=r(205),s=r(203),l=r(202),u=r(57),c=r(51),d=r(195),f=r(126),p=r(284);e.exports=function(e,t,r,h,E,m){var g=n[e],b=g,v=E?"set":"add",O=b&&b.prototype,M={},C=function(e){var t=O[e];a(O,e,"delete"==e?function(e){return!(m&&!u(e))&&t.call(this,0===e?0:e)}:"has"==e?function(e){return!(m&&!u(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return m&&!u(e)?void 0:t.call(this,0===e?0:e)}:"add"==e?function(e){return t.call(this,0===e?0:e),this}:function(e,r){return t.call(this,0===e?0:e,r),this})};if("function"==typeof b&&(m||O.forEach&&!c(function(){(new b).entries().next()}))){var P=new b,D=P[v](m?{}:-0,1)!=P,y=c(function(){P.has(1)}),w=d(function(e){new b(e)}),T=!m&&c(function(){for(var e=new b,t=5;t--;)e[v](t,t);return!e.has(-0)});w||((b=t(function(t,r){l(t,b,e);var n=p(new g,t,b);return void 0!=r&&s(r,E,n[v],n),n})).prototype=O,O.constructor=b),(y||T)&&(C("delete"),C("has"),E&&C("get")),(T||D)&&C(v),m&&O.clear&&delete O.clear}else b=h.getConstructor(t,e,E,v),i(b.prototype,r),o.NEED=!0;return f(b,e),M[e]=b,_(_.G+_.W+_.F*(b!=g),M),m||h.setStrong(b,e,E),b}},function(e,t,r){var n=r(57),_=r(562).set;e.exports=function(e,t,r){var a,i=t.constructor;return i!==r&&"function"==typeof i&&(a=i.prototype)!==r.prototype&&n(a)&&_&&_(e,a),e}},function(e,t,r){var n=r(161),_=r(121),a=r(95),i=r(188),o=r(96),s=r(263),l=Object.getOwnPropertyDescriptor;t.f=r(64)?l:function(e,t){if(e=a(e),t=i(t,!0),s)try{return l(e,t)}catch(e){}if(o(e,t))return _(!n.f.call(e,t),e[t])}},function(e,t,r){var n=r(42),_=r(94),a=r(119),i=r(287),o=r(63).f;e.exports=function(e){var t=_.Symbol||(_.Symbol=a?{}:n.Symbol||{});"_"==e.charAt(0)||e in t||o(t,e,{value:i.f(e)})}},function(e,t,r){t.f=r(36)},function(e,t,r){"use strict";var n=r(26);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var _=n(r(2)),a=n(r(3)),i=n(r(5)),o=n(r(4)),s=n(r(69)),l=n(r(6)),u=n(r(130)),c=n(r(87)),d=n(r(46)),f=function(e){function t(e,r){var n;return(0,_.default)(this,t),n=(0,i.default)(this,(0,o.default)(t).call(this,"_Role")),"string"==typeof e&&r instanceof u.default&&(n.setName(e),n.setACL(r)),n}return(0,l.default)(t,e),(0,a.default)(t,[{key:"getName",value:function(){var e=this.get("name");return null==e||"string"==typeof e?e:""}},{key:"setName",value:function(e,t){return this.set("name",e,t)}},{key:"getUsers",value:function(){return this.relation("users")}},{key:"getRoles",value:function(){return this.relation("roles")}},{key:"validate",value:function(e,r){var n=(0,s.default)((0,o.default)(t.prototype),"validate",this).call(this,e,r);if(n)return n;if("name"in e&&e.name!==this.getName()){var _=e.name;if(this.id&&this.id!==e.objectId)return new c.default(c.default.OTHER_CAUSE,"A role's name can only be set before it has been saved.");if("string"!=typeof _)return new c.default(c.default.OTHER_CAUSE,"A role's name must be a String.");if(!/^[0-9a-zA-Z\-_ ]+$/.test(_))return new c.default(c.default.OTHER_CAUSE,"A role's name can be only contain alphanumeric characters, _, -, and spaces.")}return!1}}]),t}(d.default);d.default.registerSubclass("_Role",f);var p=f;t.default=p},function(e,t,r){"use strict";var n=r(26);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(e.indexOf(t)>-1)return!0;for(var r=0;r\/'"]/g,function(e){return n[e]})};var n={"&":"&","<":"<",">":">","/":"/","'":"'",'"':"""}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=new RegExp("^([0-9]{1,4})-([0-9]{1,2})-([0-9]{1,2})T([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2})(.([0-9]+))?Z$").exec(e);if(!t)return null;var r=t[1]||0,n=(t[2]||1)-1,_=t[3]||0,a=t[4]||0,i=t[5]||0,o=t[6]||0,s=t[8]||0;return new Date(Date.UTC(r,n,_,a,i,o,s))}},function(e,t,r){"use strict";var n=r(26);Object.defineProperty(t,"__esModule",{value:!0}),t.defaultState=function(){return{serverData:{},pendingOps:[{}],objectCache:{},tasks:new l.default,existed:!1}},t.setServerData=function(e,t){for(var r in t)void 0!==t[r]?e[r]=t[r]:delete e[r]},t.setPendingOp=function(e,t,r){var n=e.length-1;r?e[n][t]=r:delete e[n][t]},t.pushPendingState=function(e){e.push({})},t.popPendingState=c,t.mergeFirstPendingState=function(e){var t=c(e),r=e[0];for(var n in t)if(r[n]&&t[n]){var _=r[n].mergeWith(t[n]);_&&(r[n]=_)}else r[n]=t[n]},t.estimateAttribute=function(e,t,r,n,_){for(var a=e[_],i=0;i-1}},function(e,t,r){"use strict";var n=r(26);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var _=n(r(41)),a=n(r(2)),i=n(r(3)),o=n(r(5)),s=n(r(4)),l=n(r(6)),u=n(r(47)),c=n(r(295)),d=n(r(46)),f=n(r(164)),p=function(e){function t(e){var r;if((0,a.default)(this,t),r=(0,o.default)(this,(0,s.default)(t).call(this,"_Session")),e&&"object"===(0,_.default)(e)&&!r.set(e||{}))throw new Error("Can't create an invalid Session");return r}return(0,l.default)(t,e),(0,i.default)(t,[{key:"getSessionToken",value:function(){var e=this.get("sessionToken");return"string"==typeof e?e:""}}],[{key:"readOnlyAttributes",value:function(){return["createdWith","expiresAt","installationId","restricted","sessionToken","user"]}},{key:"current",value:function(e){e=e||{};var t=u.default.getSessionController(),r={};return e.hasOwnProperty("useMasterKey")&&(r.useMasterKey=e.useMasterKey),f.default.currentAsync().then(function(e){return e?(r.sessionToken=e.getSessionToken(),t.getSession(r)):Promise.reject("There is no current user.")})}},{key:"isCurrentSessionRevocable",value:function(){var e=f.default.current();return!!e&&(0,c.default)(e.getSessionToken()||"")}}]),t}(d.default);d.default.registerSubclass("_Session",p);var h={getSession:function(e){var t=u.default.getRESTController(),r=new p;return t.request("GET","sessions/me",{},e).then(function(e){return r._finishFetch(e),r._setExisted(!0),r})}};u.default.setSessionController(h);var E=p;t.default=E},function(e,t,r){"use strict";var n=r(26);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var _=n(r(41)),a=n(r(2)),i=n(r(3)),o=n(r(5)),s=n(r(4)),l=n(r(6)),u=n(r(148)),c=n(r(59)),d=n(r(210)),f=n(r(46)),p=n(r(588)),h=r(209),E={INITIALIZED:"initialized",CONNECTING:"connecting",CONNECTED:"connected",CLOSED:"closed",RECONNECTING:"reconnecting",DISCONNECTED:"disconnected"},m="connect",g="subscribe",b="unsubscribe",v="connected",O="subscribed",M="unsubscribed",C="error",P="close",D="error",y="open",w="open",T="close",A="error",k=function(e){function t(e){var r,n=e.applicationId,_=e.serverURL,i=e.javascriptKey,l=e.masterKey,d=e.sessionToken;if((0,a.default)(this,t),r=(0,o.default)(this,(0,s.default)(t).call(this)),(0,c.default)((0,u.default)((0,u.default)(r)),"attempts",void 0),(0,c.default)((0,u.default)((0,u.default)(r)),"id",void 0),(0,c.default)((0,u.default)((0,u.default)(r)),"requestId",void 0),(0,c.default)((0,u.default)((0,u.default)(r)),"applicationId",void 0),(0,c.default)((0,u.default)((0,u.default)(r)),"serverURL",void 0),(0,c.default)((0,u.default)((0,u.default)(r)),"javascriptKey",void 0),(0,c.default)((0,u.default)((0,u.default)(r)),"masterKey",void 0),(0,c.default)((0,u.default)((0,u.default)(r)),"sessionToken",void 0),(0,c.default)((0,u.default)((0,u.default)(r)),"connectPromise",void 0),(0,c.default)((0,u.default)((0,u.default)(r)),"subscriptions",void 0),(0,c.default)((0,u.default)((0,u.default)(r)),"socket",void 0),(0,c.default)((0,u.default)((0,u.default)(r)),"state",void 0),!_||0!==_.indexOf("ws"))throw new Error("You need to set a proper Parse LiveQuery server url before using LiveQueryClient");return r.reconnectHandle=null,r.attempts=1,r.id=0,r.requestId=1,r.serverURL=_,r.applicationId=n,r.javascriptKey=i,r.masterKey=l,r.sessionToken=d,r.connectPromise=(0,h.resolvingPromise)(),r.subscriptions=new Map,r.state=E.INITIALIZED,r}return(0,l.default)(t,e),(0,i.default)(t,[{key:"shouldOpen",value:function(){return this.state===E.INITIALIZED||this.state===E.DISCONNECTED}},{key:"subscribe",value:function(e,t){var r=this;if(e){var n=e.className,_=e.toJSON(),a=_.where,i=_.keys?_.keys.split(","):void 0,o={op:g,requestId:this.requestId,query:{className:n,where:a,fields:i}};t&&(o.sessionToken=t);var s=new p.default(this.requestId,e,t);return this.subscriptions.set(this.requestId,s),this.requestId+=1,this.connectPromise.then(function(){r.socket.send(JSON.stringify(o))}),s.on("error",function(){}),s}}},{key:"unsubscribe",value:function(e){var t=this;if(e){this.subscriptions.delete(e.id);var r={op:b,requestId:e.id};this.connectPromise.then(function(){t.socket.send(JSON.stringify(r))})}}},{key:"open",value:function(){var e=this,t=this._getWebSocketImplementation();t?(this.state!==E.RECONNECTING&&(this.state=E.CONNECTING),this.socket=new t(this.serverURL),this.socket.onopen=function(){e._handleWebSocketOpen()},this.socket.onmessage=function(t){e._handleWebSocketMessage(t)},this.socket.onclose=function(){e._handleWebSocketClose()},this.socket.onerror=function(t){e._handleWebSocketError(t)}):this.emit(D,"Can not find WebSocket implementation")}},{key:"resubscribe",value:function(){var e=this;this.subscriptions.forEach(function(t,r){var n=t.query,_=n.toJSON(),a=_.where,i=_.keys?_.keys.split(","):void 0,o=n.className,s=t.sessionToken,l={op:g,requestId:r,query:{className:o,where:a,fields:i}};s&&(l.sessionToken=s),e.connectPromise.then(function(){e.socket.send(JSON.stringify(l))})})}},{key:"close",value:function(){if(this.state!==E.INITIALIZED&&this.state!==E.DISCONNECTED){this.state=E.DISCONNECTED,this.socket.close();var e=!0,t=!1,r=void 0;try{for(var n,_=this.subscriptions.values()[Symbol.iterator]();!(e=(n=_.next()).done);e=!0){n.value.emit(T)}}catch(e){t=!0,r=e}finally{try{e||null==_.return||_.return()}finally{if(t)throw r}}this._handleReset(),this.emit(P)}}},{key:"_getWebSocketImplementation",value:function(){return"function"==typeof WebSocket||"object"===("undefined"==typeof WebSocket?"undefined":(0,_.default)(WebSocket))?WebSocket:null}},{key:"_handleReset",value:function(){this.attempts=1,this.id=0,this.requestId=1,this.connectPromise=(0,h.resolvingPromise)(),this.subscriptions=new Map}},{key:"_handleWebSocketOpen",value:function(){this.attempts=1;var e={op:m,applicationId:this.applicationId,javascriptKey:this.javascriptKey,masterKey:this.masterKey,sessionToken:this.sessionToken};this.socket.send(JSON.stringify(e))}},{key:"_handleWebSocketMessage",value:function(e){var t=e.data;"string"==typeof t&&(t=JSON.parse(t));var r=null;switch(t.requestId&&(r=this.subscriptions.get(t.requestId)),t.op){case v:this.state===E.RECONNECTING&&this.resubscribe(),this.emit(y),this.id=t.clientId,this.connectPromise.resolve(),this.state=E.CONNECTED;break;case O:r&&r.emit(w);break;case C:t.requestId?r&&r.emit(A,t.error):this.emit(D,t.error);break;case M:break;default:delete t.object.__type;var n=f.default.fromJSON(t.object,!1);if(!r)break;r.emit(t.op,n)}}},{key:"_handleWebSocketClose",value:function(){if(this.state!==E.DISCONNECTED){this.state=E.CLOSED,this.emit(P);var e=!0,t=!1,r=void 0;try{for(var n,_=this.subscriptions.values()[Symbol.iterator]();!(e=(n=_.next()).done);e=!0){n.value.emit(T)}}catch(e){t=!0,r=e}finally{try{e||null==_.return||_.return()}finally{if(t)throw r}}this._handleReconnect()}}},{key:"_handleWebSocketError",value:function(e){this.emit(D,e);var t=!0,r=!1,n=void 0;try{for(var _,a=this.subscriptions.values()[Symbol.iterator]();!(t=(_=a.next()).done);t=!0){_.value.emit(A)}}catch(e){r=!0,n=e}finally{try{t||null==a.return||a.return()}finally{if(r)throw n}}this._handleReconnect()}},{key:"_handleReconnect",value:function(){var e=this;if(this.state!==E.DISCONNECTED){this.state=E.RECONNECTING;var t=function(e){return Math.random()*Math.min(30,Math.pow(2,e)-1)*1e3}(this.attempts);this.reconnectHandle&&clearTimeout(this.reconnectHandle),this.reconnectHandle=setTimeout(function(){e.attempts++,e.connectPromise=(0,h.resolvingPromise)(),e.open()}.bind(this),t)}}}]),t}(d.default);t.default=k},function(e,t,r){var n=r(42),_=r(284),a=r(63).f,i=r(207).f,o=r(592),s=r(200),l=n.RegExp,u=l,c=l.prototype,d=/a/g,f=/a/g,p=new l(d)!==d;if(r(64)&&(!p||r(51)(function(){return f[r(36)("match")]=!1,l(d)!=d||l(f)==f||"/a/i"!=l(d,"i")}))){l=function(e,t){var r=this instanceof l,n=o(e),a=void 0===t;return!r&&n&&e.constructor===l&&a?e:_(p?new u(n&&!a?e.source:e,t):u((n=e instanceof l)?e.source:e,n&&a?s.call(e):t),r?this:c,l)};for(var h=function(e){e in l||a(l,e,{configurable:!0,get:function(){return u[e]},set:function(t){u[e]=t}})},E=i(u),m=0;E.length>m;)h(E[m++]);c.constructor=l,l.prototype=c,r(71)(n,"RegExp",l)}r(204)("RegExp")},function(e,t,r){"use strict";var n=r(282),_=r(206);e.exports=r(283)("Set",function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},{add:function(e){return n.def(_(this,"Set"),e=0===e?0:e,e)}},n)},function(e,t,r){var n,_,a,i=r(85),o=r(598),s=r(268),l=r(187),u=r(42),c=u.process,d=u.setImmediate,f=u.clearImmediate,p=u.MessageChannel,h=u.Dispatch,E=0,m={},g=function(){var e=+this;if(m.hasOwnProperty(e)){var t=m[e];delete m[e],t()}},b=function(e){g.call(e.data)};d&&f||(d=function(e){for(var t=[],r=1;arguments.length>r;)t.push(arguments[r++]);return m[++E]=function(){o("function"==typeof e?e:Function(e),t)},n(E),E},f=function(e){delete m[e]},"process"==r(104)(c)?n=function(e){c.nextTick(i(g,e,1))}:h&&h.now?n=function(e){h.now(i(g,e,1))}:p?(a=(_=new p).port2,_.port1.onmessage=b,n=i(a.postMessage,a,1)):u.addEventListener&&"function"==typeof postMessage&&!u.importScripts?(n=function(e){u.postMessage(e+"","*")},u.addEventListener("message",b,!1)):n="onreadystatechange"in l("script")?function(e){s.appendChild(l("script")).onreadystatechange=function(){s.removeChild(this),g.call(e)}}:function(e){setTimeout(i(g,e,1),0)}),e.exports={set:d,clear:f}},function(e,t,r){"use strict";var n=r(124);e.exports.f=function(e){return new function(e){var t,r;this.promise=new e(function(e,n){if(void 0!==t||void 0!==r)throw TypeError("Bad Promise constructor");t=e,r=n}),this.resolve=n(t),this.reject=n(r)}(e)}},function(e,t,r){var n=r(44);n(n.S,"Date",{now:function(){return(new Date).getTime()}})},function(e,t,r){"use strict";var n=r(65),_=r(30),a=r(78),i=_.OrderedMap;e.exports=function(e){return e.first()instanceof n?function(e){var t={},r=void 0;return i(e.withMutations(function(e){e.forEach(function(n,_){var i=n.getKey(),o=n.getNextSiblingKey(),s=n.getPrevSiblingKey(),l=n.getChildKeys(),u=n.getParentKey(),c=a();if(t[i]=c,o&&(e.get(o)?e.setIn([o,"prevSibling"],c):e.setIn([i,"nextSibling"],null)),s&&(e.get(s)?e.setIn([s,"nextSibling"],c):e.setIn([i,"prevSibling"],null)),u&&e.get(u)){var d=e.get(u).getChildKeys();e.setIn([u,"children"],d.set(d.indexOf(n.getKey()),c))}else e.setIn([i,"parent"],null),r&&(e.setIn([r.getKey(),"nextSibling"],c),e.setIn([i,"prevSibling"],t[r.getKey()])),r=e.get(i);l.forEach(function(t){e.get(t)?e.setIn([t,"parent"],c):e.setIn([i,"children"],n.getChildKeys().filter(function(e){return e!==t}))})})}).toArray().map(function(e){return[t[e.getKey()],e.set("key",t[e.getKey()])]}))}(e):function(e){return i(e.toArray().map(function(e){var t=a();return[t,e.set("key",t)]}))}(e)}},function(e,t,r){"use strict";var n=r(61),_=r(136),a=r(29);function i(e,t,r){var i=t.getCharacterList(),o=r>0?i.get(r-1):void 0,s=r=r&&(n={start:e,end:t})}),"object"!=typeof n&&a(!1),n}(i,u,r),f=d.start,p=d.end;f0&&window.scrollTo(_.x,_.y+a+10)}else{r instanceof HTMLElement||E(!1),(a=r.offsetHeight+r.offsetTop-(n.offsetHeight+_.y))>0&&s.setTop(n,s.getTop(n)+a+10)}}},t.prototype._renderChildren=function(){var e=this,t=this.props.block,r=t.getKey(),o=t.getText(),s=this.props.tree.size-1,l=g(this.props.selection,r);return this.props.tree.map(function(d,f){var p=d.get("leaves"),h=p.size-1,E=p.map(function(n,u){var c=a.encode(r,f,u),d=n.get("start"),p=n.get("end");return i.createElement(_,{key:c,offsetKey:c,block:t,start:d,selection:l?e.props.selection:null,forceSelection:e.props.forceSelection,text:o.slice(d,p),styleSet:t.getInlineStyleAt(d),customStyleMap:e.props.customStyleMap,customStyleFn:e.props.customStyleFn,isLast:f===s&&u===h})}).toArray(),g=d.get("decoratorKey");if(null==g)return E;if(!e.props.decorator)return E;var b=m(e.props.decorator),v=b.getComponentForKey(g);if(!v)return E;var O=b.getPropsForKey(g),M=a.encode(r,f,0),C=o.slice(p.first().get("start"),p.last().get("end")),P=c.getHTMLDirIfDifferent(u.getDirection(C),e.props.direction);return i.createElement(v,n({},O,{contentState:e.props.contentState,decoratedText:C,dir:P,key:M,entityKey:t.getEntityAt(d.get("start")),offsetKey:M}),E)}).toArray()},t.prototype.render=function(){var e=this.props,t=e.direction,r=e.offsetKey,n=d({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":"LTR"===t,"public/DraftStyleDefault/rtl":"RTL"===t});return i.createElement("div",{"data-offset-key":r,className:n},this._renderChildren())},t}(i.Component);e.exports=b},function(e,t,r){"use strict";e.exports=function(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}},function(e,t,r){"use strict";function n(e,t){return!!t&&(e===t.documentElement||e===t.body)}var _={getTop:function(e){var t=e.ownerDocument;return n(e,t)?t.body.scrollTop||t.documentElement.scrollTop:e.scrollTop},setTop:function(e,t){var r=e.ownerDocument;n(e,r)?r.body.scrollTop=r.documentElement.scrollTop=t:e.scrollTop=t},getLeft:function(e){var t=e.ownerDocument;return n(e,t)?t.body.scrollLeft||t.documentElement.scrollLeft:e.scrollLeft},setLeft:function(e,t){var r=e.ownerDocument;n(e,r)?r.body.scrollLeft=r.documentElement.scrollLeft=t:e.scrollLeft=t}};e.exports=_},function(e,t,r){"use strict";var n=r(650),_=r(651),a=r(213),i=new RegExp("\r\n","g"),o={"text/rtf":1,"text/html":1};function s(e){if("file"==e.kind)return e.getAsFile()}var l=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.data=t,this.types=t.types?_(t.types):[]}return e.prototype.isRichText=function(){return!(!this.getHTML()||!this.getText())||!this.isImage()&&this.types.some(function(e){return o[e]})},e.prototype.getText=function(){var e;return this.data.getData&&(this.types.length?-1!=this.types.indexOf("text/plain")&&(e=this.data.getData("text/plain")):e=this.data.getData("Text")),e?e.replace(i,"\n"):null},e.prototype.getHTML=function(){if(this.data.getData){if(!this.types.length)return this.data.getData("Text");if(-1!=this.types.indexOf("text/html"))return this.data.getData("text/html")}},e.prototype.isLink=function(){return this.types.some(function(e){return-1!=e.indexOf("Url")||-1!=e.indexOf("text/uri-list")||e.indexOf("text/x-moz-url")})},e.prototype.getLink=function(){return this.data.getData?-1!=this.types.indexOf("text/x-moz-url")?this.data.getData("text/x-moz-url").split("\n")[0]:-1!=this.types.indexOf("text/uri-list")?this.data.getData("text/uri-list"):this.data.getData("url"):null},e.prototype.isImage=function(){var e=this.types.some(function(e){return-1!=e.indexOf("application/x-moz-file")});if(e)return!0;for(var t=this.getFiles(),r=0;r0},e}();e.exports=l},function(e,t,r){"use strict";e.exports=function e(t){if(t instanceof Element){var r=t.getAttribute("data-offset-key");if(r)return r;for(var n=0;n0&&(r=a.childNodes.length)),0===r){var u=null;if(null!=s)u=s;else{var c=function(e){for(;e.firstChild&&(e.firstChild instanceof Element&&"true"===e.firstChild.getAttribute("data-blocks")||_(e.firstChild));)e=e.firstChild;return e}(a);u=o(_(c))}return{key:u,offset:0}}var d=a.childNodes[r-1],f=null,p=null;if(_(d)){var h=function(e){for(;e.lastChild&&(e.lastChild instanceof Element&&"true"===e.lastChild.getAttribute("data-blocks")||_(e.lastChild));)e=e.lastChild;return e}(d);f=o(_(h)),p=l(h)}else f=o(s),p=l(d);return{key:f,offset:p}}function l(e){var t=e.textContent;return"\n"===t?0:t.length}e.exports=function(e,t,r,_,i,l){var u=r.nodeType===Node.TEXT_NODE,c=i.nodeType===Node.TEXT_NODE;if(u&&c)return{selectionState:a(e,o(n(r)),_,o(n(i)),l),needsRecovery:!1};var d=null,f=null,p=!0;return u?(d={key:o(n(r)),offset:_},f=s(t,i,l)):c?(f={key:o(n(i)),offset:l},d=s(t,r,_)):(d=s(t,r,_),f=s(t,i,l),r===i&&_===l&&(p=!!r.firstChild&&"BR"!==r.firstChild.nodeName)),{selectionState:a(e,d.key,d.offset,f.key,f.offset),needsRecovery:p}}},function(e,t,r){"use strict";var n="\\s|(?![_])"+r(669).getPunctuation(),_=new RegExp("^(?:"+n+")*(?:['‘’]|(?!"+n+").)*(?:(?!"+n+").)"),a=new RegExp("(?:(?!"+n+").)(?:['‘’]|(?!"+n+").)*(?:"+n+")*$");function i(e,t){var r=t?a.exec(e):_.exec(e);return r?r[0]:e}var o={getBackward:function(e){return i(e,!0)},getForward:function(e){return i(e,!1)}};e.exports=o},function(e,t,r){"use strict";e.exports=function(e,t){var r,n=e.getSelection(),_=n.getStartKey(),a=n.getStartOffset(),i=e.getCurrentContent(),o=_;return t>i.getBlockForKey(_).getText().length-a?(o=i.getKeyAfter(_),r=0):r=a+t,n.merge({focusKey:o,focusOffset:r})}},function(e,t,r){"use strict";var n,_=a||function(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:null;return{text:"\r",inlines:[C()],entities:new Array(1),blocks:[function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return _({},K,e)}({parent:r,key:m(),type:e,depth:Math.max(0,Math.min(4,t))})]}},V=function e(t,r,n,a,i,o,s,l,u,d){var f=U,p=r.nodeName.toLowerCase(),E=t,m="unstyled",g=!1,b=i&&x(i,a,l),v=_({},S),M=void 0;if("#text"===p){var P=r.textContent,y=P.trim();if(a&&""===y&&r.parentElement){var w=r.parentElement.nodeName.toLowerCase();if("ol"===w||"ul"===w)return{chunk:_({},S),entityMap:t}}return""===y&&"pre"!==i?{chunk:function(e){var t=new Array(1);return e&&(t[0]=e),_({},S,{text:" ",inlines:[C()],entities:t})}(u),entityMap:t}:("pre"!==i&&(P=P.replace(D," ")),U=p,{chunk:{text:P,inlines:Array(P.length).fill(n),entities:Array(P.length).fill(u),blocks:[]},entityMap:t})}if(U=p,"br"===p)return"br"!==f||i&&"unstyled"!==b?{chunk:q(),entityMap:t}:{chunk:F("unstyled",s,d),entityMap:t};if("img"===p&&r instanceof HTMLImageElement&&r.attributes.getNamedItem("src")&&r.attributes.getNamedItem("src").value){var T=r,K={};B.forEach(function(e){var t=T.getAttribute(e);t&&(K[e]=t)}),r.textContent="📷",u=c.__create("IMAGE","MUTABLE",K||{})}n=function(e,t,r){var n=I[e];if(n)r=r.add(n).toOrderedSet();else if(t instanceof HTMLElement){var _=t;r=r.withMutations(function(e){var t=_.style.fontWeight,r=_.style.fontStyle,n=_.style.textDecoration;A.indexOf(t)>=0?e.add("BOLD"):k.indexOf(t)>=0&&e.remove("BOLD"),"italic"===r?e.add("ITALIC"):"normal"===r&&e.remove("ITALIC"),"underline"===n&&e.add("UNDERLINE"),"line-through"===n&&e.add("STRIKETHROUGH"),"none"===n&&(e.remove("UNDERLINE"),e.remove("STRIKETHROUGH"))}).toOrderedSet()}return r}(p,r,n),"ul"!==p&&"ol"!==p||(a&&(s+=1),a=p),!O&&"li"===p&&r instanceof HTMLElement&&(s=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Object.keys(R).some(function(r){e.classList.contains(r)&&(t=R[r])}),t}(r,s));var W=x(p,a,l),V=a&&"li"===i&&"li"===p,H=(!i||O)&&-1!==o.indexOf(p);(V||H)&&(M=(v=F(W,s,d)).blocks[0].key,i=p,g=!O),V&&(m="ul"===a?"unordered-list-item":"ordered-list-item");var z=r.firstChild;null!=z&&(p=z.nodeName.toLowerCase());for(var G=null;z;){z instanceof HTMLAnchorElement&&z.href&&N(z)?function(){var e=z,t={};L.forEach(function(r){var n=e.getAttribute(r);n&&(t[r]=n)}),t.url=new h(e.href).toString(),G=c.__create("LINK","MUTABLE",t||{})}():G=void 0;var Y=e(E,z,n,a,i,o,s,l,G||u,O?M:null),J=Y.chunk;E=Y.entityMap,v=j(v,J,O);var X=z.nextSibling;!d&&X&&o.indexOf(p)>=0&&i&&(v=j(v,q())),X&&(p=X.nodeName.toLowerCase()),z=X}return g&&(v=j(v,F(m,s,d))),{chunk:v,entityMap:E}},H=function(e,t,r,n){e=e.trim().replace(P,"").replace(y," ").replace(w,"").replace(T,"");var a=function(e){var t=e.get("unstyled").element,r=p([]);return e.forEach(function(e){e.aliasedElements&&e.aliasedElements.forEach(function(e){r=r.add(e)}),r=r.add(e.element)}),r.filter(function(e){return e&&e!==t}).toArray().sort()}(r),i=t(e);if(!i)return null;U=null;var o=function(e,t){return t.some(function(t){return-1!==e.indexOf("<"+t)})}(e,a)?a:["div"],s=V(n,i,C(),"ul",null,o,-1,r),l=s.chunk,u=s.entityMap;return 0===l.text.indexOf("\r")&&(l={text:l.text.slice(1),inlines:l.inlines.slice(1),entities:l.entities.slice(1),blocks:l.blocks}),"\r"===l.text.slice(-1)&&(l.text=l.text.slice(0,-1),l.inlines=l.inlines.slice(0,-1),l.entities=l.entities.slice(0,-1),l.blocks.pop()),0===l.blocks.length&&l.blocks.push(_({},S,{type:"unstyled",depth:0})),l.text.split("\r").length===l.blocks.length+1&&l.blocks.unshift({type:"unstyled",depth:0}),{chunk:l,entityMap:u}};e.exports=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:g,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:u,n=H(e,t,r,c);if(null==n)return null;var _=n.chunk,a=n.entityMap;return{contentBlocks:function(e){if(!e||!e.text||!Array.isArray(e.blocks))return null;var t=0,r=e.blocks,n=e.inlines,_=e.entities,a=O?l:s;return e.text.split("\r").reduce(function(e,i,s){i=v(i);var u=r[s],c=t+i.length,d=n.slice(t,c),f=_.slice(t,c),p=M(d.map(function(e,t){var r={style:e,entity:null};return f[t]&&(r.entity=f[t]),o.create(r)}));t=c+1;var h=u.depth,E=u.type,g=u.parent,b=u.key||m(),O=null;if(g){var C=e.cacheRef[g],P=e.contentBlocks[C];if(P.getChildKeys().isEmpty()&&P.getText()){var D=P.getCharacterList(),y=P.getText();O=m();var w=new l({key:O,text:y,characterList:D,parent:g,nextSibling:b});e.contentBlocks.push(w),P=P.withMutations(function(e){e.set("characterList",M()).set("text","").set("children",P.children.push(w.getKey()))})}e.contentBlocks[C]=P.set("children",P.children.push(b))}var T=new a({key:b,parent:g,type:E,depth:h,text:i,characterList:p,prevSibling:O||(0===s||r[s-1].parent!==g?null:r[s-1].key),nextSibling:s===r.length-1||r[s+1].parent!==g?null:r[s+1].key});return e.contentBlocks.push(T),e.cacheRef[T.key]=s,e},{cacheRef:{},contentBlocks:[]}).contentBlocks}(_),entityMap:a}}},function(e,t,r){"use strict";var n=r(72),_=r(29),a=n.isBrowser("IE <= 9");e.exports=function(e){var t,r=null;return!a&&document.implementation&&document.implementation.createHTMLDocument&&((t=document.implementation.createHTMLDocument("foo")).documentElement||_(!1),t.documentElement.innerHTML=e,r=t.getElementsByTagName("body")[0]),r}},function(e,t,r){"use strict";var n=r(55),_=r(33),a=(r(110),r(681)),i=r(68),o={currentBlockContainsLink:function(e){var t=e.getSelection(),r=e.getCurrentContent(),n=r.getEntityMap();return r.getBlockForKey(t.getAnchorKey()).getCharacterList().slice(t.getStartOffset(),t.getEndOffset()).some(function(e){var t=e.getEntity();return!!t&&"LINK"===n.__get(t).getType()})},getCurrentBlockType:function(e){var t=e.getSelection();return e.getCurrentContent().getBlockForKey(t.getStartKey()).getType()},getDataObjectForLinkURL:function(e){return{url:e.toString()}},handleKeyCommand:function(e,t){switch(t){case"bold":return o.toggleInlineStyle(e,"BOLD");case"italic":return o.toggleInlineStyle(e,"ITALIC");case"underline":return o.toggleInlineStyle(e,"UNDERLINE");case"code":return o.toggleCode(e);case"backspace":case"backspace-word":case"backspace-to-start-of-line":return o.onBackspace(e);case"delete":case"delete-word":case"delete-to-end-of-block":return o.onDelete(e);default:return null}},insertSoftNewline:function(e){var t=n.insertText(e.getCurrentContent(),e.getSelection(),"\n",e.getCurrentInlineStyle(),null),r=_.push(e,t,"insert-characters");return _.forceSelection(r,t.getSelectionAfter())},onBackspace:function(e){var t=e.getSelection();if(!t.isCollapsed()||t.getAnchorOffset()||t.getFocusOffset())return null;var r=e.getCurrentContent(),n=t.getStartKey(),a=r.getBlockBefore(n);if(a&&"atomic"===a.getType()){var i=r.getBlockMap().delete(a.getKey()),s=r.merge({blockMap:i,selectionAfter:t});if(s!==r)return _.push(e,s,"remove-range")}var l=o.tryToRemoveBlockStyle(e);return l?_.push(e,l,"change-block-type"):null},onDelete:function(e){var t=e.getSelection();if(!t.isCollapsed())return null;var r=e.getCurrentContent(),a=t.getStartKey(),i=r.getBlockForKey(a).getLength();if(t.getStartOffset()0&&i!==o)return null;var s=i.getType(),l=a.getBlockBefore(_);if("code-block"===s&&l&&"code-block"===l.getType()&&0!==l.getLength())return null;if("unstyled"!==s)return n.setBlockType(a,t,"unstyled")}return null}};e.exports=o},function(e,t,r){"use strict";var n=r(224),_=r(218),a=r(72),i=a.isPlatform("Mac OS X"),o=a.isPlatform("Windows"),s=i&&a.isBrowser("Firefox < 29"),l=n.hasCommandModifier,u=n.isCtrlKeyCommand;function c(e){return i&&e.altKey||u(e)}e.exports=function(e){switch(e.keyCode){case 66:return l(e)?"bold":null;case 68:return u(e)?"delete":null;case 72:return u(e)?"backspace":null;case 73:return l(e)?"italic":null;case 74:return l(e)?"code":null;case 75:return!o&&u(e)?"secondary-cut":null;case 77:case 79:return u(e)?"split-block":null;case 84:return i&&u(e)?"transpose-characters":null;case 85:return l(e)?"underline":null;case 87:return i&&u(e)?"backspace-word":null;case 89:return u(e)?o?"redo":"secondary-paste":null;case 90:return function(e){return l(e)?e.shiftKey?"redo":"undo":null}(e)||null;case _.RETURN:return"split-block";case _.DELETE:return function(e){return o&&e.shiftKey?null:c(e)?"delete-word":"delete"}(e);case _.BACKSPACE:return function(e){return l(e)&&i?"backspace-to-start-of-line":c(e)?"backspace-word":"backspace"}(e);case _.LEFT:return s&&l(e)?"move-selection-to-start-of-block":null;case _.RIGHT:return s&&l(e)?"move-selection-to-end-of-block":null;default:return null}}},function(e,t,r){"use strict";var n={stringify:function(e){return"_"+String(e)},unstringify:function(e){return e.slice(1)}};e.exports=n},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(0);t.MdeToolbarButtonGroup=function(e){return n.createElement("ul",{className:"mde-header-group"},e.children)}},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),_=this&&this.__assign||Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&void 0!==arguments[0]?arguments[0]:{};Array.isArray(e)?e={entries:e}:"string"==typeof e&&(e={entries:[e]});var t=function(){var e=c[d],t=(0,i.createPath)(e),r=void 0,_=void 0;e.key&&(r=e.key,_=h(r));var o=(0,i.parsePath)(t);return(0,a.createLocation)(n({},o,{state:_}),void 0,r)},r=function(e){var t=d+e;return t>=0&&t=0&&d0&&void 0!==arguments[0]?arguments[0]:{};a.canUseDOM||(0,_.default)(!1);var t=e.forceRefresh||!(0,s.supportsHistory)()?o:i,r=t.getUserConfirmation,u=t.getCurrentLocation,c=t.pushLocation,d=t.replaceLocation,f=t.go,p=(0,l.default)(n({getUserConfirmation:r},e,{getCurrentLocation:u,pushLocation:c,replaceLocation:d,go:f})),h=0,E=void 0,m=function(e,t){1==++h&&(E=i.startListener(p.transitionTo));var r=t?p.listenBefore(e):p.listen(e);return function(){r(),0==--h&&E()}};return n({},p,{listenBefore:function(e){return m(e,!0)},listen:function(e){return m(e,!1)}})}},function(e,t,r){"use strict";t.__esModule=!0;var n=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};a.canUseDOM||(0,_.default)(!1);var t=e.queryKey,r=e.hashType;"string"!=typeof t&&(t="_k"),null==r&&(r="slash"),r in c||(r="slash");var l=c[r],u=o.getUserConfirmation,d=(0,s.default)(n({getUserConfirmation:u},e,{getCurrentLocation:function(){return o.getCurrentLocation(l,t)},pushLocation:function(e){return o.pushLocation(e,l,t)},replaceLocation:function(e){return o.replaceLocation(e,l,t)},go:o.go})),f=0,p=void 0,h=function(e,r){1==++f&&(p=o.startListener(d.transitionTo,l,t));var n=r?d.listenBefore(e):d.listen(e);return function(){n(),0==--f&&p()}};(0,i.supportsGoWithoutReloadUsingHash)();return n({},d,{listenBefore:function(e){return h(e,!0)},listen:function(e){return h(e,!1)},go:function(e){d.go(e)},createHref:function(e){return"#"+l.encodePath(d.createHref(e))}})}},function(module,__webpack_exports__,__webpack_require__){"use strict";(function(module){var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(2),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(3),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(5),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(4),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(6),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__),react__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(0),react__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_5__),redux__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(22),react_redux__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(28),react_css_modules__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(10),react_css_modules__WEBPACK_IMPORTED_MODULE_8___default=__webpack_require__.n(react_css_modules__WEBPACK_IMPORTED_MODULE_8__),react_transition_group_CSSTransition__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(342),react_transition_group_CSSTransition__WEBPACK_IMPORTED_MODULE_9___default=__webpack_require__.n(react_transition_group_CSSTransition__WEBPACK_IMPORTED_MODULE_9__),components_modals_SiteLoader_SiteLoader__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(229),components_modals_FieldModal_FieldModal__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(343),components_modals_MediaModal_MediaModal__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(347),components_modals_WysiwygModal_WysiwygModal__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(348),components_modals_MarkdownModal_MarkdownModal__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(349),components_modals_ReferenceModal_ReferenceModal__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(351),components_modals_ModelChooseModal_ModelChooseModal__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(352),components_modals_AlertModal_AlertModal__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__(38),ducks_nav__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__(7),ducks_models__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__(25),_app_sss__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__(796),_app_sss__WEBPACK_IMPORTED_MODULE_20___default=__webpack_require__.n(_app_sss__WEBPACK_IMPORTED_MODULE_20__),_dec,_class;!function(){var e=__webpack_require__(1).enterModule;e&&e(module)}();var App=(_dec=react_css_modules__WEBPACK_IMPORTED_MODULE_8___default()(_app_sss__WEBPACK_IMPORTED_MODULE_20___default.a,{allowMultiple:!0}),_dec(_class=function(_React$Component){function App(){var e,t;_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this,App);for(var r=arguments.length,n=new Array(r),_=0;_n&&react__WEBPACK_IMPORTED_MODULE_8___default.a.createElement("div",{styleName:"error"},"Error: the min value should be smaller than max value! Please, fix it.")))}},{key:"__reactstandin__regenerateByEval",value:function __reactstandin__regenerateByEval(key,code){this[key]=eval(code)}}]),ValidationDate}(react__WEBPACK_IMPORTED_MODULE_8__.Component))||_class);!function(){var e=__webpack_require__(1).default,t=__webpack_require__(1).leaveModule;e&&(e.register(ValidationDate,"ValidationDate","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/components/modals/FieldModal/Validations/ValidationDate.js"),t(module))}()}).call(this,__webpack_require__(12)(module))},function(module,__webpack_exports__,__webpack_require__){"use strict";(function(module){__webpack_require__.d(__webpack_exports__,"a",function(){return ValidationReference});var core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(32),core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_0__),core_js_modules_es6_array_map__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(58),core_js_modules_es6_array_map__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(core_js_modules_es6_array_map__WEBPACK_IMPORTED_MODULE_1__),core_js_modules_es7_symbol_async_iterator__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(52),core_js_modules_es7_symbol_async_iterator__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(core_js_modules_es7_symbol_async_iterator__WEBPACK_IMPORTED_MODULE_2__),core_js_modules_es6_symbol__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(53),core_js_modules_es6_symbol__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(core_js_modules_es6_symbol__WEBPACK_IMPORTED_MODULE_3__),core_js_modules_es6_object_assign__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(128),core_js_modules_es6_object_assign__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(core_js_modules_es6_object_assign__WEBPACK_IMPORTED_MODULE_4__),core_js_modules_es6_array_from__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(269),core_js_modules_es6_array_from__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(core_js_modules_es6_array_from__WEBPACK_IMPORTED_MODULE_5__),_babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(11),_babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(_babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_6__),core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(43),core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_7___default=__webpack_require__.n(core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_7__),core_js_modules_es6_array_iterator__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(76),core_js_modules_es6_array_iterator__WEBPACK_IMPORTED_MODULE_8___default=__webpack_require__.n(core_js_modules_es6_array_iterator__WEBPACK_IMPORTED_MODULE_8__),core_js_modules_es6_string_iterator__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(97),core_js_modules_es6_string_iterator__WEBPACK_IMPORTED_MODULE_9___default=__webpack_require__.n(core_js_modules_es6_string_iterator__WEBPACK_IMPORTED_MODULE_9__),core_js_modules_es6_set__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(299),core_js_modules_es6_set__WEBPACK_IMPORTED_MODULE_10___default=__webpack_require__.n(core_js_modules_es6_set__WEBPACK_IMPORTED_MODULE_10__),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(2),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_11___default=__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_11__),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(3),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_12___default=__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_12__),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(5),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_13___default=__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_13__),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(4),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_14___default=__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_14__),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(6),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_15___default=__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_15__),react__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(0),react__WEBPACK_IMPORTED_MODULE_16___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_16__),react_css_modules__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__(10),react_css_modules__WEBPACK_IMPORTED_MODULE_17___default=__webpack_require__.n(react_css_modules__WEBPACK_IMPORTED_MODULE_17__),components_elements_CheckboxControl_CheckboxControl__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__(39),components_elements_InputControl_InputControl__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__(17),_FieldModal_sss__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__(770),_FieldModal_sss__WEBPACK_IMPORTED_MODULE_20___default=__webpack_require__.n(_FieldModal_sss__WEBPACK_IMPORTED_MODULE_20__),_dec,_class;!function(){var e=__webpack_require__(1).enterModule;e&&e(module)}();var ValidationReference=(_dec=react_css_modules__WEBPACK_IMPORTED_MODULE_17___default()(_FieldModal_sss__WEBPACK_IMPORTED_MODULE_20___default.a,{allowMultiple:!0}),_dec(_class=function(_Component){function ValidationReference(e){var t;_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_11___default()(this,ValidationReference),(t=_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_13___default()(this,_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_14___default()(ValidationReference).call(this,e))).state={models:{active:!1,modelsList:[],errorMsg:""}},t.modelsAll=void 0,t.modelsSet=new Set,t.onTypesActive=function(e){t.setState({models:_babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_6___default()({},t.state.models,{active:e})},t.update)},t.onTypesErrorMsg=function(e){var r=e.target.value;t.setState({models:_babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_6___default()({},t.state.models,{errorMsg:r})},t.update)},t.onModelChange=function(e,r){r?t.modelsSet.add(e):t.modelsSet.delete(e),t.setState({models:_babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_6___default()({},t.state.models,{modelsList:Array.from(t.modelsSet)})},t.update)},t.update=function(){t.props.update(t.state)},t.modelsAll=e.models,Object.assign(t.state,e.validations);var r=t.state.models.modelsList;return r&&"function"==typeof r[Symbol.iterator]&&(t.modelsSet=new Set(r)),t}return _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_15___default()(ValidationReference,_Component),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_12___default()(ValidationReference,[{key:"render",value:function(){var e=this;return react__WEBPACK_IMPORTED_MODULE_16___default.a.createElement("div",null,react__WEBPACK_IMPORTED_MODULE_16___default.a.createElement("div",{styleName:"validation"},react__WEBPACK_IMPORTED_MODULE_16___default.a.createElement("div",{styleName:"active"},react__WEBPACK_IMPORTED_MODULE_16___default.a.createElement(components_elements_CheckboxControl_CheckboxControl__WEBPACK_IMPORTED_MODULE_18__.a,{title:"Accept only specified entry models",checked:this.state.models.active,onChange:this.onTypesActive})),react__WEBPACK_IMPORTED_MODULE_16___default.a.createElement("div",{styleName:"models"},this.modelsAll.map(function(t){return react__WEBPACK_IMPORTED_MODULE_16___default.a.createElement("div",{styleName:"model-checkbox",key:t.nameId},react__WEBPACK_IMPORTED_MODULE_16___default.a.createElement(components_elements_CheckboxControl_CheckboxControl__WEBPACK_IMPORTED_MODULE_18__.a,{title:t.name,checked:e.modelsSet.has(t.nameId),onChange:function(r){return e.onModelChange(t.nameId,r)},disabled:!e.state.models.active}))})),react__WEBPACK_IMPORTED_MODULE_16___default.a.createElement(components_elements_InputControl_InputControl__WEBPACK_IMPORTED_MODULE_19__.a,{label:"Custom error message",onChange:this.onTypesErrorMsg,value:this.state.models.errorMsg,readOnly:!this.state.models.active})))}},{key:"__reactstandin__regenerateByEval",value:function __reactstandin__regenerateByEval(key,code){this[key]=eval(code)}}]),ValidationReference}(react__WEBPACK_IMPORTED_MODULE_16__.Component))||_class);!function(){var e=__webpack_require__(1).default,t=__webpack_require__(1).leaveModule;e&&(e.register(ValidationReference,"ValidationReference","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/components/modals/FieldModal/Validations/ValidationReference.js"),t(module))}()}).call(this,__webpack_require__(12)(module))},function(module,__webpack_exports__,__webpack_require__){"use strict";(function(module){__webpack_require__.d(__webpack_exports__,"a",function(){return MediaModal});var core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(32),core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_0__),core_js_modules_es6_array_filter__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(166),core_js_modules_es6_array_filter__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(core_js_modules_es6_array_filter__WEBPACK_IMPORTED_MODULE_1__),core_js_modules_es6_array_map__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(58),core_js_modules_es6_array_map__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(core_js_modules_es6_array_map__WEBPACK_IMPORTED_MODULE_2__),core_js_modules_es6_array_index_of__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(45),core_js_modules_es6_array_index_of__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(core_js_modules_es6_array_index_of__WEBPACK_IMPORTED_MODULE_3__),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(2),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_4__),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(3),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_5__),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(5),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_6__),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(4),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_7___default=__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_7__),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(6),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_8___default=__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_8__),react__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(0),react__WEBPACK_IMPORTED_MODULE_9___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_9__),react_css_modules__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(10),react_css_modules__WEBPACK_IMPORTED_MODULE_10___default=__webpack_require__.n(react_css_modules__WEBPACK_IMPORTED_MODULE_10__),components_elements_ButtonControl_ButtonControl__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(23),components_elements_InputControl_InputControl__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(17),components_elements_MediaView_MediaView__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(173),index__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(21),_MediaModal_sss__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(776),_MediaModal_sss__WEBPACK_IMPORTED_MODULE_15___default=__webpack_require__.n(_MediaModal_sss__WEBPACK_IMPORTED_MODULE_15__),_dec,_class;!function(){var e=__webpack_require__(1).enterModule;e&&e(module)}();var MediaModal=(_dec=react_css_modules__WEBPACK_IMPORTED_MODULE_10___default()(_MediaModal_sss__WEBPACK_IMPORTED_MODULE_15___default.a,{allowMultiple:!0}),_dec(_class=function(_Component){function MediaModal(e){var t;return _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_4___default()(this,MediaModal),(t=_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_6___default()(this,_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_7___default()(MediaModal).call(this,e))).state={selectedItems:[],searchText:""},t.isMult=!1,t.active=!1,t.callback=null,t.items=[],t.focusElm=null,t.onKeyDown=function(e){e||(e=window.event),e.stopPropagation(),13==e.keyCode&&setTimeout(t.onChoose,1)},t.onSearch=function(e){var r=e.target.value;t.setState({searchText:r,selectedItems:[]})},t.onSelect=function(e){if(t.isMult){var r=t.state.selectedItems,n=r.indexOf(e);-1==n?r.push(e):r.splice(n,1),t.setState({selectedItems:r})}else t.setState({selectedItems:[e]})},t.onSearchKeyDown=function(e){e.stopPropagation(),27==e.keyCode&&t.setState({searchText:""})},t.onChoose=function(){t.state.selectedItems.length&&t.active&&(t.callback(t.state.selectedItems),t.close())},t.close=function(){t.active=!1,t.props.onClose()},t.isMult=e.params.isMult,t.callback=e.params.callback,t.items=index__WEBPACK_IMPORTED_MODULE_14__.store.getState().media.items,t}return _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_8___default()(MediaModal,_Component),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_5___default()(MediaModal,[{key:"componentDidMount",value:function(){var e=this;this.active=!0,document.addEventListener("keydown",this.onKeyDown),this.focusElm&&setTimeout(function(){return e.focusElm.focus()},2)}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.onKeyDown)}},{key:"searchMatch",value:function(e,t){return!e||-1!=t.toLowerCase().indexOf(e.toLowerCase())}},{key:"render",value:function(){var e=this;return react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:"modal",onClick:this.close},react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:"modal-inner",onClick:function(e){return e.stopPropagation()}},react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:"content"},react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:"input-wrapper"},react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement(components_elements_InputControl_InputControl__WEBPACK_IMPORTED_MODULE_12__.a,{type:"big",label:"search media files",DOMRef:function(t){return e.focusElm=t},value:this.state.searchText,onKeyDown:this.onSearchKeyDown,onChange:this.onSearch})),react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:"media"},this.items.filter(function(e){return!e.assigned}).filter(function(t){return e.searchMatch(e.state.searchText,t.name)}).map(function(t){var r="media-item";return-1!=e.state.selectedItems.indexOf(t)&&(r+=" media-chosen"),react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:r,key:t.origin.id},react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:"media-header",onClick:function(){return e.onSelect(t)}},t.name),react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement(components_elements_MediaView_MediaView__WEBPACK_IMPORTED_MODULE_13__.a,{item:t}))})),react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:"input-wrapper buttons-wrapper"},react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:"buttons-inner"},react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement(components_elements_ButtonControl_ButtonControl__WEBPACK_IMPORTED_MODULE_11__.a,{color:"green",value:"Choose",disabled:!this.state.selectedItems.length,onClick:this.onChoose})),react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:"buttons-inner"},react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement(components_elements_ButtonControl_ButtonControl__WEBPACK_IMPORTED_MODULE_11__.a,{color:"gray",value:"Cancel",onClick:this.close}))))))}},{key:"__reactstandin__regenerateByEval",value:function __reactstandin__regenerateByEval(key,code){this[key]=eval(code)}}]),MediaModal}(react__WEBPACK_IMPORTED_MODULE_9__.Component))||_class);!function(){var e=__webpack_require__(1).default,t=__webpack_require__(1).leaveModule;e&&(e.register(MediaModal,"MediaModal","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/components/modals/MediaModal/MediaModal.js"),t(module))}()}).call(this,__webpack_require__(12)(module))},function(module,__webpack_exports__,__webpack_require__){"use strict";(function(module){__webpack_require__.d(__webpack_exports__,"a",function(){return WysiwygModal});var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(2),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(3),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(5),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(4),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(6),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__),react__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(0),react__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_5__),react_css_modules__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(10),react_css_modules__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(react_css_modules__WEBPACK_IMPORTED_MODULE_6__),svg_inline_react__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(18),svg_inline_react__WEBPACK_IMPORTED_MODULE_7___default=__webpack_require__.n(svg_inline_react__WEBPACK_IMPORTED_MODULE_7__),medium_editor_dist_css_medium_editor_css__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(778),medium_editor_dist_css_medium_editor_css__WEBPACK_IMPORTED_MODULE_8___default=__webpack_require__.n(medium_editor_dist_css_medium_editor_css__WEBPACK_IMPORTED_MODULE_8__),medium_editor_dist_css_themes_default_css__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(780),medium_editor_dist_css_themes_default_css__WEBPACK_IMPORTED_MODULE_9___default=__webpack_require__.n(medium_editor_dist_css_themes_default_css__WEBPACK_IMPORTED_MODULE_9__),react_medium_editor__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(174),react_medium_editor__WEBPACK_IMPORTED_MODULE_10___default=__webpack_require__.n(react_medium_editor__WEBPACK_IMPORTED_MODULE_10__),_WysiwygModal_sss__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(782),_WysiwygModal_sss__WEBPACK_IMPORTED_MODULE_11___default=__webpack_require__.n(_WysiwygModal_sss__WEBPACK_IMPORTED_MODULE_11__),_dec,_class;!function(){var e=__webpack_require__(1).enterModule;e&&e(module)}();var WysiwygModal=(_dec=react_css_modules__WEBPACK_IMPORTED_MODULE_6___default()(_WysiwygModal_sss__WEBPACK_IMPORTED_MODULE_11___default.a,{allowMultiple:!0}),_dec(_class=function(_Component){function WysiwygModal(e){var t;return _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this,WysiwygModal),(t=_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default()(this,_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default()(WysiwygModal).call(this,e))).text="",t.onClose=null,t.callback=null,t.onClosing=function(){t.callback(t.text),t.onClose()},t.onChange=function(e){t.text=e},t.onClose=e.onClose,t.callback=e.params.callback,t.text=e.params.text,t}return _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default()(WysiwygModal,_Component),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(WysiwygModal,[{key:"render",value:function(){return react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{styleName:"wrapper"},react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{styleName:"return",onClick:this.onClosing},react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement(svg_inline_react__WEBPACK_IMPORTED_MODULE_7___default.a,{styleName:"cross",src:__webpack_require__(77)})),react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement(react_medium_editor__WEBPACK_IMPORTED_MODULE_10___default.a,{styleName:"editor",text:this.text,onChange:this.onChange}))}},{key:"__reactstandin__regenerateByEval",value:function __reactstandin__regenerateByEval(key,code){this[key]=eval(code)}}]),WysiwygModal}(react__WEBPACK_IMPORTED_MODULE_5__.Component))||_class);!function(){var e=__webpack_require__(1).default,t=__webpack_require__(1).leaveModule;e&&(e.register(WysiwygModal,"WysiwygModal","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/components/modals/WysiwygModal/WysiwygModal.js"),t(module))}()}).call(this,__webpack_require__(12)(module))},function(module,__webpack_exports__,__webpack_require__){"use strict";(function(module){__webpack_require__.d(__webpack_exports__,"a",function(){return MarkdownModal});var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(2),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(3),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(5),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(4),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(6),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__),react__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(0),react__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_5__),react_css_modules__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(10),react_css_modules__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(react_css_modules__WEBPACK_IMPORTED_MODULE_6__),svg_inline_react__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(18),svg_inline_react__WEBPACK_IMPORTED_MODULE_7___default=__webpack_require__.n(svg_inline_react__WEBPACK_IMPORTED_MODULE_7__),components_elements_MarkdownEditor_MarkdownEditor__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(142),_MarkdownModal_sss__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(788),_MarkdownModal_sss__WEBPACK_IMPORTED_MODULE_9___default=__webpack_require__.n(_MarkdownModal_sss__WEBPACK_IMPORTED_MODULE_9__),_dec,_class;!function(){var e=__webpack_require__(1).enterModule;e&&e(module)}();var MarkdownModal=(_dec=react_css_modules__WEBPACK_IMPORTED_MODULE_6___default()(_MarkdownModal_sss__WEBPACK_IMPORTED_MODULE_9___default.a,{allowMultiple:!0}),_dec(_class=function(_Component){function MarkdownModal(e){var t;return _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this,MarkdownModal),(t=_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default()(this,_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default()(MarkdownModal).call(this,e))).text="",t.onClose=null,t.callback=null,t.onClosing=function(){t.callback(t.text),t.onClose()},t.onChange=function(e){t.text=e},t.onClose=e.onClose,t.callback=e.params.callback,t.text=e.params.text,t}return _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default()(MarkdownModal,_Component),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(MarkdownModal,[{key:"render",value:function(){return react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{styleName:"wrapper"},react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{styleName:"return",onClick:this.onClosing},react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement(svg_inline_react__WEBPACK_IMPORTED_MODULE_7___default.a,{styleName:"cross",src:__webpack_require__(77)})),react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement(components_elements_MarkdownEditor_MarkdownEditor__WEBPACK_IMPORTED_MODULE_8__.b,{layout:components_elements_MarkdownEditor_MarkdownEditor__WEBPACK_IMPORTED_MODULE_8__.a,value:this.text,onChange:this.onChange}))}},{key:"__reactstandin__regenerateByEval",value:function __reactstandin__regenerateByEval(key,code){this[key]=eval(code)}}]),MarkdownModal}(react__WEBPACK_IMPORTED_MODULE_5__.Component))||_class);!function(){var e=__webpack_require__(1).default,t=__webpack_require__(1).leaveModule;e&&(e.register(MarkdownModal,"MarkdownModal","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/components/modals/MarkdownModal/MarkdownModal.js"),t(module))}()}).call(this,__webpack_require__(12)(module))},function(e,t,r){var n;/*! showdown v 1.8.7 - 16-10-2018 */ -(function(){function _(e){"use strict";var t={omitExtraWLInCodeBlocks:{defaultValue:!1,describe:"Omit the default extra whiteline added to code blocks",type:"boolean"},noHeaderId:{defaultValue:!1,describe:"Turn on/off generated header id",type:"boolean"},prefixHeaderId:{defaultValue:!1,describe:"Add a prefix to the generated header ids. Passing a string will prefix that string to the header id. Setting to true will add a generic 'section-' prefix",type:"string"},rawPrefixHeaderId:{defaultValue:!1,describe:'Setting this option to true will prevent showdown from modifying the prefix. This might result in malformed IDs (if, for instance, the " char is used in the prefix)',type:"boolean"},ghCompatibleHeaderId:{defaultValue:!1,describe:"Generate header ids compatible with github style (spaces are replaced with dashes, a bunch of non alphanumeric chars are removed)",type:"boolean"},rawHeaderId:{defaultValue:!1,describe:"Remove only spaces, ' and \" from generated header ids (including prefixes), replacing them with dashes (-). WARNING: This might result in malformed ids",type:"boolean"},headerLevelStart:{defaultValue:!1,describe:"The header blocks level start",type:"integer"},parseImgDimensions:{defaultValue:!1,describe:"Turn on/off image dimension parsing",type:"boolean"},simplifiedAutoLink:{defaultValue:!1,describe:"Turn on/off GFM autolink style",type:"boolean"},excludeTrailingPunctuationFromURLs:{defaultValue:!1,describe:"Excludes trailing punctuation from links generated with autoLinking",type:"boolean"},literalMidWordUnderscores:{defaultValue:!1,describe:"Parse midword underscores as literal underscores",type:"boolean"},literalMidWordAsterisks:{defaultValue:!1,describe:"Parse midword asterisks as literal asterisks",type:"boolean"},strikethrough:{defaultValue:!1,describe:"Turn on/off strikethrough support",type:"boolean"},tables:{defaultValue:!1,describe:"Turn on/off tables support",type:"boolean"},tablesHeaderId:{defaultValue:!1,describe:"Add an id to table headers",type:"boolean"},ghCodeBlocks:{defaultValue:!0,describe:"Turn on/off GFM fenced code blocks support",type:"boolean"},tasklists:{defaultValue:!1,describe:"Turn on/off GFM tasklist support",type:"boolean"},smoothLivePreview:{defaultValue:!1,describe:"Prevents weird effects in live previews due to incomplete input",type:"boolean"},smartIndentationFix:{defaultValue:!1,description:"Tries to smartly fix indentation in es6 strings",type:"boolean"},disableForced4SpacesIndentedSublists:{defaultValue:!1,description:"Disables the requirement of indenting nested sublists by 4 spaces",type:"boolean"},simpleLineBreaks:{defaultValue:!1,description:"Parses simple line breaks as
(GFM Style)",type:"boolean"},requireSpaceBeforeHeadingText:{defaultValue:!1,description:"Makes adding a space between `#` and the header text mandatory (GFM Style)",type:"boolean"},ghMentions:{defaultValue:!1,description:"Enables github @mentions",type:"boolean"},ghMentionsLink:{defaultValue:"https://github.com/{u}",description:"Changes the link generated by @mentions. Only applies if ghMentions option is enabled.",type:"string"},encodeEmails:{defaultValue:!0,description:"Encode e-mail addresses through the use of Character Entities, transforming ASCII e-mail addresses into its equivalent decimal entities",type:"boolean"},openLinksInNewWindow:{defaultValue:!1,description:"Open all links in new windows",type:"boolean"},backslashEscapesHTMLTags:{defaultValue:!1,description:"Support for HTML Tag escaping. ex:
foo
",type:"boolean"},emoji:{defaultValue:!1,description:"Enable emoji support. Ex: `this is a :smile: emoji`",type:"boolean"},underline:{defaultValue:!1,description:"Enable support for underline. Syntax is double or triple underscores: `__underline word__`. With this option enabled, underscores no longer parses into `` and ``",type:"boolean"},completeHTMLDocument:{defaultValue:!1,description:"Outputs a complete html document, including ``, `` and `` tags",type:"boolean"},metadata:{defaultValue:!1,description:"Enable support for document metadata (defined at the top of the document between `«««` and `»»»` or between `---` and `---`).",type:"boolean"},splitAdjacentBlockquotes:{defaultValue:!1,description:"Split adjacent blockquote blocks",type:"boolean"}};if(!1===e)return JSON.parse(JSON.stringify(t));var r={};for(var n in t)t.hasOwnProperty(n)&&(r[n]=t[n].defaultValue);return r}var a={},i={},o={},s=_(!0),l="vanilla",u={github:{omitExtraWLInCodeBlocks:!0,simplifiedAutoLink:!0,excludeTrailingPunctuationFromURLs:!0,literalMidWordUnderscores:!0,strikethrough:!0,tables:!0,tablesHeaderId:!0,ghCodeBlocks:!0,tasklists:!0,disableForced4SpacesIndentedSublists:!0,simpleLineBreaks:!0,requireSpaceBeforeHeadingText:!0,ghCompatibleHeaderId:!0,ghMentions:!0,backslashEscapesHTMLTags:!0,emoji:!0,splitAdjacentBlockquotes:!0},original:{noHeaderId:!0,ghCodeBlocks:!1},ghost:{omitExtraWLInCodeBlocks:!0,parseImgDimensions:!0,simplifiedAutoLink:!0,excludeTrailingPunctuationFromURLs:!0,literalMidWordUnderscores:!0,strikethrough:!0,tables:!0,tablesHeaderId:!0,ghCodeBlocks:!0,tasklists:!0,smoothLivePreview:!0,simpleLineBreaks:!0,requireSpaceBeforeHeadingText:!0,ghMentions:!1,encodeEmails:!0},vanilla:_(!0),allOn:function(){"use strict";var e=_(!0),t={};for(var r in e)e.hasOwnProperty(r)&&(t[r]=!0);return t}()};function c(e,t){"use strict";var r=t?"Error in "+t+" extension->":"Error in unnamed extension",n={valid:!0,error:""};a.helper.isArray(e)||(e=[e]);for(var _=0;_-1,c=new RegExp(t+"|"+r,"g"+l.replace(/g/g,"")),d=new RegExp(t,l.replace(/g/g,"")),f=[];do{for(_=0;i=c.exec(e);)if(d.test(i[0]))_++||(o=(a=c.lastIndex)-i[0].length);else if(_&&!--_){s=i.index+i[0].length;var p={left:{start:o,end:a},match:{start:a,end:i.index},right:{start:i.index,end:s},wholeMatch:{start:o,end:s}};if(f.push(p),!u)return f}}while(_&&(c.lastIndex=a));return f};a.helper.matchRecursiveRegExp=function(e,t,r,n){"use strict";for(var _=f(e,t,r,n),a=[],i=0;i<_.length;++i)a.push([e.slice(_[i].wholeMatch.start,_[i].wholeMatch.end),e.slice(_[i].match.start,_[i].match.end),e.slice(_[i].left.start,_[i].left.end),e.slice(_[i].right.start,_[i].right.end)]);return a},a.helper.replaceRecursiveRegExp=function(e,t,r,n,_){"use strict";if(!a.helper.isFunction(t)){var i=t;t=function(){return i}}var o=f(e,r,n,_),s=e,l=o.length;if(l>0){var u=[];0!==o[0].wholeMatch.start&&u.push(e.slice(0,o[0].wholeMatch.start));for(var c=0;c=0?n+(r||0):n},a.helper.splitAtIndex=function(e,t){"use strict";if(!a.helper.isString(e))throw"InvalidArgumentError: first parameter of showdown.helper.regexIndexOf function must be a string";return[e.substring(0,t),e.substring(t)]},a.helper.encodeEmailAddress=function(e){"use strict";var t=[function(e){return"&#"+e.charCodeAt(0)+";"},function(e){return"&#x"+e.charCodeAt(0).toString(16)+";"},function(e){return e}];return e=e.replace(/./g,function(e){if("@"===e)e=t[Math.floor(2*Math.random())](e);else{var r=Math.random();e=r>.9?t[2](e):r>.45?t[1](e):t[0](e)}return e})},"undefined"==typeof console&&(console={warn:function(e){"use strict";alert(e)},log:function(e){"use strict";alert(e)},error:function(e){"use strict";throw e}}),a.helper.regexes={asteriskDashAndColon:/([*_:~])/g},a.helper.emojis={"+1":"👍","-1":"👎",100:"💯",1234:"🔢","1st_place_medal":"🥇","2nd_place_medal":"🥈","3rd_place_medal":"🥉","8ball":"🎱",a:"🅰️",ab:"🆎",abc:"🔤",abcd:"🔡",accept:"🉑",aerial_tramway:"🚡",airplane:"✈️",alarm_clock:"⏰",alembic:"⚗️",alien:"👽",ambulance:"🚑",amphora:"🏺",anchor:"⚓️",angel:"👼",anger:"💢",angry:"😠",anguished:"😧",ant:"🐜",apple:"🍎",aquarius:"♒️",aries:"♈️",arrow_backward:"◀️",arrow_double_down:"⏬",arrow_double_up:"⏫",arrow_down:"⬇️",arrow_down_small:"🔽",arrow_forward:"▶️",arrow_heading_down:"⤵️",arrow_heading_up:"⤴️",arrow_left:"⬅️",arrow_lower_left:"↙️",arrow_lower_right:"↘️",arrow_right:"➡️",arrow_right_hook:"↪️",arrow_up:"⬆️",arrow_up_down:"↕️",arrow_up_small:"🔼",arrow_upper_left:"↖️",arrow_upper_right:"↗️",arrows_clockwise:"🔃",arrows_counterclockwise:"🔄",art:"🎨",articulated_lorry:"🚛",artificial_satellite:"🛰",astonished:"😲",athletic_shoe:"👟",atm:"🏧",atom_symbol:"⚛️",avocado:"🥑",b:"🅱️",baby:"👶",baby_bottle:"🍼",baby_chick:"🐤",baby_symbol:"🚼",back:"🔙",bacon:"🥓",badminton:"🏸",baggage_claim:"🛄",baguette_bread:"🥖",balance_scale:"⚖️",balloon:"🎈",ballot_box:"🗳",ballot_box_with_check:"☑️",bamboo:"🎍",banana:"🍌",bangbang:"‼️",bank:"🏦",bar_chart:"📊",barber:"💈",baseball:"⚾️",basketball:"🏀",basketball_man:"⛹️",basketball_woman:"⛹️‍♀️",bat:"🦇",bath:"🛀",bathtub:"🛁",battery:"🔋",beach_umbrella:"🏖",bear:"🐻",bed:"🛏",bee:"🐝",beer:"🍺",beers:"🍻",beetle:"🐞",beginner:"🔰",bell:"🔔",bellhop_bell:"🛎",bento:"🍱",biking_man:"🚴",bike:"🚲",biking_woman:"🚴‍♀️",bikini:"👙",biohazard:"☣️",bird:"🐦",birthday:"🎂",black_circle:"⚫️",black_flag:"🏴",black_heart:"🖤",black_joker:"🃏",black_large_square:"⬛️",black_medium_small_square:"◾️",black_medium_square:"◼️",black_nib:"✒️",black_small_square:"▪️",black_square_button:"🔲",blonde_man:"👱",blonde_woman:"👱‍♀️",blossom:"🌼",blowfish:"🐡",blue_book:"📘",blue_car:"🚙",blue_heart:"💙",blush:"😊",boar:"🐗",boat:"⛵️",bomb:"💣",book:"📖",bookmark:"🔖",bookmark_tabs:"📑",books:"📚",boom:"💥",boot:"👢",bouquet:"💐",bowing_man:"🙇",bow_and_arrow:"🏹",bowing_woman:"🙇‍♀️",bowling:"🎳",boxing_glove:"🥊",boy:"👦",bread:"🍞",bride_with_veil:"👰",bridge_at_night:"🌉",briefcase:"💼",broken_heart:"💔",bug:"🐛",building_construction:"🏗",bulb:"💡",bullettrain_front:"🚅",bullettrain_side:"🚄",burrito:"🌯",bus:"🚌",business_suit_levitating:"🕴",busstop:"🚏",bust_in_silhouette:"👤",busts_in_silhouette:"👥",butterfly:"🦋",cactus:"🌵",cake:"🍰",calendar:"📆",call_me_hand:"🤙",calling:"📲",camel:"🐫",camera:"📷",camera_flash:"📸",camping:"🏕",cancer:"♋️",candle:"🕯",candy:"🍬",canoe:"🛶",capital_abcd:"🔠",capricorn:"♑️",car:"🚗",card_file_box:"🗃",card_index:"📇",card_index_dividers:"🗂",carousel_horse:"🎠",carrot:"🥕",cat:"🐱",cat2:"🐈",cd:"💿",chains:"⛓",champagne:"🍾",chart:"💹",chart_with_downwards_trend:"📉",chart_with_upwards_trend:"📈",checkered_flag:"🏁",cheese:"🧀",cherries:"🍒",cherry_blossom:"🌸",chestnut:"🌰",chicken:"🐔",children_crossing:"🚸",chipmunk:"🐿",chocolate_bar:"🍫",christmas_tree:"🎄",church:"⛪️",cinema:"🎦",circus_tent:"🎪",city_sunrise:"🌇",city_sunset:"🌆",cityscape:"🏙",cl:"🆑",clamp:"🗜",clap:"👏",clapper:"🎬",classical_building:"🏛",clinking_glasses:"🥂",clipboard:"📋",clock1:"🕐",clock10:"🕙",clock1030:"🕥",clock11:"🕚",clock1130:"🕦",clock12:"🕛",clock1230:"🕧",clock130:"🕜",clock2:"🕑",clock230:"🕝",clock3:"🕒",clock330:"🕞",clock4:"🕓",clock430:"🕟",clock5:"🕔",clock530:"🕠",clock6:"🕕",clock630:"🕡",clock7:"🕖",clock730:"🕢",clock8:"🕗",clock830:"🕣",clock9:"🕘",clock930:"🕤",closed_book:"📕",closed_lock_with_key:"🔐",closed_umbrella:"🌂",cloud:"☁️",cloud_with_lightning:"🌩",cloud_with_lightning_and_rain:"⛈",cloud_with_rain:"🌧",cloud_with_snow:"🌨",clown_face:"🤡",clubs:"♣️",cocktail:"🍸",coffee:"☕️",coffin:"⚰️",cold_sweat:"😰",comet:"☄️",computer:"💻",computer_mouse:"🖱",confetti_ball:"🎊",confounded:"😖",confused:"😕",congratulations:"㊗️",construction:"🚧",construction_worker_man:"👷",construction_worker_woman:"👷‍♀️",control_knobs:"🎛",convenience_store:"🏪",cookie:"🍪",cool:"🆒",policeman:"👮",copyright:"©️",corn:"🌽",couch_and_lamp:"🛋",couple:"👫",couple_with_heart_woman_man:"💑",couple_with_heart_man_man:"👨‍❤️‍👨",couple_with_heart_woman_woman:"👩‍❤️‍👩",couplekiss_man_man:"👨‍❤️‍💋‍👨",couplekiss_man_woman:"💏",couplekiss_woman_woman:"👩‍❤️‍💋‍👩",cow:"🐮",cow2:"🐄",cowboy_hat_face:"🤠",crab:"🦀",crayon:"🖍",credit_card:"💳",crescent_moon:"🌙",cricket:"🏏",crocodile:"🐊",croissant:"🥐",crossed_fingers:"🤞",crossed_flags:"🎌",crossed_swords:"⚔️",crown:"👑",cry:"😢",crying_cat_face:"😿",crystal_ball:"🔮",cucumber:"🥒",cupid:"💘",curly_loop:"➰",currency_exchange:"💱",curry:"🍛",custard:"🍮",customs:"🛃",cyclone:"🌀",dagger:"🗡",dancer:"💃",dancing_women:"👯",dancing_men:"👯‍♂️",dango:"🍡",dark_sunglasses:"🕶",dart:"🎯",dash:"💨",date:"📅",deciduous_tree:"🌳",deer:"🦌",department_store:"🏬",derelict_house:"🏚",desert:"🏜",desert_island:"🏝",desktop_computer:"🖥",male_detective:"🕵️",diamond_shape_with_a_dot_inside:"💠",diamonds:"♦️",disappointed:"😞",disappointed_relieved:"😥",dizzy:"💫",dizzy_face:"😵",do_not_litter:"🚯",dog:"🐶",dog2:"🐕",dollar:"💵",dolls:"🎎",dolphin:"🐬",door:"🚪",doughnut:"🍩",dove:"🕊",dragon:"🐉",dragon_face:"🐲",dress:"👗",dromedary_camel:"🐪",drooling_face:"🤤",droplet:"💧",drum:"🥁",duck:"🦆",dvd:"📀","e-mail":"📧",eagle:"🦅",ear:"👂",ear_of_rice:"🌾",earth_africa:"🌍",earth_americas:"🌎",earth_asia:"🌏",egg:"🥚",eggplant:"🍆",eight_pointed_black_star:"✴️",eight_spoked_asterisk:"✳️",electric_plug:"🔌",elephant:"🐘",email:"✉️",end:"🔚",envelope_with_arrow:"📩",euro:"💶",european_castle:"🏰",european_post_office:"🏤",evergreen_tree:"🌲",exclamation:"❗️",expressionless:"😑",eye:"👁",eye_speech_bubble:"👁‍🗨",eyeglasses:"👓",eyes:"👀",face_with_head_bandage:"🤕",face_with_thermometer:"🤒",fist_oncoming:"👊",factory:"🏭",fallen_leaf:"🍂",family_man_woman_boy:"👪",family_man_boy:"👨‍👦",family_man_boy_boy:"👨‍👦‍👦",family_man_girl:"👨‍👧",family_man_girl_boy:"👨‍👧‍👦",family_man_girl_girl:"👨‍👧‍👧",family_man_man_boy:"👨‍👨‍👦",family_man_man_boy_boy:"👨‍👨‍👦‍👦",family_man_man_girl:"👨‍👨‍👧",family_man_man_girl_boy:"👨‍👨‍👧‍👦",family_man_man_girl_girl:"👨‍👨‍👧‍👧",family_man_woman_boy_boy:"👨‍👩‍👦‍👦",family_man_woman_girl:"👨‍👩‍👧",family_man_woman_girl_boy:"👨‍👩‍👧‍👦",family_man_woman_girl_girl:"👨‍👩‍👧‍👧",family_woman_boy:"👩‍👦",family_woman_boy_boy:"👩‍👦‍👦",family_woman_girl:"👩‍👧",family_woman_girl_boy:"👩‍👧‍👦",family_woman_girl_girl:"👩‍👧‍👧",family_woman_woman_boy:"👩‍👩‍👦",family_woman_woman_boy_boy:"👩‍👩‍👦‍👦",family_woman_woman_girl:"👩‍👩‍👧",family_woman_woman_girl_boy:"👩‍👩‍👧‍👦",family_woman_woman_girl_girl:"👩‍👩‍👧‍👧",fast_forward:"⏩",fax:"📠",fearful:"😨",feet:"🐾",female_detective:"🕵️‍♀️",ferris_wheel:"🎡",ferry:"⛴",field_hockey:"🏑",file_cabinet:"🗄",file_folder:"📁",film_projector:"📽",film_strip:"🎞",fire:"🔥",fire_engine:"🚒",fireworks:"🎆",first_quarter_moon:"🌓",first_quarter_moon_with_face:"🌛",fish:"🐟",fish_cake:"🍥",fishing_pole_and_fish:"🎣",fist_raised:"✊",fist_left:"🤛",fist_right:"🤜",flags:"🎏",flashlight:"🔦",fleur_de_lis:"⚜️",flight_arrival:"🛬",flight_departure:"🛫",floppy_disk:"💾",flower_playing_cards:"🎴",flushed:"😳",fog:"🌫",foggy:"🌁",football:"🏈",footprints:"👣",fork_and_knife:"🍴",fountain:"⛲️",fountain_pen:"🖋",four_leaf_clover:"🍀",fox_face:"🦊",framed_picture:"🖼",free:"🆓",fried_egg:"🍳",fried_shrimp:"🍤",fries:"🍟",frog:"🐸",frowning:"😦",frowning_face:"☹️",frowning_man:"🙍‍♂️",frowning_woman:"🙍",middle_finger:"🖕",fuelpump:"⛽️",full_moon:"🌕",full_moon_with_face:"🌝",funeral_urn:"⚱️",game_die:"🎲",gear:"⚙️",gem:"💎",gemini:"♊️",ghost:"👻",gift:"🎁",gift_heart:"💝",girl:"👧",globe_with_meridians:"🌐",goal_net:"🥅",goat:"🐐",golf:"⛳️",golfing_man:"🏌️",golfing_woman:"🏌️‍♀️",gorilla:"🦍",grapes:"🍇",green_apple:"🍏",green_book:"📗",green_heart:"💚",green_salad:"🥗",grey_exclamation:"❕",grey_question:"❔",grimacing:"😬",grin:"😁",grinning:"😀",guardsman:"💂",guardswoman:"💂‍♀️",guitar:"🎸",gun:"🔫",haircut_woman:"💇",haircut_man:"💇‍♂️",hamburger:"🍔",hammer:"🔨",hammer_and_pick:"⚒",hammer_and_wrench:"🛠",hamster:"🐹",hand:"✋",handbag:"👜",handshake:"🤝",hankey:"💩",hatched_chick:"🐥",hatching_chick:"🐣",headphones:"🎧",hear_no_evil:"🙉",heart:"❤️",heart_decoration:"💟",heart_eyes:"😍",heart_eyes_cat:"😻",heartbeat:"💓",heartpulse:"💗",hearts:"♥️",heavy_check_mark:"✔️",heavy_division_sign:"➗",heavy_dollar_sign:"💲",heavy_heart_exclamation:"❣️",heavy_minus_sign:"➖",heavy_multiplication_x:"✖️",heavy_plus_sign:"➕",helicopter:"🚁",herb:"🌿",hibiscus:"🌺",high_brightness:"🔆",high_heel:"👠",hocho:"🔪",hole:"🕳",honey_pot:"🍯",horse:"🐴",horse_racing:"🏇",hospital:"🏥",hot_pepper:"🌶",hotdog:"🌭",hotel:"🏨",hotsprings:"♨️",hourglass:"⌛️",hourglass_flowing_sand:"⏳",house:"🏠",house_with_garden:"🏡",houses:"🏘",hugs:"🤗",hushed:"😯",ice_cream:"🍨",ice_hockey:"🏒",ice_skate:"⛸",icecream:"🍦",id:"🆔",ideograph_advantage:"🉐",imp:"👿",inbox_tray:"📥",incoming_envelope:"📨",tipping_hand_woman:"💁",information_source:"ℹ️",innocent:"😇",interrobang:"⁉️",iphone:"📱",izakaya_lantern:"🏮",jack_o_lantern:"🎃",japan:"🗾",japanese_castle:"🏯",japanese_goblin:"👺",japanese_ogre:"👹",jeans:"👖",joy:"😂",joy_cat:"😹",joystick:"🕹",kaaba:"🕋",key:"🔑",keyboard:"⌨️",keycap_ten:"🔟",kick_scooter:"🛴",kimono:"👘",kiss:"💋",kissing:"😗",kissing_cat:"😽",kissing_closed_eyes:"😚",kissing_heart:"😘",kissing_smiling_eyes:"😙",kiwi_fruit:"🥝",koala:"🐨",koko:"🈁",label:"🏷",large_blue_circle:"🔵",large_blue_diamond:"🔷",large_orange_diamond:"🔶",last_quarter_moon:"🌗",last_quarter_moon_with_face:"🌜",latin_cross:"✝️",laughing:"😆",leaves:"🍃",ledger:"📒",left_luggage:"🛅",left_right_arrow:"↔️",leftwards_arrow_with_hook:"↩️",lemon:"🍋",leo:"♌️",leopard:"🐆",level_slider:"🎚",libra:"♎️",light_rail:"🚈",link:"🔗",lion:"🦁",lips:"👄",lipstick:"💄",lizard:"🦎",lock:"🔒",lock_with_ink_pen:"🔏",lollipop:"🍭",loop:"➿",loud_sound:"🔊",loudspeaker:"📢",love_hotel:"🏩",love_letter:"💌",low_brightness:"🔅",lying_face:"🤥",m:"Ⓜ️",mag:"🔍",mag_right:"🔎",mahjong:"🀄️",mailbox:"📫",mailbox_closed:"📪",mailbox_with_mail:"📬",mailbox_with_no_mail:"📭",man:"👨",man_artist:"👨‍🎨",man_astronaut:"👨‍🚀",man_cartwheeling:"🤸‍♂️",man_cook:"👨‍🍳",man_dancing:"🕺",man_facepalming:"🤦‍♂️",man_factory_worker:"👨‍🏭",man_farmer:"👨‍🌾",man_firefighter:"👨‍🚒",man_health_worker:"👨‍⚕️",man_in_tuxedo:"🤵",man_judge:"👨‍⚖️",man_juggling:"🤹‍♂️",man_mechanic:"👨‍🔧",man_office_worker:"👨‍💼",man_pilot:"👨‍✈️",man_playing_handball:"🤾‍♂️",man_playing_water_polo:"🤽‍♂️",man_scientist:"👨‍🔬",man_shrugging:"🤷‍♂️",man_singer:"👨‍🎤",man_student:"👨‍🎓",man_teacher:"👨‍🏫",man_technologist:"👨‍💻",man_with_gua_pi_mao:"👲",man_with_turban:"👳",tangerine:"🍊",mans_shoe:"👞",mantelpiece_clock:"🕰",maple_leaf:"🍁",martial_arts_uniform:"🥋",mask:"😷",massage_woman:"💆",massage_man:"💆‍♂️",meat_on_bone:"🍖",medal_military:"🎖",medal_sports:"🏅",mega:"📣",melon:"🍈",memo:"📝",men_wrestling:"🤼‍♂️",menorah:"🕎",mens:"🚹",metal:"🤘",metro:"🚇",microphone:"🎤",microscope:"🔬",milk_glass:"🥛",milky_way:"🌌",minibus:"🚐",minidisc:"💽",mobile_phone_off:"📴",money_mouth_face:"🤑",money_with_wings:"💸",moneybag:"💰",monkey:"🐒",monkey_face:"🐵",monorail:"🚝",moon:"🌔",mortar_board:"🎓",mosque:"🕌",motor_boat:"🛥",motor_scooter:"🛵",motorcycle:"🏍",motorway:"🛣",mount_fuji:"🗻",mountain:"⛰",mountain_biking_man:"🚵",mountain_biking_woman:"🚵‍♀️",mountain_cableway:"🚠",mountain_railway:"🚞",mountain_snow:"🏔",mouse:"🐭",mouse2:"🐁",movie_camera:"🎥",moyai:"🗿",mrs_claus:"🤶",muscle:"💪",mushroom:"🍄",musical_keyboard:"🎹",musical_note:"🎵",musical_score:"🎼",mute:"🔇",nail_care:"💅",name_badge:"📛",national_park:"🏞",nauseated_face:"🤢",necktie:"👔",negative_squared_cross_mark:"❎",nerd_face:"🤓",neutral_face:"😐",new:"🆕",new_moon:"🌑",new_moon_with_face:"🌚",newspaper:"📰",newspaper_roll:"🗞",next_track_button:"⏭",ng:"🆖",no_good_man:"🙅‍♂️",no_good_woman:"🙅",night_with_stars:"🌃",no_bell:"🔕",no_bicycles:"🚳",no_entry:"⛔️",no_entry_sign:"🚫",no_mobile_phones:"📵",no_mouth:"😶",no_pedestrians:"🚷",no_smoking:"🚭","non-potable_water":"🚱",nose:"👃",notebook:"📓",notebook_with_decorative_cover:"📔",notes:"🎶",nut_and_bolt:"🔩",o:"⭕️",o2:"🅾️",ocean:"🌊",octopus:"🐙",oden:"🍢",office:"🏢",oil_drum:"🛢",ok:"🆗",ok_hand:"👌",ok_man:"🙆‍♂️",ok_woman:"🙆",old_key:"🗝",older_man:"👴",older_woman:"👵",om:"🕉",on:"🔛",oncoming_automobile:"🚘",oncoming_bus:"🚍",oncoming_police_car:"🚔",oncoming_taxi:"🚖",open_file_folder:"📂",open_hands:"👐",open_mouth:"😮",open_umbrella:"☂️",ophiuchus:"⛎",orange_book:"📙",orthodox_cross:"☦️",outbox_tray:"📤",owl:"🦉",ox:"🐂",package:"📦",page_facing_up:"📄",page_with_curl:"📃",pager:"📟",paintbrush:"🖌",palm_tree:"🌴",pancakes:"🥞",panda_face:"🐼",paperclip:"📎",paperclips:"🖇",parasol_on_ground:"⛱",parking:"🅿️",part_alternation_mark:"〽️",partly_sunny:"⛅️",passenger_ship:"🛳",passport_control:"🛂",pause_button:"⏸",peace_symbol:"☮️",peach:"🍑",peanuts:"🥜",pear:"🍐",pen:"🖊",pencil2:"✏️",penguin:"🐧",pensive:"😔",performing_arts:"🎭",persevere:"😣",person_fencing:"🤺",pouting_woman:"🙎",phone:"☎️",pick:"⛏",pig:"🐷",pig2:"🐖",pig_nose:"🐽",pill:"💊",pineapple:"🍍",ping_pong:"🏓",pisces:"♓️",pizza:"🍕",place_of_worship:"🛐",plate_with_cutlery:"🍽",play_or_pause_button:"⏯",point_down:"👇",point_left:"👈",point_right:"👉",point_up:"☝️",point_up_2:"👆",police_car:"🚓",policewoman:"👮‍♀️",poodle:"🐩",popcorn:"🍿",post_office:"🏣",postal_horn:"📯",postbox:"📮",potable_water:"🚰",potato:"🥔",pouch:"👝",poultry_leg:"🍗",pound:"💷",rage:"😡",pouting_cat:"😾",pouting_man:"🙎‍♂️",pray:"🙏",prayer_beads:"📿",pregnant_woman:"🤰",previous_track_button:"⏮",prince:"🤴",princess:"👸",printer:"🖨",purple_heart:"💜",purse:"👛",pushpin:"📌",put_litter_in_its_place:"🚮",question:"❓",rabbit:"🐰",rabbit2:"🐇",racehorse:"🐎",racing_car:"🏎",radio:"📻",radio_button:"🔘",radioactive:"☢️",railway_car:"🚃",railway_track:"🛤",rainbow:"🌈",rainbow_flag:"🏳️‍🌈",raised_back_of_hand:"🤚",raised_hand_with_fingers_splayed:"🖐",raised_hands:"🙌",raising_hand_woman:"🙋",raising_hand_man:"🙋‍♂️",ram:"🐏",ramen:"🍜",rat:"🐀",record_button:"⏺",recycle:"♻️",red_circle:"🔴",registered:"®️",relaxed:"☺️",relieved:"😌",reminder_ribbon:"🎗",repeat:"🔁",repeat_one:"🔂",rescue_worker_helmet:"⛑",restroom:"🚻",revolving_hearts:"💞",rewind:"⏪",rhinoceros:"🦏",ribbon:"🎀",rice:"🍚",rice_ball:"🍙",rice_cracker:"🍘",rice_scene:"🎑",right_anger_bubble:"🗯",ring:"💍",robot:"🤖",rocket:"🚀",rofl:"🤣",roll_eyes:"🙄",roller_coaster:"🎢",rooster:"🐓",rose:"🌹",rosette:"🏵",rotating_light:"🚨",round_pushpin:"📍",rowing_man:"🚣",rowing_woman:"🚣‍♀️",rugby_football:"🏉",running_man:"🏃",running_shirt_with_sash:"🎽",running_woman:"🏃‍♀️",sa:"🈂️",sagittarius:"♐️",sake:"🍶",sandal:"👡",santa:"🎅",satellite:"📡",saxophone:"🎷",school:"🏫",school_satchel:"🎒",scissors:"✂️",scorpion:"🦂",scorpius:"♏️",scream:"😱",scream_cat:"🙀",scroll:"📜",seat:"💺",secret:"㊙️",see_no_evil:"🙈",seedling:"🌱",selfie:"🤳",shallow_pan_of_food:"🥘",shamrock:"☘️",shark:"🦈",shaved_ice:"🍧",sheep:"🐑",shell:"🐚",shield:"🛡",shinto_shrine:"⛩",ship:"🚢",shirt:"👕",shopping:"🛍",shopping_cart:"🛒",shower:"🚿",shrimp:"🦐",signal_strength:"📶",six_pointed_star:"🔯",ski:"🎿",skier:"⛷",skull:"💀",skull_and_crossbones:"☠️",sleeping:"😴",sleeping_bed:"🛌",sleepy:"😪",slightly_frowning_face:"🙁",slightly_smiling_face:"🙂",slot_machine:"🎰",small_airplane:"🛩",small_blue_diamond:"🔹",small_orange_diamond:"🔸",small_red_triangle:"🔺",small_red_triangle_down:"🔻",smile:"😄",smile_cat:"😸",smiley:"😃",smiley_cat:"😺",smiling_imp:"😈",smirk:"😏",smirk_cat:"😼",smoking:"🚬",snail:"🐌",snake:"🐍",sneezing_face:"🤧",snowboarder:"🏂",snowflake:"❄️",snowman:"⛄️",snowman_with_snow:"☃️",sob:"😭",soccer:"⚽️",soon:"🔜",sos:"🆘",sound:"🔉",space_invader:"👾",spades:"♠️",spaghetti:"🍝",sparkle:"❇️",sparkler:"🎇",sparkles:"✨",sparkling_heart:"💖",speak_no_evil:"🙊",speaker:"🔈",speaking_head:"🗣",speech_balloon:"💬",speedboat:"🚤",spider:"🕷",spider_web:"🕸",spiral_calendar:"🗓",spiral_notepad:"🗒",spoon:"🥄",squid:"🦑",stadium:"🏟",star:"⭐️",star2:"🌟",star_and_crescent:"☪️",star_of_david:"✡️",stars:"🌠",station:"🚉",statue_of_liberty:"🗽",steam_locomotive:"🚂",stew:"🍲",stop_button:"⏹",stop_sign:"🛑",stopwatch:"⏱",straight_ruler:"📏",strawberry:"🍓",stuck_out_tongue:"😛",stuck_out_tongue_closed_eyes:"😝",stuck_out_tongue_winking_eye:"😜",studio_microphone:"🎙",stuffed_flatbread:"🥙",sun_behind_large_cloud:"🌥",sun_behind_rain_cloud:"🌦",sun_behind_small_cloud:"🌤",sun_with_face:"🌞",sunflower:"🌻",sunglasses:"😎",sunny:"☀️",sunrise:"🌅",sunrise_over_mountains:"🌄",surfing_man:"🏄",surfing_woman:"🏄‍♀️",sushi:"🍣",suspension_railway:"🚟",sweat:"😓",sweat_drops:"💦",sweat_smile:"😅",sweet_potato:"🍠",swimming_man:"🏊",swimming_woman:"🏊‍♀️",symbols:"🔣",synagogue:"🕍",syringe:"💉",taco:"🌮",tada:"🎉",tanabata_tree:"🎋",taurus:"♉️",taxi:"🚕",tea:"🍵",telephone_receiver:"📞",telescope:"🔭",tennis:"🎾",tent:"⛺️",thermometer:"🌡",thinking:"🤔",thought_balloon:"💭",ticket:"🎫",tickets:"🎟",tiger:"🐯",tiger2:"🐅",timer_clock:"⏲",tipping_hand_man:"💁‍♂️",tired_face:"😫",tm:"™️",toilet:"🚽",tokyo_tower:"🗼",tomato:"🍅",tongue:"👅",top:"🔝",tophat:"🎩",tornado:"🌪",trackball:"🖲",tractor:"🚜",traffic_light:"🚥",train:"🚋",train2:"🚆",tram:"🚊",triangular_flag_on_post:"🚩",triangular_ruler:"📐",trident:"🔱",triumph:"😤",trolleybus:"🚎",trophy:"🏆",tropical_drink:"🍹",tropical_fish:"🐠",truck:"🚚",trumpet:"🎺",tulip:"🌷",tumbler_glass:"🥃",turkey:"🦃",turtle:"🐢",tv:"📺",twisted_rightwards_arrows:"🔀",two_hearts:"💕",two_men_holding_hands:"👬",two_women_holding_hands:"👭",u5272:"🈹",u5408:"🈴",u55b6:"🈺",u6307:"🈯️",u6708:"🈷️",u6709:"🈶",u6e80:"🈵",u7121:"🈚️",u7533:"🈸",u7981:"🈲",u7a7a:"🈳",umbrella:"☔️",unamused:"😒",underage:"🔞",unicorn:"🦄",unlock:"🔓",up:"🆙",upside_down_face:"🙃",v:"✌️",vertical_traffic_light:"🚦",vhs:"📼",vibration_mode:"📳",video_camera:"📹",video_game:"🎮",violin:"🎻",virgo:"♍️",volcano:"🌋",volleyball:"🏐",vs:"🆚",vulcan_salute:"🖖",walking_man:"🚶",walking_woman:"🚶‍♀️",waning_crescent_moon:"🌘",waning_gibbous_moon:"🌖",warning:"⚠️",wastebasket:"🗑",watch:"⌚️",water_buffalo:"🐃",watermelon:"🍉",wave:"👋",wavy_dash:"〰️",waxing_crescent_moon:"🌒",wc:"🚾",weary:"😩",wedding:"💒",weight_lifting_man:"🏋️",weight_lifting_woman:"🏋️‍♀️",whale:"🐳",whale2:"🐋",wheel_of_dharma:"☸️",wheelchair:"♿️",white_check_mark:"✅",white_circle:"⚪️",white_flag:"🏳️",white_flower:"💮",white_large_square:"⬜️",white_medium_small_square:"◽️",white_medium_square:"◻️",white_small_square:"▫️",white_square_button:"🔳",wilted_flower:"🥀",wind_chime:"🎐",wind_face:"🌬",wine_glass:"🍷",wink:"😉",wolf:"🐺",woman:"👩",woman_artist:"👩‍🎨",woman_astronaut:"👩‍🚀",woman_cartwheeling:"🤸‍♀️",woman_cook:"👩‍🍳",woman_facepalming:"🤦‍♀️",woman_factory_worker:"👩‍🏭",woman_farmer:"👩‍🌾",woman_firefighter:"👩‍🚒",woman_health_worker:"👩‍⚕️",woman_judge:"👩‍⚖️",woman_juggling:"🤹‍♀️",woman_mechanic:"👩‍🔧",woman_office_worker:"👩‍💼",woman_pilot:"👩‍✈️",woman_playing_handball:"🤾‍♀️",woman_playing_water_polo:"🤽‍♀️",woman_scientist:"👩‍🔬",woman_shrugging:"🤷‍♀️",woman_singer:"👩‍🎤",woman_student:"👩‍🎓",woman_teacher:"👩‍🏫",woman_technologist:"👩‍💻",woman_with_turban:"👳‍♀️",womans_clothes:"👚",womans_hat:"👒",women_wrestling:"🤼‍♀️",womens:"🚺",world_map:"🗺",worried:"😟",wrench:"🔧",writing_hand:"✍️",x:"❌",yellow_heart:"💛",yen:"💴",yin_yang:"☯️",yum:"😋",zap:"⚡️",zipper_mouth_face:"🤐",zzz:"💤",octocat:':octocat:',showdown:"S"},a.Converter=function(e){"use strict";var t={},r=[],n=[],_={},i=l,d={parsed:{},raw:"",format:""};function f(e,t){if(t=t||null,a.helper.isString(e)){if(t=e=a.helper.stdExtName(e),a.extensions[e])return console.warn("DEPRECATION WARNING: "+e+" is an old extension that uses a deprecated loading method.Please inform the developer that the extension should be updated!"),void function(e,t){"function"==typeof e&&(e=e(new a.Converter));a.helper.isArray(e)||(e=[e]);var _=c(e,t);if(!_.valid)throw Error(_.error);for(var i=0;i? ?(['"].*['"])?\)$/m)>-1)i="";else if(!i){if(_||(_=n.toLowerCase().replace(/ ?\n/g," ")),i="#"+_,a.helper.isUndefined(r.gUrls[_]))return e;i=r.gUrls[_],a.helper.isUndefined(r.gTitles[_])||(l=r.gTitles[_])}var u='"};return e=(e=(e=(e=(e=r.converter._dispatch("anchors.before",e,t,r)).replace(/\[((?:\[[^\]]*]|[^\[\]])*)] ?(?:\n *)?\[(.*?)]()()()()/g,n)).replace(/\[((?:\[[^\]]*]|[^\[\]])*)]()[ \t]*\([ \t]?<([^>]*)>(?:[ \t]*((["'])([^"]*?)\5))?[ \t]?\)/g,n)).replace(/\[((?:\[[^\]]*]|[^\[\]])*)]()[ \t]*\([ \t]??(?:[ \t]*((["'])([^"]*?)\5))?[ \t]?\)/g,n)).replace(/\[([^\[\]]+)]()()()()()/g,n),t.ghMentions&&(e=e.replace(/(^|\s)(\\)?(@([a-z\d]+(?:[a-z\d.-]+?[a-z\d]+)*))/gim,function(e,r,n,_,i){if("\\"===n)return r+_;if(!a.helper.isString(t.ghMentionsLink))throw new Error("ghMentionsLink option must be a string");var o=t.ghMentionsLink.replace(/\{u}/g,i),s="";return t.openLinksInNewWindow&&(s=' target="¨E95Eblank"'),r+'"+_+""})),e=r.converter._dispatch("anchors.after",e,t,r)});var p=/([*~_]+|\b)(((https?|ftp|dict):\/\/|www\.)[^'">\s]+?\.[^'">\s]+?)()(\1)?(?=\s|$)(?!["<>])/gi,h=/([*~_]+|\b)(((https?|ftp|dict):\/\/|www\.)[^'">\s]+\.[^'">\s]+?)([.!?,()\[\]])?(\1)?(?=\s|$)(?!["<>])/gi,E=/()<(((https?|ftp|dict):\/\/|www\.)[^'">\s]+)()>()/gi,m=/(^|\s)(?:mailto:)?([A-Za-z0-9!#$%&'*+-/=?^_`{|}~.]+@[-a-z0-9]+(\.[-a-z0-9]+)*\.[a-z]+)(?=$|\s)/gim,g=/<()(?:mailto:)?([-.\w]+@[-a-z0-9]+(\.[-a-z0-9]+)*\.[a-z]+)>/gi,b=function(e){"use strict";return function(t,r,n,_,i,o,s){var l=n=n.replace(a.helper.regexes.asteriskDashAndColon,a.helper.escapeCharactersCallback),u="",c="",d=r||"",f=s||"";return/^www\./i.test(n)&&(n=n.replace(/^www\./i,"http://www.")),e.excludeTrailingPunctuationFromURLs&&o&&(u=o),e.openLinksInNewWindow&&(c=' target="¨E95Eblank"'),d+'"+l+""+u+f}},v=function(e,t){"use strict";return function(r,n,_){var i="mailto:";return n=n||"",_=a.subParser("unescapeSpecialChars")(_,e,t),e.encodeEmails?(i=a.helper.encodeEmailAddress(i+_),_=a.helper.encodeEmailAddress(_)):i+=_,n+''+_+""}};a.subParser("autoLinks",function(e,t,r){"use strict";return e=(e=(e=r.converter._dispatch("autoLinks.before",e,t,r)).replace(E,b(t))).replace(g,v(t,r)),e=r.converter._dispatch("autoLinks.after",e,t,r)}),a.subParser("simplifiedAutoLinks",function(e,t,r){"use strict";return t.simplifiedAutoLink?(e=r.converter._dispatch("simplifiedAutoLinks.before",e,t,r),e=(e=t.excludeTrailingPunctuationFromURLs?e.replace(h,b(t)):e.replace(p,b(t))).replace(m,v(t,r)),e=r.converter._dispatch("simplifiedAutoLinks.after",e,t,r)):e}),a.subParser("blockGamut",function(e,t,r){"use strict";return e=r.converter._dispatch("blockGamut.before",e,t,r),e=a.subParser("blockQuotes")(e,t,r),e=a.subParser("headers")(e,t,r),e=a.subParser("horizontalRule")(e,t,r),e=a.subParser("lists")(e,t,r),e=a.subParser("codeBlocks")(e,t,r),e=a.subParser("tables")(e,t,r),e=a.subParser("hashHTMLBlocks")(e,t,r),e=a.subParser("paragraphs")(e,t,r),e=r.converter._dispatch("blockGamut.after",e,t,r)}),a.subParser("blockQuotes",function(e,t,r){"use strict";e=r.converter._dispatch("blockQuotes.before",e,t,r),e+="\n\n";var n=/(^ {0,3}>[ \t]?.+\n(.+\n)*\n*)+/gm;return t.splitAdjacentBlockquotes&&(n=/^ {0,3}>[\s\S]*?(?:\n\n)/gm),e=e.replace(n,function(e){return e=(e=(e=e.replace(/^[ \t]*>[ \t]?/gm,"")).replace(/¨0/g,"")).replace(/^[ \t]+$/gm,""),e=a.subParser("githubCodeBlocks")(e,t,r),e=(e=(e=a.subParser("blockGamut")(e,t,r)).replace(/(^|\n)/g,"$1 ")).replace(/(\s*
[^\r]+?<\/pre>)/gm,function(e,t){var r=t;return r=(r=r.replace(/^  /gm,"¨0")).replace(/¨0/g,"")}),a.subParser("hashBlock")("
\n"+e+"\n
",t,r)}),e=r.converter._dispatch("blockQuotes.after",e,t,r)}),a.subParser("codeBlocks",function(e,t,r){"use strict";e=r.converter._dispatch("codeBlocks.before",e,t,r);return e=(e=(e+="¨0").replace(/(?:\n\n|^)((?:(?:[ ]{4}|\t).*\n+)+)(\n*[ ]{0,3}[^ \t\n]|(?=¨0))/g,function(e,n,_){var i=n,o=_,s="\n";return i=a.subParser("outdent")(i,t,r),i=a.subParser("encodeCode")(i,t,r),i=(i=(i=a.subParser("detab")(i,t,r)).replace(/^\n+/g,"")).replace(/\n+$/g,""),t.omitExtraWLInCodeBlocks&&(s=""),i="
"+i+s+"
",a.subParser("hashBlock")(i,t,r)+o})).replace(/¨0/,""),e=r.converter._dispatch("codeBlocks.after",e,t,r)}),a.subParser("codeSpans",function(e,t,r){"use strict";return void 0===(e=r.converter._dispatch("codeSpans.before",e,t,r))&&(e=""),e=e.replace(/(^|[^\\])(`+)([^\r]*?[^`])\2(?!`)/gm,function(e,n,_,i){var o=i;return o=(o=o.replace(/^([ \t]*)/g,"")).replace(/[ \t]*$/g,""),o=n+""+(o=a.subParser("encodeCode")(o,t,r))+"",o=a.subParser("hashHTMLSpans")(o,t,r)}),e=r.converter._dispatch("codeSpans.after",e,t,r)}),a.subParser("completeHTMLDocument",function(e,t,r){"use strict";if(!t.completeHTMLDocument)return e;e=r.converter._dispatch("completeHTMLDocument.before",e,t,r);var n="html",_="\n",a="",i='\n',o="",s="";for(var l in void 0!==r.metadata.parsed.doctype&&(_="\n","html"!==(n=r.metadata.parsed.doctype.toString().toLowerCase())&&"html5"!==n||(i='')),r.metadata.parsed)if(r.metadata.parsed.hasOwnProperty(l))switch(l.toLowerCase()){case"doctype":break;case"title":a=""+r.metadata.parsed.title+"\n";break;case"charset":i="html"===n||"html5"===n?'\n':'\n';break;case"language":case"lang":o=' lang="'+r.metadata.parsed[l]+'"',s+='\n';break;default:s+='\n'}return e=_+"\n\n"+a+i+s+"\n\n"+e.trim()+"\n\n",e=r.converter._dispatch("completeHTMLDocument.after",e,t,r)}),a.subParser("detab",function(e,t,r){"use strict";return e=(e=(e=(e=(e=(e=r.converter._dispatch("detab.before",e,t,r)).replace(/\t(?=\t)/g," ")).replace(/\t/g,"¨A¨B")).replace(/¨B(.+?)¨A/g,function(e,t){for(var r=t,n=4-r.length%4,_=0;_/g,">"),e=r.converter._dispatch("encodeAmpsAndAngles.after",e,t,r)}),a.subParser("encodeBackslashEscapes",function(e,t,r){"use strict";return e=(e=(e=r.converter._dispatch("encodeBackslashEscapes.before",e,t,r)).replace(/\\(\\)/g,a.helper.escapeCharactersCallback)).replace(/\\([`*_{}\[\]()>#+.!~=|-])/g,a.helper.escapeCharactersCallback),e=r.converter._dispatch("encodeBackslashEscapes.after",e,t,r)}),a.subParser("encodeCode",function(e,t,r){"use strict";return e=(e=r.converter._dispatch("encodeCode.before",e,t,r)).replace(/&/g,"&").replace(//g,">").replace(/([*_{}\[\]\\=~-])/g,a.helper.escapeCharactersCallback),e=r.converter._dispatch("encodeCode.after",e,t,r)}),a.subParser("escapeSpecialCharsWithinTagAttributes",function(e,t,r){"use strict";return e=(e=(e=r.converter._dispatch("escapeSpecialCharsWithinTagAttributes.before",e,t,r)).replace(/<\/?[a-z\d_:-]+(?:[\s]+[\s\S]+?)?>/gi,function(e){return e.replace(/(.)<\/?code>(?=.)/g,"$1`").replace(/([\\`*_~=|])/g,a.helper.escapeCharactersCallback)})).replace(/-]|-[^>])(?:[^-]|-[^-])*)--)>/gi,function(e){return e.replace(/([\\`*_~=|])/g,a.helper.escapeCharactersCallback)}),e=r.converter._dispatch("escapeSpecialCharsWithinTagAttributes.after",e,t,r)}),a.subParser("githubCodeBlocks",function(e,t,r){"use strict";return t.ghCodeBlocks?(e=r.converter._dispatch("githubCodeBlocks.before",e,t,r),e=(e=(e+="¨0").replace(/(?:^|\n)(?: {0,3})(```+|~~~+)(?: *)([^\s`~]*)\n([\s\S]*?)\n(?: {0,3})\1/g,function(e,n,_,i){var o=t.omitExtraWLInCodeBlocks?"":"\n";return i=a.subParser("encodeCode")(i,t,r),i=(i=(i=a.subParser("detab")(i,t,r)).replace(/^\n+/g,"")).replace(/\n+$/g,""),i="
"+i+o+"
",i=a.subParser("hashBlock")(i,t,r),"\n\n¨G"+(r.ghCodeBlocks.push({text:e,codeblock:i})-1)+"G\n\n"})).replace(/¨0/,""),r.converter._dispatch("githubCodeBlocks.after",e,t,r)):e}),a.subParser("hashBlock",function(e,t,r){"use strict";return e=(e=r.converter._dispatch("hashBlock.before",e,t,r)).replace(/(^\n+|\n+$)/g,""),e="\n\n¨K"+(r.gHtmlBlocks.push(e)-1)+"K\n\n",e=r.converter._dispatch("hashBlock.after",e,t,r)}),a.subParser("hashCodeTags",function(e,t,r){"use strict";e=r.converter._dispatch("hashCodeTags.before",e,t,r);return e=a.helper.replaceRecursiveRegExp(e,function(e,n,_,i){var o=_+a.subParser("encodeCode")(n,t,r)+i;return"¨C"+(r.gHtmlSpans.push(o)-1)+"C"},"]*>","","gim"),e=r.converter._dispatch("hashCodeTags.after",e,t,r)}),a.subParser("hashElement",function(e,t,r){"use strict";return function(e,t){var n=t;return n=(n=(n=n.replace(/\n\n/g,"\n")).replace(/^\n/,"")).replace(/\n+$/g,""),n="\n\n¨K"+(r.gHtmlBlocks.push(n)-1)+"K\n\n"}}),a.subParser("hashHTMLBlocks",function(e,t,r){"use strict";e=r.converter._dispatch("hashHTMLBlocks.before",e,t,r);var n=["pre","div","h1","h2","h3","h4","h5","h6","blockquote","table","dl","ol","ul","script","noscript","form","fieldset","iframe","math","style","section","header","footer","nav","article","aside","address","audio","canvas","figure","hgroup","output","video","p"],_=function(e,t,n,_){var a=e;return-1!==n.search(/\bmarkdown\b/)&&(a=n+r.converter.makeHtml(t)+_),"\n\n¨K"+(r.gHtmlBlocks.push(a)-1)+"K\n\n"};t.backslashEscapesHTMLTags&&(e=e.replace(/\\<(\/?[^>]+?)>/g,function(e,t){return"<"+t+">"}));for(var i=0;i]*>)","im"),l="<"+n[i]+"\\b[^>]*>",u="";-1!==(o=a.helper.regexIndexOf(e,s));){var c=a.helper.splitAtIndex(e,o),d=a.helper.replaceRecursiveRegExp(c[1],_,l,u,"im");if(d===c[1])break;e=c[0].concat(d)}return e=e.replace(/(\n {0,3}(<(hr)\b([^<>])*?\/?>)[ \t]*(?=\n{2,}))/g,a.subParser("hashElement")(e,t,r)),e=(e=a.helper.replaceRecursiveRegExp(e,function(e){return"\n\n¨K"+(r.gHtmlBlocks.push(e)-1)+"K\n\n"},"^ {0,3}\x3c!--","--\x3e","gm")).replace(/(?:\n\n)( {0,3}(?:<([?%])[^\r]*?\2>)[ \t]*(?=\n{2,}))/g,a.subParser("hashElement")(e,t,r)),e=r.converter._dispatch("hashHTMLBlocks.after",e,t,r)}),a.subParser("hashHTMLSpans",function(e,t,r){"use strict";function n(e){return"¨C"+(r.gHtmlSpans.push(e)-1)+"C"}return e=(e=(e=(e=(e=r.converter._dispatch("hashHTMLSpans.before",e,t,r)).replace(/<[^>]+?\/>/gi,function(e){return n(e)})).replace(/<([^>]+?)>[\s\S]*?<\/\1>/g,function(e){return n(e)})).replace(/<([^>]+?)\s[^>]+?>[\s\S]*?<\/\1>/g,function(e){return n(e)})).replace(/<[^>]+?>/gi,function(e){return n(e)}),e=r.converter._dispatch("hashHTMLSpans.after",e,t,r)}),a.subParser("unhashHTMLSpans",function(e,t,r){"use strict";e=r.converter._dispatch("unhashHTMLSpans.before",e,t,r);for(var n=0;n]*>\\s*]*>","^ {0,3}\\s*
","gim"),e=r.converter._dispatch("hashPreCodeTags.after",e,t,r)}),a.subParser("headers",function(e,t,r){"use strict";e=r.converter._dispatch("headers.before",e,t,r);var n=isNaN(parseInt(t.headerLevelStart))?1:parseInt(t.headerLevelStart),_=t.smoothLivePreview?/^(.+)[ \t]*\n={2,}[ \t]*\n+/gm:/^(.+)[ \t]*\n=+[ \t]*\n+/gm,i=t.smoothLivePreview?/^(.+)[ \t]*\n-{2,}[ \t]*\n+/gm:/^(.+)[ \t]*\n-+[ \t]*\n+/gm;e=(e=e.replace(_,function(e,_){var i=a.subParser("spanGamut")(_,t,r),o=t.noHeaderId?"":' id="'+s(_)+'"',l=""+i+"";return a.subParser("hashBlock")(l,t,r)})).replace(i,function(e,_){var i=a.subParser("spanGamut")(_,t,r),o=t.noHeaderId?"":' id="'+s(_)+'"',l=n+1,u=""+i+"";return a.subParser("hashBlock")(u,t,r)});var o=t.requireSpaceBeforeHeadingText?/^(#{1,6})[ \t]+(.+?)[ \t]*#*\n+/gm:/^(#{1,6})[ \t]*(.+?)[ \t]*#*\n+/gm;function s(e){var n,_;if(t.customizedHeaderId){var i=e.match(/\{([^{]+?)}\s*$/);i&&i[1]&&(e=i[1])}return n=e,_=a.helper.isString(t.prefixHeaderId)?t.prefixHeaderId:!0===t.prefixHeaderId?"section-":"",t.rawPrefixHeaderId||(n=_+n),n=t.ghCompatibleHeaderId?n.replace(/ /g,"-").replace(/&/g,"").replace(/¨T/g,"").replace(/¨D/g,"").replace(/[&+$,\/:;=?@"#{}|^¨~\[\]`\\*)(%.!'<>]/g,"").toLowerCase():t.rawHeaderId?n.replace(/ /g,"-").replace(/&/g,"&").replace(/¨T/g,"¨").replace(/¨D/g,"$").replace(/["']/g,"-").toLowerCase():n.replace(/[^\w]/g,"").toLowerCase(),t.rawPrefixHeaderId&&(n=_+n),r.hashLinkCounts[n]?n=n+"-"+r.hashLinkCounts[n]++:r.hashLinkCounts[n]=1,n}return e=e.replace(o,function(e,_,i){var o=i;t.customizedHeaderId&&(o=i.replace(/\s?\{([^{]+?)}\s*$/,""));var l=a.subParser("spanGamut")(o,t,r),u=t.noHeaderId?"":' id="'+s(i)+'"',c=n-1+_.length,d=""+l+"";return a.subParser("hashBlock")(d,t,r)}),e=r.converter._dispatch("headers.after",e,t,r)}),a.subParser("horizontalRule",function(e,t,r){"use strict";e=r.converter._dispatch("horizontalRule.before",e,t,r);var n=a.subParser("hashBlock")("
",t,r);return e=(e=(e=e.replace(/^ {0,2}( ?-){3,}[ \t]*$/gm,n)).replace(/^ {0,2}( ?\*){3,}[ \t]*$/gm,n)).replace(/^ {0,2}( ?_){3,}[ \t]*$/gm,n),e=r.converter._dispatch("horizontalRule.after",e,t,r)}),a.subParser("images",function(e,t,r){"use strict";function n(e,t,n,_,i,o,s,l){var u=r.gUrls,c=r.gTitles,d=r.gDimensions;if(n=n.toLowerCase(),l||(l=""),e.search(/\(? ?(['"].*['"])?\)$/m)>-1)_="";else if(""===_||null===_){if(""!==n&&null!==n||(n=t.toLowerCase().replace(/ ?\n/g," ")),_="#"+n,a.helper.isUndefined(u[n]))return e;_=u[n],a.helper.isUndefined(c[n])||(l=c[n]),a.helper.isUndefined(d[n])||(i=d[n].width,o=d[n].height)}t=t.replace(/"/g,""").replace(a.helper.regexes.asteriskDashAndColon,a.helper.escapeCharactersCallback);var f=''+t+'"}return e=(e=(e=(e=(e=(e=r.converter._dispatch("images.before",e,t,r)).replace(/!\[([^\]]*?)] ?(?:\n *)?\[([\s\S]*?)]()()()()()/g,n)).replace(/!\[([^\]]*?)][ \t]*()\([ \t]??(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*(?:(["'])([^"]*?)\6)?[ \t]?\)/g,function(e,t,r,_,a,i,o,s){return n(e,t,r,_=_.replace(/\s/g,""),a,i,0,s)})).replace(/!\[([^\]]*?)][ \t]*()\([ \t]?<([^>]*)>(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*(?:(?:(["'])([^"]*?)\6))?[ \t]?\)/g,n)).replace(/!\[([^\]]*?)][ \t]*()\([ \t]??(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*(?:(["'])([^"]*?)\6)?[ \t]?\)/g,n)).replace(/!\[([^\[\]]+)]()()()()()/g,n),e=r.converter._dispatch("images.after",e,t,r)}),a.subParser("italicsAndBold",function(e,t,r){"use strict";function n(e,t,r){return t+e+r}return e=r.converter._dispatch("italicsAndBold.before",e,t,r),e=t.literalMidWordUnderscores?(e=(e=e.replace(/\b___(\S[\s\S]*)___\b/g,function(e,t){return n(t,"","")})).replace(/\b__(\S[\s\S]*)__\b/g,function(e,t){return n(t,"","")})).replace(/\b_(\S[\s\S]*?)_\b/g,function(e,t){return n(t,"","")}):(e=(e=e.replace(/___(\S[\s\S]*?)___/g,function(e,t){return/\S$/.test(t)?n(t,"",""):e})).replace(/__(\S[\s\S]*?)__/g,function(e,t){return/\S$/.test(t)?n(t,"",""):e})).replace(/_([^\s_][\s\S]*?)_/g,function(e,t){return/\S$/.test(t)?n(t,"",""):e}),e=t.literalMidWordAsterisks?(e=(e=e.replace(/([^*]|^)\B\*\*\*(\S[\s\S]*?)\*\*\*\B(?!\*)/g,function(e,t,r){return n(r,t+"","")})).replace(/([^*]|^)\B\*\*(\S[\s\S]*?)\*\*\B(?!\*)/g,function(e,t,r){return n(r,t+"","")})).replace(/([^*]|^)\B\*(\S[\s\S]*?)\*\B(?!\*)/g,function(e,t,r){return n(r,t+"","")}):(e=(e=e.replace(/\*\*\*(\S[\s\S]*?)\*\*\*/g,function(e,t){return/\S$/.test(t)?n(t,"",""):e})).replace(/\*\*(\S[\s\S]*?)\*\*/g,function(e,t){return/\S$/.test(t)?n(t,"",""):e})).replace(/\*([^\s*][\s\S]*?)\*/g,function(e,t){return/\S$/.test(t)?n(t,"",""):e}),e=r.converter._dispatch("italicsAndBold.after",e,t,r)}),a.subParser("lists",function(e,t,r){"use strict";function n(e,n){r.gListLevel++,e=e.replace(/\n{2,}$/,"\n");var _=/(\n)?(^ {0,3})([*+-]|\d+[.])[ \t]+((\[(x|X| )?])?[ \t]*[^\r]+?(\n{1,2}))(?=\n*(¨0| {0,3}([*+-]|\d+[.])[ \t]+))/gm,i=/\n[ \t]*\n(?!¨0)/.test(e+="¨0");return t.disableForced4SpacesIndentedSublists&&(_=/(\n)?(^ {0,3})([*+-]|\d+[.])[ \t]+((\[(x|X| )?])?[ \t]*[^\r]+?(\n{1,2}))(?=\n*(¨0|\2([*+-]|\d+[.])[ \t]+))/gm),e=(e=e.replace(_,function(e,n,_,o,s,l,u){u=u&&""!==u.trim();var c=a.subParser("outdent")(s,t,r),d="";return l&&t.tasklists&&(d=' class="task-list-item" style="list-style-type: none;"',c=c.replace(/^[ \t]*\[(x|X| )?]/m,function(){var e='-1?(c=a.subParser("githubCodeBlocks")(c,t,r),c=a.subParser("blockGamut")(c,t,r)):(c=(c=a.subParser("lists")(c,t,r)).replace(/\n$/,""),c=(c=a.subParser("hashHTMLBlocks")(c,t,r)).replace(/\n\n+/g,"\n\n"),c=i?a.subParser("paragraphs")(c,t,r):a.subParser("spanGamut")(c,t,r)),c=""+(c=c.replace("¨A",""))+"\n"})).replace(/¨0/g,""),r.gListLevel--,n&&(e=e.replace(/\s+$/,"")),e}function _(e,t){if("ol"===t){var r=e.match(/^ *(\d+)\./);if(r&&"1"!==r[1])return' start="'+r[1]+'"'}return""}function i(e,r,a){var i=t.disableForced4SpacesIndentedSublists?/^ ?\d+\.[ \t]/gm:/^ {0,3}\d+\.[ \t]/gm,o=t.disableForced4SpacesIndentedSublists?/^ ?[*+-][ \t]/gm:/^ {0,3}[*+-][ \t]/gm,s="ul"===r?i:o,l="";if(-1!==e.search(s))!function t(u){var c=u.search(s),d=_(e,r);-1!==c?(l+="\n\n<"+r+d+">\n"+n(u.slice(0,c),!!a)+"\n",s="ul"===(r="ul"===r?"ol":"ul")?i:o,t(u.slice(c))):l+="\n\n<"+r+d+">\n"+n(u,!!a)+"\n"}(e);else{var u=_(e,r);l="\n\n<"+r+u+">\n"+n(e,!!a)+"\n"}return l}return e=r.converter._dispatch("lists.before",e,t,r),e+="¨0",e=(e=r.gListLevel?e.replace(/^(( {0,3}([*+-]|\d+[.])[ \t]+)[^\r]+?(¨0|\n{2,}(?=\S)(?![ \t]*(?:[*+-]|\d+[.])[ \t]+)))/gm,function(e,t,r){return i(t,r.search(/[*+-]/g)>-1?"ul":"ol",!0)}):e.replace(/(\n\n|^\n?)(( {0,3}([*+-]|\d+[.])[ \t]+)[^\r]+?(¨0|\n{2,}(?=\S)(?![ \t]*(?:[*+-]|\d+[.])[ \t]+)))/gm,function(e,t,r,n){return i(r,n.search(/[*+-]/g)>-1?"ul":"ol",!1)})).replace(/¨0/,""),e=r.converter._dispatch("lists.after",e,t,r)}),a.subParser("metadata",function(e,t,r){"use strict";if(!t.metadata)return e;function n(e){r.metadata.raw=e,(e=(e=e.replace(/&/g,"&").replace(/"/g,""")).replace(/\n {4}/g," ")).replace(/^([\S ]+): +([\s\S]+?)$/gm,function(e,t,n){return r.metadata.parsed[t]=n,""})}return e=(e=(e=(e=r.converter._dispatch("metadata.before",e,t,r)).replace(/^\s*«««+(\S*?)\n([\s\S]+?)\n»»»+\n/,function(e,t,r){return n(r),"¨M"})).replace(/^\s*---+(\S*?)\n([\s\S]+?)\n---+\n/,function(e,t,_){return t&&(r.metadata.format=t),n(_),"¨M"})).replace(/¨M/g,""),e=r.converter._dispatch("metadata.after",e,t,r)}),a.subParser("outdent",function(e,t,r){"use strict";return e=(e=(e=r.converter._dispatch("outdent.before",e,t,r)).replace(/^(\t|[ ]{1,4})/gm,"¨0")).replace(/¨0/g,""),e=r.converter._dispatch("outdent.after",e,t,r)}),a.subParser("paragraphs",function(e,t,r){"use strict";for(var n=(e=(e=(e=r.converter._dispatch("paragraphs.before",e,t,r)).replace(/^\n+/g,"")).replace(/\n+$/g,"")).split(/\n{2,}/g),_=[],i=n.length,o=0;o=0?_.push(s):s.search(/\S/)>=0&&(s=(s=a.subParser("spanGamut")(s,t,r)).replace(/^([ \t]*)/g,"

"),s+="

",_.push(s))}for(i=_.length,o=0;o]*>\s*]*>/.test(u)&&(c=!0)}_[o]=u}return e=(e=(e=_.join("\n")).replace(/^\n+/g,"")).replace(/\n+$/g,""),r.converter._dispatch("paragraphs.after",e,t,r)}),a.subParser("runExtension",function(e,t,r,n){"use strict";if(e.filter)t=e.filter(t,n.converter,r);else if(e.regex){var _=e.regex;_ instanceof RegExp||(_=new RegExp(_,"g")),t=t.replace(_,e.replace)}return t}),a.subParser("spanGamut",function(e,t,r){"use strict";return e=r.converter._dispatch("spanGamut.before",e,t,r),e=a.subParser("codeSpans")(e,t,r),e=a.subParser("escapeSpecialCharsWithinTagAttributes")(e,t,r),e=a.subParser("encodeBackslashEscapes")(e,t,r),e=a.subParser("images")(e,t,r),e=a.subParser("anchors")(e,t,r),e=a.subParser("autoLinks")(e,t,r),e=a.subParser("simplifiedAutoLinks")(e,t,r),e=a.subParser("emoji")(e,t,r),e=a.subParser("underline")(e,t,r),e=a.subParser("italicsAndBold")(e,t,r),e=a.subParser("strikethrough")(e,t,r),e=a.subParser("ellipsis")(e,t,r),e=a.subParser("hashHTMLSpans")(e,t,r),e=a.subParser("encodeAmpsAndAngles")(e,t,r),t.simpleLineBreaks?/\n\n¨K/.test(e)||(e=e.replace(/\n+/g,"
\n")):e=e.replace(/ +\n/g,"
\n"),e=r.converter._dispatch("spanGamut.after",e,t,r)}),a.subParser("strikethrough",function(e,t,r){"use strict";return t.strikethrough&&(e=(e=r.converter._dispatch("strikethrough.before",e,t,r)).replace(/(?:~){2}([\s\S]+?)(?:~){2}/g,function(e,n){return function(e){return t.simplifiedAutoLink&&(e=a.subParser("simplifiedAutoLinks")(e,t,r)),""+e+""}(n)}),e=r.converter._dispatch("strikethrough.after",e,t,r)),e}),a.subParser("stripLinkDefinitions",function(e,t,r){"use strict";var n=function(e,n,_,i,o,s,l){return n=n.toLowerCase(),_.match(/^data:.+?\/.+?;base64,/)?r.gUrls[n]=_.replace(/\s/g,""):r.gUrls[n]=a.subParser("encodeAmpsAndAngles")(_,t,r),s?s+l:(l&&(r.gTitles[n]=l.replace(/"|'/g,""")),t.parseImgDimensions&&i&&o&&(r.gDimensions[n]={width:i,height:o}),"")};return e=(e=(e=(e+="¨0").replace(/^ {0,3}\[(.+)]:[ \t]*\n?[ \t]*?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*\n?[ \t]*(?:(\n*)["|'(](.+?)["|')][ \t]*)?(?:\n\n|(?=¨0)|(?=\n\[))/gm,n)).replace(/^ {0,3}\[(.+)]:[ \t]*\n?[ \t]*\s]+)>?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*\n?[ \t]*(?:(\n*)["|'(](.+?)["|')][ \t]*)?(?:\n+|(?=¨0))/gm,n)).replace(/¨0/,"")}),a.subParser("tables",function(e,t,r){"use strict";if(!t.tables)return e;function n(e){return/^:[ \t]*--*$/.test(e)?' style="text-align:left;"':/^--*[ \t]*:[ \t]*$/.test(e)?' style="text-align:right;"':/^:[ \t]*--*[ \t]*:$/.test(e)?' style="text-align:center;"':""}function _(e,n){var _="";return e=e.trim(),(t.tablesHeaderId||t.tableHeaderId)&&(_=' id="'+e.replace(/ /g,"_").toLowerCase()+'"'),""+(e=a.subParser("spanGamut")(e,t,r))+"\n"}function i(e,n){return""+a.subParser("spanGamut")(e,t,r)+"\n"}function o(e){var o,s=e.split("\n");for(o=0;o\n\n\n",_=0;_\n";for(var a=0;a\n"}return r+="\n\n"}(d,p)}return e=(e=(e=(e=r.converter._dispatch("tables.before",e,t,r)).replace(/\\(\|)/g,a.helper.escapeCharactersCallback)).replace(/^ {0,3}\|?.+\|.+\n {0,3}\|?[ \t]*:?[ \t]*(?:[-=]){2,}[ \t]*:?[ \t]*\|[ \t]*:?[ \t]*(?:[-=]){2,}[\s\S]+?(?:\n\n|¨0)/gm,o)).replace(/^ {0,3}\|.+\|[ \t]*\n {0,3}\|[ \t]*:?[ \t]*(?:[-=]){2,}[ \t]*:?[ \t]*\|[ \t]*\n( {0,3}\|.+\|[ \t]*\n)*(?:\n|¨0)/gm,o),e=r.converter._dispatch("tables.after",e,t,r)}),a.subParser("underline",function(e,t,r){"use strict";return t.underline?(e=r.converter._dispatch("underline.before",e,t,r),e=(e=t.literalMidWordUnderscores?e.replace(/\b_?__(\S[\s\S]*)___?\b/g,function(e,t){return""+t+""}):e.replace(/_?__(\S[\s\S]*?)___?/g,function(e,t){return/\S$/.test(t)?""+t+"":e})).replace(/(_)/g,a.helper.escapeCharactersCallback),e=r.converter._dispatch("underline.after",e,t,r)):e}),a.subParser("unescapeSpecialChars",function(e,t,r){"use strict";return e=(e=r.converter._dispatch("unescapeSpecialChars.before",e,t,r)).replace(/¨E(\d+)E/g,function(e,t){var r=parseInt(t);return String.fromCharCode(r)}),e=r.converter._dispatch("unescapeSpecialChars.after",e,t,r)});void 0===(n=function(){"use strict";return a}.call(t,r,t,e))||(e.exports=n)}).call(this)},function(module,__webpack_exports__,__webpack_require__){"use strict";(function(module){__webpack_require__.d(__webpack_exports__,"a",function(){return ReferenceModal});var core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(32),core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_0__),core_js_modules_es6_array_map__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(58),core_js_modules_es6_array_map__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(core_js_modules_es6_array_map__WEBPACK_IMPORTED_MODULE_1__),core_js_modules_es6_array_filter__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(166),core_js_modules_es6_array_filter__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(core_js_modules_es6_array_filter__WEBPACK_IMPORTED_MODULE_2__),core_js_modules_es6_array_index_of__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(45),core_js_modules_es6_array_index_of__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(core_js_modules_es6_array_index_of__WEBPACK_IMPORTED_MODULE_3__),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(2),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_4__),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(3),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_5__),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(5),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_6__),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(4),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_7___default=__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_7__),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(6),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_8___default=__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_8__),react__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(0),react__WEBPACK_IMPORTED_MODULE_9___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_9__),react_css_modules__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(10),react_css_modules__WEBPACK_IMPORTED_MODULE_10___default=__webpack_require__.n(react_css_modules__WEBPACK_IMPORTED_MODULE_10__),components_elements_ButtonControl_ButtonControl__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(23),components_elements_InputControl_InputControl__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(17),_ReferenceModal_sss__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(790),_ReferenceModal_sss__WEBPACK_IMPORTED_MODULE_13___default=__webpack_require__.n(_ReferenceModal_sss__WEBPACK_IMPORTED_MODULE_13__),_dec,_class;!function(){var e=__webpack_require__(1).enterModule;e&&e(module)}();var ReferenceModal=(_dec=react_css_modules__WEBPACK_IMPORTED_MODULE_10___default()(_ReferenceModal_sss__WEBPACK_IMPORTED_MODULE_13___default.a,{allowMultiple:!0}),_dec(_class=function(_Component){function ReferenceModal(e){var t;_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_4___default()(this,ReferenceModal),(t=_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_6___default()(this,_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_7___default()(ReferenceModal).call(this,e))).state={selectedItems:[],searchText:""},t.isMult=!1,t.callback=null,t.items=[],t.focusElm=null,t.active=!1,t.onKeyDown=function(e){e||(e=window.event),e.stopPropagation(),13==e.keyCode&&setTimeout(t.onChoose,1)},t.onSearch=function(e){var r=e.target.value;t.setState({searchText:r,selectedItems:[]})},t.onSelect=function(e){if(t.isMult){var r=t.state.selectedItems,n=r.indexOf(e);-1==n?r.push(e):r.splice(n,1),t.setState({selectedItems:r})}else t.setState({selectedItems:[e]})},t.onSearchKeyDown=function(e){e.stopPropagation(),27==e.keyCode&&t.setState({searchText:""})},t.onChoose=function(){t.state.selectedItems.length&&t.active&&(t.callback(t.isMult?t.state.selectedItems:t.state.selectedItems[0]),t.close())},t.close=function(){t.active=!1,t.props.onClose()},t.isMult=e.params.isMult,t.callback=e.params.callback;var r=e.params,n=r.currentItem,_=r.existingItems,a=r.validModels,i=e.contentItems,o=e.currentSite;return t.items=i.filter(function(e){return(!e.model.site||e.model.site==o)&&-1==_.indexOf(e)&&e!=n}),a&&(t.items=t.items.filter(function(e){return-1!=a.indexOf(e.model.nameId)})),t}return _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_8___default()(ReferenceModal,_Component),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_5___default()(ReferenceModal,[{key:"componentDidMount",value:function(){var e=this;this.active=!0,document.addEventListener("keydown",this.onKeyDown),this.focusElm&&setTimeout(function(){return e.focusElm.focus()},2)}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.onKeyDown)}},{key:"searchMatch",value:function(e){if(!this.state.searchText)return!0;var t=this.state.searchText.toLowerCase();return-1!=e.toLowerCase().indexOf(t)}},{key:"render",value:function(){var e=this;return react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:"modal",onClick:this.close},react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:"modal-inner",onClick:function(e){return e.stopPropagation()}},react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:"content"},react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:"input-wrapper"},react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement(components_elements_InputControl_InputControl__WEBPACK_IMPORTED_MODULE_12__.a,{type:"big",label:"search entries",value:this.state.searchText,DOMRef:function(t){return e.focusElm=t},onKeyDown:this.onSearchKeyDown,onChange:this.onSearch})),react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:"reference"},this.items.filter(function(t){return e.searchMatch(t.title)}).map(function(t){var r="reference-item";-1!=e.state.selectedItems.indexOf(t)&&(r+=" reference-chosen");var n=t.title;return n||(n=react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("span",{styleName:"untitled"},"Untitled")),react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:r,key:t.origin.id,onClick:function(){return e.onSelect(t)}},"[",t.model.name,"] ",n)})),react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:"input-wrapper buttons-wrapper"},react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:"buttons-inner"},react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement(components_elements_ButtonControl_ButtonControl__WEBPACK_IMPORTED_MODULE_11__.a,{color:"green",value:"Choose",disabled:!this.state.selectedItems.length,onClick:this.onChoose})),react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:"buttons-inner"},react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement(components_elements_ButtonControl_ButtonControl__WEBPACK_IMPORTED_MODULE_11__.a,{color:"gray",value:"Cancel",onClick:this.close}))))))}},{key:"__reactstandin__regenerateByEval",value:function __reactstandin__regenerateByEval(key,code){this[key]=eval(code)}}]),ReferenceModal}(react__WEBPACK_IMPORTED_MODULE_9__.Component))||_class);!function(){var e=__webpack_require__(1).default,t=__webpack_require__(1).leaveModule;e&&(e.register(ReferenceModal,"ReferenceModal","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/components/modals/ReferenceModal/ReferenceModal.js"),t(module))}()}).call(this,__webpack_require__(12)(module))},function(module,__webpack_exports__,__webpack_require__){"use strict";(function(module){__webpack_require__.d(__webpack_exports__,"a",function(){return ModelChooseModal});var core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(32),core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_0__),core_js_modules_es6_array_map__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(58),core_js_modules_es6_array_map__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(core_js_modules_es6_array_map__WEBPACK_IMPORTED_MODULE_1__),core_js_modules_es6_array_index_of__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(45),core_js_modules_es6_array_index_of__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(core_js_modules_es6_array_index_of__WEBPACK_IMPORTED_MODULE_2__),core_js_modules_es6_array_filter__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(166),core_js_modules_es6_array_filter__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(core_js_modules_es6_array_filter__WEBPACK_IMPORTED_MODULE_3__),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(2),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_4__),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(3),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_5__),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(5),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_6__),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(4),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_7___default=__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_7__),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(6),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_8___default=__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_8__),react__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(0),react__WEBPACK_IMPORTED_MODULE_9___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_9__),react_css_modules__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(10),react_css_modules__WEBPACK_IMPORTED_MODULE_10___default=__webpack_require__.n(react_css_modules__WEBPACK_IMPORTED_MODULE_10__),components_elements_ButtonControl_ButtonControl__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(23),components_elements_InputControl_InputControl__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(17),_ModelChooseModal_sss__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(792),_ModelChooseModal_sss__WEBPACK_IMPORTED_MODULE_13___default=__webpack_require__.n(_ModelChooseModal_sss__WEBPACK_IMPORTED_MODULE_13__),_dec,_class;!function(){var e=__webpack_require__(1).enterModule;e&&e(module)}();var ModelChooseModal=(_dec=react_css_modules__WEBPACK_IMPORTED_MODULE_10___default()(_ModelChooseModal_sss__WEBPACK_IMPORTED_MODULE_13___default.a,{allowMultiple:!0}),_dec(_class=function(_Component){function ModelChooseModal(e){var t;_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_4___default()(this,ModelChooseModal),(t=_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_6___default()(this,_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_7___default()(ModelChooseModal).call(this,e))).state={selectedModel:null},t.isMult=!1,t.callback=null,t.models=[],t.focusElm=null,t.active=!1,t.onKeyDown=function(e){e||(e=window.event),e.stopPropagation(),13==e.keyCode?setTimeout(t.onChoose,1):27==e.keyCode&&setTimeout(t.close,1)},t.onSelect=function(e){t.setState({selectedModel:e})},t.onChoose=function(){t.state.selectedModel&&t.active&&(t.callback(t.state.selectedModel),t.close())},t.close=function(){t.active=!1,t.props.onClose()},t.callback=e.params.callback;var r=e.params.validModels;return t.models=r?e.models.filter(function(e){return-1!=r.indexOf(e.nameId)}):e.models,t}return _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_8___default()(ModelChooseModal,_Component),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_5___default()(ModelChooseModal,[{key:"componentDidMount",value:function(){var e=this;this.active=!0,document.addEventListener("keydown",this.onKeyDown),this.focusElm&&setTimeout(function(){return e.focusElm.focus()},2)}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.onKeyDown)}},{key:"render",value:function(){var e=this;return react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:"modal",onClick:this.close},react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:"modal-inner",onClick:function(e){return e.stopPropagation()}},react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:"modal-header"},react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:"title"},"Select model for new item")),react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:"content"},react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:"model"},this.models.map(function(t){var r="model-item";return e.state.selectedModel==t&&(r+=" model-chosen"),react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:r,key:t.origin.id,onClick:function(){return e.onSelect(t)}},t.name)})),react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:"input-wrapper buttons-wrapper"},react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:"buttons-inner"},react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement(components_elements_ButtonControl_ButtonControl__WEBPACK_IMPORTED_MODULE_11__.a,{color:"green",value:"Choose",disabled:!this.state.selectedModel,onClick:this.onChoose})),react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:"buttons-inner"},react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement(components_elements_ButtonControl_ButtonControl__WEBPACK_IMPORTED_MODULE_11__.a,{color:"gray",value:"Cancel",onClick:this.close}))))))}},{key:"__reactstandin__regenerateByEval",value:function __reactstandin__regenerateByEval(key,code){this[key]=eval(code)}}]),ModelChooseModal}(react__WEBPACK_IMPORTED_MODULE_9__.Component))||_class);!function(){var e=__webpack_require__(1).default,t=__webpack_require__(1).leaveModule;e&&(e.register(ModelChooseModal,"ModelChooseModal","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/components/modals/ModelChooseModal/ModelChooseModal.js"),t(module))}()}).call(this,__webpack_require__(12)(module))},function(e,t,r){"use strict";(function(e){r.d(t,"a",function(){return l});var n=r(22),_=r(354),a=r(355),i=r(356),o=r(357),s=r(358);function l(e){var t=Object(_.createLogger)();return Object(n.d)(i.a,e,Object(n.a)(o.a,s.a,a.a,t))}!function(){var t=r(1).enterModule;t&&t(e)}(),function(){var t=r(1).default,n=r(1).leaveModule;t&&(t.register(l,"configureStore","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/store/configureStore.js"),n(e))}()}).call(this,r(12)(e))},function(e,t,r){(function(e){!function(t){"use strict";function r(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}function n(e,t){Object.defineProperty(this,"kind",{value:e,enumerable:!0}),t&&t.length&&Object.defineProperty(this,"path",{value:t,enumerable:!0})}function _(e,t,r){_.super_.call(this,"E",e),Object.defineProperty(this,"lhs",{value:t,enumerable:!0}),Object.defineProperty(this,"rhs",{value:r,enumerable:!0})}function a(e,t){a.super_.call(this,"N",e),Object.defineProperty(this,"rhs",{value:t,enumerable:!0})}function i(e,t){i.super_.call(this,"D",e),Object.defineProperty(this,"lhs",{value:t,enumerable:!0})}function o(e,t,r){o.super_.call(this,"A",e),Object.defineProperty(this,"index",{value:t,enumerable:!0}),Object.defineProperty(this,"item",{value:r,enumerable:!0})}function s(e,t,r){var n=e.slice((r||t)+1||e.length);return e.length=t<0?e.length+t:t,e.push.apply(e,n),e}function l(e){var t=void 0===e?"undefined":M(e);return"object"!==t?t:e===Math?"math":null===e?"null":Array.isArray(e)?"array":"[object Date]"===Object.prototype.toString.call(e)?"date":"function"==typeof e.toString&&/^\/.*\//.test(e.toString())?"regexp":"object"}function u(e,t,r,n,c,d,f){c=c||[],f=f||[];var p=c.slice(0);if(void 0!==d){if(n){if("function"==typeof n&&n(p,d))return;if("object"===(void 0===n?"undefined":M(n))){if(n.prefilter&&n.prefilter(p,d))return;if(n.normalize){var h=n.normalize(p,d,e,t);h&&(e=h[0],t=h[1])}}}p.push(d)}"regexp"===l(e)&&"regexp"===l(t)&&(e=e.toString(),t=t.toString());var E=void 0===e?"undefined":M(e),m=void 0===t?"undefined":M(t),g="undefined"!==E||f&&f[f.length-1].lhs&&f[f.length-1].lhs.hasOwnProperty(d),b="undefined"!==m||f&&f[f.length-1].rhs&&f[f.length-1].rhs.hasOwnProperty(d);if(!g&&b)r(new a(p,t));else if(!b&&g)r(new i(p,e));else if(l(e)!==l(t))r(new _(p,e,t));else if("date"===l(e)&&e-t!=0)r(new _(p,e,t));else if("object"===E&&null!==e&&null!==t)if(f.filter(function(t){return t.lhs===e}).length)e!==t&&r(new _(p,e,t));else{if(f.push({lhs:e,rhs:t}),Array.isArray(e)){var v;for(e.length,v=0;v=t.length?r(new o(p,v,new i(void 0,e[v]))):u(e[v],t[v],r,n,p,v,f);for(;v=0?(u(e[_],t[_],r,n,p,_,f),C=s(C,i)):u(e[_],void 0,r,n,p,_,f)}),C.forEach(function(e){u(void 0,t[e],r,n,p,e,f)})}f.length=f.length-1}else e!==t&&("number"===E&&isNaN(e)&&isNaN(t)||r(new _(p,e,t)))}function c(e,t,r,n){return n=n||[],u(e,t,function(e){e&&n.push(e)},r),n.length?n:void 0}function d(e,t,r){if(e&&t&&r&&r.kind){for(var n=e,_=-1,a=r.path?r.path.length-1:0;++_0&&void 0!==arguments[0]?arguments[0]:{},t=Object.assign({},y,e),r=t.logger,n=t.stateTransformer,_=t.errorTransformer,a=t.predicate,i=t.logErrors,o=t.diffPredicate;if(void 0===r)return function(){return function(e){return function(t){return e(t)}}};if(e.getState&&e.dispatch)return console.error("[redux-logger] redux-logger not installed. Make sure to pass logger instance as middleware:\n// Logger with default options\nimport { logger } from 'redux-logger'\nconst store = createStore(\n reducer,\n applyMiddleware(logger)\n)\n// Or you can create your own logger with custom options http://bit.ly/redux-logger-options\nimport createLogger from 'redux-logger'\nconst logger = createLogger({\n // ...options\n});\nconst store = createStore(\n reducer,\n applyMiddleware(logger)\n)\n"),function(){return function(e){return function(t){return e(t)}}};var s=[];return function(e){var r=e.getState;return function(e){return function(l){if("function"==typeof a&&!a(r,l))return e(l);var u={};s.push(u),u.started=O.now(),u.startedTime=new Date,u.prevState=n(r()),u.action=l;var c=void 0;if(i)try{c=e(l)}catch(e){u.error=_(e)}else c=e(l);u.took=O.now()-u.started,u.nextState=n(r());var d=t.diff&&"function"==typeof o?o(r,l):t.diff;if(h(s,Object.assign({},t,{diff:d})),s.length=0,u.error)throw u.error;return c}}}}var m,g,b=function(e,t){return function(e,t){return new Array(t+1).join(e)}("0",t-e.toString().length)+e},v=function(e){return b(e.getHours(),2)+":"+b(e.getMinutes(),2)+":"+b(e.getSeconds(),2)+"."+b(e.getMilliseconds(),3)},O="undefined"!=typeof performance&&null!==performance&&"function"==typeof performance.now?performance:Date,M="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},C=function(e){if(Array.isArray(e)){for(var t=0,r=Array(e.length);t0&&void 0!==arguments[0]?arguments[0]:{},t=e.dispatch,r=e.getState;return"function"==typeof t||"function"==typeof r?E()({dispatch:t,getState:r}):void console.error("\n[redux-logger v3] BREAKING CHANGE\n[redux-logger v3] Since 3.0.0 redux-logger exports by default logger with default settings.\n[redux-logger v3] Change\n[redux-logger v3] import createLogger from 'redux-logger'\n[redux-logger v3] to\n[redux-logger v3] import { createLogger } from 'redux-logger'\n")};t.defaults=y,t.createLogger=E,t.logger=w,t.default=w,Object.defineProperty(t,"__esModule",{value:!0})}(t)}).call(this,r(49))},function(e,t,r){"use strict";function n(e){return function(t){var r=t.dispatch,n=t.getState;return function(t){return function(_){return"function"==typeof _?_(r,n,e):t(_)}}}}var _=n();_.withExtraArgument=n,t.a=_},function(e,t,r){"use strict";(function(e){var n=r(22),_=r(112),a=r(25),i=r(40),o=r(7),s=r(24),l=r(82),u=r(90);!function(){var t=r(1).enterModule;t&&t(e)}();var c=Object(n.c)({models:a.l,content:i.d,nav:o.D,user:s.i,media:l.c,serverStatus:u.a,routing:_.routerReducer});t.a=c,function(){var t=r(1).default,n=r(1).leaveModule;t&&(t.register(c,"default","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/index.js"),n(e))}()}).call(this,r(12)(e))},function(e,t,r){"use strict";(function(e){r.d(t,"a",function(){return s});var n=r(24),_=r(25),a=r(82),i=r(40),o=r(7);!function(){var t=r(1).enterModule;t&&t(e)}();var s=function(e){return function(e){return function(t){e(t),t.type!=n.h&&t.type!=n.e||!t.authorized||e(Object(_.r)()),t.type==_.d&&e(Object(a.d)()),t.type==a.a&&e(Object(i.i)()),t.type==i.a&&e(Object(o.E)())}}};!function(){var t=r(1).default,n=r(1).leaveModule;t&&(t.register(s,"initialization","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/middleware/initialization.js"),n(e))}()}).call(this,r(12)(e))},function(e,t,r){"use strict";(function(e){r.d(t,"a",function(){return f});r(107),r(52),r(53),r(43),r(45);var n=r(16),_=r(112),a=r(24),i=r(25),o=r(15),s=r(7);!function(){var t=r(1).enterModule;t&&t(e)}();var l="/",u=null,c=function(e,t){var r=e.indexOf(t);if(-1==r)return null;var n=e.slice(r).slice(t.length),_=n.indexOf("/");return _>0&&(n=n.slice(0,_)),n},d=function(e){var t=!0,r=!1,n=void 0;try{for(var _,a=s.p[Symbol.iterator]();!(t=(_=a.next()).done);t=!0){var i=_.value;if(-1!=e.indexOf(i))return!0}}catch(e){r=!0,n=e}finally{try{t||null==a.return||a.return()}finally{if(r)throw n}}return!1},f=function(e){return function(t){return function(r){r.type!=a.h&&r.type!=a.e||r.authorized||d(l)||-1!=l.indexOf(s.y)||n.f.push("/".concat(s.y)),t(r);var f=function(){var r=l;if(l="/",-1!=r.indexOf(s.A)){var _=e.getState().models.currentSite,a=function(){if(_)n.f.replace("/".concat(s.A,"/").concat(s.z).concat(_.nameId));else{var t=e.getState().models.sites;t.length?n.f.replace("/".concat(s.A,"/").concat(s.z).concat(t[0].nameId)):r!="/".concat(s.A)&&n.f.replace("/".concat(s.A))}},u=c(r,s.z);if(u){if(!_||u!=_.nameId){var d=Object(o.z)(u);d?t(Object(i.t)(d)):a()}}else-1==r.indexOf(s.v)&&a()}};r.type==_.LOCATION_CHANGE&&(-1==(l=r.payload.pathname).indexOf(s.A)||u||(u=l),e.getState().nav.initEnded&&f()),r.type==s.a&&(u?(l=u,u=null,n.f.replace(l)):-1!=l.indexOf(s.A)||d(l)||n.f.replace("/".concat(s.A)),f()),r.type==a.f&&n.f.push("/".concat(s.y))}}};!function(){var t=r(1).default,n=r(1).leaveModule;t&&(t.register(l,"URL","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/middleware/routing.js"),t.register(u,"returnURL","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/middleware/routing.js"),t.register(c,"getNameId","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/middleware/routing.js"),t.register(d,"isEmailURL","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/middleware/routing.js"),t.register(f,"routing","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/middleware/routing.js"),n(e))}()}).call(this,r(12)(e))},function(module,__webpack_exports__,__webpack_require__){"use strict";(function(module){var core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(32),core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_0__),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(2),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(3),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(5),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(4),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(6),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5__),react__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(0),react__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_6__),svg_inline_react__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(18),svg_inline_react__WEBPACK_IMPORTED_MODULE_7___default=__webpack_require__.n(svg_inline_react__WEBPACK_IMPORTED_MODULE_7__),react_redux__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(28),react_helmet__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(34),react_helmet__WEBPACK_IMPORTED_MODULE_9___default=__webpack_require__.n(react_helmet__WEBPACK_IMPORTED_MODULE_9__),models_UserData__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(19),components_mainArea_common_NoRights__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(113);!function(){var e=__webpack_require__(1).enterModule;e&&e(module)}();var APIPage=function(_Component){function APIPage(){return _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this,APIPage),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this,_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(APIPage).apply(this,arguments))}return _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5___default()(APIPage,_Component),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default()(APIPage,[{key:"render",value:function(){return react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{className:"start-working"},react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement(svg_inline_react__WEBPACK_IMPORTED_MODULE_7___default.a,{className:"hammer",src:__webpack_require__(86)}),react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{className:"docs"},"Parse Server has extensive ",react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("a",{className:"docs-link",href:"http://parseplatform.github.io/docs/",target:"_blank"},"Documentation"),". Take a look!",react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{className:"hint"},"Our Interactive API Docs will be coming soon...")))}},{key:"__reactstandin__regenerateByEval",value:function __reactstandin__regenerateByEval(key,code){this[key]=eval(code)}}]),APIPage}(react__WEBPACK_IMPORTED_MODULE_6__.Component),APIPageContainer=function(_Component2){function APIPageContainer(){return _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this,APIPageContainer),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this,_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(APIPageContainer).apply(this,arguments))}return _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5___default()(APIPageContainer,_Component2),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default()(APIPageContainer,[{key:"render",value:function(){var e=this.props.models,t="Chisel",r=react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement(components_mainArea_common_NoRights__WEBPACK_IMPORTED_MODULE_11__.a,null),n=e.currentSite;n&&(t="API - Site: ".concat(n.name," - Chisel"),e.role!=models_UserData__WEBPACK_IMPORTED_MODULE_10__.d&&(r=react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement(APIPage,null)));return react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{className:"mainArea"},react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement(react_helmet__WEBPACK_IMPORTED_MODULE_9__.Helmet,null,react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("title",null,t)),r)}},{key:"__reactstandin__regenerateByEval",value:function __reactstandin__regenerateByEval(key,code){this[key]=eval(code)}}]),APIPageContainer}(react__WEBPACK_IMPORTED_MODULE_6__.Component);function mapStateToProps(e){return{models:e.models}}var _default=Object(react_redux__WEBPACK_IMPORTED_MODULE_8__.b)(mapStateToProps)(APIPageContainer);__webpack_exports__.a=_default,function(){var e=__webpack_require__(1).default,t=__webpack_require__(1).leaveModule;e&&(e.register(APIPage,"APIPage","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/containers/MainArea/API/APIPage.js"),e.register(APIPageContainer,"APIPageContainer","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/containers/MainArea/API/APIPage.js"),e.register(mapStateToProps,"mapStateToProps","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/containers/MainArea/API/APIPage.js"),e.register(_default,"default","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/containers/MainArea/API/APIPage.js"),t(module))}()}).call(this,__webpack_require__(12)(module))},function(module,__webpack_exports__,__webpack_require__){"use strict";(function(module){var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(2),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(3),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(5),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(4),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(6),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__),react__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(0),react__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_5__),redux__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(22),react_redux__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(28),react_css_modules__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(10),react_css_modules__WEBPACK_IMPORTED_MODULE_8___default=__webpack_require__.n(react_css_modules__WEBPACK_IMPORTED_MODULE_8__),react_helmet__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(34),react_helmet__WEBPACK_IMPORTED_MODULE_9___default=__webpack_require__.n(react_helmet__WEBPACK_IMPORTED_MODULE_9__),components_elements_ButtonControl_ButtonControl__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(23),ducks_user__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(24),utils_common__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(20),_Sign_sss__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(798),_Sign_sss__WEBPACK_IMPORTED_MODULE_13___default=__webpack_require__.n(_Sign_sss__WEBPACK_IMPORTED_MODULE_13__),_dec,_class;!function(){var e=__webpack_require__(1).enterModule;e&&e(module)}();var MODE_LOGIN="login",MODE_REG="register",MODE_REG_MAIL="register_mail",MODE_UNVERIF="unverified",MODE_FORGOT="forgot",MODE_FORGOT_MAIL="forgot_mail",MODE_SERVER_DOWN="server_down",Sign=(_dec=react_css_modules__WEBPACK_IMPORTED_MODULE_8___default()(_Sign_sss__WEBPACK_IMPORTED_MODULE_13___default.a,{allowMultiple:!0}),_dec(_class=function(_Component){function Sign(e){var t;_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this,Sign),(t=_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default()(this,_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default()(Sign).call(this,e))).state={mode:MODE_LOGIN,email:"",password:"",passwordConfirm:"",error:null,lock:!1},t.elmEmail=void 0,t.elmPassword=void 0,t.elmPasswordConfirm=void 0,t.onEmailChange=function(e){t.setState({email:e.target.value,error:null})},t.onPasswordChange=function(e){t.setState({password:e.target.value,error:null})},t.onPasswordConfirmChange=function(e){t.setState({passwordConfirm:e.target.value,error:null})},t.onLogin=function(e){return e.preventDefault(),!!t.getLoginAvail()&&((0,t.props.userActions.login)(t.state.email,t.state.password),t.setState({lock:!0}),!1)},t.onReg=function(e){return e.preventDefault(),!!t.getRegAvail()&&((0,t.props.userActions.register)(t.state.email,t.state.password),t.setState({lock:!0}),!1)},t.onRestore=function(e){return e.preventDefault(),!!t.getForgotAvail()&&((0,t.props.userActions.restorePassword)(t.state.email),t.setState({lock:!0}),!1)},t.onResend=function(){(0,t.props.userActions.resendVerEmail)(t.state.email),t.setState({mode:MODE_REG_MAIL})};var r=Object(utils_common__WEBPACK_IMPORTED_MODULE_12__.h)();return r.mode&&(t.state.mode=r.mode),r.email&&(t.state.email=r.email),e.userActions.resetStatus(),t}return _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default()(Sign,_Component),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(Sign,[{key:"componentWillReceiveProps",value:function(e){var t=e.user;if(e.serverStatus.problemB)this.setState({error:null,lock:!1,mode:MODE_SERVER_DOWN});else{var r=t.status;if(r){var n=this.state.mode;n==MODE_REG&&r==ducks_user__WEBPACK_IMPORTED_MODULE_11__.g?n=MODE_REG_MAIL:n==MODE_FORGOT&&r==ducks_user__WEBPACK_IMPORTED_MODULE_11__.g?n=MODE_FORGOT_MAIL:n==MODE_LOGIN&&r==ducks_user__WEBPACK_IMPORTED_MODULE_11__.b&&(n=MODE_UNVERIF),this.props.userActions.resetStatus(),this.setState({error:r,lock:!r,mode:n})}}}},{key:"getLoginAvail",value:function(){return!this.state.lock&&this.state.email&&this.state.password}},{key:"getRegAvail",value:function(){return!this.state.lock&&this.state.email&&this.state.password&&this.state.password==this.state.passwordConfirm}},{key:"getForgotAvail",value:function(){return!this.state.lock&&this.state.email}},{key:"setMode",value:function(e){this.setState({mode:e,error:null,password:"",passwordConfirm:""})}},{key:"render",value:function(){var e,t=this;switch(this.elmEmail=react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("input",{styleName:"input",type:"text",autoFocus:!0,value:this.state.email,placeholder:"Enter email",onChange:this.onEmailChange}),this.elmPassword=react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("input",{styleName:"input",type:"password",value:this.state.password,placeholder:"Enter password",onChange:this.onPasswordChange}),this.elmPasswordConfirm=react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("input",{styleName:"input",type:"password",value:this.state.passwordConfirm,placeholder:"Confirm password",onChange:this.onPasswordConfirmChange}),this.state.mode){case MODE_LOGIN:e=react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("form",{styleName:"form",onSubmit:this.onLogin},this.elmEmail,this.elmPassword,react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{styleName:"button"},react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement(components_elements_ButtonControl_ButtonControl__WEBPACK_IMPORTED_MODULE_10__.a,{color:"green",type:"submit",disabled:!this.getLoginAvail(),value:"Log in"})),react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{styleName:"errors"},this.state.error==ducks_user__WEBPACK_IMPORTED_MODULE_11__.d&&react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{styleName:"error"},"Wrong email or password!")),react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{styleName:"forgot",onClick:function(){return t.setMode(MODE_FORGOT)}},"Forgot password?"),react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{styleName:"forgot",onClick:function(){return t.setMode(MODE_REG)}},"Registration"));break;case MODE_REG:e=react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("form",{styleName:"form",onSubmit:this.onReg},this.elmEmail,this.elmPassword,this.elmPasswordConfirm,react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{styleName:"button"},react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement(components_elements_ButtonControl_ButtonControl__WEBPACK_IMPORTED_MODULE_10__.a,{color:"green",type:"submit",disabled:!this.getRegAvail(),value:"Register"})),react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{styleName:"errors"},this.state.error==ducks_user__WEBPACK_IMPORTED_MODULE_11__.c&&react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{styleName:"error"},"This email is already in use!")),react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{styleName:"forgot",onClick:function(){return t.setMode(MODE_LOGIN)}},"Log in"));break;case MODE_REG_MAIL:e=react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{styleName:"form"},react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{styleName:"description"},"We send to your email a link to confirm your registration. Please, open it."),react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{styleName:"forgot",onClick:function(){return t.setMode(MODE_LOGIN)}},"Return to log in"));break;case MODE_UNVERIF:e=react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{styleName:"form"},react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{styleName:"description"},react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("p",null,"It looks like your email is not verified yet."),react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("p",null,"Please check your inbox for an email from us.")),react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{styleName:"forgot",onClick:this.onResend},"Resend verification email"),react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{styleName:"forgot",onClick:function(){return t.setMode(MODE_LOGIN)}},"Return to log in"));break;case MODE_FORGOT:e=react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("form",{styleName:"form",onSubmit:this.onRestore},react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{styleName:"description"},"Please, type your email, and we will send you a link to reset your password."),this.elmEmail,react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{styleName:"button"},react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement(components_elements_ButtonControl_ButtonControl__WEBPACK_IMPORTED_MODULE_10__.a,{color:"green",type:"submit",disabled:!this.getForgotAvail(),value:"Restore password"})),react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{styleName:"errors"},this.state.error==ducks_user__WEBPACK_IMPORTED_MODULE_11__.a&&react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{styleName:"error"},"Wrong email!")),react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{styleName:"forgot",onClick:function(){return t.setMode(MODE_LOGIN)}},"Return to log in"));break;case MODE_FORGOT_MAIL:e=react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{styleName:"form"},react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{styleName:"description"},"The mail have sended. Please, check your inbox."),react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{styleName:"forgot",onClick:function(){return t.setMode(MODE_LOGIN)}},"Return to log in"));break;case MODE_SERVER_DOWN:e=react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{styleName:"form"},react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{styleName:"description"},"We are sorry, but we have some problems with our service. Please, come back later."),react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{styleName:"forgot",onClick:function(){return t.setMode(MODE_LOGIN)}},"Return to log in"))}return react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{className:"container"},react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement(react_helmet__WEBPACK_IMPORTED_MODULE_9__.Helmet,null,react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("title",null,"Sign in / Sign up - Chisel")),react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{styleName:"Sign"},react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{styleName:"logo"},react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("img",{src:__webpack_require__(139)})),react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{styleName:"title"},"Welcome to Chisel"),e))}},{key:"__reactstandin__regenerateByEval",value:function __reactstandin__regenerateByEval(key,code){this[key]=eval(code)}}]),Sign}(react__WEBPACK_IMPORTED_MODULE_5__.Component))||_class);function mapStateToProps(e){return{user:e.user,serverStatus:e.serverStatus}}function mapDispatchToProps(e){return{userActions:Object(redux__WEBPACK_IMPORTED_MODULE_6__.b)({login:ducks_user__WEBPACK_IMPORTED_MODULE_11__.k,register:ducks_user__WEBPACK_IMPORTED_MODULE_11__.m,restorePassword:ducks_user__WEBPACK_IMPORTED_MODULE_11__.p,resendVerEmail:ducks_user__WEBPACK_IMPORTED_MODULE_11__.n,resetStatus:ducks_user__WEBPACK_IMPORTED_MODULE_11__.o},e)}}var _default=Object(react_redux__WEBPACK_IMPORTED_MODULE_7__.b)(mapStateToProps,mapDispatchToProps)(Sign);__webpack_exports__.a=_default,function(){var e=__webpack_require__(1).default,t=__webpack_require__(1).leaveModule;e&&(e.register(MODE_LOGIN,"MODE_LOGIN","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/containers/Sign/Sign.js"),e.register(MODE_REG,"MODE_REG","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/containers/Sign/Sign.js"),e.register(MODE_REG_MAIL,"MODE_REG_MAIL","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/containers/Sign/Sign.js"),e.register(MODE_UNVERIF,"MODE_UNVERIF","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/containers/Sign/Sign.js"),e.register(MODE_FORGOT,"MODE_FORGOT","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/containers/Sign/Sign.js"),e.register(MODE_FORGOT_MAIL,"MODE_FORGOT_MAIL","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/containers/Sign/Sign.js"),e.register(MODE_SERVER_DOWN,"MODE_SERVER_DOWN","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/containers/Sign/Sign.js"),e.register(Sign,"Sign","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/containers/Sign/Sign.js"),e.register(mapStateToProps,"mapStateToProps","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/containers/Sign/Sign.js"),e.register(mapDispatchToProps,"mapDispatchToProps","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/containers/Sign/Sign.js"),e.register(_default,"default","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/containers/Sign/Sign.js"),t(module))}()}).call(this,__webpack_require__(12)(module))},function(module,__webpack_exports__,__webpack_require__){"use strict";(function(module){var core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(32),core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_0__),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(2),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(3),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(5),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(4),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(6),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5__),react__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(0),react__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_6__),react_redux__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(28),react_css_modules__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(10),react_css_modules__WEBPACK_IMPORTED_MODULE_8___default=__webpack_require__.n(react_css_modules__WEBPACK_IMPORTED_MODULE_8__),svg_inline_react__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(18),svg_inline_react__WEBPACK_IMPORTED_MODULE_9___default=__webpack_require__.n(svg_inline_react__WEBPACK_IMPORTED_MODULE_9__),react_helmet__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(34),react_helmet__WEBPACK_IMPORTED_MODULE_10___default=__webpack_require__.n(react_helmet__WEBPACK_IMPORTED_MODULE_10__),containers_Header_Header__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(362),containers_Sidebar_Sidebar__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(364),ducks_nav__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(7),_MainArea_sss__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(810),_MainArea_sss__WEBPACK_IMPORTED_MODULE_14___default=__webpack_require__.n(_MainArea_sss__WEBPACK_IMPORTED_MODULE_14__),_dec,_class;!function(){var e=__webpack_require__(1).enterModule;e&&e(module)}();var MainArea=(_dec=react_css_modules__WEBPACK_IMPORTED_MODULE_8___default()(_MainArea_sss__WEBPACK_IMPORTED_MODULE_14___default.a,{allowMultiple:!0}),_dec(_class=function(_Component){function MainArea(){var e,t;_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this,MainArea);for(var r=arguments.length,n=new Array(r),_=0;_1048576){t.setState({error:"Your file's size exceeds a limit of 1 MB."})}else{var n=new parse__WEBPACK_IMPORTED_MODULE_8__.Parse.File(Object(utils_common__WEBPACK_IMPORTED_MODULE_14__.d)(r.name),r,r.type);n.save().then(function(){t.setState({dirty:!0,icon:n})})}else{t.setState({error:"You should upload an image"})}},t.onSave=function(e){e.preventDefault(),t.state.dirty&&!t.state.error&&t.validate()&&(t.setState({dirty:!1}),t.site.name=t.state.name,t.site.domain=t.state.domain,t.site.webhook=t.state.webhook,t.site.icon=t.state.icon,t.props.updateSite(t.site))},t.onDelete=function(){var e=t.props,r=e.showAlert,n=e.deleteSite;r({type:components_modals_AlertModal_AlertModal__WEBPACK_IMPORTED_MODULE_13__.b,title:"Deleting ".concat(t.state.name),description:"You are trying to remove the site with all content. This action cannot be undone. Are you sure?

Please, type site name to confirm:",confirmString:t.site.name,onConfirm:function(){return n(t.site)}})},t.site=e.site,t.state.name=t.site.name,t.state.domain=t.site.domain,t.state.webhook=t.site.webhook,t.state.icon=t.site.icon,t}return _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5___default()(Settings,_Component),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default()(Settings,[{key:"componentWillReceiveProps",value:function(e){this.site=e.site,this.setState({name:this.site.name,domain:this.site.domain,webhook:this.site.webhook})}},{key:"validate",value:function(){if(!this.state.name)return this.setState({error:ERROR_BLANK_NAME}),!1;var e=Object(utils_data__WEBPACK_IMPORTED_MODULE_12__.m)(this.state.domain,this.site);return e==utils_data__WEBPACK_IMPORTED_MODULE_12__.e?(this.setState({error:ERROR_URL_SYNTAX}),!1):e==utils_data__WEBPACK_IMPORTED_MODULE_12__.d?(this.setState({error:ERROR_URL_EXIST}),!1):Object(utils_common__WEBPACK_IMPORTED_MODULE_14__.c)(this.state.webhook)?Object(utils_data__WEBPACK_IMPORTED_MODULE_12__.n)(this.state.name,this.site)?(this.setState({error:ERROR_NAME_EXIST}),!1):(this.setState({error:null}),!0):(this.setState({error:ERROR_WEBHOOK_SYNTAX}),!1)}},{key:"getIcon",value:function(){var e=this.props.isEditable,t="icon-button";e||(t+=" icon-button-disabled");var r=null;return this.state.icon&&(r=react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("img",{styleName:"icon-img",src:this.state.icon.url()})),react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"field icon"},react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"field-title"},"Site icon"),r,react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{type:"file",styleName:t+" icon-upload"},"Upload",react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("input",{styleName:"icon-hidden",type:"file",disabled:!e,onChange:this.onChangeIcon})))}},{key:"render",value:function(){var e=this.props.isEditable;return react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement(components_elements_ContainerComponent_ContainerComponent__WEBPACK_IMPORTED_MODULE_11__.a,{title:"Site settings"},react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("form",{styleName:"content",onSubmit:this.onSave},react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"field"},react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"field-title"},"Site name"),react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"input-wrapper"},react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement(components_elements_InputControl_InputControl__WEBPACK_IMPORTED_MODULE_9__.a,{type:"big",value:this.state.name,readOnly:!e,onChange:this.onChangeName}))),react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"field"},react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"field-title"},"Site domain URL"),react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"input-wrapper"},react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement(components_elements_InputControl_InputControl__WEBPACK_IMPORTED_MODULE_9__.a,{type:"big",value:this.state.domain,readOnly:!e,onChange:this.onChangeDomain}))),react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"field"},react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"field-title"},"Webhook URL"),react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"input-wrapper"},react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement(components_elements_InputControl_InputControl__WEBPACK_IMPORTED_MODULE_9__.a,{type:"big",value:this.state.webhook,readOnly:!e,onChange:this.onChangeWebhook}))),react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"field"},react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"field-title"},"Site ID"),react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"input-wrapper"},react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement(components_elements_InputControl_InputControl__WEBPACK_IMPORTED_MODULE_9__.a,{type:"big",value:this.site.origin.id,readOnly:!0}))),this.getIcon(),e&&react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"buttons-wrapper"},react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement(components_elements_ButtonControl_ButtonControl__WEBPACK_IMPORTED_MODULE_10__.a,{color:"green",type:"submit",disabled:!this.state.dirty||this.state.error,value:"Save changes"})),e&&react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"buttons-wrapper"},react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement(components_elements_ButtonControl_ButtonControl__WEBPACK_IMPORTED_MODULE_10__.a,{color:"red",value:"Delete site",onClick:this.onDelete})),this.state.error&&react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"field-error"},this.state.error)))}},{key:"__reactstandin__regenerateByEval",value:function __reactstandin__regenerateByEval(key,code){this[key]=eval(code)}}]),Settings}(react__WEBPACK_IMPORTED_MODULE_6__.Component))||_class);!function(){var e=__webpack_require__(1).default,t=__webpack_require__(1).leaveModule;e&&(e.register(ERROR_BLANK_NAME,"ERROR_BLANK_NAME","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/components/mainArea/settings/Settings.js"),e.register(ERROR_URL_SYNTAX,"ERROR_URL_SYNTAX","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/components/mainArea/settings/Settings.js"),e.register(ERROR_WEBHOOK_SYNTAX,"ERROR_WEBHOOK_SYNTAX","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/components/mainArea/settings/Settings.js"),e.register(ERROR_NAME_EXIST,"ERROR_NAME_EXIST","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/components/mainArea/settings/Settings.js"),e.register(ERROR_URL_EXIST,"ERROR_URL_EXIST","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/components/mainArea/settings/Settings.js"),e.register(Settings,"Settings","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/components/mainArea/settings/Settings.js"),t(module))}()}).call(this,__webpack_require__(12)(module))},function(module,__webpack_exports__,__webpack_require__){"use strict";(function(module){var core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(32),core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_0__),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(2),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(3),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(5),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(4),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(6),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5__),react__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(0),react__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_6__),redux__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(22),react_redux__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(28),react_helmet__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(34),react_helmet__WEBPACK_IMPORTED_MODULE_9___default=__webpack_require__.n(react_helmet__WEBPACK_IMPORTED_MODULE_9__),components_mainArea_sharing_Sharing__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(370),models_UserData__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(19),ducks_models__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(25),ducks_nav__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(7);!function(){var e=__webpack_require__(1).enterModule;e&&e(module)}();var SharingContainer=function(_Component){function SharingContainer(){return _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this,SharingContainer),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this,_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(SharingContainer).apply(this,arguments))}return _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5___default()(SharingContainer,_Component),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default()(SharingContainer,[{key:"render",value:function(){var e=this.props,t=e.models,r=e.nav,n=e.user,_=this.props.modelsActions,a=_.addCollaboration,i=_.addInviteCollaboration,o=_.updateCollaboration,s=_.deleteCollaboration,l=_.deleteSelfCollaboration,u=this.props.navActions.showAlert,c=t.currentSite;if(!c)return null;var d="Sharing - Site: ".concat(c.name," - Chisel");return react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{className:"mainArea"},react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement(react_helmet__WEBPACK_IMPORTED_MODULE_9__.Helmet,null,react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("title",null,d)),",",react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement(components_mainArea_sharing_Sharing__WEBPACK_IMPORTED_MODULE_10__.a,{collaborations:c.collaborations,owner:c.owner,user:n.userData,addCollaboration:a,addInviteCollaboration:i,updateCollaboration:o,deleteCollaboration:s,deleteSelfCollaboration:l,showAlert:u,alertShowing:r.alertShowing,isEditable:t.role==models_UserData__WEBPACK_IMPORTED_MODULE_11__.e||t.role==models_UserData__WEBPACK_IMPORTED_MODULE_11__.b}))}},{key:"__reactstandin__regenerateByEval",value:function __reactstandin__regenerateByEval(key,code){this[key]=eval(code)}}]),SharingContainer}(react__WEBPACK_IMPORTED_MODULE_6__.Component);function mapStateToProps(e){return{models:e.models,nav:e.nav,user:e.user}}function mapDispatchToProps(e){return{modelsActions:Object(redux__WEBPACK_IMPORTED_MODULE_7__.b)({addCollaboration:ducks_models__WEBPACK_IMPORTED_MODULE_12__.g,addInviteCollaboration:ducks_models__WEBPACK_IMPORTED_MODULE_12__.i,updateCollaboration:ducks_models__WEBPACK_IMPORTED_MODULE_12__.u,deleteCollaboration:ducks_models__WEBPACK_IMPORTED_MODULE_12__.m,deleteSelfCollaboration:ducks_models__WEBPACK_IMPORTED_MODULE_12__.p},e),navActions:Object(redux__WEBPACK_IMPORTED_MODULE_7__.b)({showAlert:ducks_nav__WEBPACK_IMPORTED_MODULE_13__.G},e)}}var _default=Object(react_redux__WEBPACK_IMPORTED_MODULE_8__.b)(mapStateToProps,mapDispatchToProps)(SharingContainer);__webpack_exports__.a=_default,function(){var e=__webpack_require__(1).default,t=__webpack_require__(1).leaveModule;e&&(e.register(SharingContainer,"SharingContainer","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/containers/MainArea/Sharing/SharingContainer.js"),e.register(mapStateToProps,"mapStateToProps","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/containers/MainArea/Sharing/SharingContainer.js"),e.register(mapDispatchToProps,"mapDispatchToProps","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/containers/MainArea/Sharing/SharingContainer.js"),e.register(_default,"default","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/containers/MainArea/Sharing/SharingContainer.js"),t(module))}()}).call(this,__webpack_require__(12)(module))},function(module,__webpack_exports__,__webpack_require__){"use strict";(function(module){__webpack_require__.d(__webpack_exports__,"a",function(){return Sharing});var core_js_modules_es6_array_map__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(58),core_js_modules_es6_array_map__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(core_js_modules_es6_array_map__WEBPACK_IMPORTED_MODULE_0__),core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(32),core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_1__),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(2),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2__),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(3),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3__),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(5),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(4),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(6),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_6__),react__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(0),react__WEBPACK_IMPORTED_MODULE_7___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_7__),react_css_modules__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(10),react_css_modules__WEBPACK_IMPORTED_MODULE_8___default=__webpack_require__.n(react_css_modules__WEBPACK_IMPORTED_MODULE_8__),svg_inline_react__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(18),svg_inline_react__WEBPACK_IMPORTED_MODULE_9___default=__webpack_require__.n(svg_inline_react__WEBPACK_IMPORTED_MODULE_9__),react_gravatar__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(145),react_gravatar__WEBPACK_IMPORTED_MODULE_10___default=__webpack_require__.n(react_gravatar__WEBPACK_IMPORTED_MODULE_10__),parse__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(14),parse__WEBPACK_IMPORTED_MODULE_11___default=__webpack_require__.n(parse__WEBPACK_IMPORTED_MODULE_11__),react_flip_move__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(114),models_UserData__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(19),utils_data__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(15),components_elements_ContainerComponent_ContainerComponent__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(56),components_elements_InputControl_InputControl__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(17),components_modals_AlertModal_AlertModal__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__(38),_Sharing_sss__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__(816),_Sharing_sss__WEBPACK_IMPORTED_MODULE_18___default=__webpack_require__.n(_Sharing_sss__WEBPACK_IMPORTED_MODULE_18__),_dec,_class;!function(){var e=__webpack_require__(1).enterModule;e&&e(module)}();var Sharing=(_dec=react_css_modules__WEBPACK_IMPORTED_MODULE_8___default()(_Sharing_sss__WEBPACK_IMPORTED_MODULE_18___default.a,{allowMultiple:!0}),_dec(_class=function(_Component){function Sharing(e){var t;return _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2___default()(this,Sharing),(t=_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default()(this,_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default()(Sharing).call(this,e))).state={collaborations:[],input:""},t.activeInput=null,t.returnFocus=!1,t.onInputChange=function(e){var r=e.target.value;t.setState({input:r})},t.onKeyDown=function(e){t.props.alertShowing||(13==e.keyCode?t.onAddCollaboration():27==e.keyCode&&t.setState({input:""}))},t.onAddCollaboration=function(e){var r=t.state.input;r&&Object(utils_data__WEBPACK_IMPORTED_MODULE_14__.A)(r).then(function(e){switch(Object(utils_data__WEBPACK_IMPORTED_MODULE_14__.h)(e)){case utils_data__WEBPACK_IMPORTED_MODULE_14__.a:t.props.addCollaboration(e,r),t.setState({input:""});break;case utils_data__WEBPACK_IMPORTED_MODULE_14__.c:t.props.showAlert({title:"Error",description:"You are trying to add yourself!",buttonText:"OK"}),t.returnFocus=!0;break;case utils_data__WEBPACK_IMPORTED_MODULE_14__.b:t.props.showAlert({title:"Error",description:"This user is also exist",buttonText:"OK"}),t.returnFocus=!0}}).catch(function(e){t.props.showAlert({type:components_modals_AlertModal_AlertModal__WEBPACK_IMPORTED_MODULE_17__.b,title:"Not registered user",description:"The user ".concat(r," is not registered at Chisel. Would you like to send an invitation to them?"),onConfirm:function(){return t.props.addInviteCollaboration(r)}}),t.returnFocus=!0,t.setState({input:""})})},t.state.collaborations=e.collaborations,t}return _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_6___default()(Sharing,_Component),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3___default()(Sharing,[{key:"componentWillReceiveProps",value:function(e){var t=this;!e.alertShowing&&this.activeInput&&this.returnFocus&&(this.returnFocus=!1,setTimeout(function(){return t.activeInput.focus()},1)),e.collaborations!=this.state.collaborations&&this.setState({collaborations:e.collaborations,input:""})}},{key:"onRoleClick",value:function(e,t){e.stopPropagation();var r=this.state.collaborations,n=r[t];n.role==models_UserData__WEBPACK_IMPORTED_MODULE_13__.b?n.role=models_UserData__WEBPACK_IMPORTED_MODULE_13__.d:n.role==models_UserData__WEBPACK_IMPORTED_MODULE_13__.d?n.role=models_UserData__WEBPACK_IMPORTED_MODULE_13__.c:n.role==models_UserData__WEBPACK_IMPORTED_MODULE_13__.c&&(n.role=models_UserData__WEBPACK_IMPORTED_MODULE_13__.b),this.setState({collaborations:r}),this.props.updateCollaboration(n)}},{key:"onDeleteClick",value:function(e,t){e.stopPropagation();var r="This action cannot be undone. Are you sure?",n=this.props.deleteCollaboration,_="",a=t.email;t.user&&t.user.origin.id==parse__WEBPACK_IMPORTED_MODULE_11__.Parse.User.current().id&&(r="You are trying to stop managing this site. ".concat(r,"

Please, type site name to confirm:"),n=this.props.deleteSelfCollaboration,_=t.site.name,a="self"),this.props.showAlert({type:components_modals_AlertModal_AlertModal__WEBPACK_IMPORTED_MODULE_17__.b,title:"Deleting ".concat(a," from collaborators"),description:r,confirmString:_,onConfirm:function(){return n(t)}}),this.returnFocus=!0}},{key:"render",value:function(){var e=this,t=this.props,r=t.owner,n=t.isEditable,_=this.props.user;return react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{styleName:"wrapper"},react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement(components_elements_ContainerComponent_ContainerComponent__WEBPACK_IMPORTED_MODULE_15__.a,{title:"Collaborators"},react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{styleName:"sharing-wrapper"},react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{styleName:"list"},react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{styleName:"list-item"},react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{styleName:"avatar"},react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement(react_gravatar__WEBPACK_IMPORTED_MODULE_10___default.a,{email:r.email,styleName:"gravatar"})),react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{styleName:"type"},react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{styleName:"name"},r.firstName," ",r.lastName),react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{styleName:"email"},r.email)),react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{styleName:"role"},"OWNER")),react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement(react_flip_move__WEBPACK_IMPORTED_MODULE_12__.a,{duration:500,enterAnimation:"fade",leaveAnimation:"fade",maintainContainerHeight:!0,easing:"ease-out"},this.state.collaborations.map(function(t,r){var a,i=t.user,o=n,s=n,l=null;return i?(a="list-item",i.origin.id==_.origin.id&&(o=!0,s=!1),l=i.firstName||i.lastName?react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{styleName:"type"},react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{styleName:"name"},i.firstName," ",i.lastName," "),react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{styleName:"email"},i.email)):react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{styleName:"type-one-str"},react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{styleName:"email"},t.email))):(a="list-item list-item-pending",l=react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{styleName:"type-one-str"},react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{styleName:"email"},t.email," (pending)"))),react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{styleName:a,key:t.email},react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{styleName:"avatar"},react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement(react_gravatar__WEBPACK_IMPORTED_MODULE_10___default.a,{email:t.email,styleName:"gravatar"})),l,s?react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{styleName:"role editable",onClick:function(t){return e.onRoleClick(t,r)}},t.role):react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{styleName:"role"},t.role),o&&react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{styleName:"hidden-controls"},react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{styleName:"hidden-remove",onClick:function(r){return e.onDeleteClick(r,t)}},react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement(svg_inline_react__WEBPACK_IMPORTED_MODULE_9___default.a,{styleName:"cross",src:__webpack_require__(77)}))))}),n&&react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{styleName:"input-wrapper",key:"input!"},react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement(components_elements_InputControl_InputControl__WEBPACK_IMPORTED_MODULE_16__.a,{placeholder:"Enter one or more emails",value:this.state.input,autoFocus:!0,onChange:this.onInputChange,onKeyDown:this.onKeyDown,icon:"users",onIconClick:this.onAddCollaboration,DOMRef:function(t){return e.activeInput=t}}),react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{styleName:"footer"},"If the recipient doesn’t yet have a Chisel account, they will be sent an invitation to join.")))))),!1)}},{key:"__reactstandin__regenerateByEval",value:function __reactstandin__regenerateByEval(key,code){this[key]=eval(code)}}]),Sharing}(react__WEBPACK_IMPORTED_MODULE_7__.Component))||_class);!function(){var e=__webpack_require__(1).default,t=__webpack_require__(1).leaveModule;e&&(e.register(Sharing,"Sharing","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/components/mainArea/sharing/Sharing.js"),t(module))}()}).call(this,__webpack_require__(12)(module))},function(module,__webpack_exports__,__webpack_require__){"use strict";(function(module){var core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(32),core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_0__),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(2),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(3),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(5),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(4),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(6),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5__),react__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(0),react__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_6__),redux__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(22),react_redux__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(28),react_router__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(16),react_helmet__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(34),react_helmet__WEBPACK_IMPORTED_MODULE_10___default=__webpack_require__.n(react_helmet__WEBPACK_IMPORTED_MODULE_10__),components_mainArea_models_ModelsList_ModelsList__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(372),ducks_models__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(25),ducks_nav__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(7),models_UserData__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(19),components_mainArea_common_NoRights__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(113);!function(){var e=__webpack_require__(1).enterModule;e&&e(module)}();var ModelsListContainer=function(_Component){function ModelsListContainer(){var e,t;_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this,ModelsListContainer);for(var r=arguments.length,n=new Array(r),_=0;_".concat(r.name,"
model"),type:components_modals_AlertModal_AlertModal__WEBPACK_IMPORTED_MODULE_15__.a,description:"There are ".concat(_," content items using the model. You should delete them first.")}:{title:"Deleting ".concat(r.name," model"),type:components_modals_AlertModal_AlertModal__WEBPACK_IMPORTED_MODULE_15__.b,description:"Are you sure?",onConfirm:function(){return t.props.deleteModel(r)}},t.props.showAlert(n),t.returnFocus=!0},t.site=e.site,t.state.models=t.site.models.slice(),t}return _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_6___default()(ModelsList,_Component),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3___default()(ModelsList,[{key:"componentWillReceiveProps",value:function(e){var t=this;!e.alertShowing&&this.returnFocus&&this.activeInput&&(this.returnFocus=!1,setTimeout(function(){t.activeInput.focus(),t.props.keepScroll()},1)),e.site!=this.site&&(this.site=e.site,this.animate=!1,this.setState({modelName:""})),this.setState({models:this.site.models.slice()})}},{key:"componentDidUpdate",value:function(){this.animate=!0}},{key:"render",value:function(){var e=this,t=this.props.isEditable;return react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement(components_elements_ContainerComponent_ContainerComponent__WEBPACK_IMPORTED_MODULE_13__.a,{title:"Models",backgroundOffset:110},react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{styleName:"content"},react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{styleName:"list"},react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement(react_flip_move__WEBPACK_IMPORTED_MODULE_10__.a,{duration:250,enterAnimation:"accordionVertical",leaveAnimation:"accordionVertical",maintainContainerHeight:!0,disableAllAnimations:!this.animate,easing:"ease-out"},this.state.models.length>0&&react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{styleName:"list-item list-header",key:"header!"},react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{styleName:"colorLabel"}),react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{styleName:"type"}),react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{styleName:"fields"},"FIELDS"),react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{styleName:"updated"},"UPDATED")),this.state.models.map(function(r){var n=r.origin.updatedAt;n||(n=new Date);var _=Object(utils_common__WEBPACK_IMPORTED_MODULE_12__.g)(n),a={background:r.color};return react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{styleName:"list-item",key:r.nameId,onClick:function(){return e.onModelClick(r)}},react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{styleName:"colorLabel",style:a}),react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{styleName:"type"},react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{styleName:"name"},r.name),react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{styleName:"description"},r.description)),react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{styleName:"fields"},r.fields.length),react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{styleName:"updated"},_),t&&react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{styleName:"hidden-controls"},react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{styleName:"hidden-remove",onClick:function(t){return e.onRemoveClick(t,r)}},react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement(svg_inline_react__WEBPACK_IMPORTED_MODULE_9___default.a,{styleName:"cross",src:__webpack_require__(77)}))))}),t&&react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{styleName:"input-wrapper",key:"input!"},react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{styleName:"input-wrapper-back"}),react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{styleName:"input"},react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement(components_elements_InputControl_InputControl__WEBPACK_IMPORTED_MODULE_14__.a,{value:this.state.modelName,placeholder:"Create a new Content Type",onChange:this.onModelNameChange,onKeyDown:this.onKeyDown,DOMRef:function(t){return e.activeInput=t},icon:"plus",autoFocus:!0,onIconClick:this.onAddModel})))))))}},{key:"__reactstandin__regenerateByEval",value:function __reactstandin__regenerateByEval(key,code){this[key]=eval(code)}}]),ModelsList}(react__WEBPACK_IMPORTED_MODULE_7__.Component))||_class);!function(){var e=__webpack_require__(1).default,t=__webpack_require__(1).leaveModule;e&&(e.register(ModelsList,"ModelsList","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/components/mainArea/models/ModelsList/ModelsList.js"),t(module))}()}).call(this,__webpack_require__(12)(module))},function(module,__webpack_exports__,__webpack_require__){"use strict";(function(module){var core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(32),core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_0__),core_js_modules_es6_array_index_of__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(45),core_js_modules_es6_array_index_of__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(core_js_modules_es6_array_index_of__WEBPACK_IMPORTED_MODULE_1__),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(2),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2__),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(3),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3__),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(5),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(4),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(6),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_6__),react__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(0),react__WEBPACK_IMPORTED_MODULE_7___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_7__),redux__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(22),react_redux__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(28),react_router__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(16),react_helmet__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(34),react_helmet__WEBPACK_IMPORTED_MODULE_11___default=__webpack_require__.n(react_helmet__WEBPACK_IMPORTED_MODULE_11__),components_mainArea_models_Model_Model__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(374),ducks_models__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(25),ducks_nav__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(7),utils_data__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(15),models_UserData__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(19),components_mainArea_common_NoRights__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__(113);!function(){var e=__webpack_require__(1).enterModule;e&&e(module)}();var ModelContainer=function(_Component){function ModelContainer(e){var t;_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2___default()(this,ModelContainer),(t=_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default()(this,_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default()(ModelContainer).call(this,e))).model=null,t.mainArea=void 0,t.lastScroll=0,t.onScroll=function(){t.lastScroll=t.mainArea.scrollTop},t.keepScroll=function(){t.mainArea.scrollTop=t.lastScroll};var r=e.params.model;if(0!=r.indexOf(ducks_nav__WEBPACK_IMPORTED_MODULE_14__.t))return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default()(t);r=r.slice(ducks_nav__WEBPACK_IMPORTED_MODULE_14__.t.length);var n=e.modelsActions.setCurrentModel,_=e.models;if(t.model=_.currentModel,!t.model||r!=t.model.nameId){var a=Object(utils_data__WEBPACK_IMPORTED_MODULE_15__.v)(r);a&&(t.model=a,n(a))}return t}return _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_6___default()(ModelContainer,_Component),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3___default()(ModelContainer,[{key:"componentDidMount",value:function(){this.mainArea.scrollTop=0,this.mainArea.addEventListener("scroll",this.onScroll)}},{key:"componentWillUnmount",value:function(){this.mainArea.removeEventListener("scroll",this.onScroll)}},{key:"render",value:function(){var e=this,t=this.props,r=t.models,n=t.nav,_=this.props.modelsActions,a=_.updateModel,i=_.updateField,o=_.deleteField,s=this.props.navActions,l=s.showAlert,u=s.showModal,c="Chisel",d=react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement(components_mainArea_common_NoRights__WEBPACK_IMPORTED_MODULE_17__.a,null),f=r.currentSite,p=this.model;if(f&&p&&(r.role==models_UserData__WEBPACK_IMPORTED_MODULE_16__.b||r.role==models_UserData__WEBPACK_IMPORTED_MODULE_16__.e)){c="Model: ".concat(p.name," - Site: ").concat(f.name," - Chisel");d=react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement(components_mainArea_models_Model_Model__WEBPACK_IMPORTED_MODULE_12__.a,{model:p,onClose:function(){return react_router__WEBPACK_IMPORTED_MODULE_10__.f.push("/".concat(ducks_nav__WEBPACK_IMPORTED_MODULE_14__.A,"/").concat(ducks_nav__WEBPACK_IMPORTED_MODULE_14__.z).concat(f.nameId,"/").concat(ducks_nav__WEBPACK_IMPORTED_MODULE_14__.u))},keepScroll:this.keepScroll,updateModel:a,updateField:i,deleteField:o,showAlert:l,showModal:u,modalShowing:n.modalShowing,alertShowing:n.alertShowing,isEditable:!0})}return react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{className:"mainArea",ref:function(t){return e.mainArea=t}},react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement(react_helmet__WEBPACK_IMPORTED_MODULE_11__.Helmet,null,react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("title",null,c)),d)}},{key:"__reactstandin__regenerateByEval",value:function __reactstandin__regenerateByEval(key,code){this[key]=eval(code)}}]),ModelContainer}(react__WEBPACK_IMPORTED_MODULE_7__.Component);function mapStateToProps(e){return{models:e.models,nav:e.nav}}function mapDispatchToProps(e){return{modelsActions:Object(redux__WEBPACK_IMPORTED_MODULE_8__.b)({setCurrentModel:ducks_models__WEBPACK_IMPORTED_MODULE_13__.s,updateModel:ducks_models__WEBPACK_IMPORTED_MODULE_13__.w,updateField:ducks_models__WEBPACK_IMPORTED_MODULE_13__.v,deleteField:ducks_models__WEBPACK_IMPORTED_MODULE_13__.n},e),navActions:Object(redux__WEBPACK_IMPORTED_MODULE_8__.b)({showAlert:ducks_nav__WEBPACK_IMPORTED_MODULE_14__.G,showModal:ducks_nav__WEBPACK_IMPORTED_MODULE_14__.H},e)}}var _default=Object(react_redux__WEBPACK_IMPORTED_MODULE_9__.b)(mapStateToProps,mapDispatchToProps)(ModelContainer);__webpack_exports__.a=_default,function(){var e=__webpack_require__(1).default,t=__webpack_require__(1).leaveModule;e&&(e.register(ModelContainer,"ModelContainer","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/containers/MainArea/Models/Model/ModelContainer.js"),e.register(mapStateToProps,"mapStateToProps","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/containers/MainArea/Models/Model/ModelContainer.js"),e.register(mapDispatchToProps,"mapDispatchToProps","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/containers/MainArea/Models/Model/ModelContainer.js"),e.register(_default,"default","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/containers/MainArea/Models/Model/ModelContainer.js"),t(module))}()}).call(this,__webpack_require__(12)(module))},function(module,__webpack_exports__,__webpack_require__){"use strict";(function(module){__webpack_require__.d(__webpack_exports__,"a",function(){return Model});var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(2),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(3),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(5),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(4),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(6),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__),core_js_modules_es6_array_map__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(58),core_js_modules_es6_array_map__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(core_js_modules_es6_array_map__WEBPACK_IMPORTED_MODULE_5__),core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(32),core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_6__),react__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(0),react__WEBPACK_IMPORTED_MODULE_7___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_7__),react_css_modules__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(10),react_css_modules__WEBPACK_IMPORTED_MODULE_8___default=__webpack_require__.n(react_css_modules__WEBPACK_IMPORTED_MODULE_8__),svg_inline_react__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(18),svg_inline_react__WEBPACK_IMPORTED_MODULE_9___default=__webpack_require__.n(svg_inline_react__WEBPACK_IMPORTED_MODULE_9__),react_sortable_hoc__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(146),react_sortable_hoc__WEBPACK_IMPORTED_MODULE_10___default=__webpack_require__.n(react_sortable_hoc__WEBPACK_IMPORTED_MODULE_10__),components_elements_ContainerComponent_ContainerComponent__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(56),components_elements_InputControl_InputControl__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(17),components_elements_EditableTitleControl_EditableTitleControl__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(116),components_elements_JSONView_JSONView__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(375),utils_common__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(20),utils_data__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(15),ducks_nav__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__(7),components_modals_AlertModal_AlertModal__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__(38),models_ModelData__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__(8),_Model_sss__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__(824),_Model_sss__WEBPACK_IMPORTED_MODULE_20___default=__webpack_require__.n(_Model_sss__WEBPACK_IMPORTED_MODULE_20__),_dec,_class;!function(){var e=__webpack_require__(1).enterModule;e&&e(module)}();var DragHandle=Object(react_sortable_hoc__WEBPACK_IMPORTED_MODULE_10__.SortableHandle)(function(e){var t=e.color;return react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{className:_Model_sss__WEBPACK_IMPORTED_MODULE_20___default.a.listItemColor,style:{background:t}})}),SortableItem=Object(react_sortable_hoc__WEBPACK_IMPORTED_MODULE_10__.SortableElement)(function(e){var t=e.field,r=e.isEditable,n=e.onFieldClick,_=e.onRemoveClick,a=[_Model_sss__WEBPACK_IMPORTED_MODULE_20___default.a.listItem];return r&&a.push(_Model_sss__WEBPACK_IMPORTED_MODULE_20___default.a.listItemPointer),t.isDisabled&&a.push(_Model_sss__WEBPACK_IMPORTED_MODULE_20___default.a.listItemDisabled),react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{className:a.join(" "),onClick:function(){return n(t)}},react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement(DragHandle,{color:t.color}),react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{className:_Model_sss__WEBPACK_IMPORTED_MODULE_20___default.a.listItemText},react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{className:_Model_sss__WEBPACK_IMPORTED_MODULE_20___default.a.listItemName},t.name),react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{className:_Model_sss__WEBPACK_IMPORTED_MODULE_20___default.a.listItemType},t.type," — ",t.appearance)),t.isTitle&&react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{className:_Model_sss__WEBPACK_IMPORTED_MODULE_20___default.a.titleButton},"TITLE"),r&&react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{className:_Model_sss__WEBPACK_IMPORTED_MODULE_20___default.a.hiddenControls},react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{className:_Model_sss__WEBPACK_IMPORTED_MODULE_20___default.a.hiddenRemove,onClick:function(e){return _(e,t)}},react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement(svg_inline_react__WEBPACK_IMPORTED_MODULE_9___default.a,{className:_Model_sss__WEBPACK_IMPORTED_MODULE_20___default.a.cross,src:__webpack_require__(77)}))))}),SortableList=Object(react_sortable_hoc__WEBPACK_IMPORTED_MODULE_10__.SortableContainer)(function(e){var t=e.fields,r=e.isEditable,n=e.onFieldClick,_=e.onRemoveClick;return react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",null,t.map(function(e,t){return react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement(SortableItem,{key:"item-".concat(t),index:t,field:e,isEditable:r,onFieldClick:n,onRemoveClick:_})}))}),Model=(_dec=react_css_modules__WEBPACK_IMPORTED_MODULE_8___default()(_Model_sss__WEBPACK_IMPORTED_MODULE_20___default.a,{allowMultiple:!0}),_dec(_class=function(_Component){function Model(e){var t;return _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this,Model),(t=_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default()(this,_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default()(Model).call(this,e))).state={fields:[],fieldName:"",jsonVisibility:!1},t.model=null,t.activeInput=null,t.returnFocus=!1,t.titleActive=!1,t.onFieldNameChange=function(e){var r=e.target.value;t.setState({fieldName:r})},t.onAddKeyDown=function(e){t.props.modalShowing||t.props.alertShowing||(13==e.keyCode?t.onAddField():27==e.keyCode&&t.setState({fieldName:""}))},t.onAddField=function(e){if(e&&e.preventDefault(),t.state.fieldName){t.returnFocus=!0;var r=Object(utils_common__WEBPACK_IMPORTED_MODULE_15__.i)(t.state.fieldName),n=Object(utils_data__WEBPACK_IMPORTED_MODULE_16__.j)(r);if(n){(0,t.props.showAlert)(Object(utils_data__WEBPACK_IMPORTED_MODULE_16__.o)(n))}else{var _=new models_ModelData__WEBPACK_IMPORTED_MODULE_19__.A;_.model=t.model,_.name=r,_.nameId=Object(utils_data__WEBPACK_IMPORTED_MODULE_16__.w)(r,t.model.fields),t.props.showModal(ducks_nav__WEBPACK_IMPORTED_MODULE_17__.b,_),t.setState({fieldName:""})}}},t.onRemoveClick=function(e,r){var n;e.stopPropagation();var _=Object(utils_data__WEBPACK_IMPORTED_MODULE_16__.r)(t.model).length;n=r.isDisabled||!_?{title:"Deleting ".concat(r.name," field"),type:components_modals_AlertModal_AlertModal__WEBPACK_IMPORTED_MODULE_18__.b,description:"Are you sure?",onConfirm:function(){return t.props.deleteField(r)}}:{title:"Deleting ".concat(r.name," field"),type:components_modals_AlertModal_AlertModal__WEBPACK_IMPORTED_MODULE_18__.a,description:"There are ".concat(_," content items using the model. You should disable this field first.")},t.props.showAlert(n),t.returnFocus=!0},t.onFieldClick=function(e){t.props.isEditable&&(t.returnFocus=!0,t.props.showModal(ducks_nav__WEBPACK_IMPORTED_MODULE_17__.b,e))},t.onJSONClick=function(){t.setState({jsonVisibility:!t.state.jsonVisibility})},t.updateModelName=function(e,r,n){if(e!=t.model.name){var _=Object(utils_data__WEBPACK_IMPORTED_MODULE_16__.k)(e);_?_!=utils_data__WEBPACK_IMPORTED_MODULE_16__.g&&(n?void 0!=r&&r(t.model.name):(t.returnFocus=!0,t.props.showAlert(Object(utils_data__WEBPACK_IMPORTED_MODULE_16__.o)(_)),t.titleActive=!0)):(t.model.name=e,t.props.updateModel(t.model))}},t.updateModelDescription=function(e){e!=t.model.description&&(t.model.description=e,t.props.updateModel(t.model))},t.onSortEnd=function(e){for(var r=e.oldIndex,n=e.newIndex,_=t.props.updateField,a=Object(react_sortable_hoc__WEBPACK_IMPORTED_MODULE_10__.arrayMove)(t.state.fields,r,n),i=0;i".concat(i,""),description:"Are you sure?",onConfirm:function(){return a(r)}}:{type:components_modals_AlertModal_AlertModal__WEBPACK_IMPORTED_MODULE_19__.a,title:"Deleting ".concat(i,""),description:"Please, archive item before delete it."}),t.returnFocus=!0},t.state.items=e.items,t.state.currentModel=e.models[0],t}return _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_8___default()(ContentList,_Component),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_5___default()(ContentList,[{key:"componentWillReceiveProps",value:function(e){var t=this;!e.alertShowing&&this.returnFocus&&this.activeInput&&(this.returnFocus=!1,setTimeout(function(){t.activeInput.focus(),t.props.keepScroll()},1)),this.setState({items:e.items})}},{key:"render",value:function(){var e=this,t=this.props,r=t.isEditable,n=t.models,_=t.filteredModels,a=t.filteredStatuses,i=react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("img",{styleName:"eye",src:__webpack_require__(740)}),o=react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("img",{styleName:"eye eye-active",src:__webpack_require__(741)}),s=this.state.items.filter(function(e){return!_.size||_.has(e.model)}).filter(function(e){return!a.size||a.has(e.status)}).filter(function(t){var r=e.state.searchText;if(!r.length)return!0;var n=t.draft?t.draft.title:t.title;return n&&-1!=n.toLowerCase().indexOf(r.toLowerCase())});return react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement(components_elements_ContainerComponent_ContainerComponent__WEBPACK_IMPORTED_MODULE_15__.a,{title:"Content"},react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:"content-wrapper"},react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:"filters"},react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:"filters-item"},react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:"filters-title"},"Content Types"),n.map(function(t){var r=t.origin&&t.origin.id?t.origin.id:Math.random(),n=i,a="filters-type filters-typeHidden";return _.has(t)&&(n=o,a="filters-type"),react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:a,key:r,onClick:function(){return e.onModelClick(t)}},t.name,n)})),react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:"filters-item"},react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:"filters-title filters-status"},"Status"),allStatuses.map(function(t){var r=i,n="filters-type filters-typeHidden";return a.has(t)&&(r=o,n="filters-type"),react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:n,key:t,onClick:function(){return e.onStatusClick(t)}},t,r)}))),react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:"list-wrapper"},react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:"list"},react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:"inputs-wrapper search"},react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement(components_elements_InputControl_InputControl__WEBPACK_IMPORTED_MODULE_16__.a,{icon:"search",autoFocus:!0,value:this.state.searchText,onKeyDown:this.onSearchKeyDown,onChange:this.onSearch})),s.length<=0&&react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:"list-no-items"},"There are no items here."),react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement(react_flip_move__WEBPACK_IMPORTED_MODULE_12__.a,{duration:250,enterAnimation:"accordionVertical",leaveAnimation:"accordionVertical",maintainContainerHeight:!0,easing:"ease-out"},s.length>0&&react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:"list-item",key:"header!"},react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:"colorLabel"}),react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:"type"}),react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:"updated"},"UPDATED")),s.map(function(t){var n=t.draft?t.draft.title:t.title,_=t.draft?t.draft.origin.updatedAt:t.origin.updatedAt;_||(_=new Date);var a=Object(utils_common__WEBPACK_IMPORTED_MODULE_18__.g)(_),i={background:t.color},o=t.origin&&t.origin.id?t.origin.id:Math.random();return react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:"list-item",key:o,onClick:function(){return e.onItemClick(t)}},react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:"colorLabel",style:i}),react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:"type"},n?react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:"name"},n):react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:"name untitled"},"Untitled"),react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:"description"},t.model.name)),react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:"updated"},a),r&&react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:"hidden-controls"},react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:"hidden-remove",onClick:function(r){return e.onRemoveClick(r,t)}},react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement(svg_inline_react__WEBPACK_IMPORTED_MODULE_11___default.a,{styleName:"cross",src:__webpack_require__(77)}))))}),r&&react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:"inputs-wrapper",key:"input!"},react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:"dropdown-wrapper"},react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement(components_elements_DropdownControl_DropdownControl__WEBPACK_IMPORTED_MODULE_14__.a,{suggestionsList:n.map(function(e){return e.name}),suggest:this.onChangeModel,current:this.state.currentModel.name})),react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:"input-wrapper"},react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement(components_elements_InputControl_InputControl__WEBPACK_IMPORTED_MODULE_16__.a,{placeholder:"Create a new Content Record",value:this.state.itemTitle,icon:"plus",onIconClick:this.onAddItem,onChange:this.onItemTitleChange,onKeyDown:this.onNewKeyDown}))))))))}},{key:"__reactstandin__regenerateByEval",value:function __reactstandin__regenerateByEval(key,code){this[key]=eval(code)}}]),ContentList}(react__WEBPACK_IMPORTED_MODULE_9__.Component))||_class);!function(){var e=__webpack_require__(1).default,t=__webpack_require__(1).leaveModule;e&&(e.register(allStatuses,"allStatuses","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/components/mainArea/content/ContentList/ContentList.js"),e.register(ContentList,"ContentList","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/components/mainArea/content/ContentList/ContentList.js"),t(module))}()}).call(this,__webpack_require__(12)(module))},function(module,__webpack_exports__,__webpack_require__){"use strict";(function(module){var core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(32),core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_0__),core_js_modules_es6_array_index_of__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(45),core_js_modules_es6_array_index_of__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(core_js_modules_es6_array_index_of__WEBPACK_IMPORTED_MODULE_1__),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(2),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2__),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(3),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3__),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(5),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(4),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(6),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_6__),react__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(0),react__WEBPACK_IMPORTED_MODULE_7___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_7__),redux__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(22),react_redux__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(28),react_router__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(16),react_helmet__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(34),react_helmet__WEBPACK_IMPORTED_MODULE_11___default=__webpack_require__.n(react_helmet__WEBPACK_IMPORTED_MODULE_11__),components_mainArea_content_ContentEdit_ContentEdit__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(379),models_UserData__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(19),ducks_content__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(40),ducks_media__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(82),ducks_nav__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(7),utils_data__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__(15);!function(){var e=__webpack_require__(1).enterModule;e&&e(module)}();var ContentEditContainer=function(_Component){function ContentEditContainer(e){var t;return _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2___default()(this,ContentEditContainer),(t=_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default()(this,_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default()(ContentEditContainer).call(this,e))).item=null,t.setItem(e.params.item),t}return _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_6___default()(ContentEditContainer,_Component),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3___default()(ContentEditContainer,[{key:"componentWillReceiveProps",value:function(e){e.params.item!=this.props.params.item&&this.setItem(e.params.item)}},{key:"setItem",value:function(e){if(0==e.indexOf(ducks_nav__WEBPACK_IMPORTED_MODULE_16__.s)){var t=(e=e.slice(ducks_nav__WEBPACK_IMPORTED_MODULE_16__.s.length)).slice(0,e.indexOf("~")),r=e.slice(e.indexOf("~")+1);if(t&&r){var n=this.props.contentActions.setCurrentItem,_=this.props.content;if(this.item=_.currentItem,!this.item||t!=this.item.model.nameId||r!=this.item.origin.id){var a=Object(utils_data__WEBPACK_IMPORTED_MODULE_17__.p)(t,r);a&&(this.item=a,n(a))}}}}},{key:"render",value:function(){var e=this.props,t=e.models,r=e.content,n=this.props.contentActions,_=n.addItem,a=n.updateItem,i=n.publishItem,o=n.discardItem,s=n.archiveItem,l=n.restoreItem,u=this.props.navActions.showModal,c=this.props.mediaActions,d=c.addMediaItem,f=c.updateMediaItem,p=c.removeMediaItem,h=t.currentSite,E=this.item;if(!h||!E)return null;var m="/".concat(ducks_nav__WEBPACK_IMPORTED_MODULE_16__.A,"/").concat(ducks_nav__WEBPACK_IMPORTED_MODULE_16__.z).concat(h.nameId,"/").concat(ducks_nav__WEBPACK_IMPORTED_MODULE_16__.r),g=r.items[r.items.length-1],b=E.title?E.title:"Untitled",v="Item: ".concat(b," - Site: ").concat(h.name," - Chisel");return react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{className:"mainArea"},react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement(react_helmet__WEBPACK_IMPORTED_MODULE_11__.Helmet,null,react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("title",null,v)),react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement(components_mainArea_content_ContentEdit_ContentEdit__WEBPACK_IMPORTED_MODULE_12__.a,{item:E,onClose:function(){return react_router__WEBPACK_IMPORTED_MODULE_10__.f.push(m)},gotoItem:function(e){var t=e.model.nameId,r=e.origin.id;react_router__WEBPACK_IMPORTED_MODULE_10__.f.push("".concat(m,"/").concat(ducks_nav__WEBPACK_IMPORTED_MODULE_16__.s).concat(t,"~").concat(r))},addItem:_,updateItem:a,publishItem:i,archiveItem:s,restoreItem:l,discardItem:o,addMediaItem:d,updateMediaItem:f,removeMediaItem:p,lastItem:g,showModal:u,isEditable:t.role!=models_UserData__WEBPACK_IMPORTED_MODULE_13__.c}))}},{key:"__reactstandin__regenerateByEval",value:function __reactstandin__regenerateByEval(key,code){this[key]=eval(code)}}]),ContentEditContainer}(react__WEBPACK_IMPORTED_MODULE_7__.Component);function mapStateToProps(e){return{models:e.models,content:e.content}}function mapDispatchToProps(e){return{contentActions:Object(redux__WEBPACK_IMPORTED_MODULE_8__.b)({setCurrentItem:ducks_content__WEBPACK_IMPORTED_MODULE_14__.l,addItem:ducks_content__WEBPACK_IMPORTED_MODULE_14__.b,updateItem:ducks_content__WEBPACK_IMPORTED_MODULE_14__.m,publishItem:ducks_content__WEBPACK_IMPORTED_MODULE_14__.j,discardItem:ducks_content__WEBPACK_IMPORTED_MODULE_14__.f,archiveItem:ducks_content__WEBPACK_IMPORTED_MODULE_14__.c,restoreItem:ducks_content__WEBPACK_IMPORTED_MODULE_14__.k},e),mediaActions:Object(redux__WEBPACK_IMPORTED_MODULE_8__.b)({addMediaItem:ducks_media__WEBPACK_IMPORTED_MODULE_15__.b,updateMediaItem:ducks_media__WEBPACK_IMPORTED_MODULE_15__.f,removeMediaItem:ducks_media__WEBPACK_IMPORTED_MODULE_15__.e},e),navActions:Object(redux__WEBPACK_IMPORTED_MODULE_8__.b)({showModal:ducks_nav__WEBPACK_IMPORTED_MODULE_16__.H},e)}}var _default=Object(react_redux__WEBPACK_IMPORTED_MODULE_9__.b)(mapStateToProps,mapDispatchToProps)(ContentEditContainer);__webpack_exports__.a=_default,function(){var e=__webpack_require__(1).default,t=__webpack_require__(1).leaveModule;e&&(e.register(ContentEditContainer,"ContentEditContainer","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/containers/MainArea/Content/ContentEdit/ContentEditContainer.js"),e.register(mapStateToProps,"mapStateToProps","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/containers/MainArea/Content/ContentEdit/ContentEditContainer.js"),e.register(mapDispatchToProps,"mapDispatchToProps","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/containers/MainArea/Content/ContentEdit/ContentEditContainer.js"),e.register(_default,"default","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/containers/MainArea/Content/ContentEdit/ContentEditContainer.js"),t(module))}()}).call(this,__webpack_require__(12)(module))},function(module,__webpack_exports__,__webpack_require__){"use strict";(function(module){__webpack_require__.d(__webpack_exports__,"a",function(){return ContentEdit});var core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(32),core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_0__),_babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(143),_babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(_babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1__),core_js_modules_es7_symbol_async_iterator__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(52),core_js_modules_es7_symbol_async_iterator__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(core_js_modules_es7_symbol_async_iterator__WEBPACK_IMPORTED_MODULE_2__),core_js_modules_es6_symbol__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(53),core_js_modules_es6_symbol__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(core_js_modules_es6_symbol__WEBPACK_IMPORTED_MODULE_3__),core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(43),core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_4__),core_js_modules_es6_array_iterator__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(76),core_js_modules_es6_array_iterator__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(core_js_modules_es6_array_iterator__WEBPACK_IMPORTED_MODULE_5__),core_js_modules_es6_string_iterator__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(97),core_js_modules_es6_string_iterator__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(core_js_modules_es6_string_iterator__WEBPACK_IMPORTED_MODULE_6__),core_js_modules_es6_map__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(162),core_js_modules_es6_map__WEBPACK_IMPORTED_MODULE_7___default=__webpack_require__.n(core_js_modules_es6_map__WEBPACK_IMPORTED_MODULE_7__),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(2),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_8___default=__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_8__),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(3),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_9___default=__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_9__),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(5),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_10___default=__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_10__),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(4),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_11___default=__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_11__),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(6),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_12___default=__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_12__),react__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(0),react__WEBPACK_IMPORTED_MODULE_13___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_13__),react_css_modules__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(10),react_css_modules__WEBPACK_IMPORTED_MODULE_14___default=__webpack_require__.n(react_css_modules__WEBPACK_IMPORTED_MODULE_14__),components_elements_ButtonControl_ButtonControl__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(23),components_elements_EditableTitleControl_EditableTitleControl__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(116),components_elements_ContainerComponent_ContainerComponent__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__(56),models_ContentData__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__(31),models_ModelData__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__(8),_elements_ContentString__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__(380),_elements_ContentNumber__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__(381),_elements_ContentBoolean__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__(383),_elements_ContentDate__WEBPACK_IMPORTED_MODULE_23__=__webpack_require__(384),_elements_ContentReference__WEBPACK_IMPORTED_MODULE_24__=__webpack_require__(385),_elements_ContentMedia__WEBPACK_IMPORTED_MODULE_25__=__webpack_require__(386),_ContentEdit_sss__WEBPACK_IMPORTED_MODULE_26__=__webpack_require__(828),_ContentEdit_sss__WEBPACK_IMPORTED_MODULE_26___default=__webpack_require__.n(_ContentEdit_sss__WEBPACK_IMPORTED_MODULE_26__),_dec,_class;!function(){var e=__webpack_require__(1).enterModule;e&&e(module)}();var AUTOSAVE_TIMEOUT=2e3,ContentEdit=(_dec=react_css_modules__WEBPACK_IMPORTED_MODULE_14___default()(_ContentEdit_sss__WEBPACK_IMPORTED_MODULE_26___default.a,{allowMultiple:!0}),_dec(_class=function(_Component){function ContentEdit(e){var t;_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_8___default()(this,ContentEdit),(t=_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_10___default()(this,_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_11___default()(ContentEdit).call(this,e))).state={title:"",color:"rgba(0, 0, 0, 1)",fields:new Map,dirty:!1},t.item=null,t.fieldsArchive=new Map,t.addingItem=null,t.wait=!1,t.waitSave=!1,t.fieldElements=[],t.fieldElementRefs=[],t.onClose=function(){t.props.onClose()},t.onDiscard=function(){t.item.status!=models_ContentData__WEBPACK_IMPORTED_MODULE_18__.c&&t.item.status!=models_ContentData__WEBPACK_IMPORTED_MODULE_18__.b||(t.item.fields=new Map(t.fieldsArchive)),t.props.discardItem(t.item),t.updateItem()},t.onPublish=function(){t.validate()&&(t.props.publishItem(t.item),t.updateItem())},t.onArchive=function(){t.props.archiveItem(t.item),t.updateItem()},t.onRestore=function(){t.props.restoreItem(t.item),t.updateItem()},t.setFieldValue=function(e,r){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],_=t.state.fields;t.setState({fields:_.set(e,r),dirty:!0}),n||!t.wait?(t.saveItem(),t.wait=!0,setTimeout(function(){t.waitSave&&t.saveItem(),t.waitSave=!1,t.wait=!1},AUTOSAVE_TIMEOUT)):t.waitSave=!0},t.updateItemTitle=function(e){t.setState({title:e}),(t.item.draft?t.item.draft:t.item).title=e},t.addItem=function(e){t.addingItem=e,t.props.addItem(e)},t.onReferenceClick=function(e){t.saveItem(),t.props.gotoItem(e)},t.item=e.item;var r=t.item.draft?t.item.draft:t.item;return t.state={title:r.title,color:r.color,fields:r.fields,dirty:!1},t.fieldsArchive=new Map(t.item.fields),t}return _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_12___default()(ContentEdit,_Component),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_9___default()(ContentEdit,[{key:"componentWillUnmount",value:function(){this.state.dirty&&this.saveItem()}},{key:"componentWillReceiveProps",value:function(e){this.checkAddingItem(e.lastItem),e.item.origin.id!=this.item.origin.id&&this.updateItem(e.item)}},{key:"updateItem",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.item;this.item=e;var t=e.draft?e.draft:e;this.setState({title:t.title,color:t.color,fields:t.fields,dirty:!1}),this.waitSave=!1}},{key:"saveItem",value:function(){this.props.updateItem(this.item)}},{key:"validate",value:function(){var e=!0,t=!1,r=void 0;try{for(var n,_=this.fieldElementRefs[Symbol.iterator]();!(e=(n=_.next()).done);e=!0){if(!n.value.validate())return!1}}catch(e){t=!0,r=e}finally{try{e||null==_.return||_.return()}finally{if(t)throw r}}return!0}},{key:"checkAddingItem",value:function(e){this.addingItem&&e==this.addingItem&&(this.props.gotoItem(this.addingItem),this.addingItem=null)}},{key:"generateElement",value:function(e,t,r){var n=this.props.isEditable;switch(this.item.status==models_ContentData__WEBPACK_IMPORTED_MODULE_18__.b&&(n=!1),e.type){case models_ModelData__WEBPACK_IMPORTED_MODULE_19__.y:case models_ModelData__WEBPACK_IMPORTED_MODULE_19__.v:return react__WEBPACK_IMPORTED_MODULE_13___default.a.createElement(_elements_ContentString__WEBPACK_IMPORTED_MODULE_20__.a,{ref:r,field:e,key:e.nameId,value:t,isEditable:n,setFieldValue:this.setFieldValue,showModal:this.props.showModal,updateItemTitle:this.updateItemTitle});case models_ModelData__WEBPACK_IMPORTED_MODULE_19__.t:case models_ModelData__WEBPACK_IMPORTED_MODULE_19__.u:return react__WEBPACK_IMPORTED_MODULE_13___default.a.createElement(_elements_ContentNumber__WEBPACK_IMPORTED_MODULE_21__.a,{ref:r,field:e,key:e.nameId,value:t,isEditable:n,setFieldValue:this.setFieldValue});case models_ModelData__WEBPACK_IMPORTED_MODULE_19__.r:return react__WEBPACK_IMPORTED_MODULE_13___default.a.createElement(_elements_ContentBoolean__WEBPACK_IMPORTED_MODULE_22__.a,{ref:r,field:e,key:e.nameId,value:t,isEditable:n,setFieldValue:this.setFieldValue});case models_ModelData__WEBPACK_IMPORTED_MODULE_19__.s:return react__WEBPACK_IMPORTED_MODULE_13___default.a.createElement(_elements_ContentDate__WEBPACK_IMPORTED_MODULE_23__.a,{ref:r,field:e,key:e.nameId,value:t,isEditable:n,setFieldValue:this.setFieldValue});case models_ModelData__WEBPACK_IMPORTED_MODULE_19__.w:return react__WEBPACK_IMPORTED_MODULE_13___default.a.createElement(_elements_ContentMedia__WEBPACK_IMPORTED_MODULE_25__.a,{ref:r,field:e,key:e.nameId,value:t,isEditable:n,setFieldValue:this.setFieldValue,site:this.item.model.site,addMediaItem:this.props.addMediaItem,updateMediaItem:this.props.updateMediaItem,removeMediaItem:this.props.removeMediaItem,showModal:this.props.showModal});case models_ModelData__WEBPACK_IMPORTED_MODULE_19__.x:return react__WEBPACK_IMPORTED_MODULE_13___default.a.createElement(_elements_ContentReference__WEBPACK_IMPORTED_MODULE_24__.a,{ref:r,field:e,key:e.nameId,value:t,item:this.item,isEditable:n,setFieldValue:this.setFieldValue,showModal:this.props.showModal,addItem:this.addItem,onReferenceClick:this.onReferenceClick})}}},{key:"generateContent",value:function(){var e=this,t=this.props.isEditable;this.fieldElements=[],this.fieldElementRefs=[];var r=!0,n=!1,_=void 0;try{for(var a,i=this.state.fields[Symbol.iterator]();!(r=(a=i.next()).done);r=!0){var o=_babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1___default()(a.value,2),s=o[0],l=o[1];if(!s.isDisabled){var u=this.generateElement(s,l,function(t){t&&e.fieldElementRefs.push(t)});this.fieldElements.push(u)}}}catch(e){n=!0,_=e}finally{try{r||null==i.return||i.return()}finally{if(n)throw _}}return react__WEBPACK_IMPORTED_MODULE_13___default.a.createElement("div",{styleName:"content"},react__WEBPACK_IMPORTED_MODULE_13___default.a.createElement("div",{styleName:"field-title status"},"Status:",react__WEBPACK_IMPORTED_MODULE_13___default.a.createElement("span",{styleName:this.item.status}," ",this.item.status)),this.fieldElements,t&&react__WEBPACK_IMPORTED_MODULE_13___default.a.createElement("div",{styleName:"buttons-wrapper"},react__WEBPACK_IMPORTED_MODULE_13___default.a.createElement("div",{styleName:"button-publish"},react__WEBPACK_IMPORTED_MODULE_13___default.a.createElement(components_elements_ButtonControl_ButtonControl__WEBPACK_IMPORTED_MODULE_15__.a,{color:"green",value:"Publish",disabled:this.item.status==models_ContentData__WEBPACK_IMPORTED_MODULE_18__.d||this.item.status==models_ContentData__WEBPACK_IMPORTED_MODULE_18__.b,onClick:this.onPublish})),react__WEBPACK_IMPORTED_MODULE_13___default.a.createElement("div",{styleName:"button-publish"},react__WEBPACK_IMPORTED_MODULE_13___default.a.createElement(components_elements_ButtonControl_ButtonControl__WEBPACK_IMPORTED_MODULE_15__.a,{color:"gray",value:"Discard changes",disabled:this.item.status!=models_ContentData__WEBPACK_IMPORTED_MODULE_18__.e&&!this.state.dirty,onClick:this.onDiscard})),this.item.status==models_ContentData__WEBPACK_IMPORTED_MODULE_18__.b?react__WEBPACK_IMPORTED_MODULE_13___default.a.createElement("div",{styleName:"button-publish"},react__WEBPACK_IMPORTED_MODULE_13___default.a.createElement(components_elements_ButtonControl_ButtonControl__WEBPACK_IMPORTED_MODULE_15__.a,{color:"gray",value:"Restore from archive",onClick:this.onRestore})):react__WEBPACK_IMPORTED_MODULE_13___default.a.createElement("div",{styleName:"button-publish"},react__WEBPACK_IMPORTED_MODULE_13___default.a.createElement(components_elements_ButtonControl_ButtonControl__WEBPACK_IMPORTED_MODULE_15__.a,{color:"gray",value:"Archive",onClick:this.onArchive}))))}},{key:"render",value:function(){var e=this.props.isEditable,t=this.generateContent(),r=react__WEBPACK_IMPORTED_MODULE_13___default.a.createElement("div",null,react__WEBPACK_IMPORTED_MODULE_13___default.a.createElement(components_elements_EditableTitleControl_EditableTitleControl__WEBPACK_IMPORTED_MODULE_16__.a,{text:this.state.title,placeholder:"Item title",update:e?this.updateItemTitle:null,disabled:!this.item.model.hasTitle()}),react__WEBPACK_IMPORTED_MODULE_13___default.a.createElement(components_elements_EditableTitleControl_EditableTitleControl__WEBPACK_IMPORTED_MODULE_16__.a,{text:this.item.model.name,isSmall:!0}));return react__WEBPACK_IMPORTED_MODULE_13___default.a.createElement(components_elements_ContainerComponent_ContainerComponent__WEBPACK_IMPORTED_MODULE_17__.a,{hasTitle2:!0,titles:r,onClickBack:this.onClose},t)}},{key:"__reactstandin__regenerateByEval",value:function __reactstandin__regenerateByEval(key,code){this[key]=eval(code)}}]),ContentEdit}(react__WEBPACK_IMPORTED_MODULE_13__.Component))||_class);!function(){var e=__webpack_require__(1).default,t=__webpack_require__(1).leaveModule;e&&(e.register(AUTOSAVE_TIMEOUT,"AUTOSAVE_TIMEOUT","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/components/mainArea/content/ContentEdit/ContentEdit.js"),e.register(ContentEdit,"ContentEdit","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/components/mainArea/content/ContentEdit/ContentEdit.js"),t(module))}()}).call(this,__webpack_require__(12)(module))},function(module,__webpack_exports__,__webpack_require__){"use strict";(function(module){__webpack_require__.d(__webpack_exports__,"a",function(){return ContentString});var core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(32),core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_0__),core_js_modules_es7_symbol_async_iterator__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(52),core_js_modules_es7_symbol_async_iterator__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(core_js_modules_es7_symbol_async_iterator__WEBPACK_IMPORTED_MODULE_1__),core_js_modules_es6_symbol__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(53),core_js_modules_es6_symbol__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(core_js_modules_es6_symbol__WEBPACK_IMPORTED_MODULE_2__),core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(43),core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_3__),core_js_modules_es6_regexp_match__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(742),core_js_modules_es6_regexp_match__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(core_js_modules_es6_regexp_match__WEBPACK_IMPORTED_MODULE_4__),core_js_modules_es6_regexp_flags__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(199),core_js_modules_es6_regexp_flags__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(core_js_modules_es6_regexp_flags__WEBPACK_IMPORTED_MODULE_5__),core_js_modules_es6_regexp_constructor__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(298),core_js_modules_es6_regexp_constructor__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(core_js_modules_es6_regexp_constructor__WEBPACK_IMPORTED_MODULE_6__),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(2),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_7___default=__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_7__),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(3),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_8___default=__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_8__),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(5),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_9___default=__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_9__),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(4),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_10___default=__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_10__),_babel_runtime_helpers_get__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(69),_babel_runtime_helpers_get__WEBPACK_IMPORTED_MODULE_11___default=__webpack_require__.n(_babel_runtime_helpers_get__WEBPACK_IMPORTED_MODULE_11__),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(6),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_12___default=__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_12__),react__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(0),react__WEBPACK_IMPORTED_MODULE_13___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_13__),react_css_modules__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(10),react_css_modules__WEBPACK_IMPORTED_MODULE_14___default=__webpack_require__.n(react_css_modules__WEBPACK_IMPORTED_MODULE_14__),svg_inline_react__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(18),svg_inline_react__WEBPACK_IMPORTED_MODULE_15___default=__webpack_require__.n(svg_inline_react__WEBPACK_IMPORTED_MODULE_15__),medium_editor_dist_css_medium_editor_css__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(778),medium_editor_dist_css_medium_editor_css__WEBPACK_IMPORTED_MODULE_16___default=__webpack_require__.n(medium_editor_dist_css_medium_editor_css__WEBPACK_IMPORTED_MODULE_16__),medium_editor_dist_css_themes_default_css__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__(780),medium_editor_dist_css_themes_default_css__WEBPACK_IMPORTED_MODULE_17___default=__webpack_require__.n(medium_editor_dist_css_themes_default_css__WEBPACK_IMPORTED_MODULE_17__),react_medium_editor__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__(174),react_medium_editor__WEBPACK_IMPORTED_MODULE_18___default=__webpack_require__.n(react_medium_editor__WEBPACK_IMPORTED_MODULE_18__),_ContentBase__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__(66),components_elements_InputControl_InputControl__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__(17),components_elements_MarkdownEditor_MarkdownEditor__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__(142),ducks_nav__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__(7),utils_common__WEBPACK_IMPORTED_MODULE_23__=__webpack_require__(20),models_ModelData__WEBPACK_IMPORTED_MODULE_24__=__webpack_require__(8),_ContentEdit_sss__WEBPACK_IMPORTED_MODULE_25__=__webpack_require__(828),_ContentEdit_sss__WEBPACK_IMPORTED_MODULE_25___default=__webpack_require__.n(_ContentEdit_sss__WEBPACK_IMPORTED_MODULE_25__),_dec,_class;!function(){var e=__webpack_require__(1).enterModule;e&&e(module)}();var ContentString=(_dec=react_css_modules__WEBPACK_IMPORTED_MODULE_14___default()(_ContentEdit_sss__WEBPACK_IMPORTED_MODULE_25___default.a,{allowMultiple:!0}),_dec(_class=function(_ContentBase){function ContentString(e){var t;return _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_7___default()(this,ContentString),(t=_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_9___default()(this,_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_10___default()(ContentString).call(this,e))).onChange=function(e,r){var n=e.target.value;if(t.field.isList){var _=t.state.value.slice();_[r]=n,t.setValue(_)}else t.setValue(n),t.field.isTitle&&t.props.updateItemTitle(n)},t.onChangeWysiwyg=function(e){t.setValue(e)},t.onChangeMarkdown=function(e){t.setValue(e)},t.onKeyDown=function(e,r,n){if(e.stopPropagation(),t.field.isList){var _=e.keyCode;13==_||40==_?n[r+1]&&n[r+1].focus():38==_&&r&&n[--r].focus()}},t.onShowWysiwygModal=function(){t.props.showModal(ducks_nav__WEBPACK_IMPORTED_MODULE_22__.g,{text:t.state.value,callback:function(e){return t.setValue(e,!0)}})},t.onShowMarkdownModal=function(){t.props.showModal(ducks_nav__WEBPACK_IMPORTED_MODULE_22__.c,{text:t.state.value,callback:function(e){return t.setValue(e,!0)}})},t.onPlus=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,r=t.state.value,n=r.slice(0,e+1),_=r.slice(e+1);r=n.concat("",_),t.setValue(r)},t.onMinus=function(e){var r=t.state.value.slice();r.splice(e,1),t.setValue(r)},!t.state.value&&t.field.isList&&(t.state.value=[]),t}return _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_12___default()(ContentString,_ContentBase),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_8___default()(ContentString,[{key:"getError",value:function(){var e=this,t=_babel_runtime_helpers_get__WEBPACK_IMPORTED_MODULE_11___default()(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_10___default()(ContentString.prototype),"getError",this).call(this);if(t)return t;var r=function(t){return e.field.validations?e.field.validations.range&&e.field.validations.range.active&&(r=function(t){var r=e.field.validations.range;if(r.minActive&&t.lengthr.max){var n=r.errorMsg;return n||(n="The length is out of permissible range!"),n}}(t))?r:e.field.validations.pattern&&e.field.validations.pattern.active&&(r=function(t){var r=e.field.validations.pattern,n=new RegExp("^"+r.pattern+"$",r.flags);if(!t.match(n)){var _=r.errorMsg;return _||(_="The string is not match the pattern!"),_}}(t))?r:void 0:null;var r},n=this.state.value;switch(this.field.type){case models_ModelData__WEBPACK_IMPORTED_MODULE_24__.y:switch(this.field.appearance){case models_ModelData__WEBPACK_IMPORTED_MODULE_24__.m:if(!this.field.validations)break;if(this.field.isList){var _=!0,a=!1,i=void 0;try{for(var o,s=n[Symbol.iterator]();!(_=(o=s.next()).done);_=!0){var l=r(o.value);if(l)return l}}catch(e){a=!0,i=e}finally{try{_||null==s.return||s.return()}finally{if(a)throw i}}}else{var u=r(n);if(u)return u}break;case models_ModelData__WEBPACK_IMPORTED_MODULE_24__.n:if(!n)break;if(Object(utils_common__WEBPACK_IMPORTED_MODULE_23__.e)(n,"-")!==n)return"Slug must not contain special symbols and capital letters!";var c=r(n);if(c)return c;break;case models_ModelData__WEBPACK_IMPORTED_MODULE_24__.o:if(!n)break;if(!Object(utils_common__WEBPACK_IMPORTED_MODULE_23__.c)(n))return"You must type a valid URL!"}break;case models_ModelData__WEBPACK_IMPORTED_MODULE_24__.v:switch(this.field.appearance){case models_ModelData__WEBPACK_IMPORTED_MODULE_24__.k:case models_ModelData__WEBPACK_IMPORTED_MODULE_24__.j:var d=r(n);if(d)return d}}return null}},{key:"getTitle",value:function(){switch(this.field.appearance){case models_ModelData__WEBPACK_IMPORTED_MODULE_24__.l:return react__WEBPACK_IMPORTED_MODULE_13___default.a.createElement("div",{styleName:"field-title"},this.field.name,react__WEBPACK_IMPORTED_MODULE_13___default.a.createElement("div",{styleName:"link",onClick:this.onShowWysiwygModal},react__WEBPACK_IMPORTED_MODULE_13___default.a.createElement(svg_inline_react__WEBPACK_IMPORTED_MODULE_15___default.a,{styleName:"link-icon",src:__webpack_require__(160)})));case models_ModelData__WEBPACK_IMPORTED_MODULE_24__.i:return react__WEBPACK_IMPORTED_MODULE_13___default.a.createElement("div",{styleName:"field-title"},this.field.name,react__WEBPACK_IMPORTED_MODULE_13___default.a.createElement("div",{styleName:"link",onClick:this.onShowMarkdownModal},react__WEBPACK_IMPORTED_MODULE_13___default.a.createElement(svg_inline_react__WEBPACK_IMPORTED_MODULE_15___default.a,{styleName:"link-icon",src:__webpack_require__(160)})));default:return react__WEBPACK_IMPORTED_MODULE_13___default.a.createElement("div",{styleName:"field-title"},this.field.name)}}},{key:"getInput",value:function(){var e=this,t=this.state.value;switch(this.field.type){case models_ModelData__WEBPACK_IMPORTED_MODULE_24__.y:switch(this.field.appearance){case models_ModelData__WEBPACK_IMPORTED_MODULE_24__.m:var r;return this.field.isList?t&&t.length?function(){r=[];for(var n=[],_=function(_){r.push(react__WEBPACK_IMPORTED_MODULE_13___default.a.createElement("div",{styleName:"list-item",key:_},react__WEBPACK_IMPORTED_MODULE_13___default.a.createElement(components_elements_InputControl_InputControl__WEBPACK_IMPORTED_MODULE_20__.a,{type:"big",value:t[_],readOnly:!e.state.isEditable,DOMRef:function(e){return n[_]=e},onChange:function(t){return e.onChange(t,_)},onKeyDown:function(t){return e.onKeyDown(t,_,n)}}),react__WEBPACK_IMPORTED_MODULE_13___default.a.createElement("div",{styleName:"list-item-plus",onClick:function(){return e.onPlus(_)}},"+"),react__WEBPACK_IMPORTED_MODULE_13___default.a.createElement("div",{styleName:"list-item-minus",onClick:function(){return e.onMinus(_)}},"–")))},a=0;a0&&void 0!==arguments[0]?arguments[0]:0,r=t.state.value,n=r.slice(0,e+1),_=r.slice(e+1);r=n.concat(0,_),t.setValue(r)},t.onMinus=function(e){var r=t.state.value.slice();r.splice(e,1),t.setValue(r)},t.onChangeRating=function(e){e*=2,t.setValue(e)},!t.state.value&&t.field.isList&&(t.state.value=[]),t}return _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_8___default()(ContentNumber,_ContentBase),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_4___default()(ContentNumber,[{key:"getError",value:function(){var e=this,t=_babel_runtime_helpers_get__WEBPACK_IMPORTED_MODULE_7___default()(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_6___default()(ContentNumber.prototype),"getError",this).call(this);if(t)return t;var r=this.state.value,n=function(){if(!e.field.validations)return null;if(!e.field.validations.range||!e.field.validations.range.active)return null;var t=e.field.validations.range,n=function(e){if(t.minActive&&et.max){var r=t.errorMsg;return r||(r="The value is out of permissible range!"),r}};if(!e.field.isList)return r||(r=0),n(r);var _=!0,a=!1,i=void 0;try{for(var o,s=r[Symbol.iterator]();!(_=(o=s.next()).done);_=!0){var l=n(o.value);if(l)return l}}catch(e){a=!0,i=e}finally{try{_||null==s.return||s.return()}finally{if(a)throw i}}};switch(this.field.type){case models_ModelData__WEBPACK_IMPORTED_MODULE_14__.t:switch(this.field.appearance){case models_ModelData__WEBPACK_IMPORTED_MODULE_14__.f:var _=n();if(_)return _}break;case models_ModelData__WEBPACK_IMPORTED_MODULE_14__.u:switch(this.field.appearance){case models_ModelData__WEBPACK_IMPORTED_MODULE_14__.g:var a=n();if(a)return a;break;case models_ModelData__WEBPACK_IMPORTED_MODULE_14__.h:}}return null}},{key:"getInput",value:function(){var e=this,t=this.state.value;switch(this.field.type){case models_ModelData__WEBPACK_IMPORTED_MODULE_14__.t:case models_ModelData__WEBPACK_IMPORTED_MODULE_14__.u:switch(this.field.appearance){case models_ModelData__WEBPACK_IMPORTED_MODULE_14__.g:case models_ModelData__WEBPACK_IMPORTED_MODULE_14__.f:var r;return this.field.isList?t&&t.length?function(){r=[];for(var n=[],_=function(_){r.push(react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:"list-item",key:_},react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement(components_elements_InputNumberControl_InputNumberControl__WEBPACK_IMPORTED_MODULE_13__.a,{styleName:"list-item-input",type:"big",isInt:e.field.type==models_ModelData__WEBPACK_IMPORTED_MODULE_14__.u,value:t[_],readOnly:!e.state.isEditable,onChange:function(t){return e.onChange(t,_)},DOMRef:function(e){return n[_]=e},onKeyDown:function(t){return e.onKeyDown(t,_,n)}}),react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:"list-item-plus",onClick:function(){return e.onPlus(_)}},"+"),react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:"list-item-minus",onClick:function(){return e.onMinus(_)}},"–")))},a=0;at/2}},{key:"mouseLeave",value:function(){var e=this.state,t=e.value,r=e.halfStar,n=e.config;n.edit&&(n.half&&(r.hidden=!this.isDecimal(t),r.at=Math.floor(this.state.value)),this.setState({stars:this.getStars()}))}},{key:"clicked",value:function(e){var t=this.state,r=t.config,n=t.halfStar;if(r.edit){var _=Number(e.target.getAttribute("data-index")),a=void 0;if(r.half){var i=this.moreThanHalf(e,r.size);n.hidden=i,i&&(_+=1),a=i?_:_+.5,n.at=_}else a=_+=1;this.setState({value:a,stars:this.getStars(_)}),this.props.onChange(a)}}},{key:"renderHalfStarStyleElement",value:function(){var e=this.state,t=e.config,r=e.uniqueness;return i.default.createElement("style",{dangerouslySetInnerHTML:{__html:function(e,t){return"\n .react-stars-"+t+":before {\n position: absolute;\n overflow: hidden;\n display: block;\n z-index: 1;\n top: 0; left: 0;\n width: 50%;\n content: attr(data-forhalf);\n color: "+e+";\n }"}(t.color2,r)}})}},{key:"renderStars",value:function(){var e=this,t=this.state,r=t.halfStar,_=t.stars,a=t.uniqueness,o=t.config,s=o.color1,l=o.color2,c=o.size,d=o.char,f=o.half,p=o.edit;return _.map(function(t,_){var o="";f&&!r.hidden&&r.at===_&&(o="react-stars-"+a);var h=n({},u,{color:t.active?l:s,cursor:p?"pointer":"default",fontSize:c+"px"});return i.default.createElement("span",{className:o,style:h,key:_,"data-index":_,"data-forhalf":d,onMouseOver:e.mouseOver.bind(e),onMouseMove:e.mouseOver.bind(e),onMouseLeave:e.mouseLeave.bind(e),onClick:e.clicked.bind(e)},d)})}},{key:"render",value:function(){var e=this.props.className;return i.default.createElement("div",{className:e,style:l},this.state.config.half?this.renderHalfStarStyleElement():"",this.renderStars())}}]),t}();c.propTypes={className:o.default.string,edit:o.default.bool,half:o.default.bool,value:o.default.number,count:o.default.number,char:o.default.string,size:o.default.number,color1:o.default.string,color2:o.default.string},c.defaultProps={edit:!0,half:!0,value:0,count:5,char:"★",size:15,color1:"gray",color2:"#ffd700",onChange:function(){}},t.default=c},function(module,__webpack_exports__,__webpack_require__){"use strict";(function(module){__webpack_require__.d(__webpack_exports__,"a",function(){return ContentBoolean});var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(2),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(3),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(5),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(4),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(6),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__),react__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(0),react__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_5__),react_css_modules__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(10),react_css_modules__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(react_css_modules__WEBPACK_IMPORTED_MODULE_6__),lodash_core__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(101),lodash_core__WEBPACK_IMPORTED_MODULE_7___default=__webpack_require__.n(lodash_core__WEBPACK_IMPORTED_MODULE_7__),_ContentBase__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(66),components_elements_SwitchControl_SwitchControl__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(115),models_ModelData__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(8),_ContentEdit_sss__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(828),_ContentEdit_sss__WEBPACK_IMPORTED_MODULE_11___default=__webpack_require__.n(_ContentEdit_sss__WEBPACK_IMPORTED_MODULE_11__),_dec,_class;!function(){var e=__webpack_require__(1).enterModule;e&&e(module)}();var ContentBoolean=(_dec=react_css_modules__WEBPACK_IMPORTED_MODULE_6___default()(_ContentEdit_sss__WEBPACK_IMPORTED_MODULE_11___default.a,{allowMultiple:!0}),_dec(_class=function(_ContentBase){function ContentBoolean(){var e,t;_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this,ContentBoolean);for(var r=arguments.length,n=new Array(r),_=0;_this.maxTime)return this.validations.errorMsg?this.validations.errorMsg:"The time is out of range!";break;default:if(this.validations.minActive&&tthis.maxDateFull)return this.validations.errorMsg?this.validations.errorMsg:"The date/time is out of range!"}}},{key:"getInput",value:function(){var e=this.state.value,t="input-wrapper data-time-wrapper";switch(this.state.isEditable||(t+=" data-time-disabled"),this.field.appearance){case models_ModelData__WEBPACK_IMPORTED_MODULE_11__.c:return react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:t},react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"date"},react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement(react_flatpickr__WEBPACK_IMPORTED_MODULE_9___default.a,{value:e,options:{clickOpens:this.state.isEditable,altInput:!0,minDate:this.minDate,maxDate:this.maxDate},onChange:this.onChangeDate})),react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"time"},react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement(react_flatpickr__WEBPACK_IMPORTED_MODULE_9___default.a,{value:e,options:{clickOpens:this.state.isEditable,altInput:!0,noCalendar:!0,enableTime:!0,altFormat:"h:i K",minDate:this.minDateFull,maxDate:this.maxDateFull},onChange:this.onChangeTime})));case models_ModelData__WEBPACK_IMPORTED_MODULE_11__.d:return react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:t},react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"date"},react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement(react_flatpickr__WEBPACK_IMPORTED_MODULE_9___default.a,{value:e,options:{clickOpens:this.state.isEditable,altInput:!0,minDate:this.minDate,maxDate:this.maxDate},onChange:this.onChangeDate})));case models_ModelData__WEBPACK_IMPORTED_MODULE_11__.e:return console.log(this.minTime,this.maxTime),react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:t},react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"time",onClick:this.onClickTime},react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement(react_flatpickr__WEBPACK_IMPORTED_MODULE_9___default.a,{value:e,options:{clickOpens:this.state.isEditable,altInput:!0,noCalendar:!0,enableTime:!0,altFormat:"h:i K",minDate:this.minTime,maxDate:this.maxTime},onChange:this.onChangeTime})))}}},{key:"__reactstandin__regenerateByEval",value:function __reactstandin__regenerateByEval(key,code){this[key]=eval(code)}}]),ContentDate}(_ContentBase__WEBPACK_IMPORTED_MODULE_10__.a))||_class);!function(){var e=__webpack_require__(1).default,t=__webpack_require__(1).leaveModule;e&&(e.register(ContentDate,"ContentDate","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/components/mainArea/content/ContentEdit/elements/ContentDate.js"),t(module))}()}).call(this,__webpack_require__(12)(module))},function(module,__webpack_exports__,__webpack_require__){"use strict";(function(module){__webpack_require__.d(__webpack_exports__,"a",function(){return ContentReference});var core_js_modules_es6_array_map__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(58),core_js_modules_es6_array_map__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(core_js_modules_es6_array_map__WEBPACK_IMPORTED_MODULE_0__),core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(32),core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_1__),core_js_modules_es7_symbol_async_iterator__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(52),core_js_modules_es7_symbol_async_iterator__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(core_js_modules_es7_symbol_async_iterator__WEBPACK_IMPORTED_MODULE_2__),core_js_modules_es6_symbol__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(53),core_js_modules_es6_symbol__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(core_js_modules_es6_symbol__WEBPACK_IMPORTED_MODULE_3__),core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(43),core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_4__),core_js_modules_es6_array_index_of__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(45),core_js_modules_es6_array_index_of__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(core_js_modules_es6_array_index_of__WEBPACK_IMPORTED_MODULE_5__),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(2),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_6__),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(3),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_7___default=__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_7__),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(5),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_8___default=__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_8__),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(4),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_9___default=__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_9__),_babel_runtime_helpers_get__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(69),_babel_runtime_helpers_get__WEBPACK_IMPORTED_MODULE_10___default=__webpack_require__.n(_babel_runtime_helpers_get__WEBPACK_IMPORTED_MODULE_10__),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(6),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_11___default=__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_11__),react__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(0),react__WEBPACK_IMPORTED_MODULE_12___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_12__),react_css_modules__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(10),react_css_modules__WEBPACK_IMPORTED_MODULE_13___default=__webpack_require__.n(react_css_modules__WEBPACK_IMPORTED_MODULE_13__),svg_inline_react__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(18),svg_inline_react__WEBPACK_IMPORTED_MODULE_14___default=__webpack_require__.n(svg_inline_react__WEBPACK_IMPORTED_MODULE_14__),_ContentBase__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(66),ducks_nav__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(7),utils_data__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__(15),models_ContentData__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__(31),_ContentEdit_sss__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__(828),_ContentEdit_sss__WEBPACK_IMPORTED_MODULE_19___default=__webpack_require__.n(_ContentEdit_sss__WEBPACK_IMPORTED_MODULE_19__),_dec,_class;!function(){var e=__webpack_require__(1).enterModule;e&&e(module)}();var ContentReference=(_dec=react_css_modules__WEBPACK_IMPORTED_MODULE_13___default()(_ContentEdit_sss__WEBPACK_IMPORTED_MODULE_19___default.a,{allowMultiple:!0}),_dec(_class=function(_ContentBase){function ContentReference(e){var t;if(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_6___default()(this,ContentReference),(t=_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_8___default()(this,_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_9___default()(ContentReference).call(this,e))).item=null,t.addingItem=null,t.validModels=null,t.onReferenceNew=function(){if(t.state.isEditable){t.props.showModal(ducks_nav__WEBPACK_IMPORTED_MODULE_16__.e,{callback:function(e){t.addingItem=new models_ContentData__WEBPACK_IMPORTED_MODULE_18__.a,t.addingItem.model=e,t.props.addItem(t.addingItem);var r=t.state.value;r||(r=[]),t.setValue(r.concat(t.addingItem),!0)},validModels:t.validModels})}},t.onReferencesChoose=function(){if(t.state.isEditable){var e=t.state.value;e||(e=[]),t.props.showModal(ducks_nav__WEBPACK_IMPORTED_MODULE_16__.f,{currentItem:t.item,isMult:t.field.isList,existingItems:e,validModels:t.validModels,callback:function(r){return t.setValue(e.concat(r),!0)}})}},t.onReferenceClear=function(e,r){if(e.stopPropagation(),t.state.isEditable){var n=t.state.value;r?n.splice(n.indexOf(r),1):n.splice(0,n.length),t.setValue(n,!0)}},t.item=t.props.item,t.field.validations&&t.field.validations.models&&t.field.validations.models.active){var r=t.field.validations.models.modelsList;r&&r.length&&(t.validModels=r)}return t}return _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_11___default()(ContentReference,_ContentBase),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_7___default()(ContentReference,[{key:"componentWillReceiveProps",value:function(e){this.item=e.item,_babel_runtime_helpers_get__WEBPACK_IMPORTED_MODULE_10___default()(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_9___default()(ContentReference.prototype),"componentWillReceiveProps",this).call(this,e)}},{key:"getError",value:function(){var e=_babel_runtime_helpers_get__WEBPACK_IMPORTED_MODULE_10___default()(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_9___default()(ContentReference.prototype),"getError",this).call(this);if(e)return e;var t=this.state.value;if(t&&t.length){var r=!0,n=!1,_=void 0;try{for(var a,i=t[Symbol.iterator]();!(r=(a=i.next()).done);r=!0){var o=a.value;if(!Object(utils_data__WEBPACK_IMPORTED_MODULE_17__.i)(o))return"The referred content item is not exists!";var s=o.model.nameId;if(this.validModels&&-1==this.validModels.indexOf(s))return this.field.validations.models.errorMsg?this.field.validations.models.errorMsg:"The referred content item has an illegal model!"}}catch(e){n=!0,_=e}finally{try{r||null==i.return||i.return()}finally{if(n)throw _}}}}},{key:"getInput",value:function(){var e=this,t=this.state.value,r=function(t){var r=Object(utils_data__WEBPACK_IMPORTED_MODULE_17__.i)(t);e.addingItem==t&&(r=!0);var n=t.origin&&t.origin.id?t.origin.id:Math.random();if(r){var _=t.title?t.title:"Untitled",a=t.title?"":"untitled";return react__WEBPACK_IMPORTED_MODULE_12___default.a.createElement("div",{styleName:"reference-item",key:n,onClick:function(){return e.props.onReferenceClick(t)}},react__WEBPACK_IMPORTED_MODULE_12___default.a.createElement("span",{styleName:"reference-title"},"[",t.model.name,"]",react__WEBPACK_IMPORTED_MODULE_12___default.a.createElement("span",{styleName:a}," ",_)),react__WEBPACK_IMPORTED_MODULE_12___default.a.createElement(svg_inline_react__WEBPACK_IMPORTED_MODULE_14___default.a,{styleName:"reference-cross",src:__webpack_require__(77),onClick:function(r){return e.onReferenceClear(r,t)}}))}return react__WEBPACK_IMPORTED_MODULE_12___default.a.createElement("div",{styleName:"reference-item",key:n,onClick:function(r){return e.onReferenceClear(r,t)}},react__WEBPACK_IMPORTED_MODULE_12___default.a.createElement("input",{type:"text",value:"Error: item was deleted. Click to reset.",readOnly:!0}))},n="reference-button";this.state.isEditable||(n+=" reference-button-disabled");var _=react__WEBPACK_IMPORTED_MODULE_12___default.a.createElement("div",{styleName:"reference-buttons"},react__WEBPACK_IMPORTED_MODULE_12___default.a.createElement("div",{styleName:n+" reference-new",onClick:this.onReferenceNew},"Create new entry"),react__WEBPACK_IMPORTED_MODULE_12___default.a.createElement("div",{styleName:n+" reference-insert",onClick:this.onReferencesChoose},"Insert Existing Entry")),a=_;return this.field.isList?t&&t.length&&(a=react__WEBPACK_IMPORTED_MODULE_12___default.a.createElement("div",null,t.map(r),_)):t&&t.length&&(a=r(t[0])),react__WEBPACK_IMPORTED_MODULE_12___default.a.createElement("div",{styleName:"reference"},a)}},{key:"__reactstandin__regenerateByEval",value:function __reactstandin__regenerateByEval(key,code){this[key]=eval(code)}}]),ContentReference}(_ContentBase__WEBPACK_IMPORTED_MODULE_15__.a))||_class);!function(){var e=__webpack_require__(1).default,t=__webpack_require__(1).leaveModule;e&&(e.register(ContentReference,"ContentReference","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/components/mainArea/content/ContentEdit/elements/ContentReference.js"),t(module))}()}).call(this,__webpack_require__(12)(module))},function(module,__webpack_exports__,__webpack_require__){"use strict";(function(module){__webpack_require__.d(__webpack_exports__,"a",function(){return ContentMedia});var core_js_modules_es6_array_map__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(58),core_js_modules_es6_array_map__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(core_js_modules_es6_array_map__WEBPACK_IMPORTED_MODULE_0__),core_js_modules_es6_array_index_of__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(45),core_js_modules_es6_array_index_of__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(core_js_modules_es6_array_index_of__WEBPACK_IMPORTED_MODULE_1__),core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(32),core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_2__),core_js_modules_es7_symbol_async_iterator__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(52),core_js_modules_es7_symbol_async_iterator__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(core_js_modules_es7_symbol_async_iterator__WEBPACK_IMPORTED_MODULE_3__),core_js_modules_es6_symbol__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(53),core_js_modules_es6_symbol__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(core_js_modules_es6_symbol__WEBPACK_IMPORTED_MODULE_4__),core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(43),core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_5__),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(2),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_6__),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(3),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_7___default=__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_7__),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(5),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_8___default=__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_8__),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(4),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_9___default=__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_9__),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(6),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_10___default=__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_10__),react__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(0),react__WEBPACK_IMPORTED_MODULE_11___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_11__),react_css_modules__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(10),react_css_modules__WEBPACK_IMPORTED_MODULE_12___default=__webpack_require__.n(react_css_modules__WEBPACK_IMPORTED_MODULE_12__),svg_inline_react__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(18),svg_inline_react__WEBPACK_IMPORTED_MODULE_13___default=__webpack_require__.n(svg_inline_react__WEBPACK_IMPORTED_MODULE_13__),parse__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(14),parse__WEBPACK_IMPORTED_MODULE_14___default=__webpack_require__.n(parse__WEBPACK_IMPORTED_MODULE_14__),_ContentBase__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(66),models_MediaItemData__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(144),ConnectConstants__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__(102),ducks_nav__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__(7),utils_common__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__(20),components_elements_MediaView_MediaView__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__(173),_ContentEdit_sss__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__(828),_ContentEdit_sss__WEBPACK_IMPORTED_MODULE_21___default=__webpack_require__.n(_ContentEdit_sss__WEBPACK_IMPORTED_MODULE_21__),_dec,_class;!function(){var e=__webpack_require__(1).enterModule;e&&e(module)}();var AUTOSAVE_TIMEOUT=2e3,ContentMedia=(_dec=react_css_modules__WEBPACK_IMPORTED_MODULE_12___default()(_ContentEdit_sss__WEBPACK_IMPORTED_MODULE_21___default.a,{allowMultiple:!0}),_dec(_class=function(_ContentBase){function ContentMedia(e){var t;return _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_6___default()(this,ContentMedia),(t=_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_8___default()(this,_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_9___default()(ContentMedia).call(this,e))).site=null,t.mediaTimeouts=[],t.onMediaChoose=function(){t.state.isEditable&&t.props.showModal(ducks_nav__WEBPACK_IMPORTED_MODULE_18__.d,{isMult:t.field.isList,callback:function(e){var r=[],n=!0,_=!1,a=void 0;try{for(var i,o=e[Symbol.iterator]();!(n=(i=o.next()).done);n=!0){var s=i.value.clone();t.props.addMediaItem(s),r.push(s)}}catch(e){_=!0,a=e}finally{try{n||null==o.return||o.return()}finally{if(_)throw a}}if(t.field.isList){var l=t.state.value;l||(l=[]),t.setValue(l.concat(r),!0)}else t.setValue(r[0],!0)}})},t.onMediaNew=function(e){var r=e.target.files[0];if(r)if(r.size>ConnectConstants__WEBPACK_IMPORTED_MODULE_17__.a){t.setState({error:"Your file's size exceeds a limit of 10 MB."})}else{var n=new parse__WEBPACK_IMPORTED_MODULE_14__.Parse.File(Object(utils_common__WEBPACK_IMPORTED_MODULE_19__.d)(r.name),r,r.type);n.save().then(function(){var e=t.props.addMediaItem,_=new models_MediaItemData__WEBPACK_IMPORTED_MODULE_16__.a;if(_.file=n,_.name=Object(utils_common__WEBPACK_IMPORTED_MODULE_19__.j)(r.name),_.type=r.type,_.site=t.site,e(_),(_=_.clone()).assigned=!0,e(_),t.field.isList){var a=t.state.value;a||(a=[]),t.setValue(a.concat(_),!0)}else t.setValue(_,!0)})}},t.site=e.site,t}return _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_10___default()(ContentMedia,_ContentBase),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_7___default()(ContentMedia,[{key:"onMediaClear",value:function(e){if(this.props.removeMediaItem(e),this.field.isList){var t=this.state.value;t.splice(t.indexOf(e),1),this.setValue(t,!0)}else this.setValue(null,!0)}},{key:"onMediaNameChange",value:function(e,t){var r=this,n=e.target.value;t.name=n,this.mediaTimeouts[t.key]||(this.mediaTimeouts[t.key]=setTimeout(function(){r.props.updateMediaItem(t),r.mediaTimeouts[t.key]=0},AUTOSAVE_TIMEOUT)),this.setValue(this.state.value)}},{key:"getInput",value:function(){var e=this,t=this.state.value,r=function(t){return react__WEBPACK_IMPORTED_MODULE_11___default.a.createElement("div",{styleName:"media-item",key:t.key},react__WEBPACK_IMPORTED_MODULE_11___default.a.createElement("div",{styleName:"media-header"},react__WEBPACK_IMPORTED_MODULE_11___default.a.createElement("input",{type:"text",placeholder:"File name",readOnly:!e.state.isEditable,onChange:function(r){return e.onMediaNameChange(r,t)},value:t.name}),e.state.isEditable&&react__WEBPACK_IMPORTED_MODULE_11___default.a.createElement(svg_inline_react__WEBPACK_IMPORTED_MODULE_13___default.a,{styleName:"media-cross",src:__webpack_require__(77),onClick:function(){return e.onMediaClear(t)}})),react__WEBPACK_IMPORTED_MODULE_11___default.a.createElement(components_elements_MediaView_MediaView__WEBPACK_IMPORTED_MODULE_20__.a,{item:t}))},n="media-button";this.state.isEditable||(n+=" media-button-disabled");var _=react__WEBPACK_IMPORTED_MODULE_11___default.a.createElement("div",{styleName:"media-buttons"},react__WEBPACK_IMPORTED_MODULE_11___default.a.createElement("div",{type:"file",styleName:n+" media-upload"},"Upload New",react__WEBPACK_IMPORTED_MODULE_11___default.a.createElement("input",{styleName:"media-hidden",type:"file",disabled:!this.state.isEditable,onChange:this.onMediaNew})),react__WEBPACK_IMPORTED_MODULE_11___default.a.createElement("div",{styleName:n+" media-insert",onClick:this.onMediaChoose},"Insert Existing")),a=_;return this.field.isList?t&&t.length&&(a=react__WEBPACK_IMPORTED_MODULE_11___default.a.createElement("div",null,t.map(r),_)):t&&t.file&&(a=r(t)),react__WEBPACK_IMPORTED_MODULE_11___default.a.createElement("div",{styleName:"media"},a)}},{key:"__reactstandin__regenerateByEval",value:function __reactstandin__regenerateByEval(key,code){this[key]=eval(code)}}]),ContentMedia}(_ContentBase__WEBPACK_IMPORTED_MODULE_15__.a))||_class);!function(){var e=__webpack_require__(1).default,t=__webpack_require__(1).leaveModule;e&&(e.register(AUTOSAVE_TIMEOUT,"AUTOSAVE_TIMEOUT","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/components/mainArea/content/ContentEdit/elements/ContentMedia.js"),e.register(ContentMedia,"ContentMedia","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/components/mainArea/content/ContentEdit/elements/ContentMedia.js"),t(module))}()}).call(this,__webpack_require__(12)(module))},function(module,__webpack_exports__,__webpack_require__){"use strict";(function(module){var core_js_modules_es6_promise__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(134),core_js_modules_es6_promise__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(core_js_modules_es6_promise__WEBPACK_IMPORTED_MODULE_0__),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(2),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(3),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(5),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(4),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(6),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5__),react__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(0),react__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_6__),redux__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(22),react_redux__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(28),react_helmet__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(34),react_helmet__WEBPACK_IMPORTED_MODULE_9___default=__webpack_require__.n(react_helmet__WEBPACK_IMPORTED_MODULE_9__),react_css_modules__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(10),react_css_modules__WEBPACK_IMPORTED_MODULE_10___default=__webpack_require__.n(react_css_modules__WEBPACK_IMPORTED_MODULE_10__),components_elements_InputControl_InputControl__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(17),components_elements_ButtonControl_ButtonControl__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(23),components_elements_ContainerComponent_ContainerComponent__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(56),ducks_user__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(24),utils_initialize__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(70),utils_common__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(20),utils_data__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__(15),_UserProfile_sss__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__(830),_UserProfile_sss__WEBPACK_IMPORTED_MODULE_18___default=__webpack_require__.n(_UserProfile_sss__WEBPACK_IMPORTED_MODULE_18__),_dec,_class;!function(){var e=__webpack_require__(1).enterModule;e&&e(module)}();var CHG_DATA="CHG_DATA",CHG_EMAIL="CHG_EMAIL",CHG_PASSWORD="CHG_PASSWORD",CHG_SERVER="CHG_SERVER",UserProfile=(_dec=react_css_modules__WEBPACK_IMPORTED_MODULE_10___default()(_UserProfile_sss__WEBPACK_IMPORTED_MODULE_18___default.a,{allowMultiple:!0}),_dec(_class=function(_Component){function UserProfile(e){var t;_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this,UserProfile),(t=_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this,_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(UserProfile).call(this,e))).state={firstName:"",lastName:"",dirtyData:!1,errorData:null,successData:"",email:"",emailNew:"",dirtyEmail:!1,errorEmail:null,successEmailState:!1,passwordOld:"",password:"",passwordConfirm:"",dirtyPassword:!1,errorPassword:null,successPassword:"",serverURL:"",dirtyServer:!1,errorServer:null,successServer:""},t.userData=null,t.lastChange=null,t.onSaveData=function(e){(e.preventDefault(),t.state.dirtyData&&!t.state.errorData)&&(t.validateData()&&(t.setState({dirtyData:!1}),t.lastChange=CHG_DATA,t.userData.firstName=t.state.firstName,t.userData.lastName=t.state.lastName,(0,t.props.userActions.update)(t.userData)))},t.onSaveEmail=function(e){(e.preventDefault(),t.state.dirtyEmail&&!t.state.errorEmail)&&(t.validateEmail()&&(t.setState({dirtyEmail:!1}),t.lastChange=CHG_EMAIL,(0,t.props.userActions.updateEmail)(t.state.emailNew)))},t.onSavePassword=function(e){e.preventDefault(),t.state.dirtyPassword&&!t.state.errorPassword&&t.validatePassword().then(function(){(0,t.props.userActions.updatePassword)(t.state.password),t.lastChange=CHG_PASSWORD,t.setState({passwordOld:"",password:"",passwordConfirm:"",dirtyPassword:!1})}).catch(function(){})},t.onSaveServer=function(e){e.preventDefault(),t.state.dirtyServer&&!t.state.errorServer&&t.validateServer()&&(t.setState({dirtyServer:!1}),t.lastChange=CHG_SERVER,Object(utils_initialize__WEBPACK_IMPORTED_MODULE_15__.a)(t.state.serverURL),t.setState({successServer:"Server was successfully changed!"}),setTimeout(function(){return t.setState({successServer:""})},2500))},t.onChangeFirstName=function(e){var r=e.target.value;t.setState({firstName:r,dirtyData:!0,errorData:null})},t.onChangeLastName=function(e){var r=e.target.value;t.setState({lastName:r,dirtyData:!0,errorData:null})},t.onChangeEmail=function(e){var r=e.target.value;t.setState({emailNew:r,dirtyEmail:r!=t.userData.emailNew,errorEmail:null})},t.onChangePasswordOld=function(e){var r=e.target.value,n=!!r||!!t.state.password||!!t.state.passwordConfirm;t.setState({passwordOld:r,dirtyPassword:n,errorPassword:null})},t.onChangePassword=function(e){var r=e.target.value,n=!!r||!!t.state.passwordOld||!!t.state.passwordConfirm;t.setState({password:r,dirtyPassword:n,errorPassword:null})},t.onChangePasswordConfirm=function(e){var r=e.target.value,n=!!r||!!t.state.passwordOld||!!t.state.password;t.setState({passwordConfirm:r,dirtyPassword:n,errorPassword:null})},t.onChangeServerURL=function(e){var r=e.target.value;t.setState({serverURL:r,dirtyServer:!0,errorServer:null})},t.resendVerification=function(e){(0,t.props.userActions.resendVerEmail)()};var r=e.user;return t.userData=r.userData,t.state.firstName=t.userData.firstName,t.state.lastName=t.userData.lastName,t.state.email=t.userData.email,t.userData.emailNew?(t.state.emailNew=t.userData.emailNew,t.state.successEmailState=!0):t.state.emailNew=t.userData.email,t.state.serverURL=utils_initialize__WEBPACK_IMPORTED_MODULE_15__.b.serverURL,t}return _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5___default()(UserProfile,_Component),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default()(UserProfile,[{key:"componentWillReceiveProps",value:function(e){var t=this,r=e.user;switch(this.lastChange){case CHG_DATA:this.setState({successData:"Data was successfully changed!"}),setTimeout(function(){return t.setState({successData:""})},2500);break;case CHG_EMAIL:var n=null;switch(r.error){case ducks_user__WEBPACK_IMPORTED_MODULE_14__.c:n="The user with this email also exists!";break;case ducks_user__WEBPACK_IMPORTED_MODULE_14__.a:n="Unknown error!"}n?this.setState({emailNew:this.userData.emailNew?this.userData.emailNew:this.userData.email,errorEmail:n}):this.setState({successEmailState:!0});break;case CHG_PASSWORD:this.setState({successPassword:"Password was successfully changed!"}),setTimeout(function(){return t.setState({successPassword:""})},2500)}}},{key:"validateData",value:function(){return!0}},{key:"validateEmail",value:function(){return!!Object(utils_common__WEBPACK_IMPORTED_MODULE_16__.b)(this.state.emailNew)||(this.setState({errorEmail:"Invalid email!"}),!1)}},{key:"validatePassword",value:function(){var e=this;return this.state.password!=this.state.passwordConfirm?(this.setState({errorPassword:"Passwords don't match!"}),Promise.reject()):Object(utils_data__WEBPACK_IMPORTED_MODULE_17__.l)(this.state.passwordOld).catch(function(t){return e.setState({errorPassword:"Wrong old password!"}),Promise.reject()})}},{key:"validateServer",value:function(){return!!Object(utils_common__WEBPACK_IMPORTED_MODULE_16__.c)(this.state.serverURL)||(this.setState({errorServer:"Invalid URL!"}),!1)}},{key:"render",value:function(){return react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{className:"mainArea"},react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement(react_helmet__WEBPACK_IMPORTED_MODULE_9__.Helmet,null,react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("title",null,"User profile - Chisel")),react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement(components_elements_ContainerComponent_ContainerComponent__WEBPACK_IMPORTED_MODULE_13__.a,{title:"User profile"},react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"content"},react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("form",{styleName:"section",onSubmit:this.onSaveData},react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"section-header"},"Your personal data"),react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"field"},react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"field-title"},"First name"),react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"input-wrapper"},react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement(components_elements_InputControl_InputControl__WEBPACK_IMPORTED_MODULE_11__.a,{type:"big",value:this.state.firstName,onChange:this.onChangeFirstName}))),react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"field"},react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"field-title"},"Last name"),react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"input-wrapper"},react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement(components_elements_InputControl_InputControl__WEBPACK_IMPORTED_MODULE_11__.a,{type:"big",value:this.state.lastName,onChange:this.onChangeLastName}))),react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"buttons-wrapper"},react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement(components_elements_ButtonControl_ButtonControl__WEBPACK_IMPORTED_MODULE_12__.a,{color:"green",type:"submit",disabled:!this.state.dirtyData||this.state.errorData,value:"Update personal data"})),react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"field-success"},this.state.successData),react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"field-error"},this.state.errorData)),react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("form",{styleName:"section",onSubmit:this.onSaveEmail},react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"section-header"},"Your email"),react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"field"},react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"field-title"},"Email"),react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"input-wrapper"},react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement(components_elements_InputControl_InputControl__WEBPACK_IMPORTED_MODULE_11__.a,{type:"big",value:this.state.emailNew,onChange:this.onChangeEmail}))),react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"buttons-wrapper"},react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement(components_elements_ButtonControl_ButtonControl__WEBPACK_IMPORTED_MODULE_12__.a,{color:"green",type:"submit",disabled:!this.state.dirtyEmail||this.state.errorEmail,value:"Change email"})),this.state.successEmailState&&react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"field-success"},react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",null,"Your email was changed. We've sent to your new email a link to confirm it. You can use your old email ",react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("b",null,this.state.email)," before confirmation."),react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"field-success-resend",onClick:this.resendVerification},"Resend confirmation email")),react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"field-error"},this.state.errorEmail)),react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("form",{styleName:"section",onSubmit:this.onSavePassword},react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"section-header"},"Changing password"),react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"field"},react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"field-title"},"Enter old password"),react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"input-wrapper"},react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement(components_elements_InputControl_InputControl__WEBPACK_IMPORTED_MODULE_11__.a,{type:"big",inputType:"password",value:this.state.passwordOld,onChange:this.onChangePasswordOld}))),react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"field"},react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"field-title"},"Enter new password"),react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"input-wrapper"},react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement(components_elements_InputControl_InputControl__WEBPACK_IMPORTED_MODULE_11__.a,{type:"big",inputType:"password",value:this.state.password,onChange:this.onChangePassword}))),react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"field"},react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"field-title"},"Confirm new password"),react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"input-wrapper"},react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement(components_elements_InputControl_InputControl__WEBPACK_IMPORTED_MODULE_11__.a,{type:"big",inputType:"password",value:this.state.passwordConfirm,onChange:this.onChangePasswordConfirm}))),react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"buttons-wrapper"},react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement(components_elements_ButtonControl_ButtonControl__WEBPACK_IMPORTED_MODULE_12__.a,{color:"green",type:"submit",disabled:!this.state.dirtyPassword||this.state.errorPassword,value:"Set new password"})),react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"field-success"},this.state.successPassword),react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"field-error"},this.state.errorPassword)),react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("form",{styleName:"section",onSubmit:this.onSaveServer},react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"section-header"},"Parse server data"),react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"field"},react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"field-title"},"Server URL"),react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"input-wrapper"},react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement(components_elements_InputControl_InputControl__WEBPACK_IMPORTED_MODULE_11__.a,{type:"big",value:this.state.serverURL,onChange:this.onChangeServerURL}))),react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"buttons-wrapper"},react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement(components_elements_ButtonControl_ButtonControl__WEBPACK_IMPORTED_MODULE_12__.a,{color:"green",type:"submit",disabled:!this.state.dirtyServer||this.state.errorServer,value:"Update server data"})),react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"field-success"},this.state.successServer),react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"field-error"},this.state.errorServer)))))}},{key:"__reactstandin__regenerateByEval",value:function __reactstandin__regenerateByEval(key,code){this[key]=eval(code)}}]),UserProfile}(react__WEBPACK_IMPORTED_MODULE_6__.Component))||_class);function mapStateToProps(e){return{user:e.user}}function mapDispatchToProps(e){return{userActions:Object(redux__WEBPACK_IMPORTED_MODULE_7__.b)({update:ducks_user__WEBPACK_IMPORTED_MODULE_14__.q,updateEmail:ducks_user__WEBPACK_IMPORTED_MODULE_14__.r,updatePassword:ducks_user__WEBPACK_IMPORTED_MODULE_14__.s,resendVerEmail:ducks_user__WEBPACK_IMPORTED_MODULE_14__.n},e)}}var _default=Object(react_redux__WEBPACK_IMPORTED_MODULE_8__.b)(mapStateToProps,mapDispatchToProps)(UserProfile);__webpack_exports__.a=_default,function(){var e=__webpack_require__(1).default,t=__webpack_require__(1).leaveModule;e&&(e.register(CHG_DATA,"CHG_DATA","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/containers/MainArea/UserProfile/UserProfile.js"),e.register(CHG_EMAIL,"CHG_EMAIL","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/containers/MainArea/UserProfile/UserProfile.js"),e.register(CHG_PASSWORD,"CHG_PASSWORD","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/containers/MainArea/UserProfile/UserProfile.js"),e.register(CHG_SERVER,"CHG_SERVER","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/containers/MainArea/UserProfile/UserProfile.js"),e.register(UserProfile,"UserProfile","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/containers/MainArea/UserProfile/UserProfile.js"),e.register(mapStateToProps,"mapStateToProps","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/containers/MainArea/UserProfile/UserProfile.js"),e.register(mapDispatchToProps,"mapDispatchToProps","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/containers/MainArea/UserProfile/UserProfile.js"),e.register(_default,"default","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/containers/MainArea/UserProfile/UserProfile.js"),t(module))}()}).call(this,__webpack_require__(12)(module))},function(module,__webpack_exports__,__webpack_require__){"use strict";(function(module){var core_js_modules_es6_regexp_replace__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(107),core_js_modules_es6_regexp_replace__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(core_js_modules_es6_regexp_replace__WEBPACK_IMPORTED_MODULE_0__),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(2),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(3),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(5),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(4),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(6),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5__),react__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(0),react__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_6__),react_redux__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(28),react_css_modules__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(10),react_css_modules__WEBPACK_IMPORTED_MODULE_8___default=__webpack_require__.n(react_css_modules__WEBPACK_IMPORTED_MODULE_8__),react_helmet__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(34),react_helmet__WEBPACK_IMPORTED_MODULE_9___default=__webpack_require__.n(react_helmet__WEBPACK_IMPORTED_MODULE_9__),react_router__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(16),components_elements_ButtonControl_ButtonControl__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(23),ducks_nav__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(7),_EmailVerify_sss__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(832),_EmailVerify_sss__WEBPACK_IMPORTED_MODULE_13___default=__webpack_require__.n(_EmailVerify_sss__WEBPACK_IMPORTED_MODULE_13__),_dec,_class;!function(){var e=__webpack_require__(1).enterModule;e&&e(module)}();var EmailVerify=(_dec=react_css_modules__WEBPACK_IMPORTED_MODULE_8___default()(_EmailVerify_sss__WEBPACK_IMPORTED_MODULE_13___default.a,{allowMultiple:!0}),_dec(_class=function(_Component){function EmailVerify(){var e,t;_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this,EmailVerify);for(var r=arguments.length,n=new Array(r),_=0;_"']/g,y=RegExp(D.source),w=/^(?:0|[1-9]\d*)$/,T="object"==typeof e&&e&&e.Object===Object&&e,A="object"==typeof self&&self&&self.Object===Object&&self,k=T||A||Function("return this")();t&&!t.nodeType&&t&&"object"==typeof n&&n&&n.nodeType;function I(e,t){return e.push.apply(e,t),e}function R(e){return function(t){return null==t?a:t[e]}}var L=function(e){return function(t){return null==e?a:e[t]}}({"&":"&","<":"<",">":">",'"':""","'":"'"});var B=Array.prototype,U=Object.prototype,S=U.hasOwnProperty,K=0,W=U.toString,x=k._,j=Object.create,N=U.propertyIsEnumerable,q=k.isFinite,F=function(e,t){return function(r){return e(t(r))}}(Object.keys,Object),V=Math.max;function H(e){return e instanceof G?e:new G(e)}var z=function(){function e(){}return function(t){if(!Ne(t))return{};if(j)return j(t);e.prototype=t;var r=new e;return e.prototype=a,r}}();function G(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t}function Y(e,t,r){var n=e[t];S.call(e,t)&&Ue(n,r)&&(r!==a||t in e)||J(e,t,r)}function J(e,t,r){e[t]=r}function X(e,t,r){if("function"!=typeof e)throw new TypeError(i);return setTimeout(function(){e.apply(a,r)},t)}G.prototype=z(H.prototype),G.prototype.constructor=G;var Q=function(e,t){return function(r,n){if(null==r)return r;if(!We(r))return e(r,n);for(var _=r.length,a=t?_:-1,i=Object(r);(t?a--:++a<_)&&!1!==n(i[a],a,i););return r}}(re);function $(e,t,r){for(var n=-1,_=e.length;++n<_;){var i=e[n],o=t(i);if(null!=o&&(s===a?o==o:r(o,s)))var s=o,l=i}return l}function Z(e,t){var r=[];return Q(e,function(e,n,_){t(e,n,_)&&r.push(e)}),r}function ee(e,t,r,n,_){var a=-1,i=e.length;for(r||(r=be),_||(_=[]);++a0&&r(o)?t>1?ee(o,t-1,r,n,_):I(_,o):n||(_[_.length]=o)}return _}var te=function(e){return function(t,r,n){for(var _=-1,a=Object(t),i=n(t),o=i.length;o--;){var s=i[e?o:++_];if(!1===r(a[s],s,a))break}return t}}();function re(e,t){return e&&te(e,t,$e)}function ne(e,t){return Z(t,function(t){return je(e[t])})}function _e(e){return function(e){return W.call(e)}(e)}function ae(e,t){return e>t}var ie=at;function oe(e,t,r,n,_){return e===t||(null==e||null==t||!qe(e)&&!qe(t)?e!=e&&t!=t:function(e,t,r,n,_,i){var l=Ke(e),u=Ke(t),c=l?f:_e(e),p=u?f:_e(t),g=(c=c==d?O:c)==O,b=(p=p==d?O:p)==O,M=c==p;i||(i=[]);var D=Te(i,function(t){return t[0]==e}),y=Te(i,function(e){return e[0]==t});if(D&&y)return D[1]==t;if(i.push([e,t]),i.push([t,e]),M&&!g){var w=l?function(e,t,r,n,_,i){var l=r&o,u=e.length,c=t.length;if(u!=c&&!(l&&c>u))return!1;var d=-1,f=!0,p=r&s?[]:a;for(;++d_?0:_+t),(r=r>_?_:r)<0&&(r+=_),_=t>r?0:r-t>>>0,t>>>=0;for(var a=Array(_);++n<_;)a[n]=e[n+t];return a}function pe(e){return fe(e,0,e.length)}function he(e,t){var r;return Q(e,function(e,n,_){return!(r=t(e,n,_))}),!!r}function Ee(e,t,r,n){var _=!r;r||(r={});for(var i=-1,o=t.length;++i1?r[_-1]:a;for(i=e.length>3&&"function"==typeof i?(_--,i):a,t=Object(t);++n<_;){var o=r[n];o&&e(t,o,n,i)}return t})}function ge(e,t,r,n){if("function"!=typeof e)throw new TypeError(i);var _=t&l,a=function(e){return function(){var t=arguments,r=z(e.prototype),n=e.apply(r,t);return Ne(n)?n:r}}(e);return function t(){for(var i=-1,o=arguments.length,s=-1,l=n.length,u=Array(l+o),c=this&&this!==k&&this instanceof t?a:e;++s-1&&e%1==0&&e-1?_[i?t[o]:o]:a}}(function(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var _=null==r?0:ze(r);return _<0&&(_=V(n+_,0)),function(e,t,r,n){for(var _=e.length,a=r+(n?1:-1);n?a--:++a<_;)if(t(e[a],a,e))return a;return-1}(e,se(t),_)});function Ae(e,t){return Q(e,se(t))}function ke(e,t,r){return function(e,t,r,n,_){return _(e,function(e,_,a){r=n?(n=!1,e):t(r,e,_,a)}),r}(e,se(t),r,arguments.length<3,Q)}function Ie(e,t){var r;if("function"!=typeof t)throw new TypeError(i);return e=ze(e),function(){return--e>0&&(r=t.apply(this,arguments)),e<=1&&(t=a),r}}var Re=de(function(e,t,r){return ge(e,32|l,t,r)}),Le=de(function(e,t){return X(e,1,t)}),Be=de(function(e,t,r){return X(e,Ge(t)||0,r)});function Ue(e,t){return e===t||e!=e&&t!=t}var Se=ie(function(){return arguments}())?ie:function(e){return qe(e)&&S.call(e,"callee")&&!N.call(e,"callee")},Ke=Array.isArray;function We(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=c}(e.length)&&!je(e)}var xe=function(e){return qe(e)&&_e(e)==E};function je(e){if(!Ne(e))return!1;var t=_e(e);return t==g||t==b||t==p||t==M}function Ne(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function qe(e){return null!=e&&"object"==typeof e}function Fe(e){return"number"==typeof e||qe(e)&&_e(e)==v}var Ve=function(e){return qe(e)&&_e(e)==C};function He(e){return"string"==typeof e||!Ke(e)&&qe(e)&&_e(e)==P}var ze=Number,Ge=Number;function Ye(e){return"string"==typeof e?e:null==e?"":e+""}var Je=me(function(e,t){Ee(t,F(t),e)}),Xe=me(function(e,t){Ee(t,Oe(t),e)});var Qe=de(function(e,t){e=Object(e);var r=-1,n=t.length,_=n>2?t[2]:a;for(_&&ve(t[0],t[1],_)&&(n=1);++rt||n&&i&&s||!r&&s||!_)return 1;if(!n&&e0&&void 0!==arguments[0]?arguments[0]:"/",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.POP,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n="string"==typeof e?(0,i.parsePath)(e):e;return{pathname:n.pathname||"/",search:n.search||"",hash:n.hash||"",state:n.state,action:t,key:r}};var l=function(e){return"[object Date]"===Object.prototype.toString.call(e)},u=t.statesAreEqual=function e(t,r){if(t===r)return!0;var _=void 0===t?"undefined":n(t);if(_!==(void 0===r?"undefined":n(r)))return!1;if("function"===_&&(0,a.default)(!1),"object"===_){if(l(t)&&l(r)&&(0,a.default)(!1),!Array.isArray(t)){var i=Object.keys(t),o=Object.keys(r);return i.length===o.length&&i.every(function(n){return e(t[n],r[n])})}return Array.isArray(r)&&t.length===r.length&&t.every(function(t,n){return e(t,r[n])})}return!1};t.locationsAreEqual=function(e,t){return e.key===t.key&&e.pathname===t.pathname&&e.search===t.search&&e.hash===t.hash&&u(e.state,t.state)}},function(e,t){var r={}.toString;e.exports=function(e){return r.call(e).slice(8,-1)}},function(e,t,r){var n=r(266),_=r(194);e.exports=Object.keys||function(e){return n(e,_)}},function(e,t,r){var n=r(122);e.exports=function(e){return Object(n(e))}},function(e,t,r){r(198)("replace",2,function(e,t,r){return[function(n,_){"use strict";var a=e(this),i=void 0==n?void 0:n[t];return void 0!==i?i.call(n,a,_):r.call(String(a),n,_)},r]})},function(e,t,r){"use strict";var n=r(26);Object.defineProperty(t,"__esModule",{value:!0}),t.opFromJSON=function(e){if(!e||!e.__op)return null;switch(e.__op){case"Delete":return new b;case"Increment":return new v(e.amount);case"Add":return new O((0,d.default)(e.objects));case"AddUnique":return new M((0,d.default)(e.objects));case"Remove":return new C((0,d.default)(e.objects));case"AddRelation":var t=(0,d.default)(e.objects);return Array.isArray(t)?new P(t,[]):new P([],[]);case"RemoveRelation":var r=(0,d.default)(e.objects);return Array.isArray(r)?new P([],r):new P([],[]);case"Batch":for(var n=[],_=[],a=0;a-1;)t.splice(n,1),n=t.indexOf(this._value[r]);if(this._value[r]instanceof p.default&&this._value[r].id)for(var _=0;_-1&&r.splice(t,1)}),this.relationsToAdd.forEach(function(e){r.indexOf(e)<0&&r.push(e)});var n=e.relationsToRemove.concat([]);this.relationsToAdd.forEach(function(e){var t=n.indexOf(e);t>-1&&n.splice(t,1)}),this.relationsToRemove.forEach(function(e){n.indexOf(e)<0&&n.push(e)});var _=new t(r,n);return _._targetClassName=this._targetClassName,_}throw new Error("Cannot merge Relation Op with the previous Op")}},{key:"toJSON",value:function(){var e=this,t=function(t){return{__type:"Pointer",className:e._targetClassName,objectId:t}},r=null,n=null;return this.relationsToAdd.length>0&&(r={__op:"AddRelation",objects:this.relationsToAdd.map(t)}),this.relationsToRemove.length>0&&(n={__op:"RemoveRelation",objects:this.relationsToRemove.map(t)}),r&&n?{__op:"Batch",ops:[r,n]}:r||n||{}}}]),t}(m);t.RelationOp=P},function(e,t,r){"use strict";var n=r(26);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r,n){return function e(t,r,n,f){if(t instanceof l.default){if(r)throw new Error("Parse Objects not allowed here");var p=t.id?t.className+":"+t.id:t;return n||!f||f.indexOf(p)>-1||t.dirty()||Object.keys(t._getServerData()).length<1?t.toPointer():(f=f.concat(p),t._toFullJSON(f))}if(t instanceof u.Op||t instanceof a.default||t instanceof o.default||t instanceof s.default||t instanceof c.default)return t.toJSON();if(t instanceof i.default){if(!t.url())throw new Error("Tried to encode an unsaved file.");return t.toJSON()}if("[object Date]"===d.call(t)){if(isNaN(t))throw new Error("Tried to encode an invalid date.");return{__type:"Date",iso:t.toJSON()}}if("[object RegExp]"===d.call(t)&&"string"==typeof t.source)return t.source;if(Array.isArray(t))return t.map(function(t){return e(t,r,n,f)});if(t&&"object"===(0,_.default)(t)){var h={};for(var E in t)h[E]=e(t[E],r,n,f);return h}return t}(e,!!t,!!r,n||[])};var _=n(r(41)),a=n(r(129)),i=n(r(98)),o=n(r(131)),s=n(r(208)),l=n(r(46)),u=r(107),c=n(r(88)),d=Object.prototype.toString},function(e,t,r){"use strict";var n=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.serialize=function(){return"Anchor: "+this.getAnchorKey()+":"+this.getAnchorOffset()+", Focus: "+this.getFocusKey()+":"+this.getFocusOffset()+", Is Backward: "+String(this.getIsBackward())+", Has Focus: "+String(this.getHasFocus())},t.prototype.getAnchorKey=function(){return this.get("anchorKey")},t.prototype.getAnchorOffset=function(){return this.get("anchorOffset")},t.prototype.getFocusKey=function(){return this.get("focusKey")},t.prototype.getFocusOffset=function(){return this.get("focusOffset")},t.prototype.getIsBackward=function(){return this.get("isBackward")},t.prototype.getHasFocus=function(){return this.get("hasFocus")},t.prototype.hasEdgeWithin=function(e,t,r){var n=this.getAnchorKey(),_=this.getFocusKey();if(n===_&&n===e){var a=this.getStartOffset();return t<=this.getEndOffset()&&a<=r}if(e!==n&&e!==_)return!1;var i=e===n?this.getAnchorOffset():this.getFocusOffset();return t<=i&&r>=i},t.prototype.isCollapsed=function(){return this.getAnchorKey()===this.getFocusKey()&&this.getAnchorOffset()===this.getFocusOffset()},t.prototype.getStartKey=function(){return this.getIsBackward()?this.getFocusKey():this.getAnchorKey()},t.prototype.getStartOffset=function(){return this.getIsBackward()?this.getFocusOffset():this.getAnchorOffset()},t.prototype.getEndKey=function(){return this.getIsBackward()?this.getAnchorKey():this.getFocusKey()},t.prototype.getEndOffset=function(){return this.getIsBackward()?this.getAnchorOffset():this.getFocusOffset()},t.createEmpty=function(e){return new t({anchorKey:e,anchorOffset:0,focusKey:e,focusOffset:0,isBackward:!1,hasFocus:!1})},t}((0,r(30).Record)({anchorKey:"",anchorOffset:0,focusKey:"",focusOffset:0,isBackward:!1,hasFocus:!1}));e.exports=n},function(e,t,r){"use strict";function n(e){return e.replace(/\//g,"-")}e.exports=function(e){return"object"==typeof e?Object.keys(e).filter(function(t){return e[t]}).map(n).join(" "):Array.prototype.map.call(arguments,n).join(" ")}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.routerMiddleware=t.routerActions=t.goForward=t.goBack=t.go=t.replace=t.push=t.CALL_HISTORY_METHOD=t.routerReducer=t.LOCATION_CHANGE=t.syncHistoryWithStore=void 0;var n=r(236);Object.defineProperty(t,"LOCATION_CHANGE",{enumerable:!0,get:function(){return n.LOCATION_CHANGE}}),Object.defineProperty(t,"routerReducer",{enumerable:!0,get:function(){return n.routerReducer}});var _=r(237);Object.defineProperty(t,"CALL_HISTORY_METHOD",{enumerable:!0,get:function(){return _.CALL_HISTORY_METHOD}}),Object.defineProperty(t,"push",{enumerable:!0,get:function(){return _.push}}),Object.defineProperty(t,"replace",{enumerable:!0,get:function(){return _.replace}}),Object.defineProperty(t,"go",{enumerable:!0,get:function(){return _.go}}),Object.defineProperty(t,"goBack",{enumerable:!0,get:function(){return _.goBack}}),Object.defineProperty(t,"goForward",{enumerable:!0,get:function(){return _.goForward}}),Object.defineProperty(t,"routerActions",{enumerable:!0,get:function(){return _.routerActions}});var a=o(r(405)),i=o(r(406));function o(e){return e&&e.__esModule?e:{default:e}}t.syncHistoryWithStore=a.default,t.routerMiddleware=i.default},function(e,t,r){"use strict";(function(e){r.d(t,"a",function(){return o});var n=r(0),_=r.n(n),a=r(18),i=r.n(a);!function(){var t=r(1).enterModule;t&&t(e)}();var o=function(){return _.a.createElement("div",{className:"start-working"},_.a.createElement(i.a,{className:"hammer",src:r(86)}),"You don't have rights to access this section.")};!function(){var t=r(1).default,n=r(1).leaveModule;t&&(t.register(o,"NoRights","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/components/mainArea/common/NoRights.js"),n(e))}()}).call(this,r(12)(e))},function(e,t,r){"use strict";var n=r(0),_=r.n(n),a=r(50),i=r.n(a);function o(e){var t=!1;return function(){t||(console.warn(e),t=!0)}}o("\n>> Error, via react-flip-move <<\n\nYou provided a stateless functional component as a child to . Unfortunately, SFCs aren't supported, because Flip Move needs access to the backing instances via refs, and SFCs don't have a public instance that holds that info.\n\nPlease wrap your components in a native element (eg.
), or a non-functional component.\n"),o("\n>> Error, via react-flip-move <<\n\nYou provided a primitive (text or number) node as a child to . Flip Move needs containers with unique keys to move children around.\n\nPlease wrap your value in a native element (eg. ), or a component.\n");var s=o("\n>> Warning, via react-flip-move <<\n\nWhen using \"wrapperless\" mode (by supplying 'typeName' of 'null'), strange things happen when the direct parent has the default \"static\" position.\n\nFlipMove has added 'position: relative' to this node, to ensure Flip Move animates correctly.\n\nTo avoid seeing this warning, simply apply a non-static position to that parent node.\n"),l=o("\n>> Warning, via react-flip-move <<\n\nOne or more of Flip Move's child elements have the html attribute 'disabled' set to true.\n\nPlease note that this will cause animations to break in Internet Explorer 11 and below. Either remove the disabled attribute or set 'animation' to false.\n"),u={elevator:{from:{transform:"scale(0)",opacity:"0"},to:{transform:"",opacity:""}},fade:{from:{opacity:"0"},to:{opacity:""}},accordionVertical:{from:{transform:"scaleY(0)",transformOrigin:"center top"},to:{transform:"",transformOrigin:"center top"}},accordionHorizontal:{from:{transform:"scaleX(0)",transformOrigin:"left center"},to:{transform:"",transformOrigin:"left center"}},none:null},c={elevator:{from:{transform:"scale(1)",opacity:"1"},to:{transform:"scale(0)",opacity:"0"}},fade:{from:{opacity:"1"},to:{opacity:"0"}},accordionVertical:{from:{transform:"scaleY(1)",transformOrigin:"center top"},to:{transform:"scaleY(0)",transformOrigin:"center top"}},accordionHorizontal:{from:{transform:"scaleX(1)",transformOrigin:"left center"},to:{transform:"scaleX(0)",transformOrigin:"left center"}},none:null},d=u,f="elevator",p="none",h=function(e,t){for(var r=0;r1&&void 0!==arguments[1]?arguments[1]:[],r={};return Object.keys(e).forEach(function(n){-1===t.indexOf(n)&&(r[n]=e[n])}),r}(this.props,r);return n.style=O({position:"relative"},n.style),t.delegated=n,t},r.prototype.convertTimingProp=function(e){var t=this.props[e],n="number"==typeof t?t:parseInt(t,10);return isNaN(n)?r.defaultProps[e]:n},r.prototype.convertAnimationProp=function(e,t){switch(void 0===e?"undefined":b(e)){case"boolean":return t[e?f:p];case"string":return-1===Object.keys(t).indexOf(e)?t[f]:t[e];default:return e}},r.prototype.render=function(){return _.a.createElement(e,this.convertProps(this.props))},r}(n.Component),t.defaultProps={easing:"ease-in-out",duration:350,delay:0,staggerDurationBy:0,staggerDelayBy:0,typeName:"div",enterAnimation:f,leaveAnimation:f,disableAllAnimations:!1,getPosition:function(e){return e.getBoundingClientRect()},maintainContainerHeight:!1,verticalAlignment:"top"},r}(function(e){function t(){var r,n;v(this,t);for(var _=arguments.length,a=Array(_),o=0;o<_;o++)a[o]=arguments[o];return r=n=C(this,e.call.apply(e,[this].concat(a))),n.state={children:A(n.props?n.props.children:[]).map(function(e){return O({},e,{element:e,appearing:!0})})},n.childrenData={},n.parentData={domNode:null,boundingBox:null},n.heightPlaceholderData={domNode:null},n.remainingAnimations=0,n.childrenToAnimate=[],n.findDOMContainer=function(){var e=i.a.findDOMNode(n),t=e&&e.parentNode;t&&t instanceof HTMLElement&&("static"===window.getComputedStyle(t).position&&(t.style.position="relative",s()),n.parentData.domNode=t)},n.runAnimation=function(){var e=n.state.children.filter(n.doesChildNeedToBeAnimated),t=e.map(function(e){return n.computeInitialStyles(e)});e.forEach(function(e,r){n.remainingAnimations+=1,n.childrenToAnimate.push(T(e)),n.animateChild(e,r,t[r])}),"function"==typeof n.props.onStartAll&&n.callChildrenHook(n.props.onStartAll)},n.doesChildNeedToBeAnimated=function(e){if(!T(e))return!1;var t=n.getChildData(T(e)),r=t.domNode,_=t.boundingBox,a=n.parentData.boundingBox;if(!r)return!1;var i=n.props,o=i.appearAnimation,s=i.enterAnimation,l=i.leaveAnimation,u=i.getPosition,c=e.appearing&&o,d=e.entering&&s,f=e.leaving&&l;if(c||d||f)return!0;var p=D({childDomNode:r,childBoundingBox:_,parentBoundingBox:a,getPosition:u}),h=p[0],E=p[1];return 0!==h||0!==E},C(n,r)}return M(t,e),t.prototype.componentDidMount=function(){null===this.props.typeName&&this.findDOMContainer(),this.props.appearAnimation&&!this.isAnimationDisabled(this.props)&&(this.prepForAnimation(),this.runAnimation())},t.prototype.componentWillReceiveProps=function(e){this.updateBoundingBoxCaches();var t=A(e.children);this.setState({children:this.isAnimationDisabled(e)?t.map(function(e){return O({},e,{element:e})}):this.calculateNextSetOfChildren(t)})},t.prototype.componentDidUpdate=function(e){null===this.props.typeName&&this.findDOMContainer(),!function(e,t){if(e===t)return!0;var r=!m(e)||!m(t),n=e.length!==t.length;return!r&&!n&&E(function(e,r){return e===t[r]},e)}(A(this.props.children).map(function(e){return e.key}),A(e.children).map(function(e){return e.key}))&&!this.isAnimationDisabled(this.props)&&(this.prepForAnimation(),this.runAnimation())},t.prototype.calculateNextSetOfChildren=function(e){var t=this,r=e.map(function(e){var r=t.findChildByKey(e.key),n=!r||r.leaving;return O({},e,{element:e,entering:n})}),n=0;return this.state.children.forEach(function(_,a){if(!h(function(e){return e.key===T(_)},e)&&t.props.leaveAnimation){var i=O({},_,{leaving:!0}),o=a+n;r.splice(o,0,i),n+=1}}),r},t.prototype.prepForAnimation=function(){var e=this,t=this.props,r=t.leaveAnimation,n=t.maintainContainerHeight,_=t.getPosition;r&&(this.state.children.filter(function(e){return e.leaving}).forEach(function(t){var r=e.getChildData(T(t));!e.isAnimationDisabled(e.props)&&r.domNode&&r.domNode.disabled&&l(),r.boundingBox&&function(e,t){var r=e.domNode,n=e.boundingBox;if(r&&n){var _=window.getComputedStyle(r),a=["margin-top","margin-left","margin-right"].reduce(function(e,t){var r,n=_.getPropertyValue(t);return O({},e,((r={})[t]=Number(n.replace("px","")),r))},{});P({domNode:r,styles:{position:"absolute",top:("bottom"===t?n.top-n.height:n.top)-a["margin-top"]+"px",left:n.left-a["margin-left"]+"px",right:n.right-a["margin-right"]+"px"}})}}(r,e.props.verticalAlignment)}),n&&this.heightPlaceholderData.domNode&&function(e){var t=e.domNode,r=e.parentData,n=e.getPosition,_=r.domNode,a=r.boundingBox;if(_&&a){P({domNode:t,styles:{height:"0"}});var i=a.height-n(_).height;P({domNode:t,styles:{height:i>0?i+"px":"0"}})}}({domNode:this.heightPlaceholderData.domNode,parentData:this.parentData,getPosition:_}));this.state.children.forEach(function(t){var r=e.getChildData(T(t)).domNode;r&&(t.entering||t.leaving||P({domNode:r,styles:{transition:""}}))})},t.prototype.animateChild=function(e,t,r){var n=this,_=this.getChildData(T(e)).domNode;_&&(P({domNode:_,styles:r}),this.props.onStart&&this.props.onStart(e,_),requestAnimationFrame(function(){requestAnimationFrame(function(){var r={transition:function(e,t){var r=t.delay,n=t.duration,_=t.staggerDurationBy,a=t.staggerDelayBy,i=t.easing;r+=e*a,n+=e*_;return["transform","opacity"].map(function(e){return e+" "+n+"ms "+i+" "+r+"ms"}).join(", ")}(t,n.props),transform:"",opacity:""};e.appearing&&n.props.appearAnimation?r=O({},r,n.props.appearAnimation.to):e.entering&&n.props.enterAnimation?r=O({},r,n.props.enterAnimation.to):e.leaving&&n.props.leaveAnimation&&(r=O({},r,n.props.leaveAnimation.to)),P({domNode:_,styles:r})})}),this.bindTransitionEndHandler(e))},t.prototype.bindTransitionEndHandler=function(e){var t=this,r=this.getChildData(T(e)).domNode;if(r){r.addEventListener(y,function n(_){_.target===r&&(r.style.transition="",t.triggerFinishHooks(e,r),r.removeEventListener(y,n),e.leaving&&t.removeChildData(T(e)))})}},t.prototype.triggerFinishHooks=function(e,t){var r=this;if(this.props.onFinish&&this.props.onFinish(e,t),this.remainingAnimations-=1,0===this.remainingAnimations){var n=this.state.children.filter(function(e){return!e.leaving}).map(function(e){return O({},e,{element:e.element,appearing:!1,entering:!1})});this.setState({children:n},function(){"function"==typeof r.props.onFinishAll&&r.callChildrenHook(r.props.onFinishAll),r.childrenToAnimate=[]}),this.heightPlaceholderData.domNode&&(this.heightPlaceholderData.domNode.style.height="0")}},t.prototype.callChildrenHook=function(e){var t=this,r=[],n=[];this.childrenToAnimate.forEach(function(e){var _=t.findChildByKey(e);_&&(r.push(_),t.hasChildData(e)&&n.push(t.getChildData(e).domNode))}),e(r,n)},t.prototype.updateBoundingBoxCaches=function(){var e=this,t=this.parentData.domNode;if(t){this.parentData.boundingBox=this.props.getPosition(t);var r=[];this.state.children.forEach(function(n){var _=T(n);if(_)if(e.hasChildData(_)){var a=e.getChildData(_);a.domNode&&n?r.push(function(e){var t=e.childDomNode,r=e.parentDomNode,n=e.getPosition,_=n(r),a=n(t),i=a.top,o=a.left,s=a.right,l=a.bottom,u=a.width,c=a.height;return{top:i-_.top,left:o-_.left,right:_.right-s,bottom:_.bottom-l,width:u,height:c}}({childDomNode:a.domNode,parentDomNode:t,getPosition:e.props.getPosition})):r.push(null)}else r.push(null);else r.push(null)}),this.state.children.forEach(function(t,n){var _=T(t),a=r[n];_&&e.setChildData(_,{boundingBox:a})})}},t.prototype.computeInitialStyles=function(e){if(e.appearing)return this.props.appearAnimation?this.props.appearAnimation.from:{};if(e.entering)return this.props.enterAnimation?O({position:"",top:"",left:"",right:"",bottom:""},this.props.enterAnimation.from):{};if(e.leaving)return this.props.leaveAnimation?this.props.leaveAnimation.from:{};var t=this.getChildData(T(e)),r=t.domNode,n=t.boundingBox,_=this.parentData.boundingBox;if(!r)return{};var a=D({childDomNode:r,childBoundingBox:n,parentBoundingBox:_,getPosition:this.props.getPosition});return{transform:"translate("+a[0]+"px, "+a[1]+"px)"}},t.prototype.isAnimationDisabled=function(e){return w||e.disableAllAnimations||0===e.duration&&0===e.delay&&0===e.staggerDurationBy&&0===e.staggerDelayBy},t.prototype.findChildByKey=function(e){return h(function(t){return T(t)===e},this.state.children)},t.prototype.hasChildData=function(e){return Object.prototype.hasOwnProperty.call(this.childrenData,e)},t.prototype.getChildData=function(e){return this.hasChildData(e)?this.childrenData[e]:{}},t.prototype.setChildData=function(e,t){this.childrenData[e]=O({},this.getChildData(e),t)},t.prototype.removeChildData=function(e){delete this.childrenData[e],this.setState(function(t){return O({},t,{children:t.children.filter(function(t){return t.element.key!==e})})})},t.prototype.createHeightPlaceholder=function(){var e=this,t=this.props.typeName,r="ul"===t||"ol"===t?"li":"div";return Object(n.createElement)(r,{key:"height-placeholder",ref:function(t){e.heightPlaceholderData.domNode=t},style:{visibility:"hidden",height:0}})},t.prototype.childrenWithRefs=function(){var e=this;return this.state.children.map(function(t){return Object(n.cloneElement)(t.element,{ref:function(r){if(r){var n=function(e){if("undefined"==typeof HTMLElement)return null;if(e instanceof HTMLElement)return e;var t=Object(a.findDOMNode)(e);return t&&t.nodeType===Node.TEXT_NODE?null:t}(r);e.setChildData(T(t),{domNode:n})}}})})},t.prototype.render=function(){var e=this,t=this.props,r=t.typeName,_=t.delegated,a=t.leaveAnimation,i=t.maintainContainerHeight,o=this.childrenWithRefs();if(a&&i&&o.push(this.createHeightPlaceholder()),!r)return o;var s=O({},_,{children:o,ref:function(t){e.parentData.domNode=t}});return Object(n.createElement)(r,s)},t}(n.Component));t.a=k},function(module,__webpack_exports__,__webpack_require__){"use strict";(function(module){__webpack_require__.d(__webpack_exports__,"a",function(){return SwitchControl});var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(2),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(3),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(5),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(4),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(6),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__),react__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(0),react__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_5__),react_css_modules__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(10),react_css_modules__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(react_css_modules__WEBPACK_IMPORTED_MODULE_6__),lodash_core__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(101),lodash_core__WEBPACK_IMPORTED_MODULE_7___default=__webpack_require__.n(lodash_core__WEBPACK_IMPORTED_MODULE_7__),_SwitchControl_sss__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(759),_SwitchControl_sss__WEBPACK_IMPORTED_MODULE_8___default=__webpack_require__.n(_SwitchControl_sss__WEBPACK_IMPORTED_MODULE_8__),_dec,_class;!function(){var e=__webpack_require__(1).enterModule;e&&e(module)}();var SwitchControl=(_dec=react_css_modules__WEBPACK_IMPORTED_MODULE_6___default()(_SwitchControl_sss__WEBPACK_IMPORTED_MODULE_8___default.a,{allowMultiple:!0}),_dec(_class=function(_Component){function SwitchControl(e){var t;return _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this,SwitchControl),(t=_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default()(this,_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default()(SwitchControl).call(this,e))).id="0",t.onChange=function(e){var r=t.props,n=r.onChange,_=r.disabled;n&&!_&&n(e.target.checked)},t.id=lodash_core__WEBPACK_IMPORTED_MODULE_7___default.a.uniqueId("switch_"),t}return _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default()(SwitchControl,_Component),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(SwitchControl,[{key:"render",value:function(){var e=this.props,t=e.label,r=e.checked,n=e.disabled,_="SwitchControl";return n&&(_+=" disabled"),react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{styleName:_},react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("input",{type:"checkbox",styleName:"checkbox",id:this.id,disabled:n,checked:r,onChange:this.onChange}),react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("label",{styleName:"label",htmlFor:this.id},t))}},{key:"__reactstandin__regenerateByEval",value:function __reactstandin__regenerateByEval(key,code){this[key]=eval(code)}}]),SwitchControl}(react__WEBPACK_IMPORTED_MODULE_5__.Component))||_class);!function(){var e=__webpack_require__(1).default,t=__webpack_require__(1).leaveModule;e&&(e.register(SwitchControl,"SwitchControl","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/components/elements/SwitchControl/SwitchControl.js"),t(module))}()}).call(this,__webpack_require__(12)(module))},function(module,__webpack_exports__,__webpack_require__){"use strict";(function(module){__webpack_require__.d(__webpack_exports__,"a",function(){return EditableTitleControl});var core_js_modules_es6_object_assign__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(127),core_js_modules_es6_object_assign__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(core_js_modules_es6_object_assign__WEBPACK_IMPORTED_MODULE_0__),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(2),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(3),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(5),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(4),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(6),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5__),react__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(0),react__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_6__),react_css_modules__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(10),react_css_modules__WEBPACK_IMPORTED_MODULE_7___default=__webpack_require__.n(react_css_modules__WEBPACK_IMPORTED_MODULE_7__),_EditableTitleControl_sss__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(820),_EditableTitleControl_sss__WEBPACK_IMPORTED_MODULE_8___default=__webpack_require__.n(_EditableTitleControl_sss__WEBPACK_IMPORTED_MODULE_8__),_dec,_class;!function(){var e=__webpack_require__(1).enterModule;e&&e(module)}();var MIN_TEXT="WWWW",EditableTitleControl=(_dec=react_css_modules__WEBPACK_IMPORTED_MODULE_7___default()(_EditableTitleControl_sss__WEBPACK_IMPORTED_MODULE_8___default.a,{allowMultiple:!0}),_dec(_class=function(_Component){function EditableTitleControl(e){var t;return _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this,EditableTitleControl),(t=_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this,_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(EditableTitleControl).call(this,e))).state={text:"",editing:!1,width:0},t.input=null,t.testTextElm=null,t.minTextWidth=0,t.editable=!1,t.startText=void 0,t.onEditClick=function(){t.editable&&!t.state.editing&&t.setState({editing:!0},function(){return t.input.focus()})},t.onChange=function(e){t.setText(e.target.value)},t.onBlur=function(){t.editable&&!t.props.alertShowing&&(!t.props.required||t.state.text?(t.setState({editing:!1}),t.props.update(t.state.text,function(e){return t.setText(e)},!0)):t.props.required&&t.setText(t.startText))},t.onKeyDown=function(e){e.stopPropagation(),!t.props.alertShowing&&t.editable&&(13==e.keyCode?t.props.required&&!t.state.text||(t.setState({editing:!1}),t.props.update(t.state.text)):27==e.keyCode&&(t.setState({editing:!1}),t.setText(t.startText)))},t.startText=e.text,t.editable=!e.disabled&&!!e.update,t}return _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5___default()(EditableTitleControl,_Component),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default()(EditableTitleControl,[{key:"setText",value:function(e){var t=e=e||"";t||(t=this.props.placeholder),t||(t=MIN_TEXT),this.testTextElm.innerText=t;var r=this.testTextElm.clientWidth+15;r0?_(n(e),9007199254740991):0}},function(e,t,r){var n=r(63).f,_=r(96),a=r(36)("toStringTag");e.exports=function(e,t,r){e&&!_(e=r?e:e.prototype,a)&&n(e,a,{configurable:!0,value:t})}},function(e,t,r){"use strict";var n=r(51);e.exports=function(e,t){return!!e&&n(function(){t?e.call(null,function(){},1):e.call(null)})}},function(e,t,r){var n=r(44);n(n.S+n.F,"Object",{assign:r(558)})},function(e,t,r){"use strict";var n=r(26);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t){if(null===t||"object"!==(0,_.default)(t))return t;if(Array.isArray(t)){var r=[];return t.forEach(function(t,n){r[n]=e(t)}),r}if("string"==typeof t.__op)return(0,l.opFromJSON)(t);if("Pointer"===t.__type&&t.className)return s.default.fromJSON(t);if("Object"===t.__type&&t.className)return s.default.fromJSON(t);if("Relation"===t.__type){var n=new u.default(null,null);return n.targetClassName=t.className,n}if("Date"===t.__type)return new Date(t.iso);if("File"===t.__type)return a.default.fromJSON(t);if("GeoPoint"===t.__type)return new i.default({latitude:t.latitude,longitude:t.longitude});if("Polygon"===t.__type)return new o.default(t.coordinates);var c={};for(var d in t)c[d]=e(t[d]);return c};var _=n(r(41)),a=(n(r(129)),n(r(98))),i=n(r(131)),o=n(r(208)),s=n(r(46)),l=r(107),u=n(r(88))},function(e,t,r){"use strict";var n=r(26);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var _=n(r(41)),a=n(r(2)),i=n(r(3)),o=n(r(59)),s=n(r(288)),l=n(r(164)),u=function(){function e(t){if((0,a.default)(this,e),(0,o.default)(this,"permissionsById",void 0),this.permissionsById={},t&&"object"===(0,_.default)(t))if(t instanceof l.default)this.setReadAccess(t,!0),this.setWriteAccess(t,!0);else for(var r in t){var n=t[r];if("string"!=typeof r)throw new TypeError("Tried to create an ACL with an invalid user id.");for(var i in this.permissionsById[r]={},n){var s=n[i];if("read"!==i&&"write"!==i)throw new TypeError("Tried to create an ACL with an invalid permission type.");if("boolean"!=typeof s)throw new TypeError("Tried to create an ACL with an invalid permission value.");this.permissionsById[r][i]=s}}else if("function"==typeof t)throw new TypeError("ParseACL constructed with a function. Did you forget ()?")}return(0,i.default)(e,[{key:"toJSON",value:function(){var e={};for(var t in this.permissionsById)e[t]=this.permissionsById[t];return e}},{key:"equals",value:function(t){if(!(t instanceof e))return!1;var r=Object.keys(this.permissionsById),n=Object.keys(t.permissionsById);if(r.length!==n.length)return!1;for(var _ in this.permissionsById){if(!t.permissionsById[_])return!1;if(this.permissionsById[_].read!==t.permissionsById[_].read)return!1;if(this.permissionsById[_].write!==t.permissionsById[_].write)return!1}return!0}},{key:"_setAccess",value:function(e,t,r){if(t instanceof l.default)t=t.id;else if(t instanceof s.default){var n=t.getName();if(!n)throw new TypeError("Role must have a name");t="role:"+n}if("string"!=typeof t)throw new TypeError("userId must be a string.");if("boolean"!=typeof r)throw new TypeError("allowed must be either true or false.");var _=this.permissionsById[t];if(!_){if(!r)return;_={},this.permissionsById[t]=_}r?this.permissionsById[t][e]=!0:(delete _[e],0===Object.keys(_).length&&delete this.permissionsById[t])}},{key:"_getAccess",value:function(e,t){if(t instanceof l.default){if(!(t=t.id))throw new Error("Cannot get access for a ParseUser without an ID")}else if(t instanceof s.default){var r=t.getName();if(!r)throw new TypeError("Role must have a name");t="role:"+r}var n=this.permissionsById[t];return!!n&&!!n[e]}},{key:"setReadAccess",value:function(e,t){this._setAccess("read",e,t)}},{key:"getReadAccess",value:function(e){return this._getAccess("read",e)}},{key:"setWriteAccess",value:function(e,t){this._setAccess("write",e,t)}},{key:"getWriteAccess",value:function(e){return this._getAccess("write",e)}},{key:"setPublicReadAccess",value:function(e){this.setReadAccess("*",e)}},{key:"getPublicReadAccess",value:function(){return this.getReadAccess("*")}},{key:"setPublicWriteAccess",value:function(e){this.setWriteAccess("*",e)}},{key:"getPublicWriteAccess",value:function(){return this.getWriteAccess("*")}},{key:"getRoleReadAccess",value:function(e){if(e instanceof s.default&&(e=e.getName()),"string"!=typeof e)throw new TypeError("role must be a ParseRole or a String");return this.getReadAccess("role:"+e)}},{key:"getRoleWriteAccess",value:function(e){if(e instanceof s.default&&(e=e.getName()),"string"!=typeof e)throw new TypeError("role must be a ParseRole or a String");return this.getWriteAccess("role:"+e)}},{key:"setRoleReadAccess",value:function(e,t){if(e instanceof s.default&&(e=e.getName()),"string"!=typeof e)throw new TypeError("role must be a ParseRole or a String");this.setReadAccess("role:"+e,t)}},{key:"setRoleWriteAccess",value:function(e,t){if(e instanceof s.default&&(e=e.getName()),"string"!=typeof e)throw new TypeError("role must be a ParseRole or a String");this.setWriteAccess("role:"+e,t)}}]),e}();t.default=u},function(e,t){var r,n,_=e.exports={};function a(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function o(e){if(r===setTimeout)return setTimeout(e,0);if((r===a||!r)&&setTimeout)return r=setTimeout,setTimeout(e,0);try{return r(e,0)}catch(t){try{return r.call(null,e,0)}catch(t){return r.call(this,e,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:a}catch(e){r=a}try{n="function"==typeof clearTimeout?clearTimeout:i}catch(e){n=i}}();var s,l=[],u=!1,c=-1;function d(){u&&s&&(u=!1,s.length?l=s.concat(l):c=-1,l.length&&f())}function f(){if(!u){var e=o(d);u=!0;for(var t=l.length;t;){for(s=l,l=[];++c1)for(var r=1;r90)throw new TypeError("GeoPoint latitude out of bounds: "+e+" > 90.0.");if(t<-180)throw new TypeError("GeoPoint longitude out of bounds: "+t+" < -180.0.");if(t>180)throw new TypeError("GeoPoint longitude out of bounds: "+t+" > 180.0.")}},{key:"current",value:function(){return navigator.geolocation.getCurrentPosition(function(t){return new e(t.coords.latitude,t.coords.longitude)})}}]),e}();t.default=s},function(e,t,r){"use strict";var n=r(26);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var _=n(r(41)),a=n(r(2)),i=n(r(3)),o=n(r(59)),s=n(r(47)),l=n(r(108)),u=r(209),c=n(r(87)),d=n(r(131)),f=n(r(46));function p(e){return"\\Q"+e.replace("\\E","\\E\\\\E\\Q")+"\\E"}function h(e){var t=null;return e.forEach(function(e){if(t||(t=e.className),t!==e.className)throw new Error("All queries must be for the same class.")}),t}function E(e,t){var r={};(t.forEach(function(t){var n=-1!==t.indexOf(".");if(n||e.hasOwnProperty(t)){if(n){var _=t.split("."),a=e,i=r;_.forEach(function(e,t,r){a&&!a.hasOwnProperty(e)&&(a[e]=void 0),void 0!==a&&(a=a[e]),t0)&&function e(t,r,n,_){if(_)for(var a in t)t.hasOwnProperty(a)&&!r.hasOwnProperty(a)&&(r[a]=t[a]);for(var i in n)void 0!==r[i]&&null!==r[i]&&void 0!==t&&null!==t&&e(t[i],r[i],n[i],!0)}(s.default.getObjectStateController().getServerData({id:e.objectId,className:e.className}),e,r,!1)}var m=function(){function e(t){if((0,a.default)(this,e),(0,o.default)(this,"className",void 0),(0,o.default)(this,"_where",void 0),(0,o.default)(this,"_include",void 0),(0,o.default)(this,"_select",void 0),(0,o.default)(this,"_limit",void 0),(0,o.default)(this,"_skip",void 0),(0,o.default)(this,"_order",void 0),(0,o.default)(this,"_extraOptions",void 0),"string"==typeof t)"User"===t&&s.default.get("PERFORM_USER_REWRITE")?this.className="_User":this.className=t;else if(t instanceof f.default)this.className=t.className;else{if("function"!=typeof t)throw new TypeError("A ParseQuery must be constructed with a ParseObject or class name.");if("string"==typeof t.className)this.className=t.className;else{var r=new t;this.className=r.className}}this._where={},this._include=[],this._limit=-1,this._skip=0,this._extraOptions={}}return(0,i.default)(e,[{key:"_orQuery",value:function(e){var t=e.map(function(e){return e.toJSON().where});return this._where.$or=t,this}},{key:"_andQuery",value:function(e){var t=e.map(function(e){return e.toJSON().where});return this._where.$and=t,this}},{key:"_norQuery",value:function(e){var t=e.map(function(e){return e.toJSON().where});return this._where.$nor=t,this}},{key:"_addCondition",value:function(e,t,r){return this._where[e]&&"string"!=typeof this._where[e]||(this._where[e]={}),this._where[e][t]=(0,l.default)(r,!1,!0),this}},{key:"_regexStartWith",value:function(e){return"^"+p(e)}},{key:"toJSON",value:function(){var e={where:this._where};for(var t in this._include.length&&(e.include=this._include.join(",")),this._select&&(e.keys=this._select.join(",")),this._limit>=0&&(e.limit=this._limit),this._skip>0&&(e.skip=this._skip),this._order&&(e.order=this._order.join(",")),this._extraOptions)e[t]=this._extraOptions[t];return e}},{key:"withJSON",value:function(e){for(var t in e.where&&(this._where=e.where),e.include&&(this._include=e.include.split(",")),e.keys&&(this._select=e.keys.split(",")),e.limit&&(this._limit=e.limit),e.skip&&(this._skip=e.skip),e.order&&(this._order=e.order.split(",")),e)e.hasOwnProperty(t)&&-1===["where","include","keys","limit","skip","order"].indexOf(t)&&(this._extraOptions[t]=e[t]);return this}},{key:"get",value:function(e,t){this.equalTo("objectId",e);var r={};return t&&t.hasOwnProperty("useMasterKey")&&(r.useMasterKey=t.useMasterKey),t&&t.hasOwnProperty("sessionToken")&&(r.sessionToken=t.sessionToken),this.first(r).then(function(e){if(e)return e;var t=new c.default(c.default.OBJECT_NOT_FOUND,"Object not found.");return Promise.reject(t)})}},{key:"find",value:function(e){var t=this,r={};(e=e||{}).hasOwnProperty("useMasterKey")&&(r.useMasterKey=e.useMasterKey),e.hasOwnProperty("sessionToken")&&(r.sessionToken=e.sessionToken);var n=s.default.getQueryController(),_=this._select;return n.find(this.className,this.toJSON(),r).then(function(e){return e.results.map(function(r){var n=e.className||t.className;return r.className||(r.className=n),_&&E(r,_),f.default.fromJSON(r,!_)})})}},{key:"count",value:function(e){var t={};(e=e||{}).hasOwnProperty("useMasterKey")&&(t.useMasterKey=e.useMasterKey),e.hasOwnProperty("sessionToken")&&(t.sessionToken=e.sessionToken);var r=s.default.getQueryController(),n=this.toJSON();return n.limit=0,n.count=1,r.find(this.className,n,t).then(function(e){return e.count})}},{key:"distinct",value:function(e,t){var r={useMasterKey:!0};(t=t||{}).hasOwnProperty("sessionToken")&&(r.sessionToken=t.sessionToken);var n=s.default.getQueryController(),_={distinct:e,where:this._where};return n.aggregate(this.className,_,r).then(function(e){return e.results})}},{key:"aggregate",value:function(e,t){var r={useMasterKey:!0};(t=t||{}).hasOwnProperty("sessionToken")&&(r.sessionToken=t.sessionToken);var n=s.default.getQueryController();if(!Array.isArray(e)&&"object"!==(0,_.default)(e))throw new Error("Invalid pipeline must be Array or Object");return n.aggregate(this.className,{pipeline:e},r).then(function(e){return e.results})}},{key:"first",value:function(e){var t=this,r={};(e=e||{}).hasOwnProperty("useMasterKey")&&(r.useMasterKey=e.useMasterKey),e.hasOwnProperty("sessionToken")&&(r.sessionToken=e.sessionToken);var n=s.default.getQueryController(),_=this.toJSON();_.limit=1;var a=this._select;return n.find(this.className,_,r).then(function(e){var r=e.results;if(r[0])return r[0].className||(r[0].className=t.className),a&&E(r[0],a),f.default.fromJSON(r[0],!a)})}},{key:"each",value:function(t,r){if(r=r||{},this._order||this._skip||this._limit>=0)return Promise.reject("Cannot iterate on a query with sort, skip, or limit.");var n=new e(this.className);for(var a in n._limit=r.batchSize||100,n._include=this._include.map(function(e){return e}),this._select&&(n._select=this._select.map(function(e){return e})),n._where={},this._where){var i=this._where[a];if(Array.isArray(i))n._where[a]=i.map(function(e){return e});else if(i&&"object"===(0,_.default)(i)){var o={};for(var s in n._where[a]=o,i)o[s]=i[s]}else n._where[a]=i}n.ascending("objectId");var l={};r.hasOwnProperty("useMasterKey")&&(l.useMasterKey=r.useMasterKey),r.hasOwnProperty("sessionToken")&&(l.sessionToken=r.sessionToken);var c=!1;return(0,u.continueWhile)(function(){return!c},function(){return n.find(l).then(function(e){var r=Promise.resolve();return e.forEach(function(e){r=r.then(function(){return t(e)})}),r.then(function(){e.length>=n._limit?n.greaterThan("objectId",e[e.length-1].id):c=!0})})})}},{key:"equalTo",value:function(e,t){return void 0===t?this.doesNotExist(e):(this._where[e]=(0,l.default)(t,!1,!0),this)}},{key:"notEqualTo",value:function(e,t){return this._addCondition(e,"$ne",t)}},{key:"lessThan",value:function(e,t){return this._addCondition(e,"$lt",t)}},{key:"greaterThan",value:function(e,t){return this._addCondition(e,"$gt",t)}},{key:"lessThanOrEqualTo",value:function(e,t){return this._addCondition(e,"$lte",t)}},{key:"greaterThanOrEqualTo",value:function(e,t){return this._addCondition(e,"$gte",t)}},{key:"containedIn",value:function(e,t){return this._addCondition(e,"$in",t)}},{key:"notContainedIn",value:function(e,t){return this._addCondition(e,"$nin",t)}},{key:"containedBy",value:function(e,t){return this._addCondition(e,"$containedBy",t)}},{key:"containsAll",value:function(e,t){return this._addCondition(e,"$all",t)}},{key:"containsAllStartingWith",value:function(e,t){var r=this;return Array.isArray(t)||(t=[t]),t=t.map(function(e){return{$regex:r._regexStartWith(e)}}),this.containsAll(e,t)}},{key:"exists",value:function(e){return this._addCondition(e,"$exists",!0)}},{key:"doesNotExist",value:function(e){return this._addCondition(e,"$exists",!1)}},{key:"matches",value:function(e,t,r){return this._addCondition(e,"$regex",t),r||(r=""),t.ignoreCase&&(r+="i"),t.multiline&&(r+="m"),r.length&&this._addCondition(e,"$options",r),this}},{key:"matchesQuery",value:function(e,t){var r=t.toJSON();return r.className=t.className,this._addCondition(e,"$inQuery",r)}},{key:"doesNotMatchQuery",value:function(e,t){var r=t.toJSON();return r.className=t.className,this._addCondition(e,"$notInQuery",r)}},{key:"matchesKeyInQuery",value:function(e,t,r){var n=r.toJSON();return n.className=r.className,this._addCondition(e,"$select",{key:t,query:n})}},{key:"doesNotMatchKeyInQuery",value:function(e,t,r){var n=r.toJSON();return n.className=r.className,this._addCondition(e,"$dontSelect",{key:t,query:n})}},{key:"contains",value:function(e,t){if("string"!=typeof t)throw new Error("The value being searched for must be a string.");return this._addCondition(e,"$regex",p(t))}},{key:"fullText",value:function(e,t,r){if(r=r||{},!e)throw new Error("A key is required.");if(!t)throw new Error("A search term is required");if("string"!=typeof t)throw new Error("The value being searched for must be a string.");var n={$term:t};for(var _ in r)switch(_){case"language":n.$language=r[_];break;case"caseSensitive":n.$caseSensitive=r[_];break;case"diacriticSensitive":n.$diacriticSensitive=r[_];break;default:throw new Error("Unknown option: ".concat(_))}return this._addCondition(e,"$text",{$search:n})}},{key:"sortByTextScore",value:function(){return this.ascending("$score"),this.select(["$score"]),this}},{key:"startsWith",value:function(e,t){if("string"!=typeof t)throw new Error("The value being searched for must be a string.");return this._addCondition(e,"$regex",this._regexStartWith(t))}},{key:"endsWith",value:function(e,t){if("string"!=typeof t)throw new Error("The value being searched for must be a string.");return this._addCondition(e,"$regex",p(t)+"$")}},{key:"near",value:function(e,t){return t instanceof d.default||(t=new d.default(t)),this._addCondition(e,"$nearSphere",t)}},{key:"withinRadians",value:function(e,t,r,n){return n||void 0===n?(this.near(e,t),this._addCondition(e,"$maxDistance",r)):this._addCondition(e,"$geoWithin",{$centerSphere:[[t.longitude,t.latitude],r]})}},{key:"withinMiles",value:function(e,t,r,n){return this.withinRadians(e,t,r/3958.8,n)}},{key:"withinKilometers",value:function(e,t,r,n){return this.withinRadians(e,t,r/6371,n)}},{key:"withinGeoBox",value:function(e,t,r){return t instanceof d.default||(t=new d.default(t)),r instanceof d.default||(r=new d.default(r)),this._addCondition(e,"$within",{$box:[t,r]}),this}},{key:"withinPolygon",value:function(e,t){return this._addCondition(e,"$geoWithin",{$polygon:t})}},{key:"polygonContains",value:function(e,t){return this._addCondition(e,"$geoIntersects",{$point:t})}},{key:"ascending",value:function(){this._order=[];for(var e=arguments.length,t=new Array(e),r=0;ra;)i(r[a++]);e._c=[],e._n=!1,t&&!e._h&&B(e)})}},B=function(e){m.call(s,function(){var t,r,n,_=e._v,a=U(e);if(a&&(t=v(function(){T?P.emit("unhandledRejection",_,e):(r=s.onunhandledrejection)?r({promise:e,reason:_}):(n=s.console)&&n.error&&n.error("Unhandled promise rejection",_)}),e._h=T||U(e)?2:1),e._a=void 0,a&&t.e)throw t.v})},U=function(e){return 1!==e._h&&0===(e._a||e._c).length},S=function(e){m.call(s,function(){var t;T?P.emit("rejectionHandled",e):(t=s.onrejectionhandled)&&t({promise:e,reason:e._v})})},K=function(e){var t=this;t._d||(t._d=!0,(t=t._w||t)._v=e,t._s=2,t._a||(t._a=t._c.slice()),L(t,!0))},W=function(e){var t,r=this;if(!r._d){r._d=!0,r=r._w||r;try{if(r===e)throw C("Promise can't be resolved itself");(t=R(e))?g(function(){var n={_w:r,_d:!1};try{t.call(e,l(W,n,1),l(K,n,1))}catch(e){K.call(n,e)}}):(r._v=e,r._s=1,L(r,!1))}catch(e){K.call({_w:r,_d:!1},e)}}};I||(w=function(e){p(this,w,"Promise","_h"),f(e),n.call(this);try{e(l(W,this,1),l(K,this,1))}catch(e){K.call(this,e)}},(n=function(e){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=r(201)(w.prototype,{then:function(e,t){var r=k(E(this,w));return r.ok="function"!=typeof e||e,r.fail="function"==typeof t&&t,r.domain=T?P.domain:void 0,this._c.push(r),this._a&&this._a.push(r),this._s&&L(this,!1),r.promise},catch:function(e){return this.then(void 0,e)}}),a=function(){var e=new n;this.promise=e,this.resolve=l(W,e,1),this.reject=l(K,e,1)},b.f=k=function(e){return e===w||e===i?new a(e):_(e)}),c(c.G+c.W+c.F*!I,{Promise:w}),r(125)(w,"Promise"),r(204)("Promise"),i=r(94).Promise,c(c.S+c.F*!I,"Promise",{reject:function(e){var t=k(this);return(0,t.reject)(e),t.promise}}),c(c.S+c.F*(o||!I),"Promise",{resolve:function(e){return M(o&&this===i?w:this,e)}}),c(c.S+c.F*!(I&&r(195)(function(e){w.all(e).catch(A)})),"Promise",{all:function(e){var t=this,r=k(t),n=r.resolve,_=r.reject,a=v(function(){var r=[],a=0,i=1;h(e,!1,function(e){var o=a++,s=!1;r.push(void 0),i++,t.resolve(e).then(function(e){s||(s=!0,r[o]=e,--i||n(r))},_)}),--i||n(r)});return a.e&&_(a.v),r.promise},race:function(e){var t=this,r=k(t),n=r.reject,_=v(function(){h(e,!1,function(e){t.resolve(e).then(r.resolve,n)})});return _.e&&n(_.v),r.promise}})},function(e,t,r){"use strict";var n=r(30).OrderedMap,_={createFromArray:function(e){return n(e.map(function(e){return[e.getKey(),e]}))}};e.exports=_},function(e,t,r){"use strict";e.exports=function(e,t,r,n){if(e.size){var _=0;e.reduce(function(e,a,i){return t(e,a)||(r(e)&&n(_,i),_=i),a}),r(e.last())&&n(_,e.count())}}},function(e,t,r){"use strict";e.exports=function(e){return"handled"===e||!0===e}},function(e,t,r){"use strict";var n=r(55);e.exports=function(e,t,r){var _=e.getSelection(),a=e.getCurrentContent(),i=_;if(_.isCollapsed()){if("forward"===r){if(e.isSelectionAtEndOfContent())return a}else if(e.isSelectionAtStartOfContent())return a;if((i=t(e))===_)return a}return n.removeRange(a,i,r)}},function(e,t,r){e.exports=r.p+"assets/images/chisel-logo.png"},function(e,t,r){"use strict";t.__esModule=!0;t.PUSH="PUSH",t.REPLACE="REPLACE",t.POP="POP"},function(module,__webpack_exports__,__webpack_require__){"use strict";(function(module){__webpack_require__.d(__webpack_exports__,"a",function(){return DropdownControl});var core_js_modules_es6_array_map__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(58),core_js_modules_es6_array_map__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(core_js_modules_es6_array_map__WEBPACK_IMPORTED_MODULE_0__),core_js_modules_es6_array_index_of__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(45),core_js_modules_es6_array_index_of__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(core_js_modules_es6_array_index_of__WEBPACK_IMPORTED_MODULE_1__),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(2),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2__),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(3),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3__),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(5),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(4),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(6),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_6__),react__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(0),react__WEBPACK_IMPORTED_MODULE_7___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_7__),react_css_modules__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(10),react_css_modules__WEBPACK_IMPORTED_MODULE_8___default=__webpack_require__.n(react_css_modules__WEBPACK_IMPORTED_MODULE_8__),classnames__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(80),classnames__WEBPACK_IMPORTED_MODULE_9___default=__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_9__),svg_inline_react__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(18),svg_inline_react__WEBPACK_IMPORTED_MODULE_10___default=__webpack_require__.n(svg_inline_react__WEBPACK_IMPORTED_MODULE_10__),components_elements_InputControl_InputControl__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(17),_DropdownControl_sss__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(767),_DropdownControl_sss__WEBPACK_IMPORTED_MODULE_12___default=__webpack_require__.n(_DropdownControl_sss__WEBPACK_IMPORTED_MODULE_12__),_dec,_class;!function(){var e=__webpack_require__(1).enterModule;e&&e(module)}();var DropdownControl=(_dec=react_css_modules__WEBPACK_IMPORTED_MODULE_8___default()(_DropdownControl_sss__WEBPACK_IMPORTED_MODULE_12___default.a,{allowMultiple:!0}),_dec(_class=function(_Component){function DropdownControl(e){var t;_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2___default()(this,DropdownControl),(t=_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default()(this,_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default()(DropdownControl).call(this,e))).state={suggestionValue:"",suggestionsVisibility:!1,disabled:!1},t.suggestionsList=[],t.onSuggest=null,t.onSuggestionClick=function(e){var r=e.target.innerText;t.setState({suggestionValue:r,suggestionsVisibility:!1}),t.onSuggest(r)},t.onSuggestionInputClick=function(e){t.setState({suggestionsVisibility:!t.state.suggestionsVisibility,suggestionValue:e.target.value})},t.onSuggestionBlur=function(){t.setState({suggestionsVisibility:!1})};var r=e.suggestionsList,n=e.suggest,_=e.current,a=e.disabled;return t.onSuggest=n,t.suggestionsList=r,t.state.disabled=a,t.state.suggestionValue=_,-1==r.indexOf(_)&&(t.state.suggestionValue=r[0]),t}return _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_6___default()(DropdownControl,_Component),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3___default()(DropdownControl,[{key:"componentWillReceiveProps",value:function(e){var t=e.suggestionsList,r=e.current,n=e.disabled;this.suggestionsList=t,-1!=t.indexOf(r)?this.setState({suggestionValue:r,disabled:n}):this.setState({suggestionValue:t[0],disabled:n})}},{key:"render",value:function(){var e=this,t=this.props,r=t.label,n=t.type;if(this.state.disabled)return react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement(components_elements_InputControl_InputControl__WEBPACK_IMPORTED_MODULE_11__.a,{label:r,icon:"lock",value:this.state.suggestionValue,dropdown:!0,readOnly:!0});var _,a=classnames__WEBPACK_IMPORTED_MODULE_9___default()({"input-wrapper type-wrapper":void 0===n,"input-wrapper type-wrapper dropdown-big":"big"===n}),i=classnames__WEBPACK_IMPORTED_MODULE_9___default()({input:!0,"input suggestions-visible":this.state.suggestionsVisibility}),o=classnames__WEBPACK_IMPORTED_MODULE_9___default()({"arrow-down":!0,"arrow-down arrow-rotated":this.state.suggestionsVisibility}),s=this.suggestionsList.map(function(t){return react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{onMouseDown:e.onSuggestionClick,styleName:"suggestion",key:t},t)}),l=react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement(svg_inline_react__WEBPACK_IMPORTED_MODULE_10___default.a,{styleName:o,src:__webpack_require__(275)});return"big"===n&&(l=react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement(svg_inline_react__WEBPACK_IMPORTED_MODULE_10___default.a,{styleName:"arrows",src:__webpack_require__(276)})),r&&(_=react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{styleName:"label"},r)),react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{styleName:a,onBlur:this.onSuggestionBlur},_,react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{styleName:"input-wrapper"},l,react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("input",{styleName:i,value:this.state.suggestionValue,onClick:this.onSuggestionInputClick,readOnly:!0}),react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{styleName:"suggestions"},s)))}},{key:"__reactstandin__regenerateByEval",value:function __reactstandin__regenerateByEval(key,code){this[key]=eval(code)}}]),DropdownControl}(react__WEBPACK_IMPORTED_MODULE_7__.Component))||_class);!function(){var e=__webpack_require__(1).default,t=__webpack_require__(1).leaveModule;e&&(e.register(DropdownControl,"DropdownControl","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/components/elements/DropdownControl/DropdownControl.js"),t(module))}()}).call(this,__webpack_require__(12)(module))},function(module,__webpack_exports__,__webpack_require__){"use strict";(function(module){__webpack_require__.d(__webpack_exports__,"a",function(){return LAYOUT_SPLIT}),__webpack_require__.d(__webpack_exports__,"b",function(){return MarkdownEditor});var core_js_modules_es6_promise__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(133),core_js_modules_es6_promise__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(core_js_modules_es6_promise__WEBPACK_IMPORTED_MODULE_0__),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(2),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(3),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(5),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(4),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(6),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5__),react__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(0),react__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_6__),react_mde__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(232),react_mde__WEBPACK_IMPORTED_MODULE_7___default=__webpack_require__.n(react_mde__WEBPACK_IMPORTED_MODULE_7__),showdown__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(350),showdown__WEBPACK_IMPORTED_MODULE_8___default=__webpack_require__.n(showdown__WEBPACK_IMPORTED_MODULE_8__),react_css_modules__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(10),react_css_modules__WEBPACK_IMPORTED_MODULE_9___default=__webpack_require__.n(react_css_modules__WEBPACK_IMPORTED_MODULE_9__),_MarkdownEditor_sss__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(784),_MarkdownEditor_sss__WEBPACK_IMPORTED_MODULE_10___default=__webpack_require__.n(_MarkdownEditor_sss__WEBPACK_IMPORTED_MODULE_10__),react_mde_lib_styles_css_react_mde_all_css__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(786),react_mde_lib_styles_css_react_mde_all_css__WEBPACK_IMPORTED_MODULE_11___default=__webpack_require__.n(react_mde_lib_styles_css_react_mde_all_css__WEBPACK_IMPORTED_MODULE_11__),_dec,_class;!function(){var e=__webpack_require__(1).enterModule;e&&e(module)}();var LAYOUT_TABS="tabbed",LAYOUT_SPLIT="horizontal",MarkdownEditor=(_dec=react_css_modules__WEBPACK_IMPORTED_MODULE_9___default()(_MarkdownEditor_sss__WEBPACK_IMPORTED_MODULE_10___default.a,{allowMultiple:!0}),_dec(_class=function(_Component){function MarkdownEditor(e){var t;return _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this,MarkdownEditor),(t=_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this,_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(MarkdownEditor).call(this,e))).state={mdeState:{markdown:""}},t.onChange=void 0,t.layout=LAYOUT_TABS,t.converter=null,t.onChangeMde=function(e){t.setState({mdeState:e}),t.onChange(e.markdown)},t.genPreview=function(e){return Promise.resolve(t.converter.makeHtml(e))},t.state.mdeState.markdown=e.value,t.onChange=e.onChange,e.layout&&(t.layout=e.layout),t.converter=new showdown__WEBPACK_IMPORTED_MODULE_8__.Converter({tables:!0,simplifiedAutoLink:!0,simpleLineBreaks:!0,tasklists:!0,strikethrough:!0}),t}return _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5___default()(MarkdownEditor,_Component),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default()(MarkdownEditor,[{key:"componentWillReceiveProps",value:function(e){var t=this,r=this.state.mdeState;e.value!=r.markdown&&react_mde__WEBPACK_IMPORTED_MODULE_7__.DraftUtil.buildNewMdeState(r,null,e.value).then(function(e){return t.setState({mdeState:e})})}},{key:"render",value:function(){return react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement(react_mde__WEBPACK_IMPORTED_MODULE_7___default.a,{className:this.props.className,onChange:this.onChangeMde,editorState:this.state.mdeState,generateMarkdownPreview:this.genPreview,layout:this.layout})}},{key:"__reactstandin__regenerateByEval",value:function __reactstandin__regenerateByEval(key,code){this[key]=eval(code)}}]),MarkdownEditor}(react__WEBPACK_IMPORTED_MODULE_6__.Component))||_class);!function(){var e=__webpack_require__(1).default,t=__webpack_require__(1).leaveModule;e&&(e.register(LAYOUT_TABS,"LAYOUT_TABS","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/components/elements/MarkdownEditor/MarkdownEditor.js"),e.register(LAYOUT_SPLIT,"LAYOUT_SPLIT","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/components/elements/MarkdownEditor/MarkdownEditor.js"),e.register(MarkdownEditor,"MarkdownEditor","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/components/elements/MarkdownEditor/MarkdownEditor.js"),t(module))}()}).call(this,__webpack_require__(12)(module))},function(e,t,r){"use strict";(function(e){r.d(t,"b",function(){return n}),r.d(t,"a",function(){return _}),function(){var t=r(1).enterModule;t&&t(e)}();var n={serverURL:"http://localhost:1337/parse",appId:"SampleAppId"},_=10485760;!function(){var t=r(1).default,a=r(1).leaveModule;t&&(t.register(n,"config","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ConnectConstants.js"),t.register(_,"FILE_SIZE_MAX","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ConnectConstants.js"),a(e))}()}).call(this,r(12)(e))},function(e,t,r){var n=r(719),_=r(720),a=r(721);e.exports=function(e,t){return n(e)||_(e,t)||a()}},function(module,__webpack_exports__,__webpack_require__){"use strict";(function(module){__webpack_require__.d(__webpack_exports__,"a",function(){return MediaItemData});var core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(32),core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_0__),core_js_modules_es6_array_index_of__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(45),core_js_modules_es6_array_index_of__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(core_js_modules_es6_array_index_of__WEBPACK_IMPORTED_MODULE_1__),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(2),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2__),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(3),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3__),parse__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(14),parse__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(parse__WEBPACK_IMPORTED_MODULE_4__);!function(){var e=__webpack_require__(1).enterModule;e&&e(module)}();var MEDIA_TYPE__IMAGE="MEDIA_TYPE__IMAGE",keys=[],MediaItemData=function(){function MediaItemData(){for(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2___default()(this,MediaItemData),this.origin=null,this.name="",this.type=MEDIA_TYPE__IMAGE,this.file=null,this.assigned=!1,this.key=0,this.site=null;-1!=keys.indexOf(this.key);)this.key++;keys.push(this.key)}return _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3___default()(MediaItemData,null,[{key:"OriginClass",get:function(){return parse__WEBPACK_IMPORTED_MODULE_4__.Parse.Object.extend("MediaItem")}}]),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3___default()(MediaItemData,[{key:"setOrigin",value:function(e){return this.origin=e,e.get("name")&&(this.name=e.get("name")),e.get("type")&&(this.type=e.get("type")),e.get("file")&&(this.file=e.get("file")),e.get("assigned")&&(this.assigned=e.get("assigned")),this}},{key:"updateOrigin",value:function(){this.origin||(this.origin=new MediaItemData.OriginClass),this.origin.set("name",this.name),this.origin.set("type",this.type),this.origin.set("file",this.file),this.origin.set("assigned",this.assigned),this.origin.set("site",this.site.origin)}},{key:"clone",value:function(){var e=new MediaItemData;return e.file=this.file,e.name=this.name,e.type=this.type,e.site=this.site,e.assigned=this.assigned,e}},{key:"__reactstandin__regenerateByEval",value:function __reactstandin__regenerateByEval(key,code){this[key]=eval(code)}}]),MediaItemData}();!function(){var e=__webpack_require__(1).default,t=__webpack_require__(1).leaveModule;e&&(e.register(MEDIA_TYPE__IMAGE,"MEDIA_TYPE__IMAGE","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/MediaItemData.js"),e.register(keys,"keys","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/MediaItemData.js"),e.register(MediaItemData,"MediaItemData","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/MediaItemData.js"),t(module))}()}).call(this,__webpack_require__(12)(module))},function(e,t,r){"use strict";var n=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r}(this.props,[]);return delete p.md5,delete p.email,delete p.protocol,delete p.rating,delete p.size,delete p.style,delete p.className,delete p.default,!d&&(0,s.default)()?a.default.createElement("img",n({alt:"Gravatar for "+_,style:this.props.style,src:c,height:this.props.size,width:this.props.size},p,{className:f})):a.default.createElement("img",n({alt:"Gravatar for "+_,style:this.props.style,src:u,srcSet:c+" 2x",height:this.props.size,width:this.props.size},p,{className:f}))}}]),t}();c.displayName="Gravatar",c.propTypes={email:l.default.string,md5:l.default.string,size:l.default.number,rating:l.default.string,default:l.default.string,className:l.default.string,protocol:l.default.string,style:l.default.object},c.defaultProps={size:50,rating:"g",default:"retro",protocol:"//"},e.exports=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.arrayMove=t.sortableHandle=t.sortableElement=t.sortableContainer=t.SortableHandle=t.SortableElement=t.SortableContainer=void 0;var n=r(170);Object.defineProperty(t,"arrayMove",{enumerable:!0,get:function(){return n.arrayMove}});var _=o(r(736)),a=o(r(738)),i=o(r(739));function o(e){return e&&e.__esModule?e:{default:e}}t.SortableContainer=_.default,t.SortableElement=a.default,t.SortableHandle=i.default,t.sortableContainer=_.default,t.sortableElement=a.default,t.sortableHandle=i.default},function(e,t,r){"use strict";t.__esModule=!0;t.addEventListener=function(e,t,r){return e.addEventListener?e.addEventListener(t,r,!1):e.attachEvent("on"+t,r)},t.removeEventListener=function(e,t,r){return e.removeEventListener?e.removeEventListener(t,r,!1):e.detachEvent("on"+t,r)},t.supportsHistory=function(){var e=window.navigator.userAgent;return(-1===e.indexOf("Android 2.")&&-1===e.indexOf("Android 4.0")||-1===e.indexOf("Mobile Safari")||-1!==e.indexOf("Chrome")||-1!==e.indexOf("Windows Phone"))&&(window.history&&"pushState"in window.history)},t.supportsGoWithoutReloadUsingHash=function(){return-1===window.navigator.userAgent.indexOf("Firefox")},t.supportsPopstateOnHashchange=function(){return-1===window.navigator.userAgent.indexOf("Trident")},t.isExtraneousPopstateEvent=function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")}},function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},function(e,t,r){var n=r(91),_=r(75),a="[object AsyncFunction]",i="[object Function]",o="[object GeneratorFunction]",s="[object Proxy]";e.exports=function(e){if(!_(e))return!1;var t=n(e);return t==i||t==o||t==a||t==s}},function(e,t,r){var n=r(74).Symbol;e.exports=n},function(e,t){e.exports=function(e){return e}},function(e,t,r){var n=r(435),_=r(436),a=r(437),i=r(438),o=r(439);function s(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t0?n:r)(e)}},function(e,t){e.exports='icon-PopupCreated with Sketch.'},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,r){"use strict";var n=r(282),_=r(206);e.exports=r(283)("Map",function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},{get:function(e){var t=n.getEntry(_(this,"Map"),e);return t&&t.v},set:function(e,t){return n.def(_(this,"Map"),0===e?0:e,t)}},n,!0)},function(e,t){e.exports=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,r):{};n.get||n.set?Object.defineProperty(t,r,n):t[r]=e[r]}return t.default=e,t}},function(e,t,r){"use strict";var n=r(26);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var _=n(r(41)),a=n(r(2)),i=n(r(3)),o=n(r(5)),s=n(r(4)),l=n(r(69)),u=n(r(6)),c=n(r(47)),d=n(r(295)),f=n(r(87)),p=n(r(46)),h=n(r(296)),E=n(r(165)),m=!c.default.get("IS_NODE"),g=!1,b=null,v={},O=function(e){function t(e){var r;if((0,a.default)(this,t),r=(0,o.default)(this,(0,s.default)(t).call(this,"_User")),e&&"object"===(0,_.default)(e)&&!r.set(e||{}))throw new Error("Can't create an invalid Parse User");return r}return(0,u.default)(t,e),(0,i.default)(t,[{key:"_upgradeToRevocableSession",value:function(e){var t={};return(e=e||{}).hasOwnProperty("useMasterKey")&&(t.useMasterKey=e.useMasterKey),c.default.getUserController().upgradeToRevocableSession(this,t)}},{key:"_linkWith",value:function(e,t){var r,n=this;if("string"==typeof e?(r=e,e=v[e]):r=e.getAuthType(),t&&t.hasOwnProperty("authData")){var a=this.get("authData")||{};if("object"!==(0,_.default)(a))throw new Error("Invalid type: authData field should be an object");return a[r]=t.authData,c.default.getUserController().linkWith(this,a)}return new Promise(function(t,r){e.authenticate({success:function(e,_){var a={};a.authData=_,n._linkWith(e,a).then(function(){t(n)},function(e){r(e)})},error:function(e,t){r(t)}})})}},{key:"_synchronizeAuthData",value:function(e){if(this.isCurrent()&&e){var t;"string"==typeof e?e=v[t=e]:t=e.getAuthType();var r=this.get("authData");if(e&&r&&"object"===(0,_.default)(r))e.restoreAuthentication(r[t])||this._unlinkFrom(e)}}},{key:"_synchronizeAllAuthData",value:function(){var e=this.get("authData");if("object"===(0,_.default)(e))for(var t in e)this._synchronizeAuthData(t)}},{key:"_cleanupAuthData",value:function(){if(this.isCurrent()){var e=this.get("authData");if("object"===(0,_.default)(e))for(var t in e)e[t]||delete e[t]}}},{key:"_unlinkFrom",value:function(e){var t=this;return"string"==typeof e&&(e=v[e]),this._linkWith(e,{authData:null}).then(function(){return t._synchronizeAuthData(e),Promise.resolve(t)})}},{key:"_isLinked",value:function(e){var t;t="string"==typeof e?e:e.getAuthType();var r=this.get("authData")||{};return"object"===(0,_.default)(r)&&!!r[t]}},{key:"_logOutWithAll",value:function(){var e=this.get("authData");if("object"===(0,_.default)(e))for(var t in e)this._logOutWith(t)}},{key:"_logOutWith",value:function(e){this.isCurrent()&&("string"==typeof e&&(e=v[e]),e&&e.deauthenticate&&e.deauthenticate())}},{key:"_preserveFieldsOnFetch",value:function(){return{sessionToken:this.get("sessionToken")}}},{key:"isCurrent",value:function(){var e=t.current();return!!e&&e.id===this.id}},{key:"getUsername",value:function(){var e=this.get("username");return null==e||"string"==typeof e?e:""}},{key:"setUsername",value:function(e){var t=this.get("authData");t&&"object"===(0,_.default)(t)&&t.hasOwnProperty("anonymous")&&(t.anonymous=null),this.set("username",e)}},{key:"setPassword",value:function(e){this.set("password",e)}},{key:"getEmail",value:function(){var e=this.get("email");return null==e||"string"==typeof e?e:""}},{key:"setEmail",value:function(e){return this.set("email",e)}},{key:"getSessionToken",value:function(){var e=this.get("sessionToken");return null==e||"string"==typeof e?e:""}},{key:"authenticated",value:function(){var e=t.current();return!!this.get("sessionToken")&&!!e&&e.id===this.id}},{key:"signUp",value:function(e,t){var r={};return(t=t||{}).hasOwnProperty("useMasterKey")&&(r.useMasterKey=t.useMasterKey),t.hasOwnProperty("installationId")&&(r.installationId=t.installationId),c.default.getUserController().signUp(this,e,r)}},{key:"logIn",value:function(e){var t={};return(e=e||{}).hasOwnProperty("useMasterKey")&&(t.useMasterKey=e.useMasterKey),e.hasOwnProperty("installationId")&&(t.installationId=e.installationId),c.default.getUserController().logIn(this,t)}},{key:"requestEmailChange",value:function(e,t){var r={};return(t=t||{}).hasOwnProperty("useMasterKey")&&(r.useMasterKey=t.useMasterKey),t.hasOwnProperty("installationId")&&(r.installationId=t.installationId),c.default.getUserController().requestEmailChange(this,e,r)}},{key:"save",value:function(){for(var e=this,r=arguments.length,n=new Array(r),_=0;_=n.length)for(var _=r-n.length;1+_--;)n.push(void 0);return n.splice(r,0,n.splice(t,1)[0]),n},t.omit=function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;nt)return t;return r},t.getElementMargin=function(e){var t=window.getComputedStyle(e);return{top:_(t.marginTop),right:_(t.marginRight),bottom:_(t.marginBottom),left:_(t.marginLeft)}},t.provideDisplayName=function(e,t){var r=t.displayName||t.name;return r?e+"("+r+")":e},t.getPosition=function(e){return e.touches&&e.touches.length?{x:e.touches[0].pageX,y:e.touches[0].pageY}:e.changedTouches&&e.changedTouches.length?{x:e.changedTouches[0].pageX,y:e.changedTouches[0].pageY}:{x:e.pageX,y:e.pageY}},t.isTouchEvent=function(e){return e.touches&&e.touches.length||e.changedTouches&&e.changedTouches.length},t.getEdgeOffset=function e(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{top:0,left:0};if(t){var _={top:n.top+t.offsetTop,left:n.left+t.offsetLeft};return t.parentNode!==r?e(t.parentNode,r,_):_}},t.getLockPixelOffset=function(e){var t=e.lockOffset,r=e.width,_=e.height,a=t,i=t,o="px";if("string"==typeof t){var s=/^[+-]?\d*(?:\.\d*)?(px|%)$/.exec(t);(0,n.default)(null!==s,'lockOffset value should be a number or a string of a number followed by "px" or "%". Given %s',t),a=i=parseFloat(t),o=s[1]}(0,n.default)(isFinite(a)&&isFinite(i),"lockOffset value should be a finite. Given %s",t),"%"===o&&(a=a*r/100,i=i*_/100);return{x:a,y:i}};var n=function(e){return e&&e.__esModule?e:{default:e}}(r(27));t.events={start:["touchstart","mousedown"],move:["touchmove","mousemove"],end:["touchend","touchcancel","mouseup"]},t.vendorPrefix=function(){if("undefined"==typeof window||"undefined"==typeof document)return"";var e=window.getComputedStyle(document.documentElement,"")||["-moz-hidden-iframe"],t=(Array.prototype.slice.call(e).join("").match(/-(moz|webkit|ms)-/)||""===e.OLink&&["","o"])[1];switch(t){case"ms":return"ms";default:return t&&t.length?t[0].toUpperCase()+t.substr(1):""}}();function _(e){return"px"===e.substr(-2)?parseFloat(e):0}},function(e,t,r){"use strict";t.__esModule=!0;var n=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},r=e(t),_=t.stringifyQuery,u=t.parseQueryString;"function"!=typeof _&&(_=s),"function"!=typeof u&&(u=l);var c=function(e){return e?(null==e.query&&(e.query=u(e.search.substring(1))),e):e},d=function(e,t){if(null==t)return e;var r="string"==typeof e?(0,o.parsePath)(e):e,a=_(t);return n({},r,{search:a?"?"+a:""})};return n({},r,{getCurrentLocation:function(){return c(r.getCurrentLocation())},listenBefore:function(e){return r.listenBefore(function(t,r){return(0,a.default)(e,c(t),r)})},listen:function(e){return r.listen(function(t){return e(c(t))})},push:function(e){return r.push(d(e,e.query))},replace:function(e){return r.replace(d(e,e.query))},createPath:function(e){return r.createPath(d(e,e.query))},createHref:function(e){return r.createHref(d(e,e.query))},createLocation:function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),_=1;_0&&void 0!==arguments[0]?arguments[0]:{},r=e(t),i=t.basename,o=function(e){return e?(i&&null==e.basename&&(0===e.pathname.toLowerCase().indexOf(i.toLowerCase())?(e.pathname=e.pathname.substring(i.length),e.basename=i,""===e.pathname&&(e.pathname="/")):e.basename=""),e):e},s=function(e){if(!i)return e;var t="string"==typeof e?(0,a.parsePath)(e):e,r=t.pathname,_="/"===i.slice(-1)?i:i+"/",o="/"===r.charAt(0)?r.slice(1):r;return n({},t,{pathname:_+o})};return n({},r,{getCurrentLocation:function(){return o(r.getCurrentLocation())},listenBefore:function(e){return r.listenBefore(function(t,r){return(0,_.default)(e,o(t),r)})},listen:function(e){return r.listen(function(t){return e(o(t))})},push:function(e){return r.push(s(e))},replace:function(e){return r.replace(s(e))},createPath:function(e){return r.createPath(s(e))},createHref:function(e){return r.createHref(s(e))},createLocation:function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),_=1;_0&&void 0!==arguments[0]?arguments[0]:{},t=e.getCurrentLocation,r=e.getUserConfirmation,s=e.pushLocation,l=e.replaceLocation,u=e.go,c=e.keyLength,d=void 0,f=void 0,p=[],h=[],E=[],m=function(e){var t=f&&f.action===i.POP?E.indexOf(f.key):d?E.indexOf(d.key):-1;(d=e).action===i.PUSH?E=[].concat(E.slice(0,t+1),[d.key]):d.action===i.REPLACE&&(E[t]=d.key),h.forEach(function(e){return e(d)})},g=function(e){d&&(0,o.locationsAreEqual)(d,e)||f&&(0,o.locationsAreEqual)(f,e)||(f=e,function(e,t){(0,n.loopAsync)(p.length,function(t,r,n){(0,a.default)(p[t],e,function(e){return null!=e?n(e):r()})},function(e){r&&"string"==typeof e?r(e,function(e){return t(!1!==e)}):t(!1!==e)})}(e,function(t){if(f===e)if(f=null,t){if(e.action===i.PUSH){var r=(0,_.createPath)(d);(0,_.createPath)(e)===r&&(0,o.statesAreEqual)(d.state,e.state)&&(e.action=i.REPLACE)}e.action===i.POP?m(e):e.action===i.PUSH?!1!==s(e)&&m(e):e.action===i.REPLACE&&!1!==l(e)&&m(e)}else if(d&&e.action===i.POP){var n=E.indexOf(d.key),a=E.indexOf(e.key);-1!==n&&-1!==a&&u(n-a)}}))},b=function(){return Math.random().toString(36).substr(2,c||6)},v=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:b();return(0,o.createLocation)(e,t,r)};return{getCurrentLocation:t,listenBefore:function(e){return p.push(e),function(){return p=p.filter(function(t){return t!==e})}},listen:function(e){return h.push(e),function(){return h=h.filter(function(t){return t!==e})}},transitionTo:g,push:function(e){return g(v(e,i.PUSH))},replace:function(e){return g(v(e,i.REPLACE))},go:u,goBack:function(){return u(-1)},goForward:function(){return u(1)},createKey:b,createPath:_.createPath,createHref:function(e){return(0,_.createPath)(e)},createLocation:v}}},function(e,t,r){"use strict";t.__esModule=!0;t.canUseDOM=!("undefined"==typeof window||!window.document||!window.document.createElement)},function(e,t,r){"use strict";t.__esModule=!0,t.go=t.replaceLocation=t.pushLocation=t.startListener=t.getUserConfirmation=t.getCurrentLocation=void 0;var n=r(102),_=r(147),a=r(235),i=r(83),o=r(177).canUseDOM&&!(0,_.supportsPopstateOnHashchange)(),s=function(e){var t=e&&e.key;return(0,n.createLocation)({pathname:window.location.pathname,search:window.location.search,hash:window.location.hash,state:t?(0,a.readState)(t):void 0},void 0,t)},l=t.getCurrentLocation=function(){var e=void 0;try{e=window.history.state||{}}catch(t){e={}}return s(e)},u=(t.getUserConfirmation=function(e,t){return t(window.confirm(e))},t.startListener=function(e){var t=function(t){(0,_.isExtraneousPopstateEvent)(t)||e(s(t.state))};(0,_.addEventListener)(window,"popstate",t);var r=function(){return e(l())};return o&&(0,_.addEventListener)(window,"hashchange",r),function(){(0,_.removeEventListener)(window,"popstate",t),o&&(0,_.removeEventListener)(window,"hashchange",r)}},function(e,t){var r=e.state,n=e.key;void 0!==r&&(0,a.saveState)(n,r),t({key:n},(0,i.createPath)(e))});t.pushLocation=function(e){return u(e,function(e,t){return window.history.pushState(e,null,t)})},t.replaceLocation=function(e){return u(e,function(e,t){return window.history.replaceState(e,null,t)})},t.go=function(e){e&&window.history.go(e)}},function(e,t){function r(t,n){return e.exports=r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(t,n)}e.exports=r},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t){var r=9007199254740991,n=/^(?:0|[1-9]\d*)$/;e.exports=function(e,t){var _=typeof e;return!!(t=null==t?r:t)&&("number"==_||"symbol"!=_&&n.test(e))&&e>-1&&e%1==0&&e-1&&e%1==0&&e<=r}},function(e,t,r){var n=r(93)(r(74),"Map");e.exports=n},function(e,t,r){var n=r(449),_=r(456),a=r(458),i=r(459),o=r(460);function s(e){var t=-1,r=null==e?0:e.length;for(this.clear();++tdocument.F=Object<\/script>"),e.close(),s=e.F;n--;)delete s.prototype[a[n]];return s()};e.exports=Object.create||function(e,t){var r;return null!==e?(o.prototype=n(e),r=new o,o.prototype=null,r[i]=e):r=s(),void 0===t?r:_(r,t)}},function(e,t,r){var n=r(189)("keys"),_=r(119);e.exports=function(e){return n[e]||(n[e]=_(e))}},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,r){var n=r(36)("iterator"),_=!1;try{var a=[7][n]();a.return=function(){_=!0},Array.from(a,function(){throw 2})}catch(e){}e.exports=function(e,t){if(!t&&!_)return!1;var r=!1;try{var a=[7],i=a[n]();i.next=function(){return{done:r=!0}},a[n]=function(){return i},e(a)}catch(e){}return r}},function(e,t,r){var n=r(85),_=r(190),a=r(105),i=r(124),o=r(541);e.exports=function(e,t){var r=1==e,s=2==e,l=3==e,u=4==e,c=6==e,d=5==e||c,f=t||o;return function(t,o,p){for(var h,E,m=a(t),g=_(m),b=n(o,p,3),v=i(g.length),O=0,M=r?f(t,v):s?f(t,0):void 0;v>O;O++)if((d||O in g)&&(E=b(h=g[O],O,m),e))if(r)M[O]=E;else if(E)switch(e){case 3:return!0;case 5:return h;case 6:return O;case 2:M.push(h)}else if(u)return!1;return c?-1:l||u?u:M}}},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,r){"use strict";var n=r(84),_=r(70),a=r(51),i=r(122),o=r(36);e.exports=function(e,t,r){var s=o(e),l=r(i,s,""[e]),u=l[0],c=l[1];a(function(){var t={};return t[s]=function(){return 7},7!=""[e](t)})&&(_(String.prototype,e,u),n(RegExp.prototype,s,2==t?function(e,t){return c.call(e,this,t)}:function(e){return c.call(e,this)}))}},function(e,t,r){r(64)&&"g"!=/./g.flags&&r(63).f(RegExp.prototype,"flags",{configurable:!0,get:r(200)})},function(e,t,r){"use strict";var n=r(67);e.exports=function(){var e=n(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},function(e,t,r){var n=r(70);e.exports=function(e,t,r){for(var _ in t)n(e,_,t[_],r);return e}},function(e,t){e.exports=function(e,t,r,n){if(!(e instanceof t)||void 0!==n&&n in e)throw TypeError(r+": incorrect invocation!");return e}},function(e,t,r){var n=r(85),_=r(270),a=r(271),i=r(67),o=r(124),s=r(272),l={},u={};(t=e.exports=function(e,t,r,c,d){var f,p,h,E,m=d?function(){return e}:s(e),g=n(r,c,t?2:1),b=0;if("function"!=typeof m)throw TypeError(e+" is not iterable!");if(a(m)){for(f=o(e.length);f>b;b++)if((E=t?g(i(p=e[b])[0],p[1]):g(e[b]))===l||E===u)return E}else for(h=m.call(e);!(p=h.next()).done;)if((E=_(h,g,p.value,t))===l||E===u)return E}).BREAK=l,t.RETURN=u},function(e,t,r){"use strict";var n=r(42),_=r(63),a=r(64),i=r(36)("species");e.exports=function(e){var t=n[e];a&&t&&!t[i]&&_.f(t,i,{configurable:!0,get:function(){return this}})}},function(e,t,r){var n=r(119)("meta"),_=r(57),a=r(96),i=r(63).f,o=0,s=Object.isExtensible||function(){return!0},l=!r(51)(function(){return s(Object.preventExtensions({}))}),u=function(e){i(e,n,{value:{i:"O"+ ++o,w:{}}})},c=e.exports={KEY:n,NEED:!1,fastKey:function(e,t){if(!_(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!a(e,n)){if(!s(e))return"F";if(!t)return"E";u(e)}return e[n].i},getWeak:function(e,t){if(!a(e,n)){if(!s(e))return!0;if(!t)return!1;u(e)}return e[n].w},onFreeze:function(e){return l&&c.NEED&&s(e)&&!a(e,n)&&u(e),e}}},function(e,t,r){var n=r(57);e.exports=function(e,t){if(!n(e)||e._t!==t)throw TypeError("Incompatible receiver, "+t+" required!");return e}},function(e,t,r){var n=r(266),_=r(194).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,_)}},function(e,t,r){"use strict";var n=r(26);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var _=n(r(2)),a=n(r(3)),i=n(r(59)),o=n(r(131)),s=function(){function e(t){(0,_.default)(this,e),(0,i.default)(this,"_coordinates",void 0),this._coordinates=e._validate(t)}return(0,a.default)(e,[{key:"toJSON",value:function(){return e._validate(this._coordinates),{__type:"Polygon",coordinates:this._coordinates}}},{key:"equals",value:function(t){if(!(t instanceof e)||this.coordinates.length!==t.coordinates.length)return!1;for(var r=!0,n=1;nr||e.longitude_)return!1;for(var o=!1,s=0,l=this._coordinates.length-1;se.longitude!=f>e.longitude&&e.latitude<(d-u)*(e.longitude-c)/(f-c)+u&&(o=!o)}return o}},{key:"coordinates",get:function(){return this._coordinates},set:function(t){this._coordinates=e._validate(t)}}],[{key:"_validate",value:function(e){if(!Array.isArray(e))throw new TypeError("Coordinates must be an Array");if(e.length<3)throw new TypeError("Polygon must have at least 3 GeoPoints or Points");for(var t=[],r=0;r1||e.first().getLength()>0},t.prototype.createEntity=function(e,t,r){return o.__create(e,t,r),this},t.prototype.mergeEntityData=function(e,t){return o.__mergeData(e,t),this},t.prototype.replaceEntityData=function(e,t){return o.__replaceData(e,t),this},t.prototype.addEntity=function(e){return o.__add(e),this},t.prototype.getEntity=function(e){return o.__get(e)},t.createFromBlockArray=function(e,r){var _=Array.isArray(e)?e:e.contentBlocks,a=n.createFromArray(_),i=a.isEmpty()?new u:u.createEmpty(a.first().getKey());return new t({blockMap:a,entityMap:r||o,selectionBefore:i,selectionAfter:i})},t.createFromText=function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:/\r\n?|\n/g,n=e.split(r).map(function(e){return e=d(e),new E({key:c(),text:e,type:"unstyled",characterList:f(h(_.EMPTY,e.length))})});return t.createFromBlockArray(n)},t}(p({entityMap:null,blockMap:null,selectionBefore:null,selectionAfter:null}));e.exports=m},function(e,t,r){"use strict";var n=new RegExp("\r","g");e.exports=function(e){return e.replace(n,"")}},function(e,t,r){"use strict";var n=r(29),_="LTR",a="RTL",i=null;function o(e){return e===_||e===a}function s(e){return o(e)||n(!1),e===_?"ltr":"rtl"}function l(e){i=e}var u={NEUTRAL:"NEUTRAL",LTR:_,RTL:a,isStrong:o,getHTMLDir:s,getHTMLDirIfDifferent:function(e,t){return o(e)||n(!1),o(t)||n(!1),e===t?null:s(e)},setGlobalDir:l,initGlobalDir:function(){l(_)},getGlobalDir:function(){return i||this.initGlobalDir(),i||n(!1),i}};e.exports=u},function(e,t,r){"use strict";var n=r(30).Map,_=r(0),a=r(110),i=n({"header-one":{element:"h1"},"header-two":{element:"h2"},"header-three":{element:"h3"},"header-four":{element:"h4"},"header-five":{element:"h5"},"header-six":{element:"h6"},"unordered-list-item":{element:"li",wrapper:_.createElement("ul",{className:a("public/DraftStyleDefault/ul")})},"ordered-list-item":{element:"li",wrapper:_.createElement("ol",{className:a("public/DraftStyleDefault/ol")})},blockquote:{element:"blockquote"},atomic:{element:"figure"},"code-block":{element:"pre",wrapper:_.createElement("pre",{className:a("public/DraftStyleDefault/pre")})},unstyled:{element:"div",aliasedElements:["p"]}});e.exports=i},function(e,t,r){"use strict";e.exports={BACKSPACE:8,TAB:9,RETURN:13,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46,COMMA:188,PERIOD:190,A:65,Z:90,ZERO:48,NUMPAD_0:96,NUMPAD_9:105}},function(e,t,r){"use strict";function n(e,t){return t&&"MUTABLE"===e.__get(t).getMutability()?t:null}e.exports=function(e,t){var r;if(t.isCollapsed()){var _=t.getAnchorKey(),a=t.getAnchorOffset();return a>0?(r=e.getBlockForKey(_).getEntityAt(a-1))!==e.getBlockForKey(_).getEntityAt(a)?null:n(e.getEntityMap(),r):null}var i=t.getStartKey(),o=t.getStartOffset(),s=e.getBlockForKey(i);return r=o===s.getLength()?null:s.getEntityAt(o),n(e.getEntityMap(),r)}},function(e,t,r){"use strict";var n=r(638);e.exports=function e(t,r){return!(!t||!r)&&(t===r||!n(t)&&(n(r)?e(t,r.parentNode):"contains"in t?t.contains(r):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(r))))}},function(e,t,r){"use strict";function n(e,t){var r=_.get(e,t);return"auto"===r||"scroll"===r}var _={get:r(640),getScrollParent:function(e){if(!e)return null;for(var t=e.ownerDocument;e&&e!==t.body;){if(n(e,"overflow")||n(e,"overflowY")||n(e,"overflowX"))return e;e=e.parentNode}return t.defaultView||t.parentWindow}};e.exports=_},function(e,t,r){"use strict";var n=r(645),_=r(646);e.exports=function(e){var t=n(e.ownerDocument||e.document);e.Window&&e instanceof e.Window&&(e=t);var r=_(e),a=e===t?e.ownerDocument.documentElement:e,i=e.scrollWidth-a.clientWidth,o=e.scrollHeight-a.clientHeight;return r.x=Math.max(0,Math.min(r.x,i)),r.y=Math.max(0,Math.min(r.y,o)),r}},function(e,t,r){"use strict";var n=r(316);e.exports=function(e){for(var t=e;t&&t!==document.documentElement;){var r=n(t);if(null!=r)return r;t=t.parentNode}return null}},function(e,t,r){"use strict";var n=r(71).isPlatform("Mac OS X"),_={isCtrlKeyCommand:function(e){return!!e.ctrlKey&&!e.altKey},isOptionKeyCommand:function(e){return n&&e.altKey},hasCommandModifier:function(e){return n?!!e.metaKey&&!e.altKey:_.isCtrlKeyCommand(e)}};e.exports=_},function(e,t,r){"use strict";e.exports=function(e,t){var r=e.getSelection(),n=e.getCurrentContent(),_=r.getStartKey(),a=r.getStartOffset(),i=_,o=0;if(t>a){var s=n.getKeyBefore(_);null==s?i=_:(i=s,o=n.getBlockForKey(s).getText().length)}else o=a-t;return r.merge({focusKey:i,focusOffset:o,isBackward:!0})}},function(e,t,r){"use strict";var n=this&&this.__assign||Object.assign||function(e){for(var t,r=1,n=arguments.length;r1?arguments[1]:void 0)}}),r(264)("find")},function(e,t,r){"use strict";(function(e,n){var _,a=r(336);_="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==e?e:n;var i=Object(a.a)(_);t.a=i}).call(this,r(49),r(12)(e))},function(module,__webpack_exports__,__webpack_require__){"use strict";(function(module){__webpack_require__.d(__webpack_exports__,"a",function(){return SiteLoader});var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(2),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(3),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(5),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(4),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(6),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__),react__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(0),react__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_5__),react_css_modules__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(10),react_css_modules__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(react_css_modules__WEBPACK_IMPORTED_MODULE_6__),_SiteLoader_sss__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(757),_SiteLoader_sss__WEBPACK_IMPORTED_MODULE_7___default=__webpack_require__.n(_SiteLoader_sss__WEBPACK_IMPORTED_MODULE_7__),_dec,_class;!function(){var e=__webpack_require__(1).enterModule;e&&e(module)}();var SiteLoader=(_dec=react_css_modules__WEBPACK_IMPORTED_MODULE_6___default()(_SiteLoader_sss__WEBPACK_IMPORTED_MODULE_7___default.a,{allowMultiple:!0}),_dec(_class=function(_Component){function SiteLoader(){return _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this,SiteLoader),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default()(this,_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default()(SiteLoader).apply(this,arguments))}return _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default()(SiteLoader,_Component),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(SiteLoader,[{key:"render",value:function(){return react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{styleName:"loader-wrapper"},react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{styleName:"loader"},react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{styleName:"loader-inner"})))}},{key:"__reactstandin__regenerateByEval",value:function __reactstandin__regenerateByEval(key,code){this[key]=eval(code)}}]),SiteLoader}(react__WEBPACK_IMPORTED_MODULE_5__.Component))||_class);!function(){var e=__webpack_require__(1).default,t=__webpack_require__(1).leaveModule;e&&(e.register(SiteLoader,"SiteLoader","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/components/modals/SiteLoader/SiteLoader.js"),t(module))}()}).call(this,__webpack_require__(12)(module))},function(module,__webpack_exports__,__webpack_require__){"use strict";(function(module){__webpack_require__.d(__webpack_exports__,"a",function(){return ValidationNumber});var core_js_modules_es6_object_assign__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(127),core_js_modules_es6_object_assign__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(core_js_modules_es6_object_assign__WEBPACK_IMPORTED_MODULE_0__),_babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(11),_babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(_babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_1__),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(2),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2__),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(3),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3__),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(5),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(4),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(6),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_6__),react__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(0),react__WEBPACK_IMPORTED_MODULE_7___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_7__),react_css_modules__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(10),react_css_modules__WEBPACK_IMPORTED_MODULE_8___default=__webpack_require__.n(react_css_modules__WEBPACK_IMPORTED_MODULE_8__),components_elements_CheckboxControl_CheckboxControl__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(39),components_elements_InputControl_InputControl__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(17),components_elements_InputNumberControl_InputNumberControl__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(81),_FieldModal_sss__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(770),_FieldModal_sss__WEBPACK_IMPORTED_MODULE_12___default=__webpack_require__.n(_FieldModal_sss__WEBPACK_IMPORTED_MODULE_12__),_dec,_class;!function(){var e=__webpack_require__(1).enterModule;e&&e(module)}();var ValidationNumber=(_dec=react_css_modules__WEBPACK_IMPORTED_MODULE_8___default()(_FieldModal_sss__WEBPACK_IMPORTED_MODULE_12___default.a,{allowMultiple:!0}),_dec(_class=function(_Component){function ValidationNumber(e){var t;return _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2___default()(this,ValidationNumber),(t=_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default()(this,_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default()(ValidationNumber).call(this,e))).state={range:{active:!1,min:0,max:0,minActive:!0,maxActive:!0,errorMsg:""}},t.onRangeActive=function(e){t.setState({range:_babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_1___default()({},t.state.range,{active:e})},t.update)},t.onRangeMin=function(e){t.setState({range:_babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_1___default()({},t.state.range,{min:e})},t.update)},t.onRangeMax=function(e){t.setState({range:_babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_1___default()({},t.state.range,{max:e})},t.update)},t.onRangeMinActive=function(e){var r=t.state.range.maxActive;e||(r=!0),t.setState({range:_babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_1___default()({},t.state.range,{minActive:e,maxActive:r})},t.update)},t.onRangeMaxActive=function(e){var r=t.state.range.minActive;e||(r=!0),t.setState({range:_babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_1___default()({},t.state.range,{maxActive:e,minActive:r})},t.update)},t.onRangeErrorMsg=function(e){var r=e.target.value;t.setState({range:_babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_1___default()({},t.state.range,{errorMsg:r})},t.update)},t.update=function(){t.props.update(t.state)},Object.assign(t.state,e.validations),t}return _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_6___default()(ValidationNumber,_Component),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3___default()(ValidationNumber,[{key:"render",value:function(){return react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",null,react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{styleName:"validation"},react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{styleName:"switch"},react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement(components_elements_CheckboxControl_CheckboxControl__WEBPACK_IMPORTED_MODULE_9__.a,{title:"Accept only specified number range",checked:this.state.range.active,onChange:this.onRangeActive})),react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{styleName:"range"},react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement(components_elements_CheckboxControl_CheckboxControl__WEBPACK_IMPORTED_MODULE_9__.a,{title:"Min",checked:this.state.range.minActive,onChange:this.onRangeMinActive,disabled:!this.state.range.active}),react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{styleName:"range-field"},react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement(components_elements_InputNumberControl_InputNumberControl__WEBPACK_IMPORTED_MODULE_11__.a,{onChange:this.onRangeMin,value:this.state.range.min,readOnly:!this.state.range.active||!this.state.range.minActive})),react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement(components_elements_CheckboxControl_CheckboxControl__WEBPACK_IMPORTED_MODULE_9__.a,{title:"Max",checked:this.state.range.maxActive,onChange:this.onRangeMaxActive,disabled:!this.state.range.active}),react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{styleName:"range-field"},react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement(components_elements_InputNumberControl_InputNumberControl__WEBPACK_IMPORTED_MODULE_11__.a,{onChange:this.onRangeMax,value:this.state.range.max,readOnly:!this.state.range.active||!this.state.range.maxActive}))),react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement(components_elements_InputControl_InputControl__WEBPACK_IMPORTED_MODULE_10__.a,{label:"Custom error message",onChange:this.onRangeErrorMsg,value:this.state.range.errorMsg,readOnly:!this.state.range.active}),this.state.range.min>this.state.range.max&&react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{styleName:"error"},"Error: the min value should be smaller than max value! Please, fix it.")))}},{key:"__reactstandin__regenerateByEval",value:function __reactstandin__regenerateByEval(key,code){this[key]=eval(code)}}]),ValidationNumber}(react__WEBPACK_IMPORTED_MODULE_7__.Component))||_class);!function(){var e=__webpack_require__(1).default,t=__webpack_require__(1).leaveModule;e&&(e.register(ValidationNumber,"ValidationNumber","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/components/modals/FieldModal/Validations/ValidationNumber.js"),t(module))}()}).call(this,__webpack_require__(12)(module))},function(module,__webpack_exports__,__webpack_require__){"use strict";(function(module){__webpack_require__.d(__webpack_exports__,"a",function(){return ValidationString});var core_js_modules_es6_regexp_flags__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(199),core_js_modules_es6_regexp_flags__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(core_js_modules_es6_regexp_flags__WEBPACK_IMPORTED_MODULE_0__),core_js_modules_es6_object_assign__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(127),core_js_modules_es6_object_assign__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(core_js_modules_es6_object_assign__WEBPACK_IMPORTED_MODULE_1__),_babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(11),_babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(_babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_2__),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(2),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_3__),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(3),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_4__),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(5),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_5__),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(4),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_6__),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(6),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_7___default=__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_7__),react__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(0),react__WEBPACK_IMPORTED_MODULE_8___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_8__),react_css_modules__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(10),react_css_modules__WEBPACK_IMPORTED_MODULE_9___default=__webpack_require__.n(react_css_modules__WEBPACK_IMPORTED_MODULE_9__),components_elements_CheckboxControl_CheckboxControl__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(39),components_elements_InputControl_InputControl__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(17),components_elements_InputNumberControl_InputNumberControl__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(81),_FieldModal_sss__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(770),_FieldModal_sss__WEBPACK_IMPORTED_MODULE_13___default=__webpack_require__.n(_FieldModal_sss__WEBPACK_IMPORTED_MODULE_13__),_dec,_class;!function(){var e=__webpack_require__(1).enterModule;e&&e(module)}();var ValidationString=(_dec=react_css_modules__WEBPACK_IMPORTED_MODULE_9___default()(_FieldModal_sss__WEBPACK_IMPORTED_MODULE_13___default.a,{allowMultiple:!0}),_dec(_class=function(_Component){function ValidationString(e){var t;return _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_3___default()(this,ValidationString),(t=_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_5___default()(this,_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_6___default()(ValidationString).call(this,e))).state={range:{active:!1,min:0,max:0,minActive:!0,maxActive:!0,errorMsg:""},pattern:{active:!1,pattern:"",flags:"",errorMsg:""}},t.onRangeActive=function(e){t.setState({range:_babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_2___default()({},t.state.range,{active:e})},t.update)},t.onRangeMin=function(e){t.setState({range:_babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_2___default()({},t.state.range,{min:e})},t.update)},t.onRangeMax=function(e){t.setState({range:_babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_2___default()({},t.state.range,{max:e})},t.update)},t.onRangeMinActive=function(e){var r=t.state.range.maxActive;e||(r=!0),t.setState({range:_babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_2___default()({},t.state.range,{minActive:e,maxActive:r})},t.update)},t.onRangeMaxActive=function(e){var r=t.state.range.minActive;e||(r=!0),t.setState({range:_babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_2___default()({},t.state.range,{maxActive:e,minActive:r})},t.update)},t.onRangeErrorMsg=function(e){var r=e.target.value;t.setState({range:_babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_2___default()({},t.state.range,{errorMsg:r})},t.update)},t.onPatternActive=function(e){t.setState({pattern:_babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_2___default()({},t.state.pattern,{active:e})},t.update)},t.onPatternPattern=function(e){var r=e.target.value;t.setState({pattern:_babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_2___default()({},t.state.pattern,{pattern:r})},t.update)},t.onPatternFlags=function(e){var r=e.target.value;t.setState({pattern:_babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_2___default()({},t.state.pattern,{flags:r})},t.update)},t.onPatternErrorMsg=function(e){var r=e.target.value;t.setState({pattern:_babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_2___default()({},t.state.pattern,{errorMsg:r})},t.update)},t.update=function(){t.props.update(t.state)},Object.assign(t.state,e.validations),t}return _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_7___default()(ValidationString,_Component),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_4___default()(ValidationString,[{key:"render",value:function(){return react__WEBPACK_IMPORTED_MODULE_8___default.a.createElement("div",null,react__WEBPACK_IMPORTED_MODULE_8___default.a.createElement("div",{styleName:"validation"},react__WEBPACK_IMPORTED_MODULE_8___default.a.createElement("div",{styleName:"active"},react__WEBPACK_IMPORTED_MODULE_8___default.a.createElement(components_elements_CheckboxControl_CheckboxControl__WEBPACK_IMPORTED_MODULE_10__.a,{title:"Accept only specified number range",checked:this.state.range.active,onChange:this.onRangeActive})),react__WEBPACK_IMPORTED_MODULE_8___default.a.createElement("div",{styleName:"range"},react__WEBPACK_IMPORTED_MODULE_8___default.a.createElement(components_elements_CheckboxControl_CheckboxControl__WEBPACK_IMPORTED_MODULE_10__.a,{title:"Min",checked:this.state.range.minActive,onChange:this.onRangeMinActive,disabled:!this.state.range.active}),react__WEBPACK_IMPORTED_MODULE_8___default.a.createElement("div",{styleName:"range-field"},react__WEBPACK_IMPORTED_MODULE_8___default.a.createElement(components_elements_InputNumberControl_InputNumberControl__WEBPACK_IMPORTED_MODULE_12__.a,{onChange:this.onRangeMin,value:this.state.range.min,readOnly:!this.state.range.active||!this.state.range.minActive})),react__WEBPACK_IMPORTED_MODULE_8___default.a.createElement(components_elements_CheckboxControl_CheckboxControl__WEBPACK_IMPORTED_MODULE_10__.a,{title:"Max",checked:this.state.range.maxActive,onChange:this.onRangeMaxActive,disabled:!this.state.range.active}),react__WEBPACK_IMPORTED_MODULE_8___default.a.createElement("div",{styleName:"range-field"},react__WEBPACK_IMPORTED_MODULE_8___default.a.createElement(components_elements_InputNumberControl_InputNumberControl__WEBPACK_IMPORTED_MODULE_12__.a,{onChange:this.onRangeMax,value:this.state.range.max,readOnly:!this.state.range.active||!this.state.range.maxActive}))),react__WEBPACK_IMPORTED_MODULE_8___default.a.createElement(components_elements_InputControl_InputControl__WEBPACK_IMPORTED_MODULE_11__.a,{label:"Custom error message",onChange:this.onRangeErrorMsg,value:this.state.range.errorMsg,readOnly:!this.state.range.active}),this.state.range.min>this.state.range.max&&react__WEBPACK_IMPORTED_MODULE_8___default.a.createElement("div",{styleName:"error"},"Error: the min value should be smaller than max value! Please, fix it.")),react__WEBPACK_IMPORTED_MODULE_8___default.a.createElement("div",{styleName:"validation"},react__WEBPACK_IMPORTED_MODULE_8___default.a.createElement("div",{styleName:"active"},react__WEBPACK_IMPORTED_MODULE_8___default.a.createElement(components_elements_CheckboxControl_CheckboxControl__WEBPACK_IMPORTED_MODULE_10__.a,{title:"Match a specific pattern",checked:this.state.pattern.active,onChange:this.onPatternActive})),react__WEBPACK_IMPORTED_MODULE_8___default.a.createElement("div",{styleName:"pattern"},react__WEBPACK_IMPORTED_MODULE_8___default.a.createElement("div",{styleName:"pattern-pattern"},react__WEBPACK_IMPORTED_MODULE_8___default.a.createElement(components_elements_InputControl_InputControl__WEBPACK_IMPORTED_MODULE_11__.a,{onChange:this.onPatternPattern,placeholder:"Pattern",value:this.state.pattern.pattern,readOnly:!this.state.pattern.active})),react__WEBPACK_IMPORTED_MODULE_8___default.a.createElement("div",{styleName:"pattern-flags"},react__WEBPACK_IMPORTED_MODULE_8___default.a.createElement(components_elements_InputControl_InputControl__WEBPACK_IMPORTED_MODULE_11__.a,{onChange:this.onPatternFlags,placeholder:"Flags",value:this.state.pattern.flags,readOnly:!this.state.pattern.active}))),react__WEBPACK_IMPORTED_MODULE_8___default.a.createElement(components_elements_InputControl_InputControl__WEBPACK_IMPORTED_MODULE_11__.a,{label:"Custom error message",onChange:this.onPatternErrorMsg,value:this.state.pattern.errorMsg,readOnly:!this.state.pattern.active})))}},{key:"__reactstandin__regenerateByEval",value:function __reactstandin__regenerateByEval(key,code){this[key]=eval(code)}}]),ValidationString}(react__WEBPACK_IMPORTED_MODULE_8__.Component))||_class);!function(){var e=__webpack_require__(1).default,t=__webpack_require__(1).leaveModule;e&&(e.register(ValidationString,"ValidationString","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/components/modals/FieldModal/Validations/ValidationString.js"),t(module))}()}).call(this,__webpack_require__(12)(module))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(211);t.ReactMdeCommands=n;var _=r(711);t.ReactMdeTypes=_;var a=r(48);t.ReactMdeComponents=a;var i=r(331);t.ReactMdeLayoutComponents=i;var o=r(54);t.DraftUtil=o;var s=r(60);t.MarkdownUtil=s;var l=r(716);t.default=l.ReactMde},function(module,__webpack_exports__,__webpack_require__){"use strict";(function(module){var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(2),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(3),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(5),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(4),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(6),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__),react__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(0),react__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_5__),react_css_modules__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(10),react_css_modules__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(react_css_modules__WEBPACK_IMPORTED_MODULE_6__),react_redux__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(28),redux__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(22),react_helmet__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(34),react_helmet__WEBPACK_IMPORTED_MODULE_9___default=__webpack_require__.n(react_helmet__WEBPACK_IMPORTED_MODULE_9__),components_elements_ButtonControl_ButtonControl__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(23),utils_initialize__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(72),ducks_user__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(24),utils_common__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(20),_PasswordSet_sss__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(834),_PasswordSet_sss__WEBPACK_IMPORTED_MODULE_14___default=__webpack_require__.n(_PasswordSet_sss__WEBPACK_IMPORTED_MODULE_14__),_dec,_class;!function(){var e=__webpack_require__(1).enterModule;e&&e(module)}();var MODE_SETUP="MODE_SETUP",MODE_DONE="MODE_DONE",PasswordSet=(_dec=react_css_modules__WEBPACK_IMPORTED_MODULE_6___default()(_PasswordSet_sss__WEBPACK_IMPORTED_MODULE_14___default.a,{allowMultiple:!0}),_dec(_class=function(_Component){function PasswordSet(e){var t;return _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this,PasswordSet),(t=_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default()(this,_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default()(PasswordSet).call(this,e))).state={mode:MODE_SETUP,password:"",passwordConfirm:"",error:null},t.urlParams={},t.lock=!1,t.onPasswordChange=function(e){t.setState({password:e.target.value})},t.onPasswordConfirmChange=function(e){t.setState({passwordConfirm:e.target.value})},t.onChange=function(e){if(e.preventDefault(),!t.isAvail())return!1;var r={username:t.urlParams.username,token:t.urlParams.token,"utf-8":"✓",new_password:t.state.password};return fetch(utils_initialize__WEBPACK_IMPORTED_MODULE_11__.b.serverURL+"/apps/"+t.urlParams.id+"/request_password_reset",{method:"POST",mode:"no-cors",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:Object(utils_common__WEBPACK_IMPORTED_MODULE_13__.a)(r)}).then(function(e){t.setState({mode:MODE_DONE})}).catch(function(e){t.setState({error:e})}),!1},t.onLogin=function(e){(e.preventDefault(),t.lock)||(t.lock=!0,(0,t.props.userActions.login)(t.urlParams.username,t.state.password))},t.urlParams=Object(utils_common__WEBPACK_IMPORTED_MODULE_13__.h)(),t.state.error=t.urlParams.error,t}return _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default()(PasswordSet,_Component),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(PasswordSet,[{key:"isAvail",value:function(){return this.state.password&&this.state.password==this.state.passwordConfirm}},{key:"render",value:function(){var e,t;switch(this.state.mode){case MODE_SETUP:t="Please, type a new password for ".concat(this.urlParams.username,":"),e=react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("form",{styleName:"form",onSubmit:this.onChange},react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("input",{styleName:"input",name:"new_password",type:"password",value:this.state.password,placeholder:"Enter password",onChange:this.onPasswordChange}),react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("input",{styleName:"input",type:"password",value:this.state.passwordConfirm,placeholder:"Confirm password",onChange:this.onPasswordConfirmChange}),react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{styleName:"button"},react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement(components_elements_ButtonControl_ButtonControl__WEBPACK_IMPORTED_MODULE_10__.a,{color:"green",type:"submit",disabled:!this.isAvail(),value:"Change password"})),react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{styleName:"errors"},this.state.error&&react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{styleName:"error"},this.state.error)));break;case MODE_DONE:t="Your password was changed successfully.",e=react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("form",{styleName:"form",onSubmit:this.onLogin},react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{styleName:"button"},react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement(components_elements_ButtonControl_ButtonControl__WEBPACK_IMPORTED_MODULE_10__.a,{color:"green",type:"submit",value:"Log in"})))}return react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{className:"container"},react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement(react_helmet__WEBPACK_IMPORTED_MODULE_9__.Helmet,null,react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("title",null,"Changing password - Chisel")),react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{styleName:"PasswordSet"},react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{styleName:"logo"},react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("img",{src:__webpack_require__(138)})),react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{styleName:"title"},t),e))}},{key:"__reactstandin__regenerateByEval",value:function __reactstandin__regenerateByEval(key,code){this[key]=eval(code)}}]),PasswordSet}(react__WEBPACK_IMPORTED_MODULE_5__.Component))||_class);function mapStateToProps(e){return{authorized:e.user.authorized}}function mapDispatchToProps(e){return{userActions:Object(redux__WEBPACK_IMPORTED_MODULE_8__.b)({login:ducks_user__WEBPACK_IMPORTED_MODULE_12__.k},e)}}var _default=Object(react_redux__WEBPACK_IMPORTED_MODULE_7__.b)(mapStateToProps,mapDispatchToProps)(PasswordSet);__webpack_exports__.a=_default,function(){var e=__webpack_require__(1).default,t=__webpack_require__(1).leaveModule;e&&(e.register(MODE_SETUP,"MODE_SETUP","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/containers/LinksEmail/PasswordSet/PasswordSet.js"),e.register(MODE_DONE,"MODE_DONE","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/containers/LinksEmail/PasswordSet/PasswordSet.js"),e.register(PasswordSet,"PasswordSet","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/containers/LinksEmail/PasswordSet/PasswordSet.js"),e.register(mapStateToProps,"mapStateToProps","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/containers/LinksEmail/PasswordSet/PasswordSet.js"),e.register(mapDispatchToProps,"mapDispatchToProps","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/containers/LinksEmail/PasswordSet/PasswordSet.js"),e.register(_default,"default","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/containers/LinksEmail/PasswordSet/PasswordSet.js"),t(module))}()}).call(this,__webpack_require__(12)(module))},function(e,t,r){"use strict";var n=r(401),_=r(35);function a(e,t){return t.encode?t.strict?n(e):encodeURIComponent(e):e}t.extract=function(e){return e.split("?")[1]||""},t.parse=function(e,t){var r=function(e){var t;switch(e.arrayFormat){case"index":return function(e,r,n){t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),t?(void 0===n[e]&&(n[e]={}),n[e][t[1]]=r):n[e]=r};case"bracket":return function(e,r,n){t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),t?void 0!==n[e]?n[e]=[].concat(n[e],r):n[e]=[r]:n[e]=r};default:return function(e,t,r){void 0!==r[e]?r[e]=[].concat(r[e],t):r[e]=t}}}(t=_({arrayFormat:"none"},t)),n=Object.create(null);return"string"!=typeof e?n:(e=e.trim().replace(/^(\?|#|&)/,""))?(e.split("&").forEach(function(e){var t=e.replace(/\+/g," ").split("="),_=t.shift(),a=t.length>0?t.join("="):void 0;a=void 0===a?null:decodeURIComponent(a),r(decodeURIComponent(_),a,n)}),Object.keys(n).sort().reduce(function(e,t){var r=n[t];return Boolean(r)&&"object"==typeof r&&!Array.isArray(r)?e[t]=function e(t){return Array.isArray(t)?t.sort():"object"==typeof t?e(Object.keys(t)).sort(function(e,t){return Number(e)-Number(t)}).map(function(e){return t[e]}):t}(r):e[t]=r,e},Object.create(null))):n},t.stringify=function(e,t){var r=function(e){switch(e.arrayFormat){case"index":return function(t,r,n){return null===r?[a(t,e),"[",n,"]"].join(""):[a(t,e),"[",a(n,e),"]=",a(r,e)].join("")};case"bracket":return function(t,r){return null===r?a(t,e):[a(t,e),"[]=",a(r,e)].join("")};default:return function(t,r){return null===r?a(t,e):[a(t,e),"=",a(r,e)].join("")}}}(t=_({encode:!0,strict:!0,arrayFormat:"none"},t));return e?Object.keys(e).sort().map(function(n){var _=e[n];if(void 0===_)return"";if(null===_)return a(n,t);if(Array.isArray(_)){var i=[];return _.slice().forEach(function(e){void 0!==e&&i.push(r(n,e,i.length))}),i.join("&")}return a(n,t)+"="+a(_,t)}).filter(function(e){return e.length>0}).join("&"):""}},function(e,t,r){"use strict";t.__esModule=!0,t.readState=t.saveState=void 0;!function(e){e&&e.__esModule}(r(79));var n={QuotaExceededError:!0,QUOTA_EXCEEDED_ERR:!0},_={SecurityError:!0},a=function(e){return"@@History/"+e};t.saveState=function(e,t){if(window.sessionStorage)try{null==t?window.sessionStorage.removeItem(a(e)):window.sessionStorage.setItem(a(e),JSON.stringify(t))}catch(e){if(_[e.name])return;if(n[e.name]&&0===window.sessionStorage.length)return;throw e}},t.readState=function(e){var t=void 0;try{t=window.sessionStorage.getItem(a(e))}catch(e){if(_[e.name])return}if(t)try{return JSON.parse(t)}catch(e){}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:a,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.type,i=t.payload;if(r===_)return n({},e,{locationBeforeTransitions:i});return e};var _=t.LOCATION_CHANGE="@@router/LOCATION_CHANGE",a={locationBeforeTransitions:null}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=t.CALL_HISTORY_METHOD="@@router/CALL_HISTORY_METHOD";function _(e){return function(){for(var t=arguments.length,r=Array(t),_=0;_=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r}(g,["children"]);return i.default.isValidElement(b)?f.props.children=e(i.default.Children.only(b),r,n):((0,_.default)(b)||(0,s.default)(b))&&(f.props.children=d((0,o.default)(b),r,n)),(0,a.default)(v,function(t,a){i.default.isValidElement(t)?f.props[a]=e(i.default.Children.only(t),r,n):(0,_.default)(t)&&(f.props[a]=d(t,r,n))}),m.length&&(c=(0,u.default)(r,m,n.handleNotFoundStyleName))&&(f.props.className&&(c=f.props.className+" "+c),f.props.className=c),delete f.props.styleName,p?(Object.freeze(f.props),Object.freeze(f)):h&&Object.freeze(f.props),E&&Object.preventExtensions(f.props),f};t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return(0,n.default)(e)?f(e,t,r):e},e.exports=t.default},function(e,t,r){var n=r(411),_=r(241),a=r(426),i=r(62);e.exports=function(e,t){return(i(e)?n:_)(e,a(t))}},function(e,t,r){var n=r(412),_=r(425)(n);e.exports=_},function(e,t,r){var n=r(417),_=r(92),a=Object.prototype,i=a.hasOwnProperty,o=a.propertyIsEnumerable,s=n(function(){return arguments}())?n:function(e){return _(e)&&i.call(e,"callee")&&!o.call(e,"callee")};e.exports=s},function(e,t,r){(function(e){var n=r(74),_=r(418),a=t&&!t.nodeType&&t,i=a&&"object"==typeof e&&e&&!e.nodeType&&e,o=i&&i.exports===a?n.Buffer:void 0,s=(o?o.isBuffer:void 0)||_;e.exports=s}).call(this,r(180)(e))},function(e,t,r){var n=r(419),_=r(420),a=r(421),i=a&&a.isTypedArray,o=i?_(i):n;e.exports=o},function(e,t){var r=Object.prototype;e.exports=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||r)}},function(e,t){e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length,_=0,a=[];++rd))return!1;var p=u.get(e);if(p&&u.get(t))return p==t;var h=-1,E=!0,m=r&o?new n:void 0;for(u.set(e,t),u.set(t,e);++hs;)n(o,r=t[s++])&&(~a(l,r)||l.push(r));return l}},function(e,t,r){var n=r(95),_=r(124),a=r(537);e.exports=function(e){return function(t,r,i){var o,s=n(t),l=_(s.length),u=a(i,l);if(e&&r!=r){for(;l>u;)if((o=s[u++])!=o)return!0}else for(;l>u;u++)if((e||u in s)&&s[u]===r)return e||u||0;return!e&&-1}}},function(e,t,r){var n=r(42).document;e.exports=n&&n.documentElement},function(e,t,r){"use strict";var n=r(85),_=r(44),a=r(105),i=r(270),o=r(271),s=r(124),l=r(540),u=r(272);_(_.S+_.F*!r(195)(function(e){Array.from(e)}),"Array",{from:function(e){var t,r,_,c,d=a(e),f="function"==typeof this?this:Array,p=arguments.length,h=p>1?arguments[1]:void 0,E=void 0!==h,m=0,g=u(d);if(E&&(h=n(h,p>2?arguments[2]:void 0,2)),void 0==g||f==Array&&o(g))for(r=new f(t=s(d.length));t>m;m++)l(r,m,E?h(d[m],m):d[m]);else for(c=g.call(d),r=new f;!(_=c.next()).done;m++)l(r,m,E?i(c,h,[_.value,m],!0):_.value);return r.length=m,r}})},function(e,t,r){var n=r(67);e.exports=function(e,t,r,_){try{return _?t(n(r)[0],r[1]):t(r)}catch(t){var a=e.return;throw void 0!==a&&n(a.call(e)),t}}},function(e,t,r){var n=r(121),_=r(36)("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(n.Array===e||a[_]===e)}},function(e,t,r){var n=r(273),_=r(36)("iterator"),a=r(121);e.exports=r(94).getIteratorMethod=function(e){if(void 0!=e)return e[_]||e["@@iterator"]||a[n(e)]}},function(e,t,r){var n=r(103),_=r(36)("toStringTag"),a="Arguments"==n(function(){return arguments}());e.exports=function(e){var t,r,i;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),_))?r:a?n(t):"Object"==(i=n(t))&&"function"==typeof t.callee?"Arguments":i}},function(e,t,r){var n=r(103);e.exports=Array.isArray||function(e){return"Array"==n(e)}},function(e,t){e.exports='ShapeCreated with Sketch.'},function(e,t){e.exports='IconCreated with Sketch.'},function(e,t){e.exports=''},function(e,t){e.exports=''},function(e,t){e.exports=''},function(e,t){e.exports=''},function(e,t){e.exports='icon-AddCreated with Sketch.'},function(e,t,r){"use strict";var n=r(63).f,_=r(192),a=r(201),i=r(85),o=r(202),s=r(203),l=r(191),u=r(265),c=r(204),d=r(64),f=r(205).fastKey,p=r(206),h=d?"_s":"size",E=function(e,t){var r,n=f(t);if("F"!==n)return e._i[n];for(r=e._f;r;r=r.n)if(r.k==t)return r};e.exports={getConstructor:function(e,t,r,l){var u=e(function(e,n){o(e,u,t,"_i"),e._t=t,e._i=_(null),e._f=void 0,e._l=void 0,e[h]=0,void 0!=n&&s(n,r,e[l],e)});return a(u.prototype,{clear:function(){for(var e=p(this,t),r=e._i,n=e._f;n;n=n.n)n.r=!0,n.p&&(n.p=n.p.n=void 0),delete r[n.i];e._f=e._l=void 0,e[h]=0},delete:function(e){var r=p(this,t),n=E(r,e);if(n){var _=n.n,a=n.p;delete r._i[n.i],n.r=!0,a&&(a.n=_),_&&(_.p=a),r._f==n&&(r._f=_),r._l==n&&(r._l=a),r[h]--}return!!n},forEach:function(e){p(this,t);for(var r,n=i(e,arguments.length>1?arguments[1]:void 0,3);r=r?r.n:this._f;)for(n(r.v,r.k,this);r&&r.r;)r=r.p},has:function(e){return!!E(p(this,t),e)}}),d&&n(u.prototype,"size",{get:function(){return p(this,t)[h]}}),u},def:function(e,t,r){var n,_,a=E(e,t);return a?a.v=r:(e._l=a={i:_=f(t,!0),k:t,v:r,p:n=e._l,n:void 0,r:!1},e._f||(e._f=a),n&&(n.n=a),e[h]++,"F"!==_&&(e._i[_]=a)),e},getEntry:E,setStrong:function(e,t,r){l(e,t,function(e,r){this._t=p(e,t),this._k=r,this._l=void 0},function(){for(var e=this._k,t=this._l;t&&t.r;)t=t.p;return this._t&&(this._l=t=t?t.n:this._t._f)?u(0,"keys"==e?t.k:"values"==e?t.v:[t.k,t.v]):(this._t=void 0,u(1))},r?"entries":"values",!r,!0),c(t)}}},function(e,t,r){"use strict";var n=r(42),_=r(44),a=r(70),i=r(201),o=r(205),s=r(203),l=r(202),u=r(57),c=r(51),d=r(195),f=r(125),p=r(284);e.exports=function(e,t,r,h,E,m){var g=n[e],b=g,v=E?"set":"add",O=b&&b.prototype,M={},C=function(e){var t=O[e];a(O,e,"delete"==e?function(e){return!(m&&!u(e))&&t.call(this,0===e?0:e)}:"has"==e?function(e){return!(m&&!u(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return m&&!u(e)?void 0:t.call(this,0===e?0:e)}:"add"==e?function(e){return t.call(this,0===e?0:e),this}:function(e,r){return t.call(this,0===e?0:e,r),this})};if("function"==typeof b&&(m||O.forEach&&!c(function(){(new b).entries().next()}))){var P=new b,D=P[v](m?{}:-0,1)!=P,y=c(function(){P.has(1)}),w=d(function(e){new b(e)}),T=!m&&c(function(){for(var e=new b,t=5;t--;)e[v](t,t);return!e.has(-0)});w||((b=t(function(t,r){l(t,b,e);var n=p(new g,t,b);return void 0!=r&&s(r,E,n[v],n),n})).prototype=O,O.constructor=b),(y||T)&&(C("delete"),C("has"),E&&C("get")),(T||D)&&C(v),m&&O.clear&&delete O.clear}else b=h.getConstructor(t,e,E,v),i(b.prototype,r),o.NEED=!0;return f(b,e),M[e]=b,_(_.G+_.W+_.F*(b!=g),M),m||h.setStrong(b,e,E),b}},function(e,t,r){var n=r(57),_=r(562).set;e.exports=function(e,t,r){var a,i=t.constructor;return i!==r&&"function"==typeof i&&(a=i.prototype)!==r.prototype&&n(a)&&_&&_(e,a),e}},function(e,t,r){var n=r(161),_=r(120),a=r(95),i=r(188),o=r(96),s=r(263),l=Object.getOwnPropertyDescriptor;t.f=r(64)?l:function(e,t){if(e=a(e),t=i(t,!0),s)try{return l(e,t)}catch(e){}if(o(e,t))return _(!n.f.call(e,t),e[t])}},function(e,t,r){var n=r(42),_=r(94),a=r(118),i=r(287),o=r(63).f;e.exports=function(e){var t=_.Symbol||(_.Symbol=a?{}:n.Symbol||{});"_"==e.charAt(0)||e in t||o(t,e,{value:i.f(e)})}},function(e,t,r){t.f=r(36)},function(e,t,r){"use strict";var n=r(26);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var _=n(r(2)),a=n(r(3)),i=n(r(5)),o=n(r(4)),s=n(r(69)),l=n(r(6)),u=n(r(129)),c=n(r(87)),d=n(r(46)),f=function(e){function t(e,r){var n;return(0,_.default)(this,t),n=(0,i.default)(this,(0,o.default)(t).call(this,"_Role")),"string"==typeof e&&r instanceof u.default&&(n.setName(e),n.setACL(r)),n}return(0,l.default)(t,e),(0,a.default)(t,[{key:"getName",value:function(){var e=this.get("name");return null==e||"string"==typeof e?e:""}},{key:"setName",value:function(e,t){return this.set("name",e,t)}},{key:"getUsers",value:function(){return this.relation("users")}},{key:"getRoles",value:function(){return this.relation("roles")}},{key:"validate",value:function(e,r){var n=(0,s.default)((0,o.default)(t.prototype),"validate",this).call(this,e,r);if(n)return n;if("name"in e&&e.name!==this.getName()){var _=e.name;if(this.id&&this.id!==e.objectId)return new c.default(c.default.OTHER_CAUSE,"A role's name can only be set before it has been saved.");if("string"!=typeof _)return new c.default(c.default.OTHER_CAUSE,"A role's name must be a String.");if(!/^[0-9a-zA-Z\-_ ]+$/.test(_))return new c.default(c.default.OTHER_CAUSE,"A role's name can be only contain alphanumeric characters, _, -, and spaces.")}return!1}}]),t}(d.default);d.default.registerSubclass("_Role",f);var p=f;t.default=p},function(e,t,r){"use strict";var n=r(26);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(e.indexOf(t)>-1)return!0;for(var r=0;r\/'"]/g,function(e){return n[e]})};var n={"&":"&","<":"<",">":">","/":"/","'":"'",'"':"""}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=new RegExp("^([0-9]{1,4})-([0-9]{1,2})-([0-9]{1,2})T([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2})(.([0-9]+))?Z$").exec(e);if(!t)return null;var r=t[1]||0,n=(t[2]||1)-1,_=t[3]||0,a=t[4]||0,i=t[5]||0,o=t[6]||0,s=t[8]||0;return new Date(Date.UTC(r,n,_,a,i,o,s))}},function(e,t,r){"use strict";var n=r(26);Object.defineProperty(t,"__esModule",{value:!0}),t.defaultState=function(){return{serverData:{},pendingOps:[{}],objectCache:{},tasks:new l.default,existed:!1}},t.setServerData=function(e,t){for(var r in t)void 0!==t[r]?e[r]=t[r]:delete e[r]},t.setPendingOp=function(e,t,r){var n=e.length-1;r?e[n][t]=r:delete e[n][t]},t.pushPendingState=function(e){e.push({})},t.popPendingState=c,t.mergeFirstPendingState=function(e){var t=c(e),r=e[0];for(var n in t)if(r[n]&&t[n]){var _=r[n].mergeWith(t[n]);_&&(r[n]=_)}else r[n]=t[n]},t.estimateAttribute=function(e,t,r,n,_){for(var a=e[_],i=0;i-1}},function(e,t,r){"use strict";var n=r(26);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var _=n(r(41)),a=n(r(2)),i=n(r(3)),o=n(r(5)),s=n(r(4)),l=n(r(6)),u=n(r(47)),c=n(r(295)),d=n(r(46)),f=n(r(164)),p=function(e){function t(e){var r;if((0,a.default)(this,t),r=(0,o.default)(this,(0,s.default)(t).call(this,"_Session")),e&&"object"===(0,_.default)(e)&&!r.set(e||{}))throw new Error("Can't create an invalid Session");return r}return(0,l.default)(t,e),(0,i.default)(t,[{key:"getSessionToken",value:function(){var e=this.get("sessionToken");return"string"==typeof e?e:""}}],[{key:"readOnlyAttributes",value:function(){return["createdWith","expiresAt","installationId","restricted","sessionToken","user"]}},{key:"current",value:function(e){e=e||{};var t=u.default.getSessionController(),r={};return e.hasOwnProperty("useMasterKey")&&(r.useMasterKey=e.useMasterKey),f.default.currentAsync().then(function(e){return e?(r.sessionToken=e.getSessionToken(),t.getSession(r)):Promise.reject("There is no current user.")})}},{key:"isCurrentSessionRevocable",value:function(){var e=f.default.current();return!!e&&(0,c.default)(e.getSessionToken()||"")}}]),t}(d.default);d.default.registerSubclass("_Session",p);var h={getSession:function(e){var t=u.default.getRESTController(),r=new p;return t.request("GET","sessions/me",{},e).then(function(e){return r._finishFetch(e),r._setExisted(!0),r})}};u.default.setSessionController(h);var E=p;t.default=E},function(e,t,r){"use strict";var n=r(26);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var _=n(r(41)),a=n(r(2)),i=n(r(3)),o=n(r(5)),s=n(r(4)),l=n(r(6)),u=n(r(148)),c=n(r(59)),d=n(r(210)),f=n(r(46)),p=n(r(588)),h=r(209),E={INITIALIZED:"initialized",CONNECTING:"connecting",CONNECTED:"connected",CLOSED:"closed",RECONNECTING:"reconnecting",DISCONNECTED:"disconnected"},m="connect",g="subscribe",b="unsubscribe",v="connected",O="subscribed",M="unsubscribed",C="error",P="close",D="error",y="open",w="open",T="close",A="error",k=function(e){function t(e){var r,n=e.applicationId,_=e.serverURL,i=e.javascriptKey,l=e.masterKey,d=e.sessionToken;if((0,a.default)(this,t),r=(0,o.default)(this,(0,s.default)(t).call(this)),(0,c.default)((0,u.default)((0,u.default)(r)),"attempts",void 0),(0,c.default)((0,u.default)((0,u.default)(r)),"id",void 0),(0,c.default)((0,u.default)((0,u.default)(r)),"requestId",void 0),(0,c.default)((0,u.default)((0,u.default)(r)),"applicationId",void 0),(0,c.default)((0,u.default)((0,u.default)(r)),"serverURL",void 0),(0,c.default)((0,u.default)((0,u.default)(r)),"javascriptKey",void 0),(0,c.default)((0,u.default)((0,u.default)(r)),"masterKey",void 0),(0,c.default)((0,u.default)((0,u.default)(r)),"sessionToken",void 0),(0,c.default)((0,u.default)((0,u.default)(r)),"connectPromise",void 0),(0,c.default)((0,u.default)((0,u.default)(r)),"subscriptions",void 0),(0,c.default)((0,u.default)((0,u.default)(r)),"socket",void 0),(0,c.default)((0,u.default)((0,u.default)(r)),"state",void 0),!_||0!==_.indexOf("ws"))throw new Error("You need to set a proper Parse LiveQuery server url before using LiveQueryClient");return r.reconnectHandle=null,r.attempts=1,r.id=0,r.requestId=1,r.serverURL=_,r.applicationId=n,r.javascriptKey=i,r.masterKey=l,r.sessionToken=d,r.connectPromise=(0,h.resolvingPromise)(),r.subscriptions=new Map,r.state=E.INITIALIZED,r}return(0,l.default)(t,e),(0,i.default)(t,[{key:"shouldOpen",value:function(){return this.state===E.INITIALIZED||this.state===E.DISCONNECTED}},{key:"subscribe",value:function(e,t){var r=this;if(e){var n=e.className,_=e.toJSON(),a=_.where,i=_.keys?_.keys.split(","):void 0,o={op:g,requestId:this.requestId,query:{className:n,where:a,fields:i}};t&&(o.sessionToken=t);var s=new p.default(this.requestId,e,t);return this.subscriptions.set(this.requestId,s),this.requestId+=1,this.connectPromise.then(function(){r.socket.send(JSON.stringify(o))}),s.on("error",function(){}),s}}},{key:"unsubscribe",value:function(e){var t=this;if(e){this.subscriptions.delete(e.id);var r={op:b,requestId:e.id};this.connectPromise.then(function(){t.socket.send(JSON.stringify(r))})}}},{key:"open",value:function(){var e=this,t=this._getWebSocketImplementation();t?(this.state!==E.RECONNECTING&&(this.state=E.CONNECTING),this.socket=new t(this.serverURL),this.socket.onopen=function(){e._handleWebSocketOpen()},this.socket.onmessage=function(t){e._handleWebSocketMessage(t)},this.socket.onclose=function(){e._handleWebSocketClose()},this.socket.onerror=function(t){e._handleWebSocketError(t)}):this.emit(D,"Can not find WebSocket implementation")}},{key:"resubscribe",value:function(){var e=this;this.subscriptions.forEach(function(t,r){var n=t.query,_=n.toJSON(),a=_.where,i=_.keys?_.keys.split(","):void 0,o=n.className,s=t.sessionToken,l={op:g,requestId:r,query:{className:o,where:a,fields:i}};s&&(l.sessionToken=s),e.connectPromise.then(function(){e.socket.send(JSON.stringify(l))})})}},{key:"close",value:function(){if(this.state!==E.INITIALIZED&&this.state!==E.DISCONNECTED){this.state=E.DISCONNECTED,this.socket.close();var e=!0,t=!1,r=void 0;try{for(var n,_=this.subscriptions.values()[Symbol.iterator]();!(e=(n=_.next()).done);e=!0){n.value.emit(T)}}catch(e){t=!0,r=e}finally{try{e||null==_.return||_.return()}finally{if(t)throw r}}this._handleReset(),this.emit(P)}}},{key:"_getWebSocketImplementation",value:function(){return"function"==typeof WebSocket||"object"===("undefined"==typeof WebSocket?"undefined":(0,_.default)(WebSocket))?WebSocket:null}},{key:"_handleReset",value:function(){this.attempts=1,this.id=0,this.requestId=1,this.connectPromise=(0,h.resolvingPromise)(),this.subscriptions=new Map}},{key:"_handleWebSocketOpen",value:function(){this.attempts=1;var e={op:m,applicationId:this.applicationId,javascriptKey:this.javascriptKey,masterKey:this.masterKey,sessionToken:this.sessionToken};this.socket.send(JSON.stringify(e))}},{key:"_handleWebSocketMessage",value:function(e){var t=e.data;"string"==typeof t&&(t=JSON.parse(t));var r=null;switch(t.requestId&&(r=this.subscriptions.get(t.requestId)),t.op){case v:this.state===E.RECONNECTING&&this.resubscribe(),this.emit(y),this.id=t.clientId,this.connectPromise.resolve(),this.state=E.CONNECTED;break;case O:r&&r.emit(w);break;case C:t.requestId?r&&r.emit(A,t.error):this.emit(D,t.error);break;case M:break;default:delete t.object.__type;var n=f.default.fromJSON(t.object,!1);if(!r)break;r.emit(t.op,n)}}},{key:"_handleWebSocketClose",value:function(){if(this.state!==E.DISCONNECTED){this.state=E.CLOSED,this.emit(P);var e=!0,t=!1,r=void 0;try{for(var n,_=this.subscriptions.values()[Symbol.iterator]();!(e=(n=_.next()).done);e=!0){n.value.emit(T)}}catch(e){t=!0,r=e}finally{try{e||null==_.return||_.return()}finally{if(t)throw r}}this._handleReconnect()}}},{key:"_handleWebSocketError",value:function(e){this.emit(D,e);var t=!0,r=!1,n=void 0;try{for(var _,a=this.subscriptions.values()[Symbol.iterator]();!(t=(_=a.next()).done);t=!0){_.value.emit(A)}}catch(e){r=!0,n=e}finally{try{t||null==a.return||a.return()}finally{if(r)throw n}}this._handleReconnect()}},{key:"_handleReconnect",value:function(){var e=this;if(this.state!==E.DISCONNECTED){this.state=E.RECONNECTING;var t=function(e){return Math.random()*Math.min(30,Math.pow(2,e)-1)*1e3}(this.attempts);this.reconnectHandle&&clearTimeout(this.reconnectHandle),this.reconnectHandle=setTimeout(function(){e.attempts++,e.connectPromise=(0,h.resolvingPromise)(),e.open()}.bind(this),t)}}}]),t}(d.default);t.default=k},function(e,t,r){var n=r(42),_=r(284),a=r(63).f,i=r(207).f,o=r(592),s=r(200),l=n.RegExp,u=l,c=l.prototype,d=/a/g,f=/a/g,p=new l(d)!==d;if(r(64)&&(!p||r(51)(function(){return f[r(36)("match")]=!1,l(d)!=d||l(f)==f||"/a/i"!=l(d,"i")}))){l=function(e,t){var r=this instanceof l,n=o(e),a=void 0===t;return!r&&n&&e.constructor===l&&a?e:_(p?new u(n&&!a?e.source:e,t):u((n=e instanceof l)?e.source:e,n&&a?s.call(e):t),r?this:c,l)};for(var h=function(e){e in l||a(l,e,{configurable:!0,get:function(){return u[e]},set:function(t){u[e]=t}})},E=i(u),m=0;E.length>m;)h(E[m++]);c.constructor=l,l.prototype=c,r(70)(n,"RegExp",l)}r(204)("RegExp")},function(e,t,r){"use strict";var n=r(282),_=r(206);e.exports=r(283)("Set",function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},{add:function(e){return n.def(_(this,"Set"),e=0===e?0:e,e)}},n)},function(e,t,r){var n,_,a,i=r(85),o=r(598),s=r(268),l=r(187),u=r(42),c=u.process,d=u.setImmediate,f=u.clearImmediate,p=u.MessageChannel,h=u.Dispatch,E=0,m={},g=function(){var e=+this;if(m.hasOwnProperty(e)){var t=m[e];delete m[e],t()}},b=function(e){g.call(e.data)};d&&f||(d=function(e){for(var t=[],r=1;arguments.length>r;)t.push(arguments[r++]);return m[++E]=function(){o("function"==typeof e?e:Function(e),t)},n(E),E},f=function(e){delete m[e]},"process"==r(103)(c)?n=function(e){c.nextTick(i(g,e,1))}:h&&h.now?n=function(e){h.now(i(g,e,1))}:p?(a=(_=new p).port2,_.port1.onmessage=b,n=i(a.postMessage,a,1)):u.addEventListener&&"function"==typeof postMessage&&!u.importScripts?(n=function(e){u.postMessage(e+"","*")},u.addEventListener("message",b,!1)):n="onreadystatechange"in l("script")?function(e){s.appendChild(l("script")).onreadystatechange=function(){s.removeChild(this),g.call(e)}}:function(e){setTimeout(i(g,e,1),0)}),e.exports={set:d,clear:f}},function(e,t,r){"use strict";var n=r(123);e.exports.f=function(e){return new function(e){var t,r;this.promise=new e(function(e,n){if(void 0!==t||void 0!==r)throw TypeError("Bad Promise constructor");t=e,r=n}),this.resolve=n(t),this.reject=n(r)}(e)}},function(e,t,r){var n=r(44);n(n.S,"Date",{now:function(){return(new Date).getTime()}})},function(e,t,r){"use strict";var n=r(65),_=r(30),a=r(78),i=_.OrderedMap;e.exports=function(e){return e.first()instanceof n?function(e){var t={},r=void 0;return i(e.withMutations(function(e){e.forEach(function(n,_){var i=n.getKey(),o=n.getNextSiblingKey(),s=n.getPrevSiblingKey(),l=n.getChildKeys(),u=n.getParentKey(),c=a();if(t[i]=c,o&&(e.get(o)?e.setIn([o,"prevSibling"],c):e.setIn([i,"nextSibling"],null)),s&&(e.get(s)?e.setIn([s,"nextSibling"],c):e.setIn([i,"prevSibling"],null)),u&&e.get(u)){var d=e.get(u).getChildKeys();e.setIn([u,"children"],d.set(d.indexOf(n.getKey()),c))}else e.setIn([i,"parent"],null),r&&(e.setIn([r.getKey(),"nextSibling"],c),e.setIn([i,"prevSibling"],t[r.getKey()])),r=e.get(i);l.forEach(function(t){e.get(t)?e.setIn([t,"parent"],c):e.setIn([i,"children"],n.getChildKeys().filter(function(e){return e!==t}))})})}).toArray().map(function(e){return[t[e.getKey()],e.set("key",t[e.getKey()])]}))}(e):function(e){return i(e.toArray().map(function(e){var t=a();return[t,e.set("key",t)]}))}(e)}},function(e,t,r){"use strict";var n=r(61),_=r(135),a=r(29);function i(e,t,r){var i=t.getCharacterList(),o=r>0?i.get(r-1):void 0,s=r=r&&(n={start:e,end:t})}),"object"!=typeof n&&a(!1),n}(i,u,r),f=d.start,p=d.end;f0&&window.scrollTo(_.x,_.y+a+10)}else{r instanceof HTMLElement||E(!1),(a=r.offsetHeight+r.offsetTop-(n.offsetHeight+_.y))>0&&s.setTop(n,s.getTop(n)+a+10)}}},t.prototype._renderChildren=function(){var e=this,t=this.props.block,r=t.getKey(),o=t.getText(),s=this.props.tree.size-1,l=g(this.props.selection,r);return this.props.tree.map(function(d,f){var p=d.get("leaves"),h=p.size-1,E=p.map(function(n,u){var c=a.encode(r,f,u),d=n.get("start"),p=n.get("end");return i.createElement(_,{key:c,offsetKey:c,block:t,start:d,selection:l?e.props.selection:null,forceSelection:e.props.forceSelection,text:o.slice(d,p),styleSet:t.getInlineStyleAt(d),customStyleMap:e.props.customStyleMap,customStyleFn:e.props.customStyleFn,isLast:f===s&&u===h})}).toArray(),g=d.get("decoratorKey");if(null==g)return E;if(!e.props.decorator)return E;var b=m(e.props.decorator),v=b.getComponentForKey(g);if(!v)return E;var O=b.getPropsForKey(g),M=a.encode(r,f,0),C=o.slice(p.first().get("start"),p.last().get("end")),P=c.getHTMLDirIfDifferent(u.getDirection(C),e.props.direction);return i.createElement(v,n({},O,{contentState:e.props.contentState,decoratedText:C,dir:P,key:M,entityKey:t.getEntityAt(d.get("start")),offsetKey:M}),E)}).toArray()},t.prototype.render=function(){var e=this.props,t=e.direction,r=e.offsetKey,n=d({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":"LTR"===t,"public/DraftStyleDefault/rtl":"RTL"===t});return i.createElement("div",{"data-offset-key":r,className:n},this._renderChildren())},t}(i.Component);e.exports=b},function(e,t,r){"use strict";e.exports=function(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}},function(e,t,r){"use strict";function n(e,t){return!!t&&(e===t.documentElement||e===t.body)}var _={getTop:function(e){var t=e.ownerDocument;return n(e,t)?t.body.scrollTop||t.documentElement.scrollTop:e.scrollTop},setTop:function(e,t){var r=e.ownerDocument;n(e,r)?r.body.scrollTop=r.documentElement.scrollTop=t:e.scrollTop=t},getLeft:function(e){var t=e.ownerDocument;return n(e,t)?t.body.scrollLeft||t.documentElement.scrollLeft:e.scrollLeft},setLeft:function(e,t){var r=e.ownerDocument;n(e,r)?r.body.scrollLeft=r.documentElement.scrollLeft=t:e.scrollLeft=t}};e.exports=_},function(e,t,r){"use strict";var n=r(650),_=r(651),a=r(213),i=new RegExp("\r\n","g"),o={"text/rtf":1,"text/html":1};function s(e){if("file"==e.kind)return e.getAsFile()}var l=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.data=t,this.types=t.types?_(t.types):[]}return e.prototype.isRichText=function(){return!(!this.getHTML()||!this.getText())||!this.isImage()&&this.types.some(function(e){return o[e]})},e.prototype.getText=function(){var e;return this.data.getData&&(this.types.length?-1!=this.types.indexOf("text/plain")&&(e=this.data.getData("text/plain")):e=this.data.getData("Text")),e?e.replace(i,"\n"):null},e.prototype.getHTML=function(){if(this.data.getData){if(!this.types.length)return this.data.getData("Text");if(-1!=this.types.indexOf("text/html"))return this.data.getData("text/html")}},e.prototype.isLink=function(){return this.types.some(function(e){return-1!=e.indexOf("Url")||-1!=e.indexOf("text/uri-list")||e.indexOf("text/x-moz-url")})},e.prototype.getLink=function(){return this.data.getData?-1!=this.types.indexOf("text/x-moz-url")?this.data.getData("text/x-moz-url").split("\n")[0]:-1!=this.types.indexOf("text/uri-list")?this.data.getData("text/uri-list"):this.data.getData("url"):null},e.prototype.isImage=function(){var e=this.types.some(function(e){return-1!=e.indexOf("application/x-moz-file")});if(e)return!0;for(var t=this.getFiles(),r=0;r0},e}();e.exports=l},function(e,t,r){"use strict";e.exports=function e(t){if(t instanceof Element){var r=t.getAttribute("data-offset-key");if(r)return r;for(var n=0;n0&&(r=a.childNodes.length)),0===r){var u=null;if(null!=s)u=s;else{var c=function(e){for(;e.firstChild&&(e.firstChild instanceof Element&&"true"===e.firstChild.getAttribute("data-blocks")||_(e.firstChild));)e=e.firstChild;return e}(a);u=o(_(c))}return{key:u,offset:0}}var d=a.childNodes[r-1],f=null,p=null;if(_(d)){var h=function(e){for(;e.lastChild&&(e.lastChild instanceof Element&&"true"===e.lastChild.getAttribute("data-blocks")||_(e.lastChild));)e=e.lastChild;return e}(d);f=o(_(h)),p=l(h)}else f=o(s),p=l(d);return{key:f,offset:p}}function l(e){var t=e.textContent;return"\n"===t?0:t.length}e.exports=function(e,t,r,_,i,l){var u=r.nodeType===Node.TEXT_NODE,c=i.nodeType===Node.TEXT_NODE;if(u&&c)return{selectionState:a(e,o(n(r)),_,o(n(i)),l),needsRecovery:!1};var d=null,f=null,p=!0;return u?(d={key:o(n(r)),offset:_},f=s(t,i,l)):c?(f={key:o(n(i)),offset:l},d=s(t,r,_)):(d=s(t,r,_),f=s(t,i,l),r===i&&_===l&&(p=!!r.firstChild&&"BR"!==r.firstChild.nodeName)),{selectionState:a(e,d.key,d.offset,f.key,f.offset),needsRecovery:p}}},function(e,t,r){"use strict";var n="\\s|(?![_])"+r(669).getPunctuation(),_=new RegExp("^(?:"+n+")*(?:['‘’]|(?!"+n+").)*(?:(?!"+n+").)"),a=new RegExp("(?:(?!"+n+").)(?:['‘’]|(?!"+n+").)*(?:"+n+")*$");function i(e,t){var r=t?a.exec(e):_.exec(e);return r?r[0]:e}var o={getBackward:function(e){return i(e,!0)},getForward:function(e){return i(e,!1)}};e.exports=o},function(e,t,r){"use strict";e.exports=function(e,t){var r,n=e.getSelection(),_=n.getStartKey(),a=n.getStartOffset(),i=e.getCurrentContent(),o=_;return t>i.getBlockForKey(_).getText().length-a?(o=i.getKeyAfter(_),r=0):r=a+t,n.merge({focusKey:o,focusOffset:r})}},function(e,t,r){"use strict";var n,_=a||function(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:null;return{text:"\r",inlines:[C()],entities:new Array(1),blocks:[function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return _({},K,e)}({parent:r,key:m(),type:e,depth:Math.max(0,Math.min(4,t))})]}},V=function e(t,r,n,a,i,o,s,l,u,d){var f=U,p=r.nodeName.toLowerCase(),E=t,m="unstyled",g=!1,b=i&&x(i,a,l),v=_({},S),M=void 0;if("#text"===p){var P=r.textContent,y=P.trim();if(a&&""===y&&r.parentElement){var w=r.parentElement.nodeName.toLowerCase();if("ol"===w||"ul"===w)return{chunk:_({},S),entityMap:t}}return""===y&&"pre"!==i?{chunk:function(e){var t=new Array(1);return e&&(t[0]=e),_({},S,{text:" ",inlines:[C()],entities:t})}(u),entityMap:t}:("pre"!==i&&(P=P.replace(D," ")),U=p,{chunk:{text:P,inlines:Array(P.length).fill(n),entities:Array(P.length).fill(u),blocks:[]},entityMap:t})}if(U=p,"br"===p)return"br"!==f||i&&"unstyled"!==b?{chunk:q(),entityMap:t}:{chunk:F("unstyled",s,d),entityMap:t};if("img"===p&&r instanceof HTMLImageElement&&r.attributes.getNamedItem("src")&&r.attributes.getNamedItem("src").value){var T=r,K={};B.forEach(function(e){var t=T.getAttribute(e);t&&(K[e]=t)}),r.textContent="📷",u=c.__create("IMAGE","MUTABLE",K||{})}n=function(e,t,r){var n=I[e];if(n)r=r.add(n).toOrderedSet();else if(t instanceof HTMLElement){var _=t;r=r.withMutations(function(e){var t=_.style.fontWeight,r=_.style.fontStyle,n=_.style.textDecoration;A.indexOf(t)>=0?e.add("BOLD"):k.indexOf(t)>=0&&e.remove("BOLD"),"italic"===r?e.add("ITALIC"):"normal"===r&&e.remove("ITALIC"),"underline"===n&&e.add("UNDERLINE"),"line-through"===n&&e.add("STRIKETHROUGH"),"none"===n&&(e.remove("UNDERLINE"),e.remove("STRIKETHROUGH"))}).toOrderedSet()}return r}(p,r,n),"ul"!==p&&"ol"!==p||(a&&(s+=1),a=p),!O&&"li"===p&&r instanceof HTMLElement&&(s=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Object.keys(R).some(function(r){e.classList.contains(r)&&(t=R[r])}),t}(r,s));var W=x(p,a,l),V=a&&"li"===i&&"li"===p,H=(!i||O)&&-1!==o.indexOf(p);(V||H)&&(M=(v=F(W,s,d)).blocks[0].key,i=p,g=!O),V&&(m="ul"===a?"unordered-list-item":"ordered-list-item");var z=r.firstChild;null!=z&&(p=z.nodeName.toLowerCase());for(var G=null;z;){z instanceof HTMLAnchorElement&&z.href&&N(z)?function(){var e=z,t={};L.forEach(function(r){var n=e.getAttribute(r);n&&(t[r]=n)}),t.url=new h(e.href).toString(),G=c.__create("LINK","MUTABLE",t||{})}():G=void 0;var Y=e(E,z,n,a,i,o,s,l,G||u,O?M:null),J=Y.chunk;E=Y.entityMap,v=j(v,J,O);var X=z.nextSibling;!d&&X&&o.indexOf(p)>=0&&i&&(v=j(v,q())),X&&(p=X.nodeName.toLowerCase()),z=X}return g&&(v=j(v,F(m,s,d))),{chunk:v,entityMap:E}},H=function(e,t,r,n){e=e.trim().replace(P,"").replace(y," ").replace(w,"").replace(T,"");var a=function(e){var t=e.get("unstyled").element,r=p([]);return e.forEach(function(e){e.aliasedElements&&e.aliasedElements.forEach(function(e){r=r.add(e)}),r=r.add(e.element)}),r.filter(function(e){return e&&e!==t}).toArray().sort()}(r),i=t(e);if(!i)return null;U=null;var o=function(e,t){return t.some(function(t){return-1!==e.indexOf("<"+t)})}(e,a)?a:["div"],s=V(n,i,C(),"ul",null,o,-1,r),l=s.chunk,u=s.entityMap;return 0===l.text.indexOf("\r")&&(l={text:l.text.slice(1),inlines:l.inlines.slice(1),entities:l.entities.slice(1),blocks:l.blocks}),"\r"===l.text.slice(-1)&&(l.text=l.text.slice(0,-1),l.inlines=l.inlines.slice(0,-1),l.entities=l.entities.slice(0,-1),l.blocks.pop()),0===l.blocks.length&&l.blocks.push(_({},S,{type:"unstyled",depth:0})),l.text.split("\r").length===l.blocks.length+1&&l.blocks.unshift({type:"unstyled",depth:0}),{chunk:l,entityMap:u}};e.exports=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:g,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:u,n=H(e,t,r,c);if(null==n)return null;var _=n.chunk,a=n.entityMap;return{contentBlocks:function(e){if(!e||!e.text||!Array.isArray(e.blocks))return null;var t=0,r=e.blocks,n=e.inlines,_=e.entities,a=O?l:s;return e.text.split("\r").reduce(function(e,i,s){i=v(i);var u=r[s],c=t+i.length,d=n.slice(t,c),f=_.slice(t,c),p=M(d.map(function(e,t){var r={style:e,entity:null};return f[t]&&(r.entity=f[t]),o.create(r)}));t=c+1;var h=u.depth,E=u.type,g=u.parent,b=u.key||m(),O=null;if(g){var C=e.cacheRef[g],P=e.contentBlocks[C];if(P.getChildKeys().isEmpty()&&P.getText()){var D=P.getCharacterList(),y=P.getText();O=m();var w=new l({key:O,text:y,characterList:D,parent:g,nextSibling:b});e.contentBlocks.push(w),P=P.withMutations(function(e){e.set("characterList",M()).set("text","").set("children",P.children.push(w.getKey()))})}e.contentBlocks[C]=P.set("children",P.children.push(b))}var T=new a({key:b,parent:g,type:E,depth:h,text:i,characterList:p,prevSibling:O||(0===s||r[s-1].parent!==g?null:r[s-1].key),nextSibling:s===r.length-1||r[s+1].parent!==g?null:r[s+1].key});return e.contentBlocks.push(T),e.cacheRef[T.key]=s,e},{cacheRef:{},contentBlocks:[]}).contentBlocks}(_),entityMap:a}}},function(e,t,r){"use strict";var n=r(71),_=r(29),a=n.isBrowser("IE <= 9");e.exports=function(e){var t,r=null;return!a&&document.implementation&&document.implementation.createHTMLDocument&&((t=document.implementation.createHTMLDocument("foo")).documentElement||_(!1),t.documentElement.innerHTML=e,r=t.getElementsByTagName("body")[0]),r}},function(e,t,r){"use strict";var n=r(55),_=r(33),a=(r(109),r(681)),i=r(68),o={currentBlockContainsLink:function(e){var t=e.getSelection(),r=e.getCurrentContent(),n=r.getEntityMap();return r.getBlockForKey(t.getAnchorKey()).getCharacterList().slice(t.getStartOffset(),t.getEndOffset()).some(function(e){var t=e.getEntity();return!!t&&"LINK"===n.__get(t).getType()})},getCurrentBlockType:function(e){var t=e.getSelection();return e.getCurrentContent().getBlockForKey(t.getStartKey()).getType()},getDataObjectForLinkURL:function(e){return{url:e.toString()}},handleKeyCommand:function(e,t){switch(t){case"bold":return o.toggleInlineStyle(e,"BOLD");case"italic":return o.toggleInlineStyle(e,"ITALIC");case"underline":return o.toggleInlineStyle(e,"UNDERLINE");case"code":return o.toggleCode(e);case"backspace":case"backspace-word":case"backspace-to-start-of-line":return o.onBackspace(e);case"delete":case"delete-word":case"delete-to-end-of-block":return o.onDelete(e);default:return null}},insertSoftNewline:function(e){var t=n.insertText(e.getCurrentContent(),e.getSelection(),"\n",e.getCurrentInlineStyle(),null),r=_.push(e,t,"insert-characters");return _.forceSelection(r,t.getSelectionAfter())},onBackspace:function(e){var t=e.getSelection();if(!t.isCollapsed()||t.getAnchorOffset()||t.getFocusOffset())return null;var r=e.getCurrentContent(),n=t.getStartKey(),a=r.getBlockBefore(n);if(a&&"atomic"===a.getType()){var i=r.getBlockMap().delete(a.getKey()),s=r.merge({blockMap:i,selectionAfter:t});if(s!==r)return _.push(e,s,"remove-range")}var l=o.tryToRemoveBlockStyle(e);return l?_.push(e,l,"change-block-type"):null},onDelete:function(e){var t=e.getSelection();if(!t.isCollapsed())return null;var r=e.getCurrentContent(),a=t.getStartKey(),i=r.getBlockForKey(a).getLength();if(t.getStartOffset()0&&i!==o)return null;var s=i.getType(),l=a.getBlockBefore(_);if("code-block"===s&&l&&"code-block"===l.getType()&&0!==l.getLength())return null;if("unstyled"!==s)return n.setBlockType(a,t,"unstyled")}return null}};e.exports=o},function(e,t,r){"use strict";var n=r(224),_=r(218),a=r(71),i=a.isPlatform("Mac OS X"),o=a.isPlatform("Windows"),s=i&&a.isBrowser("Firefox < 29"),l=n.hasCommandModifier,u=n.isCtrlKeyCommand;function c(e){return i&&e.altKey||u(e)}e.exports=function(e){switch(e.keyCode){case 66:return l(e)?"bold":null;case 68:return u(e)?"delete":null;case 72:return u(e)?"backspace":null;case 73:return l(e)?"italic":null;case 74:return l(e)?"code":null;case 75:return!o&&u(e)?"secondary-cut":null;case 77:case 79:return u(e)?"split-block":null;case 84:return i&&u(e)?"transpose-characters":null;case 85:return l(e)?"underline":null;case 87:return i&&u(e)?"backspace-word":null;case 89:return u(e)?o?"redo":"secondary-paste":null;case 90:return function(e){return l(e)?e.shiftKey?"redo":"undo":null}(e)||null;case _.RETURN:return"split-block";case _.DELETE:return function(e){return o&&e.shiftKey?null:c(e)?"delete-word":"delete"}(e);case _.BACKSPACE:return function(e){return l(e)&&i?"backspace-to-start-of-line":c(e)?"backspace-word":"backspace"}(e);case _.LEFT:return s&&l(e)?"move-selection-to-start-of-block":null;case _.RIGHT:return s&&l(e)?"move-selection-to-end-of-block":null;default:return null}}},function(e,t,r){"use strict";var n={stringify:function(e){return"_"+String(e)},unstringify:function(e){return e.slice(1)}};e.exports=n},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(0);t.MdeToolbarButtonGroup=function(e){return n.createElement("ul",{className:"mde-header-group"},e.children)}},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),_=this&&this.__assign||Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&void 0!==arguments[0]?arguments[0]:{};Array.isArray(e)?e={entries:e}:"string"==typeof e&&(e={entries:[e]});var t=function(){var e=c[d],t=(0,i.createPath)(e),r=void 0,_=void 0;e.key&&(r=e.key,_=h(r));var o=(0,i.parsePath)(t);return(0,a.createLocation)(n({},o,{state:_}),void 0,r)},r=function(e){var t=d+e;return t>=0&&t=0&&d0&&void 0!==arguments[0]?arguments[0]:{};a.canUseDOM||(0,_.default)(!1);var t=e.forceRefresh||!(0,s.supportsHistory)()?o:i,r=t.getUserConfirmation,u=t.getCurrentLocation,c=t.pushLocation,d=t.replaceLocation,f=t.go,p=(0,l.default)(n({getUserConfirmation:r},e,{getCurrentLocation:u,pushLocation:c,replaceLocation:d,go:f})),h=0,E=void 0,m=function(e,t){1==++h&&(E=i.startListener(p.transitionTo));var r=t?p.listenBefore(e):p.listen(e);return function(){r(),0==--h&&E()}};return n({},p,{listenBefore:function(e){return m(e,!0)},listen:function(e){return m(e,!1)}})}},function(e,t,r){"use strict";t.__esModule=!0;var n=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};a.canUseDOM||(0,_.default)(!1);var t=e.queryKey,r=e.hashType;"string"!=typeof t&&(t="_k"),null==r&&(r="slash"),r in c||(r="slash");var l=c[r],u=o.getUserConfirmation,d=(0,s.default)(n({getUserConfirmation:u},e,{getCurrentLocation:function(){return o.getCurrentLocation(l,t)},pushLocation:function(e){return o.pushLocation(e,l,t)},replaceLocation:function(e){return o.replaceLocation(e,l,t)},go:o.go})),f=0,p=void 0,h=function(e,r){1==++f&&(p=o.startListener(d.transitionTo,l,t));var n=r?d.listenBefore(e):d.listen(e);return function(){n(),0==--f&&p()}};(0,i.supportsGoWithoutReloadUsingHash)();return n({},d,{listenBefore:function(e){return h(e,!0)},listen:function(e){return h(e,!1)},go:function(e){d.go(e)},createHref:function(e){return"#"+l.encodePath(d.createHref(e))}})}},function(module,__webpack_exports__,__webpack_require__){"use strict";(function(module){var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(2),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(3),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(5),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(4),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(6),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__),react__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(0),react__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_5__),redux__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(22),react_redux__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(28),react_css_modules__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(10),react_css_modules__WEBPACK_IMPORTED_MODULE_8___default=__webpack_require__.n(react_css_modules__WEBPACK_IMPORTED_MODULE_8__),react_transition_group_CSSTransition__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(342),react_transition_group_CSSTransition__WEBPACK_IMPORTED_MODULE_9___default=__webpack_require__.n(react_transition_group_CSSTransition__WEBPACK_IMPORTED_MODULE_9__),components_modals_SiteLoader_SiteLoader__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(229),components_modals_FieldModal_FieldModal__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(343),components_modals_MediaModal_MediaModal__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(347),components_modals_WysiwygModal_WysiwygModal__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(348),components_modals_MarkdownModal_MarkdownModal__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(349),components_modals_ReferenceModal_ReferenceModal__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(351),components_modals_ModelChooseModal_ModelChooseModal__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(352),components_modals_AlertModal_AlertModal__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__(38),ducks_nav__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__(7),ducks_models__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__(25),_app_sss__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__(796),_app_sss__WEBPACK_IMPORTED_MODULE_20___default=__webpack_require__.n(_app_sss__WEBPACK_IMPORTED_MODULE_20__),_dec,_class;!function(){var e=__webpack_require__(1).enterModule;e&&e(module)}();var App=(_dec=react_css_modules__WEBPACK_IMPORTED_MODULE_8___default()(_app_sss__WEBPACK_IMPORTED_MODULE_20___default.a,{allowMultiple:!0}),_dec(_class=function(_React$Component){function App(){var e,t;_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this,App);for(var r=arguments.length,n=new Array(r),_=0;_n&&react__WEBPACK_IMPORTED_MODULE_8___default.a.createElement("div",{styleName:"error"},"Error: the min value should be smaller than max value! Please, fix it.")))}},{key:"__reactstandin__regenerateByEval",value:function __reactstandin__regenerateByEval(key,code){this[key]=eval(code)}}]),ValidationDate}(react__WEBPACK_IMPORTED_MODULE_8__.Component))||_class);!function(){var e=__webpack_require__(1).default,t=__webpack_require__(1).leaveModule;e&&(e.register(ValidationDate,"ValidationDate","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/components/modals/FieldModal/Validations/ValidationDate.js"),t(module))}()}).call(this,__webpack_require__(12)(module))},function(module,__webpack_exports__,__webpack_require__){"use strict";(function(module){__webpack_require__.d(__webpack_exports__,"a",function(){return ValidationReference});var core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(32),core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_0__),core_js_modules_es6_array_map__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(58),core_js_modules_es6_array_map__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(core_js_modules_es6_array_map__WEBPACK_IMPORTED_MODULE_1__),core_js_modules_es7_symbol_async_iterator__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(52),core_js_modules_es7_symbol_async_iterator__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(core_js_modules_es7_symbol_async_iterator__WEBPACK_IMPORTED_MODULE_2__),core_js_modules_es6_symbol__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(53),core_js_modules_es6_symbol__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(core_js_modules_es6_symbol__WEBPACK_IMPORTED_MODULE_3__),core_js_modules_es6_object_assign__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(127),core_js_modules_es6_object_assign__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(core_js_modules_es6_object_assign__WEBPACK_IMPORTED_MODULE_4__),core_js_modules_es6_array_from__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(269),core_js_modules_es6_array_from__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(core_js_modules_es6_array_from__WEBPACK_IMPORTED_MODULE_5__),_babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(11),_babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(_babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_6__),core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(43),core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_7___default=__webpack_require__.n(core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_7__),core_js_modules_es6_array_iterator__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(76),core_js_modules_es6_array_iterator__WEBPACK_IMPORTED_MODULE_8___default=__webpack_require__.n(core_js_modules_es6_array_iterator__WEBPACK_IMPORTED_MODULE_8__),core_js_modules_es6_string_iterator__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(97),core_js_modules_es6_string_iterator__WEBPACK_IMPORTED_MODULE_9___default=__webpack_require__.n(core_js_modules_es6_string_iterator__WEBPACK_IMPORTED_MODULE_9__),core_js_modules_es6_set__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(299),core_js_modules_es6_set__WEBPACK_IMPORTED_MODULE_10___default=__webpack_require__.n(core_js_modules_es6_set__WEBPACK_IMPORTED_MODULE_10__),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(2),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_11___default=__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_11__),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(3),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_12___default=__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_12__),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(5),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_13___default=__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_13__),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(4),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_14___default=__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_14__),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(6),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_15___default=__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_15__),react__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(0),react__WEBPACK_IMPORTED_MODULE_16___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_16__),react_css_modules__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__(10),react_css_modules__WEBPACK_IMPORTED_MODULE_17___default=__webpack_require__.n(react_css_modules__WEBPACK_IMPORTED_MODULE_17__),components_elements_CheckboxControl_CheckboxControl__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__(39),components_elements_InputControl_InputControl__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__(17),_FieldModal_sss__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__(770),_FieldModal_sss__WEBPACK_IMPORTED_MODULE_20___default=__webpack_require__.n(_FieldModal_sss__WEBPACK_IMPORTED_MODULE_20__),_dec,_class;!function(){var e=__webpack_require__(1).enterModule;e&&e(module)}();var ValidationReference=(_dec=react_css_modules__WEBPACK_IMPORTED_MODULE_17___default()(_FieldModal_sss__WEBPACK_IMPORTED_MODULE_20___default.a,{allowMultiple:!0}),_dec(_class=function(_Component){function ValidationReference(e){var t;_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_11___default()(this,ValidationReference),(t=_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_13___default()(this,_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_14___default()(ValidationReference).call(this,e))).state={models:{active:!1,modelsList:[],errorMsg:""}},t.modelsAll=void 0,t.modelsSet=new Set,t.onTypesActive=function(e){t.setState({models:_babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_6___default()({},t.state.models,{active:e})},t.update)},t.onTypesErrorMsg=function(e){var r=e.target.value;t.setState({models:_babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_6___default()({},t.state.models,{errorMsg:r})},t.update)},t.onModelChange=function(e,r){r?t.modelsSet.add(e):t.modelsSet.delete(e),t.setState({models:_babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_6___default()({},t.state.models,{modelsList:Array.from(t.modelsSet)})},t.update)},t.update=function(){t.props.update(t.state)},t.modelsAll=e.models,Object.assign(t.state,e.validations);var r=t.state.models.modelsList;return r&&"function"==typeof r[Symbol.iterator]&&(t.modelsSet=new Set(r)),t}return _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_15___default()(ValidationReference,_Component),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_12___default()(ValidationReference,[{key:"render",value:function(){var e=this;return react__WEBPACK_IMPORTED_MODULE_16___default.a.createElement("div",null,react__WEBPACK_IMPORTED_MODULE_16___default.a.createElement("div",{styleName:"validation"},react__WEBPACK_IMPORTED_MODULE_16___default.a.createElement("div",{styleName:"active"},react__WEBPACK_IMPORTED_MODULE_16___default.a.createElement(components_elements_CheckboxControl_CheckboxControl__WEBPACK_IMPORTED_MODULE_18__.a,{title:"Accept only specified entry models",checked:this.state.models.active,onChange:this.onTypesActive})),react__WEBPACK_IMPORTED_MODULE_16___default.a.createElement("div",{styleName:"models"},this.modelsAll.map(function(t){return react__WEBPACK_IMPORTED_MODULE_16___default.a.createElement("div",{styleName:"model-checkbox",key:t.nameId},react__WEBPACK_IMPORTED_MODULE_16___default.a.createElement(components_elements_CheckboxControl_CheckboxControl__WEBPACK_IMPORTED_MODULE_18__.a,{title:t.name,checked:e.modelsSet.has(t.nameId),onChange:function(r){return e.onModelChange(t.nameId,r)},disabled:!e.state.models.active}))})),react__WEBPACK_IMPORTED_MODULE_16___default.a.createElement(components_elements_InputControl_InputControl__WEBPACK_IMPORTED_MODULE_19__.a,{label:"Custom error message",onChange:this.onTypesErrorMsg,value:this.state.models.errorMsg,readOnly:!this.state.models.active})))}},{key:"__reactstandin__regenerateByEval",value:function __reactstandin__regenerateByEval(key,code){this[key]=eval(code)}}]),ValidationReference}(react__WEBPACK_IMPORTED_MODULE_16__.Component))||_class);!function(){var e=__webpack_require__(1).default,t=__webpack_require__(1).leaveModule;e&&(e.register(ValidationReference,"ValidationReference","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/components/modals/FieldModal/Validations/ValidationReference.js"),t(module))}()}).call(this,__webpack_require__(12)(module))},function(module,__webpack_exports__,__webpack_require__){"use strict";(function(module){__webpack_require__.d(__webpack_exports__,"a",function(){return MediaModal});var core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(32),core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_0__),core_js_modules_es6_array_filter__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(166),core_js_modules_es6_array_filter__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(core_js_modules_es6_array_filter__WEBPACK_IMPORTED_MODULE_1__),core_js_modules_es6_array_map__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(58),core_js_modules_es6_array_map__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(core_js_modules_es6_array_map__WEBPACK_IMPORTED_MODULE_2__),core_js_modules_es6_array_index_of__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(45),core_js_modules_es6_array_index_of__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(core_js_modules_es6_array_index_of__WEBPACK_IMPORTED_MODULE_3__),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(2),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_4__),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(3),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_5__),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(5),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_6__),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(4),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_7___default=__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_7__),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(6),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_8___default=__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_8__),react__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(0),react__WEBPACK_IMPORTED_MODULE_9___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_9__),react_css_modules__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(10),react_css_modules__WEBPACK_IMPORTED_MODULE_10___default=__webpack_require__.n(react_css_modules__WEBPACK_IMPORTED_MODULE_10__),components_elements_ButtonControl_ButtonControl__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(23),components_elements_InputControl_InputControl__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(17),components_elements_MediaView_MediaView__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(173),index__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(21),_MediaModal_sss__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(776),_MediaModal_sss__WEBPACK_IMPORTED_MODULE_15___default=__webpack_require__.n(_MediaModal_sss__WEBPACK_IMPORTED_MODULE_15__),_dec,_class;!function(){var e=__webpack_require__(1).enterModule;e&&e(module)}();var MediaModal=(_dec=react_css_modules__WEBPACK_IMPORTED_MODULE_10___default()(_MediaModal_sss__WEBPACK_IMPORTED_MODULE_15___default.a,{allowMultiple:!0}),_dec(_class=function(_Component){function MediaModal(e){var t;return _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_4___default()(this,MediaModal),(t=_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_6___default()(this,_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_7___default()(MediaModal).call(this,e))).state={selectedItems:[],searchText:""},t.isMult=!1,t.active=!1,t.callback=null,t.items=[],t.focusElm=null,t.onKeyDown=function(e){e||(e=window.event),e.stopPropagation(),13==e.keyCode&&setTimeout(t.onChoose,1)},t.onSearch=function(e){var r=e.target.value;t.setState({searchText:r,selectedItems:[]})},t.onSelect=function(e){if(t.isMult){var r=t.state.selectedItems,n=r.indexOf(e);-1==n?r.push(e):r.splice(n,1),t.setState({selectedItems:r})}else t.setState({selectedItems:[e]})},t.onSearchKeyDown=function(e){e.stopPropagation(),27==e.keyCode&&t.setState({searchText:""})},t.onChoose=function(){t.state.selectedItems.length&&t.active&&(t.callback(t.state.selectedItems),t.close())},t.close=function(){t.active=!1,t.props.onClose()},t.isMult=e.params.isMult,t.callback=e.params.callback,t.items=index__WEBPACK_IMPORTED_MODULE_14__.store.getState().media.items,t}return _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_8___default()(MediaModal,_Component),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_5___default()(MediaModal,[{key:"componentDidMount",value:function(){var e=this;this.active=!0,document.addEventListener("keydown",this.onKeyDown),this.focusElm&&setTimeout(function(){return e.focusElm.focus()},2)}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.onKeyDown)}},{key:"searchMatch",value:function(e,t){return!e||-1!=t.toLowerCase().indexOf(e.toLowerCase())}},{key:"render",value:function(){var e=this;return react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:"modal",onClick:this.close},react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:"modal-inner",onClick:function(e){return e.stopPropagation()}},react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:"content"},react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:"input-wrapper"},react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement(components_elements_InputControl_InputControl__WEBPACK_IMPORTED_MODULE_12__.a,{type:"big",label:"search media files",DOMRef:function(t){return e.focusElm=t},value:this.state.searchText,onKeyDown:this.onSearchKeyDown,onChange:this.onSearch})),react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:"media"},this.items.filter(function(e){return!e.assigned}).filter(function(t){return e.searchMatch(e.state.searchText,t.name)}).map(function(t){var r="media-item";return-1!=e.state.selectedItems.indexOf(t)&&(r+=" media-chosen"),react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:r,key:t.origin.id},react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:"media-header",onClick:function(){return e.onSelect(t)}},t.name),react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement(components_elements_MediaView_MediaView__WEBPACK_IMPORTED_MODULE_13__.a,{item:t}))})),react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:"input-wrapper buttons-wrapper"},react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:"buttons-inner"},react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement(components_elements_ButtonControl_ButtonControl__WEBPACK_IMPORTED_MODULE_11__.a,{color:"green",value:"Choose",disabled:!this.state.selectedItems.length,onClick:this.onChoose})),react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:"buttons-inner"},react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement(components_elements_ButtonControl_ButtonControl__WEBPACK_IMPORTED_MODULE_11__.a,{color:"gray",value:"Cancel",onClick:this.close}))))))}},{key:"__reactstandin__regenerateByEval",value:function __reactstandin__regenerateByEval(key,code){this[key]=eval(code)}}]),MediaModal}(react__WEBPACK_IMPORTED_MODULE_9__.Component))||_class);!function(){var e=__webpack_require__(1).default,t=__webpack_require__(1).leaveModule;e&&(e.register(MediaModal,"MediaModal","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/components/modals/MediaModal/MediaModal.js"),t(module))}()}).call(this,__webpack_require__(12)(module))},function(module,__webpack_exports__,__webpack_require__){"use strict";(function(module){__webpack_require__.d(__webpack_exports__,"a",function(){return WysiwygModal});var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(2),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(3),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(5),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(4),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(6),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__),react__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(0),react__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_5__),react_css_modules__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(10),react_css_modules__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(react_css_modules__WEBPACK_IMPORTED_MODULE_6__),svg_inline_react__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(18),svg_inline_react__WEBPACK_IMPORTED_MODULE_7___default=__webpack_require__.n(svg_inline_react__WEBPACK_IMPORTED_MODULE_7__),medium_editor_dist_css_medium_editor_css__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(778),medium_editor_dist_css_medium_editor_css__WEBPACK_IMPORTED_MODULE_8___default=__webpack_require__.n(medium_editor_dist_css_medium_editor_css__WEBPACK_IMPORTED_MODULE_8__),medium_editor_dist_css_themes_default_css__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(780),medium_editor_dist_css_themes_default_css__WEBPACK_IMPORTED_MODULE_9___default=__webpack_require__.n(medium_editor_dist_css_themes_default_css__WEBPACK_IMPORTED_MODULE_9__),react_medium_editor__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(174),react_medium_editor__WEBPACK_IMPORTED_MODULE_10___default=__webpack_require__.n(react_medium_editor__WEBPACK_IMPORTED_MODULE_10__),_WysiwygModal_sss__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(782),_WysiwygModal_sss__WEBPACK_IMPORTED_MODULE_11___default=__webpack_require__.n(_WysiwygModal_sss__WEBPACK_IMPORTED_MODULE_11__),_dec,_class;!function(){var e=__webpack_require__(1).enterModule;e&&e(module)}();var WysiwygModal=(_dec=react_css_modules__WEBPACK_IMPORTED_MODULE_6___default()(_WysiwygModal_sss__WEBPACK_IMPORTED_MODULE_11___default.a,{allowMultiple:!0}),_dec(_class=function(_Component){function WysiwygModal(e){var t;return _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this,WysiwygModal),(t=_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default()(this,_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default()(WysiwygModal).call(this,e))).text="",t.onClose=null,t.callback=null,t.onClosing=function(){t.callback(t.text),t.onClose()},t.onChange=function(e){t.text=e},t.onClose=e.onClose,t.callback=e.params.callback,t.text=e.params.text,t}return _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default()(WysiwygModal,_Component),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(WysiwygModal,[{key:"render",value:function(){return react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{styleName:"wrapper"},react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{styleName:"return",onClick:this.onClosing},react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement(svg_inline_react__WEBPACK_IMPORTED_MODULE_7___default.a,{styleName:"cross",src:__webpack_require__(77)})),react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement(react_medium_editor__WEBPACK_IMPORTED_MODULE_10___default.a,{styleName:"editor",text:this.text,onChange:this.onChange}))}},{key:"__reactstandin__regenerateByEval",value:function __reactstandin__regenerateByEval(key,code){this[key]=eval(code)}}]),WysiwygModal}(react__WEBPACK_IMPORTED_MODULE_5__.Component))||_class);!function(){var e=__webpack_require__(1).default,t=__webpack_require__(1).leaveModule;e&&(e.register(WysiwygModal,"WysiwygModal","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/components/modals/WysiwygModal/WysiwygModal.js"),t(module))}()}).call(this,__webpack_require__(12)(module))},function(module,__webpack_exports__,__webpack_require__){"use strict";(function(module){__webpack_require__.d(__webpack_exports__,"a",function(){return MarkdownModal});var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(2),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(3),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(5),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(4),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(6),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__),react__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(0),react__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_5__),react_css_modules__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(10),react_css_modules__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(react_css_modules__WEBPACK_IMPORTED_MODULE_6__),svg_inline_react__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(18),svg_inline_react__WEBPACK_IMPORTED_MODULE_7___default=__webpack_require__.n(svg_inline_react__WEBPACK_IMPORTED_MODULE_7__),components_elements_MarkdownEditor_MarkdownEditor__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(141),_MarkdownModal_sss__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(788),_MarkdownModal_sss__WEBPACK_IMPORTED_MODULE_9___default=__webpack_require__.n(_MarkdownModal_sss__WEBPACK_IMPORTED_MODULE_9__),_dec,_class;!function(){var e=__webpack_require__(1).enterModule;e&&e(module)}();var MarkdownModal=(_dec=react_css_modules__WEBPACK_IMPORTED_MODULE_6___default()(_MarkdownModal_sss__WEBPACK_IMPORTED_MODULE_9___default.a,{allowMultiple:!0}),_dec(_class=function(_Component){function MarkdownModal(e){var t;return _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this,MarkdownModal),(t=_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default()(this,_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default()(MarkdownModal).call(this,e))).text="",t.onClose=null,t.callback=null,t.onClosing=function(){t.callback(t.text),t.onClose()},t.onChange=function(e){t.text=e},t.onClose=e.onClose,t.callback=e.params.callback,t.text=e.params.text,t}return _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default()(MarkdownModal,_Component),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(MarkdownModal,[{key:"render",value:function(){return react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{styleName:"wrapper"},react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{styleName:"return",onClick:this.onClosing},react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement(svg_inline_react__WEBPACK_IMPORTED_MODULE_7___default.a,{styleName:"cross",src:__webpack_require__(77)})),react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement(components_elements_MarkdownEditor_MarkdownEditor__WEBPACK_IMPORTED_MODULE_8__.b,{layout:components_elements_MarkdownEditor_MarkdownEditor__WEBPACK_IMPORTED_MODULE_8__.a,value:this.text,onChange:this.onChange}))}},{key:"__reactstandin__regenerateByEval",value:function __reactstandin__regenerateByEval(key,code){this[key]=eval(code)}}]),MarkdownModal}(react__WEBPACK_IMPORTED_MODULE_5__.Component))||_class);!function(){var e=__webpack_require__(1).default,t=__webpack_require__(1).leaveModule;e&&(e.register(MarkdownModal,"MarkdownModal","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/components/modals/MarkdownModal/MarkdownModal.js"),t(module))}()}).call(this,__webpack_require__(12)(module))},function(e,t,r){var n;/*! showdown v 1.8.7 - 16-10-2018 */ +(function(){function _(e){"use strict";var t={omitExtraWLInCodeBlocks:{defaultValue:!1,describe:"Omit the default extra whiteline added to code blocks",type:"boolean"},noHeaderId:{defaultValue:!1,describe:"Turn on/off generated header id",type:"boolean"},prefixHeaderId:{defaultValue:!1,describe:"Add a prefix to the generated header ids. Passing a string will prefix that string to the header id. Setting to true will add a generic 'section-' prefix",type:"string"},rawPrefixHeaderId:{defaultValue:!1,describe:'Setting this option to true will prevent showdown from modifying the prefix. This might result in malformed IDs (if, for instance, the " char is used in the prefix)',type:"boolean"},ghCompatibleHeaderId:{defaultValue:!1,describe:"Generate header ids compatible with github style (spaces are replaced with dashes, a bunch of non alphanumeric chars are removed)",type:"boolean"},rawHeaderId:{defaultValue:!1,describe:"Remove only spaces, ' and \" from generated header ids (including prefixes), replacing them with dashes (-). WARNING: This might result in malformed ids",type:"boolean"},headerLevelStart:{defaultValue:!1,describe:"The header blocks level start",type:"integer"},parseImgDimensions:{defaultValue:!1,describe:"Turn on/off image dimension parsing",type:"boolean"},simplifiedAutoLink:{defaultValue:!1,describe:"Turn on/off GFM autolink style",type:"boolean"},excludeTrailingPunctuationFromURLs:{defaultValue:!1,describe:"Excludes trailing punctuation from links generated with autoLinking",type:"boolean"},literalMidWordUnderscores:{defaultValue:!1,describe:"Parse midword underscores as literal underscores",type:"boolean"},literalMidWordAsterisks:{defaultValue:!1,describe:"Parse midword asterisks as literal asterisks",type:"boolean"},strikethrough:{defaultValue:!1,describe:"Turn on/off strikethrough support",type:"boolean"},tables:{defaultValue:!1,describe:"Turn on/off tables support",type:"boolean"},tablesHeaderId:{defaultValue:!1,describe:"Add an id to table headers",type:"boolean"},ghCodeBlocks:{defaultValue:!0,describe:"Turn on/off GFM fenced code blocks support",type:"boolean"},tasklists:{defaultValue:!1,describe:"Turn on/off GFM tasklist support",type:"boolean"},smoothLivePreview:{defaultValue:!1,describe:"Prevents weird effects in live previews due to incomplete input",type:"boolean"},smartIndentationFix:{defaultValue:!1,description:"Tries to smartly fix indentation in es6 strings",type:"boolean"},disableForced4SpacesIndentedSublists:{defaultValue:!1,description:"Disables the requirement of indenting nested sublists by 4 spaces",type:"boolean"},simpleLineBreaks:{defaultValue:!1,description:"Parses simple line breaks as
(GFM Style)",type:"boolean"},requireSpaceBeforeHeadingText:{defaultValue:!1,description:"Makes adding a space between `#` and the header text mandatory (GFM Style)",type:"boolean"},ghMentions:{defaultValue:!1,description:"Enables github @mentions",type:"boolean"},ghMentionsLink:{defaultValue:"https://github.com/{u}",description:"Changes the link generated by @mentions. Only applies if ghMentions option is enabled.",type:"string"},encodeEmails:{defaultValue:!0,description:"Encode e-mail addresses through the use of Character Entities, transforming ASCII e-mail addresses into its equivalent decimal entities",type:"boolean"},openLinksInNewWindow:{defaultValue:!1,description:"Open all links in new windows",type:"boolean"},backslashEscapesHTMLTags:{defaultValue:!1,description:"Support for HTML Tag escaping. ex:
foo
",type:"boolean"},emoji:{defaultValue:!1,description:"Enable emoji support. Ex: `this is a :smile: emoji`",type:"boolean"},underline:{defaultValue:!1,description:"Enable support for underline. Syntax is double or triple underscores: `__underline word__`. With this option enabled, underscores no longer parses into `` and ``",type:"boolean"},completeHTMLDocument:{defaultValue:!1,description:"Outputs a complete html document, including ``, `` and `` tags",type:"boolean"},metadata:{defaultValue:!1,description:"Enable support for document metadata (defined at the top of the document between `«««` and `»»»` or between `---` and `---`).",type:"boolean"},splitAdjacentBlockquotes:{defaultValue:!1,description:"Split adjacent blockquote blocks",type:"boolean"}};if(!1===e)return JSON.parse(JSON.stringify(t));var r={};for(var n in t)t.hasOwnProperty(n)&&(r[n]=t[n].defaultValue);return r}var a={},i={},o={},s=_(!0),l="vanilla",u={github:{omitExtraWLInCodeBlocks:!0,simplifiedAutoLink:!0,excludeTrailingPunctuationFromURLs:!0,literalMidWordUnderscores:!0,strikethrough:!0,tables:!0,tablesHeaderId:!0,ghCodeBlocks:!0,tasklists:!0,disableForced4SpacesIndentedSublists:!0,simpleLineBreaks:!0,requireSpaceBeforeHeadingText:!0,ghCompatibleHeaderId:!0,ghMentions:!0,backslashEscapesHTMLTags:!0,emoji:!0,splitAdjacentBlockquotes:!0},original:{noHeaderId:!0,ghCodeBlocks:!1},ghost:{omitExtraWLInCodeBlocks:!0,parseImgDimensions:!0,simplifiedAutoLink:!0,excludeTrailingPunctuationFromURLs:!0,literalMidWordUnderscores:!0,strikethrough:!0,tables:!0,tablesHeaderId:!0,ghCodeBlocks:!0,tasklists:!0,smoothLivePreview:!0,simpleLineBreaks:!0,requireSpaceBeforeHeadingText:!0,ghMentions:!1,encodeEmails:!0},vanilla:_(!0),allOn:function(){"use strict";var e=_(!0),t={};for(var r in e)e.hasOwnProperty(r)&&(t[r]=!0);return t}()};function c(e,t){"use strict";var r=t?"Error in "+t+" extension->":"Error in unnamed extension",n={valid:!0,error:""};a.helper.isArray(e)||(e=[e]);for(var _=0;_-1,c=new RegExp(t+"|"+r,"g"+l.replace(/g/g,"")),d=new RegExp(t,l.replace(/g/g,"")),f=[];do{for(_=0;i=c.exec(e);)if(d.test(i[0]))_++||(o=(a=c.lastIndex)-i[0].length);else if(_&&!--_){s=i.index+i[0].length;var p={left:{start:o,end:a},match:{start:a,end:i.index},right:{start:i.index,end:s},wholeMatch:{start:o,end:s}};if(f.push(p),!u)return f}}while(_&&(c.lastIndex=a));return f};a.helper.matchRecursiveRegExp=function(e,t,r,n){"use strict";for(var _=f(e,t,r,n),a=[],i=0;i<_.length;++i)a.push([e.slice(_[i].wholeMatch.start,_[i].wholeMatch.end),e.slice(_[i].match.start,_[i].match.end),e.slice(_[i].left.start,_[i].left.end),e.slice(_[i].right.start,_[i].right.end)]);return a},a.helper.replaceRecursiveRegExp=function(e,t,r,n,_){"use strict";if(!a.helper.isFunction(t)){var i=t;t=function(){return i}}var o=f(e,r,n,_),s=e,l=o.length;if(l>0){var u=[];0!==o[0].wholeMatch.start&&u.push(e.slice(0,o[0].wholeMatch.start));for(var c=0;c=0?n+(r||0):n},a.helper.splitAtIndex=function(e,t){"use strict";if(!a.helper.isString(e))throw"InvalidArgumentError: first parameter of showdown.helper.regexIndexOf function must be a string";return[e.substring(0,t),e.substring(t)]},a.helper.encodeEmailAddress=function(e){"use strict";var t=[function(e){return"&#"+e.charCodeAt(0)+";"},function(e){return"&#x"+e.charCodeAt(0).toString(16)+";"},function(e){return e}];return e=e.replace(/./g,function(e){if("@"===e)e=t[Math.floor(2*Math.random())](e);else{var r=Math.random();e=r>.9?t[2](e):r>.45?t[1](e):t[0](e)}return e})},"undefined"==typeof console&&(console={warn:function(e){"use strict";alert(e)},log:function(e){"use strict";alert(e)},error:function(e){"use strict";throw e}}),a.helper.regexes={asteriskDashAndColon:/([*_:~])/g},a.helper.emojis={"+1":"👍","-1":"👎",100:"💯",1234:"🔢","1st_place_medal":"🥇","2nd_place_medal":"🥈","3rd_place_medal":"🥉","8ball":"🎱",a:"🅰️",ab:"🆎",abc:"🔤",abcd:"🔡",accept:"🉑",aerial_tramway:"🚡",airplane:"✈️",alarm_clock:"⏰",alembic:"⚗️",alien:"👽",ambulance:"🚑",amphora:"🏺",anchor:"⚓️",angel:"👼",anger:"💢",angry:"😠",anguished:"😧",ant:"🐜",apple:"🍎",aquarius:"♒️",aries:"♈️",arrow_backward:"◀️",arrow_double_down:"⏬",arrow_double_up:"⏫",arrow_down:"⬇️",arrow_down_small:"🔽",arrow_forward:"▶️",arrow_heading_down:"⤵️",arrow_heading_up:"⤴️",arrow_left:"⬅️",arrow_lower_left:"↙️",arrow_lower_right:"↘️",arrow_right:"➡️",arrow_right_hook:"↪️",arrow_up:"⬆️",arrow_up_down:"↕️",arrow_up_small:"🔼",arrow_upper_left:"↖️",arrow_upper_right:"↗️",arrows_clockwise:"🔃",arrows_counterclockwise:"🔄",art:"🎨",articulated_lorry:"🚛",artificial_satellite:"🛰",astonished:"😲",athletic_shoe:"👟",atm:"🏧",atom_symbol:"⚛️",avocado:"🥑",b:"🅱️",baby:"👶",baby_bottle:"🍼",baby_chick:"🐤",baby_symbol:"🚼",back:"🔙",bacon:"🥓",badminton:"🏸",baggage_claim:"🛄",baguette_bread:"🥖",balance_scale:"⚖️",balloon:"🎈",ballot_box:"🗳",ballot_box_with_check:"☑️",bamboo:"🎍",banana:"🍌",bangbang:"‼️",bank:"🏦",bar_chart:"📊",barber:"💈",baseball:"⚾️",basketball:"🏀",basketball_man:"⛹️",basketball_woman:"⛹️‍♀️",bat:"🦇",bath:"🛀",bathtub:"🛁",battery:"🔋",beach_umbrella:"🏖",bear:"🐻",bed:"🛏",bee:"🐝",beer:"🍺",beers:"🍻",beetle:"🐞",beginner:"🔰",bell:"🔔",bellhop_bell:"🛎",bento:"🍱",biking_man:"🚴",bike:"🚲",biking_woman:"🚴‍♀️",bikini:"👙",biohazard:"☣️",bird:"🐦",birthday:"🎂",black_circle:"⚫️",black_flag:"🏴",black_heart:"🖤",black_joker:"🃏",black_large_square:"⬛️",black_medium_small_square:"◾️",black_medium_square:"◼️",black_nib:"✒️",black_small_square:"▪️",black_square_button:"🔲",blonde_man:"👱",blonde_woman:"👱‍♀️",blossom:"🌼",blowfish:"🐡",blue_book:"📘",blue_car:"🚙",blue_heart:"💙",blush:"😊",boar:"🐗",boat:"⛵️",bomb:"💣",book:"📖",bookmark:"🔖",bookmark_tabs:"📑",books:"📚",boom:"💥",boot:"👢",bouquet:"💐",bowing_man:"🙇",bow_and_arrow:"🏹",bowing_woman:"🙇‍♀️",bowling:"🎳",boxing_glove:"🥊",boy:"👦",bread:"🍞",bride_with_veil:"👰",bridge_at_night:"🌉",briefcase:"💼",broken_heart:"💔",bug:"🐛",building_construction:"🏗",bulb:"💡",bullettrain_front:"🚅",bullettrain_side:"🚄",burrito:"🌯",bus:"🚌",business_suit_levitating:"🕴",busstop:"🚏",bust_in_silhouette:"👤",busts_in_silhouette:"👥",butterfly:"🦋",cactus:"🌵",cake:"🍰",calendar:"📆",call_me_hand:"🤙",calling:"📲",camel:"🐫",camera:"📷",camera_flash:"📸",camping:"🏕",cancer:"♋️",candle:"🕯",candy:"🍬",canoe:"🛶",capital_abcd:"🔠",capricorn:"♑️",car:"🚗",card_file_box:"🗃",card_index:"📇",card_index_dividers:"🗂",carousel_horse:"🎠",carrot:"🥕",cat:"🐱",cat2:"🐈",cd:"💿",chains:"⛓",champagne:"🍾",chart:"💹",chart_with_downwards_trend:"📉",chart_with_upwards_trend:"📈",checkered_flag:"🏁",cheese:"🧀",cherries:"🍒",cherry_blossom:"🌸",chestnut:"🌰",chicken:"🐔",children_crossing:"🚸",chipmunk:"🐿",chocolate_bar:"🍫",christmas_tree:"🎄",church:"⛪️",cinema:"🎦",circus_tent:"🎪",city_sunrise:"🌇",city_sunset:"🌆",cityscape:"🏙",cl:"🆑",clamp:"🗜",clap:"👏",clapper:"🎬",classical_building:"🏛",clinking_glasses:"🥂",clipboard:"📋",clock1:"🕐",clock10:"🕙",clock1030:"🕥",clock11:"🕚",clock1130:"🕦",clock12:"🕛",clock1230:"🕧",clock130:"🕜",clock2:"🕑",clock230:"🕝",clock3:"🕒",clock330:"🕞",clock4:"🕓",clock430:"🕟",clock5:"🕔",clock530:"🕠",clock6:"🕕",clock630:"🕡",clock7:"🕖",clock730:"🕢",clock8:"🕗",clock830:"🕣",clock9:"🕘",clock930:"🕤",closed_book:"📕",closed_lock_with_key:"🔐",closed_umbrella:"🌂",cloud:"☁️",cloud_with_lightning:"🌩",cloud_with_lightning_and_rain:"⛈",cloud_with_rain:"🌧",cloud_with_snow:"🌨",clown_face:"🤡",clubs:"♣️",cocktail:"🍸",coffee:"☕️",coffin:"⚰️",cold_sweat:"😰",comet:"☄️",computer:"💻",computer_mouse:"🖱",confetti_ball:"🎊",confounded:"😖",confused:"😕",congratulations:"㊗️",construction:"🚧",construction_worker_man:"👷",construction_worker_woman:"👷‍♀️",control_knobs:"🎛",convenience_store:"🏪",cookie:"🍪",cool:"🆒",policeman:"👮",copyright:"©️",corn:"🌽",couch_and_lamp:"🛋",couple:"👫",couple_with_heart_woman_man:"💑",couple_with_heart_man_man:"👨‍❤️‍👨",couple_with_heart_woman_woman:"👩‍❤️‍👩",couplekiss_man_man:"👨‍❤️‍💋‍👨",couplekiss_man_woman:"💏",couplekiss_woman_woman:"👩‍❤️‍💋‍👩",cow:"🐮",cow2:"🐄",cowboy_hat_face:"🤠",crab:"🦀",crayon:"🖍",credit_card:"💳",crescent_moon:"🌙",cricket:"🏏",crocodile:"🐊",croissant:"🥐",crossed_fingers:"🤞",crossed_flags:"🎌",crossed_swords:"⚔️",crown:"👑",cry:"😢",crying_cat_face:"😿",crystal_ball:"🔮",cucumber:"🥒",cupid:"💘",curly_loop:"➰",currency_exchange:"💱",curry:"🍛",custard:"🍮",customs:"🛃",cyclone:"🌀",dagger:"🗡",dancer:"💃",dancing_women:"👯",dancing_men:"👯‍♂️",dango:"🍡",dark_sunglasses:"🕶",dart:"🎯",dash:"💨",date:"📅",deciduous_tree:"🌳",deer:"🦌",department_store:"🏬",derelict_house:"🏚",desert:"🏜",desert_island:"🏝",desktop_computer:"🖥",male_detective:"🕵️",diamond_shape_with_a_dot_inside:"💠",diamonds:"♦️",disappointed:"😞",disappointed_relieved:"😥",dizzy:"💫",dizzy_face:"😵",do_not_litter:"🚯",dog:"🐶",dog2:"🐕",dollar:"💵",dolls:"🎎",dolphin:"🐬",door:"🚪",doughnut:"🍩",dove:"🕊",dragon:"🐉",dragon_face:"🐲",dress:"👗",dromedary_camel:"🐪",drooling_face:"🤤",droplet:"💧",drum:"🥁",duck:"🦆",dvd:"📀","e-mail":"📧",eagle:"🦅",ear:"👂",ear_of_rice:"🌾",earth_africa:"🌍",earth_americas:"🌎",earth_asia:"🌏",egg:"🥚",eggplant:"🍆",eight_pointed_black_star:"✴️",eight_spoked_asterisk:"✳️",electric_plug:"🔌",elephant:"🐘",email:"✉️",end:"🔚",envelope_with_arrow:"📩",euro:"💶",european_castle:"🏰",european_post_office:"🏤",evergreen_tree:"🌲",exclamation:"❗️",expressionless:"😑",eye:"👁",eye_speech_bubble:"👁‍🗨",eyeglasses:"👓",eyes:"👀",face_with_head_bandage:"🤕",face_with_thermometer:"🤒",fist_oncoming:"👊",factory:"🏭",fallen_leaf:"🍂",family_man_woman_boy:"👪",family_man_boy:"👨‍👦",family_man_boy_boy:"👨‍👦‍👦",family_man_girl:"👨‍👧",family_man_girl_boy:"👨‍👧‍👦",family_man_girl_girl:"👨‍👧‍👧",family_man_man_boy:"👨‍👨‍👦",family_man_man_boy_boy:"👨‍👨‍👦‍👦",family_man_man_girl:"👨‍👨‍👧",family_man_man_girl_boy:"👨‍👨‍👧‍👦",family_man_man_girl_girl:"👨‍👨‍👧‍👧",family_man_woman_boy_boy:"👨‍👩‍👦‍👦",family_man_woman_girl:"👨‍👩‍👧",family_man_woman_girl_boy:"👨‍👩‍👧‍👦",family_man_woman_girl_girl:"👨‍👩‍👧‍👧",family_woman_boy:"👩‍👦",family_woman_boy_boy:"👩‍👦‍👦",family_woman_girl:"👩‍👧",family_woman_girl_boy:"👩‍👧‍👦",family_woman_girl_girl:"👩‍👧‍👧",family_woman_woman_boy:"👩‍👩‍👦",family_woman_woman_boy_boy:"👩‍👩‍👦‍👦",family_woman_woman_girl:"👩‍👩‍👧",family_woman_woman_girl_boy:"👩‍👩‍👧‍👦",family_woman_woman_girl_girl:"👩‍👩‍👧‍👧",fast_forward:"⏩",fax:"📠",fearful:"😨",feet:"🐾",female_detective:"🕵️‍♀️",ferris_wheel:"🎡",ferry:"⛴",field_hockey:"🏑",file_cabinet:"🗄",file_folder:"📁",film_projector:"📽",film_strip:"🎞",fire:"🔥",fire_engine:"🚒",fireworks:"🎆",first_quarter_moon:"🌓",first_quarter_moon_with_face:"🌛",fish:"🐟",fish_cake:"🍥",fishing_pole_and_fish:"🎣",fist_raised:"✊",fist_left:"🤛",fist_right:"🤜",flags:"🎏",flashlight:"🔦",fleur_de_lis:"⚜️",flight_arrival:"🛬",flight_departure:"🛫",floppy_disk:"💾",flower_playing_cards:"🎴",flushed:"😳",fog:"🌫",foggy:"🌁",football:"🏈",footprints:"👣",fork_and_knife:"🍴",fountain:"⛲️",fountain_pen:"🖋",four_leaf_clover:"🍀",fox_face:"🦊",framed_picture:"🖼",free:"🆓",fried_egg:"🍳",fried_shrimp:"🍤",fries:"🍟",frog:"🐸",frowning:"😦",frowning_face:"☹️",frowning_man:"🙍‍♂️",frowning_woman:"🙍",middle_finger:"🖕",fuelpump:"⛽️",full_moon:"🌕",full_moon_with_face:"🌝",funeral_urn:"⚱️",game_die:"🎲",gear:"⚙️",gem:"💎",gemini:"♊️",ghost:"👻",gift:"🎁",gift_heart:"💝",girl:"👧",globe_with_meridians:"🌐",goal_net:"🥅",goat:"🐐",golf:"⛳️",golfing_man:"🏌️",golfing_woman:"🏌️‍♀️",gorilla:"🦍",grapes:"🍇",green_apple:"🍏",green_book:"📗",green_heart:"💚",green_salad:"🥗",grey_exclamation:"❕",grey_question:"❔",grimacing:"😬",grin:"😁",grinning:"😀",guardsman:"💂",guardswoman:"💂‍♀️",guitar:"🎸",gun:"🔫",haircut_woman:"💇",haircut_man:"💇‍♂️",hamburger:"🍔",hammer:"🔨",hammer_and_pick:"⚒",hammer_and_wrench:"🛠",hamster:"🐹",hand:"✋",handbag:"👜",handshake:"🤝",hankey:"💩",hatched_chick:"🐥",hatching_chick:"🐣",headphones:"🎧",hear_no_evil:"🙉",heart:"❤️",heart_decoration:"💟",heart_eyes:"😍",heart_eyes_cat:"😻",heartbeat:"💓",heartpulse:"💗",hearts:"♥️",heavy_check_mark:"✔️",heavy_division_sign:"➗",heavy_dollar_sign:"💲",heavy_heart_exclamation:"❣️",heavy_minus_sign:"➖",heavy_multiplication_x:"✖️",heavy_plus_sign:"➕",helicopter:"🚁",herb:"🌿",hibiscus:"🌺",high_brightness:"🔆",high_heel:"👠",hocho:"🔪",hole:"🕳",honey_pot:"🍯",horse:"🐴",horse_racing:"🏇",hospital:"🏥",hot_pepper:"🌶",hotdog:"🌭",hotel:"🏨",hotsprings:"♨️",hourglass:"⌛️",hourglass_flowing_sand:"⏳",house:"🏠",house_with_garden:"🏡",houses:"🏘",hugs:"🤗",hushed:"😯",ice_cream:"🍨",ice_hockey:"🏒",ice_skate:"⛸",icecream:"🍦",id:"🆔",ideograph_advantage:"🉐",imp:"👿",inbox_tray:"📥",incoming_envelope:"📨",tipping_hand_woman:"💁",information_source:"ℹ️",innocent:"😇",interrobang:"⁉️",iphone:"📱",izakaya_lantern:"🏮",jack_o_lantern:"🎃",japan:"🗾",japanese_castle:"🏯",japanese_goblin:"👺",japanese_ogre:"👹",jeans:"👖",joy:"😂",joy_cat:"😹",joystick:"🕹",kaaba:"🕋",key:"🔑",keyboard:"⌨️",keycap_ten:"🔟",kick_scooter:"🛴",kimono:"👘",kiss:"💋",kissing:"😗",kissing_cat:"😽",kissing_closed_eyes:"😚",kissing_heart:"😘",kissing_smiling_eyes:"😙",kiwi_fruit:"🥝",koala:"🐨",koko:"🈁",label:"🏷",large_blue_circle:"🔵",large_blue_diamond:"🔷",large_orange_diamond:"🔶",last_quarter_moon:"🌗",last_quarter_moon_with_face:"🌜",latin_cross:"✝️",laughing:"😆",leaves:"🍃",ledger:"📒",left_luggage:"🛅",left_right_arrow:"↔️",leftwards_arrow_with_hook:"↩️",lemon:"🍋",leo:"♌️",leopard:"🐆",level_slider:"🎚",libra:"♎️",light_rail:"🚈",link:"🔗",lion:"🦁",lips:"👄",lipstick:"💄",lizard:"🦎",lock:"🔒",lock_with_ink_pen:"🔏",lollipop:"🍭",loop:"➿",loud_sound:"🔊",loudspeaker:"📢",love_hotel:"🏩",love_letter:"💌",low_brightness:"🔅",lying_face:"🤥",m:"Ⓜ️",mag:"🔍",mag_right:"🔎",mahjong:"🀄️",mailbox:"📫",mailbox_closed:"📪",mailbox_with_mail:"📬",mailbox_with_no_mail:"📭",man:"👨",man_artist:"👨‍🎨",man_astronaut:"👨‍🚀",man_cartwheeling:"🤸‍♂️",man_cook:"👨‍🍳",man_dancing:"🕺",man_facepalming:"🤦‍♂️",man_factory_worker:"👨‍🏭",man_farmer:"👨‍🌾",man_firefighter:"👨‍🚒",man_health_worker:"👨‍⚕️",man_in_tuxedo:"🤵",man_judge:"👨‍⚖️",man_juggling:"🤹‍♂️",man_mechanic:"👨‍🔧",man_office_worker:"👨‍💼",man_pilot:"👨‍✈️",man_playing_handball:"🤾‍♂️",man_playing_water_polo:"🤽‍♂️",man_scientist:"👨‍🔬",man_shrugging:"🤷‍♂️",man_singer:"👨‍🎤",man_student:"👨‍🎓",man_teacher:"👨‍🏫",man_technologist:"👨‍💻",man_with_gua_pi_mao:"👲",man_with_turban:"👳",tangerine:"🍊",mans_shoe:"👞",mantelpiece_clock:"🕰",maple_leaf:"🍁",martial_arts_uniform:"🥋",mask:"😷",massage_woman:"💆",massage_man:"💆‍♂️",meat_on_bone:"🍖",medal_military:"🎖",medal_sports:"🏅",mega:"📣",melon:"🍈",memo:"📝",men_wrestling:"🤼‍♂️",menorah:"🕎",mens:"🚹",metal:"🤘",metro:"🚇",microphone:"🎤",microscope:"🔬",milk_glass:"🥛",milky_way:"🌌",minibus:"🚐",minidisc:"💽",mobile_phone_off:"📴",money_mouth_face:"🤑",money_with_wings:"💸",moneybag:"💰",monkey:"🐒",monkey_face:"🐵",monorail:"🚝",moon:"🌔",mortar_board:"🎓",mosque:"🕌",motor_boat:"🛥",motor_scooter:"🛵",motorcycle:"🏍",motorway:"🛣",mount_fuji:"🗻",mountain:"⛰",mountain_biking_man:"🚵",mountain_biking_woman:"🚵‍♀️",mountain_cableway:"🚠",mountain_railway:"🚞",mountain_snow:"🏔",mouse:"🐭",mouse2:"🐁",movie_camera:"🎥",moyai:"🗿",mrs_claus:"🤶",muscle:"💪",mushroom:"🍄",musical_keyboard:"🎹",musical_note:"🎵",musical_score:"🎼",mute:"🔇",nail_care:"💅",name_badge:"📛",national_park:"🏞",nauseated_face:"🤢",necktie:"👔",negative_squared_cross_mark:"❎",nerd_face:"🤓",neutral_face:"😐",new:"🆕",new_moon:"🌑",new_moon_with_face:"🌚",newspaper:"📰",newspaper_roll:"🗞",next_track_button:"⏭",ng:"🆖",no_good_man:"🙅‍♂️",no_good_woman:"🙅",night_with_stars:"🌃",no_bell:"🔕",no_bicycles:"🚳",no_entry:"⛔️",no_entry_sign:"🚫",no_mobile_phones:"📵",no_mouth:"😶",no_pedestrians:"🚷",no_smoking:"🚭","non-potable_water":"🚱",nose:"👃",notebook:"📓",notebook_with_decorative_cover:"📔",notes:"🎶",nut_and_bolt:"🔩",o:"⭕️",o2:"🅾️",ocean:"🌊",octopus:"🐙",oden:"🍢",office:"🏢",oil_drum:"🛢",ok:"🆗",ok_hand:"👌",ok_man:"🙆‍♂️",ok_woman:"🙆",old_key:"🗝",older_man:"👴",older_woman:"👵",om:"🕉",on:"🔛",oncoming_automobile:"🚘",oncoming_bus:"🚍",oncoming_police_car:"🚔",oncoming_taxi:"🚖",open_file_folder:"📂",open_hands:"👐",open_mouth:"😮",open_umbrella:"☂️",ophiuchus:"⛎",orange_book:"📙",orthodox_cross:"☦️",outbox_tray:"📤",owl:"🦉",ox:"🐂",package:"📦",page_facing_up:"📄",page_with_curl:"📃",pager:"📟",paintbrush:"🖌",palm_tree:"🌴",pancakes:"🥞",panda_face:"🐼",paperclip:"📎",paperclips:"🖇",parasol_on_ground:"⛱",parking:"🅿️",part_alternation_mark:"〽️",partly_sunny:"⛅️",passenger_ship:"🛳",passport_control:"🛂",pause_button:"⏸",peace_symbol:"☮️",peach:"🍑",peanuts:"🥜",pear:"🍐",pen:"🖊",pencil2:"✏️",penguin:"🐧",pensive:"😔",performing_arts:"🎭",persevere:"😣",person_fencing:"🤺",pouting_woman:"🙎",phone:"☎️",pick:"⛏",pig:"🐷",pig2:"🐖",pig_nose:"🐽",pill:"💊",pineapple:"🍍",ping_pong:"🏓",pisces:"♓️",pizza:"🍕",place_of_worship:"🛐",plate_with_cutlery:"🍽",play_or_pause_button:"⏯",point_down:"👇",point_left:"👈",point_right:"👉",point_up:"☝️",point_up_2:"👆",police_car:"🚓",policewoman:"👮‍♀️",poodle:"🐩",popcorn:"🍿",post_office:"🏣",postal_horn:"📯",postbox:"📮",potable_water:"🚰",potato:"🥔",pouch:"👝",poultry_leg:"🍗",pound:"💷",rage:"😡",pouting_cat:"😾",pouting_man:"🙎‍♂️",pray:"🙏",prayer_beads:"📿",pregnant_woman:"🤰",previous_track_button:"⏮",prince:"🤴",princess:"👸",printer:"🖨",purple_heart:"💜",purse:"👛",pushpin:"📌",put_litter_in_its_place:"🚮",question:"❓",rabbit:"🐰",rabbit2:"🐇",racehorse:"🐎",racing_car:"🏎",radio:"📻",radio_button:"🔘",radioactive:"☢️",railway_car:"🚃",railway_track:"🛤",rainbow:"🌈",rainbow_flag:"🏳️‍🌈",raised_back_of_hand:"🤚",raised_hand_with_fingers_splayed:"🖐",raised_hands:"🙌",raising_hand_woman:"🙋",raising_hand_man:"🙋‍♂️",ram:"🐏",ramen:"🍜",rat:"🐀",record_button:"⏺",recycle:"♻️",red_circle:"🔴",registered:"®️",relaxed:"☺️",relieved:"😌",reminder_ribbon:"🎗",repeat:"🔁",repeat_one:"🔂",rescue_worker_helmet:"⛑",restroom:"🚻",revolving_hearts:"💞",rewind:"⏪",rhinoceros:"🦏",ribbon:"🎀",rice:"🍚",rice_ball:"🍙",rice_cracker:"🍘",rice_scene:"🎑",right_anger_bubble:"🗯",ring:"💍",robot:"🤖",rocket:"🚀",rofl:"🤣",roll_eyes:"🙄",roller_coaster:"🎢",rooster:"🐓",rose:"🌹",rosette:"🏵",rotating_light:"🚨",round_pushpin:"📍",rowing_man:"🚣",rowing_woman:"🚣‍♀️",rugby_football:"🏉",running_man:"🏃",running_shirt_with_sash:"🎽",running_woman:"🏃‍♀️",sa:"🈂️",sagittarius:"♐️",sake:"🍶",sandal:"👡",santa:"🎅",satellite:"📡",saxophone:"🎷",school:"🏫",school_satchel:"🎒",scissors:"✂️",scorpion:"🦂",scorpius:"♏️",scream:"😱",scream_cat:"🙀",scroll:"📜",seat:"💺",secret:"㊙️",see_no_evil:"🙈",seedling:"🌱",selfie:"🤳",shallow_pan_of_food:"🥘",shamrock:"☘️",shark:"🦈",shaved_ice:"🍧",sheep:"🐑",shell:"🐚",shield:"🛡",shinto_shrine:"⛩",ship:"🚢",shirt:"👕",shopping:"🛍",shopping_cart:"🛒",shower:"🚿",shrimp:"🦐",signal_strength:"📶",six_pointed_star:"🔯",ski:"🎿",skier:"⛷",skull:"💀",skull_and_crossbones:"☠️",sleeping:"😴",sleeping_bed:"🛌",sleepy:"😪",slightly_frowning_face:"🙁",slightly_smiling_face:"🙂",slot_machine:"🎰",small_airplane:"🛩",small_blue_diamond:"🔹",small_orange_diamond:"🔸",small_red_triangle:"🔺",small_red_triangle_down:"🔻",smile:"😄",smile_cat:"😸",smiley:"😃",smiley_cat:"😺",smiling_imp:"😈",smirk:"😏",smirk_cat:"😼",smoking:"🚬",snail:"🐌",snake:"🐍",sneezing_face:"🤧",snowboarder:"🏂",snowflake:"❄️",snowman:"⛄️",snowman_with_snow:"☃️",sob:"😭",soccer:"⚽️",soon:"🔜",sos:"🆘",sound:"🔉",space_invader:"👾",spades:"♠️",spaghetti:"🍝",sparkle:"❇️",sparkler:"🎇",sparkles:"✨",sparkling_heart:"💖",speak_no_evil:"🙊",speaker:"🔈",speaking_head:"🗣",speech_balloon:"💬",speedboat:"🚤",spider:"🕷",spider_web:"🕸",spiral_calendar:"🗓",spiral_notepad:"🗒",spoon:"🥄",squid:"🦑",stadium:"🏟",star:"⭐️",star2:"🌟",star_and_crescent:"☪️",star_of_david:"✡️",stars:"🌠",station:"🚉",statue_of_liberty:"🗽",steam_locomotive:"🚂",stew:"🍲",stop_button:"⏹",stop_sign:"🛑",stopwatch:"⏱",straight_ruler:"📏",strawberry:"🍓",stuck_out_tongue:"😛",stuck_out_tongue_closed_eyes:"😝",stuck_out_tongue_winking_eye:"😜",studio_microphone:"🎙",stuffed_flatbread:"🥙",sun_behind_large_cloud:"🌥",sun_behind_rain_cloud:"🌦",sun_behind_small_cloud:"🌤",sun_with_face:"🌞",sunflower:"🌻",sunglasses:"😎",sunny:"☀️",sunrise:"🌅",sunrise_over_mountains:"🌄",surfing_man:"🏄",surfing_woman:"🏄‍♀️",sushi:"🍣",suspension_railway:"🚟",sweat:"😓",sweat_drops:"💦",sweat_smile:"😅",sweet_potato:"🍠",swimming_man:"🏊",swimming_woman:"🏊‍♀️",symbols:"🔣",synagogue:"🕍",syringe:"💉",taco:"🌮",tada:"🎉",tanabata_tree:"🎋",taurus:"♉️",taxi:"🚕",tea:"🍵",telephone_receiver:"📞",telescope:"🔭",tennis:"🎾",tent:"⛺️",thermometer:"🌡",thinking:"🤔",thought_balloon:"💭",ticket:"🎫",tickets:"🎟",tiger:"🐯",tiger2:"🐅",timer_clock:"⏲",tipping_hand_man:"💁‍♂️",tired_face:"😫",tm:"™️",toilet:"🚽",tokyo_tower:"🗼",tomato:"🍅",tongue:"👅",top:"🔝",tophat:"🎩",tornado:"🌪",trackball:"🖲",tractor:"🚜",traffic_light:"🚥",train:"🚋",train2:"🚆",tram:"🚊",triangular_flag_on_post:"🚩",triangular_ruler:"📐",trident:"🔱",triumph:"😤",trolleybus:"🚎",trophy:"🏆",tropical_drink:"🍹",tropical_fish:"🐠",truck:"🚚",trumpet:"🎺",tulip:"🌷",tumbler_glass:"🥃",turkey:"🦃",turtle:"🐢",tv:"📺",twisted_rightwards_arrows:"🔀",two_hearts:"💕",two_men_holding_hands:"👬",two_women_holding_hands:"👭",u5272:"🈹",u5408:"🈴",u55b6:"🈺",u6307:"🈯️",u6708:"🈷️",u6709:"🈶",u6e80:"🈵",u7121:"🈚️",u7533:"🈸",u7981:"🈲",u7a7a:"🈳",umbrella:"☔️",unamused:"😒",underage:"🔞",unicorn:"🦄",unlock:"🔓",up:"🆙",upside_down_face:"🙃",v:"✌️",vertical_traffic_light:"🚦",vhs:"📼",vibration_mode:"📳",video_camera:"📹",video_game:"🎮",violin:"🎻",virgo:"♍️",volcano:"🌋",volleyball:"🏐",vs:"🆚",vulcan_salute:"🖖",walking_man:"🚶",walking_woman:"🚶‍♀️",waning_crescent_moon:"🌘",waning_gibbous_moon:"🌖",warning:"⚠️",wastebasket:"🗑",watch:"⌚️",water_buffalo:"🐃",watermelon:"🍉",wave:"👋",wavy_dash:"〰️",waxing_crescent_moon:"🌒",wc:"🚾",weary:"😩",wedding:"💒",weight_lifting_man:"🏋️",weight_lifting_woman:"🏋️‍♀️",whale:"🐳",whale2:"🐋",wheel_of_dharma:"☸️",wheelchair:"♿️",white_check_mark:"✅",white_circle:"⚪️",white_flag:"🏳️",white_flower:"💮",white_large_square:"⬜️",white_medium_small_square:"◽️",white_medium_square:"◻️",white_small_square:"▫️",white_square_button:"🔳",wilted_flower:"🥀",wind_chime:"🎐",wind_face:"🌬",wine_glass:"🍷",wink:"😉",wolf:"🐺",woman:"👩",woman_artist:"👩‍🎨",woman_astronaut:"👩‍🚀",woman_cartwheeling:"🤸‍♀️",woman_cook:"👩‍🍳",woman_facepalming:"🤦‍♀️",woman_factory_worker:"👩‍🏭",woman_farmer:"👩‍🌾",woman_firefighter:"👩‍🚒",woman_health_worker:"👩‍⚕️",woman_judge:"👩‍⚖️",woman_juggling:"🤹‍♀️",woman_mechanic:"👩‍🔧",woman_office_worker:"👩‍💼",woman_pilot:"👩‍✈️",woman_playing_handball:"🤾‍♀️",woman_playing_water_polo:"🤽‍♀️",woman_scientist:"👩‍🔬",woman_shrugging:"🤷‍♀️",woman_singer:"👩‍🎤",woman_student:"👩‍🎓",woman_teacher:"👩‍🏫",woman_technologist:"👩‍💻",woman_with_turban:"👳‍♀️",womans_clothes:"👚",womans_hat:"👒",women_wrestling:"🤼‍♀️",womens:"🚺",world_map:"🗺",worried:"😟",wrench:"🔧",writing_hand:"✍️",x:"❌",yellow_heart:"💛",yen:"💴",yin_yang:"☯️",yum:"😋",zap:"⚡️",zipper_mouth_face:"🤐",zzz:"💤",octocat:':octocat:',showdown:"S"},a.Converter=function(e){"use strict";var t={},r=[],n=[],_={},i=l,d={parsed:{},raw:"",format:""};function f(e,t){if(t=t||null,a.helper.isString(e)){if(t=e=a.helper.stdExtName(e),a.extensions[e])return console.warn("DEPRECATION WARNING: "+e+" is an old extension that uses a deprecated loading method.Please inform the developer that the extension should be updated!"),void function(e,t){"function"==typeof e&&(e=e(new a.Converter));a.helper.isArray(e)||(e=[e]);var _=c(e,t);if(!_.valid)throw Error(_.error);for(var i=0;i? ?(['"].*['"])?\)$/m)>-1)i="";else if(!i){if(_||(_=n.toLowerCase().replace(/ ?\n/g," ")),i="#"+_,a.helper.isUndefined(r.gUrls[_]))return e;i=r.gUrls[_],a.helper.isUndefined(r.gTitles[_])||(l=r.gTitles[_])}var u='"};return e=(e=(e=(e=(e=r.converter._dispatch("anchors.before",e,t,r)).replace(/\[((?:\[[^\]]*]|[^\[\]])*)] ?(?:\n *)?\[(.*?)]()()()()/g,n)).replace(/\[((?:\[[^\]]*]|[^\[\]])*)]()[ \t]*\([ \t]?<([^>]*)>(?:[ \t]*((["'])([^"]*?)\5))?[ \t]?\)/g,n)).replace(/\[((?:\[[^\]]*]|[^\[\]])*)]()[ \t]*\([ \t]??(?:[ \t]*((["'])([^"]*?)\5))?[ \t]?\)/g,n)).replace(/\[([^\[\]]+)]()()()()()/g,n),t.ghMentions&&(e=e.replace(/(^|\s)(\\)?(@([a-z\d]+(?:[a-z\d.-]+?[a-z\d]+)*))/gim,function(e,r,n,_,i){if("\\"===n)return r+_;if(!a.helper.isString(t.ghMentionsLink))throw new Error("ghMentionsLink option must be a string");var o=t.ghMentionsLink.replace(/\{u}/g,i),s="";return t.openLinksInNewWindow&&(s=' target="¨E95Eblank"'),r+'"+_+""})),e=r.converter._dispatch("anchors.after",e,t,r)});var p=/([*~_]+|\b)(((https?|ftp|dict):\/\/|www\.)[^'">\s]+?\.[^'">\s]+?)()(\1)?(?=\s|$)(?!["<>])/gi,h=/([*~_]+|\b)(((https?|ftp|dict):\/\/|www\.)[^'">\s]+\.[^'">\s]+?)([.!?,()\[\]])?(\1)?(?=\s|$)(?!["<>])/gi,E=/()<(((https?|ftp|dict):\/\/|www\.)[^'">\s]+)()>()/gi,m=/(^|\s)(?:mailto:)?([A-Za-z0-9!#$%&'*+-/=?^_`{|}~.]+@[-a-z0-9]+(\.[-a-z0-9]+)*\.[a-z]+)(?=$|\s)/gim,g=/<()(?:mailto:)?([-.\w]+@[-a-z0-9]+(\.[-a-z0-9]+)*\.[a-z]+)>/gi,b=function(e){"use strict";return function(t,r,n,_,i,o,s){var l=n=n.replace(a.helper.regexes.asteriskDashAndColon,a.helper.escapeCharactersCallback),u="",c="",d=r||"",f=s||"";return/^www\./i.test(n)&&(n=n.replace(/^www\./i,"http://www.")),e.excludeTrailingPunctuationFromURLs&&o&&(u=o),e.openLinksInNewWindow&&(c=' target="¨E95Eblank"'),d+'"+l+""+u+f}},v=function(e,t){"use strict";return function(r,n,_){var i="mailto:";return n=n||"",_=a.subParser("unescapeSpecialChars")(_,e,t),e.encodeEmails?(i=a.helper.encodeEmailAddress(i+_),_=a.helper.encodeEmailAddress(_)):i+=_,n+''+_+""}};a.subParser("autoLinks",function(e,t,r){"use strict";return e=(e=(e=r.converter._dispatch("autoLinks.before",e,t,r)).replace(E,b(t))).replace(g,v(t,r)),e=r.converter._dispatch("autoLinks.after",e,t,r)}),a.subParser("simplifiedAutoLinks",function(e,t,r){"use strict";return t.simplifiedAutoLink?(e=r.converter._dispatch("simplifiedAutoLinks.before",e,t,r),e=(e=t.excludeTrailingPunctuationFromURLs?e.replace(h,b(t)):e.replace(p,b(t))).replace(m,v(t,r)),e=r.converter._dispatch("simplifiedAutoLinks.after",e,t,r)):e}),a.subParser("blockGamut",function(e,t,r){"use strict";return e=r.converter._dispatch("blockGamut.before",e,t,r),e=a.subParser("blockQuotes")(e,t,r),e=a.subParser("headers")(e,t,r),e=a.subParser("horizontalRule")(e,t,r),e=a.subParser("lists")(e,t,r),e=a.subParser("codeBlocks")(e,t,r),e=a.subParser("tables")(e,t,r),e=a.subParser("hashHTMLBlocks")(e,t,r),e=a.subParser("paragraphs")(e,t,r),e=r.converter._dispatch("blockGamut.after",e,t,r)}),a.subParser("blockQuotes",function(e,t,r){"use strict";e=r.converter._dispatch("blockQuotes.before",e,t,r),e+="\n\n";var n=/(^ {0,3}>[ \t]?.+\n(.+\n)*\n*)+/gm;return t.splitAdjacentBlockquotes&&(n=/^ {0,3}>[\s\S]*?(?:\n\n)/gm),e=e.replace(n,function(e){return e=(e=(e=e.replace(/^[ \t]*>[ \t]?/gm,"")).replace(/¨0/g,"")).replace(/^[ \t]+$/gm,""),e=a.subParser("githubCodeBlocks")(e,t,r),e=(e=(e=a.subParser("blockGamut")(e,t,r)).replace(/(^|\n)/g,"$1 ")).replace(/(\s*
[^\r]+?<\/pre>)/gm,function(e,t){var r=t;return r=(r=r.replace(/^  /gm,"¨0")).replace(/¨0/g,"")}),a.subParser("hashBlock")("
\n"+e+"\n
",t,r)}),e=r.converter._dispatch("blockQuotes.after",e,t,r)}),a.subParser("codeBlocks",function(e,t,r){"use strict";e=r.converter._dispatch("codeBlocks.before",e,t,r);return e=(e=(e+="¨0").replace(/(?:\n\n|^)((?:(?:[ ]{4}|\t).*\n+)+)(\n*[ ]{0,3}[^ \t\n]|(?=¨0))/g,function(e,n,_){var i=n,o=_,s="\n";return i=a.subParser("outdent")(i,t,r),i=a.subParser("encodeCode")(i,t,r),i=(i=(i=a.subParser("detab")(i,t,r)).replace(/^\n+/g,"")).replace(/\n+$/g,""),t.omitExtraWLInCodeBlocks&&(s=""),i="
"+i+s+"
",a.subParser("hashBlock")(i,t,r)+o})).replace(/¨0/,""),e=r.converter._dispatch("codeBlocks.after",e,t,r)}),a.subParser("codeSpans",function(e,t,r){"use strict";return void 0===(e=r.converter._dispatch("codeSpans.before",e,t,r))&&(e=""),e=e.replace(/(^|[^\\])(`+)([^\r]*?[^`])\2(?!`)/gm,function(e,n,_,i){var o=i;return o=(o=o.replace(/^([ \t]*)/g,"")).replace(/[ \t]*$/g,""),o=n+""+(o=a.subParser("encodeCode")(o,t,r))+"",o=a.subParser("hashHTMLSpans")(o,t,r)}),e=r.converter._dispatch("codeSpans.after",e,t,r)}),a.subParser("completeHTMLDocument",function(e,t,r){"use strict";if(!t.completeHTMLDocument)return e;e=r.converter._dispatch("completeHTMLDocument.before",e,t,r);var n="html",_="\n",a="",i='\n',o="",s="";for(var l in void 0!==r.metadata.parsed.doctype&&(_="\n","html"!==(n=r.metadata.parsed.doctype.toString().toLowerCase())&&"html5"!==n||(i='')),r.metadata.parsed)if(r.metadata.parsed.hasOwnProperty(l))switch(l.toLowerCase()){case"doctype":break;case"title":a=""+r.metadata.parsed.title+"\n";break;case"charset":i="html"===n||"html5"===n?'\n':'\n';break;case"language":case"lang":o=' lang="'+r.metadata.parsed[l]+'"',s+='\n';break;default:s+='\n'}return e=_+"\n\n"+a+i+s+"\n\n"+e.trim()+"\n\n",e=r.converter._dispatch("completeHTMLDocument.after",e,t,r)}),a.subParser("detab",function(e,t,r){"use strict";return e=(e=(e=(e=(e=(e=r.converter._dispatch("detab.before",e,t,r)).replace(/\t(?=\t)/g," ")).replace(/\t/g,"¨A¨B")).replace(/¨B(.+?)¨A/g,function(e,t){for(var r=t,n=4-r.length%4,_=0;_/g,">"),e=r.converter._dispatch("encodeAmpsAndAngles.after",e,t,r)}),a.subParser("encodeBackslashEscapes",function(e,t,r){"use strict";return e=(e=(e=r.converter._dispatch("encodeBackslashEscapes.before",e,t,r)).replace(/\\(\\)/g,a.helper.escapeCharactersCallback)).replace(/\\([`*_{}\[\]()>#+.!~=|-])/g,a.helper.escapeCharactersCallback),e=r.converter._dispatch("encodeBackslashEscapes.after",e,t,r)}),a.subParser("encodeCode",function(e,t,r){"use strict";return e=(e=r.converter._dispatch("encodeCode.before",e,t,r)).replace(/&/g,"&").replace(//g,">").replace(/([*_{}\[\]\\=~-])/g,a.helper.escapeCharactersCallback),e=r.converter._dispatch("encodeCode.after",e,t,r)}),a.subParser("escapeSpecialCharsWithinTagAttributes",function(e,t,r){"use strict";return e=(e=(e=r.converter._dispatch("escapeSpecialCharsWithinTagAttributes.before",e,t,r)).replace(/<\/?[a-z\d_:-]+(?:[\s]+[\s\S]+?)?>/gi,function(e){return e.replace(/(.)<\/?code>(?=.)/g,"$1`").replace(/([\\`*_~=|])/g,a.helper.escapeCharactersCallback)})).replace(/-]|-[^>])(?:[^-]|-[^-])*)--)>/gi,function(e){return e.replace(/([\\`*_~=|])/g,a.helper.escapeCharactersCallback)}),e=r.converter._dispatch("escapeSpecialCharsWithinTagAttributes.after",e,t,r)}),a.subParser("githubCodeBlocks",function(e,t,r){"use strict";return t.ghCodeBlocks?(e=r.converter._dispatch("githubCodeBlocks.before",e,t,r),e=(e=(e+="¨0").replace(/(?:^|\n)(?: {0,3})(```+|~~~+)(?: *)([^\s`~]*)\n([\s\S]*?)\n(?: {0,3})\1/g,function(e,n,_,i){var o=t.omitExtraWLInCodeBlocks?"":"\n";return i=a.subParser("encodeCode")(i,t,r),i=(i=(i=a.subParser("detab")(i,t,r)).replace(/^\n+/g,"")).replace(/\n+$/g,""),i="
"+i+o+"
",i=a.subParser("hashBlock")(i,t,r),"\n\n¨G"+(r.ghCodeBlocks.push({text:e,codeblock:i})-1)+"G\n\n"})).replace(/¨0/,""),r.converter._dispatch("githubCodeBlocks.after",e,t,r)):e}),a.subParser("hashBlock",function(e,t,r){"use strict";return e=(e=r.converter._dispatch("hashBlock.before",e,t,r)).replace(/(^\n+|\n+$)/g,""),e="\n\n¨K"+(r.gHtmlBlocks.push(e)-1)+"K\n\n",e=r.converter._dispatch("hashBlock.after",e,t,r)}),a.subParser("hashCodeTags",function(e,t,r){"use strict";e=r.converter._dispatch("hashCodeTags.before",e,t,r);return e=a.helper.replaceRecursiveRegExp(e,function(e,n,_,i){var o=_+a.subParser("encodeCode")(n,t,r)+i;return"¨C"+(r.gHtmlSpans.push(o)-1)+"C"},"]*>","","gim"),e=r.converter._dispatch("hashCodeTags.after",e,t,r)}),a.subParser("hashElement",function(e,t,r){"use strict";return function(e,t){var n=t;return n=(n=(n=n.replace(/\n\n/g,"\n")).replace(/^\n/,"")).replace(/\n+$/g,""),n="\n\n¨K"+(r.gHtmlBlocks.push(n)-1)+"K\n\n"}}),a.subParser("hashHTMLBlocks",function(e,t,r){"use strict";e=r.converter._dispatch("hashHTMLBlocks.before",e,t,r);var n=["pre","div","h1","h2","h3","h4","h5","h6","blockquote","table","dl","ol","ul","script","noscript","form","fieldset","iframe","math","style","section","header","footer","nav","article","aside","address","audio","canvas","figure","hgroup","output","video","p"],_=function(e,t,n,_){var a=e;return-1!==n.search(/\bmarkdown\b/)&&(a=n+r.converter.makeHtml(t)+_),"\n\n¨K"+(r.gHtmlBlocks.push(a)-1)+"K\n\n"};t.backslashEscapesHTMLTags&&(e=e.replace(/\\<(\/?[^>]+?)>/g,function(e,t){return"<"+t+">"}));for(var i=0;i]*>)","im"),l="<"+n[i]+"\\b[^>]*>",u="";-1!==(o=a.helper.regexIndexOf(e,s));){var c=a.helper.splitAtIndex(e,o),d=a.helper.replaceRecursiveRegExp(c[1],_,l,u,"im");if(d===c[1])break;e=c[0].concat(d)}return e=e.replace(/(\n {0,3}(<(hr)\b([^<>])*?\/?>)[ \t]*(?=\n{2,}))/g,a.subParser("hashElement")(e,t,r)),e=(e=a.helper.replaceRecursiveRegExp(e,function(e){return"\n\n¨K"+(r.gHtmlBlocks.push(e)-1)+"K\n\n"},"^ {0,3}\x3c!--","--\x3e","gm")).replace(/(?:\n\n)( {0,3}(?:<([?%])[^\r]*?\2>)[ \t]*(?=\n{2,}))/g,a.subParser("hashElement")(e,t,r)),e=r.converter._dispatch("hashHTMLBlocks.after",e,t,r)}),a.subParser("hashHTMLSpans",function(e,t,r){"use strict";function n(e){return"¨C"+(r.gHtmlSpans.push(e)-1)+"C"}return e=(e=(e=(e=(e=r.converter._dispatch("hashHTMLSpans.before",e,t,r)).replace(/<[^>]+?\/>/gi,function(e){return n(e)})).replace(/<([^>]+?)>[\s\S]*?<\/\1>/g,function(e){return n(e)})).replace(/<([^>]+?)\s[^>]+?>[\s\S]*?<\/\1>/g,function(e){return n(e)})).replace(/<[^>]+?>/gi,function(e){return n(e)}),e=r.converter._dispatch("hashHTMLSpans.after",e,t,r)}),a.subParser("unhashHTMLSpans",function(e,t,r){"use strict";e=r.converter._dispatch("unhashHTMLSpans.before",e,t,r);for(var n=0;n]*>\\s*]*>","^ {0,3}\\s*
","gim"),e=r.converter._dispatch("hashPreCodeTags.after",e,t,r)}),a.subParser("headers",function(e,t,r){"use strict";e=r.converter._dispatch("headers.before",e,t,r);var n=isNaN(parseInt(t.headerLevelStart))?1:parseInt(t.headerLevelStart),_=t.smoothLivePreview?/^(.+)[ \t]*\n={2,}[ \t]*\n+/gm:/^(.+)[ \t]*\n=+[ \t]*\n+/gm,i=t.smoothLivePreview?/^(.+)[ \t]*\n-{2,}[ \t]*\n+/gm:/^(.+)[ \t]*\n-+[ \t]*\n+/gm;e=(e=e.replace(_,function(e,_){var i=a.subParser("spanGamut")(_,t,r),o=t.noHeaderId?"":' id="'+s(_)+'"',l=""+i+"";return a.subParser("hashBlock")(l,t,r)})).replace(i,function(e,_){var i=a.subParser("spanGamut")(_,t,r),o=t.noHeaderId?"":' id="'+s(_)+'"',l=n+1,u=""+i+"";return a.subParser("hashBlock")(u,t,r)});var o=t.requireSpaceBeforeHeadingText?/^(#{1,6})[ \t]+(.+?)[ \t]*#*\n+/gm:/^(#{1,6})[ \t]*(.+?)[ \t]*#*\n+/gm;function s(e){var n,_;if(t.customizedHeaderId){var i=e.match(/\{([^{]+?)}\s*$/);i&&i[1]&&(e=i[1])}return n=e,_=a.helper.isString(t.prefixHeaderId)?t.prefixHeaderId:!0===t.prefixHeaderId?"section-":"",t.rawPrefixHeaderId||(n=_+n),n=t.ghCompatibleHeaderId?n.replace(/ /g,"-").replace(/&/g,"").replace(/¨T/g,"").replace(/¨D/g,"").replace(/[&+$,\/:;=?@"#{}|^¨~\[\]`\\*)(%.!'<>]/g,"").toLowerCase():t.rawHeaderId?n.replace(/ /g,"-").replace(/&/g,"&").replace(/¨T/g,"¨").replace(/¨D/g,"$").replace(/["']/g,"-").toLowerCase():n.replace(/[^\w]/g,"").toLowerCase(),t.rawPrefixHeaderId&&(n=_+n),r.hashLinkCounts[n]?n=n+"-"+r.hashLinkCounts[n]++:r.hashLinkCounts[n]=1,n}return e=e.replace(o,function(e,_,i){var o=i;t.customizedHeaderId&&(o=i.replace(/\s?\{([^{]+?)}\s*$/,""));var l=a.subParser("spanGamut")(o,t,r),u=t.noHeaderId?"":' id="'+s(i)+'"',c=n-1+_.length,d=""+l+"";return a.subParser("hashBlock")(d,t,r)}),e=r.converter._dispatch("headers.after",e,t,r)}),a.subParser("horizontalRule",function(e,t,r){"use strict";e=r.converter._dispatch("horizontalRule.before",e,t,r);var n=a.subParser("hashBlock")("
",t,r);return e=(e=(e=e.replace(/^ {0,2}( ?-){3,}[ \t]*$/gm,n)).replace(/^ {0,2}( ?\*){3,}[ \t]*$/gm,n)).replace(/^ {0,2}( ?_){3,}[ \t]*$/gm,n),e=r.converter._dispatch("horizontalRule.after",e,t,r)}),a.subParser("images",function(e,t,r){"use strict";function n(e,t,n,_,i,o,s,l){var u=r.gUrls,c=r.gTitles,d=r.gDimensions;if(n=n.toLowerCase(),l||(l=""),e.search(/\(? ?(['"].*['"])?\)$/m)>-1)_="";else if(""===_||null===_){if(""!==n&&null!==n||(n=t.toLowerCase().replace(/ ?\n/g," ")),_="#"+n,a.helper.isUndefined(u[n]))return e;_=u[n],a.helper.isUndefined(c[n])||(l=c[n]),a.helper.isUndefined(d[n])||(i=d[n].width,o=d[n].height)}t=t.replace(/"/g,""").replace(a.helper.regexes.asteriskDashAndColon,a.helper.escapeCharactersCallback);var f=''+t+'"}return e=(e=(e=(e=(e=(e=r.converter._dispatch("images.before",e,t,r)).replace(/!\[([^\]]*?)] ?(?:\n *)?\[([\s\S]*?)]()()()()()/g,n)).replace(/!\[([^\]]*?)][ \t]*()\([ \t]??(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*(?:(["'])([^"]*?)\6)?[ \t]?\)/g,function(e,t,r,_,a,i,o,s){return n(e,t,r,_=_.replace(/\s/g,""),a,i,0,s)})).replace(/!\[([^\]]*?)][ \t]*()\([ \t]?<([^>]*)>(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*(?:(?:(["'])([^"]*?)\6))?[ \t]?\)/g,n)).replace(/!\[([^\]]*?)][ \t]*()\([ \t]??(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*(?:(["'])([^"]*?)\6)?[ \t]?\)/g,n)).replace(/!\[([^\[\]]+)]()()()()()/g,n),e=r.converter._dispatch("images.after",e,t,r)}),a.subParser("italicsAndBold",function(e,t,r){"use strict";function n(e,t,r){return t+e+r}return e=r.converter._dispatch("italicsAndBold.before",e,t,r),e=t.literalMidWordUnderscores?(e=(e=e.replace(/\b___(\S[\s\S]*)___\b/g,function(e,t){return n(t,"","")})).replace(/\b__(\S[\s\S]*)__\b/g,function(e,t){return n(t,"","")})).replace(/\b_(\S[\s\S]*?)_\b/g,function(e,t){return n(t,"","")}):(e=(e=e.replace(/___(\S[\s\S]*?)___/g,function(e,t){return/\S$/.test(t)?n(t,"",""):e})).replace(/__(\S[\s\S]*?)__/g,function(e,t){return/\S$/.test(t)?n(t,"",""):e})).replace(/_([^\s_][\s\S]*?)_/g,function(e,t){return/\S$/.test(t)?n(t,"",""):e}),e=t.literalMidWordAsterisks?(e=(e=e.replace(/([^*]|^)\B\*\*\*(\S[\s\S]*?)\*\*\*\B(?!\*)/g,function(e,t,r){return n(r,t+"","")})).replace(/([^*]|^)\B\*\*(\S[\s\S]*?)\*\*\B(?!\*)/g,function(e,t,r){return n(r,t+"","")})).replace(/([^*]|^)\B\*(\S[\s\S]*?)\*\B(?!\*)/g,function(e,t,r){return n(r,t+"","")}):(e=(e=e.replace(/\*\*\*(\S[\s\S]*?)\*\*\*/g,function(e,t){return/\S$/.test(t)?n(t,"",""):e})).replace(/\*\*(\S[\s\S]*?)\*\*/g,function(e,t){return/\S$/.test(t)?n(t,"",""):e})).replace(/\*([^\s*][\s\S]*?)\*/g,function(e,t){return/\S$/.test(t)?n(t,"",""):e}),e=r.converter._dispatch("italicsAndBold.after",e,t,r)}),a.subParser("lists",function(e,t,r){"use strict";function n(e,n){r.gListLevel++,e=e.replace(/\n{2,}$/,"\n");var _=/(\n)?(^ {0,3})([*+-]|\d+[.])[ \t]+((\[(x|X| )?])?[ \t]*[^\r]+?(\n{1,2}))(?=\n*(¨0| {0,3}([*+-]|\d+[.])[ \t]+))/gm,i=/\n[ \t]*\n(?!¨0)/.test(e+="¨0");return t.disableForced4SpacesIndentedSublists&&(_=/(\n)?(^ {0,3})([*+-]|\d+[.])[ \t]+((\[(x|X| )?])?[ \t]*[^\r]+?(\n{1,2}))(?=\n*(¨0|\2([*+-]|\d+[.])[ \t]+))/gm),e=(e=e.replace(_,function(e,n,_,o,s,l,u){u=u&&""!==u.trim();var c=a.subParser("outdent")(s,t,r),d="";return l&&t.tasklists&&(d=' class="task-list-item" style="list-style-type: none;"',c=c.replace(/^[ \t]*\[(x|X| )?]/m,function(){var e='-1?(c=a.subParser("githubCodeBlocks")(c,t,r),c=a.subParser("blockGamut")(c,t,r)):(c=(c=a.subParser("lists")(c,t,r)).replace(/\n$/,""),c=(c=a.subParser("hashHTMLBlocks")(c,t,r)).replace(/\n\n+/g,"\n\n"),c=i?a.subParser("paragraphs")(c,t,r):a.subParser("spanGamut")(c,t,r)),c=""+(c=c.replace("¨A",""))+"\n"})).replace(/¨0/g,""),r.gListLevel--,n&&(e=e.replace(/\s+$/,"")),e}function _(e,t){if("ol"===t){var r=e.match(/^ *(\d+)\./);if(r&&"1"!==r[1])return' start="'+r[1]+'"'}return""}function i(e,r,a){var i=t.disableForced4SpacesIndentedSublists?/^ ?\d+\.[ \t]/gm:/^ {0,3}\d+\.[ \t]/gm,o=t.disableForced4SpacesIndentedSublists?/^ ?[*+-][ \t]/gm:/^ {0,3}[*+-][ \t]/gm,s="ul"===r?i:o,l="";if(-1!==e.search(s))!function t(u){var c=u.search(s),d=_(e,r);-1!==c?(l+="\n\n<"+r+d+">\n"+n(u.slice(0,c),!!a)+"\n",s="ul"===(r="ul"===r?"ol":"ul")?i:o,t(u.slice(c))):l+="\n\n<"+r+d+">\n"+n(u,!!a)+"\n"}(e);else{var u=_(e,r);l="\n\n<"+r+u+">\n"+n(e,!!a)+"\n"}return l}return e=r.converter._dispatch("lists.before",e,t,r),e+="¨0",e=(e=r.gListLevel?e.replace(/^(( {0,3}([*+-]|\d+[.])[ \t]+)[^\r]+?(¨0|\n{2,}(?=\S)(?![ \t]*(?:[*+-]|\d+[.])[ \t]+)))/gm,function(e,t,r){return i(t,r.search(/[*+-]/g)>-1?"ul":"ol",!0)}):e.replace(/(\n\n|^\n?)(( {0,3}([*+-]|\d+[.])[ \t]+)[^\r]+?(¨0|\n{2,}(?=\S)(?![ \t]*(?:[*+-]|\d+[.])[ \t]+)))/gm,function(e,t,r,n){return i(r,n.search(/[*+-]/g)>-1?"ul":"ol",!1)})).replace(/¨0/,""),e=r.converter._dispatch("lists.after",e,t,r)}),a.subParser("metadata",function(e,t,r){"use strict";if(!t.metadata)return e;function n(e){r.metadata.raw=e,(e=(e=e.replace(/&/g,"&").replace(/"/g,""")).replace(/\n {4}/g," ")).replace(/^([\S ]+): +([\s\S]+?)$/gm,function(e,t,n){return r.metadata.parsed[t]=n,""})}return e=(e=(e=(e=r.converter._dispatch("metadata.before",e,t,r)).replace(/^\s*«««+(\S*?)\n([\s\S]+?)\n»»»+\n/,function(e,t,r){return n(r),"¨M"})).replace(/^\s*---+(\S*?)\n([\s\S]+?)\n---+\n/,function(e,t,_){return t&&(r.metadata.format=t),n(_),"¨M"})).replace(/¨M/g,""),e=r.converter._dispatch("metadata.after",e,t,r)}),a.subParser("outdent",function(e,t,r){"use strict";return e=(e=(e=r.converter._dispatch("outdent.before",e,t,r)).replace(/^(\t|[ ]{1,4})/gm,"¨0")).replace(/¨0/g,""),e=r.converter._dispatch("outdent.after",e,t,r)}),a.subParser("paragraphs",function(e,t,r){"use strict";for(var n=(e=(e=(e=r.converter._dispatch("paragraphs.before",e,t,r)).replace(/^\n+/g,"")).replace(/\n+$/g,"")).split(/\n{2,}/g),_=[],i=n.length,o=0;o=0?_.push(s):s.search(/\S/)>=0&&(s=(s=a.subParser("spanGamut")(s,t,r)).replace(/^([ \t]*)/g,"

"),s+="

",_.push(s))}for(i=_.length,o=0;o]*>\s*]*>/.test(u)&&(c=!0)}_[o]=u}return e=(e=(e=_.join("\n")).replace(/^\n+/g,"")).replace(/\n+$/g,""),r.converter._dispatch("paragraphs.after",e,t,r)}),a.subParser("runExtension",function(e,t,r,n){"use strict";if(e.filter)t=e.filter(t,n.converter,r);else if(e.regex){var _=e.regex;_ instanceof RegExp||(_=new RegExp(_,"g")),t=t.replace(_,e.replace)}return t}),a.subParser("spanGamut",function(e,t,r){"use strict";return e=r.converter._dispatch("spanGamut.before",e,t,r),e=a.subParser("codeSpans")(e,t,r),e=a.subParser("escapeSpecialCharsWithinTagAttributes")(e,t,r),e=a.subParser("encodeBackslashEscapes")(e,t,r),e=a.subParser("images")(e,t,r),e=a.subParser("anchors")(e,t,r),e=a.subParser("autoLinks")(e,t,r),e=a.subParser("simplifiedAutoLinks")(e,t,r),e=a.subParser("emoji")(e,t,r),e=a.subParser("underline")(e,t,r),e=a.subParser("italicsAndBold")(e,t,r),e=a.subParser("strikethrough")(e,t,r),e=a.subParser("ellipsis")(e,t,r),e=a.subParser("hashHTMLSpans")(e,t,r),e=a.subParser("encodeAmpsAndAngles")(e,t,r),t.simpleLineBreaks?/\n\n¨K/.test(e)||(e=e.replace(/\n+/g,"
\n")):e=e.replace(/ +\n/g,"
\n"),e=r.converter._dispatch("spanGamut.after",e,t,r)}),a.subParser("strikethrough",function(e,t,r){"use strict";return t.strikethrough&&(e=(e=r.converter._dispatch("strikethrough.before",e,t,r)).replace(/(?:~){2}([\s\S]+?)(?:~){2}/g,function(e,n){return function(e){return t.simplifiedAutoLink&&(e=a.subParser("simplifiedAutoLinks")(e,t,r)),""+e+""}(n)}),e=r.converter._dispatch("strikethrough.after",e,t,r)),e}),a.subParser("stripLinkDefinitions",function(e,t,r){"use strict";var n=function(e,n,_,i,o,s,l){return n=n.toLowerCase(),_.match(/^data:.+?\/.+?;base64,/)?r.gUrls[n]=_.replace(/\s/g,""):r.gUrls[n]=a.subParser("encodeAmpsAndAngles")(_,t,r),s?s+l:(l&&(r.gTitles[n]=l.replace(/"|'/g,""")),t.parseImgDimensions&&i&&o&&(r.gDimensions[n]={width:i,height:o}),"")};return e=(e=(e=(e+="¨0").replace(/^ {0,3}\[(.+)]:[ \t]*\n?[ \t]*?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*\n?[ \t]*(?:(\n*)["|'(](.+?)["|')][ \t]*)?(?:\n\n|(?=¨0)|(?=\n\[))/gm,n)).replace(/^ {0,3}\[(.+)]:[ \t]*\n?[ \t]*\s]+)>?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*\n?[ \t]*(?:(\n*)["|'(](.+?)["|')][ \t]*)?(?:\n+|(?=¨0))/gm,n)).replace(/¨0/,"")}),a.subParser("tables",function(e,t,r){"use strict";if(!t.tables)return e;function n(e){return/^:[ \t]*--*$/.test(e)?' style="text-align:left;"':/^--*[ \t]*:[ \t]*$/.test(e)?' style="text-align:right;"':/^:[ \t]*--*[ \t]*:$/.test(e)?' style="text-align:center;"':""}function _(e,n){var _="";return e=e.trim(),(t.tablesHeaderId||t.tableHeaderId)&&(_=' id="'+e.replace(/ /g,"_").toLowerCase()+'"'),""+(e=a.subParser("spanGamut")(e,t,r))+"\n"}function i(e,n){return""+a.subParser("spanGamut")(e,t,r)+"\n"}function o(e){var o,s=e.split("\n");for(o=0;o\n\n\n",_=0;_\n";for(var a=0;a\n"}return r+="\n\n"}(d,p)}return e=(e=(e=(e=r.converter._dispatch("tables.before",e,t,r)).replace(/\\(\|)/g,a.helper.escapeCharactersCallback)).replace(/^ {0,3}\|?.+\|.+\n {0,3}\|?[ \t]*:?[ \t]*(?:[-=]){2,}[ \t]*:?[ \t]*\|[ \t]*:?[ \t]*(?:[-=]){2,}[\s\S]+?(?:\n\n|¨0)/gm,o)).replace(/^ {0,3}\|.+\|[ \t]*\n {0,3}\|[ \t]*:?[ \t]*(?:[-=]){2,}[ \t]*:?[ \t]*\|[ \t]*\n( {0,3}\|.+\|[ \t]*\n)*(?:\n|¨0)/gm,o),e=r.converter._dispatch("tables.after",e,t,r)}),a.subParser("underline",function(e,t,r){"use strict";return t.underline?(e=r.converter._dispatch("underline.before",e,t,r),e=(e=t.literalMidWordUnderscores?e.replace(/\b_?__(\S[\s\S]*)___?\b/g,function(e,t){return""+t+""}):e.replace(/_?__(\S[\s\S]*?)___?/g,function(e,t){return/\S$/.test(t)?""+t+"":e})).replace(/(_)/g,a.helper.escapeCharactersCallback),e=r.converter._dispatch("underline.after",e,t,r)):e}),a.subParser("unescapeSpecialChars",function(e,t,r){"use strict";return e=(e=r.converter._dispatch("unescapeSpecialChars.before",e,t,r)).replace(/¨E(\d+)E/g,function(e,t){var r=parseInt(t);return String.fromCharCode(r)}),e=r.converter._dispatch("unescapeSpecialChars.after",e,t,r)});void 0===(n=function(){"use strict";return a}.call(t,r,t,e))||(e.exports=n)}).call(this)},function(module,__webpack_exports__,__webpack_require__){"use strict";(function(module){__webpack_require__.d(__webpack_exports__,"a",function(){return ReferenceModal});var core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(32),core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_0__),core_js_modules_es6_array_map__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(58),core_js_modules_es6_array_map__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(core_js_modules_es6_array_map__WEBPACK_IMPORTED_MODULE_1__),core_js_modules_es6_array_filter__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(166),core_js_modules_es6_array_filter__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(core_js_modules_es6_array_filter__WEBPACK_IMPORTED_MODULE_2__),core_js_modules_es6_array_index_of__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(45),core_js_modules_es6_array_index_of__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(core_js_modules_es6_array_index_of__WEBPACK_IMPORTED_MODULE_3__),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(2),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_4__),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(3),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_5__),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(5),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_6__),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(4),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_7___default=__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_7__),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(6),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_8___default=__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_8__),react__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(0),react__WEBPACK_IMPORTED_MODULE_9___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_9__),react_css_modules__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(10),react_css_modules__WEBPACK_IMPORTED_MODULE_10___default=__webpack_require__.n(react_css_modules__WEBPACK_IMPORTED_MODULE_10__),components_elements_ButtonControl_ButtonControl__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(23),components_elements_InputControl_InputControl__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(17),_ReferenceModal_sss__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(790),_ReferenceModal_sss__WEBPACK_IMPORTED_MODULE_13___default=__webpack_require__.n(_ReferenceModal_sss__WEBPACK_IMPORTED_MODULE_13__),_dec,_class;!function(){var e=__webpack_require__(1).enterModule;e&&e(module)}();var ReferenceModal=(_dec=react_css_modules__WEBPACK_IMPORTED_MODULE_10___default()(_ReferenceModal_sss__WEBPACK_IMPORTED_MODULE_13___default.a,{allowMultiple:!0}),_dec(_class=function(_Component){function ReferenceModal(e){var t;_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_4___default()(this,ReferenceModal),(t=_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_6___default()(this,_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_7___default()(ReferenceModal).call(this,e))).state={selectedItems:[],searchText:""},t.isMult=!1,t.callback=null,t.items=[],t.focusElm=null,t.active=!1,t.onKeyDown=function(e){e||(e=window.event),e.stopPropagation(),13==e.keyCode&&setTimeout(t.onChoose,1)},t.onSearch=function(e){var r=e.target.value;t.setState({searchText:r,selectedItems:[]})},t.onSelect=function(e){if(t.isMult){var r=t.state.selectedItems,n=r.indexOf(e);-1==n?r.push(e):r.splice(n,1),t.setState({selectedItems:r})}else t.setState({selectedItems:[e]})},t.onSearchKeyDown=function(e){e.stopPropagation(),27==e.keyCode&&t.setState({searchText:""})},t.onChoose=function(){t.state.selectedItems.length&&t.active&&(t.callback(t.isMult?t.state.selectedItems:t.state.selectedItems[0]),t.close())},t.close=function(){t.active=!1,t.props.onClose()},t.isMult=e.params.isMult,t.callback=e.params.callback;var r=e.params,n=r.currentItem,_=r.existingItems,a=r.validModels,i=e.contentItems,o=e.currentSite;return t.items=i.filter(function(e){return(!e.model.site||e.model.site==o)&&-1==_.indexOf(e)&&e!=n}),a&&(t.items=t.items.filter(function(e){return-1!=a.indexOf(e.model.nameId)})),t}return _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_8___default()(ReferenceModal,_Component),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_5___default()(ReferenceModal,[{key:"componentDidMount",value:function(){var e=this;this.active=!0,document.addEventListener("keydown",this.onKeyDown),this.focusElm&&setTimeout(function(){return e.focusElm.focus()},2)}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.onKeyDown)}},{key:"searchMatch",value:function(e){if(!this.state.searchText)return!0;var t=this.state.searchText.toLowerCase();return-1!=e.toLowerCase().indexOf(t)}},{key:"render",value:function(){var e=this;return react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:"modal",onClick:this.close},react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:"modal-inner",onClick:function(e){return e.stopPropagation()}},react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:"content"},react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:"input-wrapper"},react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement(components_elements_InputControl_InputControl__WEBPACK_IMPORTED_MODULE_12__.a,{type:"big",label:"search entries",value:this.state.searchText,DOMRef:function(t){return e.focusElm=t},onKeyDown:this.onSearchKeyDown,onChange:this.onSearch})),react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:"reference"},this.items.filter(function(t){return e.searchMatch(t.title)}).map(function(t){var r="reference-item";-1!=e.state.selectedItems.indexOf(t)&&(r+=" reference-chosen");var n=t.title;return n||(n=react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("span",{styleName:"untitled"},"Untitled")),react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:r,key:t.origin.id,onClick:function(){return e.onSelect(t)}},"[",t.model.name,"] ",n)})),react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:"input-wrapper buttons-wrapper"},react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:"buttons-inner"},react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement(components_elements_ButtonControl_ButtonControl__WEBPACK_IMPORTED_MODULE_11__.a,{color:"green",value:"Choose",disabled:!this.state.selectedItems.length,onClick:this.onChoose})),react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:"buttons-inner"},react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement(components_elements_ButtonControl_ButtonControl__WEBPACK_IMPORTED_MODULE_11__.a,{color:"gray",value:"Cancel",onClick:this.close}))))))}},{key:"__reactstandin__regenerateByEval",value:function __reactstandin__regenerateByEval(key,code){this[key]=eval(code)}}]),ReferenceModal}(react__WEBPACK_IMPORTED_MODULE_9__.Component))||_class);!function(){var e=__webpack_require__(1).default,t=__webpack_require__(1).leaveModule;e&&(e.register(ReferenceModal,"ReferenceModal","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/components/modals/ReferenceModal/ReferenceModal.js"),t(module))}()}).call(this,__webpack_require__(12)(module))},function(module,__webpack_exports__,__webpack_require__){"use strict";(function(module){__webpack_require__.d(__webpack_exports__,"a",function(){return ModelChooseModal});var core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(32),core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_0__),core_js_modules_es6_array_map__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(58),core_js_modules_es6_array_map__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(core_js_modules_es6_array_map__WEBPACK_IMPORTED_MODULE_1__),core_js_modules_es6_array_index_of__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(45),core_js_modules_es6_array_index_of__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(core_js_modules_es6_array_index_of__WEBPACK_IMPORTED_MODULE_2__),core_js_modules_es6_array_filter__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(166),core_js_modules_es6_array_filter__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(core_js_modules_es6_array_filter__WEBPACK_IMPORTED_MODULE_3__),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(2),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_4__),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(3),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_5__),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(5),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_6__),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(4),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_7___default=__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_7__),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(6),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_8___default=__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_8__),react__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(0),react__WEBPACK_IMPORTED_MODULE_9___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_9__),react_css_modules__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(10),react_css_modules__WEBPACK_IMPORTED_MODULE_10___default=__webpack_require__.n(react_css_modules__WEBPACK_IMPORTED_MODULE_10__),components_elements_ButtonControl_ButtonControl__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(23),components_elements_InputControl_InputControl__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(17),_ModelChooseModal_sss__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(792),_ModelChooseModal_sss__WEBPACK_IMPORTED_MODULE_13___default=__webpack_require__.n(_ModelChooseModal_sss__WEBPACK_IMPORTED_MODULE_13__),_dec,_class;!function(){var e=__webpack_require__(1).enterModule;e&&e(module)}();var ModelChooseModal=(_dec=react_css_modules__WEBPACK_IMPORTED_MODULE_10___default()(_ModelChooseModal_sss__WEBPACK_IMPORTED_MODULE_13___default.a,{allowMultiple:!0}),_dec(_class=function(_Component){function ModelChooseModal(e){var t;_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_4___default()(this,ModelChooseModal),(t=_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_6___default()(this,_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_7___default()(ModelChooseModal).call(this,e))).state={selectedModel:null},t.isMult=!1,t.callback=null,t.models=[],t.focusElm=null,t.active=!1,t.onKeyDown=function(e){e||(e=window.event),e.stopPropagation(),13==e.keyCode?setTimeout(t.onChoose,1):27==e.keyCode&&setTimeout(t.close,1)},t.onSelect=function(e){t.setState({selectedModel:e})},t.onChoose=function(){t.state.selectedModel&&t.active&&(t.callback(t.state.selectedModel),t.close())},t.close=function(){t.active=!1,t.props.onClose()},t.callback=e.params.callback;var r=e.params.validModels;return t.models=r?e.models.filter(function(e){return-1!=r.indexOf(e.nameId)}):e.models,t}return _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_8___default()(ModelChooseModal,_Component),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_5___default()(ModelChooseModal,[{key:"componentDidMount",value:function(){var e=this;this.active=!0,document.addEventListener("keydown",this.onKeyDown),this.focusElm&&setTimeout(function(){return e.focusElm.focus()},2)}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.onKeyDown)}},{key:"render",value:function(){var e=this;return react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:"modal",onClick:this.close},react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:"modal-inner",onClick:function(e){return e.stopPropagation()}},react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:"modal-header"},react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:"title"},"Select model for new item")),react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:"content"},react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:"model"},this.models.map(function(t){var r="model-item";return e.state.selectedModel==t&&(r+=" model-chosen"),react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:r,key:t.origin.id,onClick:function(){return e.onSelect(t)}},t.name)})),react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:"input-wrapper buttons-wrapper"},react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:"buttons-inner"},react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement(components_elements_ButtonControl_ButtonControl__WEBPACK_IMPORTED_MODULE_11__.a,{color:"green",value:"Choose",disabled:!this.state.selectedModel,onClick:this.onChoose})),react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:"buttons-inner"},react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement(components_elements_ButtonControl_ButtonControl__WEBPACK_IMPORTED_MODULE_11__.a,{color:"gray",value:"Cancel",onClick:this.close}))))))}},{key:"__reactstandin__regenerateByEval",value:function __reactstandin__regenerateByEval(key,code){this[key]=eval(code)}}]),ModelChooseModal}(react__WEBPACK_IMPORTED_MODULE_9__.Component))||_class);!function(){var e=__webpack_require__(1).default,t=__webpack_require__(1).leaveModule;e&&(e.register(ModelChooseModal,"ModelChooseModal","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/components/modals/ModelChooseModal/ModelChooseModal.js"),t(module))}()}).call(this,__webpack_require__(12)(module))},function(e,t,r){"use strict";(function(e){r.d(t,"a",function(){return l});var n=r(22),_=r(354),a=r(355),i=r(356),o=r(357),s=r(358);function l(e){var t=Object(_.createLogger)();return Object(n.d)(i.a,e,Object(n.a)(o.a,s.a,a.a,t))}!function(){var t=r(1).enterModule;t&&t(e)}(),function(){var t=r(1).default,n=r(1).leaveModule;t&&(t.register(l,"configureStore","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/store/configureStore.js"),n(e))}()}).call(this,r(12)(e))},function(e,t,r){(function(e){!function(t){"use strict";function r(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}function n(e,t){Object.defineProperty(this,"kind",{value:e,enumerable:!0}),t&&t.length&&Object.defineProperty(this,"path",{value:t,enumerable:!0})}function _(e,t,r){_.super_.call(this,"E",e),Object.defineProperty(this,"lhs",{value:t,enumerable:!0}),Object.defineProperty(this,"rhs",{value:r,enumerable:!0})}function a(e,t){a.super_.call(this,"N",e),Object.defineProperty(this,"rhs",{value:t,enumerable:!0})}function i(e,t){i.super_.call(this,"D",e),Object.defineProperty(this,"lhs",{value:t,enumerable:!0})}function o(e,t,r){o.super_.call(this,"A",e),Object.defineProperty(this,"index",{value:t,enumerable:!0}),Object.defineProperty(this,"item",{value:r,enumerable:!0})}function s(e,t,r){var n=e.slice((r||t)+1||e.length);return e.length=t<0?e.length+t:t,e.push.apply(e,n),e}function l(e){var t=void 0===e?"undefined":M(e);return"object"!==t?t:e===Math?"math":null===e?"null":Array.isArray(e)?"array":"[object Date]"===Object.prototype.toString.call(e)?"date":"function"==typeof e.toString&&/^\/.*\//.test(e.toString())?"regexp":"object"}function u(e,t,r,n,c,d,f){c=c||[],f=f||[];var p=c.slice(0);if(void 0!==d){if(n){if("function"==typeof n&&n(p,d))return;if("object"===(void 0===n?"undefined":M(n))){if(n.prefilter&&n.prefilter(p,d))return;if(n.normalize){var h=n.normalize(p,d,e,t);h&&(e=h[0],t=h[1])}}}p.push(d)}"regexp"===l(e)&&"regexp"===l(t)&&(e=e.toString(),t=t.toString());var E=void 0===e?"undefined":M(e),m=void 0===t?"undefined":M(t),g="undefined"!==E||f&&f[f.length-1].lhs&&f[f.length-1].lhs.hasOwnProperty(d),b="undefined"!==m||f&&f[f.length-1].rhs&&f[f.length-1].rhs.hasOwnProperty(d);if(!g&&b)r(new a(p,t));else if(!b&&g)r(new i(p,e));else if(l(e)!==l(t))r(new _(p,e,t));else if("date"===l(e)&&e-t!=0)r(new _(p,e,t));else if("object"===E&&null!==e&&null!==t)if(f.filter(function(t){return t.lhs===e}).length)e!==t&&r(new _(p,e,t));else{if(f.push({lhs:e,rhs:t}),Array.isArray(e)){var v;for(e.length,v=0;v=t.length?r(new o(p,v,new i(void 0,e[v]))):u(e[v],t[v],r,n,p,v,f);for(;v=0?(u(e[_],t[_],r,n,p,_,f),C=s(C,i)):u(e[_],void 0,r,n,p,_,f)}),C.forEach(function(e){u(void 0,t[e],r,n,p,e,f)})}f.length=f.length-1}else e!==t&&("number"===E&&isNaN(e)&&isNaN(t)||r(new _(p,e,t)))}function c(e,t,r,n){return n=n||[],u(e,t,function(e){e&&n.push(e)},r),n.length?n:void 0}function d(e,t,r){if(e&&t&&r&&r.kind){for(var n=e,_=-1,a=r.path?r.path.length-1:0;++_0&&void 0!==arguments[0]?arguments[0]:{},t=Object.assign({},y,e),r=t.logger,n=t.stateTransformer,_=t.errorTransformer,a=t.predicate,i=t.logErrors,o=t.diffPredicate;if(void 0===r)return function(){return function(e){return function(t){return e(t)}}};if(e.getState&&e.dispatch)return console.error("[redux-logger] redux-logger not installed. Make sure to pass logger instance as middleware:\n// Logger with default options\nimport { logger } from 'redux-logger'\nconst store = createStore(\n reducer,\n applyMiddleware(logger)\n)\n// Or you can create your own logger with custom options http://bit.ly/redux-logger-options\nimport createLogger from 'redux-logger'\nconst logger = createLogger({\n // ...options\n});\nconst store = createStore(\n reducer,\n applyMiddleware(logger)\n)\n"),function(){return function(e){return function(t){return e(t)}}};var s=[];return function(e){var r=e.getState;return function(e){return function(l){if("function"==typeof a&&!a(r,l))return e(l);var u={};s.push(u),u.started=O.now(),u.startedTime=new Date,u.prevState=n(r()),u.action=l;var c=void 0;if(i)try{c=e(l)}catch(e){u.error=_(e)}else c=e(l);u.took=O.now()-u.started,u.nextState=n(r());var d=t.diff&&"function"==typeof o?o(r,l):t.diff;if(h(s,Object.assign({},t,{diff:d})),s.length=0,u.error)throw u.error;return c}}}}var m,g,b=function(e,t){return function(e,t){return new Array(t+1).join(e)}("0",t-e.toString().length)+e},v=function(e){return b(e.getHours(),2)+":"+b(e.getMinutes(),2)+":"+b(e.getSeconds(),2)+"."+b(e.getMilliseconds(),3)},O="undefined"!=typeof performance&&null!==performance&&"function"==typeof performance.now?performance:Date,M="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},C=function(e){if(Array.isArray(e)){for(var t=0,r=Array(e.length);t0&&void 0!==arguments[0]?arguments[0]:{},t=e.dispatch,r=e.getState;return"function"==typeof t||"function"==typeof r?E()({dispatch:t,getState:r}):void console.error("\n[redux-logger v3] BREAKING CHANGE\n[redux-logger v3] Since 3.0.0 redux-logger exports by default logger with default settings.\n[redux-logger v3] Change\n[redux-logger v3] import createLogger from 'redux-logger'\n[redux-logger v3] to\n[redux-logger v3] import { createLogger } from 'redux-logger'\n")};t.defaults=y,t.createLogger=E,t.logger=w,t.default=w,Object.defineProperty(t,"__esModule",{value:!0})}(t)}).call(this,r(49))},function(e,t,r){"use strict";function n(e){return function(t){var r=t.dispatch,n=t.getState;return function(t){return function(_){return"function"==typeof _?_(r,n,e):t(_)}}}}var _=n();_.withExtraArgument=n,t.a=_},function(e,t,r){"use strict";(function(e){var n=r(22),_=r(111),a=r(25),i=r(40),o=r(7),s=r(24),l=r(82),u=r(90);!function(){var t=r(1).enterModule;t&&t(e)}();var c=Object(n.c)({models:a.l,content:i.d,nav:o.D,user:s.i,media:l.c,serverStatus:u.a,routing:_.routerReducer});t.a=c,function(){var t=r(1).default,n=r(1).leaveModule;t&&(t.register(c,"default","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/index.js"),n(e))}()}).call(this,r(12)(e))},function(e,t,r){"use strict";(function(e){r.d(t,"a",function(){return s});var n=r(24),_=r(25),a=r(82),i=r(40),o=r(7);!function(){var t=r(1).enterModule;t&&t(e)}();var s=function(e){return function(e){return function(t){e(t),t.type!=n.h&&t.type!=n.e||!t.authorized||e(Object(_.r)()),t.type==_.d&&e(Object(a.d)()),t.type==a.a&&e(Object(i.i)()),t.type==i.a&&e(Object(o.E)())}}};!function(){var t=r(1).default,n=r(1).leaveModule;t&&(t.register(s,"initialization","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/middleware/initialization.js"),n(e))}()}).call(this,r(12)(e))},function(e,t,r){"use strict";(function(e){r.d(t,"a",function(){return f});r(106),r(52),r(53),r(43),r(45);var n=r(16),_=r(111),a=r(24),i=r(25),o=r(15),s=r(7);!function(){var t=r(1).enterModule;t&&t(e)}();var l="/",u=null,c=function(e,t){var r=e.indexOf(t);if(-1==r)return null;var n=e.slice(r).slice(t.length),_=n.indexOf("/");return _>0&&(n=n.slice(0,_)),n},d=function(e){var t=!0,r=!1,n=void 0;try{for(var _,a=s.p[Symbol.iterator]();!(t=(_=a.next()).done);t=!0){var i=_.value;if(-1!=e.indexOf(i))return!0}}catch(e){r=!0,n=e}finally{try{t||null==a.return||a.return()}finally{if(r)throw n}}return!1},f=function(e){return function(t){return function(r){r.type!=a.h&&r.type!=a.e||r.authorized||d(l)||-1!=l.indexOf(s.y)||n.f.push("/".concat(s.y)),t(r);var f=function(){var r=l;if(l="/",-1!=r.indexOf(s.A)){var _=e.getState().models.currentSite,a=function(){if(_)n.f.replace("/".concat(s.A,"/").concat(s.z).concat(_.nameId));else{var t=e.getState().models.sites;t.length?n.f.replace("/".concat(s.A,"/").concat(s.z).concat(t[0].nameId)):r!="/".concat(s.A)&&n.f.replace("/".concat(s.A))}},u=c(r,s.z);if(u){if(!_||u!=_.nameId){var d=Object(o.z)(u);d?t(Object(i.t)(d)):a()}}else-1==r.indexOf(s.v)&&a()}};r.type==_.LOCATION_CHANGE&&(-1==(l=r.payload.pathname).indexOf(s.A)||u||(u=l),e.getState().nav.initEnded&&f()),r.type==s.a&&(u?(l=u,u=null,n.f.replace(l)):-1!=l.indexOf(s.A)||d(l)||n.f.replace("/".concat(s.A)),f()),r.type==a.f&&n.f.push("/".concat(s.y))}}};!function(){var t=r(1).default,n=r(1).leaveModule;t&&(t.register(l,"URL","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/middleware/routing.js"),t.register(u,"returnURL","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/middleware/routing.js"),t.register(c,"getNameId","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/middleware/routing.js"),t.register(d,"isEmailURL","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/middleware/routing.js"),t.register(f,"routing","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/middleware/routing.js"),n(e))}()}).call(this,r(12)(e))},function(module,__webpack_exports__,__webpack_require__){"use strict";(function(module){var core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(32),core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_0__),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(2),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(3),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(5),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(4),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(6),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5__),react__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(0),react__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_6__),svg_inline_react__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(18),svg_inline_react__WEBPACK_IMPORTED_MODULE_7___default=__webpack_require__.n(svg_inline_react__WEBPACK_IMPORTED_MODULE_7__),react_redux__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(28),react_helmet__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(34),react_helmet__WEBPACK_IMPORTED_MODULE_9___default=__webpack_require__.n(react_helmet__WEBPACK_IMPORTED_MODULE_9__),models_UserData__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(19),components_mainArea_common_NoRights__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(112);!function(){var e=__webpack_require__(1).enterModule;e&&e(module)}();var APIPage=function(_Component){function APIPage(){return _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this,APIPage),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this,_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(APIPage).apply(this,arguments))}return _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5___default()(APIPage,_Component),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default()(APIPage,[{key:"render",value:function(){return react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{className:"start-working"},react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement(svg_inline_react__WEBPACK_IMPORTED_MODULE_7___default.a,{className:"hammer",src:__webpack_require__(86)}),react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{className:"docs"},"Parse Server has extensive ",react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("a",{className:"docs-link",href:"http://parseplatform.github.io/docs/",target:"_blank"},"Documentation"),". Take a look!",react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{className:"hint"},"Our Interactive API Docs will be coming soon...")))}},{key:"__reactstandin__regenerateByEval",value:function __reactstandin__regenerateByEval(key,code){this[key]=eval(code)}}]),APIPage}(react__WEBPACK_IMPORTED_MODULE_6__.Component),APIPageContainer=function(_Component2){function APIPageContainer(){return _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this,APIPageContainer),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this,_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(APIPageContainer).apply(this,arguments))}return _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5___default()(APIPageContainer,_Component2),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default()(APIPageContainer,[{key:"render",value:function(){var e=this.props.models,t="Chisel",r=react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement(components_mainArea_common_NoRights__WEBPACK_IMPORTED_MODULE_11__.a,null),n=e.currentSite;n&&(t="API - Site: ".concat(n.name," - Chisel"),e.role!=models_UserData__WEBPACK_IMPORTED_MODULE_10__.d&&(r=react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement(APIPage,null)));return react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{className:"mainArea"},react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement(react_helmet__WEBPACK_IMPORTED_MODULE_9__.Helmet,null,react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("title",null,t)),r)}},{key:"__reactstandin__regenerateByEval",value:function __reactstandin__regenerateByEval(key,code){this[key]=eval(code)}}]),APIPageContainer}(react__WEBPACK_IMPORTED_MODULE_6__.Component);function mapStateToProps(e){return{models:e.models}}var _default=Object(react_redux__WEBPACK_IMPORTED_MODULE_8__.b)(mapStateToProps)(APIPageContainer);__webpack_exports__.a=_default,function(){var e=__webpack_require__(1).default,t=__webpack_require__(1).leaveModule;e&&(e.register(APIPage,"APIPage","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/containers/MainArea/API/APIPage.js"),e.register(APIPageContainer,"APIPageContainer","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/containers/MainArea/API/APIPage.js"),e.register(mapStateToProps,"mapStateToProps","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/containers/MainArea/API/APIPage.js"),e.register(_default,"default","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/containers/MainArea/API/APIPage.js"),t(module))}()}).call(this,__webpack_require__(12)(module))},function(module,__webpack_exports__,__webpack_require__){"use strict";(function(module){var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(2),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(3),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(5),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(4),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(6),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__),react__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(0),react__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_5__),redux__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(22),react_redux__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(28),react_css_modules__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(10),react_css_modules__WEBPACK_IMPORTED_MODULE_8___default=__webpack_require__.n(react_css_modules__WEBPACK_IMPORTED_MODULE_8__),react_helmet__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(34),react_helmet__WEBPACK_IMPORTED_MODULE_9___default=__webpack_require__.n(react_helmet__WEBPACK_IMPORTED_MODULE_9__),components_elements_ButtonControl_ButtonControl__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(23),ducks_user__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(24),utils_common__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(20),_Sign_sss__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(798),_Sign_sss__WEBPACK_IMPORTED_MODULE_13___default=__webpack_require__.n(_Sign_sss__WEBPACK_IMPORTED_MODULE_13__),_dec,_class;!function(){var e=__webpack_require__(1).enterModule;e&&e(module)}();var MODE_LOGIN="login",MODE_REG="register",MODE_REG_MAIL="register_mail",MODE_UNVERIF="unverified",MODE_FORGOT="forgot",MODE_FORGOT_MAIL="forgot_mail",MODE_SERVER_DOWN="server_down",Sign=(_dec=react_css_modules__WEBPACK_IMPORTED_MODULE_8___default()(_Sign_sss__WEBPACK_IMPORTED_MODULE_13___default.a,{allowMultiple:!0}),_dec(_class=function(_Component){function Sign(e){var t;_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this,Sign),(t=_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default()(this,_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default()(Sign).call(this,e))).state={mode:MODE_LOGIN,email:"",password:"",passwordConfirm:"",error:null,lock:!1},t.elmEmail=void 0,t.elmPassword=void 0,t.elmPasswordConfirm=void 0,t.onEmailChange=function(e){t.setState({email:e.target.value,error:null})},t.onPasswordChange=function(e){t.setState({password:e.target.value,error:null})},t.onPasswordConfirmChange=function(e){t.setState({passwordConfirm:e.target.value,error:null})},t.onLogin=function(e){return e.preventDefault(),!!t.getLoginAvail()&&((0,t.props.userActions.login)(t.state.email,t.state.password),t.setState({lock:!0}),!1)},t.onReg=function(e){return e.preventDefault(),!!t.getRegAvail()&&((0,t.props.userActions.register)(t.state.email,t.state.password),t.setState({lock:!0}),!1)},t.onRestore=function(e){return e.preventDefault(),!!t.getForgotAvail()&&((0,t.props.userActions.restorePassword)(t.state.email),t.setState({lock:!0}),!1)},t.onResend=function(){(0,t.props.userActions.resendVerEmail)(t.state.email),t.setState({mode:MODE_REG_MAIL})};var r=Object(utils_common__WEBPACK_IMPORTED_MODULE_12__.h)();return r.mode&&(t.state.mode=r.mode),r.email&&(t.state.email=r.email),e.userActions.resetStatus(),t}return _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default()(Sign,_Component),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(Sign,[{key:"componentWillReceiveProps",value:function(e){var t=e.user;if(e.serverStatus.problemB)this.setState({error:null,lock:!1,mode:MODE_SERVER_DOWN});else{var r=t.status;if(r){var n=this.state.mode;n==MODE_REG&&r==ducks_user__WEBPACK_IMPORTED_MODULE_11__.g?n=MODE_REG_MAIL:n==MODE_FORGOT&&r==ducks_user__WEBPACK_IMPORTED_MODULE_11__.g?n=MODE_FORGOT_MAIL:n==MODE_LOGIN&&r==ducks_user__WEBPACK_IMPORTED_MODULE_11__.b&&(n=MODE_UNVERIF),this.props.userActions.resetStatus(),this.setState({error:r,lock:!r,mode:n})}}}},{key:"getLoginAvail",value:function(){return!this.state.lock&&this.state.email&&this.state.password}},{key:"getRegAvail",value:function(){return!this.state.lock&&this.state.email&&this.state.password&&this.state.password==this.state.passwordConfirm}},{key:"getForgotAvail",value:function(){return!this.state.lock&&this.state.email}},{key:"setMode",value:function(e){this.setState({mode:e,error:null,password:"",passwordConfirm:""})}},{key:"render",value:function(){var e,t=this;switch(this.elmEmail=react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("input",{styleName:"input",type:"text",autoFocus:!0,value:this.state.email,placeholder:"Enter email",onChange:this.onEmailChange}),this.elmPassword=react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("input",{styleName:"input",type:"password",value:this.state.password,placeholder:"Enter password",onChange:this.onPasswordChange}),this.elmPasswordConfirm=react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("input",{styleName:"input",type:"password",value:this.state.passwordConfirm,placeholder:"Confirm password",onChange:this.onPasswordConfirmChange}),this.state.mode){case MODE_LOGIN:e=react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("form",{styleName:"form",onSubmit:this.onLogin},this.elmEmail,this.elmPassword,react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{styleName:"button"},react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement(components_elements_ButtonControl_ButtonControl__WEBPACK_IMPORTED_MODULE_10__.a,{color:"green",type:"submit",disabled:!this.getLoginAvail(),value:"Log in"})),react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{styleName:"errors"},this.state.error==ducks_user__WEBPACK_IMPORTED_MODULE_11__.d&&react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{styleName:"error"},"Wrong email or password!")),react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{styleName:"forgot",onClick:function(){return t.setMode(MODE_FORGOT)}},"Forgot password?"),react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{styleName:"forgot",onClick:function(){return t.setMode(MODE_REG)}},"Registration"));break;case MODE_REG:e=react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("form",{styleName:"form",onSubmit:this.onReg},this.elmEmail,this.elmPassword,this.elmPasswordConfirm,react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{styleName:"button"},react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement(components_elements_ButtonControl_ButtonControl__WEBPACK_IMPORTED_MODULE_10__.a,{color:"green",type:"submit",disabled:!this.getRegAvail(),value:"Register"})),react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{styleName:"errors"},this.state.error==ducks_user__WEBPACK_IMPORTED_MODULE_11__.c&&react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{styleName:"error"},"This email is already in use!")),react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{styleName:"forgot",onClick:function(){return t.setMode(MODE_LOGIN)}},"Log in"));break;case MODE_REG_MAIL:e=react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{styleName:"form"},react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{styleName:"description"},"We send to your email a link to confirm your registration. Please, open it."),react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{styleName:"forgot",onClick:function(){return t.setMode(MODE_LOGIN)}},"Return to log in"));break;case MODE_UNVERIF:e=react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{styleName:"form"},react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{styleName:"description"},react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("p",null,"It looks like your email is not verified yet."),react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("p",null,"Please check your inbox for an email from us.")),react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{styleName:"forgot",onClick:this.onResend},"Resend verification email"),react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{styleName:"forgot",onClick:function(){return t.setMode(MODE_LOGIN)}},"Return to log in"));break;case MODE_FORGOT:e=react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("form",{styleName:"form",onSubmit:this.onRestore},react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{styleName:"description"},"Please, type your email, and we will send you a link to reset your password."),this.elmEmail,react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{styleName:"button"},react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement(components_elements_ButtonControl_ButtonControl__WEBPACK_IMPORTED_MODULE_10__.a,{color:"green",type:"submit",disabled:!this.getForgotAvail(),value:"Restore password"})),react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{styleName:"errors"},this.state.error==ducks_user__WEBPACK_IMPORTED_MODULE_11__.a&&react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{styleName:"error"},"Wrong email!")),react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{styleName:"forgot",onClick:function(){return t.setMode(MODE_LOGIN)}},"Return to log in"));break;case MODE_FORGOT_MAIL:e=react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{styleName:"form"},react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{styleName:"description"},"The mail have sended. Please, check your inbox."),react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{styleName:"forgot",onClick:function(){return t.setMode(MODE_LOGIN)}},"Return to log in"));break;case MODE_SERVER_DOWN:e=react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{styleName:"form"},react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{styleName:"description"},"We are sorry, but we have some problems with our service. Please, come back later."),react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{styleName:"forgot",onClick:function(){return t.setMode(MODE_LOGIN)}},"Return to log in"))}return react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{className:"container"},react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement(react_helmet__WEBPACK_IMPORTED_MODULE_9__.Helmet,null,react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("title",null,"Sign in / Sign up - Chisel")),react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{styleName:"Sign"},react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{styleName:"logo"},react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("img",{src:__webpack_require__(138)})),react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{styleName:"title"},"Welcome to Chisel"),e))}},{key:"__reactstandin__regenerateByEval",value:function __reactstandin__regenerateByEval(key,code){this[key]=eval(code)}}]),Sign}(react__WEBPACK_IMPORTED_MODULE_5__.Component))||_class);function mapStateToProps(e){return{user:e.user,serverStatus:e.serverStatus}}function mapDispatchToProps(e){return{userActions:Object(redux__WEBPACK_IMPORTED_MODULE_6__.b)({login:ducks_user__WEBPACK_IMPORTED_MODULE_11__.k,register:ducks_user__WEBPACK_IMPORTED_MODULE_11__.m,restorePassword:ducks_user__WEBPACK_IMPORTED_MODULE_11__.p,resendVerEmail:ducks_user__WEBPACK_IMPORTED_MODULE_11__.n,resetStatus:ducks_user__WEBPACK_IMPORTED_MODULE_11__.o},e)}}var _default=Object(react_redux__WEBPACK_IMPORTED_MODULE_7__.b)(mapStateToProps,mapDispatchToProps)(Sign);__webpack_exports__.a=_default,function(){var e=__webpack_require__(1).default,t=__webpack_require__(1).leaveModule;e&&(e.register(MODE_LOGIN,"MODE_LOGIN","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/containers/Sign/Sign.js"),e.register(MODE_REG,"MODE_REG","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/containers/Sign/Sign.js"),e.register(MODE_REG_MAIL,"MODE_REG_MAIL","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/containers/Sign/Sign.js"),e.register(MODE_UNVERIF,"MODE_UNVERIF","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/containers/Sign/Sign.js"),e.register(MODE_FORGOT,"MODE_FORGOT","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/containers/Sign/Sign.js"),e.register(MODE_FORGOT_MAIL,"MODE_FORGOT_MAIL","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/containers/Sign/Sign.js"),e.register(MODE_SERVER_DOWN,"MODE_SERVER_DOWN","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/containers/Sign/Sign.js"),e.register(Sign,"Sign","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/containers/Sign/Sign.js"),e.register(mapStateToProps,"mapStateToProps","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/containers/Sign/Sign.js"),e.register(mapDispatchToProps,"mapDispatchToProps","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/containers/Sign/Sign.js"),e.register(_default,"default","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/containers/Sign/Sign.js"),t(module))}()}).call(this,__webpack_require__(12)(module))},function(module,__webpack_exports__,__webpack_require__){"use strict";(function(module){var core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(32),core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_0__),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(2),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(3),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(5),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(4),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(6),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5__),react__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(0),react__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_6__),react_redux__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(28),react_css_modules__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(10),react_css_modules__WEBPACK_IMPORTED_MODULE_8___default=__webpack_require__.n(react_css_modules__WEBPACK_IMPORTED_MODULE_8__),svg_inline_react__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(18),svg_inline_react__WEBPACK_IMPORTED_MODULE_9___default=__webpack_require__.n(svg_inline_react__WEBPACK_IMPORTED_MODULE_9__),react_helmet__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(34),react_helmet__WEBPACK_IMPORTED_MODULE_10___default=__webpack_require__.n(react_helmet__WEBPACK_IMPORTED_MODULE_10__),containers_Header_Header__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(362),containers_Sidebar_Sidebar__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(364),ducks_nav__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(7),_MainArea_sss__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(810),_MainArea_sss__WEBPACK_IMPORTED_MODULE_14___default=__webpack_require__.n(_MainArea_sss__WEBPACK_IMPORTED_MODULE_14__),_dec,_class;!function(){var e=__webpack_require__(1).enterModule;e&&e(module)}();var MainArea=(_dec=react_css_modules__WEBPACK_IMPORTED_MODULE_8___default()(_MainArea_sss__WEBPACK_IMPORTED_MODULE_14___default.a,{allowMultiple:!0}),_dec(_class=function(_Component){function MainArea(){var e,t;_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this,MainArea);for(var r=arguments.length,n=new Array(r),_=0;_1048576){t.setState({error:"Your file's size exceeds a limit of 1 MB."})}else{var n=new parse__WEBPACK_IMPORTED_MODULE_8__.Parse.File(Object(utils_common__WEBPACK_IMPORTED_MODULE_14__.d)(r.name),r,r.type);n.save().then(function(){t.setState({dirty:!0,icon:n})})}else{t.setState({error:"You should upload an image"})}},t.onSave=function(e){e.preventDefault(),t.state.dirty&&!t.state.error&&t.validate()&&(t.setState({dirty:!1}),t.site.name=t.state.name,t.site.domain=t.state.domain,t.site.webhook=t.state.webhook,t.site.icon=t.state.icon,t.props.updateSite(t.site))},t.onDelete=function(){var e=t.props,r=e.showAlert,n=e.deleteSite;r({type:components_modals_AlertModal_AlertModal__WEBPACK_IMPORTED_MODULE_13__.b,title:"Deleting ".concat(t.state.name),description:"You are trying to remove the site with all content. This action cannot be undone. Are you sure?

Please, type site name to confirm:",confirmString:t.site.name,onConfirm:function(){return n(t.site)}})},t.site=e.site,t.state.name=t.site.name,t.state.domain=t.site.domain,t.state.webhook=t.site.webhook,t.state.icon=t.site.icon,t}return _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5___default()(Settings,_Component),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default()(Settings,[{key:"componentWillReceiveProps",value:function(e){this.site=e.site,this.setState({name:this.site.name,domain:this.site.domain,webhook:this.site.webhook})}},{key:"validate",value:function(){if(!this.state.name)return this.setState({error:ERROR_BLANK_NAME}),!1;var e=Object(utils_data__WEBPACK_IMPORTED_MODULE_12__.m)(this.state.domain,this.site);return e==utils_data__WEBPACK_IMPORTED_MODULE_12__.e?(this.setState({error:ERROR_URL_SYNTAX}),!1):e==utils_data__WEBPACK_IMPORTED_MODULE_12__.d?(this.setState({error:ERROR_URL_EXIST}),!1):this.state.webhook&&!Object(utils_common__WEBPACK_IMPORTED_MODULE_14__.c)(this.state.webhook)?(this.setState({error:ERROR_WEBHOOK_SYNTAX}),!1):Object(utils_data__WEBPACK_IMPORTED_MODULE_12__.n)(this.state.name,this.site)?(this.setState({error:ERROR_NAME_EXIST}),!1):(this.setState({error:null}),!0)}},{key:"getIcon",value:function(){var e=this.props.isEditable,t="icon-button";e||(t+=" icon-button-disabled");var r=null;return this.state.icon&&(r=react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("img",{styleName:"icon-img",src:this.state.icon.url()})),react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"field icon"},react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"field-title"},"Site icon"),r,react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{type:"file",styleName:t+" icon-upload"},"Upload",react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("input",{styleName:"icon-hidden",type:"file",disabled:!e,onChange:this.onChangeIcon})))}},{key:"render",value:function(){var e=this.props.isEditable;return react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement(components_elements_ContainerComponent_ContainerComponent__WEBPACK_IMPORTED_MODULE_11__.a,{title:"Site settings"},react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("form",{styleName:"content",onSubmit:this.onSave},react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"field"},react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"field-title"},"Site name"),react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"input-wrapper"},react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement(components_elements_InputControl_InputControl__WEBPACK_IMPORTED_MODULE_9__.a,{type:"big",value:this.state.name,readOnly:!e,onChange:this.onChangeName}))),react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"field"},react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"field-title"},"Site domain URL"),react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"input-wrapper"},react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement(components_elements_InputControl_InputControl__WEBPACK_IMPORTED_MODULE_9__.a,{type:"big",value:this.state.domain,readOnly:!e,onChange:this.onChangeDomain}))),react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"field"},react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"field-title"},"Webhook URL"),react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"input-wrapper"},react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement(components_elements_InputControl_InputControl__WEBPACK_IMPORTED_MODULE_9__.a,{type:"big",value:this.state.webhook,readOnly:!e,onChange:this.onChangeWebhook}))),react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"field"},react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"field-title"},"Site ID"),react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"input-wrapper"},react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement(components_elements_InputControl_InputControl__WEBPACK_IMPORTED_MODULE_9__.a,{type:"big",value:this.site.origin.id,readOnly:!0}))),this.getIcon(),e&&react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"buttons-wrapper"},react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement(components_elements_ButtonControl_ButtonControl__WEBPACK_IMPORTED_MODULE_10__.a,{color:"green",type:"submit",disabled:!this.state.dirty||this.state.error,value:"Save changes"})),e&&react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"buttons-wrapper"},react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement(components_elements_ButtonControl_ButtonControl__WEBPACK_IMPORTED_MODULE_10__.a,{color:"red",value:"Delete site",onClick:this.onDelete})),this.state.error&&react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"field-error"},this.state.error)))}},{key:"__reactstandin__regenerateByEval",value:function __reactstandin__regenerateByEval(key,code){this[key]=eval(code)}}]),Settings}(react__WEBPACK_IMPORTED_MODULE_6__.Component))||_class);!function(){var e=__webpack_require__(1).default,t=__webpack_require__(1).leaveModule;e&&(e.register(ERROR_BLANK_NAME,"ERROR_BLANK_NAME","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/components/mainArea/settings/Settings.js"),e.register(ERROR_URL_SYNTAX,"ERROR_URL_SYNTAX","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/components/mainArea/settings/Settings.js"),e.register(ERROR_WEBHOOK_SYNTAX,"ERROR_WEBHOOK_SYNTAX","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/components/mainArea/settings/Settings.js"),e.register(ERROR_NAME_EXIST,"ERROR_NAME_EXIST","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/components/mainArea/settings/Settings.js"),e.register(ERROR_URL_EXIST,"ERROR_URL_EXIST","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/components/mainArea/settings/Settings.js"),e.register(Settings,"Settings","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/components/mainArea/settings/Settings.js"),t(module))}()}).call(this,__webpack_require__(12)(module))},function(module,__webpack_exports__,__webpack_require__){"use strict";(function(module){var core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(32),core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_0__),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(2),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(3),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(5),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(4),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(6),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5__),react__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(0),react__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_6__),redux__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(22),react_redux__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(28),react_helmet__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(34),react_helmet__WEBPACK_IMPORTED_MODULE_9___default=__webpack_require__.n(react_helmet__WEBPACK_IMPORTED_MODULE_9__),components_mainArea_sharing_Sharing__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(370),models_UserData__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(19),ducks_models__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(25),ducks_nav__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(7);!function(){var e=__webpack_require__(1).enterModule;e&&e(module)}();var SharingContainer=function(_Component){function SharingContainer(){return _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this,SharingContainer),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this,_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(SharingContainer).apply(this,arguments))}return _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5___default()(SharingContainer,_Component),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default()(SharingContainer,[{key:"render",value:function(){var e=this.props,t=e.models,r=e.nav,n=e.user,_=this.props.modelsActions,a=_.addCollaboration,i=_.addInviteCollaboration,o=_.updateCollaboration,s=_.deleteCollaboration,l=_.deleteSelfCollaboration,u=this.props.navActions.showAlert,c=t.currentSite;if(!c)return null;var d="Sharing - Site: ".concat(c.name," - Chisel");return react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{className:"mainArea"},react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement(react_helmet__WEBPACK_IMPORTED_MODULE_9__.Helmet,null,react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("title",null,d)),",",react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement(components_mainArea_sharing_Sharing__WEBPACK_IMPORTED_MODULE_10__.a,{collaborations:c.collaborations,owner:c.owner,user:n.userData,addCollaboration:a,addInviteCollaboration:i,updateCollaboration:o,deleteCollaboration:s,deleteSelfCollaboration:l,showAlert:u,alertShowing:r.alertShowing,isEditable:t.role==models_UserData__WEBPACK_IMPORTED_MODULE_11__.e||t.role==models_UserData__WEBPACK_IMPORTED_MODULE_11__.b}))}},{key:"__reactstandin__regenerateByEval",value:function __reactstandin__regenerateByEval(key,code){this[key]=eval(code)}}]),SharingContainer}(react__WEBPACK_IMPORTED_MODULE_6__.Component);function mapStateToProps(e){return{models:e.models,nav:e.nav,user:e.user}}function mapDispatchToProps(e){return{modelsActions:Object(redux__WEBPACK_IMPORTED_MODULE_7__.b)({addCollaboration:ducks_models__WEBPACK_IMPORTED_MODULE_12__.g,addInviteCollaboration:ducks_models__WEBPACK_IMPORTED_MODULE_12__.i,updateCollaboration:ducks_models__WEBPACK_IMPORTED_MODULE_12__.u,deleteCollaboration:ducks_models__WEBPACK_IMPORTED_MODULE_12__.m,deleteSelfCollaboration:ducks_models__WEBPACK_IMPORTED_MODULE_12__.p},e),navActions:Object(redux__WEBPACK_IMPORTED_MODULE_7__.b)({showAlert:ducks_nav__WEBPACK_IMPORTED_MODULE_13__.G},e)}}var _default=Object(react_redux__WEBPACK_IMPORTED_MODULE_8__.b)(mapStateToProps,mapDispatchToProps)(SharingContainer);__webpack_exports__.a=_default,function(){var e=__webpack_require__(1).default,t=__webpack_require__(1).leaveModule;e&&(e.register(SharingContainer,"SharingContainer","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/containers/MainArea/Sharing/SharingContainer.js"),e.register(mapStateToProps,"mapStateToProps","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/containers/MainArea/Sharing/SharingContainer.js"),e.register(mapDispatchToProps,"mapDispatchToProps","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/containers/MainArea/Sharing/SharingContainer.js"),e.register(_default,"default","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/containers/MainArea/Sharing/SharingContainer.js"),t(module))}()}).call(this,__webpack_require__(12)(module))},function(module,__webpack_exports__,__webpack_require__){"use strict";(function(module){__webpack_require__.d(__webpack_exports__,"a",function(){return Sharing});var core_js_modules_es6_array_map__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(58),core_js_modules_es6_array_map__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(core_js_modules_es6_array_map__WEBPACK_IMPORTED_MODULE_0__),core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(32),core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_1__),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(2),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2__),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(3),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3__),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(5),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(4),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(6),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_6__),react__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(0),react__WEBPACK_IMPORTED_MODULE_7___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_7__),react_css_modules__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(10),react_css_modules__WEBPACK_IMPORTED_MODULE_8___default=__webpack_require__.n(react_css_modules__WEBPACK_IMPORTED_MODULE_8__),svg_inline_react__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(18),svg_inline_react__WEBPACK_IMPORTED_MODULE_9___default=__webpack_require__.n(svg_inline_react__WEBPACK_IMPORTED_MODULE_9__),react_gravatar__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(145),react_gravatar__WEBPACK_IMPORTED_MODULE_10___default=__webpack_require__.n(react_gravatar__WEBPACK_IMPORTED_MODULE_10__),parse__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(14),parse__WEBPACK_IMPORTED_MODULE_11___default=__webpack_require__.n(parse__WEBPACK_IMPORTED_MODULE_11__),react_flip_move__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(113),models_UserData__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(19),utils_data__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(15),components_elements_ContainerComponent_ContainerComponent__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(56),components_elements_InputControl_InputControl__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(17),components_modals_AlertModal_AlertModal__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__(38),_Sharing_sss__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__(816),_Sharing_sss__WEBPACK_IMPORTED_MODULE_18___default=__webpack_require__.n(_Sharing_sss__WEBPACK_IMPORTED_MODULE_18__),_dec,_class;!function(){var e=__webpack_require__(1).enterModule;e&&e(module)}();var Sharing=(_dec=react_css_modules__WEBPACK_IMPORTED_MODULE_8___default()(_Sharing_sss__WEBPACK_IMPORTED_MODULE_18___default.a,{allowMultiple:!0}),_dec(_class=function(_Component){function Sharing(e){var t;return _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2___default()(this,Sharing),(t=_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default()(this,_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default()(Sharing).call(this,e))).state={collaborations:[],input:""},t.activeInput=null,t.returnFocus=!1,t.onInputChange=function(e){var r=e.target.value;t.setState({input:r})},t.onKeyDown=function(e){t.props.alertShowing||(13==e.keyCode?t.onAddCollaboration():27==e.keyCode&&t.setState({input:""}))},t.onAddCollaboration=function(e){var r=t.state.input;r&&Object(utils_data__WEBPACK_IMPORTED_MODULE_14__.A)(r).then(function(e){switch(Object(utils_data__WEBPACK_IMPORTED_MODULE_14__.h)(e)){case utils_data__WEBPACK_IMPORTED_MODULE_14__.a:t.props.addCollaboration(e,r),t.setState({input:""});break;case utils_data__WEBPACK_IMPORTED_MODULE_14__.c:t.props.showAlert({title:"Error",description:"You are trying to add yourself!",buttonText:"OK"}),t.returnFocus=!0;break;case utils_data__WEBPACK_IMPORTED_MODULE_14__.b:t.props.showAlert({title:"Error",description:"This user is also exist",buttonText:"OK"}),t.returnFocus=!0}}).catch(function(e){t.props.showAlert({type:components_modals_AlertModal_AlertModal__WEBPACK_IMPORTED_MODULE_17__.b,title:"Not registered user",description:"The user ".concat(r," is not registered at Chisel. Would you like to send an invitation to them?"),onConfirm:function(){return t.props.addInviteCollaboration(r)}}),t.returnFocus=!0,t.setState({input:""})})},t.state.collaborations=e.collaborations,t}return _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_6___default()(Sharing,_Component),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3___default()(Sharing,[{key:"componentWillReceiveProps",value:function(e){var t=this;!e.alertShowing&&this.activeInput&&this.returnFocus&&(this.returnFocus=!1,setTimeout(function(){return t.activeInput.focus()},1)),e.collaborations!=this.state.collaborations&&this.setState({collaborations:e.collaborations,input:""})}},{key:"onRoleClick",value:function(e,t){e.stopPropagation();var r=this.state.collaborations,n=r[t];n.role==models_UserData__WEBPACK_IMPORTED_MODULE_13__.b?n.role=models_UserData__WEBPACK_IMPORTED_MODULE_13__.d:n.role==models_UserData__WEBPACK_IMPORTED_MODULE_13__.d?n.role=models_UserData__WEBPACK_IMPORTED_MODULE_13__.c:n.role==models_UserData__WEBPACK_IMPORTED_MODULE_13__.c&&(n.role=models_UserData__WEBPACK_IMPORTED_MODULE_13__.b),this.setState({collaborations:r}),this.props.updateCollaboration(n)}},{key:"onDeleteClick",value:function(e,t){e.stopPropagation();var r="This action cannot be undone. Are you sure?",n=this.props.deleteCollaboration,_="",a=t.email;t.user&&t.user.origin.id==parse__WEBPACK_IMPORTED_MODULE_11__.Parse.User.current().id&&(r="You are trying to stop managing this site. ".concat(r,"

Please, type site name to confirm:"),n=this.props.deleteSelfCollaboration,_=t.site.name,a="self"),this.props.showAlert({type:components_modals_AlertModal_AlertModal__WEBPACK_IMPORTED_MODULE_17__.b,title:"Deleting ".concat(a," from collaborators"),description:r,confirmString:_,onConfirm:function(){return n(t)}}),this.returnFocus=!0}},{key:"render",value:function(){var e=this,t=this.props,r=t.owner,n=t.isEditable,_=this.props.user;return react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{styleName:"wrapper"},react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement(components_elements_ContainerComponent_ContainerComponent__WEBPACK_IMPORTED_MODULE_15__.a,{title:"Collaborators"},react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{styleName:"sharing-wrapper"},react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{styleName:"list"},react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{styleName:"list-item"},react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{styleName:"avatar"},react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement(react_gravatar__WEBPACK_IMPORTED_MODULE_10___default.a,{email:r.email,styleName:"gravatar"})),react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{styleName:"type"},react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{styleName:"name"},r.firstName," ",r.lastName),react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{styleName:"email"},r.email)),react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{styleName:"role"},"OWNER")),react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement(react_flip_move__WEBPACK_IMPORTED_MODULE_12__.a,{duration:500,enterAnimation:"fade",leaveAnimation:"fade",maintainContainerHeight:!0,easing:"ease-out"},this.state.collaborations.map(function(t,r){var a,i=t.user,o=n,s=n,l=null;return i?(a="list-item",i.origin.id==_.origin.id&&(o=!0,s=!1),l=i.firstName||i.lastName?react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{styleName:"type"},react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{styleName:"name"},i.firstName," ",i.lastName," "),react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{styleName:"email"},i.email)):react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{styleName:"type-one-str"},react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{styleName:"email"},t.email))):(a="list-item list-item-pending",l=react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{styleName:"type-one-str"},react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{styleName:"email"},t.email," (pending)"))),react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{styleName:a,key:t.email},react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{styleName:"avatar"},react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement(react_gravatar__WEBPACK_IMPORTED_MODULE_10___default.a,{email:t.email,styleName:"gravatar"})),l,s?react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{styleName:"role editable",onClick:function(t){return e.onRoleClick(t,r)}},t.role):react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{styleName:"role"},t.role),o&&react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{styleName:"hidden-controls"},react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{styleName:"hidden-remove",onClick:function(r){return e.onDeleteClick(r,t)}},react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement(svg_inline_react__WEBPACK_IMPORTED_MODULE_9___default.a,{styleName:"cross",src:__webpack_require__(77)}))))}),n&&react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{styleName:"input-wrapper",key:"input!"},react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement(components_elements_InputControl_InputControl__WEBPACK_IMPORTED_MODULE_16__.a,{placeholder:"Enter one or more emails",value:this.state.input,autoFocus:!0,onChange:this.onInputChange,onKeyDown:this.onKeyDown,icon:"users",onIconClick:this.onAddCollaboration,DOMRef:function(t){return e.activeInput=t}}),react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{styleName:"footer"},"If the recipient doesn’t yet have a Chisel account, they will be sent an invitation to join.")))))),!1)}},{key:"__reactstandin__regenerateByEval",value:function __reactstandin__regenerateByEval(key,code){this[key]=eval(code)}}]),Sharing}(react__WEBPACK_IMPORTED_MODULE_7__.Component))||_class);!function(){var e=__webpack_require__(1).default,t=__webpack_require__(1).leaveModule;e&&(e.register(Sharing,"Sharing","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/components/mainArea/sharing/Sharing.js"),t(module))}()}).call(this,__webpack_require__(12)(module))},function(module,__webpack_exports__,__webpack_require__){"use strict";(function(module){var core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(32),core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_0__),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(2),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(3),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(5),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(4),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(6),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5__),react__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(0),react__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_6__),redux__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(22),react_redux__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(28),react_router__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(16),react_helmet__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(34),react_helmet__WEBPACK_IMPORTED_MODULE_10___default=__webpack_require__.n(react_helmet__WEBPACK_IMPORTED_MODULE_10__),components_mainArea_models_ModelsList_ModelsList__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(372),ducks_models__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(25),ducks_nav__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(7),models_UserData__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(19),components_mainArea_common_NoRights__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(112);!function(){var e=__webpack_require__(1).enterModule;e&&e(module)}();var ModelsListContainer=function(_Component){function ModelsListContainer(){var e,t;_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this,ModelsListContainer);for(var r=arguments.length,n=new Array(r),_=0;_".concat(r.name,"
model"),type:components_modals_AlertModal_AlertModal__WEBPACK_IMPORTED_MODULE_15__.a,description:"There are ".concat(_," content items using the model. You should delete them first.")}:{title:"Deleting ".concat(r.name," model"),type:components_modals_AlertModal_AlertModal__WEBPACK_IMPORTED_MODULE_15__.b,description:"Are you sure?",onConfirm:function(){return t.props.deleteModel(r)}},t.props.showAlert(n),t.returnFocus=!0},t.site=e.site,t.state.models=t.site.models.slice(),t}return _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_6___default()(ModelsList,_Component),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3___default()(ModelsList,[{key:"componentWillReceiveProps",value:function(e){var t=this;!e.alertShowing&&this.returnFocus&&this.activeInput&&(this.returnFocus=!1,setTimeout(function(){t.activeInput.focus(),t.props.keepScroll()},1)),e.site!=this.site&&(this.site=e.site,this.animate=!1,this.setState({modelName:""})),this.setState({models:this.site.models.slice()})}},{key:"componentDidUpdate",value:function(){this.animate=!0}},{key:"render",value:function(){var e=this,t=this.props.isEditable;return react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement(components_elements_ContainerComponent_ContainerComponent__WEBPACK_IMPORTED_MODULE_13__.a,{title:"Models",backgroundOffset:110},react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{styleName:"content"},react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{styleName:"list"},react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement(react_flip_move__WEBPACK_IMPORTED_MODULE_10__.a,{duration:250,enterAnimation:"accordionVertical",leaveAnimation:"accordionVertical",maintainContainerHeight:!0,disableAllAnimations:!this.animate,easing:"ease-out"},this.state.models.length>0&&react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{styleName:"list-item list-header",key:"header!"},react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{styleName:"colorLabel"}),react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{styleName:"type"}),react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{styleName:"fields"},"FIELDS"),react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{styleName:"updated"},"UPDATED")),this.state.models.map(function(r){var n=r.origin.updatedAt;n||(n=new Date);var _=Object(utils_common__WEBPACK_IMPORTED_MODULE_12__.g)(n),a={background:r.color};return react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{styleName:"list-item",key:r.nameId,onClick:function(){return e.onModelClick(r)}},react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{styleName:"colorLabel",style:a}),react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{styleName:"type"},react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{styleName:"name"},r.name),react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{styleName:"description"},r.description)),react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{styleName:"fields"},r.fields.length),react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{styleName:"updated"},_),t&&react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{styleName:"hidden-controls"},react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{styleName:"hidden-remove",onClick:function(t){return e.onRemoveClick(t,r)}},react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement(svg_inline_react__WEBPACK_IMPORTED_MODULE_9___default.a,{styleName:"cross",src:__webpack_require__(77)}))))}),t&&react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{styleName:"input-wrapper",key:"input!"},react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{styleName:"input-wrapper-back"}),react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{styleName:"input"},react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement(components_elements_InputControl_InputControl__WEBPACK_IMPORTED_MODULE_14__.a,{value:this.state.modelName,placeholder:"Create a new Content Type",onChange:this.onModelNameChange,onKeyDown:this.onKeyDown,DOMRef:function(t){return e.activeInput=t},icon:"plus",autoFocus:!0,onIconClick:this.onAddModel})))))))}},{key:"__reactstandin__regenerateByEval",value:function __reactstandin__regenerateByEval(key,code){this[key]=eval(code)}}]),ModelsList}(react__WEBPACK_IMPORTED_MODULE_7__.Component))||_class);!function(){var e=__webpack_require__(1).default,t=__webpack_require__(1).leaveModule;e&&(e.register(ModelsList,"ModelsList","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/components/mainArea/models/ModelsList/ModelsList.js"),t(module))}()}).call(this,__webpack_require__(12)(module))},function(module,__webpack_exports__,__webpack_require__){"use strict";(function(module){var core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(32),core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_0__),core_js_modules_es6_array_index_of__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(45),core_js_modules_es6_array_index_of__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(core_js_modules_es6_array_index_of__WEBPACK_IMPORTED_MODULE_1__),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(2),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2__),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(3),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3__),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(5),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(4),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(6),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_6__),react__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(0),react__WEBPACK_IMPORTED_MODULE_7___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_7__),redux__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(22),react_redux__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(28),react_router__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(16),react_helmet__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(34),react_helmet__WEBPACK_IMPORTED_MODULE_11___default=__webpack_require__.n(react_helmet__WEBPACK_IMPORTED_MODULE_11__),components_mainArea_models_Model_Model__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(374),ducks_models__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(25),ducks_nav__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(7),utils_data__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(15),models_UserData__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(19),components_mainArea_common_NoRights__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__(112);!function(){var e=__webpack_require__(1).enterModule;e&&e(module)}();var ModelContainer=function(_Component){function ModelContainer(e){var t;_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2___default()(this,ModelContainer),(t=_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default()(this,_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default()(ModelContainer).call(this,e))).model=null,t.mainArea=void 0,t.lastScroll=0,t.onScroll=function(){t.lastScroll=t.mainArea.scrollTop},t.keepScroll=function(){t.mainArea.scrollTop=t.lastScroll};var r=e.params.model;if(0!=r.indexOf(ducks_nav__WEBPACK_IMPORTED_MODULE_14__.t))return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default()(t);r=r.slice(ducks_nav__WEBPACK_IMPORTED_MODULE_14__.t.length);var n=e.modelsActions.setCurrentModel,_=e.models;if(t.model=_.currentModel,!t.model||r!=t.model.nameId){var a=Object(utils_data__WEBPACK_IMPORTED_MODULE_15__.v)(r);a&&(t.model=a,n(a))}return t}return _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_6___default()(ModelContainer,_Component),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3___default()(ModelContainer,[{key:"componentDidMount",value:function(){this.mainArea.scrollTop=0,this.mainArea.addEventListener("scroll",this.onScroll)}},{key:"componentWillUnmount",value:function(){this.mainArea.removeEventListener("scroll",this.onScroll)}},{key:"render",value:function(){var e=this,t=this.props,r=t.models,n=t.nav,_=this.props.modelsActions,a=_.updateModel,i=_.updateField,o=_.deleteField,s=this.props.navActions,l=s.showAlert,u=s.showModal,c="Chisel",d=react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement(components_mainArea_common_NoRights__WEBPACK_IMPORTED_MODULE_17__.a,null),f=r.currentSite,p=this.model;if(f&&p&&(r.role==models_UserData__WEBPACK_IMPORTED_MODULE_16__.b||r.role==models_UserData__WEBPACK_IMPORTED_MODULE_16__.e)){c="Model: ".concat(p.name," - Site: ").concat(f.name," - Chisel");d=react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement(components_mainArea_models_Model_Model__WEBPACK_IMPORTED_MODULE_12__.a,{model:p,onClose:function(){return react_router__WEBPACK_IMPORTED_MODULE_10__.f.push("/".concat(ducks_nav__WEBPACK_IMPORTED_MODULE_14__.A,"/").concat(ducks_nav__WEBPACK_IMPORTED_MODULE_14__.z).concat(f.nameId,"/").concat(ducks_nav__WEBPACK_IMPORTED_MODULE_14__.u))},keepScroll:this.keepScroll,updateModel:a,updateField:i,deleteField:o,showAlert:l,showModal:u,modalShowing:n.modalShowing,alertShowing:n.alertShowing,isEditable:!0})}return react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{className:"mainArea",ref:function(t){return e.mainArea=t}},react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement(react_helmet__WEBPACK_IMPORTED_MODULE_11__.Helmet,null,react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("title",null,c)),d)}},{key:"__reactstandin__regenerateByEval",value:function __reactstandin__regenerateByEval(key,code){this[key]=eval(code)}}]),ModelContainer}(react__WEBPACK_IMPORTED_MODULE_7__.Component);function mapStateToProps(e){return{models:e.models,nav:e.nav}}function mapDispatchToProps(e){return{modelsActions:Object(redux__WEBPACK_IMPORTED_MODULE_8__.b)({setCurrentModel:ducks_models__WEBPACK_IMPORTED_MODULE_13__.s,updateModel:ducks_models__WEBPACK_IMPORTED_MODULE_13__.w,updateField:ducks_models__WEBPACK_IMPORTED_MODULE_13__.v,deleteField:ducks_models__WEBPACK_IMPORTED_MODULE_13__.n},e),navActions:Object(redux__WEBPACK_IMPORTED_MODULE_8__.b)({showAlert:ducks_nav__WEBPACK_IMPORTED_MODULE_14__.G,showModal:ducks_nav__WEBPACK_IMPORTED_MODULE_14__.H},e)}}var _default=Object(react_redux__WEBPACK_IMPORTED_MODULE_9__.b)(mapStateToProps,mapDispatchToProps)(ModelContainer);__webpack_exports__.a=_default,function(){var e=__webpack_require__(1).default,t=__webpack_require__(1).leaveModule;e&&(e.register(ModelContainer,"ModelContainer","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/containers/MainArea/Models/Model/ModelContainer.js"),e.register(mapStateToProps,"mapStateToProps","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/containers/MainArea/Models/Model/ModelContainer.js"),e.register(mapDispatchToProps,"mapDispatchToProps","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/containers/MainArea/Models/Model/ModelContainer.js"),e.register(_default,"default","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/containers/MainArea/Models/Model/ModelContainer.js"),t(module))}()}).call(this,__webpack_require__(12)(module))},function(module,__webpack_exports__,__webpack_require__){"use strict";(function(module){__webpack_require__.d(__webpack_exports__,"a",function(){return Model});var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(2),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(3),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(5),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(4),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(6),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__),core_js_modules_es6_array_map__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(58),core_js_modules_es6_array_map__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(core_js_modules_es6_array_map__WEBPACK_IMPORTED_MODULE_5__),core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(32),core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_6__),react__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(0),react__WEBPACK_IMPORTED_MODULE_7___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_7__),react_css_modules__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(10),react_css_modules__WEBPACK_IMPORTED_MODULE_8___default=__webpack_require__.n(react_css_modules__WEBPACK_IMPORTED_MODULE_8__),svg_inline_react__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(18),svg_inline_react__WEBPACK_IMPORTED_MODULE_9___default=__webpack_require__.n(svg_inline_react__WEBPACK_IMPORTED_MODULE_9__),react_sortable_hoc__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(146),react_sortable_hoc__WEBPACK_IMPORTED_MODULE_10___default=__webpack_require__.n(react_sortable_hoc__WEBPACK_IMPORTED_MODULE_10__),components_elements_ContainerComponent_ContainerComponent__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(56),components_elements_InputControl_InputControl__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(17),components_elements_EditableTitleControl_EditableTitleControl__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(115),components_elements_JSONView_JSONView__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(375),utils_common__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(20),utils_data__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(15),ducks_nav__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__(7),components_modals_AlertModal_AlertModal__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__(38),models_ModelData__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__(8),_Model_sss__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__(824),_Model_sss__WEBPACK_IMPORTED_MODULE_20___default=__webpack_require__.n(_Model_sss__WEBPACK_IMPORTED_MODULE_20__),_dec,_class;!function(){var e=__webpack_require__(1).enterModule;e&&e(module)}();var DragHandle=Object(react_sortable_hoc__WEBPACK_IMPORTED_MODULE_10__.SortableHandle)(function(e){var t=e.color;return react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{className:_Model_sss__WEBPACK_IMPORTED_MODULE_20___default.a.listItemColor,style:{background:t}})}),SortableItem=Object(react_sortable_hoc__WEBPACK_IMPORTED_MODULE_10__.SortableElement)(function(e){var t=e.field,r=e.isEditable,n=e.onFieldClick,_=e.onRemoveClick,a=[_Model_sss__WEBPACK_IMPORTED_MODULE_20___default.a.listItem];return r&&a.push(_Model_sss__WEBPACK_IMPORTED_MODULE_20___default.a.listItemPointer),t.isDisabled&&a.push(_Model_sss__WEBPACK_IMPORTED_MODULE_20___default.a.listItemDisabled),react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{className:a.join(" "),onClick:function(){return n(t)}},react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement(DragHandle,{color:t.color}),react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{className:_Model_sss__WEBPACK_IMPORTED_MODULE_20___default.a.listItemText},react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{className:_Model_sss__WEBPACK_IMPORTED_MODULE_20___default.a.listItemName},t.name),react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{className:_Model_sss__WEBPACK_IMPORTED_MODULE_20___default.a.listItemType},t.type," — ",t.appearance)),t.isTitle&&react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{className:_Model_sss__WEBPACK_IMPORTED_MODULE_20___default.a.titleButton},"TITLE"),r&&react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{className:_Model_sss__WEBPACK_IMPORTED_MODULE_20___default.a.hiddenControls},react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{className:_Model_sss__WEBPACK_IMPORTED_MODULE_20___default.a.hiddenRemove,onClick:function(e){return _(e,t)}},react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement(svg_inline_react__WEBPACK_IMPORTED_MODULE_9___default.a,{className:_Model_sss__WEBPACK_IMPORTED_MODULE_20___default.a.cross,src:__webpack_require__(77)}))))}),SortableList=Object(react_sortable_hoc__WEBPACK_IMPORTED_MODULE_10__.SortableContainer)(function(e){var t=e.fields,r=e.isEditable,n=e.onFieldClick,_=e.onRemoveClick;return react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",null,t.map(function(e,t){return react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement(SortableItem,{key:"item-".concat(t),index:t,field:e,isEditable:r,onFieldClick:n,onRemoveClick:_})}))}),Model=(_dec=react_css_modules__WEBPACK_IMPORTED_MODULE_8___default()(_Model_sss__WEBPACK_IMPORTED_MODULE_20___default.a,{allowMultiple:!0}),_dec(_class=function(_Component){function Model(e){var t;return _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this,Model),(t=_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default()(this,_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default()(Model).call(this,e))).state={fields:[],fieldName:"",jsonVisibility:!1},t.model=null,t.activeInput=null,t.returnFocus=!1,t.titleActive=!1,t.onFieldNameChange=function(e){var r=e.target.value;t.setState({fieldName:r})},t.onAddKeyDown=function(e){t.props.modalShowing||t.props.alertShowing||(13==e.keyCode?t.onAddField():27==e.keyCode&&t.setState({fieldName:""}))},t.onAddField=function(e){if(e&&e.preventDefault(),t.state.fieldName){t.returnFocus=!0;var r=Object(utils_common__WEBPACK_IMPORTED_MODULE_15__.i)(t.state.fieldName),n=Object(utils_data__WEBPACK_IMPORTED_MODULE_16__.j)(r);if(n){(0,t.props.showAlert)(Object(utils_data__WEBPACK_IMPORTED_MODULE_16__.o)(n))}else{var _=new models_ModelData__WEBPACK_IMPORTED_MODULE_19__.A;_.model=t.model,_.name=r,_.nameId=Object(utils_data__WEBPACK_IMPORTED_MODULE_16__.w)(r,t.model.fields),t.props.showModal(ducks_nav__WEBPACK_IMPORTED_MODULE_17__.b,_),t.setState({fieldName:""})}}},t.onRemoveClick=function(e,r){var n;e.stopPropagation();var _=Object(utils_data__WEBPACK_IMPORTED_MODULE_16__.r)(t.model).length;n=r.isDisabled||!_?{title:"Deleting ".concat(r.name," field"),type:components_modals_AlertModal_AlertModal__WEBPACK_IMPORTED_MODULE_18__.b,description:"Are you sure?",onConfirm:function(){return t.props.deleteField(r)}}:{title:"Deleting ".concat(r.name," field"),type:components_modals_AlertModal_AlertModal__WEBPACK_IMPORTED_MODULE_18__.a,description:"There are ".concat(_," content items using the model. You should disable this field first.")},t.props.showAlert(n),t.returnFocus=!0},t.onFieldClick=function(e){t.props.isEditable&&(t.returnFocus=!0,t.props.showModal(ducks_nav__WEBPACK_IMPORTED_MODULE_17__.b,e))},t.onJSONClick=function(){t.setState({jsonVisibility:!t.state.jsonVisibility})},t.updateModelName=function(e,r,n){if(e!=t.model.name){var _=Object(utils_data__WEBPACK_IMPORTED_MODULE_16__.k)(e);_?_!=utils_data__WEBPACK_IMPORTED_MODULE_16__.g&&(n?void 0!=r&&r(t.model.name):(t.returnFocus=!0,t.props.showAlert(Object(utils_data__WEBPACK_IMPORTED_MODULE_16__.o)(_)),t.titleActive=!0)):(t.model.name=e,t.props.updateModel(t.model))}},t.updateModelDescription=function(e){e!=t.model.description&&(t.model.description=e,t.props.updateModel(t.model))},t.onSortEnd=function(e){for(var r=e.oldIndex,n=e.newIndex,_=t.props.updateField,a=Object(react_sortable_hoc__WEBPACK_IMPORTED_MODULE_10__.arrayMove)(t.state.fields,r,n),i=0;i".concat(i,""),description:"Are you sure?",onConfirm:function(){return a(r)}}:{type:components_modals_AlertModal_AlertModal__WEBPACK_IMPORTED_MODULE_19__.a,title:"Deleting ".concat(i,""),description:"Please, archive item before delete it."}),t.returnFocus=!0},t.state.items=e.items,t.state.currentModel=e.models[0],t}return _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_8___default()(ContentList,_Component),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_5___default()(ContentList,[{key:"componentWillReceiveProps",value:function(e){var t=this;!e.alertShowing&&this.returnFocus&&this.activeInput&&(this.returnFocus=!1,setTimeout(function(){t.activeInput.focus(),t.props.keepScroll()},1)),this.setState({items:e.items})}},{key:"render",value:function(){var e=this,t=this.props,r=t.isEditable,n=t.models,_=t.filteredModels,a=t.filteredStatuses,i=react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("img",{styleName:"eye",src:__webpack_require__(740)}),o=react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("img",{styleName:"eye eye-active",src:__webpack_require__(741)}),s=this.state.items.filter(function(e){return!_.size||_.has(e.model)}).filter(function(e){return!a.size||a.has(e.status)}).filter(function(t){var r=e.state.searchText;if(!r.length)return!0;var n=t.draft?t.draft.title:t.title;return n&&-1!=n.toLowerCase().indexOf(r.toLowerCase())});return react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement(components_elements_ContainerComponent_ContainerComponent__WEBPACK_IMPORTED_MODULE_15__.a,{title:"Content"},react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:"content-wrapper"},react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:"filters"},react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:"filters-item"},react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:"filters-title"},"Content Types"),n.map(function(t){var r=t.origin&&t.origin.id?t.origin.id:Math.random(),n=i,a="filters-type filters-typeHidden";return _.has(t)&&(n=o,a="filters-type"),react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:a,key:r,onClick:function(){return e.onModelClick(t)}},t.name,n)})),react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:"filters-item"},react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:"filters-title filters-status"},"Status"),allStatuses.map(function(t){var r=i,n="filters-type filters-typeHidden";return a.has(t)&&(r=o,n="filters-type"),react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:n,key:t,onClick:function(){return e.onStatusClick(t)}},t,r)}))),react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:"list-wrapper"},react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:"list"},react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:"inputs-wrapper search"},react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement(components_elements_InputControl_InputControl__WEBPACK_IMPORTED_MODULE_16__.a,{icon:"search",autoFocus:!0,value:this.state.searchText,onKeyDown:this.onSearchKeyDown,onChange:this.onSearch})),s.length<=0&&react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:"list-no-items"},"There are no items here."),react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement(react_flip_move__WEBPACK_IMPORTED_MODULE_12__.a,{duration:250,enterAnimation:"accordionVertical",leaveAnimation:"accordionVertical",maintainContainerHeight:!0,easing:"ease-out"},s.length>0&&react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:"list-item",key:"header!"},react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:"colorLabel"}),react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:"type"}),react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:"updated"},"UPDATED")),s.map(function(t){var n=t.draft?t.draft.title:t.title,_=t.draft?t.draft.origin.updatedAt:t.origin.updatedAt;_||(_=new Date);var a=Object(utils_common__WEBPACK_IMPORTED_MODULE_18__.g)(_),i={background:t.color},o=t.origin&&t.origin.id?t.origin.id:Math.random();return react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:"list-item",key:o,onClick:function(){return e.onItemClick(t)}},react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:"colorLabel",style:i}),react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:"type"},n?react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:"name"},n):react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:"name untitled"},"Untitled"),react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:"description"},t.model.name)),react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:"updated"},a),r&&react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:"hidden-controls"},react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:"hidden-remove",onClick:function(r){return e.onRemoveClick(r,t)}},react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement(svg_inline_react__WEBPACK_IMPORTED_MODULE_11___default.a,{styleName:"cross",src:__webpack_require__(77)}))))}),r&&react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:"inputs-wrapper",key:"input!"},react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:"dropdown-wrapper"},react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement(components_elements_DropdownControl_DropdownControl__WEBPACK_IMPORTED_MODULE_14__.a,{suggestionsList:n.map(function(e){return e.name}),suggest:this.onChangeModel,current:this.state.currentModel.name})),react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:"input-wrapper"},react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement(components_elements_InputControl_InputControl__WEBPACK_IMPORTED_MODULE_16__.a,{placeholder:"Create a new Content Record",value:this.state.itemTitle,icon:"plus",onIconClick:this.onAddItem,onChange:this.onItemTitleChange,onKeyDown:this.onNewKeyDown}))))))))}},{key:"__reactstandin__regenerateByEval",value:function __reactstandin__regenerateByEval(key,code){this[key]=eval(code)}}]),ContentList}(react__WEBPACK_IMPORTED_MODULE_9__.Component))||_class);!function(){var e=__webpack_require__(1).default,t=__webpack_require__(1).leaveModule;e&&(e.register(allStatuses,"allStatuses","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/components/mainArea/content/ContentList/ContentList.js"),e.register(ContentList,"ContentList","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/components/mainArea/content/ContentList/ContentList.js"),t(module))}()}).call(this,__webpack_require__(12)(module))},function(module,__webpack_exports__,__webpack_require__){"use strict";(function(module){var core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(32),core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_0__),core_js_modules_es6_array_index_of__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(45),core_js_modules_es6_array_index_of__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(core_js_modules_es6_array_index_of__WEBPACK_IMPORTED_MODULE_1__),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(2),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2__),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(3),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3__),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(5),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(4),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(6),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_6__),react__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(0),react__WEBPACK_IMPORTED_MODULE_7___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_7__),redux__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(22),react_redux__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(28),react_router__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(16),react_helmet__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(34),react_helmet__WEBPACK_IMPORTED_MODULE_11___default=__webpack_require__.n(react_helmet__WEBPACK_IMPORTED_MODULE_11__),components_mainArea_content_ContentEdit_ContentEdit__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(379),models_UserData__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(19),ducks_content__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(40),ducks_media__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(82),ducks_nav__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(7),utils_data__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__(15);!function(){var e=__webpack_require__(1).enterModule;e&&e(module)}();var ContentEditContainer=function(_Component){function ContentEditContainer(e){var t;return _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2___default()(this,ContentEditContainer),(t=_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default()(this,_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default()(ContentEditContainer).call(this,e))).item=null,t.setItem(e.params.item),t}return _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_6___default()(ContentEditContainer,_Component),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3___default()(ContentEditContainer,[{key:"componentWillReceiveProps",value:function(e){e.params.item!=this.props.params.item&&this.setItem(e.params.item)}},{key:"setItem",value:function(e){if(0==e.indexOf(ducks_nav__WEBPACK_IMPORTED_MODULE_16__.s)){var t=(e=e.slice(ducks_nav__WEBPACK_IMPORTED_MODULE_16__.s.length)).slice(0,e.indexOf("~")),r=e.slice(e.indexOf("~")+1);if(t&&r){var n=this.props.contentActions.setCurrentItem,_=this.props.content;if(this.item=_.currentItem,!this.item||t!=this.item.model.nameId||r!=this.item.origin.id){var a=Object(utils_data__WEBPACK_IMPORTED_MODULE_17__.p)(t,r);a&&(this.item=a,n(a))}}}}},{key:"render",value:function(){var e=this.props,t=e.models,r=e.content,n=this.props.contentActions,_=n.addItem,a=n.updateItem,i=n.publishItem,o=n.discardItem,s=n.archiveItem,l=n.restoreItem,u=this.props.navActions.showModal,c=this.props.mediaActions,d=c.addMediaItem,f=c.updateMediaItem,p=c.removeMediaItem,h=t.currentSite,E=this.item;if(!h||!E)return null;var m="/".concat(ducks_nav__WEBPACK_IMPORTED_MODULE_16__.A,"/").concat(ducks_nav__WEBPACK_IMPORTED_MODULE_16__.z).concat(h.nameId,"/").concat(ducks_nav__WEBPACK_IMPORTED_MODULE_16__.r),g=r.items[r.items.length-1],b=E.title?E.title:"Untitled",v="Item: ".concat(b," - Site: ").concat(h.name," - Chisel");return react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{className:"mainArea"},react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement(react_helmet__WEBPACK_IMPORTED_MODULE_11__.Helmet,null,react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("title",null,v)),react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement(components_mainArea_content_ContentEdit_ContentEdit__WEBPACK_IMPORTED_MODULE_12__.a,{item:E,onClose:function(){return react_router__WEBPACK_IMPORTED_MODULE_10__.f.push(m)},gotoItem:function(e){var t=e.model.nameId,r=e.origin.id;react_router__WEBPACK_IMPORTED_MODULE_10__.f.push("".concat(m,"/").concat(ducks_nav__WEBPACK_IMPORTED_MODULE_16__.s).concat(t,"~").concat(r))},addItem:_,updateItem:a,publishItem:i,archiveItem:s,restoreItem:l,discardItem:o,addMediaItem:d,updateMediaItem:f,removeMediaItem:p,lastItem:g,showModal:u,isEditable:t.role!=models_UserData__WEBPACK_IMPORTED_MODULE_13__.c}))}},{key:"__reactstandin__regenerateByEval",value:function __reactstandin__regenerateByEval(key,code){this[key]=eval(code)}}]),ContentEditContainer}(react__WEBPACK_IMPORTED_MODULE_7__.Component);function mapStateToProps(e){return{models:e.models,content:e.content}}function mapDispatchToProps(e){return{contentActions:Object(redux__WEBPACK_IMPORTED_MODULE_8__.b)({setCurrentItem:ducks_content__WEBPACK_IMPORTED_MODULE_14__.l,addItem:ducks_content__WEBPACK_IMPORTED_MODULE_14__.b,updateItem:ducks_content__WEBPACK_IMPORTED_MODULE_14__.m,publishItem:ducks_content__WEBPACK_IMPORTED_MODULE_14__.j,discardItem:ducks_content__WEBPACK_IMPORTED_MODULE_14__.f,archiveItem:ducks_content__WEBPACK_IMPORTED_MODULE_14__.c,restoreItem:ducks_content__WEBPACK_IMPORTED_MODULE_14__.k},e),mediaActions:Object(redux__WEBPACK_IMPORTED_MODULE_8__.b)({addMediaItem:ducks_media__WEBPACK_IMPORTED_MODULE_15__.b,updateMediaItem:ducks_media__WEBPACK_IMPORTED_MODULE_15__.f,removeMediaItem:ducks_media__WEBPACK_IMPORTED_MODULE_15__.e},e),navActions:Object(redux__WEBPACK_IMPORTED_MODULE_8__.b)({showModal:ducks_nav__WEBPACK_IMPORTED_MODULE_16__.H},e)}}var _default=Object(react_redux__WEBPACK_IMPORTED_MODULE_9__.b)(mapStateToProps,mapDispatchToProps)(ContentEditContainer);__webpack_exports__.a=_default,function(){var e=__webpack_require__(1).default,t=__webpack_require__(1).leaveModule;e&&(e.register(ContentEditContainer,"ContentEditContainer","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/containers/MainArea/Content/ContentEdit/ContentEditContainer.js"),e.register(mapStateToProps,"mapStateToProps","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/containers/MainArea/Content/ContentEdit/ContentEditContainer.js"),e.register(mapDispatchToProps,"mapDispatchToProps","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/containers/MainArea/Content/ContentEdit/ContentEditContainer.js"),e.register(_default,"default","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/containers/MainArea/Content/ContentEdit/ContentEditContainer.js"),t(module))}()}).call(this,__webpack_require__(12)(module))},function(module,__webpack_exports__,__webpack_require__){"use strict";(function(module){__webpack_require__.d(__webpack_exports__,"a",function(){return ContentEdit});var core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(32),core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_0__),_babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(143),_babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(_babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1__),core_js_modules_es7_symbol_async_iterator__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(52),core_js_modules_es7_symbol_async_iterator__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(core_js_modules_es7_symbol_async_iterator__WEBPACK_IMPORTED_MODULE_2__),core_js_modules_es6_symbol__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(53),core_js_modules_es6_symbol__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(core_js_modules_es6_symbol__WEBPACK_IMPORTED_MODULE_3__),core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(43),core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_4__),core_js_modules_es6_array_iterator__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(76),core_js_modules_es6_array_iterator__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(core_js_modules_es6_array_iterator__WEBPACK_IMPORTED_MODULE_5__),core_js_modules_es6_string_iterator__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(97),core_js_modules_es6_string_iterator__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(core_js_modules_es6_string_iterator__WEBPACK_IMPORTED_MODULE_6__),core_js_modules_es6_map__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(162),core_js_modules_es6_map__WEBPACK_IMPORTED_MODULE_7___default=__webpack_require__.n(core_js_modules_es6_map__WEBPACK_IMPORTED_MODULE_7__),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(2),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_8___default=__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_8__),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(3),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_9___default=__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_9__),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(5),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_10___default=__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_10__),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(4),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_11___default=__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_11__),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(6),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_12___default=__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_12__),react__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(0),react__WEBPACK_IMPORTED_MODULE_13___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_13__),react_css_modules__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(10),react_css_modules__WEBPACK_IMPORTED_MODULE_14___default=__webpack_require__.n(react_css_modules__WEBPACK_IMPORTED_MODULE_14__),components_elements_ButtonControl_ButtonControl__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(23),components_elements_EditableTitleControl_EditableTitleControl__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(115),components_elements_ContainerComponent_ContainerComponent__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__(56),models_ContentData__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__(31),models_ModelData__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__(8),_elements_ContentString__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__(380),_elements_ContentNumber__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__(381),_elements_ContentBoolean__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__(383),_elements_ContentDate__WEBPACK_IMPORTED_MODULE_23__=__webpack_require__(384),_elements_ContentReference__WEBPACK_IMPORTED_MODULE_24__=__webpack_require__(385),_elements_ContentMedia__WEBPACK_IMPORTED_MODULE_25__=__webpack_require__(386),_ContentEdit_sss__WEBPACK_IMPORTED_MODULE_26__=__webpack_require__(828),_ContentEdit_sss__WEBPACK_IMPORTED_MODULE_26___default=__webpack_require__.n(_ContentEdit_sss__WEBPACK_IMPORTED_MODULE_26__),_dec,_class;!function(){var e=__webpack_require__(1).enterModule;e&&e(module)}();var AUTOSAVE_TIMEOUT=2e3,ContentEdit=(_dec=react_css_modules__WEBPACK_IMPORTED_MODULE_14___default()(_ContentEdit_sss__WEBPACK_IMPORTED_MODULE_26___default.a,{allowMultiple:!0}),_dec(_class=function(_Component){function ContentEdit(e){var t;_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_8___default()(this,ContentEdit),(t=_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_10___default()(this,_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_11___default()(ContentEdit).call(this,e))).state={title:"",color:"rgba(0, 0, 0, 1)",fields:new Map,dirty:!1},t.item=null,t.fieldsArchive=new Map,t.addingItem=null,t.wait=!1,t.waitSave=!1,t.fieldElements=[],t.fieldElementRefs=[],t.onClose=function(){t.props.onClose()},t.onDiscard=function(){t.item.status!=models_ContentData__WEBPACK_IMPORTED_MODULE_18__.c&&t.item.status!=models_ContentData__WEBPACK_IMPORTED_MODULE_18__.b||(t.item.fields=new Map(t.fieldsArchive)),t.props.discardItem(t.item),t.updateItem()},t.onPublish=function(){t.validate()&&(t.props.publishItem(t.item),t.updateItem())},t.onArchive=function(){t.props.archiveItem(t.item),t.updateItem()},t.onRestore=function(){t.props.restoreItem(t.item),t.updateItem()},t.setFieldValue=function(e,r){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],_=t.state.fields;t.setState({fields:_.set(e,r),dirty:!0}),n||!t.wait?(t.saveItem(),t.wait=!0,setTimeout(function(){t.waitSave&&t.saveItem(),t.waitSave=!1,t.wait=!1},AUTOSAVE_TIMEOUT)):t.waitSave=!0},t.updateItemTitle=function(e){t.setState({title:e}),(t.item.draft?t.item.draft:t.item).title=e},t.addItem=function(e){t.addingItem=e,t.props.addItem(e)},t.onReferenceClick=function(e){t.saveItem(),t.props.gotoItem(e)},t.item=e.item;var r=t.item.draft?t.item.draft:t.item;return t.state={title:r.title,color:r.color,fields:r.fields,dirty:!1},t.fieldsArchive=new Map(t.item.fields),t}return _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_12___default()(ContentEdit,_Component),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_9___default()(ContentEdit,[{key:"componentWillUnmount",value:function(){this.state.dirty&&this.saveItem()}},{key:"componentWillReceiveProps",value:function(e){this.checkAddingItem(e.lastItem),e.item.origin.id!=this.item.origin.id&&this.updateItem(e.item)}},{key:"updateItem",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.item;this.item=e;var t=e.draft?e.draft:e;this.setState({title:t.title,color:t.color,fields:t.fields,dirty:!1}),this.waitSave=!1}},{key:"saveItem",value:function(){this.props.updateItem(this.item)}},{key:"validate",value:function(){var e=!0,t=!0,r=!1,n=void 0;try{for(var _,a=this.fieldElementRefs[Symbol.iterator]();!(t=(_=a.next()).done);t=!0){_.value.validate()||(e=!1)}}catch(e){r=!0,n=e}finally{try{t||null==a.return||a.return()}finally{if(r)throw n}}return e}},{key:"checkAddingItem",value:function(e){this.addingItem&&e==this.addingItem&&(this.props.gotoItem(this.addingItem),this.addingItem=null)}},{key:"generateElement",value:function(e,t,r){var n=this.props.isEditable;switch(this.item.status==models_ContentData__WEBPACK_IMPORTED_MODULE_18__.b&&(n=!1),e.type){case models_ModelData__WEBPACK_IMPORTED_MODULE_19__.y:case models_ModelData__WEBPACK_IMPORTED_MODULE_19__.v:return react__WEBPACK_IMPORTED_MODULE_13___default.a.createElement(_elements_ContentString__WEBPACK_IMPORTED_MODULE_20__.a,{ref:r,field:e,key:e.nameId,value:t,isEditable:n,setFieldValue:this.setFieldValue,showModal:this.props.showModal,updateItemTitle:this.updateItemTitle});case models_ModelData__WEBPACK_IMPORTED_MODULE_19__.t:case models_ModelData__WEBPACK_IMPORTED_MODULE_19__.u:return react__WEBPACK_IMPORTED_MODULE_13___default.a.createElement(_elements_ContentNumber__WEBPACK_IMPORTED_MODULE_21__.a,{ref:r,field:e,key:e.nameId,value:t,isEditable:n,setFieldValue:this.setFieldValue});case models_ModelData__WEBPACK_IMPORTED_MODULE_19__.r:return react__WEBPACK_IMPORTED_MODULE_13___default.a.createElement(_elements_ContentBoolean__WEBPACK_IMPORTED_MODULE_22__.a,{ref:r,field:e,key:e.nameId,value:t,isEditable:n,setFieldValue:this.setFieldValue});case models_ModelData__WEBPACK_IMPORTED_MODULE_19__.s:return react__WEBPACK_IMPORTED_MODULE_13___default.a.createElement(_elements_ContentDate__WEBPACK_IMPORTED_MODULE_23__.a,{ref:r,field:e,key:e.nameId,value:t,isEditable:n,setFieldValue:this.setFieldValue});case models_ModelData__WEBPACK_IMPORTED_MODULE_19__.w:return react__WEBPACK_IMPORTED_MODULE_13___default.a.createElement(_elements_ContentMedia__WEBPACK_IMPORTED_MODULE_25__.a,{ref:r,field:e,key:e.nameId,value:t,isEditable:n,setFieldValue:this.setFieldValue,site:this.item.model.site,addMediaItem:this.props.addMediaItem,updateMediaItem:this.props.updateMediaItem,removeMediaItem:this.props.removeMediaItem,showModal:this.props.showModal});case models_ModelData__WEBPACK_IMPORTED_MODULE_19__.x:return react__WEBPACK_IMPORTED_MODULE_13___default.a.createElement(_elements_ContentReference__WEBPACK_IMPORTED_MODULE_24__.a,{ref:r,field:e,key:e.nameId,value:t,item:this.item,isEditable:n,setFieldValue:this.setFieldValue,showModal:this.props.showModal,addItem:this.addItem,onReferenceClick:this.onReferenceClick})}}},{key:"generateContent",value:function(){var e=this,t=this.props.isEditable;this.fieldElements=[],this.fieldElementRefs=[];var r=!0,n=!1,_=void 0;try{for(var a,i=this.state.fields[Symbol.iterator]();!(r=(a=i.next()).done);r=!0){var o=_babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1___default()(a.value,2),s=o[0],l=o[1];if(!s.isDisabled){var u=this.generateElement(s,l,function(t){t&&e.fieldElementRefs.push(t)});this.fieldElements.push(u)}}}catch(e){n=!0,_=e}finally{try{r||null==i.return||i.return()}finally{if(n)throw _}}return react__WEBPACK_IMPORTED_MODULE_13___default.a.createElement("div",{styleName:"content"},react__WEBPACK_IMPORTED_MODULE_13___default.a.createElement("div",{styleName:"field-title status"},"Status:",react__WEBPACK_IMPORTED_MODULE_13___default.a.createElement("span",{styleName:this.item.status}," ",this.item.status)),this.fieldElements,t&&react__WEBPACK_IMPORTED_MODULE_13___default.a.createElement("div",{styleName:"buttons-wrapper"},react__WEBPACK_IMPORTED_MODULE_13___default.a.createElement("div",{styleName:"button-publish"},react__WEBPACK_IMPORTED_MODULE_13___default.a.createElement(components_elements_ButtonControl_ButtonControl__WEBPACK_IMPORTED_MODULE_15__.a,{color:"green",value:"Publish",disabled:this.item.status==models_ContentData__WEBPACK_IMPORTED_MODULE_18__.d||this.item.status==models_ContentData__WEBPACK_IMPORTED_MODULE_18__.b,onClick:this.onPublish})),react__WEBPACK_IMPORTED_MODULE_13___default.a.createElement("div",{styleName:"button-publish"},react__WEBPACK_IMPORTED_MODULE_13___default.a.createElement(components_elements_ButtonControl_ButtonControl__WEBPACK_IMPORTED_MODULE_15__.a,{color:"gray",value:"Discard changes",disabled:this.item.status!=models_ContentData__WEBPACK_IMPORTED_MODULE_18__.e&&!this.state.dirty,onClick:this.onDiscard})),this.item.status==models_ContentData__WEBPACK_IMPORTED_MODULE_18__.b?react__WEBPACK_IMPORTED_MODULE_13___default.a.createElement("div",{styleName:"button-publish"},react__WEBPACK_IMPORTED_MODULE_13___default.a.createElement(components_elements_ButtonControl_ButtonControl__WEBPACK_IMPORTED_MODULE_15__.a,{color:"gray",value:"Restore from archive",onClick:this.onRestore})):react__WEBPACK_IMPORTED_MODULE_13___default.a.createElement("div",{styleName:"button-publish"},react__WEBPACK_IMPORTED_MODULE_13___default.a.createElement(components_elements_ButtonControl_ButtonControl__WEBPACK_IMPORTED_MODULE_15__.a,{color:"gray",value:"Archive",onClick:this.onArchive}))))}},{key:"render",value:function(){var e=this.props.isEditable,t=this.generateContent(),r=react__WEBPACK_IMPORTED_MODULE_13___default.a.createElement("div",null,react__WEBPACK_IMPORTED_MODULE_13___default.a.createElement(components_elements_EditableTitleControl_EditableTitleControl__WEBPACK_IMPORTED_MODULE_16__.a,{text:this.state.title,placeholder:"Item title",update:e?this.updateItemTitle:null,disabled:!this.item.model.hasTitle()}),react__WEBPACK_IMPORTED_MODULE_13___default.a.createElement(components_elements_EditableTitleControl_EditableTitleControl__WEBPACK_IMPORTED_MODULE_16__.a,{text:this.item.model.name,isSmall:!0}));return react__WEBPACK_IMPORTED_MODULE_13___default.a.createElement(components_elements_ContainerComponent_ContainerComponent__WEBPACK_IMPORTED_MODULE_17__.a,{hasTitle2:!0,titles:r,onClickBack:this.onClose},t)}},{key:"__reactstandin__regenerateByEval",value:function __reactstandin__regenerateByEval(key,code){this[key]=eval(code)}}]),ContentEdit}(react__WEBPACK_IMPORTED_MODULE_13__.Component))||_class);!function(){var e=__webpack_require__(1).default,t=__webpack_require__(1).leaveModule;e&&(e.register(AUTOSAVE_TIMEOUT,"AUTOSAVE_TIMEOUT","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/components/mainArea/content/ContentEdit/ContentEdit.js"),e.register(ContentEdit,"ContentEdit","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/components/mainArea/content/ContentEdit/ContentEdit.js"),t(module))}()}).call(this,__webpack_require__(12)(module))},function(module,__webpack_exports__,__webpack_require__){"use strict";(function(module){__webpack_require__.d(__webpack_exports__,"a",function(){return ContentString});var core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(32),core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_0__),core_js_modules_es7_symbol_async_iterator__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(52),core_js_modules_es7_symbol_async_iterator__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(core_js_modules_es7_symbol_async_iterator__WEBPACK_IMPORTED_MODULE_1__),core_js_modules_es6_symbol__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(53),core_js_modules_es6_symbol__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(core_js_modules_es6_symbol__WEBPACK_IMPORTED_MODULE_2__),core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(43),core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_3__),core_js_modules_es6_regexp_match__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(742),core_js_modules_es6_regexp_match__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(core_js_modules_es6_regexp_match__WEBPACK_IMPORTED_MODULE_4__),core_js_modules_es6_regexp_flags__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(199),core_js_modules_es6_regexp_flags__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(core_js_modules_es6_regexp_flags__WEBPACK_IMPORTED_MODULE_5__),core_js_modules_es6_regexp_constructor__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(298),core_js_modules_es6_regexp_constructor__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(core_js_modules_es6_regexp_constructor__WEBPACK_IMPORTED_MODULE_6__),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(2),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_7___default=__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_7__),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(3),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_8___default=__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_8__),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(5),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_9___default=__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_9__),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(4),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_10___default=__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_10__),_babel_runtime_helpers_get__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(69),_babel_runtime_helpers_get__WEBPACK_IMPORTED_MODULE_11___default=__webpack_require__.n(_babel_runtime_helpers_get__WEBPACK_IMPORTED_MODULE_11__),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(6),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_12___default=__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_12__),react__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(0),react__WEBPACK_IMPORTED_MODULE_13___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_13__),react_css_modules__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(10),react_css_modules__WEBPACK_IMPORTED_MODULE_14___default=__webpack_require__.n(react_css_modules__WEBPACK_IMPORTED_MODULE_14__),svg_inline_react__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(18),svg_inline_react__WEBPACK_IMPORTED_MODULE_15___default=__webpack_require__.n(svg_inline_react__WEBPACK_IMPORTED_MODULE_15__),medium_editor_dist_css_medium_editor_css__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(778),medium_editor_dist_css_medium_editor_css__WEBPACK_IMPORTED_MODULE_16___default=__webpack_require__.n(medium_editor_dist_css_medium_editor_css__WEBPACK_IMPORTED_MODULE_16__),medium_editor_dist_css_themes_default_css__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__(780),medium_editor_dist_css_themes_default_css__WEBPACK_IMPORTED_MODULE_17___default=__webpack_require__.n(medium_editor_dist_css_themes_default_css__WEBPACK_IMPORTED_MODULE_17__),react_medium_editor__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__(174),react_medium_editor__WEBPACK_IMPORTED_MODULE_18___default=__webpack_require__.n(react_medium_editor__WEBPACK_IMPORTED_MODULE_18__),_ContentBase__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__(66),components_elements_InputControl_InputControl__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__(17),components_elements_MarkdownEditor_MarkdownEditor__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__(141),ducks_nav__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__(7),utils_common__WEBPACK_IMPORTED_MODULE_23__=__webpack_require__(20),models_ModelData__WEBPACK_IMPORTED_MODULE_24__=__webpack_require__(8),_ContentEdit_sss__WEBPACK_IMPORTED_MODULE_25__=__webpack_require__(828),_ContentEdit_sss__WEBPACK_IMPORTED_MODULE_25___default=__webpack_require__.n(_ContentEdit_sss__WEBPACK_IMPORTED_MODULE_25__),_dec,_class;!function(){var e=__webpack_require__(1).enterModule;e&&e(module)}();var ContentString=(_dec=react_css_modules__WEBPACK_IMPORTED_MODULE_14___default()(_ContentEdit_sss__WEBPACK_IMPORTED_MODULE_25___default.a,{allowMultiple:!0}),_dec(_class=function(_ContentBase){function ContentString(e){var t;return _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_7___default()(this,ContentString),(t=_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_9___default()(this,_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_10___default()(ContentString).call(this,e))).onChange=function(e,r){var n=e.target.value;if(t.field.isList){var _=t.state.value.slice();_[r]=n,t.setValue(_)}else t.setValue(n),t.field.isTitle&&t.props.updateItemTitle(n)},t.onChangeWysiwyg=function(e){t.setValue(e)},t.onChangeMarkdown=function(e){t.setValue(e)},t.onKeyDown=function(e,r,n){if(e.stopPropagation(),t.field.isList){var _=e.keyCode;13==_||40==_?n[r+1]&&n[r+1].focus():38==_&&r&&n[--r].focus()}},t.onShowWysiwygModal=function(){t.props.showModal(ducks_nav__WEBPACK_IMPORTED_MODULE_22__.g,{text:t.state.value,callback:function(e){return t.setValue(e,!0)}})},t.onShowMarkdownModal=function(){t.props.showModal(ducks_nav__WEBPACK_IMPORTED_MODULE_22__.c,{text:t.state.value,callback:function(e){return t.setValue(e,!0)}})},t.onPlus=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,r=t.state.value?t.state.value:[],n=r.slice(0,e+1),_=r.slice(e+1);r=n.concat("",_),t.setValue(r)},t.onMinus=function(e){var r=t.state.value.slice();r.splice(e,1),t.setValue(r)},!t.state.value&&t.field.isList&&(t.state.value=[]),t}return _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_12___default()(ContentString,_ContentBase),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_8___default()(ContentString,[{key:"getError",value:function(){var e=this,t=_babel_runtime_helpers_get__WEBPACK_IMPORTED_MODULE_11___default()(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_10___default()(ContentString.prototype),"getError",this).call(this);if(t)return t;var r=function(t){return e.field.validations?e.field.validations.range&&e.field.validations.range.active&&(r=function(t){var r=e.field.validations.range;if(r.minActive&&t.lengthr.max){var n=r.errorMsg;return n||(n="The length is out of permissible range!"),n}}(t))?r:e.field.validations.pattern&&e.field.validations.pattern.active&&(r=function(t){var r=e.field.validations.pattern,n=new RegExp("^"+r.pattern+"$",r.flags);if(!t.match(n)){var _=r.errorMsg;return _||(_="The string is not match the pattern!"),_}}(t))?r:void 0:null;var r},n=this.state.value;switch(this.field.type){case models_ModelData__WEBPACK_IMPORTED_MODULE_24__.y:switch(this.field.appearance){case models_ModelData__WEBPACK_IMPORTED_MODULE_24__.m:if(!this.field.validations)break;if(this.field.isList){var _=!0,a=!1,i=void 0;try{for(var o,s=n[Symbol.iterator]();!(_=(o=s.next()).done);_=!0){var l=r(o.value);if(l)return l}}catch(e){a=!0,i=e}finally{try{_||null==s.return||s.return()}finally{if(a)throw i}}}else{var u=r(n);if(u)return u}break;case models_ModelData__WEBPACK_IMPORTED_MODULE_24__.n:if(!n)break;if(Object(utils_common__WEBPACK_IMPORTED_MODULE_23__.e)(n,"-")!==n)return"Slug must not contain special symbols and capital letters!";var c=r(n);if(c)return c;break;case models_ModelData__WEBPACK_IMPORTED_MODULE_24__.o:if(!n)break;if(!Object(utils_common__WEBPACK_IMPORTED_MODULE_23__.c)(n))return"You must type a valid URL!"}break;case models_ModelData__WEBPACK_IMPORTED_MODULE_24__.v:switch(this.field.appearance){case models_ModelData__WEBPACK_IMPORTED_MODULE_24__.k:case models_ModelData__WEBPACK_IMPORTED_MODULE_24__.j:var d=r(n);if(d)return d}}return null}},{key:"getTitle",value:function(){switch(this.field.appearance){case models_ModelData__WEBPACK_IMPORTED_MODULE_24__.l:return react__WEBPACK_IMPORTED_MODULE_13___default.a.createElement("div",{styleName:"field-title"},this.field.name,react__WEBPACK_IMPORTED_MODULE_13___default.a.createElement("div",{styleName:"link",onClick:this.onShowWysiwygModal},react__WEBPACK_IMPORTED_MODULE_13___default.a.createElement(svg_inline_react__WEBPACK_IMPORTED_MODULE_15___default.a,{styleName:"link-icon",src:__webpack_require__(160)})));case models_ModelData__WEBPACK_IMPORTED_MODULE_24__.i:return react__WEBPACK_IMPORTED_MODULE_13___default.a.createElement("div",{styleName:"field-title"},this.field.name,react__WEBPACK_IMPORTED_MODULE_13___default.a.createElement("div",{styleName:"link",onClick:this.onShowMarkdownModal},react__WEBPACK_IMPORTED_MODULE_13___default.a.createElement(svg_inline_react__WEBPACK_IMPORTED_MODULE_15___default.a,{styleName:"link-icon",src:__webpack_require__(160)})));default:return react__WEBPACK_IMPORTED_MODULE_13___default.a.createElement("div",{styleName:"field-title"},this.field.name)}}},{key:"getInput",value:function(){var e=this,t=this.state.value;switch(this.field.type){case models_ModelData__WEBPACK_IMPORTED_MODULE_24__.y:switch(this.field.appearance){case models_ModelData__WEBPACK_IMPORTED_MODULE_24__.m:var r;return this.field.isList?t&&t.length?function(){r=[];for(var n=[],_=function(_){r.push(react__WEBPACK_IMPORTED_MODULE_13___default.a.createElement("div",{styleName:"list-item",key:_},react__WEBPACK_IMPORTED_MODULE_13___default.a.createElement(components_elements_InputControl_InputControl__WEBPACK_IMPORTED_MODULE_20__.a,{type:"big",value:t[_],readOnly:!e.state.isEditable,DOMRef:function(e){return n[_]=e},onChange:function(t){return e.onChange(t,_)},onKeyDown:function(t){return e.onKeyDown(t,_,n)}}),react__WEBPACK_IMPORTED_MODULE_13___default.a.createElement("div",{styleName:"list-item-plus",onClick:function(){return e.onPlus(_)}},"+"),react__WEBPACK_IMPORTED_MODULE_13___default.a.createElement("div",{styleName:"list-item-minus",onClick:function(){return e.onMinus(_)}},"–")))},a=0;a0&&void 0!==arguments[0]?arguments[0]:0,r=t.state.value?t.state.value:[],n=r.slice(0,e+1),_=r.slice(e+1);r=n.concat(0,_),t.setValue(r)},t.onMinus=function(e){var r=t.state.value.slice();r.splice(e,1),t.setValue(r)},t.onChangeRating=function(e){e*=2,t.setValue(e)},!t.state.value&&t.field.isList&&(t.state.value=[]),t}return _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_8___default()(ContentNumber,_ContentBase),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_4___default()(ContentNumber,[{key:"getError",value:function(){var e=this,t=_babel_runtime_helpers_get__WEBPACK_IMPORTED_MODULE_7___default()(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_6___default()(ContentNumber.prototype),"getError",this).call(this);if(t)return t;var r=this.state.value,n=function(){if(!e.field.validations)return null;if(!e.field.validations.range||!e.field.validations.range.active)return null;var t=e.field.validations.range,n=function(e){if(t.minActive&&et.max){var r=t.errorMsg;return r||(r="The value is out of permissible range!"),r}};if(!e.field.isList)return r||(r=0),n(r);var _=!0,a=!1,i=void 0;try{for(var o,s=r[Symbol.iterator]();!(_=(o=s.next()).done);_=!0){var l=n(o.value);if(l)return l}}catch(e){a=!0,i=e}finally{try{_||null==s.return||s.return()}finally{if(a)throw i}}};switch(this.field.type){case models_ModelData__WEBPACK_IMPORTED_MODULE_14__.t:switch(this.field.appearance){case models_ModelData__WEBPACK_IMPORTED_MODULE_14__.f:var _=n();if(_)return _}break;case models_ModelData__WEBPACK_IMPORTED_MODULE_14__.u:switch(this.field.appearance){case models_ModelData__WEBPACK_IMPORTED_MODULE_14__.g:var a=n();if(a)return a;break;case models_ModelData__WEBPACK_IMPORTED_MODULE_14__.h:}}return null}},{key:"getInput",value:function(){var e=this,t=this.state.value;switch(this.field.type){case models_ModelData__WEBPACK_IMPORTED_MODULE_14__.t:case models_ModelData__WEBPACK_IMPORTED_MODULE_14__.u:switch(this.field.appearance){case models_ModelData__WEBPACK_IMPORTED_MODULE_14__.g:case models_ModelData__WEBPACK_IMPORTED_MODULE_14__.f:var r;return this.field.isList?t&&t.length?function(){r=[];for(var n=[],_=function(_){r.push(react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:"list-item",key:_},react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement(components_elements_InputNumberControl_InputNumberControl__WEBPACK_IMPORTED_MODULE_13__.a,{styleName:"list-item-input",type:"big",isInt:e.field.type==models_ModelData__WEBPACK_IMPORTED_MODULE_14__.u,value:t[_],readOnly:!e.state.isEditable,onChange:function(t){return e.onChange(t,_)},DOMRef:function(e){return n[_]=e},onKeyDown:function(t){return e.onKeyDown(t,_,n)}}),react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:"list-item-plus",onClick:function(){return e.onPlus(_)}},"+"),react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:"list-item-minus",onClick:function(){return e.onMinus(_)}},"–")))},a=0;at/2}},{key:"mouseLeave",value:function(){var e=this.state,t=e.value,r=e.halfStar,n=e.config;n.edit&&(n.half&&(r.hidden=!this.isDecimal(t),r.at=Math.floor(this.state.value)),this.setState({stars:this.getStars()}))}},{key:"clicked",value:function(e){var t=this.state,r=t.config,n=t.halfStar;if(r.edit){var _=Number(e.target.getAttribute("data-index")),a=void 0;if(r.half){var i=this.moreThanHalf(e,r.size);n.hidden=i,i&&(_+=1),a=i?_:_+.5,n.at=_}else a=_+=1;this.setState({value:a,stars:this.getStars(_)}),this.props.onChange(a)}}},{key:"renderHalfStarStyleElement",value:function(){var e=this.state,t=e.config,r=e.uniqueness;return i.default.createElement("style",{dangerouslySetInnerHTML:{__html:function(e,t){return"\n .react-stars-"+t+":before {\n position: absolute;\n overflow: hidden;\n display: block;\n z-index: 1;\n top: 0; left: 0;\n width: 50%;\n content: attr(data-forhalf);\n color: "+e+";\n }"}(t.color2,r)}})}},{key:"renderStars",value:function(){var e=this,t=this.state,r=t.halfStar,_=t.stars,a=t.uniqueness,o=t.config,s=o.color1,l=o.color2,c=o.size,d=o.char,f=o.half,p=o.edit;return _.map(function(t,_){var o="";f&&!r.hidden&&r.at===_&&(o="react-stars-"+a);var h=n({},u,{color:t.active?l:s,cursor:p?"pointer":"default",fontSize:c+"px"});return i.default.createElement("span",{className:o,style:h,key:_,"data-index":_,"data-forhalf":d,onMouseOver:e.mouseOver.bind(e),onMouseMove:e.mouseOver.bind(e),onMouseLeave:e.mouseLeave.bind(e),onClick:e.clicked.bind(e)},d)})}},{key:"render",value:function(){var e=this.props.className;return i.default.createElement("div",{className:e,style:l},this.state.config.half?this.renderHalfStarStyleElement():"",this.renderStars())}}]),t}();c.propTypes={className:o.default.string,edit:o.default.bool,half:o.default.bool,value:o.default.number,count:o.default.number,char:o.default.string,size:o.default.number,color1:o.default.string,color2:o.default.string},c.defaultProps={edit:!0,half:!0,value:0,count:5,char:"★",size:15,color1:"gray",color2:"#ffd700",onChange:function(){}},t.default=c},function(module,__webpack_exports__,__webpack_require__){"use strict";(function(module){__webpack_require__.d(__webpack_exports__,"a",function(){return ContentBoolean});var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(2),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(3),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(5),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(4),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(6),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__),react__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(0),react__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_5__),react_css_modules__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(10),react_css_modules__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(react_css_modules__WEBPACK_IMPORTED_MODULE_6__),lodash_core__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(101),lodash_core__WEBPACK_IMPORTED_MODULE_7___default=__webpack_require__.n(lodash_core__WEBPACK_IMPORTED_MODULE_7__),_ContentBase__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(66),components_elements_SwitchControl_SwitchControl__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(114),models_ModelData__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(8),_ContentEdit_sss__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(828),_ContentEdit_sss__WEBPACK_IMPORTED_MODULE_11___default=__webpack_require__.n(_ContentEdit_sss__WEBPACK_IMPORTED_MODULE_11__),_dec,_class;!function(){var e=__webpack_require__(1).enterModule;e&&e(module)}();var ContentBoolean=(_dec=react_css_modules__WEBPACK_IMPORTED_MODULE_6___default()(_ContentEdit_sss__WEBPACK_IMPORTED_MODULE_11___default.a,{allowMultiple:!0}),_dec(_class=function(_ContentBase){function ContentBoolean(){var e,t;_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this,ContentBoolean);for(var r=arguments.length,n=new Array(r),_=0;_this.maxTime)return this.validations.errorMsg?this.validations.errorMsg:"The time is out of range!";break;default:if(this.validations.minActive&&tthis.maxDateFull)return this.validations.errorMsg?this.validations.errorMsg:"The date/time is out of range!"}}},{key:"getInput",value:function(){var e=this.state.value,t="input-wrapper data-time-wrapper";switch(this.state.isEditable||(t+=" data-time-disabled"),this.field.appearance){case models_ModelData__WEBPACK_IMPORTED_MODULE_11__.c:return react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:t},react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"date"},react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement(react_flatpickr__WEBPACK_IMPORTED_MODULE_9___default.a,{value:e,options:{clickOpens:this.state.isEditable,altInput:!0,minDate:this.minDate,maxDate:this.maxDate},onChange:this.onChangeDate})),react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"time"},react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement(react_flatpickr__WEBPACK_IMPORTED_MODULE_9___default.a,{value:e,options:{clickOpens:this.state.isEditable,altInput:!0,noCalendar:!0,enableTime:!0,altFormat:"h:i K",minDate:this.minDateFull,maxDate:this.maxDateFull},onChange:this.onChangeTime})));case models_ModelData__WEBPACK_IMPORTED_MODULE_11__.d:return react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:t},react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"date"},react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement(react_flatpickr__WEBPACK_IMPORTED_MODULE_9___default.a,{value:e,options:{clickOpens:this.state.isEditable,altInput:!0,minDate:this.minDate,maxDate:this.maxDate},onChange:this.onChangeDate})));case models_ModelData__WEBPACK_IMPORTED_MODULE_11__.e:return react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:t},react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"time",onClick:this.onClickTime},react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement(react_flatpickr__WEBPACK_IMPORTED_MODULE_9___default.a,{value:e,options:{clickOpens:this.state.isEditable,altInput:!0,noCalendar:!0,enableTime:!0,altFormat:"h:i K",minDate:this.minTime,maxDate:this.maxTime},onChange:this.onChangeTime})))}}},{key:"__reactstandin__regenerateByEval",value:function __reactstandin__regenerateByEval(key,code){this[key]=eval(code)}}]),ContentDate}(_ContentBase__WEBPACK_IMPORTED_MODULE_10__.a))||_class);!function(){var e=__webpack_require__(1).default,t=__webpack_require__(1).leaveModule;e&&(e.register(ContentDate,"ContentDate","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/components/mainArea/content/ContentEdit/elements/ContentDate.js"),t(module))}()}).call(this,__webpack_require__(12)(module))},function(module,__webpack_exports__,__webpack_require__){"use strict";(function(module){__webpack_require__.d(__webpack_exports__,"a",function(){return ContentReference});var core_js_modules_es6_array_map__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(58),core_js_modules_es6_array_map__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(core_js_modules_es6_array_map__WEBPACK_IMPORTED_MODULE_0__),core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(32),core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_1__),core_js_modules_es7_symbol_async_iterator__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(52),core_js_modules_es7_symbol_async_iterator__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(core_js_modules_es7_symbol_async_iterator__WEBPACK_IMPORTED_MODULE_2__),core_js_modules_es6_symbol__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(53),core_js_modules_es6_symbol__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(core_js_modules_es6_symbol__WEBPACK_IMPORTED_MODULE_3__),core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(43),core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_4__),core_js_modules_es6_array_index_of__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(45),core_js_modules_es6_array_index_of__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(core_js_modules_es6_array_index_of__WEBPACK_IMPORTED_MODULE_5__),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(2),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_6__),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(3),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_7___default=__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_7__),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(5),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_8___default=__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_8__),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(4),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_9___default=__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_9__),_babel_runtime_helpers_get__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(69),_babel_runtime_helpers_get__WEBPACK_IMPORTED_MODULE_10___default=__webpack_require__.n(_babel_runtime_helpers_get__WEBPACK_IMPORTED_MODULE_10__),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(6),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_11___default=__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_11__),react__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(0),react__WEBPACK_IMPORTED_MODULE_12___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_12__),react_css_modules__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(10),react_css_modules__WEBPACK_IMPORTED_MODULE_13___default=__webpack_require__.n(react_css_modules__WEBPACK_IMPORTED_MODULE_13__),svg_inline_react__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(18),svg_inline_react__WEBPACK_IMPORTED_MODULE_14___default=__webpack_require__.n(svg_inline_react__WEBPACK_IMPORTED_MODULE_14__),_ContentBase__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(66),ducks_nav__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(7),utils_data__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__(15),models_ContentData__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__(31),_ContentEdit_sss__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__(828),_ContentEdit_sss__WEBPACK_IMPORTED_MODULE_19___default=__webpack_require__.n(_ContentEdit_sss__WEBPACK_IMPORTED_MODULE_19__),_dec,_class;!function(){var e=__webpack_require__(1).enterModule;e&&e(module)}();var ContentReference=(_dec=react_css_modules__WEBPACK_IMPORTED_MODULE_13___default()(_ContentEdit_sss__WEBPACK_IMPORTED_MODULE_19___default.a,{allowMultiple:!0}),_dec(_class=function(_ContentBase){function ContentReference(e){var t;if(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_6___default()(this,ContentReference),(t=_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_8___default()(this,_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_9___default()(ContentReference).call(this,e))).item=null,t.addingItem=null,t.validModels=null,t.onReferenceNew=function(){if(t.state.isEditable){t.props.showModal(ducks_nav__WEBPACK_IMPORTED_MODULE_16__.e,{callback:function(e){t.addingItem=new models_ContentData__WEBPACK_IMPORTED_MODULE_18__.a,t.addingItem.model=e,t.props.addItem(t.addingItem);var r=t.state.value;r||(r=[]),t.setValue(r.concat(t.addingItem),!0)},validModels:t.validModels})}},t.onReferencesChoose=function(){if(t.state.isEditable){var e=t.state.value;e||(e=[]),t.props.showModal(ducks_nav__WEBPACK_IMPORTED_MODULE_16__.f,{currentItem:t.item,isMult:t.field.isList,existingItems:e,validModels:t.validModels,callback:function(r){return t.setValue(e.concat(r),!0)}})}},t.onReferenceClear=function(e,r){if(e.stopPropagation(),t.state.isEditable){var n=t.state.value;r?n.splice(n.indexOf(r),1):n.splice(0,n.length),t.setValue(n,!0)}},t.item=t.props.item,t.field.validations&&t.field.validations.models&&t.field.validations.models.active){var r=t.field.validations.models.modelsList;r&&r.length&&(t.validModels=r)}return t}return _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_11___default()(ContentReference,_ContentBase),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_7___default()(ContentReference,[{key:"componentWillReceiveProps",value:function(e){this.item=e.item,_babel_runtime_helpers_get__WEBPACK_IMPORTED_MODULE_10___default()(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_9___default()(ContentReference.prototype),"componentWillReceiveProps",this).call(this,e)}},{key:"getError",value:function(){var e=_babel_runtime_helpers_get__WEBPACK_IMPORTED_MODULE_10___default()(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_9___default()(ContentReference.prototype),"getError",this).call(this);if(e)return e;var t=this.state.value;if(t&&t.length){var r=!0,n=!1,_=void 0;try{for(var a,i=t[Symbol.iterator]();!(r=(a=i.next()).done);r=!0){var o=a.value;if(!Object(utils_data__WEBPACK_IMPORTED_MODULE_17__.i)(o))return"The referred content item is not exists!";var s=o.model.nameId;if(this.validModels&&-1==this.validModels.indexOf(s))return this.field.validations.models.errorMsg?this.field.validations.models.errorMsg:"The referred content item has an illegal model!"}}catch(e){n=!0,_=e}finally{try{r||null==i.return||i.return()}finally{if(n)throw _}}}}},{key:"getInput",value:function(){var e=this,t=this.state.value,r=function(t){var r=Object(utils_data__WEBPACK_IMPORTED_MODULE_17__.i)(t);e.addingItem==t&&(r=!0);var n=t.origin&&t.origin.id?t.origin.id:Math.random();if(r){var _=t.title?t.title:"Untitled",a=t.title?"":"untitled";return react__WEBPACK_IMPORTED_MODULE_12___default.a.createElement("div",{styleName:"reference-item",key:n,onClick:function(){return e.props.onReferenceClick(t)}},react__WEBPACK_IMPORTED_MODULE_12___default.a.createElement("span",{styleName:"reference-title"},"[",t.model.name,"]",react__WEBPACK_IMPORTED_MODULE_12___default.a.createElement("span",{styleName:a}," ",_)),react__WEBPACK_IMPORTED_MODULE_12___default.a.createElement(svg_inline_react__WEBPACK_IMPORTED_MODULE_14___default.a,{styleName:"reference-cross",src:__webpack_require__(77),onClick:function(r){return e.onReferenceClear(r,t)}}))}return react__WEBPACK_IMPORTED_MODULE_12___default.a.createElement("div",{styleName:"reference-item",key:n,onClick:function(r){return e.onReferenceClear(r,t)}},react__WEBPACK_IMPORTED_MODULE_12___default.a.createElement("input",{type:"text",value:"Error: item was deleted. Click to reset.",readOnly:!0}))},n="reference-button";this.state.isEditable||(n+=" reference-button-disabled");var _=react__WEBPACK_IMPORTED_MODULE_12___default.a.createElement("div",{styleName:"reference-buttons"},react__WEBPACK_IMPORTED_MODULE_12___default.a.createElement("div",{styleName:n+" reference-new",onClick:this.onReferenceNew},"Create new entry"),react__WEBPACK_IMPORTED_MODULE_12___default.a.createElement("div",{styleName:n+" reference-insert",onClick:this.onReferencesChoose},"Insert Existing Entry")),a=_;return this.field.isList?t&&t.length&&(a=react__WEBPACK_IMPORTED_MODULE_12___default.a.createElement("div",null,t.map(r),_)):t&&t.length&&(a=r(t[0])),react__WEBPACK_IMPORTED_MODULE_12___default.a.createElement("div",{styleName:"reference"},a)}},{key:"__reactstandin__regenerateByEval",value:function __reactstandin__regenerateByEval(key,code){this[key]=eval(code)}}]),ContentReference}(_ContentBase__WEBPACK_IMPORTED_MODULE_15__.a))||_class);!function(){var e=__webpack_require__(1).default,t=__webpack_require__(1).leaveModule;e&&(e.register(ContentReference,"ContentReference","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/components/mainArea/content/ContentEdit/elements/ContentReference.js"),t(module))}()}).call(this,__webpack_require__(12)(module))},function(module,__webpack_exports__,__webpack_require__){"use strict";(function(module){__webpack_require__.d(__webpack_exports__,"a",function(){return ContentMedia});var core_js_modules_es6_array_map__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(58),core_js_modules_es6_array_map__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(core_js_modules_es6_array_map__WEBPACK_IMPORTED_MODULE_0__),core_js_modules_es6_array_index_of__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(45),core_js_modules_es6_array_index_of__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(core_js_modules_es6_array_index_of__WEBPACK_IMPORTED_MODULE_1__),core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(32),core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_2__),core_js_modules_es7_symbol_async_iterator__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(52),core_js_modules_es7_symbol_async_iterator__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(core_js_modules_es7_symbol_async_iterator__WEBPACK_IMPORTED_MODULE_3__),core_js_modules_es6_symbol__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(53),core_js_modules_es6_symbol__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(core_js_modules_es6_symbol__WEBPACK_IMPORTED_MODULE_4__),core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(43),core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_5__),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(2),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_6__),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(3),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_7___default=__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_7__),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(5),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_8___default=__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_8__),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(4),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_9___default=__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_9__),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(6),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_10___default=__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_10__),react__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(0),react__WEBPACK_IMPORTED_MODULE_11___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_11__),react_css_modules__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(10),react_css_modules__WEBPACK_IMPORTED_MODULE_12___default=__webpack_require__.n(react_css_modules__WEBPACK_IMPORTED_MODULE_12__),svg_inline_react__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(18),svg_inline_react__WEBPACK_IMPORTED_MODULE_13___default=__webpack_require__.n(svg_inline_react__WEBPACK_IMPORTED_MODULE_13__),parse__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(14),parse__WEBPACK_IMPORTED_MODULE_14___default=__webpack_require__.n(parse__WEBPACK_IMPORTED_MODULE_14__),_ContentBase__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(66),models_MediaItemData__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(144),ConnectConstants__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__(142),ducks_nav__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__(7),utils_common__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__(20),components_elements_MediaView_MediaView__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__(173),_ContentEdit_sss__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__(828),_ContentEdit_sss__WEBPACK_IMPORTED_MODULE_21___default=__webpack_require__.n(_ContentEdit_sss__WEBPACK_IMPORTED_MODULE_21__),_dec,_class;!function(){var e=__webpack_require__(1).enterModule;e&&e(module)}();var AUTOSAVE_TIMEOUT=2e3,ContentMedia=(_dec=react_css_modules__WEBPACK_IMPORTED_MODULE_12___default()(_ContentEdit_sss__WEBPACK_IMPORTED_MODULE_21___default.a,{allowMultiple:!0}),_dec(_class=function(_ContentBase){function ContentMedia(e){var t;return _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_6___default()(this,ContentMedia),(t=_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_8___default()(this,_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_9___default()(ContentMedia).call(this,e))).site=null,t.mediaTimeouts=[],t.onMediaChoose=function(){t.state.isEditable&&t.props.showModal(ducks_nav__WEBPACK_IMPORTED_MODULE_18__.d,{isMult:t.field.isList,callback:function(e){var r=[],n=!0,_=!1,a=void 0;try{for(var i,o=e[Symbol.iterator]();!(n=(i=o.next()).done);n=!0){var s=i.value.clone();t.props.addMediaItem(s),r.push(s)}}catch(e){_=!0,a=e}finally{try{n||null==o.return||o.return()}finally{if(_)throw a}}if(t.field.isList){var l=t.state.value;l||(l=[]),t.setValue(l.concat(r),!0)}else t.setValue(r[0],!0)}})},t.onMediaNew=function(e){var r=e.target.files[0];if(r)if(r.size>ConnectConstants__WEBPACK_IMPORTED_MODULE_17__.a){t.setState({error:"Your file's size exceeds a limit of 10 MB."})}else{var n=new parse__WEBPACK_IMPORTED_MODULE_14__.Parse.File(Object(utils_common__WEBPACK_IMPORTED_MODULE_19__.d)(r.name),r,r.type);n.save().then(function(){var e=t.props.addMediaItem,_=new models_MediaItemData__WEBPACK_IMPORTED_MODULE_16__.a;if(_.file=n,_.name=Object(utils_common__WEBPACK_IMPORTED_MODULE_19__.j)(r.name),_.type=r.type,_.site=t.site,e(_),(_=_.clone()).assigned=!0,e(_),t.field.isList){var a=t.state.value;a||(a=[]),t.setValue(a.concat(_),!0)}else t.setValue(_,!0)})}},t.site=e.site,t}return _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_10___default()(ContentMedia,_ContentBase),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_7___default()(ContentMedia,[{key:"onMediaClear",value:function(e){if(this.props.removeMediaItem(e),this.field.isList){var t=this.state.value;t.splice(t.indexOf(e),1),this.setValue(t,!0)}else this.setValue(null,!0)}},{key:"onMediaNameChange",value:function(e,t){var r=this,n=e.target.value;t.name=n,this.mediaTimeouts[t.key]||(this.mediaTimeouts[t.key]=setTimeout(function(){r.props.updateMediaItem(t),r.mediaTimeouts[t.key]=0},AUTOSAVE_TIMEOUT)),this.setValue(this.state.value)}},{key:"getInput",value:function(){var e=this,t=this.state.value,r=function(t){return react__WEBPACK_IMPORTED_MODULE_11___default.a.createElement("div",{styleName:"media-item",key:t.key},react__WEBPACK_IMPORTED_MODULE_11___default.a.createElement("div",{styleName:"media-header"},react__WEBPACK_IMPORTED_MODULE_11___default.a.createElement("input",{type:"text",placeholder:"File name",readOnly:!e.state.isEditable,onChange:function(r){return e.onMediaNameChange(r,t)},value:t.name}),e.state.isEditable&&react__WEBPACK_IMPORTED_MODULE_11___default.a.createElement(svg_inline_react__WEBPACK_IMPORTED_MODULE_13___default.a,{styleName:"media-cross",src:__webpack_require__(77),onClick:function(){return e.onMediaClear(t)}})),react__WEBPACK_IMPORTED_MODULE_11___default.a.createElement(components_elements_MediaView_MediaView__WEBPACK_IMPORTED_MODULE_20__.a,{item:t}))},n="media-button";this.state.isEditable||(n+=" media-button-disabled");var _=react__WEBPACK_IMPORTED_MODULE_11___default.a.createElement("div",{styleName:"media-buttons"},react__WEBPACK_IMPORTED_MODULE_11___default.a.createElement("div",{type:"file",styleName:n+" media-upload"},"Upload New",react__WEBPACK_IMPORTED_MODULE_11___default.a.createElement("input",{styleName:"media-hidden",type:"file",disabled:!this.state.isEditable,onChange:this.onMediaNew})),react__WEBPACK_IMPORTED_MODULE_11___default.a.createElement("div",{styleName:n+" media-insert",onClick:this.onMediaChoose},"Insert Existing")),a=_;return this.field.isList?t&&t.length&&(a=react__WEBPACK_IMPORTED_MODULE_11___default.a.createElement("div",null,t.map(r),_)):t&&t.file&&(a=r(t)),react__WEBPACK_IMPORTED_MODULE_11___default.a.createElement("div",{styleName:"media"},a)}},{key:"__reactstandin__regenerateByEval",value:function __reactstandin__regenerateByEval(key,code){this[key]=eval(code)}}]),ContentMedia}(_ContentBase__WEBPACK_IMPORTED_MODULE_15__.a))||_class);!function(){var e=__webpack_require__(1).default,t=__webpack_require__(1).leaveModule;e&&(e.register(AUTOSAVE_TIMEOUT,"AUTOSAVE_TIMEOUT","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/components/mainArea/content/ContentEdit/elements/ContentMedia.js"),e.register(ContentMedia,"ContentMedia","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/components/mainArea/content/ContentEdit/elements/ContentMedia.js"),t(module))}()}).call(this,__webpack_require__(12)(module))},function(module,__webpack_exports__,__webpack_require__){"use strict";(function(module){var core_js_modules_es6_promise__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(133),core_js_modules_es6_promise__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(core_js_modules_es6_promise__WEBPACK_IMPORTED_MODULE_0__),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(2),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(3),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(5),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(4),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(6),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5__),react__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(0),react__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_6__),redux__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(22),react_redux__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(28),react_helmet__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(34),react_helmet__WEBPACK_IMPORTED_MODULE_9___default=__webpack_require__.n(react_helmet__WEBPACK_IMPORTED_MODULE_9__),react_css_modules__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(10),react_css_modules__WEBPACK_IMPORTED_MODULE_10___default=__webpack_require__.n(react_css_modules__WEBPACK_IMPORTED_MODULE_10__),components_elements_InputControl_InputControl__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(17),components_elements_ButtonControl_ButtonControl__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(23),components_elements_ContainerComponent_ContainerComponent__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(56),ducks_user__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(24),utils_initialize__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(72),utils_common__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(20),utils_data__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__(15),_UserProfile_sss__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__(830),_UserProfile_sss__WEBPACK_IMPORTED_MODULE_18___default=__webpack_require__.n(_UserProfile_sss__WEBPACK_IMPORTED_MODULE_18__),_dec,_class;!function(){var e=__webpack_require__(1).enterModule;e&&e(module)}();var CHG_DATA="CHG_DATA",CHG_EMAIL="CHG_EMAIL",CHG_PASSWORD="CHG_PASSWORD",CHG_SERVER="CHG_SERVER",UserProfile=(_dec=react_css_modules__WEBPACK_IMPORTED_MODULE_10___default()(_UserProfile_sss__WEBPACK_IMPORTED_MODULE_18___default.a,{allowMultiple:!0}),_dec(_class=function(_Component){function UserProfile(e){var t;_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this,UserProfile),(t=_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this,_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(UserProfile).call(this,e))).state={firstName:"",lastName:"",dirtyData:!1,errorData:null,successData:"",email:"",emailNew:"",dirtyEmail:!1,errorEmail:null,successEmailState:!1,passwordOld:"",password:"",passwordConfirm:"",dirtyPassword:!1,errorPassword:null,successPassword:"",serverURL:"",dirtyServer:!1,errorServer:null,successServer:""},t.userData=null,t.lastChange=null,t.onSaveData=function(e){(e.preventDefault(),t.state.dirtyData&&!t.state.errorData)&&(t.validateData()&&(t.setState({dirtyData:!1}),t.lastChange=CHG_DATA,t.userData.firstName=t.state.firstName,t.userData.lastName=t.state.lastName,(0,t.props.userActions.update)(t.userData)))},t.onSaveEmail=function(e){(e.preventDefault(),t.state.dirtyEmail&&!t.state.errorEmail)&&(t.validateEmail()&&(t.setState({dirtyEmail:!1}),t.lastChange=CHG_EMAIL,(0,t.props.userActions.updateEmail)(t.state.emailNew)))},t.onSavePassword=function(e){e.preventDefault(),t.state.dirtyPassword&&!t.state.errorPassword&&t.validatePassword().then(function(){(0,t.props.userActions.updatePassword)(t.state.password),t.lastChange=CHG_PASSWORD,t.setState({passwordOld:"",password:"",passwordConfirm:"",dirtyPassword:!1})}).catch(function(){})},t.onSaveServer=function(e){e.preventDefault(),t.state.dirtyServer&&!t.state.errorServer&&t.validateServer()&&(t.setState({dirtyServer:!1}),t.lastChange=CHG_SERVER,Object(utils_initialize__WEBPACK_IMPORTED_MODULE_15__.a)(t.state.serverURL),t.setState({successServer:"Server was successfully changed!"}),setTimeout(function(){return t.setState({successServer:""})},2500))},t.onChangeFirstName=function(e){var r=e.target.value;t.setState({firstName:r,dirtyData:!0,errorData:null})},t.onChangeLastName=function(e){var r=e.target.value;t.setState({lastName:r,dirtyData:!0,errorData:null})},t.onChangeEmail=function(e){var r=e.target.value;t.setState({emailNew:r,dirtyEmail:r!=t.userData.emailNew,errorEmail:null})},t.onChangePasswordOld=function(e){var r=e.target.value,n=!!r||!!t.state.password||!!t.state.passwordConfirm;t.setState({passwordOld:r,dirtyPassword:n,errorPassword:null})},t.onChangePassword=function(e){var r=e.target.value,n=!!r||!!t.state.passwordOld||!!t.state.passwordConfirm;t.setState({password:r,dirtyPassword:n,errorPassword:null})},t.onChangePasswordConfirm=function(e){var r=e.target.value,n=!!r||!!t.state.passwordOld||!!t.state.password;t.setState({passwordConfirm:r,dirtyPassword:n,errorPassword:null})},t.onChangeServerURL=function(e){var r=e.target.value;t.setState({serverURL:r,dirtyServer:!0,errorServer:null})},t.resendVerification=function(e){(0,t.props.userActions.resendVerEmail)()};var r=e.user;return t.userData=r.userData,t.state.firstName=t.userData.firstName,t.state.lastName=t.userData.lastName,t.state.email=t.userData.email,t.userData.emailNew?(t.state.emailNew=t.userData.emailNew,t.state.successEmailState=!0):t.state.emailNew=t.userData.email,t.state.serverURL=utils_initialize__WEBPACK_IMPORTED_MODULE_15__.b.serverURL,t}return _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5___default()(UserProfile,_Component),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default()(UserProfile,[{key:"componentWillReceiveProps",value:function(e){var t=this,r=e.user;switch(this.lastChange){case CHG_DATA:this.setState({successData:"Data was successfully changed!"}),setTimeout(function(){return t.setState({successData:""})},2500);break;case CHG_EMAIL:var n=null;switch(r.error){case ducks_user__WEBPACK_IMPORTED_MODULE_14__.c:n="The user with this email also exists!";break;case ducks_user__WEBPACK_IMPORTED_MODULE_14__.a:n="Unknown error!"}n?this.setState({emailNew:this.userData.emailNew?this.userData.emailNew:this.userData.email,errorEmail:n}):this.setState({successEmailState:!0});break;case CHG_PASSWORD:this.setState({successPassword:"Password was successfully changed!"}),setTimeout(function(){return t.setState({successPassword:""})},2500)}}},{key:"validateData",value:function(){return!0}},{key:"validateEmail",value:function(){return!!Object(utils_common__WEBPACK_IMPORTED_MODULE_16__.b)(this.state.emailNew)||(this.setState({errorEmail:"Invalid email!"}),!1)}},{key:"validatePassword",value:function(){var e=this;return this.state.password!=this.state.passwordConfirm?(this.setState({errorPassword:"Passwords don't match!"}),Promise.reject()):Object(utils_data__WEBPACK_IMPORTED_MODULE_17__.l)(this.state.passwordOld).catch(function(t){return e.setState({errorPassword:"Wrong old password!"}),Promise.reject()})}},{key:"validateServer",value:function(){return!!Object(utils_common__WEBPACK_IMPORTED_MODULE_16__.c)(this.state.serverURL)||(this.setState({errorServer:"Invalid URL!"}),!1)}},{key:"render",value:function(){return react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{className:"mainArea"},react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement(react_helmet__WEBPACK_IMPORTED_MODULE_9__.Helmet,null,react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("title",null,"User profile - Chisel")),react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement(components_elements_ContainerComponent_ContainerComponent__WEBPACK_IMPORTED_MODULE_13__.a,{title:"User profile"},react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"content"},react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("form",{styleName:"section",onSubmit:this.onSaveData},react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"section-header"},"Your personal data"),react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"field"},react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"field-title"},"First name"),react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"input-wrapper"},react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement(components_elements_InputControl_InputControl__WEBPACK_IMPORTED_MODULE_11__.a,{type:"big",value:this.state.firstName,onChange:this.onChangeFirstName}))),react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"field"},react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"field-title"},"Last name"),react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"input-wrapper"},react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement(components_elements_InputControl_InputControl__WEBPACK_IMPORTED_MODULE_11__.a,{type:"big",value:this.state.lastName,onChange:this.onChangeLastName}))),react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"buttons-wrapper"},react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement(components_elements_ButtonControl_ButtonControl__WEBPACK_IMPORTED_MODULE_12__.a,{color:"green",type:"submit",disabled:!this.state.dirtyData||this.state.errorData,value:"Update personal data"})),react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"field-success"},this.state.successData),react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"field-error"},this.state.errorData)),react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("form",{styleName:"section",onSubmit:this.onSaveEmail},react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"section-header"},"Your email"),react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"field"},react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"field-title"},"Email"),react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"input-wrapper"},react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement(components_elements_InputControl_InputControl__WEBPACK_IMPORTED_MODULE_11__.a,{type:"big",value:this.state.emailNew,onChange:this.onChangeEmail}))),react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"buttons-wrapper"},react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement(components_elements_ButtonControl_ButtonControl__WEBPACK_IMPORTED_MODULE_12__.a,{color:"green",type:"submit",disabled:!this.state.dirtyEmail||this.state.errorEmail,value:"Change email"})),this.state.successEmailState&&react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"field-success"},react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",null,"Your email was changed. We've sent to your new email a link to confirm it. You can use your old email ",react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("b",null,this.state.email)," before confirmation."),react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"field-success-resend",onClick:this.resendVerification},"Resend confirmation email")),react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"field-error"},this.state.errorEmail)),react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("form",{styleName:"section",onSubmit:this.onSavePassword},react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"section-header"},"Changing password"),react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"field"},react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"field-title"},"Enter old password"),react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"input-wrapper"},react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement(components_elements_InputControl_InputControl__WEBPACK_IMPORTED_MODULE_11__.a,{type:"big",inputType:"password",value:this.state.passwordOld,onChange:this.onChangePasswordOld}))),react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"field"},react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"field-title"},"Enter new password"),react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"input-wrapper"},react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement(components_elements_InputControl_InputControl__WEBPACK_IMPORTED_MODULE_11__.a,{type:"big",inputType:"password",value:this.state.password,onChange:this.onChangePassword}))),react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"field"},react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"field-title"},"Confirm new password"),react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"input-wrapper"},react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement(components_elements_InputControl_InputControl__WEBPACK_IMPORTED_MODULE_11__.a,{type:"big",inputType:"password",value:this.state.passwordConfirm,onChange:this.onChangePasswordConfirm}))),react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"buttons-wrapper"},react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement(components_elements_ButtonControl_ButtonControl__WEBPACK_IMPORTED_MODULE_12__.a,{color:"green",type:"submit",disabled:!this.state.dirtyPassword||this.state.errorPassword,value:"Set new password"})),react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"field-success"},this.state.successPassword),react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"field-error"},this.state.errorPassword)),react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("form",{styleName:"section",onSubmit:this.onSaveServer},react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"section-header"},"Parse server data"),react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"field"},react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"field-title"},"Server URL"),react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"input-wrapper"},react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement(components_elements_InputControl_InputControl__WEBPACK_IMPORTED_MODULE_11__.a,{type:"big",value:this.state.serverURL,onChange:this.onChangeServerURL}))),react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"buttons-wrapper"},react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement(components_elements_ButtonControl_ButtonControl__WEBPACK_IMPORTED_MODULE_12__.a,{color:"green",type:"submit",disabled:!this.state.dirtyServer||this.state.errorServer,value:"Update server data"})),react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"field-success"},this.state.successServer),react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"field-error"},this.state.errorServer)))))}},{key:"__reactstandin__regenerateByEval",value:function __reactstandin__regenerateByEval(key,code){this[key]=eval(code)}}]),UserProfile}(react__WEBPACK_IMPORTED_MODULE_6__.Component))||_class);function mapStateToProps(e){return{user:e.user}}function mapDispatchToProps(e){return{userActions:Object(redux__WEBPACK_IMPORTED_MODULE_7__.b)({update:ducks_user__WEBPACK_IMPORTED_MODULE_14__.q,updateEmail:ducks_user__WEBPACK_IMPORTED_MODULE_14__.r,updatePassword:ducks_user__WEBPACK_IMPORTED_MODULE_14__.s,resendVerEmail:ducks_user__WEBPACK_IMPORTED_MODULE_14__.n},e)}}var _default=Object(react_redux__WEBPACK_IMPORTED_MODULE_8__.b)(mapStateToProps,mapDispatchToProps)(UserProfile);__webpack_exports__.a=_default,function(){var e=__webpack_require__(1).default,t=__webpack_require__(1).leaveModule;e&&(e.register(CHG_DATA,"CHG_DATA","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/containers/MainArea/UserProfile/UserProfile.js"),e.register(CHG_EMAIL,"CHG_EMAIL","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/containers/MainArea/UserProfile/UserProfile.js"),e.register(CHG_PASSWORD,"CHG_PASSWORD","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/containers/MainArea/UserProfile/UserProfile.js"),e.register(CHG_SERVER,"CHG_SERVER","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/containers/MainArea/UserProfile/UserProfile.js"),e.register(UserProfile,"UserProfile","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/containers/MainArea/UserProfile/UserProfile.js"),e.register(mapStateToProps,"mapStateToProps","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/containers/MainArea/UserProfile/UserProfile.js"),e.register(mapDispatchToProps,"mapDispatchToProps","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/containers/MainArea/UserProfile/UserProfile.js"),e.register(_default,"default","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/containers/MainArea/UserProfile/UserProfile.js"),t(module))}()}).call(this,__webpack_require__(12)(module))},function(module,__webpack_exports__,__webpack_require__){"use strict";(function(module){var core_js_modules_es6_regexp_replace__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(106),core_js_modules_es6_regexp_replace__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(core_js_modules_es6_regexp_replace__WEBPACK_IMPORTED_MODULE_0__),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(2),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(3),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(5),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(4),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(6),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5__),react__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(0),react__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_6__),react_redux__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(28),react_css_modules__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(10),react_css_modules__WEBPACK_IMPORTED_MODULE_8___default=__webpack_require__.n(react_css_modules__WEBPACK_IMPORTED_MODULE_8__),react_helmet__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(34),react_helmet__WEBPACK_IMPORTED_MODULE_9___default=__webpack_require__.n(react_helmet__WEBPACK_IMPORTED_MODULE_9__),react_router__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(16),components_elements_ButtonControl_ButtonControl__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(23),ducks_nav__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(7),_EmailVerify_sss__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(832),_EmailVerify_sss__WEBPACK_IMPORTED_MODULE_13___default=__webpack_require__.n(_EmailVerify_sss__WEBPACK_IMPORTED_MODULE_13__),_dec,_class;!function(){var e=__webpack_require__(1).enterModule;e&&e(module)}();var EmailVerify=(_dec=react_css_modules__WEBPACK_IMPORTED_MODULE_8___default()(_EmailVerify_sss__WEBPACK_IMPORTED_MODULE_13___default.a,{allowMultiple:!0}),_dec(_class=function(_Component){function EmailVerify(){var e,t;_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this,EmailVerify);for(var r=arguments.length,n=new Array(r),_=0;_=t){r=e;break}e=e.next}while(e!==n);null===r?r=n:r===n&&(n=s,c()),(t=r.previous).next=r.previous=s,s.next=r,s.previous=t}}function f(){if(-1===a&&null!==n&&1===n.priorityLevel){o=!0,u.didTimeout=!0;try{do{d()}while(null!==n&&1===n.priorityLevel)}finally{o=!1,null!==n?c():s=!1}}}function p(e){o=!0,u.didTimeout=e;try{if(e)for(;null!==n;){var r=t.unstable_now();if(!(n.expirationTime<=r))break;do{d()}while(null!==n&&n.expirationTime<=r)}else if(null!==n)do{d()}while(null!==n&&0=S-n){if(!(-1!==r&&r<=n))return B||(B=!0,D(j)),I=e,void(L=r);_=!0}if(null!==e){U=!0;try{e(_)}finally{U=!1}}}},!1);var j=function(e){if(null!==I){D(j);var t=e-S+W;tt&&(t=8),W=tt?window.postMessage(x,"*"):B||(B=!0,D(j))},g=function(){I=null,R=!1,L=-1}}t.unstable_ImmediatePriority=1,t.unstable_UserBlockingPriority=2,t.unstable_NormalPriority=3,t.unstable_IdlePriority=4,t.unstable_runWithPriority=function(e,r){switch(e){case 1:case 2:case 3:case 4:break;default:e=3}var n=_,i=a;_=e,a=t.unstable_now();try{return r()}finally{_=n,a=i,f()}},t.unstable_scheduleCallback=function(e,r){var i=-1!==a?a:t.unstable_now();if("object"==typeof r&&null!==r&&"number"==typeof r.timeout)r=i+r.timeout;else switch(_){case 1:r=i+-1;break;case 2:r=i+250;break;case 4:r=i+1073741823;break;default:r=i+5e3}if(e={callback:e,priorityLevel:_,expirationTime:r,next:null,previous:null},null===n)n=e.next=e.previous=e,c();else{i=null;var o=n;do{if(o.expirationTime>r){i=o;break}o=o.next}while(o!==n);null===i?i=n:i===n&&(n=e,c()),(r=i.previous).next=i.previous=e,e.next=i,e.previous=r}return e},t.unstable_cancelCallback=function(e){var t=e.next;if(null!==t){if(t===e)n=null;else{e===n&&(n=t);var r=e.previous;r.next=t,t.previous=r}e.next=e.previous=null}},t.unstable_wrapCallback=function(e){var r=_;return function(){var n=_,i=a;_=r,a=t.unstable_now();try{return e.apply(this,arguments)}finally{_=n,a=i,f()}}},t.unstable_getCurrentPriorityLevel=function(){return _}},function(e,t,r){"use strict";var n=r(398);function _(){}e.exports=function(){function e(e,t,r,_,a,i){if(i!==n){var o=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw o.name="Invariant Violation",o}}function t(){return e}e.isRequired=e;var r={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return r.checkPropTypes=_,r.PropTypes=r,r}},function(e,t,r){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,r){"use strict";var n=r(35),_=r(400),a=r(29),i="mixins";e.exports=function(e,t,r){var o=[],s={mixins:"DEFINE_MANY",statics:"DEFINE_MANY",propTypes:"DEFINE_MANY",contextTypes:"DEFINE_MANY",childContextTypes:"DEFINE_MANY",getDefaultProps:"DEFINE_MANY_MERGED",getInitialState:"DEFINE_MANY_MERGED",getChildContext:"DEFINE_MANY_MERGED",render:"DEFINE_ONCE",componentWillMount:"DEFINE_MANY",componentDidMount:"DEFINE_MANY",componentWillReceiveProps:"DEFINE_MANY",shouldComponentUpdate:"DEFINE_ONCE",componentWillUpdate:"DEFINE_MANY",componentDidUpdate:"DEFINE_MANY",componentWillUnmount:"DEFINE_MANY",UNSAFE_componentWillMount:"DEFINE_MANY",UNSAFE_componentWillReceiveProps:"DEFINE_MANY",UNSAFE_componentWillUpdate:"DEFINE_MANY",updateComponent:"OVERRIDE_BASE"},l={getDerivedStateFromProps:"DEFINE_MANY_MERGED"},u={displayName:function(e,t){e.displayName=t},mixins:function(e,t){if(t)for(var r=0;r=e&&i&&(_=!0,r())}}()}},function(e,t,r){"use strict";t.__esModule=!0,t.replaceLocation=t.pushLocation=t.getCurrentLocation=t.go=t.getUserConfirmation=void 0;var n=r(178);Object.defineProperty(t,"getUserConfirmation",{enumerable:!0,get:function(){return n.getUserConfirmation}}),Object.defineProperty(t,"go",{enumerable:!0,get:function(){return n.go}});var _=r(103),a=r(83);t.getCurrentLocation=function(){return(0,_.createLocation)(window.location)},t.pushLocation=function(e){return window.location.href=(0,a.createPath)(e),!1},t.replaceLocation=function(e){return window.location.replace((0,a.createPath)(e)),!1}},function(e,t,r){"use strict";t.__esModule=!0,t.replaceLocation=t.pushLocation=t.startListener=t.getCurrentLocation=t.go=t.getUserConfirmation=void 0;var n=r(178);Object.defineProperty(t,"getUserConfirmation",{enumerable:!0,get:function(){return n.getUserConfirmation}}),Object.defineProperty(t,"go",{enumerable:!0,get:function(){return n.go}});!function(e){e&&e.__esModule}(r(79));var _=r(103),a=r(147),i=r(235),o=r(83);var s=function(){var e=window.location.href,t=e.indexOf("#");return-1===t?"":e.substring(t+1)},l=function(e){var t=window.location.href.indexOf("#");window.location.replace(window.location.href.slice(0,t>=0?t:0)+"#"+e)},u=t.getCurrentLocation=function(e,t){var r=e.decodePath(s()),n=(0,o.getQueryStringValueFromPath)(r,t),a=void 0;n&&(r=(0,o.stripQueryStringValueFromPath)(r,t),a=(0,i.readState)(n));var l=(0,o.parsePath)(r);return l.state=a,(0,_.createLocation)(l,void 0,n)},c=void 0,d=(t.startListener=function(e,t,r){var n=function(){var n=s(),_=t.encodePath(n);if(n!==_)l(_);else{var a=u(t,r);if(c&&a.key&&c.key===a.key)return;c=a,e(a)}},_=s(),i=t.encodePath(_);return _!==i&&l(i),(0,a.addEventListener)(window,"hashchange",n),function(){return(0,a.removeEventListener)(window,"hashchange",n)}},function(e,t,r,n){var _=e.state,a=e.key,s=t.encodePath((0,o.createPath)(e));void 0!==_&&(s=(0,o.addQueryStringValueToPath)(s,r,a),(0,i.saveState)(a,_)),c=e,n(s)});t.pushLocation=function(e,t,r){return d(e,t,r,function(e){s()!==e&&function(e){window.location.hash=e}(e)})},t.replaceLocation=function(e,t,r){return d(e,t,r,function(e){s()!==e&&l(e)})}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:{},i=r.selectLocationState,o=void 0===i?a:i,s=r.adjustUrlOnReplay,l=void 0===s||s;if(void 0===o(t.getState()))throw new Error("Expected the routing state to be available either as `state.routing` or as the custom expression you can specify as `selectLocationState` in the `syncHistoryWithStore()` options. Ensure you have added the `routerReducer` to your store's reducers via `combineReducers` or whatever method you use to isolate your reducers.");var u=void 0,c=void 0,d=void 0,f=void 0,p=void 0,h=function(e){var r=o(t.getState());return r.locationBeforeTransitions||(e?u:void 0)};if(u=h(),l){var E=function(){var t=h(!0);p!==t&&u!==t&&(c=!0,p=t,e.transitionTo(n({},t,{action:"PUSH"})),c=!1)};d=t.subscribe(E),E()}var m=function(e){c||(p=e,!u&&(u=e,h())||t.dispatch({type:_.LOCATION_CHANGE,payload:e}))};f=e.listen(m),e.getCurrentLocation&&m(e.getCurrentLocation());return n({},e,{listen:function(r){var n=h(!0),_=!1,a=t.subscribe(function(){var e=h(!0);e!==n&&(n=e,_||r(n))});return e.getCurrentLocation||r(n),function(){_=!0,a()}},unsubscribe:function(){l&&d(),f()}})};var _=r(236),a=function(e){return e.routing}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return function(){return function(t){return function(r){if(r.type!==n.CALL_HISTORY_METHOD)return t(r);var _=r.payload,a=_.method,i=_.args;e[a].apply(e,function(e){if(Array.isArray(e)){for(var t=0,r=Array(e.length);t1)throw new Error('ReactElement styleName property defines multiple module names ("'+e+'").');return r},e.exports=t.default},function(e,t,r){var n=r(246),_=r(431),a=r(432),i=r(62);e.exports=function(e,t){return(i(e)?n:_)(e,a(t,3))}},function(e,t,r){var n=r(241);e.exports=function(e,t){var r=[];return n(e,function(e,n,_){t(e,n,_)&&r.push(e)}),r}},function(e,t,r){var n=r(433),_=r(483),a=r(151),i=r(62),o=r(491);e.exports=function(e){return"function"==typeof e?e:null==e?a:"object"==typeof e?i(e)?_(e[0],e[1]):n(e):o(e)}},function(e,t,r){var n=r(434),_=r(482),a=r(252);e.exports=function(e){var t=_(e);return 1==t.length&&t[0][2]?a(t[0][0],t[0][1]):function(r){return r===e||n(r,e,t)}}},function(e,t,r){var n=r(247),_=r(249),a=1,i=2;e.exports=function(e,t,r,o){var s=r.length,l=s,u=!o;if(null==e)return!l;for(e=Object(e);s--;){var c=r[s];if(u&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++s-1}},function(e,t,r){var n=r(153);e.exports=function(e,t){var r=this.__data__,_=n(r,e);return _<0?(++this.size,r.push([e,t])):r[_][1]=t,this}},function(e,t,r){var n=r(152);e.exports=function(){this.__data__=new n,this.size=0}},function(e,t){e.exports=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}},function(e,t){e.exports=function(e){return this.__data__.get(e)}},function(e,t){e.exports=function(e){return this.__data__.has(e)}},function(e,t,r){var n=r(152),_=r(183),a=r(184),i=200;e.exports=function(e,t){var r=this.__data__;if(r instanceof n){var o=r.__data__;if(!_||o.length=_?e:n(e,t,r)}},function(e,t){e.exports=function(e,t,r){var n=-1,_=e.length;t<0&&(t=-t>_?0:_+t),(r=r>_?_:r)<0&&(r+=_),_=t>r?0:r-t>>>0,t>>>=0;for(var a=Array(_);++n<_;)a[n]=e[n+t];return a}},function(e,t,r){var n=r(186);e.exports=function(e,t){for(var r=e.length;r--&&n(t,e[r],0)>-1;);return r}},function(e,t){e.exports=function(e,t,r,n){for(var _=e.length,a=r+(n?1:-1);n?a--:++a<_;)if(t(e[a],a,e))return a;return-1}},function(e,t){e.exports=function(e){return e!=e}},function(e,t){e.exports=function(e,t,r){for(var n=r-1,_=e.length;++n<_;)if(e[n]===t)return n;return-1}},function(e,t,r){var n=r(186);e.exports=function(e,t){for(var r=-1,_=e.length;++r<_&&n(t,e[r],0)>-1;);return r}},function(e,t,r){var n=r(503),_=r(504),a=r(505);e.exports=function(e){return _(e)?a(e):n(e)}},function(e,t){e.exports=function(e){return e.split("")}},function(e,t){var r=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");e.exports=function(e){return r.test(e)}},function(e,t){var r="[\\ud800-\\udfff]",n="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",_="\\ud83c[\\udffb-\\udfff]",a="[^\\ud800-\\udfff]",i="(?:\\ud83c[\\udde6-\\uddff]){2}",o="[\\ud800-\\udbff][\\udc00-\\udfff]",s="(?:"+n+"|"+_+")"+"?",l="[\\ufe0e\\ufe0f]?"+s+("(?:\\u200d(?:"+[a,i,o].join("|")+")[\\ufe0e\\ufe0f]?"+s+")*"),u="(?:"+[a+n+"?",n,i,o,r].join("|")+")",c=RegExp(_+"(?="+_+")|"+u+l,"g");e.exports=function(e){return e.match(c)||[]}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(e){return e&&e.__esModule?e:{default:e}}(r(507));var _="undefined"==typeof Map?n.default:Map,a=new _;t.default=function(e,t,r){var n=void 0,i=void 0;if(i=a.get(e)){var o=i.get(t);if(o)return o}else i=new _,a.set(e,new _);for(var s in n="",t)if(t.hasOwnProperty(s)){var l=e[t[s]];if(l)n+=" "+l;else{if("throw"===r)throw new Error('"'+t[s]+'" CSS module is undefined.');"log"===r&&console.warn('"'+t[s]+'" CSS module is undefined.')}}return n=n.trim(),i.set(t,n),n},e.exports=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.size=0,this.keys=[],this.values=[]}return e.prototype.get=function(e){var t=this.keys.indexOf(e);return this.values[t]},e.prototype.set=function(e,t){return this.keys.push(e),this.values.push(t),this.size=this.keys.length,t},e}();t.default=n,e.exports=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=s(r(509)),_=s(r(75)),a=s(r(0)),i=s(r(239)),o=s(r(258));function s(e){return e&&e.__esModule?e:{default:e}}t.default=function(e,t,r){var s=function(){for(var n=arguments.length,s=Array(n>1?n-1:0),l=1;l0&&void 0!==arguments[0]?arguments[0]:{},c=void 0,d=void 0,f=(0,_.default)(t);u.styles||f?(d=Object.assign({},u),c=u.styles?u.styles:t,Object.defineProperty(d,"styles",{configurable:!0,enumerable:!1,value:c,writable:!1})):(d=u,c={});var p=e.apply(void 0,[d].concat(s));return p?(0,i.default)(p,c,r):(0,o.default)(a.default.version)};return(0,n.default)(s,e),s},e.exports=t.default},function(e,t,r){var n=r(259),_=r(510),a=r(511),i=r(118),o=r(245),s=r(117),l=Object.prototype.hasOwnProperty,u=a(function(e,t){if(o(t)||i(t))_(t,s(t),e);else for(var r in t)l.call(t,r)&&n(e,r,t[r])});e.exports=u},function(e,t,r){var n=r(259),_=r(260);e.exports=function(e,t,r,a){var i=!r;r||(r={});for(var o=-1,s=t.length;++o1?r[a-1]:void 0,o=a>2?r[2]:void 0;for(i=e.length>3&&"function"==typeof i?(a--,i):void 0,o&&_(r[0],r[1],o)&&(i=a<3?void 0:i,a=1),t=Object(t);++n0){if(++t>=r)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}},function(e,t,r){var n=r(154),_=r(118),a=r(181),i=r(75);e.exports=function(e,t,r){if(!i(r))return!1;var o=typeof t;return!!("number"==o?_(r)&&a(t,r.length):"string"==o&&t in r)&&n(r[t],e)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(r(521)),_=o(r(528)),a=o(r(529)),i=o(r(240));function o(e){return e&&e.__esModule?e:{default:e}}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={allowMultiple:!1,handleNotFoundStyleName:"throw"};return(0,i.default)(e,function(e,r){if((0,a.default)(t[r]))throw new Error('Unknown configuration property "'+r+'".');if("allowMultiple"===r&&!(0,_.default)(e))throw new Error('"allowMultiple" property value must be a boolean.');if("handleNotFoundStyleName"===r&&!(0,n.default)(["throw","log","ignore"],e))throw new Error('"handleNotFoundStyleName" property value must be "throw", "log" or "ignore".');t[r]=e}),t},e.exports=t.default},function(e,t,r){var n=r(186),_=r(118),a=r(522),i=r(523),o=r(526),s=Math.max;e.exports=function(e,t,r,l){e=_(e)?e:o(e),r=r&&!l?i(r):0;var u=e.length;return r<0&&(r=s(u+r,0)),a(e)?r<=u&&e.indexOf(t,r)>-1:!!u&&n(e,t,r)>-1}},function(e,t,r){var n=r(91),_=r(62),a=r(92),i="[object String]";e.exports=function(e){return"string"==typeof e||!_(e)&&a(e)&&n(e)==i}},function(e,t,r){var n=r(524);e.exports=function(e){var t=n(e),r=t%1;return t==t?r?t-r:t:0}},function(e,t,r){var n=r(525),_=1/0,a=1.7976931348623157e308;e.exports=function(e){return e?(e=n(e))===_||e===-_?(e<0?-1:1)*a:e==e?e:0:0===e?e:0}},function(e,t,r){var n=r(75),_=r(157),a=NaN,i=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,l=/^0o[0-7]+$/i,u=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(_(e))return a;if(n(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=n(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(i,"");var r=s.test(e);return r||l.test(e)?u(e.slice(2),r?2:8):o.test(e)?a:+e}},function(e,t,r){var n=r(527),_=r(117);e.exports=function(e){return null==e?[]:n(e,_(e))}},function(e,t,r){var n=r(257);e.exports=function(e,t){return n(t,function(t){return e[t]})}},function(e,t,r){var n=r(91),_=r(92),a="[object Boolean]";e.exports=function(e){return!0===e||!1===e||_(e)&&n(e)==a}},function(e,t){e.exports=function(e){return void 0===e}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){e.classList?e.classList.add(t):(0,n.default)(e,t)||("string"==typeof e.className?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))};var n=function(e){return e&&e.__esModule?e:{default:e}}(r(531));e.exports=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")},e.exports=t.default},function(e,t,r){"use strict";function n(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}e.exports=function(e,t){e.classList?e.classList.remove(t):"string"==typeof e.className?e.className=n(e.className,t):e.setAttribute("class",n(e.className&&e.className.baseVal||"",t))}},function(e,t,r){"use strict";t.__esModule=!0,t.default=t.EXITING=t.ENTERED=t.ENTERING=t.EXITED=t.UNMOUNTED=void 0;var n=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,r):{};n.get||n.set?Object.defineProperty(t,r,n):t[r]=e[r]}return t.default=e,t}(r(9)),_=o(r(0)),a=o(r(50)),i=r(534);r(262);function o(e){return e&&e.__esModule?e:{default:e}}var s="unmounted";t.UNMOUNTED=s;var l="exited";t.EXITED=l;var u="entering";t.ENTERING=u;var c="entered";t.ENTERED=c;t.EXITING="exiting";var d=function(e){function t(t,r){var n;n=e.call(this,t,r)||this;var _,a=r.transitionGroup,i=a&&!a.isMounting?t.enter:t.appear;return n.appearStatus=null,t.in?i?(_=l,n.appearStatus=u):_=c:_=t.unmountOnExit||t.mountOnEnter?s:l,n.state={status:_},n.nextCallback=null,n}!function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}(t,e);var r=t.prototype;return r.getChildContext=function(){return{transitionGroup:null}},t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===s?{status:l}:null},r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(e){var t=null;if(e!==this.props){var r=this.state.status;this.props.in?r!==u&&r!==c&&(t=u):r!==u&&r!==c||(t="exiting")}this.updateStatus(!1,t)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var e,t,r,n=this.props.timeout;return e=t=r=n,null!=n&&"number"!=typeof n&&(e=n.exit,t=n.enter,r=n.appear),{exit:e,enter:t,appear:r}},r.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t){this.cancelNextCallback();var r=a.default.findDOMNode(this);t===u?this.performEnter(r,e):this.performExit(r)}else this.props.unmountOnExit&&this.state.status===l&&this.setState({status:s})},r.performEnter=function(e,t){var r=this,n=this.props.enter,_=this.context.transitionGroup?this.context.transitionGroup.isMounting:t,a=this.getTimeouts();t||n?(this.props.onEnter(e,_),this.safeSetState({status:u},function(){r.props.onEntering(e,_),r.onTransitionEnd(e,a.enter,function(){r.safeSetState({status:c},function(){r.props.onEntered(e,_)})})})):this.safeSetState({status:c},function(){r.props.onEntered(e)})},r.performExit=function(e){var t=this,r=this.props.exit,n=this.getTimeouts();r?(this.props.onExit(e),this.safeSetState({status:"exiting"},function(){t.props.onExiting(e),t.onTransitionEnd(e,n.exit,function(){t.safeSetState({status:l},function(){t.props.onExited(e)})})})):this.safeSetState({status:l},function(){t.props.onExited(e)})},r.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},r.setNextCallback=function(e){var t=this,r=!0;return this.nextCallback=function(n){r&&(r=!1,t.nextCallback=null,e(n))},this.nextCallback.cancel=function(){r=!1},this.nextCallback},r.onTransitionEnd=function(e,t,r){this.setNextCallback(r),e?(this.props.addEndListener&&this.props.addEndListener(e,this.nextCallback),null!=t&&setTimeout(this.nextCallback,t)):setTimeout(this.nextCallback,0)},r.render=function(){var e=this.state.status;if(e===s)return null;var t=this.props,r=t.children,n=function(e,t){if(null==e)return{};var r,n,_={},a=Object.keys(e);for(n=0;n=0||(_[r]=e[r]);return _}(t,["children"]);if(delete n.in,delete n.mountOnEnter,delete n.unmountOnExit,delete n.appear,delete n.enter,delete n.exit,delete n.timeout,delete n.addEndListener,delete n.onEnter,delete n.onEntering,delete n.onEntered,delete n.onExit,delete n.onExiting,delete n.onExited,"function"==typeof r)return r(e,n);var a=_.default.Children.only(r);return _.default.cloneElement(a,n)},t}(_.default.Component);function f(){}d.contextTypes={transitionGroup:n.object},d.childContextTypes={transitionGroup:function(){}},d.propTypes={},d.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:f,onEntering:f,onEntered:f,onExit:f,onExiting:f,onExited:f},d.UNMOUNTED=0,d.EXITED=1,d.ENTERING=2,d.ENTERED=3,d.EXITING=4;var p=(0,i.polyfill)(d);t.default=p},function(e,t,r){"use strict";function n(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!==e&&void 0!==e&&this.setState(e)}function _(e){this.setState(function(t){var r=this.constructor.getDerivedStateFromProps(e,t);return null!==r&&void 0!==r?r:null}.bind(this))}function a(e,t){try{var r=this.props,n=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(r,n)}finally{this.props=r,this.state=n}}function i(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if("function"!=typeof e.getDerivedStateFromProps&&"function"!=typeof t.getSnapshotBeforeUpdate)return e;var r=null,i=null,o=null;if("function"==typeof t.componentWillMount?r="componentWillMount":"function"==typeof t.UNSAFE_componentWillMount&&(r="UNSAFE_componentWillMount"),"function"==typeof t.componentWillReceiveProps?i="componentWillReceiveProps":"function"==typeof t.UNSAFE_componentWillReceiveProps&&(i="UNSAFE_componentWillReceiveProps"),"function"==typeof t.componentWillUpdate?o="componentWillUpdate":"function"==typeof t.UNSAFE_componentWillUpdate&&(o="UNSAFE_componentWillUpdate"),null!==r||null!==i||null!==o){var s=e.displayName||e.name,l="function"==typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+s+" uses "+l+" but also contains the following legacy lifecycles:"+(null!==r?"\n "+r:"")+(null!==i?"\n "+i:"")+(null!==o?"\n "+o:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"==typeof e.getDerivedStateFromProps&&(t.componentWillMount=n,t.componentWillReceiveProps=_),"function"==typeof t.getSnapshotBeforeUpdate){if("function"!=typeof t.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=a;var u=t.componentDidUpdate;t.componentDidUpdate=function(e,t,r){var n=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:r;u.call(this,e,t,n)}}return e}r.r(t),r.d(t,"polyfill",function(){return i}),n.__suppressDeprecationWarning=!0,_.__suppressDeprecationWarning=!0,a.__suppressDeprecationWarning=!0},function(e,t,r){"use strict";var n=r(192),_=r(121),a=r(126),i={};r(84)(i,r(36)("iterator"),function(){return this}),e.exports=function(e,t,r){e.prototype=n(i,{next:_(1,r)}),a(e,t+" Iterator")}},function(e,t,r){var n=r(63),_=r(67),a=r(105);e.exports=r(64)?Object.defineProperties:function(e,t){_(e);for(var r,i=a(t),o=i.length,s=0;o>s;)n.f(e,r=i[s++],t[r]);return e}},function(e,t,r){var n=r(159),_=Math.max,a=Math.min;e.exports=function(e,t){return(e=n(e))<0?_(e+t,0):a(e,t)}},function(e,t,r){var n=r(96),_=r(106),a=r(193)("IE_PROTO"),i=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=_(e),n(e,a)?e[a]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?i:null}},function(e,t,r){var n=r(159),_=r(123);e.exports=function(e){return function(t,r){var a,i,o=String(_(t)),s=n(r),l=o.length;return s<0||s>=l?e?"":void 0:(a=o.charCodeAt(s))<55296||a>56319||s+1===l||(i=o.charCodeAt(s+1))<56320||i>57343?e?o.charAt(s):a:e?o.slice(s,s+2):i-56320+(a-55296<<10)+65536}}},function(e,t,r){"use strict";var n=r(63),_=r(121);e.exports=function(e,t,r){t in e?n.f(e,t,_(0,r)):e[t]=r}},function(e,t,r){var n=r(542);e.exports=function(e,t){return new(n(e))(t)}},function(e,t,r){var n=r(57),_=r(274),a=r(36)("species");e.exports=function(e){var t;return _(e)&&("function"!=typeof(t=e.constructor)||t!==Array&&!_(t.prototype)||(t=void 0),n(t)&&null===(t=t[a])&&(t=void 0)),void 0===t?Array:t}},function(e,t,r){"use strict";function n(e){return e.replace(/[-|:]([a-z])/g,function(e){return e[1].toUpperCase()})}function _(e,t){return 0===e.indexOf(t)}Object.defineProperty(t,"__esModule",{value:!0}),t.convertReactSVGDOMProperty=n,t.startsWith=_,t.serializeAttrs=i,t.getSVGFromSource=o,t.extractSVGProps=function(e){var t=o(e).attributes;return t.length>0?i(t):null};var a="data-";function i(e){for(var t={},r=0;rShapeCreated with Sketch.'},function(e,t){e.exports=''},function(e,t){e.exports=''},function(e,t){e.exports=''},function(e,t){e.exports=''},function(e,t){e.exports=''},function(e,t){e.exports=''},function(e,t){e.exports=''},function(e,t){e.exports=''},function(e,t){e.exports=''},function(e,t){e.exports=''},function(e,t){e.exports='searchCreated with Sketch.'},function(e,t){e.exports='Created with Sketch.'},function(e,t,r){"use strict";var n=r(105),_=r(197),a=r(161),i=r(106),o=r(190),s=Object.assign;e.exports=!s||r(51)(function(){var e={},t={},r=Symbol(),n="abcdefghijklmnopqrst";return e[r]=7,n.split("").forEach(function(e){t[e]=e}),7!=s({},e)[r]||Object.keys(s({},t)).join("")!=n})?function(e,t){for(var r=i(e),s=arguments.length,l=1,u=_.f,c=a.f;s>l;)for(var d,f=o(arguments[l++]),p=u?n(f).concat(u(f)):n(f),h=p.length,E=0;h>E;)c.call(f,d=p[E++])&&(r[d]=f[d]);return r}:s},function(e,t,r){var n=r(44),_=r(560);n(n.P+n.F*(Date.prototype.toISOString!==_),"Date",{toISOString:_})},function(e,t,r){"use strict";var n=r(51),_=Date.prototype.getTime,a=Date.prototype.toISOString,i=function(e){return e>9?e:"0"+e};e.exports=n(function(){return"0385-07-25T07:06:39.999Z"!=a.call(new Date(-5e13-1))})||!n(function(){a.call(new Date(NaN))})?function(){if(!isFinite(_.call(this)))throw RangeError("Invalid time value");var e=this,t=e.getUTCFullYear(),r=e.getUTCMilliseconds(),n=t<0?"-":t>9999?"+":"";return n+("00000"+Math.abs(t)).slice(n?-6:-4)+"-"+i(e.getUTCMonth()+1)+"-"+i(e.getUTCDate())+"T"+i(e.getUTCHours())+":"+i(e.getUTCMinutes())+":"+i(e.getUTCSeconds())+"."+(r>99?r:"0"+i(r))+"Z"}:a},function(e,t,r){ + */Object.defineProperty(t,"__esModule",{value:!0});var n=null,_=3,a=-1,i=-1,o=!1,s=!1,l="object"==typeof performance&&"function"==typeof performance.now,u={timeRemaining:l?function(){if(null!==n&&n.expirationTime=t){r=e;break}e=e.next}while(e!==n);null===r?r=n:r===n&&(n=s,c()),(t=r.previous).next=r.previous=s,s.next=r,s.previous=t}}function f(){if(-1===a&&null!==n&&1===n.priorityLevel){o=!0,u.didTimeout=!0;try{do{d()}while(null!==n&&1===n.priorityLevel)}finally{o=!1,null!==n?c():s=!1}}}function p(e){o=!0,u.didTimeout=e;try{if(e)for(;null!==n;){var r=t.unstable_now();if(!(n.expirationTime<=r))break;do{d()}while(null!==n&&n.expirationTime<=r)}else if(null!==n)do{d()}while(null!==n&&0=S-n){if(!(-1!==r&&r<=n))return B||(B=!0,D(j)),I=e,void(L=r);_=!0}if(null!==e){U=!0;try{e(_)}finally{U=!1}}}},!1);var j=function(e){if(null!==I){D(j);var t=e-S+W;tt&&(t=8),W=tt?window.postMessage(x,"*"):B||(B=!0,D(j))},g=function(){I=null,R=!1,L=-1}}t.unstable_ImmediatePriority=1,t.unstable_UserBlockingPriority=2,t.unstable_NormalPriority=3,t.unstable_IdlePriority=4,t.unstable_runWithPriority=function(e,r){switch(e){case 1:case 2:case 3:case 4:break;default:e=3}var n=_,i=a;_=e,a=t.unstable_now();try{return r()}finally{_=n,a=i,f()}},t.unstable_scheduleCallback=function(e,r){var i=-1!==a?a:t.unstable_now();if("object"==typeof r&&null!==r&&"number"==typeof r.timeout)r=i+r.timeout;else switch(_){case 1:r=i+-1;break;case 2:r=i+250;break;case 4:r=i+1073741823;break;default:r=i+5e3}if(e={callback:e,priorityLevel:_,expirationTime:r,next:null,previous:null},null===n)n=e.next=e.previous=e,c();else{i=null;var o=n;do{if(o.expirationTime>r){i=o;break}o=o.next}while(o!==n);null===i?i=n:i===n&&(n=e,c()),(r=i.previous).next=i.previous=e,e.next=i,e.previous=r}return e},t.unstable_cancelCallback=function(e){var t=e.next;if(null!==t){if(t===e)n=null;else{e===n&&(n=t);var r=e.previous;r.next=t,t.previous=r}e.next=e.previous=null}},t.unstable_wrapCallback=function(e){var r=_;return function(){var n=_,i=a;_=r,a=t.unstable_now();try{return e.apply(this,arguments)}finally{_=n,a=i,f()}}},t.unstable_getCurrentPriorityLevel=function(){return _}},function(e,t,r){"use strict";var n=r(398);function _(){}e.exports=function(){function e(e,t,r,_,a,i){if(i!==n){var o=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw o.name="Invariant Violation",o}}function t(){return e}e.isRequired=e;var r={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return r.checkPropTypes=_,r.PropTypes=r,r}},function(e,t,r){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,r){"use strict";var n=r(35),_=r(400),a=r(29),i="mixins";e.exports=function(e,t,r){var o=[],s={mixins:"DEFINE_MANY",statics:"DEFINE_MANY",propTypes:"DEFINE_MANY",contextTypes:"DEFINE_MANY",childContextTypes:"DEFINE_MANY",getDefaultProps:"DEFINE_MANY_MERGED",getInitialState:"DEFINE_MANY_MERGED",getChildContext:"DEFINE_MANY_MERGED",render:"DEFINE_ONCE",componentWillMount:"DEFINE_MANY",componentDidMount:"DEFINE_MANY",componentWillReceiveProps:"DEFINE_MANY",shouldComponentUpdate:"DEFINE_ONCE",componentWillUpdate:"DEFINE_MANY",componentDidUpdate:"DEFINE_MANY",componentWillUnmount:"DEFINE_MANY",UNSAFE_componentWillMount:"DEFINE_MANY",UNSAFE_componentWillReceiveProps:"DEFINE_MANY",UNSAFE_componentWillUpdate:"DEFINE_MANY",updateComponent:"OVERRIDE_BASE"},l={getDerivedStateFromProps:"DEFINE_MANY_MERGED"},u={displayName:function(e,t){e.displayName=t},mixins:function(e,t){if(t)for(var r=0;r=e&&i&&(_=!0,r())}}()}},function(e,t,r){"use strict";t.__esModule=!0,t.replaceLocation=t.pushLocation=t.getCurrentLocation=t.go=t.getUserConfirmation=void 0;var n=r(178);Object.defineProperty(t,"getUserConfirmation",{enumerable:!0,get:function(){return n.getUserConfirmation}}),Object.defineProperty(t,"go",{enumerable:!0,get:function(){return n.go}});var _=r(102),a=r(83);t.getCurrentLocation=function(){return(0,_.createLocation)(window.location)},t.pushLocation=function(e){return window.location.href=(0,a.createPath)(e),!1},t.replaceLocation=function(e){return window.location.replace((0,a.createPath)(e)),!1}},function(e,t,r){"use strict";t.__esModule=!0,t.replaceLocation=t.pushLocation=t.startListener=t.getCurrentLocation=t.go=t.getUserConfirmation=void 0;var n=r(178);Object.defineProperty(t,"getUserConfirmation",{enumerable:!0,get:function(){return n.getUserConfirmation}}),Object.defineProperty(t,"go",{enumerable:!0,get:function(){return n.go}});!function(e){e&&e.__esModule}(r(79));var _=r(102),a=r(147),i=r(235),o=r(83);var s=function(){var e=window.location.href,t=e.indexOf("#");return-1===t?"":e.substring(t+1)},l=function(e){var t=window.location.href.indexOf("#");window.location.replace(window.location.href.slice(0,t>=0?t:0)+"#"+e)},u=t.getCurrentLocation=function(e,t){var r=e.decodePath(s()),n=(0,o.getQueryStringValueFromPath)(r,t),a=void 0;n&&(r=(0,o.stripQueryStringValueFromPath)(r,t),a=(0,i.readState)(n));var l=(0,o.parsePath)(r);return l.state=a,(0,_.createLocation)(l,void 0,n)},c=void 0,d=(t.startListener=function(e,t,r){var n=function(){var n=s(),_=t.encodePath(n);if(n!==_)l(_);else{var a=u(t,r);if(c&&a.key&&c.key===a.key)return;c=a,e(a)}},_=s(),i=t.encodePath(_);return _!==i&&l(i),(0,a.addEventListener)(window,"hashchange",n),function(){return(0,a.removeEventListener)(window,"hashchange",n)}},function(e,t,r,n){var _=e.state,a=e.key,s=t.encodePath((0,o.createPath)(e));void 0!==_&&(s=(0,o.addQueryStringValueToPath)(s,r,a),(0,i.saveState)(a,_)),c=e,n(s)});t.pushLocation=function(e,t,r){return d(e,t,r,function(e){s()!==e&&function(e){window.location.hash=e}(e)})},t.replaceLocation=function(e,t,r){return d(e,t,r,function(e){s()!==e&&l(e)})}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:{},i=r.selectLocationState,o=void 0===i?a:i,s=r.adjustUrlOnReplay,l=void 0===s||s;if(void 0===o(t.getState()))throw new Error("Expected the routing state to be available either as `state.routing` or as the custom expression you can specify as `selectLocationState` in the `syncHistoryWithStore()` options. Ensure you have added the `routerReducer` to your store's reducers via `combineReducers` or whatever method you use to isolate your reducers.");var u=void 0,c=void 0,d=void 0,f=void 0,p=void 0,h=function(e){var r=o(t.getState());return r.locationBeforeTransitions||(e?u:void 0)};if(u=h(),l){var E=function(){var t=h(!0);p!==t&&u!==t&&(c=!0,p=t,e.transitionTo(n({},t,{action:"PUSH"})),c=!1)};d=t.subscribe(E),E()}var m=function(e){c||(p=e,!u&&(u=e,h())||t.dispatch({type:_.LOCATION_CHANGE,payload:e}))};f=e.listen(m),e.getCurrentLocation&&m(e.getCurrentLocation());return n({},e,{listen:function(r){var n=h(!0),_=!1,a=t.subscribe(function(){var e=h(!0);e!==n&&(n=e,_||r(n))});return e.getCurrentLocation||r(n),function(){_=!0,a()}},unsubscribe:function(){l&&d(),f()}})};var _=r(236),a=function(e){return e.routing}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return function(){return function(t){return function(r){if(r.type!==n.CALL_HISTORY_METHOD)return t(r);var _=r.payload,a=_.method,i=_.args;e[a].apply(e,function(e){if(Array.isArray(e)){for(var t=0,r=Array(e.length);t1)throw new Error('ReactElement styleName property defines multiple module names ("'+e+'").');return r},e.exports=t.default},function(e,t,r){var n=r(246),_=r(431),a=r(432),i=r(62);e.exports=function(e,t){return(i(e)?n:_)(e,a(t,3))}},function(e,t,r){var n=r(241);e.exports=function(e,t){var r=[];return n(e,function(e,n,_){t(e,n,_)&&r.push(e)}),r}},function(e,t,r){var n=r(433),_=r(483),a=r(151),i=r(62),o=r(491);e.exports=function(e){return"function"==typeof e?e:null==e?a:"object"==typeof e?i(e)?_(e[0],e[1]):n(e):o(e)}},function(e,t,r){var n=r(434),_=r(482),a=r(252);e.exports=function(e){var t=_(e);return 1==t.length&&t[0][2]?a(t[0][0],t[0][1]):function(r){return r===e||n(r,e,t)}}},function(e,t,r){var n=r(247),_=r(249),a=1,i=2;e.exports=function(e,t,r,o){var s=r.length,l=s,u=!o;if(null==e)return!l;for(e=Object(e);s--;){var c=r[s];if(u&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++s-1}},function(e,t,r){var n=r(153);e.exports=function(e,t){var r=this.__data__,_=n(r,e);return _<0?(++this.size,r.push([e,t])):r[_][1]=t,this}},function(e,t,r){var n=r(152);e.exports=function(){this.__data__=new n,this.size=0}},function(e,t){e.exports=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}},function(e,t){e.exports=function(e){return this.__data__.get(e)}},function(e,t){e.exports=function(e){return this.__data__.has(e)}},function(e,t,r){var n=r(152),_=r(183),a=r(184),i=200;e.exports=function(e,t){var r=this.__data__;if(r instanceof n){var o=r.__data__;if(!_||o.length=_?e:n(e,t,r)}},function(e,t){e.exports=function(e,t,r){var n=-1,_=e.length;t<0&&(t=-t>_?0:_+t),(r=r>_?_:r)<0&&(r+=_),_=t>r?0:r-t>>>0,t>>>=0;for(var a=Array(_);++n<_;)a[n]=e[n+t];return a}},function(e,t,r){var n=r(186);e.exports=function(e,t){for(var r=e.length;r--&&n(t,e[r],0)>-1;);return r}},function(e,t){e.exports=function(e,t,r,n){for(var _=e.length,a=r+(n?1:-1);n?a--:++a<_;)if(t(e[a],a,e))return a;return-1}},function(e,t){e.exports=function(e){return e!=e}},function(e,t){e.exports=function(e,t,r){for(var n=r-1,_=e.length;++n<_;)if(e[n]===t)return n;return-1}},function(e,t,r){var n=r(186);e.exports=function(e,t){for(var r=-1,_=e.length;++r<_&&n(t,e[r],0)>-1;);return r}},function(e,t,r){var n=r(503),_=r(504),a=r(505);e.exports=function(e){return _(e)?a(e):n(e)}},function(e,t){e.exports=function(e){return e.split("")}},function(e,t){var r=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");e.exports=function(e){return r.test(e)}},function(e,t){var r="[\\ud800-\\udfff]",n="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",_="\\ud83c[\\udffb-\\udfff]",a="[^\\ud800-\\udfff]",i="(?:\\ud83c[\\udde6-\\uddff]){2}",o="[\\ud800-\\udbff][\\udc00-\\udfff]",s="(?:"+n+"|"+_+")"+"?",l="[\\ufe0e\\ufe0f]?"+s+("(?:\\u200d(?:"+[a,i,o].join("|")+")[\\ufe0e\\ufe0f]?"+s+")*"),u="(?:"+[a+n+"?",n,i,o,r].join("|")+")",c=RegExp(_+"(?="+_+")|"+u+l,"g");e.exports=function(e){return e.match(c)||[]}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(e){return e&&e.__esModule?e:{default:e}}(r(507));var _="undefined"==typeof Map?n.default:Map,a=new _;t.default=function(e,t,r){var n=void 0,i=void 0;if(i=a.get(e)){var o=i.get(t);if(o)return o}else i=new _,a.set(e,new _);for(var s in n="",t)if(t.hasOwnProperty(s)){var l=e[t[s]];if(l)n+=" "+l;else{if("throw"===r)throw new Error('"'+t[s]+'" CSS module is undefined.');"log"===r&&console.warn('"'+t[s]+'" CSS module is undefined.')}}return n=n.trim(),i.set(t,n),n},e.exports=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.size=0,this.keys=[],this.values=[]}return e.prototype.get=function(e){var t=this.keys.indexOf(e);return this.values[t]},e.prototype.set=function(e,t){return this.keys.push(e),this.values.push(t),this.size=this.keys.length,t},e}();t.default=n,e.exports=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=s(r(509)),_=s(r(75)),a=s(r(0)),i=s(r(239)),o=s(r(258));function s(e){return e&&e.__esModule?e:{default:e}}t.default=function(e,t,r){var s=function(){for(var n=arguments.length,s=Array(n>1?n-1:0),l=1;l0&&void 0!==arguments[0]?arguments[0]:{},c=void 0,d=void 0,f=(0,_.default)(t);u.styles||f?(d=Object.assign({},u),c=u.styles?u.styles:t,Object.defineProperty(d,"styles",{configurable:!0,enumerable:!1,value:c,writable:!1})):(d=u,c={});var p=e.apply(void 0,[d].concat(s));return p?(0,i.default)(p,c,r):(0,o.default)(a.default.version)};return(0,n.default)(s,e),s},e.exports=t.default},function(e,t,r){var n=r(259),_=r(510),a=r(511),i=r(117),o=r(245),s=r(116),l=Object.prototype.hasOwnProperty,u=a(function(e,t){if(o(t)||i(t))_(t,s(t),e);else for(var r in t)l.call(t,r)&&n(e,r,t[r])});e.exports=u},function(e,t,r){var n=r(259),_=r(260);e.exports=function(e,t,r,a){var i=!r;r||(r={});for(var o=-1,s=t.length;++o1?r[a-1]:void 0,o=a>2?r[2]:void 0;for(i=e.length>3&&"function"==typeof i?(a--,i):void 0,o&&_(r[0],r[1],o)&&(i=a<3?void 0:i,a=1),t=Object(t);++n0){if(++t>=r)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}},function(e,t,r){var n=r(154),_=r(117),a=r(181),i=r(75);e.exports=function(e,t,r){if(!i(r))return!1;var o=typeof t;return!!("number"==o?_(r)&&a(t,r.length):"string"==o&&t in r)&&n(r[t],e)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(r(521)),_=o(r(528)),a=o(r(529)),i=o(r(240));function o(e){return e&&e.__esModule?e:{default:e}}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={allowMultiple:!1,handleNotFoundStyleName:"throw"};return(0,i.default)(e,function(e,r){if((0,a.default)(t[r]))throw new Error('Unknown configuration property "'+r+'".');if("allowMultiple"===r&&!(0,_.default)(e))throw new Error('"allowMultiple" property value must be a boolean.');if("handleNotFoundStyleName"===r&&!(0,n.default)(["throw","log","ignore"],e))throw new Error('"handleNotFoundStyleName" property value must be "throw", "log" or "ignore".');t[r]=e}),t},e.exports=t.default},function(e,t,r){var n=r(186),_=r(117),a=r(522),i=r(523),o=r(526),s=Math.max;e.exports=function(e,t,r,l){e=_(e)?e:o(e),r=r&&!l?i(r):0;var u=e.length;return r<0&&(r=s(u+r,0)),a(e)?r<=u&&e.indexOf(t,r)>-1:!!u&&n(e,t,r)>-1}},function(e,t,r){var n=r(91),_=r(62),a=r(92),i="[object String]";e.exports=function(e){return"string"==typeof e||!_(e)&&a(e)&&n(e)==i}},function(e,t,r){var n=r(524);e.exports=function(e){var t=n(e),r=t%1;return t==t?r?t-r:t:0}},function(e,t,r){var n=r(525),_=1/0,a=1.7976931348623157e308;e.exports=function(e){return e?(e=n(e))===_||e===-_?(e<0?-1:1)*a:e==e?e:0:0===e?e:0}},function(e,t,r){var n=r(75),_=r(157),a=NaN,i=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,l=/^0o[0-7]+$/i,u=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(_(e))return a;if(n(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=n(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(i,"");var r=s.test(e);return r||l.test(e)?u(e.slice(2),r?2:8):o.test(e)?a:+e}},function(e,t,r){var n=r(527),_=r(116);e.exports=function(e){return null==e?[]:n(e,_(e))}},function(e,t,r){var n=r(257);e.exports=function(e,t){return n(t,function(t){return e[t]})}},function(e,t,r){var n=r(91),_=r(92),a="[object Boolean]";e.exports=function(e){return!0===e||!1===e||_(e)&&n(e)==a}},function(e,t){e.exports=function(e){return void 0===e}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){e.classList?e.classList.add(t):(0,n.default)(e,t)||("string"==typeof e.className?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))};var n=function(e){return e&&e.__esModule?e:{default:e}}(r(531));e.exports=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")},e.exports=t.default},function(e,t,r){"use strict";function n(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}e.exports=function(e,t){e.classList?e.classList.remove(t):"string"==typeof e.className?e.className=n(e.className,t):e.setAttribute("class",n(e.className&&e.className.baseVal||"",t))}},function(e,t,r){"use strict";t.__esModule=!0,t.default=t.EXITING=t.ENTERED=t.ENTERING=t.EXITED=t.UNMOUNTED=void 0;var n=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,r):{};n.get||n.set?Object.defineProperty(t,r,n):t[r]=e[r]}return t.default=e,t}(r(9)),_=o(r(0)),a=o(r(50)),i=r(534);r(262);function o(e){return e&&e.__esModule?e:{default:e}}var s="unmounted";t.UNMOUNTED=s;var l="exited";t.EXITED=l;var u="entering";t.ENTERING=u;var c="entered";t.ENTERED=c;t.EXITING="exiting";var d=function(e){function t(t,r){var n;n=e.call(this,t,r)||this;var _,a=r.transitionGroup,i=a&&!a.isMounting?t.enter:t.appear;return n.appearStatus=null,t.in?i?(_=l,n.appearStatus=u):_=c:_=t.unmountOnExit||t.mountOnEnter?s:l,n.state={status:_},n.nextCallback=null,n}!function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}(t,e);var r=t.prototype;return r.getChildContext=function(){return{transitionGroup:null}},t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===s?{status:l}:null},r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(e){var t=null;if(e!==this.props){var r=this.state.status;this.props.in?r!==u&&r!==c&&(t=u):r!==u&&r!==c||(t="exiting")}this.updateStatus(!1,t)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var e,t,r,n=this.props.timeout;return e=t=r=n,null!=n&&"number"!=typeof n&&(e=n.exit,t=n.enter,r=n.appear),{exit:e,enter:t,appear:r}},r.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t){this.cancelNextCallback();var r=a.default.findDOMNode(this);t===u?this.performEnter(r,e):this.performExit(r)}else this.props.unmountOnExit&&this.state.status===l&&this.setState({status:s})},r.performEnter=function(e,t){var r=this,n=this.props.enter,_=this.context.transitionGroup?this.context.transitionGroup.isMounting:t,a=this.getTimeouts();t||n?(this.props.onEnter(e,_),this.safeSetState({status:u},function(){r.props.onEntering(e,_),r.onTransitionEnd(e,a.enter,function(){r.safeSetState({status:c},function(){r.props.onEntered(e,_)})})})):this.safeSetState({status:c},function(){r.props.onEntered(e)})},r.performExit=function(e){var t=this,r=this.props.exit,n=this.getTimeouts();r?(this.props.onExit(e),this.safeSetState({status:"exiting"},function(){t.props.onExiting(e),t.onTransitionEnd(e,n.exit,function(){t.safeSetState({status:l},function(){t.props.onExited(e)})})})):this.safeSetState({status:l},function(){t.props.onExited(e)})},r.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},r.setNextCallback=function(e){var t=this,r=!0;return this.nextCallback=function(n){r&&(r=!1,t.nextCallback=null,e(n))},this.nextCallback.cancel=function(){r=!1},this.nextCallback},r.onTransitionEnd=function(e,t,r){this.setNextCallback(r),e?(this.props.addEndListener&&this.props.addEndListener(e,this.nextCallback),null!=t&&setTimeout(this.nextCallback,t)):setTimeout(this.nextCallback,0)},r.render=function(){var e=this.state.status;if(e===s)return null;var t=this.props,r=t.children,n=function(e,t){if(null==e)return{};var r,n,_={},a=Object.keys(e);for(n=0;n=0||(_[r]=e[r]);return _}(t,["children"]);if(delete n.in,delete n.mountOnEnter,delete n.unmountOnExit,delete n.appear,delete n.enter,delete n.exit,delete n.timeout,delete n.addEndListener,delete n.onEnter,delete n.onEntering,delete n.onEntered,delete n.onExit,delete n.onExiting,delete n.onExited,"function"==typeof r)return r(e,n);var a=_.default.Children.only(r);return _.default.cloneElement(a,n)},t}(_.default.Component);function f(){}d.contextTypes={transitionGroup:n.object},d.childContextTypes={transitionGroup:function(){}},d.propTypes={},d.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:f,onEntering:f,onEntered:f,onExit:f,onExiting:f,onExited:f},d.UNMOUNTED=0,d.EXITED=1,d.ENTERING=2,d.ENTERED=3,d.EXITING=4;var p=(0,i.polyfill)(d);t.default=p},function(e,t,r){"use strict";function n(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!==e&&void 0!==e&&this.setState(e)}function _(e){this.setState(function(t){var r=this.constructor.getDerivedStateFromProps(e,t);return null!==r&&void 0!==r?r:null}.bind(this))}function a(e,t){try{var r=this.props,n=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(r,n)}finally{this.props=r,this.state=n}}function i(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if("function"!=typeof e.getDerivedStateFromProps&&"function"!=typeof t.getSnapshotBeforeUpdate)return e;var r=null,i=null,o=null;if("function"==typeof t.componentWillMount?r="componentWillMount":"function"==typeof t.UNSAFE_componentWillMount&&(r="UNSAFE_componentWillMount"),"function"==typeof t.componentWillReceiveProps?i="componentWillReceiveProps":"function"==typeof t.UNSAFE_componentWillReceiveProps&&(i="UNSAFE_componentWillReceiveProps"),"function"==typeof t.componentWillUpdate?o="componentWillUpdate":"function"==typeof t.UNSAFE_componentWillUpdate&&(o="UNSAFE_componentWillUpdate"),null!==r||null!==i||null!==o){var s=e.displayName||e.name,l="function"==typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+s+" uses "+l+" but also contains the following legacy lifecycles:"+(null!==r?"\n "+r:"")+(null!==i?"\n "+i:"")+(null!==o?"\n "+o:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"==typeof e.getDerivedStateFromProps&&(t.componentWillMount=n,t.componentWillReceiveProps=_),"function"==typeof t.getSnapshotBeforeUpdate){if("function"!=typeof t.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=a;var u=t.componentDidUpdate;t.componentDidUpdate=function(e,t,r){var n=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:r;u.call(this,e,t,n)}}return e}r.r(t),r.d(t,"polyfill",function(){return i}),n.__suppressDeprecationWarning=!0,_.__suppressDeprecationWarning=!0,a.__suppressDeprecationWarning=!0},function(e,t,r){"use strict";var n=r(192),_=r(120),a=r(125),i={};r(84)(i,r(36)("iterator"),function(){return this}),e.exports=function(e,t,r){e.prototype=n(i,{next:_(1,r)}),a(e,t+" Iterator")}},function(e,t,r){var n=r(63),_=r(67),a=r(104);e.exports=r(64)?Object.defineProperties:function(e,t){_(e);for(var r,i=a(t),o=i.length,s=0;o>s;)n.f(e,r=i[s++],t[r]);return e}},function(e,t,r){var n=r(159),_=Math.max,a=Math.min;e.exports=function(e,t){return(e=n(e))<0?_(e+t,0):a(e,t)}},function(e,t,r){var n=r(96),_=r(105),a=r(193)("IE_PROTO"),i=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=_(e),n(e,a)?e[a]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?i:null}},function(e,t,r){var n=r(159),_=r(122);e.exports=function(e){return function(t,r){var a,i,o=String(_(t)),s=n(r),l=o.length;return s<0||s>=l?e?"":void 0:(a=o.charCodeAt(s))<55296||a>56319||s+1===l||(i=o.charCodeAt(s+1))<56320||i>57343?e?o.charAt(s):a:e?o.slice(s,s+2):i-56320+(a-55296<<10)+65536}}},function(e,t,r){"use strict";var n=r(63),_=r(120);e.exports=function(e,t,r){t in e?n.f(e,t,_(0,r)):e[t]=r}},function(e,t,r){var n=r(542);e.exports=function(e,t){return new(n(e))(t)}},function(e,t,r){var n=r(57),_=r(274),a=r(36)("species");e.exports=function(e){var t;return _(e)&&("function"!=typeof(t=e.constructor)||t!==Array&&!_(t.prototype)||(t=void 0),n(t)&&null===(t=t[a])&&(t=void 0)),void 0===t?Array:t}},function(e,t,r){"use strict";function n(e){return e.replace(/[-|:]([a-z])/g,function(e){return e[1].toUpperCase()})}function _(e,t){return 0===e.indexOf(t)}Object.defineProperty(t,"__esModule",{value:!0}),t.convertReactSVGDOMProperty=n,t.startsWith=_,t.serializeAttrs=i,t.getSVGFromSource=o,t.extractSVGProps=function(e){var t=o(e).attributes;return t.length>0?i(t):null};var a="data-";function i(e){for(var t={},r=0;rShapeCreated with Sketch.'},function(e,t){e.exports=''},function(e,t){e.exports=''},function(e,t){e.exports=''},function(e,t){e.exports=''},function(e,t){e.exports=''},function(e,t){e.exports=''},function(e,t){e.exports=''},function(e,t){e.exports=''},function(e,t){e.exports=''},function(e,t){e.exports=''},function(e,t){e.exports='searchCreated with Sketch.'},function(e,t){e.exports='Created with Sketch.'},function(e,t,r){"use strict";var n=r(104),_=r(197),a=r(161),i=r(105),o=r(190),s=Object.assign;e.exports=!s||r(51)(function(){var e={},t={},r=Symbol(),n="abcdefghijklmnopqrst";return e[r]=7,n.split("").forEach(function(e){t[e]=e}),7!=s({},e)[r]||Object.keys(s({},t)).join("")!=n})?function(e,t){for(var r=i(e),s=arguments.length,l=1,u=_.f,c=a.f;s>l;)for(var d,f=o(arguments[l++]),p=u?n(f).concat(u(f)):n(f),h=p.length,E=0;h>E;)c.call(f,d=p[E++])&&(r[d]=f[d]);return r}:s},function(e,t,r){var n=r(44),_=r(560);n(n.P+n.F*(Date.prototype.toISOString!==_),"Date",{toISOString:_})},function(e,t,r){"use strict";var n=r(51),_=Date.prototype.getTime,a=Date.prototype.toISOString,i=function(e){return e>9?e:"0"+e};e.exports=n(function(){return"0385-07-25T07:06:39.999Z"!=a.call(new Date(-5e13-1))})||!n(function(){a.call(new Date(NaN))})?function(){if(!isFinite(_.call(this)))throw RangeError("Invalid time value");var e=this,t=e.getUTCFullYear(),r=e.getUTCMilliseconds(),n=t<0?"-":t>9999?"+":"";return n+("00000"+Math.abs(t)).slice(n?-6:-4)+"-"+i(e.getUTCMonth()+1)+"-"+i(e.getUTCDate())+"T"+i(e.getUTCHours())+":"+i(e.getUTCMinutes())+":"+i(e.getUTCSeconds())+"."+(r>99?r:"0"+i(r))+"Z"}:a},function(e,t,r){ /* flatpickr v4.5.2, @license MIT */ -e.exports=function(){"use strict";var e=function(e){return("0"+e).slice(-2)},t=function(e){return!0===e?1:0};function r(e,t,r){var n;return void 0===r&&(r=!1),function(){var _=this,a=arguments;null!==n&&clearTimeout(n),n=window.setTimeout(function(){n=null,r||e.apply(_,a)},t),r&&!n&&e.apply(_,a)}}var n=function(e){return e instanceof Array?e:[e]},_=function(){},a=function(e,t,r){return r.months[t?"shorthand":"longhand"][e]},i={D:_,F:function(e,t,r){e.setMonth(r.months.longhand.indexOf(t))},G:function(e,t){e.setHours(parseFloat(t))},H:function(e,t){e.setHours(parseFloat(t))},J:function(e,t){e.setDate(parseFloat(t))},K:function(e,r,n){e.setHours(e.getHours()%12+12*t(new RegExp(n.amPM[1],"i").test(r)))},M:function(e,t,r){e.setMonth(r.months.shorthand.indexOf(t))},S:function(e,t){e.setSeconds(parseFloat(t))},U:function(e,t){return new Date(1e3*parseFloat(t))},W:function(e,t){var r=parseInt(t);return new Date(e.getFullYear(),0,2+7*(r-1),0,0,0,0)},Y:function(e,t){e.setFullYear(parseFloat(t))},Z:function(e,t){return new Date(t)},d:function(e,t){e.setDate(parseFloat(t))},h:function(e,t){e.setHours(parseFloat(t))},i:function(e,t){e.setMinutes(parseFloat(t))},j:function(e,t){e.setDate(parseFloat(t))},l:_,m:function(e,t){e.setMonth(parseFloat(t)-1)},n:function(e,t){e.setMonth(parseFloat(t)-1)},s:function(e,t){e.setSeconds(parseFloat(t))},w:_,y:function(e,t){e.setFullYear(2e3+parseFloat(t))}},o={D:"(\\w+)",F:"(\\w+)",G:"(\\d\\d|\\d)",H:"(\\d\\d|\\d)",J:"(\\d\\d|\\d)\\w+",K:"",M:"(\\w+)",S:"(\\d\\d|\\d)",U:"(.+)",W:"(\\d\\d|\\d)",Y:"(\\d{4})",Z:"(.+)",d:"(\\d\\d|\\d)",h:"(\\d\\d|\\d)",i:"(\\d\\d|\\d)",j:"(\\d\\d|\\d)",l:"(\\w+)",m:"(\\d\\d|\\d)",n:"(\\d\\d|\\d)",s:"(\\d\\d|\\d)",w:"(\\d\\d|\\d)",y:"(\\d{2})"},s={Z:function(e){return e.toISOString()},D:function(e,t,r){return t.weekdays.shorthand[s.w(e,t,r)]},F:function(e,t,r){return a(s.n(e,t,r)-1,!1,t)},G:function(t,r,n){return e(s.h(t,r,n))},H:function(t){return e(t.getHours())},J:function(e,t){return void 0!==t.ordinal?e.getDate()+t.ordinal(e.getDate()):e.getDate()},K:function(e,r){return r.amPM[t(e.getHours()>11)]},M:function(e,t){return a(e.getMonth(),!0,t)},S:function(t){return e(t.getSeconds())},U:function(e){return e.getTime()/1e3},W:function(e,t,r){return r.getWeek(e)},Y:function(e){return e.getFullYear()},d:function(t){return e(t.getDate())},h:function(e){return e.getHours()%12?e.getHours()%12:12},i:function(t){return e(t.getMinutes())},j:function(e){return e.getDate()},l:function(e,t){return t.weekdays.longhand[e.getDay()]},m:function(t){return e(t.getMonth()+1)},n:function(e){return e.getMonth()+1},s:function(e){return e.getSeconds()},w:function(e){return e.getDay()},y:function(e){return String(e.getFullYear()).substring(2)}},l={weekdays:{shorthand:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],longhand:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},months:{shorthand:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],longhand:["January","February","March","April","May","June","July","August","September","October","November","December"]},daysInMonth:[31,28,31,30,31,30,31,31,30,31,30,31],firstDayOfWeek:0,ordinal:function(e){var t=e%100;if(t>3&&t<21)return"th";switch(t%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}},rangeSeparator:" to ",weekAbbreviation:"Wk",scrollTitle:"Scroll to increment",toggleTitle:"Click to toggle",amPM:["AM","PM"],yearAriaLabel:"Year"},u=function(e){var t=e.config,r=void 0===t?E:t,n=e.l10n,_=void 0===n?l:n;return function(e,t,n){var a=n||_;return void 0!==r.formatDate?r.formatDate(e,t,a):t.split("").map(function(t,n,_){return s[t]&&"\\"!==_[n-1]?s[t](e,a,r):"\\"!==t?t:""}).join("")}},c=function(e){var t=e.config,r=void 0===t?E:t,n=e.l10n,_=void 0===n?l:n;return function(e,t,n,a){if(0===e||e){var s,l=a||_,u=e;if(e instanceof Date)s=new Date(e.getTime());else if("string"!=typeof e&&void 0!==e.toFixed)s=new Date(e);else if("string"==typeof e){var c=t||(r||E).dateFormat,d=String(e).trim();if("today"===d)s=new Date,n=!0;else if(/Z$/.test(d)||/GMT$/.test(d))s=new Date(e);else if(r&&r.parseDate)s=r.parseDate(e,c);else{s=r&&r.noCalendar?new Date((new Date).setHours(0,0,0,0)):new Date((new Date).getFullYear(),0,1,0,0,0,0);for(var f,p=[],h=0,m=0,g="";hMath.min(t,r)&&e",noCalendar:!1,now:new Date,onChange:[],onClose:[],onDayCreate:[],onDestroy:[],onKeyDown:[],onMonthChange:[],onOpen:[],onParseConfig:[],onReady:[],onValueUpdate:[],onYearChange:[],onPreCalendarPosition:[],plugins:[],position:"auto",positionElement:void 0,prevArrow:"",shorthandCurrentMonth:!1,showMonths:1,static:!1,time_24hr:!1,weekNumbers:!1,wrap:!1};function m(e,t,r){if(!0===r)return e.classList.add(t);e.classList.remove(t)}function g(e,t,r){var n=window.document.createElement(e);return t=t||"",r=r||"",n.className=t,void 0!==r&&(n.textContent=r),n}function b(e){for(;e.firstChild;)e.removeChild(e.firstChild)}function v(e,t){var r=g("div","numInputWrapper"),n=g("input","numInput "+e),_=g("span","arrowUp"),a=g("span","arrowDown");if(n.type="text",n.pattern="\\d*",void 0!==t)for(var i in t)n.setAttribute(i,t[i]);return r.appendChild(n),r.appendChild(_),r.appendChild(a),r}"function"!=typeof Object.assign&&(Object.assign=function(e){if(!e)throw TypeError("Cannot convert undefined or null to object");for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;ni&&(c=_===s.hourElement?c-i-t(!s.amPM):a,f&&S(void 0,1,s.hourElement)),s.amPM&&d&&(1===o?c+l===23:Math.abs(c-l)>o)&&(s.amPM.textContent=s.l10n.amPM[t(s.amPM.textContent===s.l10n.amPM[0])]),_.value=e(c)}}(r);var n=s._input.value;D(),me(),s._input.value!==n&&s._debouncedChange()}}function D(){if(void 0!==s.hourElement&&void 0!==s.minuteElement){var e=(parseInt(s.hourElement.value.slice(-2),10)||0)%24,r=(parseInt(s.minuteElement.value,10)||0)%60,n=void 0!==s.secondElement?(parseInt(s.secondElement.value,10)||0)%60:0;void 0!==s.amPM&&(e=function(e,r){return e%12+12*t(r===s.l10n.amPM[1])}(e,s.amPM.textContent));var _=void 0!==s.config.minTime||s.config.minDate&&s.minDateHasTime&&s.latestSelectedDateObj&&0===d(s.latestSelectedDateObj,s.config.minDate,!0),a=void 0!==s.config.maxTime||s.config.maxDate&&s.maxDateHasTime&&s.latestSelectedDateObj&&0===d(s.latestSelectedDateObj,s.config.maxDate,!0);if(a){var i=void 0!==s.config.maxTime?s.config.maxTime:s.config.maxDate;(e=Math.min(e,i.getHours()))===i.getHours()&&(r=Math.min(r,i.getMinutes())),r===i.getMinutes()&&(n=Math.min(n,i.getSeconds()))}if(_){var o=void 0!==s.config.minTime?s.config.minTime:s.config.minDate;(e=Math.max(e,o.getHours()))===o.getHours()&&(r=Math.max(r,o.getMinutes())),r===o.getMinutes()&&(n=Math.max(n,o.getSeconds()))}T(e,r,n)}}function y(e){var t=e||s.latestSelectedDateObj;t&&T(t.getHours(),t.getMinutes(),t.getSeconds())}function w(){var e=s.config.defaultHour,t=s.config.defaultMinute,r=s.config.defaultSeconds;if(void 0!==s.config.minDate){var n=s.config.minDate.getHours(),_=s.config.minDate.getMinutes();(e=Math.max(e,n))===n&&(t=Math.max(_,t)),e===n&&t===_&&(r=s.config.minDate.getSeconds())}if(void 0!==s.config.maxDate){var a=s.config.maxDate.getHours(),i=s.config.maxDate.getMinutes();(e=Math.min(e,a))===a&&(t=Math.min(i,t)),e===a&&t===i&&(r=s.config.maxDate.getSeconds())}T(e,t,r)}function T(r,n,_){void 0!==s.latestSelectedDateObj&&s.latestSelectedDateObj.setHours(r%24,n,_||0,0),s.hourElement&&s.minuteElement&&!s.isMobile&&(s.hourElement.value=e(s.config.time_24hr?r:(12+r)%12+12*t(r%12==0)),s.minuteElement.value=e(n),void 0!==s.amPM&&(s.amPM.textContent=s.l10n.amPM[t(r>=12)]),void 0!==s.secondElement&&(s.secondElement.value=e(_)))}function A(e){var t=parseInt(e.target.value)+(e.delta||0);(t/1e3>1||"Enter"===e.key&&!/[^\d]/.test(t.toString()))&&Q(t)}function k(e,t,r,n){return t instanceof Array?t.forEach(function(t){return k(e,t,r,n)}):e instanceof Array?e.forEach(function(e){return k(e,t,r,n)}):(e.addEventListener(t,r,n),void s._handlers.push({element:e,event:t,handler:r,options:n}))}function I(e){return function(t){1===t.which&&e(t)}}function R(){de("onChange")}function L(){if(s.config.wrap&&["open","close","toggle","clear"].forEach(function(e){Array.prototype.forEach.call(s.element.querySelectorAll("[data-"+e+"]"),function(t){return k(t,"click",s[e])})}),s.isMobile)!function(){var e=s.config.enableTime?s.config.noCalendar?"time":"datetime-local":"date";s.mobileInput=g("input",s.input.className+" flatpickr-mobile"),s.mobileInput.step=s.input.getAttribute("step")||"any",s.mobileInput.tabIndex=1,s.mobileInput.type=e,s.mobileInput.disabled=s.input.disabled,s.mobileInput.required=s.input.required,s.mobileInput.placeholder=s.input.placeholder,s.mobileFormatStr="datetime-local"===e?"Y-m-d\\TH:i:S":"date"===e?"Y-m-d":"H:i:S",s.selectedDates.length>0&&(s.mobileInput.defaultValue=s.mobileInput.value=s.formatDate(s.selectedDates[0],s.mobileFormatStr)),s.config.minDate&&(s.mobileInput.min=s.formatDate(s.config.minDate,"Y-m-d")),s.config.maxDate&&(s.mobileInput.max=s.formatDate(s.config.maxDate,"Y-m-d")),s.input.type="hidden",void 0!==s.altInput&&(s.altInput.type="hidden");try{s.input.parentNode&&s.input.parentNode.insertBefore(s.mobileInput,s.input.nextSibling)}catch(e){}k(s.mobileInput,"change",function(e){s.setDate(e.target.value,!1,s.mobileFormatStr),de("onChange"),de("onClose")})}();else{var e=r(re,50);s._debouncedChange=r(R,O),s.daysContainer&&!/iPhone|iPad|iPod/i.test(navigator.userAgent)&&k(s.daysContainer,"mouseover",function(e){"range"===s.config.mode&&te(e.target)}),k(window.document.body,"keydown",ee),s.config.static||k(s._input,"keydown",ee),s.config.inline||s.config.static||k(window,"resize",e),void 0!==window.ontouchstart?k(window.document,"click",X):k(window.document,"mousedown",I(X)),k(window.document,"focus",X,{capture:!0}),!0===s.config.clickOpens&&(k(s._input,"focus",s.open),k(s._input,"mousedown",I(s.open))),void 0!==s.daysContainer&&(k(s.monthNav,"mousedown",I(ge)),k(s.monthNav,["keyup","increment"],A),k(s.daysContainer,"mousedown",I(se))),void 0!==s.timeContainer&&void 0!==s.minuteElement&&void 0!==s.hourElement&&(k(s.timeContainer,["increment"],C),k(s.timeContainer,"blur",C,{capture:!0}),k(s.timeContainer,"mousedown",I(U)),k([s.hourElement,s.minuteElement],["focus","click"],function(e){return e.target.select()}),void 0!==s.secondElement&&k(s.secondElement,"focus",function(){return s.secondElement&&s.secondElement.select()}),void 0!==s.amPM&&k(s.amPM,"mousedown",I(function(e){C(e),R()})))}}function B(e){var t=void 0!==e?s.parseDate(e):s.latestSelectedDateObj||(s.config.minDate&&s.config.minDate>s.now?s.config.minDate:s.config.maxDate&&s.config.maxDate11)]),s.amPM.title=s.l10n.toggleTitle,s.amPM.tabIndex=-1,s.timeContainer.appendChild(s.amPM)),s.timeContainer}()),m(s.calendarContainer,"rangeMode","range"===s.config.mode),m(s.calendarContainer,"animate",!0===s.config.animate),m(s.calendarContainer,"multiMonth",s.config.showMonths>1),s.calendarContainer.appendChild(r);var i=void 0!==s.config.appendTo&&void 0!==s.config.appendTo.nodeType;if((s.config.inline||s.config.static)&&(s.calendarContainer.classList.add(s.config.inline?"inline":"static"),s.config.inline&&(!i&&s.element.parentNode?s.element.parentNode.insertBefore(s.calendarContainer,s._input.nextSibling):void 0!==s.config.appendTo&&s.config.appendTo.appendChild(s.calendarContainer)),s.config.static)){var o=g("div","flatpickr-wrapper");s.element.parentNode&&s.element.parentNode.insertBefore(o,s.element),o.appendChild(s.element),s.altInput&&o.appendChild(s.altInput),o.appendChild(s.calendarContainer)}s.config.static||s.config.inline||(void 0!==s.config.appendTo?s.config.appendTo:window.document.body).appendChild(s.calendarContainer)}function W(e,t,r,n){var _=$(t,!0),a=g("span","flatpickr-day "+e,t.getDate().toString());return a.dateObj=t,a.$i=n,a.setAttribute("aria-label",s.formatDate(t,s.config.ariaDateFormat)),-1===e.indexOf("hidden")&&0===d(t,s.now)&&(s.todayDateElem=a,a.classList.add("today"),a.setAttribute("aria-current","date")),_?(a.tabIndex=-1,pe(t)&&(a.classList.add("selected"),s.selectedDateElem=a,"range"===s.config.mode&&(m(a,"startRange",s.selectedDates[0]&&0===d(t,s.selectedDates[0],!0)),m(a,"endRange",s.selectedDates[1]&&0===d(t,s.selectedDates[1],!0)),"nextMonthDay"===e&&a.classList.add("inRange")))):a.classList.add("disabled"),"range"===s.config.mode&&function(e){return!("range"!==s.config.mode||s.selectedDates.length<2)&&d(e,s.selectedDates[0])>=0&&d(e,s.selectedDates[1])<=0}(t)&&!pe(t)&&a.classList.add("inRange"),s.weekNumbers&&1===s.config.showMonths&&"prevMonthDay"!==e&&r%7==1&&s.weekNumbers.insertAdjacentHTML("beforeend",""+s.config.getWeek(t)+""),de("onDayCreate",a),a}function x(e){e.focus(),"range"===s.config.mode&&te(e)}function j(e){for(var t=e>0?0:s.config.showMonths-1,r=e>0?s.config.showMonths:-1,n=t;n!=r;n+=e)for(var _=s.daysContainer.children[n],a=e>0?0:_.children.length-1,i=e>0?_.children.length:-1,o=a;o!=i;o+=e){var l=_.children[o];if(-1===l.className.indexOf("hidden")&&$(l.dateObj))return l}}function N(e,t){var r=Z(document.activeElement||document.body),n=void 0!==e?e:r?document.activeElement:void 0!==s.selectedDateElem&&Z(s.selectedDateElem)?s.selectedDateElem:void 0!==s.todayDateElem&&Z(s.todayDateElem)?s.todayDateElem:j(t>0?1:-1);return void 0===n?s._input.focus():r?void function(e,t){for(var r=-1===e.className.indexOf("Month")?e.dateObj.getMonth():s.currentMonth,n=t>0?s.config.showMonths:-1,_=t>0?1:-1,a=r-s.currentMonth;a!=n;a+=_)for(var i=s.daysContainer.children[a],o=r-s.currentMonth===a?e.$i+t:t<0?i.children.length-1:0,l=i.children.length,u=o;u>=0&&u0?l:-1);u+=_){var c=i.children[u];if(-1===c.className.indexOf("hidden")&&$(c.dateObj)&&Math.abs(e.$i-u)>=Math.abs(t))return x(c)}s.changeMonth(_),N(j(_),0)}(n,t):x(n)}function q(e,t){for(var r=(new Date(e,t,1).getDay()-s.l10n.firstDayOfWeek+7)%7,n=s.utils.getDaysInMonth((t-1+12)%12),_=s.utils.getDaysInMonth(t),a=window.document.createDocumentFragment(),i=s.config.showMonths>1,o=i?"prevMonthDay hidden":"prevMonthDay",l=i?"nextMonthDay hidden":"nextMonthDay",u=n+1-r,c=0;u<=n;u++,c++)a.appendChild(W(o,new Date(e,t-1,u),u,c));for(u=1;u<=_;u++,c++)a.appendChild(W("",new Date(e,t,u),u,c));for(var d=_+1;d<=42-r&&(1===s.config.showMonths||c%7!=0);d++,c++)a.appendChild(W(l,new Date(e,t+1,d%_),d,c));var f=g("div","dayContainer");return f.appendChild(a),f}function F(){if(void 0!==s.daysContainer){b(s.daysContainer),s.weekNumbers&&b(s.weekNumbers);for(var e=document.createDocumentFragment(),t=0;t0&&e\n "+t.join("
")+"\n \n "}function Y(e,t){void 0===t&&(t=!0);var r=t?e:e-s.currentMonth;r<0&&!0===s._hidePrevMonthArrow||r>0&&!0===s._hideNextMonthArrow||(s.currentMonth+=r,(s.currentMonth<0||s.currentMonth>11)&&(s.currentYear+=s.currentMonth>11?1:-1,s.currentMonth=(s.currentMonth+12)%12,de("onYearChange")),F(),de("onMonthChange"),he())}function J(e){return!(!s.config.appendTo||!s.config.appendTo.contains(e))||s.calendarContainer.contains(e)}function X(e){if(s.isOpen&&!s.config.inline){var t=J(e.target),r=e.target===s.input||e.target===s.altInput||s.element.contains(e.target)||e.path&&e.path.indexOf&&(~e.path.indexOf(s.input)||~e.path.indexOf(s.altInput)),n="blur"===e.type?r&&e.relatedTarget&&!J(e.relatedTarget):!r&&!t,_=!s.config.ignoredFocusElements.some(function(t){return t.contains(e.target)});n&&_&&(s.close(),"range"===s.config.mode&&1===s.selectedDates.length&&(s.clear(!1),s.redraw()))}}function Q(e){if(!(!e||s.config.minDate&&es.config.maxDate.getFullYear())){var t=e,r=s.currentYear!==t;s.currentYear=t||s.currentYear,s.config.maxDate&&s.currentYear===s.config.maxDate.getFullYear()?s.currentMonth=Math.min(s.config.maxDate.getMonth(),s.currentMonth):s.config.minDate&&s.currentYear===s.config.minDate.getFullYear()&&(s.currentMonth=Math.max(s.config.minDate.getMonth(),s.currentMonth)),r&&(s.redraw(),de("onYearChange"))}}function $(e,t){void 0===t&&(t=!0);var r=s.parseDate(e,void 0,t);if(s.config.minDate&&r&&d(r,s.config.minDate,void 0!==t?t:!s.minDateHasTime)<0||s.config.maxDate&&r&&d(r,s.config.maxDate,void 0!==t?t:!s.maxDateHasTime)>0)return!1;if(0===s.config.enable.length&&0===s.config.disable.length)return!0;if(void 0===r)return!1;for(var n,_=s.config.enable.length>0,a=_?s.config.enable:s.config.disable,i=0;i=n.from.getTime()&&r.getTime()<=n.to.getTime())return _}return!_}function Z(e){return void 0!==s.daysContainer&&-1===e.className.indexOf("hidden")&&s.daysContainer.contains(e)}function ee(e){var t=e.target===s._input,r=s.config.allowInput,n=s.isOpen&&(!r||!t),_=s.config.inline&&t&&!r;if(13===e.keyCode&&t){if(r)return s.setDate(s._input.value,!0,e.target===s.altInput?s.config.altFormat:s.config.dateFormat),e.target.blur();s.open()}else if(J(e.target)||n||_){var a=!!s.timeContainer&&s.timeContainer.contains(e.target);switch(e.keyCode){case 13:a?C():se(e);break;case 27:e.preventDefault(),oe();break;case 8:case 46:t&&!s.config.allowInput&&(e.preventDefault(),s.clear());break;case 37:case 39:if(a)s.hourElement&&s.hourElement.focus();else if(e.preventDefault(),void 0!==s.daysContainer&&(!1===r||Z(document.activeElement))){var i=39===e.keyCode?1:-1;e.ctrlKey?(Y(i),N(j(1),0)):N(void 0,i)}break;case 38:case 40:e.preventDefault();var o=40===e.keyCode?1:-1;s.daysContainer&&void 0!==e.target.$i?e.ctrlKey?(Q(s.currentYear-o),N(j(1),0)):a||N(void 0,7*o):s.config.enableTime&&(!a&&s.hourElement&&s.hourElement.focus(),C(e),s._debouncedChange());break;case 9:if(!a){s.element.focus();break}var l=[s.hourElement,s.minuteElement,s.secondElement,s.amPM].filter(function(e){return e}),u=l.indexOf(e.target);if(-1!==u){var c=l[u+(e.shiftKey?-1:1)];void 0!==c?(e.preventDefault(),c.focus()):s.element.focus()}}}if(void 0!==s.amPM&&e.target===s.amPM)switch(e.key){case s.l10n.amPM[0].charAt(0):case s.l10n.amPM[0].charAt(0).toLowerCase():s.amPM.textContent=s.l10n.amPM[0],D(),me();break;case s.l10n.amPM[1].charAt(0):case s.l10n.amPM[1].charAt(0).toLowerCase():s.amPM.textContent=s.l10n.amPM[1],D(),me()}de("onKeyDown",e)}function te(e){if(1===s.selectedDates.length&&(!e||e.classList.contains("flatpickr-day")&&!e.classList.contains("disabled"))){for(var t=e?e.dateObj.getTime():s.days.firstElementChild.dateObj.getTime(),r=s.parseDate(s.selectedDates[0],void 0,!0).getTime(),n=Math.min(t,s.selectedDates[0].getTime()),_=Math.max(t,s.selectedDates[0].getTime()),a=s.daysContainer.lastChild.lastChild.dateObj.getTime(),i=!1,o=0,l=0,u=n;un&&u<_,uo)?o=u:u>r&&(!l||u0&&p0&&p>l;return E?(a.classList.add("notAllowed"),["inRange","startRange","endRange"].forEach(function(e){a.classList.remove(e)}),"continue"):i&&!E?"continue":(["startRange","inRange","endRange","notAllowed"].forEach(function(e){a.classList.remove(e)}),void(void 0!==e&&(e.classList.add(t0&&h&&h.lastChild.dateObj.getTime()>=p||(rt&&p===r&&a.classList.add("endRange"),p>=o&&(0===l||p<=l)&&f(p,r,t)&&a.classList.add("inRange")))))},m=0,g=d.children.length;m0||r.getMinutes()>0||r.getSeconds()>0),s.selectedDates&&(s.selectedDates=s.selectedDates.filter(function(e){return $(e)}),s.selectedDates.length||"min"!==e||y(r),me()),s.daysContainer&&(ie(),void 0!==r?s.currentYearElement[e]=r.getFullYear().toString():s.currentYearElement.removeAttribute(e),s.currentYearElement.disabled=!!n&&void 0!==r&&n.getFullYear()===r.getFullYear())}}function _e(){"object"!=typeof s.config.locale&&void 0===P.l10ns[s.config.locale]&&s.config.errorHandler(new Error("flatpickr: invalid locale "+s.config.locale)),s.l10n=Object.assign({},P.l10ns.default,"object"==typeof s.config.locale?s.config.locale:"default"!==s.config.locale?P.l10ns[s.config.locale]:void 0),o.K="("+s.l10n.amPM[0]+"|"+s.l10n.amPM[1]+"|"+s.l10n.amPM[0].toLowerCase()+"|"+s.l10n.amPM[1].toLowerCase()+")",s.formatDate=u(s),s.parseDate=c({config:s.config,l10n:s.l10n})}function ae(e){if(void 0!==s.calendarContainer){de("onPreCalendarPosition");var t=e||s._positionElement,r=Array.prototype.reduce.call(s.calendarContainer.children,function(e,t){return e+t.offsetHeight},0),n=s.calendarContainer.offsetWidth,_=s.config.position.split(" "),a=_[0],i=_.length>1?_[1]:null,o=t.getBoundingClientRect(),l=window.innerHeight-o.bottom,u="above"===a||"below"!==a&&lr,c=window.pageYOffset+o.top+(u?-r-2:t.offsetHeight+2);if(m(s.calendarContainer,"arrowTop",!u),m(s.calendarContainer,"arrowBottom",u),!s.config.inline){var d=window.pageXOffset+o.left-(null!=i&&"center"===i?(n-o.width)/2:0),f=window.document.body.offsetWidth-o.right,p=d+n>window.document.body.offsetWidth;m(s.calendarContainer,"rightMost",p),s.config.static||(s.calendarContainer.style.top=c+"px",p?(s.calendarContainer.style.left="auto",s.calendarContainer.style.right=f+"px"):(s.calendarContainer.style.left=d+"px",s.calendarContainer.style.right="auto"))}}}function ie(){s.config.noCalendar||s.isMobile||(he(),F())}function oe(){s._input.focus(),-1!==window.navigator.userAgent.indexOf("MSIE")||void 0!==navigator.msMaxTouchPoints?setTimeout(s.close,0):s.close()}function se(e){e.preventDefault(),e.stopPropagation();var t=function e(t,r){return r(t)?t:t.parentNode?e(t.parentNode,r):void 0}(e.target,function(e){return e.classList&&e.classList.contains("flatpickr-day")&&!e.classList.contains("disabled")&&!e.classList.contains("notAllowed")});if(void 0!==t){var r=t,n=s.latestSelectedDateObj=new Date(r.dateObj.getTime()),_=(n.getMonth()s.currentMonth+s.config.showMonths-1)&&"range"!==s.config.mode;if(s.selectedDateElem=r,"single"===s.config.mode)s.selectedDates=[n];else if("multiple"===s.config.mode){var a=pe(n);a?s.selectedDates.splice(parseInt(a),1):s.selectedDates.push(n)}else"range"===s.config.mode&&(2===s.selectedDates.length&&s.clear(!1),s.selectedDates.push(n),0!==d(n,s.selectedDates[0],!0)&&s.selectedDates.sort(function(e,t){return e.getTime()-t.getTime()}));if(D(),_){var i=s.currentYear!==n.getFullYear();s.currentYear=n.getFullYear(),s.currentMonth=n.getMonth(),i&&de("onYearChange"),de("onMonthChange")}if(he(),F(),me(),s.config.enableTime&&setTimeout(function(){return s.showTimeInput=!0},50),_||"range"===s.config.mode||1!==s.config.showMonths?s.selectedDateElem&&s.selectedDateElem.focus():x(r),void 0!==s.hourElement&&setTimeout(function(){return void 0!==s.hourElement&&s.hourElement.select()},451),s.config.closeOnSelect){var o="single"===s.config.mode&&!s.config.enableTime,l="range"===s.config.mode&&2===s.selectedDates.length&&!s.config.enableTime;(o||l)&&oe()}R()}}s.parseDate=c({config:s.config,l10n:s.l10n}),s._handlers=[],s._bind=k,s._setHoursFromDate=y,s._positionCalendar=ae,s.changeMonth=Y,s.changeYear=Q,s.clear=function(e){void 0===e&&(e=!0),s.input.value="",void 0!==s.altInput&&(s.altInput.value=""),void 0!==s.mobileInput&&(s.mobileInput.value=""),s.selectedDates=[],s.latestSelectedDateObj=void 0,s.showTimeInput=!1,!0===s.config.enableTime&&w(),s.redraw(),e&&de("onChange")},s.close=function(){s.isOpen=!1,s.isMobile||(s.calendarContainer.classList.remove("open"),s._input.classList.remove("active")),de("onClose")},s._createElement=g,s.destroy=function(){void 0!==s.config&&de("onDestroy");for(var e=s._handlers.length;e--;){var t=s._handlers[e];t.element.removeEventListener(t.event,t.handler,t.options)}if(s._handlers=[],s.mobileInput)s.mobileInput.parentNode&&s.mobileInput.parentNode.removeChild(s.mobileInput),s.mobileInput=void 0;else if(s.calendarContainer&&s.calendarContainer.parentNode)if(s.config.static&&s.calendarContainer.parentNode){var r=s.calendarContainer.parentNode;if(r.lastChild&&r.removeChild(r.lastChild),r.parentNode){for(;r.firstChild;)r.parentNode.insertBefore(r.firstChild,r);r.parentNode.removeChild(r)}}else s.calendarContainer.parentNode.removeChild(s.calendarContainer);s.altInput&&(s.input.type="text",s.altInput.parentNode&&s.altInput.parentNode.removeChild(s.altInput),delete s.altInput),s.input&&(s.input.type=s.input._type,s.input.classList.remove("flatpickr-input"),s.input.removeAttribute("readonly"),s.input.value=""),["_showTimeInput","latestSelectedDateObj","_hideNextMonthArrow","_hidePrevMonthArrow","__hideNextMonthArrow","__hidePrevMonthArrow","isMobile","isOpen","selectedDateElem","minDateHasTime","maxDateHasTime","days","daysContainer","_input","_positionElement","innerContainer","rContainer","monthNav","todayDateElem","calendarContainer","weekdayContainer","prevMonthNav","nextMonthNav","currentMonthElement","currentYearElement","navigationCurrentMonth","selectedDateElem","config"].forEach(function(e){try{delete s[e]}catch(e){}})},s.isEnabled=$,s.jumpToDate=B,s.open=function(e,t){if(void 0===t&&(t=s._positionElement),!0===s.isMobile)return e&&(e.preventDefault(),e.target&&e.target.blur()),void 0!==s.mobileInput&&(s.mobileInput.focus(),s.mobileInput.click()),void de("onOpen");if(!s._input.disabled&&!s.config.inline){var r=s.isOpen;s.isOpen=!0,r||(s.calendarContainer.classList.add("open"),s._input.classList.add("active"),de("onOpen"),ae(t)),!0===s.config.enableTime&&!0===s.config.noCalendar&&(0===s.selectedDates.length&&(s.setDate(void 0!==s.config.minDate?new Date(s.config.minDate.getTime()):new Date,!1),w(),me()),!1!==s.config.allowInput||void 0!==e&&s.timeContainer.contains(e.relatedTarget)||setTimeout(function(){return s.hourElement.select()},50))}},s.redraw=ie,s.set=function(e,t){null!==e&&"object"==typeof e?Object.assign(s.config,e):(s.config[e]=t,void 0!==le[e]?le[e].forEach(function(e){return e()}):h.indexOf(e)>-1&&(s.config[e]=n(t))),s.redraw(),B(),me(!1)},s.setDate=function(e,t,r){if(void 0===t&&(t=!1),void 0===r&&(r=s.config.dateFormat),0!==e&&!e||e instanceof Array&&0===e.length)return s.clear(t);ue(e,r),s.showTimeInput=s.selectedDates.length>0,s.latestSelectedDateObj=s.selectedDates[0],s.redraw(),B(),y(),me(t),t&&de("onChange")},s.toggle=function(e){if(!0===s.isOpen)return s.close();s.open(e)};var le={locale:[_e,G],showMonths:[H,M,z]};function ue(e,t){var r=[];if(e instanceof Array)r=e.map(function(e){return s.parseDate(e,t)});else if(e instanceof Date||"number"==typeof e)r=[s.parseDate(e,t)];else if("string"==typeof e)switch(s.config.mode){case"single":case"time":r=[s.parseDate(e,t)];break;case"multiple":r=e.split(s.config.conjunction).map(function(e){return s.parseDate(e,t)});break;case"range":r=e.split(s.l10n.rangeSeparator).map(function(e){return s.parseDate(e,t)})}else s.config.errorHandler(new Error("Invalid date supplied: "+JSON.stringify(e)));s.selectedDates=r.filter(function(e){return e instanceof Date&&$(e,!1)}),"range"===s.config.mode&&s.selectedDates.sort(function(e,t){return e.getTime()-t.getTime()})}function ce(e){return e.slice().map(function(e){return"string"==typeof e||"number"==typeof e||e instanceof Date?s.parseDate(e,void 0,!0):e&&"object"==typeof e&&e.from&&e.to?{from:s.parseDate(e.from,void 0),to:s.parseDate(e.to,void 0)}:e}).filter(function(e){return e})}function de(e,t){if(void 0!==s.config){var r=s.config[e];if(void 0!==r&&r.length>0)for(var n=0;r[n]&&ns.config.maxDate.getMonth():s.currentYear>s.config.maxDate.getFullYear()))}function Ee(e){return s.selectedDates.map(function(t){return s.formatDate(t,e)}).filter(function(e,t,r){return"range"!==s.config.mode||s.config.enableTime||r.indexOf(e)===t}).join("range"!==s.config.mode?s.config.conjunction:s.l10n.rangeSeparator)}function me(e){if(void 0===e&&(e=!0),0===s.selectedDates.length)return s.clear(e);void 0!==s.mobileInput&&s.mobileFormatStr&&(s.mobileInput.value=void 0!==s.latestSelectedDateObj?s.formatDate(s.latestSelectedDateObj,s.mobileFormatStr):""),s.input.value=Ee(s.config.dateFormat),void 0!==s.altInput&&(s.altInput.value=Ee(s.config.altFormat)),!1!==e&&de("onValueUpdate")}function ge(e){e.preventDefault();var t=s.prevMonthNav.contains(e.target),r=s.nextMonthNav.contains(e.target);t||r?Y(t?-1:1):s.yearElements.indexOf(e.target)>=0?e.target.select():e.target.classList.contains("arrowUp")?s.changeYear(s.currentYear+1):e.target.classList.contains("arrowDown")&&s.changeYear(s.currentYear-1)}return function(){s.element=s.input=_,s.isOpen=!1,function(){var e=["wrap","weekNumbers","allowInput","clickOpens","time_24hr","enableTime","noCalendar","altInput","shorthandCurrentMonth","inline","static","enableSeconds","disableMobile"],t=Object.assign({},i,JSON.parse(JSON.stringify(_.dataset||{}))),r={};s.config.parseDate=t.parseDate,s.config.formatDate=t.formatDate,Object.defineProperty(s.config,"enable",{get:function(){return s.config._enable},set:function(e){s.config._enable=ce(e)}}),Object.defineProperty(s.config,"disable",{get:function(){return s.config._disable},set:function(e){s.config._disable=ce(e)}});var a="time"===t.mode;t.dateFormat||!t.enableTime&&!a||(r.dateFormat=t.noCalendar||a?"H:i"+(t.enableSeconds?":S":""):P.defaultConfig.dateFormat+" H:i"+(t.enableSeconds?":S":"")),t.altInput&&(t.enableTime||a)&&!t.altFormat&&(r.altFormat=t.noCalendar||a?"h:i"+(t.enableSeconds?":S K":" K"):P.defaultConfig.altFormat+" h:i"+(t.enableSeconds?":S":"")+" K"),Object.defineProperty(s.config,"minDate",{get:function(){return s.config._minDate},set:ne("min")}),Object.defineProperty(s.config,"maxDate",{get:function(){return s.config._maxDate},set:ne("max")});var o=function(e){return function(t){s.config["min"===e?"_minTime":"_maxTime"]=s.parseDate(t,"H:i")}};Object.defineProperty(s.config,"minTime",{get:function(){return s.config._minTime},set:o("min")}),Object.defineProperty(s.config,"maxTime",{get:function(){return s.config._maxTime},set:o("max")}),"time"===t.mode&&(s.config.noCalendar=!0,s.config.enableTime=!0),Object.assign(s.config,r,t);for(var l=0;l-1?s.config[d]=n(c[d]).map(E).concat(s.config[d]):void 0===t[d]&&(s.config[d]=c[d])}de("onParseConfig")}(),_e(),s.input=s.config.wrap?_.querySelector("[data-input]"):_,s.input?(s.input._type=s.input.type,s.input.type="text",s.input.classList.add("flatpickr-input"),s._input=s.input,s.config.altInput&&(s.altInput=g(s.input.nodeName,s.input.className+" "+s.config.altInputClass),s._input=s.altInput,s.altInput.placeholder=s.input.placeholder,s.altInput.disabled=s.input.disabled,s.altInput.required=s.input.required,s.altInput.tabIndex=s.input.tabIndex,s.altInput.type="text",s.input.setAttribute("type","hidden"),!s.config.static&&s.input.parentNode&&s.input.parentNode.insertBefore(s.altInput,s.input.nextSibling)),s.config.allowInput||s._input.setAttribute("readonly","readonly"),s._positionElement=s.config.positionElement||s._input):s.config.errorHandler(new Error("Invalid input element specified")),function(){s.selectedDates=[],s.now=s.parseDate(s.config.now)||new Date;var e=s.config.defaultDate||("INPUT"!==s.input.nodeName&&"TEXTAREA"!==s.input.nodeName||!s.input.placeholder||s.input.value!==s.input.placeholder?s.input.value:null);e&&ue(e,s.config.dateFormat);var t=s.selectedDates.length>0?s.selectedDates[0]:s.config.minDate&&s.config.minDate.getTime()>s.now.getTime()?s.config.minDate:s.config.maxDate&&s.config.maxDate.getTime()0&&(s.latestSelectedDateObj=s.selectedDates[0]),void 0!==s.config.minTime&&(s.config.minTime=s.parseDate(s.config.minTime,"H:i")),void 0!==s.config.maxTime&&(s.config.maxTime=s.parseDate(s.config.maxTime,"H:i")),s.minDateHasTime=!!s.config.minDate&&(s.config.minDate.getHours()>0||s.config.minDate.getMinutes()>0||s.config.minDate.getSeconds()>0),s.maxDateHasTime=!!s.config.maxDate&&(s.config.maxDate.getHours()>0||s.config.maxDate.getMinutes()>0||s.config.maxDate.getSeconds()>0),Object.defineProperty(s,"showTimeInput",{get:function(){return s._showTimeInput},set:function(e){s._showTimeInput=e,s.calendarContainer&&m(s.calendarContainer,"showTimeInput",e),s.isOpen&&ae()}})}(),s.utils={getDaysInMonth:function(e,t){return void 0===e&&(e=s.currentMonth),void 0===t&&(t=s.currentYear),1===e&&(t%4==0&&t%100!=0||t%400==0)?29:s.l10n.daysInMonth[e]}},s.isMobile||K(),L(),(s.selectedDates.length||s.config.noCalendar)&&(s.config.enableTime&&y(s.config.noCalendar?s.latestSelectedDateObj||s.config.minDate:void 0),me(!1)),M(),s.showTimeInput=s.selectedDates.length>0||s.config.noCalendar;var e=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);!s.isMobile&&e&&ae(),de("onReady")}(),s}function C(e,t){for(var r=Array.prototype.slice.call(e),n=[],_=0;_l;)s.call(e,i=o[l++])&&t.push(i);return t}},function(e,t,r){var n=r(95),_=r(207).f,a={}.toString,i="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return i&&"[object Window]"==a.call(e)?function(e){try{return _(e)}catch(e){return i.slice()}}(e):_(n(e))}},function(e,t,r){"use strict";r(199);var n=r(67),_=r(200),a=r(64),i=/./.toString,o=function(e){r(71)(RegExp.prototype,"toString",e,!0)};r(51)(function(){return"/a/b"!=i.call({source:"a",flags:"b"})})?o(function(){var e=n(this);return"/".concat(e.source,"/","flags"in e?e.flags:!a&&e instanceof RegExp?_.call(e):void 0)}):"toString"!=i.name&&o(function(){return i.call(this)})},function(e,t,r){var n=Date.prototype,_=n.toString,a=n.getTime;new Date(NaN)+""!="Invalid Date"&&r(71)(n,"toString",function(){var e=a.call(this);return e==e?_.call(this):"Invalid Date"})},function(e,t,r){"use strict";var n=r(163),_=r(26),a=_(r(129)),i=_(r(109)),o=_(r(47)),s=_(r(577)),l=n(r(108)),u=_(r(578)),c={initialize:function(e,t){o.default.get("IS_NODE")&&console.log("It looks like you're using the browser version of the SDK in a node.js environment. You should require('parse/node') instead."),c._initialize(e,t)},_initialize:function(e,t,r){o.default.set("APPLICATION_ID",e),o.default.set("JAVASCRIPT_KEY",t),o.default.set("MASTER_KEY",r),o.default.set("USE_MASTER_KEY",!1)},setAsyncStorage:function(e){o.default.setAsyncStorage(e)}};Object.defineProperty(c,"applicationId",{get:function(){return o.default.get("APPLICATION_ID")},set:function(e){o.default.set("APPLICATION_ID",e)}}),Object.defineProperty(c,"javaScriptKey",{get:function(){return o.default.get("JAVASCRIPT_KEY")},set:function(e){o.default.set("JAVASCRIPT_KEY",e)}}),Object.defineProperty(c,"masterKey",{get:function(){return o.default.get("MASTER_KEY")},set:function(e){o.default.set("MASTER_KEY",e)}}),Object.defineProperty(c,"serverURL",{get:function(){return o.default.get("SERVER_URL")},set:function(e){o.default.set("SERVER_URL",e)}}),Object.defineProperty(c,"liveQueryServerURL",{get:function(){return o.default.get("LIVEQUERY_SERVER_URL")},set:function(e){o.default.set("LIVEQUERY_SERVER_URL",e)}}),c.ACL=r(130).default,c.Analytics=r(579),c.Cloud=r(580),c.CoreManager=r(47),c.Config=r(581).default,c.Error=r(87).default,c.FacebookUtils=r(582).default,c.File=r(98).default,c.GeoPoint=r(132).default,c.Polygon=r(208).default,c.Installation=r(583).default,c.Object=r(46).default,c.Op={Set:l.SetOp,Unset:l.UnsetOp,Increment:l.IncrementOp,Add:l.AddOp,Remove:l.RemoveOp,AddUnique:l.AddUniqueOp,Relation:l.RelationOp},c.Push=r(584),c.Query=r(133).default,c.Relation=r(88).default,c.Role=r(288).default,c.Schema=r(585).default,c.Session=r(296).default,c.Storage=r(165),c.User=r(164).default,c.LiveQuery=r(586).default,c.LiveQueryClient=r(297).default,c._request=function(){for(var e=arguments.length,t=new Array(e),r=0;r=200&&l.status<300){var e;try{e=JSON.parse(l.responseText),"function"==typeof l.getResponseHeader&&(l.getAllResponseHeaders()||"").includes("x-parse-job-status-id: ")&&(e=l.getResponseHeader("x-parse-job-status-id"))}catch(e){c.reject(e.toString())}e&&c.resolve({response:e,status:l.status,xhr:l})}else if(l.status>=500||0===l.status)if(++d0&&this._events[e].length>i&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"==typeof console.trace&&console.trace()),this},r.prototype.on=r.prototype.addListener,r.prototype.once=function(e,t){if(!n(t))throw TypeError("listener must be a function");var r=!1;function _(){this.removeListener(e,_),r||(r=!0,t.apply(this,arguments))}return _.listener=t,this.on(e,_),this},r.prototype.removeListener=function(e,t){var r,a,i,o;if(!n(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(i=(r=this._events[e]).length,a=-1,r===t||n(r.listener)&&r.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(_(r)){for(o=i;o-- >0;)if(r[o]===t||r[o].listener&&r[o].listener===t){a=o;break}if(a<0)return this;1===r.length?(r.length=0,delete this._events[e]):r.splice(a,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},r.prototype.removeAllListeners=function(e){var t,r;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(n(r=this._events[e]))this.removeListener(e,r);else if(r)for(;r.length;)this.removeListener(e,r[r.length-1]);return delete this._events[e],this},r.prototype.listeners=function(e){return this._events&&this._events[e]?n(this._events[e])?[this._events[e]]:this._events[e].slice():[]},r.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(n(t))return 1;if(t)return t.length}return 0},r.listenerCount=function(e,t){return e.listenerCount(t)}},function(e,t,r){"use strict";var n=r(26);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var _=n(r(2)),a=n(r(3)),i=n(r(5)),o=n(r(4)),s=n(r(6)),l=n(r(210)),u=n(r(47)),c=function(e){function t(e,r,n){var a;return(0,_.default)(this,t),(a=(0,i.default)(this,(0,o.default)(t).call(this))).id=e,a.query=r,a.sessionToken=n,a}return(0,s.default)(t,e),(0,a.default)(t,[{key:"unsubscribe",value:function(){var e=this;return u.default.getLiveQueryController().getDefaultLiveQueryClient().then(function(t){t.unsubscribe(e),e.emit("close")})}}]),t}(l.default);t.default=c},function(e,t,r){var n=r(106),_=r(105);r(590)("keys",function(){return function(e){return _(n(e))}})},function(e,t,r){var n=r(44),_=r(94),a=r(51);e.exports=function(e,t){var r=(_.Object||{})[e]||Object[e],i={};i[e]=t(r),n(n.S+n.F*a(function(){r(1)}),"Object",i)}},function(e,t,r){r(198)("search",1,function(e,t,r){return[function(r){"use strict";var n=e(this),_=void 0==r?void 0:r[t];return void 0!==_?_.call(r,n):new RegExp(r)[t](String(n))},r]})},function(e,t,r){var n=r(57),_=r(104),a=r(36)("match");e.exports=function(e){var t;return n(e)&&(void 0!==(t=e[a])?!!t:"RegExp"==_(e))}},function(e,t,r){"use strict";var n=r(44),_=r(95),a=r(159),i=r(125),o=[].lastIndexOf,s=!!o&&1/[1].lastIndexOf(1,-0)<0;n(n.P+n.F*(s||!r(127)(o)),"Array",{lastIndexOf:function(e){if(s)return o.apply(this,arguments)||0;var t=_(this),r=i(t.length),n=r-1;for(arguments.length>1&&(n=Math.min(n,a(arguments[1]))),n<0&&(n=r+n);n>=0;n--)if(n in t&&t[n]===e)return n||0;return-1}})},function(e,t,r){"use strict";r(595)("trim",function(e){return function(){return e(this,3)}})},function(e,t,r){var n=r(44),_=r(123),a=r(51),i=r(596),o="["+i+"]",s=RegExp("^"+o+o+"*"),l=RegExp(o+o+"*$"),u=function(e,t,r){var _={},o=a(function(){return!!i[e]()||"​…"!="​…"[e]()}),s=_[e]=o?t(c):i[e];r&&(_[r]=s),n(n.P+n.F*o,"String",_)},c=u.trim=function(e,t){return e=String(_(e)),1&t&&(e=e.replace(s,"")),2&t&&(e=e.replace(l,"")),e};e.exports=u},function(e,t){e.exports="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff"},function(e,t,r){var n=r(67),_=r(124),a=r(36)("species");e.exports=function(e,t){var r,i=n(e).constructor;return void 0===i||void 0==(r=n(i)[a])?t:_(r)}},function(e,t){e.exports=function(e,t,r){var n=void 0===r;switch(t.length){case 0:return n?e():e.call(r);case 1:return n?e(t[0]):e.call(r,t[0]);case 2:return n?e(t[0],t[1]):e.call(r,t[0],t[1]);case 3:return n?e(t[0],t[1],t[2]):e.call(r,t[0],t[1],t[2]);case 4:return n?e(t[0],t[1],t[2],t[3]):e.call(r,t[0],t[1],t[2],t[3])}return e.apply(r,t)}},function(e,t,r){var n=r(42),_=r(300).set,a=n.MutationObserver||n.WebKitMutationObserver,i=n.process,o=n.Promise,s="process"==r(104)(i);e.exports=function(){var e,t,r,l=function(){var n,_;for(s&&(n=i.domain)&&n.exit();e;){_=e.fn,e=e.next;try{_()}catch(n){throw e?r():t=void 0,n}}t=void 0,n&&n.enter()};if(s)r=function(){i.nextTick(l)};else if(!a||n.navigator&&n.navigator.standalone)if(o&&o.resolve){var u=o.resolve(void 0);r=function(){u.then(l)}}else r=function(){_.call(n,l)};else{var c=!0,d=document.createTextNode("");new a(l).observe(d,{characterData:!0}),r=function(){d.data=c=!c}}return function(n){var _={fn:n,next:void 0};t&&(t.next=_),e||(e=_,r()),t=_}}},function(e,t){e.exports=function(e){try{return{e:!1,v:e()}}catch(e){return{e:!0,v:e}}}},function(e,t,r){var n=r(42).navigator;e.exports=n&&n.userAgent||""},function(e,t,r){var n=r(67),_=r(57),a=r(301);e.exports=function(e,t){if(n(e),_(t)&&t.constructor===e)return t;var r=a.f(e);return(0,r.resolve)(t),r.promise}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r11)]},M:function(e,t){return a(e.getMonth(),!0,t)},S:function(t){return e(t.getSeconds())},U:function(e){return e.getTime()/1e3},W:function(e,t,r){return r.getWeek(e)},Y:function(e){return e.getFullYear()},d:function(t){return e(t.getDate())},h:function(e){return e.getHours()%12?e.getHours()%12:12},i:function(t){return e(t.getMinutes())},j:function(e){return e.getDate()},l:function(e,t){return t.weekdays.longhand[e.getDay()]},m:function(t){return e(t.getMonth()+1)},n:function(e){return e.getMonth()+1},s:function(e){return e.getSeconds()},w:function(e){return e.getDay()},y:function(e){return String(e.getFullYear()).substring(2)}},l={weekdays:{shorthand:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],longhand:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},months:{shorthand:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],longhand:["January","February","March","April","May","June","July","August","September","October","November","December"]},daysInMonth:[31,28,31,30,31,30,31,31,30,31,30,31],firstDayOfWeek:0,ordinal:function(e){var t=e%100;if(t>3&&t<21)return"th";switch(t%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}},rangeSeparator:" to ",weekAbbreviation:"Wk",scrollTitle:"Scroll to increment",toggleTitle:"Click to toggle",amPM:["AM","PM"],yearAriaLabel:"Year"},u=function(e){var t=e.config,r=void 0===t?E:t,n=e.l10n,_=void 0===n?l:n;return function(e,t,n){var a=n||_;return void 0!==r.formatDate?r.formatDate(e,t,a):t.split("").map(function(t,n,_){return s[t]&&"\\"!==_[n-1]?s[t](e,a,r):"\\"!==t?t:""}).join("")}},c=function(e){var t=e.config,r=void 0===t?E:t,n=e.l10n,_=void 0===n?l:n;return function(e,t,n,a){if(0===e||e){var s,l=a||_,u=e;if(e instanceof Date)s=new Date(e.getTime());else if("string"!=typeof e&&void 0!==e.toFixed)s=new Date(e);else if("string"==typeof e){var c=t||(r||E).dateFormat,d=String(e).trim();if("today"===d)s=new Date,n=!0;else if(/Z$/.test(d)||/GMT$/.test(d))s=new Date(e);else if(r&&r.parseDate)s=r.parseDate(e,c);else{s=r&&r.noCalendar?new Date((new Date).setHours(0,0,0,0)):new Date((new Date).getFullYear(),0,1,0,0,0,0);for(var f,p=[],h=0,m=0,g="";hMath.min(t,r)&&e",noCalendar:!1,now:new Date,onChange:[],onClose:[],onDayCreate:[],onDestroy:[],onKeyDown:[],onMonthChange:[],onOpen:[],onParseConfig:[],onReady:[],onValueUpdate:[],onYearChange:[],onPreCalendarPosition:[],plugins:[],position:"auto",positionElement:void 0,prevArrow:"",shorthandCurrentMonth:!1,showMonths:1,static:!1,time_24hr:!1,weekNumbers:!1,wrap:!1};function m(e,t,r){if(!0===r)return e.classList.add(t);e.classList.remove(t)}function g(e,t,r){var n=window.document.createElement(e);return t=t||"",r=r||"",n.className=t,void 0!==r&&(n.textContent=r),n}function b(e){for(;e.firstChild;)e.removeChild(e.firstChild)}function v(e,t){var r=g("div","numInputWrapper"),n=g("input","numInput "+e),_=g("span","arrowUp"),a=g("span","arrowDown");if(n.type="text",n.pattern="\\d*",void 0!==t)for(var i in t)n.setAttribute(i,t[i]);return r.appendChild(n),r.appendChild(_),r.appendChild(a),r}"function"!=typeof Object.assign&&(Object.assign=function(e){if(!e)throw TypeError("Cannot convert undefined or null to object");for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;ni&&(c=_===s.hourElement?c-i-t(!s.amPM):a,f&&S(void 0,1,s.hourElement)),s.amPM&&d&&(1===o?c+l===23:Math.abs(c-l)>o)&&(s.amPM.textContent=s.l10n.amPM[t(s.amPM.textContent===s.l10n.amPM[0])]),_.value=e(c)}}(r);var n=s._input.value;D(),me(),s._input.value!==n&&s._debouncedChange()}}function D(){if(void 0!==s.hourElement&&void 0!==s.minuteElement){var e=(parseInt(s.hourElement.value.slice(-2),10)||0)%24,r=(parseInt(s.minuteElement.value,10)||0)%60,n=void 0!==s.secondElement?(parseInt(s.secondElement.value,10)||0)%60:0;void 0!==s.amPM&&(e=function(e,r){return e%12+12*t(r===s.l10n.amPM[1])}(e,s.amPM.textContent));var _=void 0!==s.config.minTime||s.config.minDate&&s.minDateHasTime&&s.latestSelectedDateObj&&0===d(s.latestSelectedDateObj,s.config.minDate,!0),a=void 0!==s.config.maxTime||s.config.maxDate&&s.maxDateHasTime&&s.latestSelectedDateObj&&0===d(s.latestSelectedDateObj,s.config.maxDate,!0);if(a){var i=void 0!==s.config.maxTime?s.config.maxTime:s.config.maxDate;(e=Math.min(e,i.getHours()))===i.getHours()&&(r=Math.min(r,i.getMinutes())),r===i.getMinutes()&&(n=Math.min(n,i.getSeconds()))}if(_){var o=void 0!==s.config.minTime?s.config.minTime:s.config.minDate;(e=Math.max(e,o.getHours()))===o.getHours()&&(r=Math.max(r,o.getMinutes())),r===o.getMinutes()&&(n=Math.max(n,o.getSeconds()))}T(e,r,n)}}function y(e){var t=e||s.latestSelectedDateObj;t&&T(t.getHours(),t.getMinutes(),t.getSeconds())}function w(){var e=s.config.defaultHour,t=s.config.defaultMinute,r=s.config.defaultSeconds;if(void 0!==s.config.minDate){var n=s.config.minDate.getHours(),_=s.config.minDate.getMinutes();(e=Math.max(e,n))===n&&(t=Math.max(_,t)),e===n&&t===_&&(r=s.config.minDate.getSeconds())}if(void 0!==s.config.maxDate){var a=s.config.maxDate.getHours(),i=s.config.maxDate.getMinutes();(e=Math.min(e,a))===a&&(t=Math.min(i,t)),e===a&&t===i&&(r=s.config.maxDate.getSeconds())}T(e,t,r)}function T(r,n,_){void 0!==s.latestSelectedDateObj&&s.latestSelectedDateObj.setHours(r%24,n,_||0,0),s.hourElement&&s.minuteElement&&!s.isMobile&&(s.hourElement.value=e(s.config.time_24hr?r:(12+r)%12+12*t(r%12==0)),s.minuteElement.value=e(n),void 0!==s.amPM&&(s.amPM.textContent=s.l10n.amPM[t(r>=12)]),void 0!==s.secondElement&&(s.secondElement.value=e(_)))}function A(e){var t=parseInt(e.target.value)+(e.delta||0);(t/1e3>1||"Enter"===e.key&&!/[^\d]/.test(t.toString()))&&Q(t)}function k(e,t,r,n){return t instanceof Array?t.forEach(function(t){return k(e,t,r,n)}):e instanceof Array?e.forEach(function(e){return k(e,t,r,n)}):(e.addEventListener(t,r,n),void s._handlers.push({element:e,event:t,handler:r,options:n}))}function I(e){return function(t){1===t.which&&e(t)}}function R(){de("onChange")}function L(){if(s.config.wrap&&["open","close","toggle","clear"].forEach(function(e){Array.prototype.forEach.call(s.element.querySelectorAll("[data-"+e+"]"),function(t){return k(t,"click",s[e])})}),s.isMobile)!function(){var e=s.config.enableTime?s.config.noCalendar?"time":"datetime-local":"date";s.mobileInput=g("input",s.input.className+" flatpickr-mobile"),s.mobileInput.step=s.input.getAttribute("step")||"any",s.mobileInput.tabIndex=1,s.mobileInput.type=e,s.mobileInput.disabled=s.input.disabled,s.mobileInput.required=s.input.required,s.mobileInput.placeholder=s.input.placeholder,s.mobileFormatStr="datetime-local"===e?"Y-m-d\\TH:i:S":"date"===e?"Y-m-d":"H:i:S",s.selectedDates.length>0&&(s.mobileInput.defaultValue=s.mobileInput.value=s.formatDate(s.selectedDates[0],s.mobileFormatStr)),s.config.minDate&&(s.mobileInput.min=s.formatDate(s.config.minDate,"Y-m-d")),s.config.maxDate&&(s.mobileInput.max=s.formatDate(s.config.maxDate,"Y-m-d")),s.input.type="hidden",void 0!==s.altInput&&(s.altInput.type="hidden");try{s.input.parentNode&&s.input.parentNode.insertBefore(s.mobileInput,s.input.nextSibling)}catch(e){}k(s.mobileInput,"change",function(e){s.setDate(e.target.value,!1,s.mobileFormatStr),de("onChange"),de("onClose")})}();else{var e=r(re,50);s._debouncedChange=r(R,O),s.daysContainer&&!/iPhone|iPad|iPod/i.test(navigator.userAgent)&&k(s.daysContainer,"mouseover",function(e){"range"===s.config.mode&&te(e.target)}),k(window.document.body,"keydown",ee),s.config.static||k(s._input,"keydown",ee),s.config.inline||s.config.static||k(window,"resize",e),void 0!==window.ontouchstart?k(window.document,"click",X):k(window.document,"mousedown",I(X)),k(window.document,"focus",X,{capture:!0}),!0===s.config.clickOpens&&(k(s._input,"focus",s.open),k(s._input,"mousedown",I(s.open))),void 0!==s.daysContainer&&(k(s.monthNav,"mousedown",I(ge)),k(s.monthNav,["keyup","increment"],A),k(s.daysContainer,"mousedown",I(se))),void 0!==s.timeContainer&&void 0!==s.minuteElement&&void 0!==s.hourElement&&(k(s.timeContainer,["increment"],C),k(s.timeContainer,"blur",C,{capture:!0}),k(s.timeContainer,"mousedown",I(U)),k([s.hourElement,s.minuteElement],["focus","click"],function(e){return e.target.select()}),void 0!==s.secondElement&&k(s.secondElement,"focus",function(){return s.secondElement&&s.secondElement.select()}),void 0!==s.amPM&&k(s.amPM,"mousedown",I(function(e){C(e),R()})))}}function B(e){var t=void 0!==e?s.parseDate(e):s.latestSelectedDateObj||(s.config.minDate&&s.config.minDate>s.now?s.config.minDate:s.config.maxDate&&s.config.maxDate11)]),s.amPM.title=s.l10n.toggleTitle,s.amPM.tabIndex=-1,s.timeContainer.appendChild(s.amPM)),s.timeContainer}()),m(s.calendarContainer,"rangeMode","range"===s.config.mode),m(s.calendarContainer,"animate",!0===s.config.animate),m(s.calendarContainer,"multiMonth",s.config.showMonths>1),s.calendarContainer.appendChild(r);var i=void 0!==s.config.appendTo&&void 0!==s.config.appendTo.nodeType;if((s.config.inline||s.config.static)&&(s.calendarContainer.classList.add(s.config.inline?"inline":"static"),s.config.inline&&(!i&&s.element.parentNode?s.element.parentNode.insertBefore(s.calendarContainer,s._input.nextSibling):void 0!==s.config.appendTo&&s.config.appendTo.appendChild(s.calendarContainer)),s.config.static)){var o=g("div","flatpickr-wrapper");s.element.parentNode&&s.element.parentNode.insertBefore(o,s.element),o.appendChild(s.element),s.altInput&&o.appendChild(s.altInput),o.appendChild(s.calendarContainer)}s.config.static||s.config.inline||(void 0!==s.config.appendTo?s.config.appendTo:window.document.body).appendChild(s.calendarContainer)}function W(e,t,r,n){var _=$(t,!0),a=g("span","flatpickr-day "+e,t.getDate().toString());return a.dateObj=t,a.$i=n,a.setAttribute("aria-label",s.formatDate(t,s.config.ariaDateFormat)),-1===e.indexOf("hidden")&&0===d(t,s.now)&&(s.todayDateElem=a,a.classList.add("today"),a.setAttribute("aria-current","date")),_?(a.tabIndex=-1,pe(t)&&(a.classList.add("selected"),s.selectedDateElem=a,"range"===s.config.mode&&(m(a,"startRange",s.selectedDates[0]&&0===d(t,s.selectedDates[0],!0)),m(a,"endRange",s.selectedDates[1]&&0===d(t,s.selectedDates[1],!0)),"nextMonthDay"===e&&a.classList.add("inRange")))):a.classList.add("disabled"),"range"===s.config.mode&&function(e){return!("range"!==s.config.mode||s.selectedDates.length<2)&&d(e,s.selectedDates[0])>=0&&d(e,s.selectedDates[1])<=0}(t)&&!pe(t)&&a.classList.add("inRange"),s.weekNumbers&&1===s.config.showMonths&&"prevMonthDay"!==e&&r%7==1&&s.weekNumbers.insertAdjacentHTML("beforeend",""+s.config.getWeek(t)+""),de("onDayCreate",a),a}function x(e){e.focus(),"range"===s.config.mode&&te(e)}function j(e){for(var t=e>0?0:s.config.showMonths-1,r=e>0?s.config.showMonths:-1,n=t;n!=r;n+=e)for(var _=s.daysContainer.children[n],a=e>0?0:_.children.length-1,i=e>0?_.children.length:-1,o=a;o!=i;o+=e){var l=_.children[o];if(-1===l.className.indexOf("hidden")&&$(l.dateObj))return l}}function N(e,t){var r=Z(document.activeElement||document.body),n=void 0!==e?e:r?document.activeElement:void 0!==s.selectedDateElem&&Z(s.selectedDateElem)?s.selectedDateElem:void 0!==s.todayDateElem&&Z(s.todayDateElem)?s.todayDateElem:j(t>0?1:-1);return void 0===n?s._input.focus():r?void function(e,t){for(var r=-1===e.className.indexOf("Month")?e.dateObj.getMonth():s.currentMonth,n=t>0?s.config.showMonths:-1,_=t>0?1:-1,a=r-s.currentMonth;a!=n;a+=_)for(var i=s.daysContainer.children[a],o=r-s.currentMonth===a?e.$i+t:t<0?i.children.length-1:0,l=i.children.length,u=o;u>=0&&u0?l:-1);u+=_){var c=i.children[u];if(-1===c.className.indexOf("hidden")&&$(c.dateObj)&&Math.abs(e.$i-u)>=Math.abs(t))return x(c)}s.changeMonth(_),N(j(_),0)}(n,t):x(n)}function q(e,t){for(var r=(new Date(e,t,1).getDay()-s.l10n.firstDayOfWeek+7)%7,n=s.utils.getDaysInMonth((t-1+12)%12),_=s.utils.getDaysInMonth(t),a=window.document.createDocumentFragment(),i=s.config.showMonths>1,o=i?"prevMonthDay hidden":"prevMonthDay",l=i?"nextMonthDay hidden":"nextMonthDay",u=n+1-r,c=0;u<=n;u++,c++)a.appendChild(W(o,new Date(e,t-1,u),u,c));for(u=1;u<=_;u++,c++)a.appendChild(W("",new Date(e,t,u),u,c));for(var d=_+1;d<=42-r&&(1===s.config.showMonths||c%7!=0);d++,c++)a.appendChild(W(l,new Date(e,t+1,d%_),d,c));var f=g("div","dayContainer");return f.appendChild(a),f}function F(){if(void 0!==s.daysContainer){b(s.daysContainer),s.weekNumbers&&b(s.weekNumbers);for(var e=document.createDocumentFragment(),t=0;t0&&e\n "+t.join("")+"\n \n "}function Y(e,t){void 0===t&&(t=!0);var r=t?e:e-s.currentMonth;r<0&&!0===s._hidePrevMonthArrow||r>0&&!0===s._hideNextMonthArrow||(s.currentMonth+=r,(s.currentMonth<0||s.currentMonth>11)&&(s.currentYear+=s.currentMonth>11?1:-1,s.currentMonth=(s.currentMonth+12)%12,de("onYearChange")),F(),de("onMonthChange"),he())}function J(e){return!(!s.config.appendTo||!s.config.appendTo.contains(e))||s.calendarContainer.contains(e)}function X(e){if(s.isOpen&&!s.config.inline){var t=J(e.target),r=e.target===s.input||e.target===s.altInput||s.element.contains(e.target)||e.path&&e.path.indexOf&&(~e.path.indexOf(s.input)||~e.path.indexOf(s.altInput)),n="blur"===e.type?r&&e.relatedTarget&&!J(e.relatedTarget):!r&&!t,_=!s.config.ignoredFocusElements.some(function(t){return t.contains(e.target)});n&&_&&(s.close(),"range"===s.config.mode&&1===s.selectedDates.length&&(s.clear(!1),s.redraw()))}}function Q(e){if(!(!e||s.config.minDate&&es.config.maxDate.getFullYear())){var t=e,r=s.currentYear!==t;s.currentYear=t||s.currentYear,s.config.maxDate&&s.currentYear===s.config.maxDate.getFullYear()?s.currentMonth=Math.min(s.config.maxDate.getMonth(),s.currentMonth):s.config.minDate&&s.currentYear===s.config.minDate.getFullYear()&&(s.currentMonth=Math.max(s.config.minDate.getMonth(),s.currentMonth)),r&&(s.redraw(),de("onYearChange"))}}function $(e,t){void 0===t&&(t=!0);var r=s.parseDate(e,void 0,t);if(s.config.minDate&&r&&d(r,s.config.minDate,void 0!==t?t:!s.minDateHasTime)<0||s.config.maxDate&&r&&d(r,s.config.maxDate,void 0!==t?t:!s.maxDateHasTime)>0)return!1;if(0===s.config.enable.length&&0===s.config.disable.length)return!0;if(void 0===r)return!1;for(var n,_=s.config.enable.length>0,a=_?s.config.enable:s.config.disable,i=0;i=n.from.getTime()&&r.getTime()<=n.to.getTime())return _}return!_}function Z(e){return void 0!==s.daysContainer&&-1===e.className.indexOf("hidden")&&s.daysContainer.contains(e)}function ee(e){var t=e.target===s._input,r=s.config.allowInput,n=s.isOpen&&(!r||!t),_=s.config.inline&&t&&!r;if(13===e.keyCode&&t){if(r)return s.setDate(s._input.value,!0,e.target===s.altInput?s.config.altFormat:s.config.dateFormat),e.target.blur();s.open()}else if(J(e.target)||n||_){var a=!!s.timeContainer&&s.timeContainer.contains(e.target);switch(e.keyCode){case 13:a?C():se(e);break;case 27:e.preventDefault(),oe();break;case 8:case 46:t&&!s.config.allowInput&&(e.preventDefault(),s.clear());break;case 37:case 39:if(a)s.hourElement&&s.hourElement.focus();else if(e.preventDefault(),void 0!==s.daysContainer&&(!1===r||Z(document.activeElement))){var i=39===e.keyCode?1:-1;e.ctrlKey?(Y(i),N(j(1),0)):N(void 0,i)}break;case 38:case 40:e.preventDefault();var o=40===e.keyCode?1:-1;s.daysContainer&&void 0!==e.target.$i?e.ctrlKey?(Q(s.currentYear-o),N(j(1),0)):a||N(void 0,7*o):s.config.enableTime&&(!a&&s.hourElement&&s.hourElement.focus(),C(e),s._debouncedChange());break;case 9:if(!a){s.element.focus();break}var l=[s.hourElement,s.minuteElement,s.secondElement,s.amPM].filter(function(e){return e}),u=l.indexOf(e.target);if(-1!==u){var c=l[u+(e.shiftKey?-1:1)];void 0!==c?(e.preventDefault(),c.focus()):s.element.focus()}}}if(void 0!==s.amPM&&e.target===s.amPM)switch(e.key){case s.l10n.amPM[0].charAt(0):case s.l10n.amPM[0].charAt(0).toLowerCase():s.amPM.textContent=s.l10n.amPM[0],D(),me();break;case s.l10n.amPM[1].charAt(0):case s.l10n.amPM[1].charAt(0).toLowerCase():s.amPM.textContent=s.l10n.amPM[1],D(),me()}de("onKeyDown",e)}function te(e){if(1===s.selectedDates.length&&(!e||e.classList.contains("flatpickr-day")&&!e.classList.contains("disabled"))){for(var t=e?e.dateObj.getTime():s.days.firstElementChild.dateObj.getTime(),r=s.parseDate(s.selectedDates[0],void 0,!0).getTime(),n=Math.min(t,s.selectedDates[0].getTime()),_=Math.max(t,s.selectedDates[0].getTime()),a=s.daysContainer.lastChild.lastChild.dateObj.getTime(),i=!1,o=0,l=0,u=n;un&&u<_,uo)?o=u:u>r&&(!l||u0&&p0&&p>l;return E?(a.classList.add("notAllowed"),["inRange","startRange","endRange"].forEach(function(e){a.classList.remove(e)}),"continue"):i&&!E?"continue":(["startRange","inRange","endRange","notAllowed"].forEach(function(e){a.classList.remove(e)}),void(void 0!==e&&(e.classList.add(t0&&h&&h.lastChild.dateObj.getTime()>=p||(rt&&p===r&&a.classList.add("endRange"),p>=o&&(0===l||p<=l)&&f(p,r,t)&&a.classList.add("inRange")))))},m=0,g=d.children.length;m0||r.getMinutes()>0||r.getSeconds()>0),s.selectedDates&&(s.selectedDates=s.selectedDates.filter(function(e){return $(e)}),s.selectedDates.length||"min"!==e||y(r),me()),s.daysContainer&&(ie(),void 0!==r?s.currentYearElement[e]=r.getFullYear().toString():s.currentYearElement.removeAttribute(e),s.currentYearElement.disabled=!!n&&void 0!==r&&n.getFullYear()===r.getFullYear())}}function _e(){"object"!=typeof s.config.locale&&void 0===P.l10ns[s.config.locale]&&s.config.errorHandler(new Error("flatpickr: invalid locale "+s.config.locale)),s.l10n=Object.assign({},P.l10ns.default,"object"==typeof s.config.locale?s.config.locale:"default"!==s.config.locale?P.l10ns[s.config.locale]:void 0),o.K="("+s.l10n.amPM[0]+"|"+s.l10n.amPM[1]+"|"+s.l10n.amPM[0].toLowerCase()+"|"+s.l10n.amPM[1].toLowerCase()+")",s.formatDate=u(s),s.parseDate=c({config:s.config,l10n:s.l10n})}function ae(e){if(void 0!==s.calendarContainer){de("onPreCalendarPosition");var t=e||s._positionElement,r=Array.prototype.reduce.call(s.calendarContainer.children,function(e,t){return e+t.offsetHeight},0),n=s.calendarContainer.offsetWidth,_=s.config.position.split(" "),a=_[0],i=_.length>1?_[1]:null,o=t.getBoundingClientRect(),l=window.innerHeight-o.bottom,u="above"===a||"below"!==a&&lr,c=window.pageYOffset+o.top+(u?-r-2:t.offsetHeight+2);if(m(s.calendarContainer,"arrowTop",!u),m(s.calendarContainer,"arrowBottom",u),!s.config.inline){var d=window.pageXOffset+o.left-(null!=i&&"center"===i?(n-o.width)/2:0),f=window.document.body.offsetWidth-o.right,p=d+n>window.document.body.offsetWidth;m(s.calendarContainer,"rightMost",p),s.config.static||(s.calendarContainer.style.top=c+"px",p?(s.calendarContainer.style.left="auto",s.calendarContainer.style.right=f+"px"):(s.calendarContainer.style.left=d+"px",s.calendarContainer.style.right="auto"))}}}function ie(){s.config.noCalendar||s.isMobile||(he(),F())}function oe(){s._input.focus(),-1!==window.navigator.userAgent.indexOf("MSIE")||void 0!==navigator.msMaxTouchPoints?setTimeout(s.close,0):s.close()}function se(e){e.preventDefault(),e.stopPropagation();var t=function e(t,r){return r(t)?t:t.parentNode?e(t.parentNode,r):void 0}(e.target,function(e){return e.classList&&e.classList.contains("flatpickr-day")&&!e.classList.contains("disabled")&&!e.classList.contains("notAllowed")});if(void 0!==t){var r=t,n=s.latestSelectedDateObj=new Date(r.dateObj.getTime()),_=(n.getMonth()s.currentMonth+s.config.showMonths-1)&&"range"!==s.config.mode;if(s.selectedDateElem=r,"single"===s.config.mode)s.selectedDates=[n];else if("multiple"===s.config.mode){var a=pe(n);a?s.selectedDates.splice(parseInt(a),1):s.selectedDates.push(n)}else"range"===s.config.mode&&(2===s.selectedDates.length&&s.clear(!1),s.selectedDates.push(n),0!==d(n,s.selectedDates[0],!0)&&s.selectedDates.sort(function(e,t){return e.getTime()-t.getTime()}));if(D(),_){var i=s.currentYear!==n.getFullYear();s.currentYear=n.getFullYear(),s.currentMonth=n.getMonth(),i&&de("onYearChange"),de("onMonthChange")}if(he(),F(),me(),s.config.enableTime&&setTimeout(function(){return s.showTimeInput=!0},50),_||"range"===s.config.mode||1!==s.config.showMonths?s.selectedDateElem&&s.selectedDateElem.focus():x(r),void 0!==s.hourElement&&setTimeout(function(){return void 0!==s.hourElement&&s.hourElement.select()},451),s.config.closeOnSelect){var o="single"===s.config.mode&&!s.config.enableTime,l="range"===s.config.mode&&2===s.selectedDates.length&&!s.config.enableTime;(o||l)&&oe()}R()}}s.parseDate=c({config:s.config,l10n:s.l10n}),s._handlers=[],s._bind=k,s._setHoursFromDate=y,s._positionCalendar=ae,s.changeMonth=Y,s.changeYear=Q,s.clear=function(e){void 0===e&&(e=!0),s.input.value="",void 0!==s.altInput&&(s.altInput.value=""),void 0!==s.mobileInput&&(s.mobileInput.value=""),s.selectedDates=[],s.latestSelectedDateObj=void 0,s.showTimeInput=!1,!0===s.config.enableTime&&w(),s.redraw(),e&&de("onChange")},s.close=function(){s.isOpen=!1,s.isMobile||(s.calendarContainer.classList.remove("open"),s._input.classList.remove("active")),de("onClose")},s._createElement=g,s.destroy=function(){void 0!==s.config&&de("onDestroy");for(var e=s._handlers.length;e--;){var t=s._handlers[e];t.element.removeEventListener(t.event,t.handler,t.options)}if(s._handlers=[],s.mobileInput)s.mobileInput.parentNode&&s.mobileInput.parentNode.removeChild(s.mobileInput),s.mobileInput=void 0;else if(s.calendarContainer&&s.calendarContainer.parentNode)if(s.config.static&&s.calendarContainer.parentNode){var r=s.calendarContainer.parentNode;if(r.lastChild&&r.removeChild(r.lastChild),r.parentNode){for(;r.firstChild;)r.parentNode.insertBefore(r.firstChild,r);r.parentNode.removeChild(r)}}else s.calendarContainer.parentNode.removeChild(s.calendarContainer);s.altInput&&(s.input.type="text",s.altInput.parentNode&&s.altInput.parentNode.removeChild(s.altInput),delete s.altInput),s.input&&(s.input.type=s.input._type,s.input.classList.remove("flatpickr-input"),s.input.removeAttribute("readonly"),s.input.value=""),["_showTimeInput","latestSelectedDateObj","_hideNextMonthArrow","_hidePrevMonthArrow","__hideNextMonthArrow","__hidePrevMonthArrow","isMobile","isOpen","selectedDateElem","minDateHasTime","maxDateHasTime","days","daysContainer","_input","_positionElement","innerContainer","rContainer","monthNav","todayDateElem","calendarContainer","weekdayContainer","prevMonthNav","nextMonthNav","currentMonthElement","currentYearElement","navigationCurrentMonth","selectedDateElem","config"].forEach(function(e){try{delete s[e]}catch(e){}})},s.isEnabled=$,s.jumpToDate=B,s.open=function(e,t){if(void 0===t&&(t=s._positionElement),!0===s.isMobile)return e&&(e.preventDefault(),e.target&&e.target.blur()),void 0!==s.mobileInput&&(s.mobileInput.focus(),s.mobileInput.click()),void de("onOpen");if(!s._input.disabled&&!s.config.inline){var r=s.isOpen;s.isOpen=!0,r||(s.calendarContainer.classList.add("open"),s._input.classList.add("active"),de("onOpen"),ae(t)),!0===s.config.enableTime&&!0===s.config.noCalendar&&(0===s.selectedDates.length&&(s.setDate(void 0!==s.config.minDate?new Date(s.config.minDate.getTime()):new Date,!1),w(),me()),!1!==s.config.allowInput||void 0!==e&&s.timeContainer.contains(e.relatedTarget)||setTimeout(function(){return s.hourElement.select()},50))}},s.redraw=ie,s.set=function(e,t){null!==e&&"object"==typeof e?Object.assign(s.config,e):(s.config[e]=t,void 0!==le[e]?le[e].forEach(function(e){return e()}):h.indexOf(e)>-1&&(s.config[e]=n(t))),s.redraw(),B(),me(!1)},s.setDate=function(e,t,r){if(void 0===t&&(t=!1),void 0===r&&(r=s.config.dateFormat),0!==e&&!e||e instanceof Array&&0===e.length)return s.clear(t);ue(e,r),s.showTimeInput=s.selectedDates.length>0,s.latestSelectedDateObj=s.selectedDates[0],s.redraw(),B(),y(),me(t),t&&de("onChange")},s.toggle=function(e){if(!0===s.isOpen)return s.close();s.open(e)};var le={locale:[_e,G],showMonths:[H,M,z]};function ue(e,t){var r=[];if(e instanceof Array)r=e.map(function(e){return s.parseDate(e,t)});else if(e instanceof Date||"number"==typeof e)r=[s.parseDate(e,t)];else if("string"==typeof e)switch(s.config.mode){case"single":case"time":r=[s.parseDate(e,t)];break;case"multiple":r=e.split(s.config.conjunction).map(function(e){return s.parseDate(e,t)});break;case"range":r=e.split(s.l10n.rangeSeparator).map(function(e){return s.parseDate(e,t)})}else s.config.errorHandler(new Error("Invalid date supplied: "+JSON.stringify(e)));s.selectedDates=r.filter(function(e){return e instanceof Date&&$(e,!1)}),"range"===s.config.mode&&s.selectedDates.sort(function(e,t){return e.getTime()-t.getTime()})}function ce(e){return e.slice().map(function(e){return"string"==typeof e||"number"==typeof e||e instanceof Date?s.parseDate(e,void 0,!0):e&&"object"==typeof e&&e.from&&e.to?{from:s.parseDate(e.from,void 0),to:s.parseDate(e.to,void 0)}:e}).filter(function(e){return e})}function de(e,t){if(void 0!==s.config){var r=s.config[e];if(void 0!==r&&r.length>0)for(var n=0;r[n]&&ns.config.maxDate.getMonth():s.currentYear>s.config.maxDate.getFullYear()))}function Ee(e){return s.selectedDates.map(function(t){return s.formatDate(t,e)}).filter(function(e,t,r){return"range"!==s.config.mode||s.config.enableTime||r.indexOf(e)===t}).join("range"!==s.config.mode?s.config.conjunction:s.l10n.rangeSeparator)}function me(e){if(void 0===e&&(e=!0),0===s.selectedDates.length)return s.clear(e);void 0!==s.mobileInput&&s.mobileFormatStr&&(s.mobileInput.value=void 0!==s.latestSelectedDateObj?s.formatDate(s.latestSelectedDateObj,s.mobileFormatStr):""),s.input.value=Ee(s.config.dateFormat),void 0!==s.altInput&&(s.altInput.value=Ee(s.config.altFormat)),!1!==e&&de("onValueUpdate")}function ge(e){e.preventDefault();var t=s.prevMonthNav.contains(e.target),r=s.nextMonthNav.contains(e.target);t||r?Y(t?-1:1):s.yearElements.indexOf(e.target)>=0?e.target.select():e.target.classList.contains("arrowUp")?s.changeYear(s.currentYear+1):e.target.classList.contains("arrowDown")&&s.changeYear(s.currentYear-1)}return function(){s.element=s.input=_,s.isOpen=!1,function(){var e=["wrap","weekNumbers","allowInput","clickOpens","time_24hr","enableTime","noCalendar","altInput","shorthandCurrentMonth","inline","static","enableSeconds","disableMobile"],t=Object.assign({},i,JSON.parse(JSON.stringify(_.dataset||{}))),r={};s.config.parseDate=t.parseDate,s.config.formatDate=t.formatDate,Object.defineProperty(s.config,"enable",{get:function(){return s.config._enable},set:function(e){s.config._enable=ce(e)}}),Object.defineProperty(s.config,"disable",{get:function(){return s.config._disable},set:function(e){s.config._disable=ce(e)}});var a="time"===t.mode;t.dateFormat||!t.enableTime&&!a||(r.dateFormat=t.noCalendar||a?"H:i"+(t.enableSeconds?":S":""):P.defaultConfig.dateFormat+" H:i"+(t.enableSeconds?":S":"")),t.altInput&&(t.enableTime||a)&&!t.altFormat&&(r.altFormat=t.noCalendar||a?"h:i"+(t.enableSeconds?":S K":" K"):P.defaultConfig.altFormat+" h:i"+(t.enableSeconds?":S":"")+" K"),Object.defineProperty(s.config,"minDate",{get:function(){return s.config._minDate},set:ne("min")}),Object.defineProperty(s.config,"maxDate",{get:function(){return s.config._maxDate},set:ne("max")});var o=function(e){return function(t){s.config["min"===e?"_minTime":"_maxTime"]=s.parseDate(t,"H:i")}};Object.defineProperty(s.config,"minTime",{get:function(){return s.config._minTime},set:o("min")}),Object.defineProperty(s.config,"maxTime",{get:function(){return s.config._maxTime},set:o("max")}),"time"===t.mode&&(s.config.noCalendar=!0,s.config.enableTime=!0),Object.assign(s.config,r,t);for(var l=0;l-1?s.config[d]=n(c[d]).map(E).concat(s.config[d]):void 0===t[d]&&(s.config[d]=c[d])}de("onParseConfig")}(),_e(),s.input=s.config.wrap?_.querySelector("[data-input]"):_,s.input?(s.input._type=s.input.type,s.input.type="text",s.input.classList.add("flatpickr-input"),s._input=s.input,s.config.altInput&&(s.altInput=g(s.input.nodeName,s.input.className+" "+s.config.altInputClass),s._input=s.altInput,s.altInput.placeholder=s.input.placeholder,s.altInput.disabled=s.input.disabled,s.altInput.required=s.input.required,s.altInput.tabIndex=s.input.tabIndex,s.altInput.type="text",s.input.setAttribute("type","hidden"),!s.config.static&&s.input.parentNode&&s.input.parentNode.insertBefore(s.altInput,s.input.nextSibling)),s.config.allowInput||s._input.setAttribute("readonly","readonly"),s._positionElement=s.config.positionElement||s._input):s.config.errorHandler(new Error("Invalid input element specified")),function(){s.selectedDates=[],s.now=s.parseDate(s.config.now)||new Date;var e=s.config.defaultDate||("INPUT"!==s.input.nodeName&&"TEXTAREA"!==s.input.nodeName||!s.input.placeholder||s.input.value!==s.input.placeholder?s.input.value:null);e&&ue(e,s.config.dateFormat);var t=s.selectedDates.length>0?s.selectedDates[0]:s.config.minDate&&s.config.minDate.getTime()>s.now.getTime()?s.config.minDate:s.config.maxDate&&s.config.maxDate.getTime()0&&(s.latestSelectedDateObj=s.selectedDates[0]),void 0!==s.config.minTime&&(s.config.minTime=s.parseDate(s.config.minTime,"H:i")),void 0!==s.config.maxTime&&(s.config.maxTime=s.parseDate(s.config.maxTime,"H:i")),s.minDateHasTime=!!s.config.minDate&&(s.config.minDate.getHours()>0||s.config.minDate.getMinutes()>0||s.config.minDate.getSeconds()>0),s.maxDateHasTime=!!s.config.maxDate&&(s.config.maxDate.getHours()>0||s.config.maxDate.getMinutes()>0||s.config.maxDate.getSeconds()>0),Object.defineProperty(s,"showTimeInput",{get:function(){return s._showTimeInput},set:function(e){s._showTimeInput=e,s.calendarContainer&&m(s.calendarContainer,"showTimeInput",e),s.isOpen&&ae()}})}(),s.utils={getDaysInMonth:function(e,t){return void 0===e&&(e=s.currentMonth),void 0===t&&(t=s.currentYear),1===e&&(t%4==0&&t%100!=0||t%400==0)?29:s.l10n.daysInMonth[e]}},s.isMobile||K(),L(),(s.selectedDates.length||s.config.noCalendar)&&(s.config.enableTime&&y(s.config.noCalendar?s.latestSelectedDateObj||s.config.minDate:void 0),me(!1)),M(),s.showTimeInput=s.selectedDates.length>0||s.config.noCalendar;var e=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);!s.isMobile&&e&&ae(),de("onReady")}(),s}function C(e,t){for(var r=Array.prototype.slice.call(e),n=[],_=0;_l;)s.call(e,i=o[l++])&&t.push(i);return t}},function(e,t,r){var n=r(95),_=r(207).f,a={}.toString,i="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return i&&"[object Window]"==a.call(e)?function(e){try{return _(e)}catch(e){return i.slice()}}(e):_(n(e))}},function(e,t,r){"use strict";r(199);var n=r(67),_=r(200),a=r(64),i=/./.toString,o=function(e){r(70)(RegExp.prototype,"toString",e,!0)};r(51)(function(){return"/a/b"!=i.call({source:"a",flags:"b"})})?o(function(){var e=n(this);return"/".concat(e.source,"/","flags"in e?e.flags:!a&&e instanceof RegExp?_.call(e):void 0)}):"toString"!=i.name&&o(function(){return i.call(this)})},function(e,t,r){var n=Date.prototype,_=n.toString,a=n.getTime;new Date(NaN)+""!="Invalid Date"&&r(70)(n,"toString",function(){var e=a.call(this);return e==e?_.call(this):"Invalid Date"})},function(e,t,r){"use strict";var n=r(163),_=r(26),a=_(r(128)),i=_(r(108)),o=_(r(47)),s=_(r(577)),l=n(r(107)),u=_(r(578)),c={initialize:function(e,t){o.default.get("IS_NODE")&&console.log("It looks like you're using the browser version of the SDK in a node.js environment. You should require('parse/node') instead."),c._initialize(e,t)},_initialize:function(e,t,r){o.default.set("APPLICATION_ID",e),o.default.set("JAVASCRIPT_KEY",t),o.default.set("MASTER_KEY",r),o.default.set("USE_MASTER_KEY",!1)},setAsyncStorage:function(e){o.default.setAsyncStorage(e)}};Object.defineProperty(c,"applicationId",{get:function(){return o.default.get("APPLICATION_ID")},set:function(e){o.default.set("APPLICATION_ID",e)}}),Object.defineProperty(c,"javaScriptKey",{get:function(){return o.default.get("JAVASCRIPT_KEY")},set:function(e){o.default.set("JAVASCRIPT_KEY",e)}}),Object.defineProperty(c,"masterKey",{get:function(){return o.default.get("MASTER_KEY")},set:function(e){o.default.set("MASTER_KEY",e)}}),Object.defineProperty(c,"serverURL",{get:function(){return o.default.get("SERVER_URL")},set:function(e){o.default.set("SERVER_URL",e)}}),Object.defineProperty(c,"liveQueryServerURL",{get:function(){return o.default.get("LIVEQUERY_SERVER_URL")},set:function(e){o.default.set("LIVEQUERY_SERVER_URL",e)}}),c.ACL=r(129).default,c.Analytics=r(579),c.Cloud=r(580),c.CoreManager=r(47),c.Config=r(581).default,c.Error=r(87).default,c.FacebookUtils=r(582).default,c.File=r(98).default,c.GeoPoint=r(131).default,c.Polygon=r(208).default,c.Installation=r(583).default,c.Object=r(46).default,c.Op={Set:l.SetOp,Unset:l.UnsetOp,Increment:l.IncrementOp,Add:l.AddOp,Remove:l.RemoveOp,AddUnique:l.AddUniqueOp,Relation:l.RelationOp},c.Push=r(584),c.Query=r(132).default,c.Relation=r(88).default,c.Role=r(288).default,c.Schema=r(585).default,c.Session=r(296).default,c.Storage=r(165),c.User=r(164).default,c.LiveQuery=r(586).default,c.LiveQueryClient=r(297).default,c._request=function(){for(var e=arguments.length,t=new Array(e),r=0;r=200&&l.status<300){var e;try{e=JSON.parse(l.responseText),"function"==typeof l.getResponseHeader&&(l.getAllResponseHeaders()||"").includes("x-parse-job-status-id: ")&&(e=l.getResponseHeader("x-parse-job-status-id"))}catch(e){c.reject(e.toString())}e&&c.resolve({response:e,status:l.status,xhr:l})}else if(l.status>=500||0===l.status)if(++d0&&this._events[e].length>i&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"==typeof console.trace&&console.trace()),this},r.prototype.on=r.prototype.addListener,r.prototype.once=function(e,t){if(!n(t))throw TypeError("listener must be a function");var r=!1;function _(){this.removeListener(e,_),r||(r=!0,t.apply(this,arguments))}return _.listener=t,this.on(e,_),this},r.prototype.removeListener=function(e,t){var r,a,i,o;if(!n(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(i=(r=this._events[e]).length,a=-1,r===t||n(r.listener)&&r.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(_(r)){for(o=i;o-- >0;)if(r[o]===t||r[o].listener&&r[o].listener===t){a=o;break}if(a<0)return this;1===r.length?(r.length=0,delete this._events[e]):r.splice(a,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},r.prototype.removeAllListeners=function(e){var t,r;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(n(r=this._events[e]))this.removeListener(e,r);else if(r)for(;r.length;)this.removeListener(e,r[r.length-1]);return delete this._events[e],this},r.prototype.listeners=function(e){return this._events&&this._events[e]?n(this._events[e])?[this._events[e]]:this._events[e].slice():[]},r.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(n(t))return 1;if(t)return t.length}return 0},r.listenerCount=function(e,t){return e.listenerCount(t)}},function(e,t,r){"use strict";var n=r(26);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var _=n(r(2)),a=n(r(3)),i=n(r(5)),o=n(r(4)),s=n(r(6)),l=n(r(210)),u=n(r(47)),c=function(e){function t(e,r,n){var a;return(0,_.default)(this,t),(a=(0,i.default)(this,(0,o.default)(t).call(this))).id=e,a.query=r,a.sessionToken=n,a}return(0,s.default)(t,e),(0,a.default)(t,[{key:"unsubscribe",value:function(){var e=this;return u.default.getLiveQueryController().getDefaultLiveQueryClient().then(function(t){t.unsubscribe(e),e.emit("close")})}}]),t}(l.default);t.default=c},function(e,t,r){var n=r(105),_=r(104);r(590)("keys",function(){return function(e){return _(n(e))}})},function(e,t,r){var n=r(44),_=r(94),a=r(51);e.exports=function(e,t){var r=(_.Object||{})[e]||Object[e],i={};i[e]=t(r),n(n.S+n.F*a(function(){r(1)}),"Object",i)}},function(e,t,r){r(198)("search",1,function(e,t,r){return[function(r){"use strict";var n=e(this),_=void 0==r?void 0:r[t];return void 0!==_?_.call(r,n):new RegExp(r)[t](String(n))},r]})},function(e,t,r){var n=r(57),_=r(103),a=r(36)("match");e.exports=function(e){var t;return n(e)&&(void 0!==(t=e[a])?!!t:"RegExp"==_(e))}},function(e,t,r){"use strict";var n=r(44),_=r(95),a=r(159),i=r(124),o=[].lastIndexOf,s=!!o&&1/[1].lastIndexOf(1,-0)<0;n(n.P+n.F*(s||!r(126)(o)),"Array",{lastIndexOf:function(e){if(s)return o.apply(this,arguments)||0;var t=_(this),r=i(t.length),n=r-1;for(arguments.length>1&&(n=Math.min(n,a(arguments[1]))),n<0&&(n=r+n);n>=0;n--)if(n in t&&t[n]===e)return n||0;return-1}})},function(e,t,r){"use strict";r(595)("trim",function(e){return function(){return e(this,3)}})},function(e,t,r){var n=r(44),_=r(122),a=r(51),i=r(596),o="["+i+"]",s=RegExp("^"+o+o+"*"),l=RegExp(o+o+"*$"),u=function(e,t,r){var _={},o=a(function(){return!!i[e]()||"​…"!="​…"[e]()}),s=_[e]=o?t(c):i[e];r&&(_[r]=s),n(n.P+n.F*o,"String",_)},c=u.trim=function(e,t){return e=String(_(e)),1&t&&(e=e.replace(s,"")),2&t&&(e=e.replace(l,"")),e};e.exports=u},function(e,t){e.exports="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff"},function(e,t,r){var n=r(67),_=r(123),a=r(36)("species");e.exports=function(e,t){var r,i=n(e).constructor;return void 0===i||void 0==(r=n(i)[a])?t:_(r)}},function(e,t){e.exports=function(e,t,r){var n=void 0===r;switch(t.length){case 0:return n?e():e.call(r);case 1:return n?e(t[0]):e.call(r,t[0]);case 2:return n?e(t[0],t[1]):e.call(r,t[0],t[1]);case 3:return n?e(t[0],t[1],t[2]):e.call(r,t[0],t[1],t[2]);case 4:return n?e(t[0],t[1],t[2],t[3]):e.call(r,t[0],t[1],t[2],t[3])}return e.apply(r,t)}},function(e,t,r){var n=r(42),_=r(300).set,a=n.MutationObserver||n.WebKitMutationObserver,i=n.process,o=n.Promise,s="process"==r(103)(i);e.exports=function(){var e,t,r,l=function(){var n,_;for(s&&(n=i.domain)&&n.exit();e;){_=e.fn,e=e.next;try{_()}catch(n){throw e?r():t=void 0,n}}t=void 0,n&&n.enter()};if(s)r=function(){i.nextTick(l)};else if(!a||n.navigator&&n.navigator.standalone)if(o&&o.resolve){var u=o.resolve(void 0);r=function(){u.then(l)}}else r=function(){_.call(n,l)};else{var c=!0,d=document.createTextNode("");new a(l).observe(d,{characterData:!0}),r=function(){d.data=c=!c}}return function(n){var _={fn:n,next:void 0};t&&(t.next=_),e||(e=_,r()),t=_}}},function(e,t){e.exports=function(e){try{return{e:!1,v:e()}}catch(e){return{e:!0,v:e}}}},function(e,t,r){var n=r(42).navigator;e.exports=n&&n.userAgent||""},function(e,t,r){var n=r(67),_=r(57),a=r(301);e.exports=function(e,t){if(n(e),_(t)&&t.constructor===e)return t;var r=a.f(e);return(0,r.resolve)(t),r.promise}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r1?t:this.data.length),r,this.encoding)},a.toString=function(){return"[object Blob]"},a.close=function(){this.size=0,delete this.data},r}(e);e.Blob=function(e,r){var n=r&&r.type||"",_=new t;if(e)for(var a=0,i=e.length;a-1,isMac:t.navigator.platform.toUpperCase().indexOf("MAC")>=0,keyCode:{BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,SPACE:32,DELETE:46,K:75,M:77,V:86},isMetaCtrlKey:function(e){return!!(i.isMac&&e.metaKey||!i.isMac&&e.ctrlKey)},isKey:function(e,t){var r=i.getKeyCode(e);return!1===Array.isArray(t)?r===t:-1!==t.indexOf(r)},getKeyCode:function(e){var t=e.which;return null===t&&(t=null!==e.charCode?e.charCode:e.keyCode),t},blockContainerElementNames:["p","h1","h2","h3","h4","h5","h6","blockquote","pre","ul","li","ol","address","article","aside","audio","canvas","dd","dl","dt","fieldset","figcaption","figure","footer","form","header","hgroup","main","nav","noscript","output","section","video","table","thead","tbody","tfoot","tr","th","td"],emptyElementNames:["br","col","colgroup","hr","img","input","source","wbr"],extend:function(){var e=[!0].concat(Array.prototype.slice.call(arguments));return r.apply(this,e)},defaults:function(){var e=[!1].concat(Array.prototype.slice.call(arguments));return r.apply(this,e)},createLink:function(e,t,r,n){var _=e.createElement("a");return i.moveTextRangeIntoElement(t[0],t[t.length-1],_),_.setAttribute("href",r),n&&("_blank"===n&&_.setAttribute("rel","noopener noreferrer"),_.setAttribute("target",n)),_},findOrCreateMatchingTextNodes:function(e,t,r){for(var n=e.createTreeWalker(t,NodeFilter.SHOW_ALL,null,!1),_=[],a=0,o=!1,s=null,l=null;null!==(s=n.nextNode());)if(!(s.nodeType>3))if(3===s.nodeType){if(!o&&r.startr.end+1)throw new Error("PerformLinking overshot the target!");o&&_.push(l||s),a+=s.nodeValue.length,null!==l&&(a+=l.nodeValue.length,n.nextNode()),l=null}else"img"===s.tagName.toLowerCase()&&(!o&&r.start<=a&&(o=!0),o&&_.push(s));return _},splitStartNodeIfNeeded:function(e,t,r){return t!==r?e.splitText(t-r):null},splitEndNodeIfNeeded:function(e,t,r,n){var _,a;_=n+e.nodeValue.length+(t?t.nodeValue.length:0)-1,a=r-n-(t?e.nodeValue.length:0),_>=r&&n!==_&&0!==a&&(t||e).splitText(a)},splitByBlockElements:function(t){if(3!==t.nodeType&&1!==t.nodeType)return[];var r=[],n=e.util.blockContainerElementNames.join(",");if(3===t.nodeType||0===t.querySelectorAll(n).length)return[t];for(var _=0;_0)break;n=a.nextNode()}return n},findPreviousSibling:function(e){if(!e||i.isMediumEditorElement(e))return!1;for(var t=e.previousSibling;!t&&!i.isMediumEditorElement(e.parentNode);)t=(e=e.parentNode).previousSibling;return t},isDescendant:function(e,t,r){if(!e||!t)return!1;if(e===t)return!!r;if(1!==e.nodeType)return!1;if(n||3!==t.nodeType)return e.contains(t);for(var _=t.parentNode;null!==_;){if(_===e)return!0;_=_.parentNode}return!1},isElement:function(e){return!(!e||1!==e.nodeType)},throttle:function(e,t){var r,n,_,a=null,i=0,o=function(){i=Date.now(),a=null,_=e.apply(r,n),a||(r=n=null)};return t||0===t||(t=50),function(){var s=Date.now(),l=t-(s-i);return r=this,n=arguments,l<=0||l>t?(a&&(clearTimeout(a),a=null),i=s,_=e.apply(r,n),a||(r=n=null)):a||(a=setTimeout(o,l)),_}},traverseUp:function(e,t){if(!e)return!1;do{if(1===e.nodeType){if(t(e))return e;if(i.isMediumEditorElement(e))return!1}e=e.parentNode}while(e);return!1},htmlEntities:function(e){return String(e).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")},insertHTMLCommand:function(t,r){var n,_,a,o,s,l,u,c=!1,d=["insertHTML",!1,r];if(!e.util.isEdge&&t.queryCommandSupported("insertHTML"))try{return t.execCommand.apply(t,d)}catch(e){}if((n=t.getSelection()).rangeCount){if(u=(_=n.getRangeAt(0)).commonAncestorContainer,i.isMediumEditorElement(u)&&!u.firstChild)_.selectNode(u.appendChild(t.createTextNode("")));else if(3===u.nodeType&&0===_.startOffset&&_.endOffset===u.nodeValue.length||3!==u.nodeType&&u.innerHTML===_.toString()){for(;!i.isMediumEditorElement(u)&&u.parentNode&&1===u.parentNode.childNodes.length&&!i.isMediumEditorElement(u.parentNode);)u=u.parentNode;_.selectNode(u)}for(_.deleteContents(),(a=t.createElement("div")).innerHTML=r,o=t.createDocumentFragment();a.firstChild;)s=a.firstChild,l=o.appendChild(s);_.insertNode(o),l&&((_=_.cloneRange()).setStartAfter(l),_.collapse(!0),e.selection.selectRange(t,_)),c=!0}return t.execCommand.callListeners&&t.execCommand.callListeners(d,c),c},execFormatBlock:function(t,r){var n=i.getTopBlockContainer(e.selection.getSelectionStart(t));if("blockquote"===r){if(n&&Array.prototype.slice.call(n.childNodes).some(function(e){return i.isBlockContainer(e)}))return t.execCommand("outdent",!1,null);if(i.isIE)return t.execCommand("indent",!1,r)}if(n&&r===n.nodeName.toLowerCase()&&(r="p"),i.isIE&&(r="<"+r+">"),n&&"blockquote"===n.nodeName.toLowerCase()){if(i.isIE&&"

"===r)return t.execCommand("outdent",!1,r);if((i.isFF||i.isEdge)&&"p"===r)return Array.prototype.slice.call(n.childNodes).some(function(e){return!i.isBlockContainer(e)})&&t.execCommand("formatBlock",!1,r),t.execCommand("outdent",!1,r)}return t.execCommand("formatBlock",!1,r)},setTargetBlank:function(e,t){var r,n=t||!1;if("a"===e.nodeName.toLowerCase())e.target="_blank",e.rel="noopener noreferrer";else for(e=e.getElementsByTagName("a"),r=0;rn?(_=_.parentNode,r-=1):(a=a.parentNode,n-=1);for(;_!==a;)_=_.parentNode,a=a.parentNode;return _},isElementAtBeginningOfBlock:function(e){for(var t;!i.isBlockContainer(e)&&!i.isMediumEditorElement(e);){for(t=e;t=t.previousSibling;)if((3===t.nodeType?t.nodeValue:t.textContent).length>0)return!1;e=e.parentNode}return!0},isMediumEditorElement:function(e){return e&&e.getAttribute&&!!e.getAttribute("data-medium-editor-element")},getContainerEditorElement:function(e){return i.traverseUp(e,function(e){return i.isMediumEditorElement(e)})},isBlockContainer:function(e){return e&&3!==e.nodeType&&-1!==i.blockContainerElementNames.indexOf(e.nodeName.toLowerCase())},getClosestBlockContainer:function(e){return i.traverseUp(e,function(e){return i.isBlockContainer(e)||i.isMediumEditorElement(e)})},getTopBlockContainer:function(e){var t=!!i.isBlockContainer(e)&&e;return i.traverseUp(e,function(e){return i.isBlockContainer(e)&&(t=e),!(t||!i.isMediumEditorElement(e))&&(t=e,!0)}),t},getFirstSelectableLeafNode:function(e){for(;e&&e.firstChild;)e=e.firstChild;if("table"===(e=i.traverseUp(e,function(e){return-1===i.emptyElementNames.indexOf(e.nodeName.toLowerCase())})).nodeName.toLowerCase()){var t=e.querySelector("th, td");t&&(e=t)}return e},getFirstTextNode:function(e){return i.warn("getFirstTextNode is deprecated and will be removed in version 6.0.0"),i._getFirstTextNode(e)},_getFirstTextNode:function(e){if(3===e.nodeType)return e;for(var t=0;t0){var _,a=n.getRangeAt(0),i=a.cloneRange();i.selectNodeContents(e),i.setEnd(a.startContainer,a.startOffset),r={start:_=i.toString().length,end:_+a.toString().length},this.doesRangeStartWithImages(a,t)&&(r.startsWithImage=!0);var o=this.getTrailingImageCount(e,r,a.endContainer,a.endOffset);if(o&&(r.trailingImageCount=o),0!==_){var s=this.getIndexRelativeToAdjacentEmptyBlocks(t,e,a.startContainer,a.startOffset);-1!==s&&(r.emptyBlocksIndex=s)}}return r},importSelection:function(e,t,r,n){if(e&&t){var _=r.createRange();_.setStart(t,0),_.collapse(!0);var a,i=t,o=[],s=0,l=!1,u=!1,c=0,d=!1,f=!1,p=null;for((n||e.startsWithImage||void 0!==e.emptyBlocksIndex)&&(f=!0);!d&&i;)if(i.nodeType>3)i=o.pop();else{if(3!==i.nodeType||u){if(e.trailingImageCount&&u&&("img"===i.nodeName.toLowerCase()&&c++,c===e.trailingImageCount)){for(var h=0;i.parentNode.childNodes[h]!==i;)h++;_.setEnd(i.parentNode,h+1),d=!0}if(!d&&1===i.nodeType)for(var E=i.childNodes.length-1;E>=0;)o.push(i.childNodes[E]),E-=1}else a=s+i.length,!l&&e.start>=s&&e.start<=a&&(f||e.start=s&&e.end<=a&&(e.trailingImageCount?u=!0:(_.setEnd(i,e.end-s),d=!0)),s=a;d||(i=o.pop())}!l&&p&&(_.setStart(p,p.length),_.setEnd(p,p.length)),void 0!==e.emptyBlocksIndex&&(_=this.importSelectionMoveCursorPastBlocks(r,t,e.emptyBlocksIndex,_)),n&&(_=this.importSelectionMoveCursorPastAnchor(e,_)),this.selectRange(r,_)}},importSelectionMoveCursorPastAnchor:function(t,r){if(t.start===t.end&&3===r.startContainer.nodeType&&r.startOffset===r.startContainer.nodeValue.length&&e.util.traverseUp(r.startContainer,function(e){return"a"===e.nodeName.toLowerCase()})){for(var n=r.startContainer,_=r.startContainer.parentNode;null!==_&&"a"!==_.nodeName.toLowerCase();)_.childNodes[_.childNodes.length-1]!==n?_=null:(n=_,_=_.parentNode);if(null!==_&&"a"===_.nodeName.toLowerCase()){for(var a=null,i=0;null===a&&i<_.parentNode.childNodes.length;i++)_.parentNode.childNodes[i]===_&&(a=i);r.setStart(_.parentNode,a+1),r.collapse(!0)}}return r},importSelectionMoveCursorPastBlocks:function(r,n,_,a){var i,o,s=r.createTreeWalker(n,NodeFilter.SHOW_ELEMENT,t,!1),l=a.startContainer,u=0;for(_=_||1,i=3===l.nodeType&&e.util.isBlockContainer(l.previousSibling)?l.previousSibling:e.util.getClosestBlockContainer(l);s.nextNode();)if(o){if(o=s.currentNode,++u===_)break;if(o.textContent.length>0)break}else i===s.currentNode&&(o=s.currentNode);return o||(o=i),a.setStart(e.util.getFirstSelectableLeafNode(o),0),a},getIndexRelativeToAdjacentEmptyBlocks:function(r,n,_,a){if(_.textContent.length>0&&a>0)return-1;var i=_;if(3!==i.nodeType&&(i=_.childNodes[a]),i){if(!e.util.isElementAtBeginningOfBlock(i))return-1;var o=e.util.findPreviousSibling(i);if(!o)return-1;if(o.nodeValue)return-1}for(var s=e.util.getClosestBlockContainer(_),l=r.createTreeWalker(n,NodeFilter.SHOW_ELEMENT,t,!1),u=0;l.nextNode();){var c=""===l.currentNode.textContent;if((c||u>0)&&(u+=1),l.currentNode===s)return u;c||(u=0)}return u},doesRangeStartWithImages:function(e,t){if(0!==e.startOffset||1!==e.startContainer.nodeType)return!1;if("img"===e.startContainer.nodeName.toLowerCase())return!0;var r=e.startContainer.querySelector("img");if(!r)return!1;for(var n=t.createTreeWalker(e.startContainer,NodeFilter.SHOW_ALL,null,!1);n.nextNode();){var _=n.currentNode;if(_===r)break;if(_.nodeValue)return!1}return!0},getTrailingImageCount:function(e,t,r,n){if(0===n||1!==r.nodeType)return 0;if("img"!==r.nodeName.toLowerCase()&&!r.querySelector("img"))return 0;for(var _=r.childNodes[n-1];_.hasChildNodes();)_=_.lastChild;for(var a,i=e,o=[],s=0,l=!1,u=!1,c=!1,d=0;!c&&i;)if(i.nodeType>3)i=o.pop();else{if(3!==i.nodeType||u){if("img"===i.nodeName.toLowerCase()&&d++,i===_)c=!0;else if(1===i.nodeType)for(var f=i.childNodes.length-1;f>=0;)o.push(i.childNodes[f]),f-=1}else d=0,a=s+i.length,!l&&t.start>=s&&t.start<=a&&(l=!0),l&&t.end>=s&&t.end<=a&&(u=!0),s=a;c||(i=o.pop())}return d},selectionContainsContent:function(e){var t=e.getSelection();if(!t||t.isCollapsed||!t.rangeCount)return!1;if(""!==t.toString().trim())return!0;var r=this.getSelectedParentElement(t.getRangeAt(0));return!(!r||!("img"===r.nodeName.toLowerCase()||1===r.nodeType&&r.querySelector("img")))},selectionInContentEditableFalse:function(e){var t,r=this.findMatchingSelectionParent(function(e){var r=e&&e.getAttribute("contenteditable");return"true"===r&&(t=!0),"#text"!==e.nodeName&&"false"===r},e);return!t&&r},getSelectionHtml:function(e){var t,r,n,_="",a=e.getSelection();if(a.rangeCount){for(n=e.createElement("div"),t=0,r=a.rangeCount;t-1?[t]:t,Array.prototype.forEach.call(t,function(e){e.addEventListener(r,n,_),this.events.push([e,r,n,_])}.bind(this))},detachDOMEvent:function(t,r,n,_){var a,i,o=this.base.options.contentWindow,s=this.base.options.ownerDocument;t&&(t=e.util.isElement(t)||[o,s].indexOf(t)>-1?[t]:t,Array.prototype.forEach.call(t,function(e){-1!==(a=this.indexOfListener(e,r,n,_))&&(i=this.events.splice(a,1)[0])[0].removeEventListener(i[1],i[2],i[3])}.bind(this)))},indexOfListener:function(e,t,r,n){var _,a,i;for(_=0,a=this.events.length;_0&&(n=-1!==_.indexOf(e.nodeName.toLowerCase())),!n&&this.style&&(t=this.style.value.split("|"),r=this.window.getComputedStyle(e,null).getPropertyValue(this.style.prop),t.forEach(function(e){this.knownState||((n=-1!==r.indexOf(e))||"text-decoration"!==this.style.prop)&&(this.knownState=n)},this)),n)}});t.isBuiltInButton=function(t){return"string"==typeof t&&e.extensions.button.prototype.defaults.hasOwnProperty(t)},e.extensions.button=t}(),e.extensions.button.prototype.defaults={bold:{name:"bold",action:"bold",aria:"bold",tagNames:["b","strong"],style:{prop:"font-weight",value:"700|bold"},useQueryState:!0,contentDefault:"B",contentFA:''},italic:{name:"italic",action:"italic",aria:"italic",tagNames:["i","em"],style:{prop:"font-style",value:"italic"},useQueryState:!0,contentDefault:"I",contentFA:''},underline:{name:"underline",action:"underline",aria:"underline",tagNames:["u"],style:{prop:"text-decoration",value:"underline"},useQueryState:!0,contentDefault:"U",contentFA:''},strikethrough:{name:"strikethrough",action:"strikethrough",aria:"strike through",tagNames:["strike"],style:{prop:"text-decoration",value:"line-through"},useQueryState:!0,contentDefault:"A",contentFA:''},superscript:{name:"superscript",action:"superscript",aria:"superscript",tagNames:["sup"],contentDefault:"x1",contentFA:''},subscript:{name:"subscript",action:"subscript",aria:"subscript",tagNames:["sub"],contentDefault:"x1",contentFA:''},image:{name:"image",action:"image",aria:"image",tagNames:["img"],contentDefault:"image",contentFA:''},html:{name:"html",action:"html",aria:"evaluate html",tagNames:["iframe","object"],contentDefault:"html",contentFA:''},orderedlist:{name:"orderedlist",action:"insertorderedlist",aria:"ordered list",tagNames:["ol"],useQueryState:!0,contentDefault:"1.",contentFA:''},unorderedlist:{name:"unorderedlist",action:"insertunorderedlist",aria:"unordered list",tagNames:["ul"],useQueryState:!0,contentDefault:"",contentFA:''},indent:{name:"indent",action:"indent",aria:"indent",tagNames:[],contentDefault:"",contentFA:''},outdent:{name:"outdent",action:"outdent",aria:"outdent",tagNames:[],contentDefault:"",contentFA:''},justifyCenter:{name:"justifyCenter",action:"justifyCenter",aria:"center justify",tagNames:[],style:{prop:"text-align",value:"center"},contentDefault:"C",contentFA:''},justifyFull:{name:"justifyFull",action:"justifyFull",aria:"full justify",tagNames:[],style:{prop:"text-align",value:"justify"},contentDefault:"J",contentFA:''},justifyLeft:{name:"justifyLeft",action:"justifyLeft",aria:"left justify",tagNames:[],style:{prop:"text-align",value:"left"},contentDefault:"L",contentFA:''},justifyRight:{name:"justifyRight",action:"justifyRight",aria:"right justify",tagNames:[],style:{prop:"text-align",value:"right"},contentDefault:"R",contentFA:''},removeFormat:{name:"removeFormat",aria:"remove formatting",action:"removeFormat",contentDefault:"X",contentFA:''},quote:{name:"quote",action:"append-blockquote",aria:"blockquote",tagNames:["blockquote"],contentDefault:"",contentFA:''},pre:{name:"pre",action:"append-pre",aria:"preformatted text",tagNames:["pre"],contentDefault:"0101",contentFA:''},h1:{name:"h1",action:"append-h1",aria:"header type one",tagNames:["h1"],contentDefault:"H1",contentFA:'1'},h2:{name:"h2",action:"append-h2",aria:"header type two",tagNames:["h2"],contentDefault:"H2",contentFA:'2'},h3:{name:"h3",action:"append-h3",aria:"header type three",tagNames:["h3"],contentDefault:"H3",contentFA:'3'},h4:{name:"h4",action:"append-h4",aria:"header type four",tagNames:["h4"],contentDefault:"H4",contentFA:'4'},h5:{name:"h5",action:"append-h5",aria:"header type five",tagNames:["h5"],contentDefault:"H5",contentFA:'5'},h6:{name:"h6",action:"append-h6",aria:"header type six",tagNames:["h6"],contentDefault:"H6",contentFA:'6'}},function(){var t=e.extensions.button.extend({init:function(){e.extensions.button.prototype.init.apply(this,arguments)},formSaveLabel:"✓",formCloseLabel:"×",activeClass:"medium-editor-toolbar-form-active",hasForm:!0,getForm:function(){},isDisplayed:function(){return!!this.hasForm&&this.getForm().classList.contains(this.activeClass)},showForm:function(){this.hasForm&&this.getForm().classList.add(this.activeClass)},hideForm:function(){this.hasForm&&this.getForm().classList.remove(this.activeClass)},showToolbarDefaultActions:function(){var e=this.base.getExtensionByName("toolbar");e&&e.showToolbarDefaultActions()},hideToolbarDefaultActions:function(){var e=this.base.getExtensionByName("toolbar");e&&e.hideToolbarDefaultActions()},setToolbarPosition:function(){var e=this.base.getExtensionByName("toolbar");e&&e.setToolbarPosition()}});e.extensions.form=t}(),function(){var t=e.extensions.form.extend({customClassOption:null,customClassOptionText:"Button",linkValidation:!1,placeholderText:"Paste or type a link",targetCheckbox:!1,targetCheckboxText:"Open in new window",name:"anchor",action:"createLink",aria:"link",tagNames:["a"],contentDefault:"#",contentFA:'',init:function(){e.extensions.form.prototype.init.apply(this,arguments),this.subscribe("editableKeydown",this.handleKeydown.bind(this))},handleClick:function(t){t.preventDefault(),t.stopPropagation();var r=e.selection.getSelectionRange(this.document);return"a"===r.startContainer.nodeName.toLowerCase()||"a"===r.endContainer.nodeName.toLowerCase()||e.util.getClosestTag(e.selection.getSelectedParentElement(r),"a")?this.execAction("unlink"):(this.isDisplayed()||this.showForm(),!1)},handleKeydown:function(t){e.util.isKey(t,e.util.keyCode.K)&&e.util.isMetaCtrlKey(t)&&!t.shiftKey&&this.handleClick(t)},getForm:function(){return this.form||(this.form=this.createForm()),this.form},getTemplate:function(){var e=[''];return e.push('',"fontawesome"===this.getEditorOption("buttonLabels")?'':this.formSaveLabel,""),e.push('',"fontawesome"===this.getEditorOption("buttonLabels")?'':this.formCloseLabel,""),this.targetCheckbox&&e.push('

','','","
"),this.customClassOption&&e.push('
','',"","
"),e.join("")},isDisplayed:function(){return e.extensions.form.prototype.isDisplayed.apply(this)},hideForm:function(){e.extensions.form.prototype.hideForm.apply(this),this.getInput().value=""},showForm:function(t){var r=this.getInput(),n=this.getAnchorTargetCheckbox(),_=this.getAnchorButtonCheckbox();if("string"==typeof(t=t||{value:""})&&(t={value:t}),this.base.saveSelection(),this.hideToolbarDefaultActions(),e.extensions.form.prototype.showForm.apply(this),this.setToolbarPosition(),r.value=t.value,r.focus(),n&&(n.checked="_blank"===t.target),_){var a=t.buttonClass?t.buttonClass.split(" "):[];_.checked=-1!==a.indexOf(this.customClassOption)}},destroy:function(){if(!this.form)return!1;this.form.parentNode&&this.form.parentNode.removeChild(this.form),delete this.form},getFormOpts:function(){var e=this.getAnchorTargetCheckbox(),t=this.getAnchorButtonCheckbox(),r={value:this.getInput().value.trim()};return this.linkValidation&&(r.value=this.checkLinkFormat(r.value)),r.target="_self",e&&e.checked&&(r.target="_blank"),t&&t.checked&&(r.buttonClass=this.customClassOption),r},doFormSave:function(){var e=this.getFormOpts();this.completeFormSave(e)},completeFormSave:function(e){this.base.restoreSelection(),this.execAction(this.action,e),this.base.checkSelection()},ensureEncodedUri:function(e){return e===decodeURI(e)?encodeURI(e):e},ensureEncodedUriComponent:function(e){return e===decodeURIComponent(e)?encodeURIComponent(e):e},ensureEncodedParam:function(e){var t=e.split("="),r=t[0],n=t[1];return r+(void 0===n?"":"="+this.ensureEncodedUriComponent(n))},ensureEncodedQuery:function(e){return e.split("&").map(this.ensureEncodedParam.bind(this)).join("&")},checkLinkFormat:function(e){var t=/^([a-z]+:)?\/\/|^(mailto|tel|maps):|^\#/i.test(e),r="",n=e.match(/^(.*?)(?:\?(.*?))?(?:#(.*))?$/),_=n[1],a=n[2],i=n[3];if(/^\+?\s?\(?(?:\d\s?\-?\)?){3,20}$/.test(e))return"tel:"+e;if(!t){var o=_.split("/")[0];(o.match(/.+(\.|:).+/)||"localhost"===o)&&(r="http://")}return r+this.ensureEncodedUri(_)+(void 0===a?"":"?"+this.ensureEncodedQuery(a))+(void 0===i?"":"#"+i)},doFormCancel:function(){this.base.restoreSelection(),this.base.checkSelection()},attachFormEvents:function(e){var t=e.querySelector(".medium-editor-toolbar-close"),r=e.querySelector(".medium-editor-toolbar-save"),n=e.querySelector(".medium-editor-toolbar-input");this.on(e,"click",this.handleFormClick.bind(this)),this.on(n,"keyup",this.handleTextboxKeyup.bind(this)),this.on(t,"click",this.handleCloseClick.bind(this)),this.on(r,"click",this.handleSaveClick.bind(this),!0)},createForm:function(){var e=this.document.createElement("div");return e.className="medium-editor-toolbar-form",e.id="medium-editor-toolbar-form-anchor-"+this.getEditorId(),e.innerHTML=this.getTemplate(),this.attachFormEvents(e),e},getInput:function(){return this.getForm().querySelector("input.medium-editor-toolbar-input")},getAnchorTargetCheckbox:function(){return this.getForm().querySelector(".medium-editor-toolbar-anchor-target")},getAnchorButtonCheckbox:function(){return this.getForm().querySelector(".medium-editor-toolbar-anchor-button")},handleTextboxKeyup:function(t){if(t.keyCode===e.util.keyCode.ENTER)return t.preventDefault(),void this.doFormSave();t.keyCode===e.util.keyCode.ESCAPE&&(t.preventDefault(),this.doFormCancel())},handleFormClick:function(e){e.stopPropagation()},handleSaveClick:function(e){e.preventDefault(),this.doFormSave()},handleCloseClick:function(e){e.preventDefault(),this.doFormCancel()}});e.extensions.anchor=t}(),function(){var t=e.Extension.extend({name:"anchor-preview",hideDelay:500,previewValueSelector:"a",showWhenToolbarIsVisible:!1,showOnEmptyLinks:!0,init:function(){this.anchorPreview=this.createPreview(),this.getEditorOption("elementsContainer").appendChild(this.anchorPreview),this.attachToEditables()},getInteractionElements:function(){return this.getPreviewElement()},getPreviewElement:function(){return this.anchorPreview},createPreview:function(){var e=this.document.createElement("div");return e.id="medium-editor-anchor-preview-"+this.getEditorId(),e.className="medium-editor-anchor-preview",e.innerHTML=this.getTemplate(),this.on(e,"click",this.handleClick.bind(this)),e},getTemplate:function(){return'
'},destroy:function(){this.anchorPreview&&(this.anchorPreview.parentNode&&this.anchorPreview.parentNode.removeChild(this.anchorPreview),delete this.anchorPreview)},hidePreview:function(){this.anchorPreview&&this.anchorPreview.classList.remove("medium-editor-anchor-preview-active"),this.activeAnchor=null},showPreview:function(e){return!(!this.anchorPreview.classList.contains("medium-editor-anchor-preview-active")&&!e.getAttribute("data-disable-preview"))||(this.previewValueSelector&&(this.anchorPreview.querySelector(this.previewValueSelector).textContent=e.attributes.href.value,this.anchorPreview.querySelector(this.previewValueSelector).href=e.attributes.href.value),this.anchorPreview.classList.add("medium-toolbar-arrow-over"),this.anchorPreview.classList.remove("medium-toolbar-arrow-under"),this.anchorPreview.classList.contains("medium-editor-anchor-preview-active")||this.anchorPreview.classList.add("medium-editor-anchor-preview-active"),this.activeAnchor=e,this.positionPreview(),this.attachPreviewHandlers(),this)},positionPreview:function(e){e=e||this.activeAnchor;var t,r,n,_,a,i=this.window.innerWidth,o=this.anchorPreview.offsetHeight,s=e.getBoundingClientRect(),l=this.diffLeft,u=this.diffTop,c=this.getEditorOption("elementsContainer"),d=["absolute","fixed"].indexOf(window.getComputedStyle(c).getPropertyValue("position"))>-1,f={};t=this.anchorPreview.offsetWidth/2;var p=this.base.getExtensionByName("toolbar");p&&(l=p.diffLeft,u=p.diffTop),r=l-t,d?(_=c.getBoundingClientRect(),["top","left"].forEach(function(e){f[e]=s[e]-_[e]}),f.width=s.width,f.height=s.height,s=f,i=_.width,a=c.scrollTop):a=this.window.pageYOffset,n=s.left+s.width/2,a+=o+s.top+s.height-u-this.anchorPreview.offsetHeight,this.anchorPreview.style.top=Math.round(a)+"px",this.anchorPreview.style.right="initial",nthis.hideDelay&&this.detachPreviewHandlers()},detachPreviewHandlers:function(){clearInterval(this.intervalTimer),this.instanceHandlePreviewMouseover&&(this.off(this.anchorPreview,"mouseover",this.instanceHandlePreviewMouseover),this.off(this.anchorPreview,"mouseout",this.instanceHandlePreviewMouseout),this.activeAnchor&&(this.off(this.activeAnchor,"mouseover",this.instanceHandlePreviewMouseover),this.off(this.activeAnchor,"mouseout",this.instanceHandlePreviewMouseout))),this.hidePreview(),this.hovering=this.instanceHandlePreviewMouseover=this.instanceHandlePreviewMouseout=null},attachPreviewHandlers:function(){this.lastOver=(new Date).getTime(),this.hovering=!0,this.instanceHandlePreviewMouseover=this.handlePreviewMouseover.bind(this),this.instanceHandlePreviewMouseout=this.handlePreviewMouseout.bind(this),this.intervalTimer=setInterval(this.updatePreview.bind(this),200),this.on(this.anchorPreview,"mouseover",this.instanceHandlePreviewMouseover),this.on(this.anchorPreview,"mouseout",this.instanceHandlePreviewMouseout),this.on(this.activeAnchor,"mouseover",this.instanceHandlePreviewMouseover),this.on(this.activeAnchor,"mouseout",this.instanceHandlePreviewMouseout)}});e.extensions.anchorPreview=t}(),function(){var t,r,n,_,a;function i(t){return!e.util.getClosestTag(t,"a")}t=[" ","\t","\n","\r"," "," "," "," "," ","\u2028","\u2029"],n="(((?:(https?://|ftps?://|nntp://)|www\\d{0,3}[.]|[a-z0-9.\\-]+[.]("+(r="com|net|org|edu|gov|mil|aero|asia|biz|cat|coop|info|int|jobs|mobi|museum|name|post|pro|tel|travel|xxx|ac|ad|ae|af|ag|ai|al|am|an|ao|aq|ar|as|at|au|aw|ax|az|ba|bb|bd|be|bf|bg|bh|bi|bj|bm|bn|bo|br|bs|bt|bv|bw|by|bz|ca|cc|cd|cf|cg|ch|ci|ck|cl|cm|cn|co|cr|cs|cu|cv|cx|cy|cz|dd|de|dj|dk|dm|do|dz|ec|ee|eg|eh|er|es|et|eu|fi|fj|fk|fm|fo|fr|ga|gb|gd|ge|gf|gg|gh|gi|gl|gm|gn|gp|gq|gr|gs|gt|gu|gw|gy|hk|hm|hn|hr|ht|hu|id|ie|il|im|in|io|iq|ir|is|it|je|jm|jo|jp|ke|kg|kh|ki|km|kn|kp|kr|kw|ky|kz|la|lb|lc|li|lk|lr|ls|lt|lu|lv|ly|ma|mc|md|me|mg|mh|mk|ml|mm|mn|mo|mp|mq|mr|ms|mt|mu|mv|mw|mx|my|mz|na|nc|ne|nf|ng|ni|nl|no|np|nr|nu|nz|om|pa|pe|pf|pg|ph|pk|pl|pm|pn|pr|ps|pt|pw|py|qa|re|ro|rs|ru|rw|sa|sb|sc|sd|se|sg|sh|si|sj|ja|sk|sl|sm|sn|so|sr|ss|st|su|sv|sx|sy|sz|tc|td|tf|tg|th|tj|tk|tl|tm|tn|to|tp|tr|tt|tv|tw|tz|ua|ug|uk|us|uy|uz|va|vc|ve|vg|vi|vn|vu|wf|ws|ye|yt|yu|za|zm|zw")+")\\/)\\S+(?:[^\\s`!\\[\\]{};:'\".,?«»“”‘’])))|(([a-z0-9\\-]+\\.)?[a-z0-9\\-]+\\.("+r+"))",_=new RegExp("^("+r+")$","i"),a=new RegExp(n,"gi");var o=e.Extension.extend({init:function(){e.Extension.prototype.init.apply(this,arguments),this.disableEventHandling=!1,this.subscribe("editableKeypress",this.onKeypress.bind(this)),this.subscribe("editableBlur",this.onBlur.bind(this)),this.document.execCommand("AutoUrlDetect",!1,!1)},isLastInstance:function(){for(var e=0,t=0;t0&&null!==_;)(n=(r=a.currentNode).nodeValue).length>t?(_=r.splitText(n.length-t),t=0):(_=a.previousNode(),t-=n.length);return _},performLinkingWithinElement:function(t){for(var r=this.findLinkableText(t),n=0;n1;)_.appendChild(n.childNodes[1])}});e.extensions.autoLink=o}(),function(){var t="medium-editor-dragover";function r(r){var n=e.util.getContainerEditorElement(r);Array.prototype.slice.call(n.parentElement.querySelectorAll("."+t)).forEach(function(e){e.classList.remove(t)})}var n=e.Extension.extend({name:"fileDragging",allowedTypes:["image"],init:function(){e.Extension.prototype.init.apply(this,arguments),this.subscribe("editableDrag",this.handleDrag.bind(this)),this.subscribe("editableDrop",this.handleDrop.bind(this))},handleDrag:function(e){e.preventDefault(),e.dataTransfer.dropEffect="copy";var n=e.target.classList?e.target:e.target.parentElement;r(n),"dragover"===e.type&&n.classList.add(t)},handleDrop:function(e){e.preventDefault(),e.stopPropagation(),this.base.selectElement(e.target);var t=this.base.exportSelection();t.start=t.end,this.base.importSelection(t),e.dataTransfer.files&&Array.prototype.slice.call(e.dataTransfer.files).forEach(function(e){this.isAllowedFile(e)&&e.type.match("image")&&this.insertImageFile(e)},this),r(e.target)},isAllowedFile:function(e){return this.allowedTypes.some(function(t){return!!e.type.match(t)})},insertImageFile:function(t){if("function"==typeof FileReader){var r=new FileReader;r.readAsDataURL(t),r.addEventListener("load",function(t){var r=this.document.createElement("img");r.src=t.target.result,e.util.insertHTMLCommand(this.document,r.outerHTML)}.bind(this))}}});e.extensions.fileDragging=n}(),function(){var t=e.Extension.extend({name:"keyboard-commands",commands:[{command:"bold",key:"B",meta:!0,shift:!1,alt:!1},{command:"italic",key:"I",meta:!0,shift:!1,alt:!1},{command:"underline",key:"U",meta:!0,shift:!1,alt:!1}],init:function(){e.Extension.prototype.init.apply(this,arguments),this.subscribe("editableKeydown",this.handleKeydown.bind(this)),this.keys={},this.commands.forEach(function(e){var t=e.key.charCodeAt(0);this.keys[t]||(this.keys[t]=[]),this.keys[t].push(e)},this)},handleKeydown:function(t){var r=e.util.getKeyCode(t);if(this.keys[r]){var n=e.util.isMetaCtrlKey(t),_=!!t.shiftKey,a=!!t.altKey;this.keys[r].forEach(function(e){e.meta!==n||e.shift!==_||e.alt!==a&&void 0!==e.alt||(t.preventDefault(),t.stopPropagation(),"function"==typeof e.command?e.command.apply(this):!1!==e.command&&this.execAction(e.command))},this)}}});e.extensions.keyboardCommands=t}(),function(){var t=e.extensions.form.extend({name:"fontname",action:"fontName",aria:"change font name",contentDefault:"±",contentFA:'',fonts:["","Arial","Verdana","Times New Roman"],init:function(){e.extensions.form.prototype.init.apply(this,arguments)},handleClick:function(e){if(e.preventDefault(),e.stopPropagation(),!this.isDisplayed()){var t=this.document.queryCommandValue("fontName")+"";this.showForm(t)}return!1},getForm:function(){return this.form||(this.form=this.createForm()),this.form},isDisplayed:function(){return"block"===this.getForm().style.display},hideForm:function(){this.getForm().style.display="none",this.getSelect().value=""},showForm:function(e){var t=this.getSelect();this.base.saveSelection(),this.hideToolbarDefaultActions(),this.getForm().style.display="block",this.setToolbarPosition(),t.value=e||"",t.focus()},destroy:function(){if(!this.form)return!1;this.form.parentNode&&this.form.parentNode.removeChild(this.form),delete this.form},doFormSave:function(){this.base.restoreSelection(),this.base.checkSelection()},doFormCancel:function(){this.base.restoreSelection(),this.clearFontName(),this.base.checkSelection()},createForm:function(){var e,t=this.document,r=t.createElement("div"),n=t.createElement("select"),_=t.createElement("a"),a=t.createElement("a");r.className="medium-editor-toolbar-form",r.id="medium-editor-toolbar-form-fontname-"+this.getEditorId(),this.on(r,"click",this.handleFormClick.bind(this));for(var i=0;i
':"✓",r.appendChild(a),this.on(a,"click",this.handleSaveClick.bind(this),!0),_.setAttribute("href","#"),_.className="medium-editor-toobar-close",_.innerHTML="fontawesome"===this.getEditorOption("buttonLabels")?'':"×",r.appendChild(_),this.on(_,"click",this.handleCloseClick.bind(this)),r},getSelect:function(){return this.getForm().querySelector("select.medium-editor-toolbar-select")},clearFontName:function(){e.selection.getSelectedElements(this.document).forEach(function(e){"font"===e.nodeName.toLowerCase()&&e.hasAttribute("face")&&e.removeAttribute("face")})},handleFontChange:function(){var e=this.getSelect().value;""===e?this.clearFontName():this.execAction("fontName",{value:e})},handleFormClick:function(e){e.stopPropagation()},handleSaveClick:function(e){e.preventDefault(),this.doFormSave()},handleCloseClick:function(e){e.preventDefault(),this.doFormCancel()}});e.extensions.fontName=t}(),function(){var t=e.extensions.form.extend({name:"fontsize",action:"fontSize",aria:"increase/decrease font size",contentDefault:"±",contentFA:'',init:function(){e.extensions.form.prototype.init.apply(this,arguments)},handleClick:function(e){if(e.preventDefault(),e.stopPropagation(),!this.isDisplayed()){var t=this.document.queryCommandValue("fontSize")+"";this.showForm(t)}return!1},getForm:function(){return this.form||(this.form=this.createForm()),this.form},isDisplayed:function(){return"block"===this.getForm().style.display},hideForm:function(){this.getForm().style.display="none",this.getInput().value=""},showForm:function(e){var t=this.getInput();this.base.saveSelection(),this.hideToolbarDefaultActions(),this.getForm().style.display="block",this.setToolbarPosition(),t.value=e||"",t.focus()},destroy:function(){if(!this.form)return!1;this.form.parentNode&&this.form.parentNode.removeChild(this.form),delete this.form},doFormSave:function(){this.base.restoreSelection(),this.base.checkSelection()},doFormCancel:function(){this.base.restoreSelection(),this.clearFontSize(),this.base.checkSelection()},createForm:function(){var e=this.document,t=e.createElement("div"),r=e.createElement("input"),n=e.createElement("a"),_=e.createElement("a");return t.className="medium-editor-toolbar-form",t.id="medium-editor-toolbar-form-fontsize-"+this.getEditorId(),this.on(t,"click",this.handleFormClick.bind(this)),r.setAttribute("type","range"),r.setAttribute("min","1"),r.setAttribute("max","7"),r.className="medium-editor-toolbar-input",t.appendChild(r),this.on(r,"change",this.handleSliderChange.bind(this)),_.setAttribute("href","#"),_.className="medium-editor-toobar-save",_.innerHTML="fontawesome"===this.getEditorOption("buttonLabels")?'':"✓",t.appendChild(_),this.on(_,"click",this.handleSaveClick.bind(this),!0),n.setAttribute("href","#"),n.className="medium-editor-toobar-close",n.innerHTML="fontawesome"===this.getEditorOption("buttonLabels")?'':"×",t.appendChild(n),this.on(n,"click",this.handleCloseClick.bind(this)),t},getInput:function(){return this.getForm().querySelector("input.medium-editor-toolbar-input")},clearFontSize:function(){e.selection.getSelectedElements(this.document).forEach(function(e){"font"===e.nodeName.toLowerCase()&&e.hasAttribute("size")&&e.removeAttribute("size")})},handleSliderChange:function(){var e=this.getInput().value;"4"===e?this.clearFontSize():this.execAction("fontSize",{value:e})},handleFormClick:function(e){e.stopPropagation()},handleSaveClick:function(e){e.preventDefault(),this.doFormSave()},handleCloseClick:function(e){e.preventDefault(),this.doFormCancel()}});e.extensions.fontSize=t}(),function(){var t=null,r=null,n=function(e){e.stopPropagation()};function _(e,t,r){var n=e.clipboardData||t.clipboardData||r.dataTransfer,_={};if(!n)return _;if(n.getData){var a=n.getData("Text");a&&a.length>0&&(_["text/plain"]=a)}if(n.types)for(var i=0;i1)for(a=0;a<_.length;a+=1)""!==_[a]&&(i+="

"+e.util.htmlEntities(_[a])+"

");else i=e.util.htmlEntities(_[0]);e.util.insertHTMLCommand(this.document,i)}},handlePasteBinPaste:function(e){if(e.defaultPrevented)this.removePasteBin();else{var t=_(e,this.window,this.document),n=t["text/html"],a=t["text/plain"],i=r;if(!this.cleanPastedHTML||n)return e.preventDefault(),this.removePasteBin(),this.doPaste(n,a,i),void this.trigger("editablePaste",{currentTarget:i,target:i},i);setTimeout(function(){this.cleanPastedHTML&&(n=this.getPasteBinHtml()),this.removePasteBin(),this.doPaste(n,a,i),this.trigger("editablePaste",{currentTarget:i,target:i},i)}.bind(this),0)}},handleKeydown:function(t,r){e.util.isKey(t,e.util.keyCode.V)&&e.util.isMetaCtrlKey(t)&&(t.stopImmediatePropagation(),this.removePasteBin(),this.createPasteBin(r))},createPasteBin:function(_){var a,i=e.selection.getSelectionRange(this.document),o=this.window.pageYOffset;r=_,i&&((a=i.getClientRects()).length?o+=a[0].top:void 0!==i.startContainer.getBoundingClientRect?o+=i.startContainer.getBoundingClientRect().top:o+=i.getBoundingClientRect().top),t=i;var s=this.document.createElement("div");s.id=this.pasteBinId="medium-editor-pastebin-"+ +Date.now(),s.setAttribute("style","border: 1px red solid; position: absolute; top: "+o+"px; width: 10px; height: 10px; overflow: hidden; opacity: 0"),s.setAttribute("contentEditable",!0),s.innerHTML="%ME_PASTEBIN%",this.document.body.appendChild(s),this.on(s,"focus",n),this.on(s,"focusin",n),this.on(s,"focusout",n),s.focus(),e.selection.selectNode(s,this.document),this.boundHandlePaste||(this.boundHandlePaste=this.handlePasteBinPaste.bind(this)),this.on(s,"paste",this.boundHandlePaste)},removePasteBin:function(){null!==t&&(e.selection.selectRange(this.document,t),t=null),null!==r&&(r=null);var _=this.getPasteBin();_&&_&&(this.off(_,"focus",n),this.off(_,"focusin",n),this.off(_,"focusout",n),this.off(_,"paste",this.boundHandlePaste),_.parentElement.removeChild(_))},getPasteBin:function(){return this.document.getElementById(this.pasteBinId)},getPasteBinHtml:function(){var e=this.getPasteBin();if(!e)return!1;if(e.firstChild&&"mcepastebin"===e.firstChild.id)return!1;var t=e.innerHTML;return!(!t||"%ME_PASTEBIN%"===t)&&t},cleanPaste:function(e){var t,r,n,_,a=/]*>\s*|\s*<\/body[^>]*>[\s\S]*$/g),""],[new RegExp(/|/g),""],[new RegExp(/
$/i),""],[new RegExp(/<[^>]*docs-internal-guid[^>]*>/gi),""],[new RegExp(/<\/b>(]*>)?$/gi),""],[new RegExp(/\s+<\/span>/g)," "],[new RegExp(/
/g),"
"],[new RegExp(/]*(font-style:italic;font-weight:(bold|700)|font-weight:(bold|700);font-style:italic)[^>]*>/gi),''],[new RegExp(/]*font-style:italic[^>]*>/gi),''],[new RegExp(/]*font-weight:(bold|700)[^>]*>/gi),''],[new RegExp(/<(\/?)(i|b|a)>/gi),"<$1$2>"],[new RegExp(/<a(?:(?!href).)+href=(?:"|”|“|"|“|”)(((?!"|”|“|"|“|”).)*)(?:"|”|“|"|“|”)(?:(?!>).)*>/gi),''],[new RegExp(/<\/p>\n+/gi),"

"],[new RegExp(/\n+

/gi),""],[new RegExp(/(((?!/gi),"$1"]],this.cleanReplacements||[]);for(t=0;t"+e.split("

").join("

")+"

",r=n.querySelectorAll("a,p,div,br"),t=0;t"+n.innerHTML+"
":_.innerHTML=n.innerHTML,n.parentNode.replaceChild(_,n);for(a=t.querySelectorAll("span"),r=0;r0&&(n[0].classList.add(this.firstButtonClass),n[n.length-1].classList.add(this.lastButtonClass)),o},destroy:function(){this.toolbar&&(this.toolbar.parentNode&&this.toolbar.parentNode.removeChild(this.toolbar),delete this.toolbar)},getInteractionElements:function(){return this.getToolbarElement()},getToolbarElement:function(){return this.toolbar||(this.toolbar=this.createToolbar()),this.toolbar},getToolbarActionsElement:function(){return this.getToolbarElement().querySelector(".medium-editor-toolbar-actions")},initThrottledMethods:function(){this.throttledPositionToolbar=e.util.throttle(function(){this.base.isActive&&this.positionToolbarIfShown()}.bind(this))},attachEventHandlers:function(){this.subscribe("blur",this.handleBlur.bind(this)),this.subscribe("focus",this.handleFocus.bind(this)),this.subscribe("editableClick",this.handleEditableClick.bind(this)),this.subscribe("editableKeyup",this.handleEditableKeyup.bind(this)),this.on(this.document.documentElement,"mouseup",this.handleDocumentMouseup.bind(this)),this.static&&this.sticky&&this.on(this.window,"scroll",this.handleWindowScroll.bind(this),!0),this.on(this.window,"resize",this.handleWindowResize.bind(this))},handleWindowScroll:function(){this.positionToolbarIfShown()},handleWindowResize:function(){this.throttledPositionToolbar()},handleDocumentMouseup:function(t){if(t&&t.target&&e.util.isDescendant(this.getToolbarElement(),t.target))return!1;this.checkState()},handleEditableClick:function(){setTimeout(function(){this.checkState()}.bind(this),0)},handleEditableKeyup:function(){this.checkState()},handleBlur:function(){clearTimeout(this.hideTimeout),clearTimeout(this.delayShowTimeout),this.hideTimeout=setTimeout(function(){this.hideToolbar()}.bind(this),1)},handleFocus:function(){this.checkState()},isDisplayed:function(){return this.getToolbarElement().classList.contains("medium-editor-toolbar-active")},showToolbar:function(){clearTimeout(this.hideTimeout),this.isDisplayed()||(this.getToolbarElement().classList.add("medium-editor-toolbar-active"),this.trigger("showToolbar",{},this.base.getFocusedElement()))},hideToolbar:function(){this.isDisplayed()&&(this.getToolbarElement().classList.remove("medium-editor-toolbar-active"),this.trigger("hideToolbar",{},this.base.getFocusedElement()))},isToolbarDefaultActionsDisplayed:function(){return"block"===this.getToolbarActionsElement().style.display},hideToolbarDefaultActions:function(){this.isToolbarDefaultActionsDisplayed()&&(this.getToolbarActionsElement().style.display="none")},showToolbarDefaultActions:function(){this.hideExtensionForms(),this.isToolbarDefaultActionsDisplayed()||(this.getToolbarActionsElement().style.display="block"),this.delayShowTimeout=this.base.delay(function(){this.showToolbar()}.bind(this))},hideExtensionForms:function(){this.forEachExtension(function(e){e.hasForm&&e.isDisplayed()&&e.hideForm()})},multipleBlockElementsSelected:function(){var t=new RegExp("<("+e.util.blockContainerElementNames.join("|")+")[^>]*>","g"),r=e.selection.getSelectionHtml(this.document).replace(/<[^\/>][^>]*><\/[^>]+>/gim,"").match(t);return!!r&&r.length>1},modifySelection:function(){var t=this.window.getSelection().getRangeAt(0);if(this.standardizeSelectionStart&&t.startContainer.nodeValue&&t.startOffset===t.startContainer.nodeValue.length){var r=e.util.findAdjacentTextNodeWithContent(e.selection.getSelectionElement(this.window),t.startContainer,this.document);if(r){for(var n=0;0===r.nodeValue.substr(n,1).trim().length;)n+=1;t=e.selection.select(this.document,r,n,t.endContainer,t.endOffset)}}},checkState:function(){if(!this.base.preventSelectionUpdates){if(!this.base.getFocusedElement()||e.selection.selectionInContentEditableFalse(this.window))return this.hideToolbar();var t=e.selection.getSelectionElement(this.window);return!t||-1===this.getEditorElements().indexOf(t)||t.getAttribute("data-disable-toolbar")?this.hideToolbar():this.updateOnEmptySelection&&this.static?this.showAndUpdateToolbar():!e.selection.selectionContainsContent(this.document)||!1===this.allowMultiParagraphSelection&&this.multipleBlockElementsSelected()?this.hideToolbar():void this.showAndUpdateToolbar()}},showAndUpdateToolbar:function(){this.modifySelection(),this.setToolbarButtonStates(),this.trigger("positionToolbar",{},this.base.getFocusedElement()),this.showToolbarDefaultActions(),this.setToolbarPosition()},setToolbarButtonStates:function(){this.forEachExtension(function(e){"function"==typeof e.isActive&&"function"==typeof e.setInactive&&e.setInactive()}),this.checkActiveButtons()},checkActiveButtons:function(){var t,r=[],n=null,_=e.selection.getSelectionRange(this.document),a=function(e){"function"==typeof e.checkState?e.checkState(t):"function"==typeof e.isActive&&"function"==typeof e.isAlreadyApplied&&"function"==typeof e.setActive&&!e.isActive()&&e.isAlreadyApplied(t)&&e.setActive()};if(_&&(this.forEachExtension(function(e){"function"!=typeof e.queryCommandState||null===(n=e.queryCommandState())?r.push(e):n&&"function"==typeof e.setActive&&e.setActive()}),t=e.selection.getSelectedParentElement(_),this.getEditorElements().some(function(r){return e.util.isDescendant(r,t,!0)})))for(;t&&(r.forEach(a),!e.util.isMediumEditorElement(t));)t=t.parentNode},positionToolbarIfShown:function(){this.isDisplayed()&&this.setToolbarPosition()},setToolbarPosition:function(){var e=this.base.getFocusedElement(),t=this.window.getSelection();if(!e)return this;!this.static&&t.isCollapsed||(this.showToolbar(),this.relativeContainer||(this.static?this.positionStaticToolbar(e):this.positionToolbar(t)),this.trigger("positionedToolbar",{},this.base.getFocusedElement()))},positionStaticToolbar:function(e){this.getToolbarElement().style.left="0";var t,r=this.document.documentElement&&this.document.documentElement.scrollTop||this.document.body.scrollTop,n=this.window.innerWidth,_=this.getToolbarElement(),a=e.getBoundingClientRect(),i=a.top+r,o=a.left+a.width/2,s=_.offsetHeight,l=_.offsetWidth,u=l/2;switch(this.sticky?r>i+e.offsetHeight-s-this.stickyTopOffset?(_.style.top=i+e.offsetHeight-s+"px",_.classList.remove("medium-editor-sticky-toolbar")):r>i-s-this.stickyTopOffset?(_.classList.add("medium-editor-sticky-toolbar"),_.style.top=this.stickyTopOffset+"px"):(_.classList.remove("medium-editor-sticky-toolbar"),_.style.top=i-s+"px"):_.style.top=i-s+"px",this.align){case"left":t=a.left;break;case"right":t=a.right-l;break;case"center":t=o-u}t<0?t=0:t+l>n&&(t=n-Math.ceil(l)-1),_.style.left=t+"px"},positionToolbar:function(e){this.getToolbarElement().style.left="0",this.getToolbarElement().style.right="initial";var t=e.getRangeAt(0),r=t.getBoundingClientRect();(!r||0===r.height&&0===r.width&&t.startContainer===t.endContainer)&&(r=1===t.startContainer.nodeType&&t.startContainer.querySelector("img")?t.startContainer.querySelector("img").getBoundingClientRect():t.startContainer.getBoundingClientRect());var n,_,a=this.window.innerWidth,i=this.getToolbarElement(),o=i.offsetHeight,s=i.offsetWidth/2,l=this.diffLeft-s,u=this.getEditorOption("elementsContainer"),c={},d={};["absolute","fixed"].indexOf(window.getComputedStyle(u).getPropertyValue("position"))>-1?(_=u.getBoundingClientRect(),["top","left"].forEach(function(e){d[e]=r[e]-_[e]}),d.width=r.width,d.height=r.height,r=d,a=_.width,c.top=u.scrollTop):c.top=this.window.pageYOffset,n=r.left+r.width/2,c.top+=r.top-o,r.top<50?(i.classList.add("medium-toolbar-arrow-over"),i.classList.remove("medium-toolbar-arrow-under"),c.top+=50+r.height-this.diffTop):(i.classList.add("medium-toolbar-arrow-under"),i.classList.remove("medium-toolbar-arrow-over"),c.top+=this.diffTop),n'),r.onload=function(){var e=this.document.getElementById(n);e&&(e.removeAttribute("id"),e.removeAttribute("class"),e.src=r.result)}.bind(this))}.bind(this)),t.target.classList.remove("medium-editor-dragover")}});e.extensions.imageDragging=t}(),function(){function t(t,r){if(this.options.disableReturn||r.getAttribute("data-disable-return"))t.preventDefault();else if(this.options.disableDoubleReturn||r.getAttribute("data-disable-double-return")){var n=e.selection.getSelectionStart(this.options.ownerDocument);(n&&""===n.textContent.trim()&&"li"!==n.nodeName.toLowerCase()||n.previousElementSibling&&"br"!==n.previousElementSibling.nodeName.toLowerCase()&&""===n.previousElementSibling.textContent.trim())&&t.preventDefault()}}function r(t){var r,n=e.selection.getSelectionStart(this.options.ownerDocument),_=n.nodeName.toLowerCase(),a=/^(\s+|)?$/i,i=/h\d/i;e.util.isKey(t,[e.util.keyCode.BACKSPACE,e.util.keyCode.ENTER])&&n.previousElementSibling&&i.test(_)&&0===e.selection.getCaretOffsets(n).left?e.util.isKey(t,e.util.keyCode.BACKSPACE)&&a.test(n.previousElementSibling.innerHTML)?(n.previousElementSibling.parentNode.removeChild(n.previousElementSibling),t.preventDefault()):!this.options.disableDoubleReturn&&e.util.isKey(t,e.util.keyCode.ENTER)&&((r=this.options.ownerDocument.createElement("p")).innerHTML="
",n.previousElementSibling.parentNode.insertBefore(r,n),t.preventDefault()):e.util.isKey(t,e.util.keyCode.DELETE)&&n.nextElementSibling&&n.previousElementSibling&&!i.test(_)&&a.test(n.innerHTML)&&i.test(n.nextElementSibling.nodeName.toLowerCase())?(e.selection.moveCursor(this.options.ownerDocument,n.nextElementSibling),n.previousElementSibling.parentNode.removeChild(n),t.preventDefault()):e.util.isKey(t,e.util.keyCode.BACKSPACE)&&"li"===_&&a.test(n.innerHTML)&&!n.previousElementSibling&&!n.parentElement.previousElementSibling&&n.nextElementSibling&&"li"===n.nextElementSibling.nodeName.toLowerCase()?((r=this.options.ownerDocument.createElement("p")).innerHTML="
",n.parentElement.parentElement.insertBefore(r,n.parentElement),e.selection.moveCursor(this.options.ownerDocument,r),n.parentElement.removeChild(n),t.preventDefault()):e.util.isKey(t,e.util.keyCode.BACKSPACE)&&!1!==e.util.getClosestTag(n,"blockquote")&&0===e.selection.getCaretOffsets(n).left?(t.preventDefault(),e.util.execFormatBlock(this.options.ownerDocument,"p")):e.util.isKey(t,e.util.keyCode.ENTER)&&!1!==e.util.getClosestTag(n,"blockquote")&&0===e.selection.getCaretOffsets(n).right?((r=this.options.ownerDocument.createElement("p")).innerHTML="
",n.parentElement.insertBefore(r,n.nextSibling),e.selection.moveCursor(this.options.ownerDocument,r),t.preventDefault()):e.util.isKey(t,e.util.keyCode.BACKSPACE)&&e.util.isMediumEditorElement(n.parentElement)&&!n.previousElementSibling&&n.nextElementSibling&&a.test(n.innerHTML)&&(t.preventDefault(),e.selection.moveCursor(this.options.ownerDocument,n.nextSibling),n.parentElement.removeChild(n))}function n(t,r,n){var _=[];if(t||(t=[]),"string"==typeof t&&(t=r.querySelectorAll(t)),e.util.isElement(t)&&(t=[t]),n)for(var a=0;a=0&&(n=e.selection.exportSelection(t,this.options.ownerDocument)),null!==n&&0!==r&&(n.editableElementIndex=r),n},saveSelection:function(){this.selectionState=this.exportSelection()},importSelection:function(t,r){if(t){var n=this.elements[t.editableElementIndex||0];e.selection.importSelection(t,n,this.options.ownerDocument,r)}},restoreSelection:function(){this.importSelection(this.selectionState)},createLink:function(t){var r,n=e.selection.getSelectionElement(this.options.contentWindow),_={};if(-1!==this.elements.indexOf(n)){try{if(this.events.disableCustomEvent("editableInput"),t.url&&e.util.deprecated(".url option for createLink",".value","6.0.0"),(r=t.url||t.value)&&r.trim().length>0){var a=this.options.contentWindow.getSelection();if(a){var i,o,s,l,u=a.getRangeAt(0),c=u.commonAncestorContainer;if(3===u.endContainer.nodeType&&3!==u.startContainer.nodeType&&0===u.startOffset&&u.startContainer.firstChild===u.endContainer&&(c=u.endContainer),o=e.util.getClosestBlockContainer(u.startContainer),s=e.util.getClosestBlockContainer(u.endContainer),3!==c.nodeType&&0!==c.textContent.length&&o===s){var d=o||n,f=this.options.ownerDocument.createDocumentFragment();this.execAction("unlink"),i=this.exportSelection(),f.appendChild(d.cloneNode(!0)),n===d?e.selection.select(this.options.ownerDocument,d.firstChild,0,d.lastChild,3===d.lastChild.nodeType?d.lastChild.nodeValue.length:d.lastChild.childNodes.length):e.selection.select(this.options.ownerDocument,d,0,d,d.childNodes.length);var p=this.exportSelection();0===(l=e.util.findOrCreateMatchingTextNodes(this.options.ownerDocument,f,{start:i.start-p.start,end:i.end-p.start,editableElementIndex:i.editableElementIndex})).length&&((f=this.options.ownerDocument.createDocumentFragment()).appendChild(c.cloneNode(!0)),l=[f.firstChild.firstChild,f.firstChild.lastChild]),e.util.createLink(this.options.ownerDocument,l,r.trim());var h=(f.firstChild.innerHTML.match(/^\s+/)||[""])[0].length;e.util.insertHTMLCommand(this.options.ownerDocument,f.firstChild.innerHTML.replace(/^\s+/,"")),i.start-=h,i.end-=h,this.importSelection(i)}else this.options.ownerDocument.execCommand("createLink",!1,r);this.options.targetBlank||"_blank"===t.target?e.util.setTargetBlank(e.selection.getSelectionStart(this.options.ownerDocument),r):e.util.removeTargetBlank(e.selection.getSelectionStart(this.options.ownerDocument),r),t.buttonClass&&e.util.addClassToAnchors(e.selection.getSelectionStart(this.options.ownerDocument),t.buttonClass)}}if(this.options.targetBlank||"_blank"===t.target||t.buttonClass){(_=this.options.ownerDocument.createEvent("HTMLEvents")).initEvent("input",!0,!0,this.options.contentWindow);for(var E=0,m=this.elements.length;E1?t[1]:"";return{major:parseInt(r[0],10),minor:parseInt(r[1],10),revision:parseInt(r[2],10),preRelease:n,toString:function(){return[r[0],r[1],r[2]].join(".")+(n?"-"+n:"")}}},e.version=e.parseVersionString.call(this,"5.23.3"),e}())}).call(this,r(131))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(0),_=r(60),a=r(54),i=r(48);t.boldCommand={buttonContent:n.createElement(i.MdeToolbarIcon,{icon:"bold"}),buttonProps:{"aria-label":"Add bold text"},execute:function(e){var t=a.getMarkdownStateFromDraftState(e);return t=_.insertBeforeAndAfter(t,"**"),a.buildNewDraftState(e,t)}}},function(e,t,r){"use strict";var n=r(35)||function(e){for(var t=1;t=e.start});1!=p.length&&a(!1);var h=p[0];if("IMMUTABLE"===d)return r.merge({anchorOffset:h.start,focusOffset:h.end,isBackward:!1});s||(l?c=h.end:u=h.start);var E=n.getRemovalRange(u,c,t.getText().slice(h.start,h.end),h.start,i);return r.merge({anchorOffset:E.start,focusOffset:E.end,isBackward:!1})}e.exports=function(e,t,r,n,_){var a=n.getStartOffset(),o=n.getEndOffset(),s=t.getEntityAt(a),l=r.getEntityAt(o-1);if(!s&&!l)return n;var u=n;if(s&&s===l)u=i(e,t,u,_,s,!0,!0);else if(s&&l){var c=i(e,t,u,_,s,!1,!0),d=i(e,r,u,_,l,!1,!1);u=u.merge({anchorOffset:c.getAnchorOffset(),focusOffset:d.getFocusOffset(),isBackward:!1})}else if(s){var f=i(e,t,u,_,s,!1,!0);u=u.merge({anchorOffset:f.getStartOffset(),isBackward:!1})}else if(l){var p=i(e,r,u,_,l,!1,!1);u=u.merge({focusOffset:p.getEndOffset(),isBackward:!1})}return u}},function(e,t,r){"use strict";e.exports={getRemovalRange:function(e,t,r,n,_){var a=r.split(" ");a=a.map(function(e,t){if("forward"===_){if(t>0)return" "+e}else if(tt;)e=e.pop(),r--;else{var n=e.slice(0,t),_=e.slice(r);e=n.concat(_).toList()}return e};e.exports=function(e,t){if(t.isCollapsed())return e;var r=e.getBlockMap(),_=t.getStartKey(),o=t.getStartOffset(),l=t.getEndKey(),u=t.getEndOffset(),f=r.get(_),p=r.get(l),h=f instanceof n,E=[];if(h){var m=p.getChildKeys(),g=s(l,r);p.getNextSiblingKey()&&(E=E.concat(g)),m.isEmpty()||(E=E.concat(g.concat([l]))),E=E.concat(s(a(p,r),r))}var b=void 0;b=f===p?d(f.getCharacterList(),o,u):f.getCharacterList().slice(0,o).concat(p.getCharacterList().slice(u));var v=f.merge({text:f.getText().slice(0,o)+p.getText().slice(u),characterList:b}),O=r.toSeq().skipUntil(function(e,t){return t===_}).takeUntil(function(e,t){return t===l}).filter(function(e,t){return-1===E.indexOf(t)}).concat(i([[l,null]])).map(function(e,t){return t===_?v:null}),M=r.merge(O).filter(function(e){return!!e});return h&&(M=c(M,f,p,r)),e.merge({blockMap:M,selectionBefore:t,selectionAfter:t.merge({anchorKey:_,anchorOffset:o,focusKey:_,focusOffset:o,isBackward:!1})})}},function(e,t,r){"use strict";var n=r(65),_=r(30),a=r(78),i=r(29),o=_.List,s=_.Map,l=function(e,t,r){if(e){var n=t.get(e);n&&t.set(e,r(n))}};e.exports=function(e,t){t.isCollapsed()||i(!1);var r=t.getAnchorKey(),_=t.getAnchorOffset(),u=e.getBlockMap(),c=u.get(r),d=c.getText(),f=c.getCharacterList(),p=a(),h=c instanceof n,E=c.merge({text:d.slice(0,_),characterList:f.slice(0,_)}),m=E.merge({key:p,text:d.slice(_),characterList:f.slice(_),data:s()}),g=u.toSeq().takeUntil(function(e){return e===c}),b=u.toSeq().skipUntil(function(e){return e===c}).rest(),v=g.concat([[r,E],[p,m]],b).toOrderedMap();return h&&(c.getChildKeys().isEmpty()||i(!1),v=function(e,t,r){return e.withMutations(function(e){var n=t.getKey(),_=r.getKey();l(t.getParentKey(),e,function(e){var t=e.getChildKeys(),r=t.indexOf(n)+1,a=t.toArray();return a.splice(r,0,_),e.merge({children:o(a)})}),l(t.getNextSiblingKey(),e,function(e){return e.merge({prevSibling:_})}),l(n,e,function(e){return e.merge({nextSibling:_})}),l(_,e,function(e){return e.merge({prevSibling:n})})})}(v,E,m)),e.merge({blockMap:v,selectionBefore:t,selectionAfter:t.merge({anchorKey:p,anchorOffset:0,focusKey:p,focusOffset:0,isBackward:!1})})}},function(e,t,r){"use strict";var n,_=r(30),a=r(621),i=r(68),o=_.OrderedMap,s={getDirectionMap:function(e,t){n?n.reset():n=new a;var r=e.getBlockMap(),s=r.valueSeq().map(function(e){return i(n).getDirection(e.getText())}),l=o(r.keySeq().zip(s));return null!=t&&_.is(t,l)?t:l}};e.exports=s},function(e,t,r){"use strict";var n=r(309),_=r(216),a=r(29),i=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t?_.isStrong(t)||a(!1):t=_.getGlobalDir(),this._defaultDir=t,this.reset()}return e.prototype.reset=function(){this._lastDir=this._defaultDir},e.prototype.getDirection=function(e){return this._lastDir=n.getDirection(e,this._lastDir),this._lastDir},e}();e.exports=i},function(e,t,r){"use strict";var n=r(65),_=r(30),a=r(306),i=r(29),o=_.OrderedMap,s=_.List,l=function(e,t,r){if(e){var n=t.get(e);n&&t.set(e,r(n))}};e.exports=function(e,t,r,_){"replace"===_&&i(!1);var u=r.getKey(),c=t.getKey();c===u&&i(!1);var d=e.getBlockMap(),f=t instanceof n,p=[t],h=d.delete(c);f&&(p=[],h=d.withMutations(function(e){var r=t.getNextSiblingKey(),n=a(t,e);e.toSeq().skipUntil(function(e){return e.getKey()===c}).takeWhile(function(e){var t=e.getKey(),_=t===c,a=r&&t!==r,i=!r&&e.getParentKey()&&(!n||t!==n);return!!(_||a||i)}).forEach(function(t){p.push(t),e.delete(t.getKey())})}));var E=h.toSeq().takeUntil(function(e){return e===r}),m=h.toSeq().skipUntil(function(e){return e===r}).skip(1),g=p.map(function(e){return[e.getKey(),e]}),b=o();if("before"===_){var v=e.getBlockBefore(u);v&&v.getKey()===t.getKey()&&i(!1),b=E.concat([].concat(g,[[u,r]]),m).toOrderedMap()}else if("after"===_){var O=e.getBlockAfter(u);O&&O.getKey()===c&&i(!1),b=E.concat([[u,r]].concat(g),m).toOrderedMap()}return e.merge({blockMap:function(e,t,r,n,_){if(!_)return e;var a="after"===n,i=t.getKey(),o=r.getKey(),u=t.getParentKey(),c=t.getNextSiblingKey(),d=t.getPrevSiblingKey(),f=r.getParentKey(),p=a?r.getNextSiblingKey():o,h=a?o:r.getPrevSiblingKey();return e.withMutations(function(e){l(u,e,function(e){var t=e.getChildKeys();return e.merge({children:t.delete(t.indexOf(i))})}),l(d,e,function(e){return e.merge({nextSibling:c})}),l(c,e,function(e){return e.merge({prevSibling:d})}),l(p,e,function(e){return e.merge({prevSibling:i})}),l(h,e,function(e){return e.merge({nextSibling:i})}),l(f,e,function(e){var t=e.getChildKeys(),r=t.indexOf(o),n=a?r+1:0!==r?r-1:0,_=t.toArray();return _.splice(n,0,i),e.merge({children:s(_)})}),l(i,e,function(e){return e.merge({nextSibling:p,prevSibling:h,parent:f})})})}(b,t,r,_,f),selectionBefore:e.getSelectionAfter(),selectionAfter:e.getSelectionAfter().merge({anchorKey:c,focusKey:c})})}},function(e,t,r){"use strict";var n=r(30).List,_=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._decorators=t.slice()}return e.prototype.getDecorations=function(e,t){var r=Array(e.getText().length).fill(null);return this._decorators.forEach(function(n,_){var a=0;(0,n.strategy)(e,function(e,t){(function(e,t,r){for(var n=t;n0||null!==f;if(p&&e.restoreEditorDOM(),e.exitCurrentMode(),t){if(n.draft_handlebeforeinput_composed_text&&e.props.handleBeforeInput&&s(e.props.handleBeforeInput(t,r)))return;var h=_.replaceText(r.getCurrentContent(),r.getSelection(),t,i,f);e.update(a.push(r,h,"insert-characters"))}else p&&e.update(a.set(r,{nativelyRenderedContent:null,forceSelection:!0}))}}};e.exports=f},function(e,t,r){"use strict";var n=r(627);e.exports=n},function(e,t,r){"use strict";var n=r(35)||function(e){for(var t=1;tC,L));var N=k||_,q={className:j,"data-block":!0,"data-editor":p,"data-offset-key":B,key:w};void 0!==R&&(q=n({},q,{contentEditable:R,suppressContentEditableWarning:!0}));var F=i.createElement(W,q,i.createElement(N,U));M.push({block:F,wrapperTemplate:K,key:w,offsetKey:B}),C=K?y.getDepth():null,P=K}for(var V=[],H=0;H1?t:this.data.length),r,this.encoding)},a.toString=function(){return"[object Blob]"},a.close=function(){this.size=0,delete this.data},r}(e);e.Blob=function(e,r){var n=r&&r.type||"",_=new t;if(e)for(var a=0,i=e.length;a-1,isMac:t.navigator.platform.toUpperCase().indexOf("MAC")>=0,keyCode:{BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,SPACE:32,DELETE:46,K:75,M:77,V:86},isMetaCtrlKey:function(e){return!!(i.isMac&&e.metaKey||!i.isMac&&e.ctrlKey)},isKey:function(e,t){var r=i.getKeyCode(e);return!1===Array.isArray(t)?r===t:-1!==t.indexOf(r)},getKeyCode:function(e){var t=e.which;return null===t&&(t=null!==e.charCode?e.charCode:e.keyCode),t},blockContainerElementNames:["p","h1","h2","h3","h4","h5","h6","blockquote","pre","ul","li","ol","address","article","aside","audio","canvas","dd","dl","dt","fieldset","figcaption","figure","footer","form","header","hgroup","main","nav","noscript","output","section","video","table","thead","tbody","tfoot","tr","th","td"],emptyElementNames:["br","col","colgroup","hr","img","input","source","wbr"],extend:function(){var e=[!0].concat(Array.prototype.slice.call(arguments));return r.apply(this,e)},defaults:function(){var e=[!1].concat(Array.prototype.slice.call(arguments));return r.apply(this,e)},createLink:function(e,t,r,n){var _=e.createElement("a");return i.moveTextRangeIntoElement(t[0],t[t.length-1],_),_.setAttribute("href",r),n&&("_blank"===n&&_.setAttribute("rel","noopener noreferrer"),_.setAttribute("target",n)),_},findOrCreateMatchingTextNodes:function(e,t,r){for(var n=e.createTreeWalker(t,NodeFilter.SHOW_ALL,null,!1),_=[],a=0,o=!1,s=null,l=null;null!==(s=n.nextNode());)if(!(s.nodeType>3))if(3===s.nodeType){if(!o&&r.startr.end+1)throw new Error("PerformLinking overshot the target!");o&&_.push(l||s),a+=s.nodeValue.length,null!==l&&(a+=l.nodeValue.length,n.nextNode()),l=null}else"img"===s.tagName.toLowerCase()&&(!o&&r.start<=a&&(o=!0),o&&_.push(s));return _},splitStartNodeIfNeeded:function(e,t,r){return t!==r?e.splitText(t-r):null},splitEndNodeIfNeeded:function(e,t,r,n){var _,a;_=n+e.nodeValue.length+(t?t.nodeValue.length:0)-1,a=r-n-(t?e.nodeValue.length:0),_>=r&&n!==_&&0!==a&&(t||e).splitText(a)},splitByBlockElements:function(t){if(3!==t.nodeType&&1!==t.nodeType)return[];var r=[],n=e.util.blockContainerElementNames.join(",");if(3===t.nodeType||0===t.querySelectorAll(n).length)return[t];for(var _=0;_0)break;n=a.nextNode()}return n},findPreviousSibling:function(e){if(!e||i.isMediumEditorElement(e))return!1;for(var t=e.previousSibling;!t&&!i.isMediumEditorElement(e.parentNode);)t=(e=e.parentNode).previousSibling;return t},isDescendant:function(e,t,r){if(!e||!t)return!1;if(e===t)return!!r;if(1!==e.nodeType)return!1;if(n||3!==t.nodeType)return e.contains(t);for(var _=t.parentNode;null!==_;){if(_===e)return!0;_=_.parentNode}return!1},isElement:function(e){return!(!e||1!==e.nodeType)},throttle:function(e,t){var r,n,_,a=null,i=0,o=function(){i=Date.now(),a=null,_=e.apply(r,n),a||(r=n=null)};return t||0===t||(t=50),function(){var s=Date.now(),l=t-(s-i);return r=this,n=arguments,l<=0||l>t?(a&&(clearTimeout(a),a=null),i=s,_=e.apply(r,n),a||(r=n=null)):a||(a=setTimeout(o,l)),_}},traverseUp:function(e,t){if(!e)return!1;do{if(1===e.nodeType){if(t(e))return e;if(i.isMediumEditorElement(e))return!1}e=e.parentNode}while(e);return!1},htmlEntities:function(e){return String(e).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")},insertHTMLCommand:function(t,r){var n,_,a,o,s,l,u,c=!1,d=["insertHTML",!1,r];if(!e.util.isEdge&&t.queryCommandSupported("insertHTML"))try{return t.execCommand.apply(t,d)}catch(e){}if((n=t.getSelection()).rangeCount){if(u=(_=n.getRangeAt(0)).commonAncestorContainer,i.isMediumEditorElement(u)&&!u.firstChild)_.selectNode(u.appendChild(t.createTextNode("")));else if(3===u.nodeType&&0===_.startOffset&&_.endOffset===u.nodeValue.length||3!==u.nodeType&&u.innerHTML===_.toString()){for(;!i.isMediumEditorElement(u)&&u.parentNode&&1===u.parentNode.childNodes.length&&!i.isMediumEditorElement(u.parentNode);)u=u.parentNode;_.selectNode(u)}for(_.deleteContents(),(a=t.createElement("div")).innerHTML=r,o=t.createDocumentFragment();a.firstChild;)s=a.firstChild,l=o.appendChild(s);_.insertNode(o),l&&((_=_.cloneRange()).setStartAfter(l),_.collapse(!0),e.selection.selectRange(t,_)),c=!0}return t.execCommand.callListeners&&t.execCommand.callListeners(d,c),c},execFormatBlock:function(t,r){var n=i.getTopBlockContainer(e.selection.getSelectionStart(t));if("blockquote"===r){if(n&&Array.prototype.slice.call(n.childNodes).some(function(e){return i.isBlockContainer(e)}))return t.execCommand("outdent",!1,null);if(i.isIE)return t.execCommand("indent",!1,r)}if(n&&r===n.nodeName.toLowerCase()&&(r="p"),i.isIE&&(r="<"+r+">"),n&&"blockquote"===n.nodeName.toLowerCase()){if(i.isIE&&"

"===r)return t.execCommand("outdent",!1,r);if((i.isFF||i.isEdge)&&"p"===r)return Array.prototype.slice.call(n.childNodes).some(function(e){return!i.isBlockContainer(e)})&&t.execCommand("formatBlock",!1,r),t.execCommand("outdent",!1,r)}return t.execCommand("formatBlock",!1,r)},setTargetBlank:function(e,t){var r,n=t||!1;if("a"===e.nodeName.toLowerCase())e.target="_blank",e.rel="noopener noreferrer";else for(e=e.getElementsByTagName("a"),r=0;rn?(_=_.parentNode,r-=1):(a=a.parentNode,n-=1);for(;_!==a;)_=_.parentNode,a=a.parentNode;return _},isElementAtBeginningOfBlock:function(e){for(var t;!i.isBlockContainer(e)&&!i.isMediumEditorElement(e);){for(t=e;t=t.previousSibling;)if((3===t.nodeType?t.nodeValue:t.textContent).length>0)return!1;e=e.parentNode}return!0},isMediumEditorElement:function(e){return e&&e.getAttribute&&!!e.getAttribute("data-medium-editor-element")},getContainerEditorElement:function(e){return i.traverseUp(e,function(e){return i.isMediumEditorElement(e)})},isBlockContainer:function(e){return e&&3!==e.nodeType&&-1!==i.blockContainerElementNames.indexOf(e.nodeName.toLowerCase())},getClosestBlockContainer:function(e){return i.traverseUp(e,function(e){return i.isBlockContainer(e)||i.isMediumEditorElement(e)})},getTopBlockContainer:function(e){var t=!!i.isBlockContainer(e)&&e;return i.traverseUp(e,function(e){return i.isBlockContainer(e)&&(t=e),!(t||!i.isMediumEditorElement(e))&&(t=e,!0)}),t},getFirstSelectableLeafNode:function(e){for(;e&&e.firstChild;)e=e.firstChild;if("table"===(e=i.traverseUp(e,function(e){return-1===i.emptyElementNames.indexOf(e.nodeName.toLowerCase())})).nodeName.toLowerCase()){var t=e.querySelector("th, td");t&&(e=t)}return e},getFirstTextNode:function(e){return i.warn("getFirstTextNode is deprecated and will be removed in version 6.0.0"),i._getFirstTextNode(e)},_getFirstTextNode:function(e){if(3===e.nodeType)return e;for(var t=0;t0){var _,a=n.getRangeAt(0),i=a.cloneRange();i.selectNodeContents(e),i.setEnd(a.startContainer,a.startOffset),r={start:_=i.toString().length,end:_+a.toString().length},this.doesRangeStartWithImages(a,t)&&(r.startsWithImage=!0);var o=this.getTrailingImageCount(e,r,a.endContainer,a.endOffset);if(o&&(r.trailingImageCount=o),0!==_){var s=this.getIndexRelativeToAdjacentEmptyBlocks(t,e,a.startContainer,a.startOffset);-1!==s&&(r.emptyBlocksIndex=s)}}return r},importSelection:function(e,t,r,n){if(e&&t){var _=r.createRange();_.setStart(t,0),_.collapse(!0);var a,i=t,o=[],s=0,l=!1,u=!1,c=0,d=!1,f=!1,p=null;for((n||e.startsWithImage||void 0!==e.emptyBlocksIndex)&&(f=!0);!d&&i;)if(i.nodeType>3)i=o.pop();else{if(3!==i.nodeType||u){if(e.trailingImageCount&&u&&("img"===i.nodeName.toLowerCase()&&c++,c===e.trailingImageCount)){for(var h=0;i.parentNode.childNodes[h]!==i;)h++;_.setEnd(i.parentNode,h+1),d=!0}if(!d&&1===i.nodeType)for(var E=i.childNodes.length-1;E>=0;)o.push(i.childNodes[E]),E-=1}else a=s+i.length,!l&&e.start>=s&&e.start<=a&&(f||e.start=s&&e.end<=a&&(e.trailingImageCount?u=!0:(_.setEnd(i,e.end-s),d=!0)),s=a;d||(i=o.pop())}!l&&p&&(_.setStart(p,p.length),_.setEnd(p,p.length)),void 0!==e.emptyBlocksIndex&&(_=this.importSelectionMoveCursorPastBlocks(r,t,e.emptyBlocksIndex,_)),n&&(_=this.importSelectionMoveCursorPastAnchor(e,_)),this.selectRange(r,_)}},importSelectionMoveCursorPastAnchor:function(t,r){if(t.start===t.end&&3===r.startContainer.nodeType&&r.startOffset===r.startContainer.nodeValue.length&&e.util.traverseUp(r.startContainer,function(e){return"a"===e.nodeName.toLowerCase()})){for(var n=r.startContainer,_=r.startContainer.parentNode;null!==_&&"a"!==_.nodeName.toLowerCase();)_.childNodes[_.childNodes.length-1]!==n?_=null:(n=_,_=_.parentNode);if(null!==_&&"a"===_.nodeName.toLowerCase()){for(var a=null,i=0;null===a&&i<_.parentNode.childNodes.length;i++)_.parentNode.childNodes[i]===_&&(a=i);r.setStart(_.parentNode,a+1),r.collapse(!0)}}return r},importSelectionMoveCursorPastBlocks:function(r,n,_,a){var i,o,s=r.createTreeWalker(n,NodeFilter.SHOW_ELEMENT,t,!1),l=a.startContainer,u=0;for(_=_||1,i=3===l.nodeType&&e.util.isBlockContainer(l.previousSibling)?l.previousSibling:e.util.getClosestBlockContainer(l);s.nextNode();)if(o){if(o=s.currentNode,++u===_)break;if(o.textContent.length>0)break}else i===s.currentNode&&(o=s.currentNode);return o||(o=i),a.setStart(e.util.getFirstSelectableLeafNode(o),0),a},getIndexRelativeToAdjacentEmptyBlocks:function(r,n,_,a){if(_.textContent.length>0&&a>0)return-1;var i=_;if(3!==i.nodeType&&(i=_.childNodes[a]),i){if(!e.util.isElementAtBeginningOfBlock(i))return-1;var o=e.util.findPreviousSibling(i);if(!o)return-1;if(o.nodeValue)return-1}for(var s=e.util.getClosestBlockContainer(_),l=r.createTreeWalker(n,NodeFilter.SHOW_ELEMENT,t,!1),u=0;l.nextNode();){var c=""===l.currentNode.textContent;if((c||u>0)&&(u+=1),l.currentNode===s)return u;c||(u=0)}return u},doesRangeStartWithImages:function(e,t){if(0!==e.startOffset||1!==e.startContainer.nodeType)return!1;if("img"===e.startContainer.nodeName.toLowerCase())return!0;var r=e.startContainer.querySelector("img");if(!r)return!1;for(var n=t.createTreeWalker(e.startContainer,NodeFilter.SHOW_ALL,null,!1);n.nextNode();){var _=n.currentNode;if(_===r)break;if(_.nodeValue)return!1}return!0},getTrailingImageCount:function(e,t,r,n){if(0===n||1!==r.nodeType)return 0;if("img"!==r.nodeName.toLowerCase()&&!r.querySelector("img"))return 0;for(var _=r.childNodes[n-1];_.hasChildNodes();)_=_.lastChild;for(var a,i=e,o=[],s=0,l=!1,u=!1,c=!1,d=0;!c&&i;)if(i.nodeType>3)i=o.pop();else{if(3!==i.nodeType||u){if("img"===i.nodeName.toLowerCase()&&d++,i===_)c=!0;else if(1===i.nodeType)for(var f=i.childNodes.length-1;f>=0;)o.push(i.childNodes[f]),f-=1}else d=0,a=s+i.length,!l&&t.start>=s&&t.start<=a&&(l=!0),l&&t.end>=s&&t.end<=a&&(u=!0),s=a;c||(i=o.pop())}return d},selectionContainsContent:function(e){var t=e.getSelection();if(!t||t.isCollapsed||!t.rangeCount)return!1;if(""!==t.toString().trim())return!0;var r=this.getSelectedParentElement(t.getRangeAt(0));return!(!r||!("img"===r.nodeName.toLowerCase()||1===r.nodeType&&r.querySelector("img")))},selectionInContentEditableFalse:function(e){var t,r=this.findMatchingSelectionParent(function(e){var r=e&&e.getAttribute("contenteditable");return"true"===r&&(t=!0),"#text"!==e.nodeName&&"false"===r},e);return!t&&r},getSelectionHtml:function(e){var t,r,n,_="",a=e.getSelection();if(a.rangeCount){for(n=e.createElement("div"),t=0,r=a.rangeCount;t-1?[t]:t,Array.prototype.forEach.call(t,function(e){e.addEventListener(r,n,_),this.events.push([e,r,n,_])}.bind(this))},detachDOMEvent:function(t,r,n,_){var a,i,o=this.base.options.contentWindow,s=this.base.options.ownerDocument;t&&(t=e.util.isElement(t)||[o,s].indexOf(t)>-1?[t]:t,Array.prototype.forEach.call(t,function(e){-1!==(a=this.indexOfListener(e,r,n,_))&&(i=this.events.splice(a,1)[0])[0].removeEventListener(i[1],i[2],i[3])}.bind(this)))},indexOfListener:function(e,t,r,n){var _,a,i;for(_=0,a=this.events.length;_0&&(n=-1!==_.indexOf(e.nodeName.toLowerCase())),!n&&this.style&&(t=this.style.value.split("|"),r=this.window.getComputedStyle(e,null).getPropertyValue(this.style.prop),t.forEach(function(e){this.knownState||((n=-1!==r.indexOf(e))||"text-decoration"!==this.style.prop)&&(this.knownState=n)},this)),n)}});t.isBuiltInButton=function(t){return"string"==typeof t&&e.extensions.button.prototype.defaults.hasOwnProperty(t)},e.extensions.button=t}(),e.extensions.button.prototype.defaults={bold:{name:"bold",action:"bold",aria:"bold",tagNames:["b","strong"],style:{prop:"font-weight",value:"700|bold"},useQueryState:!0,contentDefault:"B",contentFA:''},italic:{name:"italic",action:"italic",aria:"italic",tagNames:["i","em"],style:{prop:"font-style",value:"italic"},useQueryState:!0,contentDefault:"I",contentFA:''},underline:{name:"underline",action:"underline",aria:"underline",tagNames:["u"],style:{prop:"text-decoration",value:"underline"},useQueryState:!0,contentDefault:"U",contentFA:''},strikethrough:{name:"strikethrough",action:"strikethrough",aria:"strike through",tagNames:["strike"],style:{prop:"text-decoration",value:"line-through"},useQueryState:!0,contentDefault:"A",contentFA:''},superscript:{name:"superscript",action:"superscript",aria:"superscript",tagNames:["sup"],contentDefault:"x1",contentFA:''},subscript:{name:"subscript",action:"subscript",aria:"subscript",tagNames:["sub"],contentDefault:"x1",contentFA:''},image:{name:"image",action:"image",aria:"image",tagNames:["img"],contentDefault:"image",contentFA:''},html:{name:"html",action:"html",aria:"evaluate html",tagNames:["iframe","object"],contentDefault:"html",contentFA:''},orderedlist:{name:"orderedlist",action:"insertorderedlist",aria:"ordered list",tagNames:["ol"],useQueryState:!0,contentDefault:"1.",contentFA:''},unorderedlist:{name:"unorderedlist",action:"insertunorderedlist",aria:"unordered list",tagNames:["ul"],useQueryState:!0,contentDefault:"",contentFA:''},indent:{name:"indent",action:"indent",aria:"indent",tagNames:[],contentDefault:"",contentFA:''},outdent:{name:"outdent",action:"outdent",aria:"outdent",tagNames:[],contentDefault:"",contentFA:''},justifyCenter:{name:"justifyCenter",action:"justifyCenter",aria:"center justify",tagNames:[],style:{prop:"text-align",value:"center"},contentDefault:"C",contentFA:''},justifyFull:{name:"justifyFull",action:"justifyFull",aria:"full justify",tagNames:[],style:{prop:"text-align",value:"justify"},contentDefault:"J",contentFA:''},justifyLeft:{name:"justifyLeft",action:"justifyLeft",aria:"left justify",tagNames:[],style:{prop:"text-align",value:"left"},contentDefault:"L",contentFA:''},justifyRight:{name:"justifyRight",action:"justifyRight",aria:"right justify",tagNames:[],style:{prop:"text-align",value:"right"},contentDefault:"R",contentFA:''},removeFormat:{name:"removeFormat",aria:"remove formatting",action:"removeFormat",contentDefault:"X",contentFA:''},quote:{name:"quote",action:"append-blockquote",aria:"blockquote",tagNames:["blockquote"],contentDefault:"",contentFA:''},pre:{name:"pre",action:"append-pre",aria:"preformatted text",tagNames:["pre"],contentDefault:"0101",contentFA:''},h1:{name:"h1",action:"append-h1",aria:"header type one",tagNames:["h1"],contentDefault:"H1",contentFA:'1'},h2:{name:"h2",action:"append-h2",aria:"header type two",tagNames:["h2"],contentDefault:"H2",contentFA:'2'},h3:{name:"h3",action:"append-h3",aria:"header type three",tagNames:["h3"],contentDefault:"H3",contentFA:'3'},h4:{name:"h4",action:"append-h4",aria:"header type four",tagNames:["h4"],contentDefault:"H4",contentFA:'4'},h5:{name:"h5",action:"append-h5",aria:"header type five",tagNames:["h5"],contentDefault:"H5",contentFA:'5'},h6:{name:"h6",action:"append-h6",aria:"header type six",tagNames:["h6"],contentDefault:"H6",contentFA:'6'}},function(){var t=e.extensions.button.extend({init:function(){e.extensions.button.prototype.init.apply(this,arguments)},formSaveLabel:"✓",formCloseLabel:"×",activeClass:"medium-editor-toolbar-form-active",hasForm:!0,getForm:function(){},isDisplayed:function(){return!!this.hasForm&&this.getForm().classList.contains(this.activeClass)},showForm:function(){this.hasForm&&this.getForm().classList.add(this.activeClass)},hideForm:function(){this.hasForm&&this.getForm().classList.remove(this.activeClass)},showToolbarDefaultActions:function(){var e=this.base.getExtensionByName("toolbar");e&&e.showToolbarDefaultActions()},hideToolbarDefaultActions:function(){var e=this.base.getExtensionByName("toolbar");e&&e.hideToolbarDefaultActions()},setToolbarPosition:function(){var e=this.base.getExtensionByName("toolbar");e&&e.setToolbarPosition()}});e.extensions.form=t}(),function(){var t=e.extensions.form.extend({customClassOption:null,customClassOptionText:"Button",linkValidation:!1,placeholderText:"Paste or type a link",targetCheckbox:!1,targetCheckboxText:"Open in new window",name:"anchor",action:"createLink",aria:"link",tagNames:["a"],contentDefault:"#",contentFA:'',init:function(){e.extensions.form.prototype.init.apply(this,arguments),this.subscribe("editableKeydown",this.handleKeydown.bind(this))},handleClick:function(t){t.preventDefault(),t.stopPropagation();var r=e.selection.getSelectionRange(this.document);return"a"===r.startContainer.nodeName.toLowerCase()||"a"===r.endContainer.nodeName.toLowerCase()||e.util.getClosestTag(e.selection.getSelectedParentElement(r),"a")?this.execAction("unlink"):(this.isDisplayed()||this.showForm(),!1)},handleKeydown:function(t){e.util.isKey(t,e.util.keyCode.K)&&e.util.isMetaCtrlKey(t)&&!t.shiftKey&&this.handleClick(t)},getForm:function(){return this.form||(this.form=this.createForm()),this.form},getTemplate:function(){var e=[''];return e.push('',"fontawesome"===this.getEditorOption("buttonLabels")?'':this.formSaveLabel,""),e.push('',"fontawesome"===this.getEditorOption("buttonLabels")?'':this.formCloseLabel,""),this.targetCheckbox&&e.push('

','','","
"),this.customClassOption&&e.push('
','',"","
"),e.join("")},isDisplayed:function(){return e.extensions.form.prototype.isDisplayed.apply(this)},hideForm:function(){e.extensions.form.prototype.hideForm.apply(this),this.getInput().value=""},showForm:function(t){var r=this.getInput(),n=this.getAnchorTargetCheckbox(),_=this.getAnchorButtonCheckbox();if("string"==typeof(t=t||{value:""})&&(t={value:t}),this.base.saveSelection(),this.hideToolbarDefaultActions(),e.extensions.form.prototype.showForm.apply(this),this.setToolbarPosition(),r.value=t.value,r.focus(),n&&(n.checked="_blank"===t.target),_){var a=t.buttonClass?t.buttonClass.split(" "):[];_.checked=-1!==a.indexOf(this.customClassOption)}},destroy:function(){if(!this.form)return!1;this.form.parentNode&&this.form.parentNode.removeChild(this.form),delete this.form},getFormOpts:function(){var e=this.getAnchorTargetCheckbox(),t=this.getAnchorButtonCheckbox(),r={value:this.getInput().value.trim()};return this.linkValidation&&(r.value=this.checkLinkFormat(r.value)),r.target="_self",e&&e.checked&&(r.target="_blank"),t&&t.checked&&(r.buttonClass=this.customClassOption),r},doFormSave:function(){var e=this.getFormOpts();this.completeFormSave(e)},completeFormSave:function(e){this.base.restoreSelection(),this.execAction(this.action,e),this.base.checkSelection()},ensureEncodedUri:function(e){return e===decodeURI(e)?encodeURI(e):e},ensureEncodedUriComponent:function(e){return e===decodeURIComponent(e)?encodeURIComponent(e):e},ensureEncodedParam:function(e){var t=e.split("="),r=t[0],n=t[1];return r+(void 0===n?"":"="+this.ensureEncodedUriComponent(n))},ensureEncodedQuery:function(e){return e.split("&").map(this.ensureEncodedParam.bind(this)).join("&")},checkLinkFormat:function(e){var t=/^([a-z]+:)?\/\/|^(mailto|tel|maps):|^\#/i.test(e),r="",n=e.match(/^(.*?)(?:\?(.*?))?(?:#(.*))?$/),_=n[1],a=n[2],i=n[3];if(/^\+?\s?\(?(?:\d\s?\-?\)?){3,20}$/.test(e))return"tel:"+e;if(!t){var o=_.split("/")[0];(o.match(/.+(\.|:).+/)||"localhost"===o)&&(r="http://")}return r+this.ensureEncodedUri(_)+(void 0===a?"":"?"+this.ensureEncodedQuery(a))+(void 0===i?"":"#"+i)},doFormCancel:function(){this.base.restoreSelection(),this.base.checkSelection()},attachFormEvents:function(e){var t=e.querySelector(".medium-editor-toolbar-close"),r=e.querySelector(".medium-editor-toolbar-save"),n=e.querySelector(".medium-editor-toolbar-input");this.on(e,"click",this.handleFormClick.bind(this)),this.on(n,"keyup",this.handleTextboxKeyup.bind(this)),this.on(t,"click",this.handleCloseClick.bind(this)),this.on(r,"click",this.handleSaveClick.bind(this),!0)},createForm:function(){var e=this.document.createElement("div");return e.className="medium-editor-toolbar-form",e.id="medium-editor-toolbar-form-anchor-"+this.getEditorId(),e.innerHTML=this.getTemplate(),this.attachFormEvents(e),e},getInput:function(){return this.getForm().querySelector("input.medium-editor-toolbar-input")},getAnchorTargetCheckbox:function(){return this.getForm().querySelector(".medium-editor-toolbar-anchor-target")},getAnchorButtonCheckbox:function(){return this.getForm().querySelector(".medium-editor-toolbar-anchor-button")},handleTextboxKeyup:function(t){if(t.keyCode===e.util.keyCode.ENTER)return t.preventDefault(),void this.doFormSave();t.keyCode===e.util.keyCode.ESCAPE&&(t.preventDefault(),this.doFormCancel())},handleFormClick:function(e){e.stopPropagation()},handleSaveClick:function(e){e.preventDefault(),this.doFormSave()},handleCloseClick:function(e){e.preventDefault(),this.doFormCancel()}});e.extensions.anchor=t}(),function(){var t=e.Extension.extend({name:"anchor-preview",hideDelay:500,previewValueSelector:"a",showWhenToolbarIsVisible:!1,showOnEmptyLinks:!0,init:function(){this.anchorPreview=this.createPreview(),this.getEditorOption("elementsContainer").appendChild(this.anchorPreview),this.attachToEditables()},getInteractionElements:function(){return this.getPreviewElement()},getPreviewElement:function(){return this.anchorPreview},createPreview:function(){var e=this.document.createElement("div");return e.id="medium-editor-anchor-preview-"+this.getEditorId(),e.className="medium-editor-anchor-preview",e.innerHTML=this.getTemplate(),this.on(e,"click",this.handleClick.bind(this)),e},getTemplate:function(){return'
'},destroy:function(){this.anchorPreview&&(this.anchorPreview.parentNode&&this.anchorPreview.parentNode.removeChild(this.anchorPreview),delete this.anchorPreview)},hidePreview:function(){this.anchorPreview&&this.anchorPreview.classList.remove("medium-editor-anchor-preview-active"),this.activeAnchor=null},showPreview:function(e){return!(!this.anchorPreview.classList.contains("medium-editor-anchor-preview-active")&&!e.getAttribute("data-disable-preview"))||(this.previewValueSelector&&(this.anchorPreview.querySelector(this.previewValueSelector).textContent=e.attributes.href.value,this.anchorPreview.querySelector(this.previewValueSelector).href=e.attributes.href.value),this.anchorPreview.classList.add("medium-toolbar-arrow-over"),this.anchorPreview.classList.remove("medium-toolbar-arrow-under"),this.anchorPreview.classList.contains("medium-editor-anchor-preview-active")||this.anchorPreview.classList.add("medium-editor-anchor-preview-active"),this.activeAnchor=e,this.positionPreview(),this.attachPreviewHandlers(),this)},positionPreview:function(e){e=e||this.activeAnchor;var t,r,n,_,a,i=this.window.innerWidth,o=this.anchorPreview.offsetHeight,s=e.getBoundingClientRect(),l=this.diffLeft,u=this.diffTop,c=this.getEditorOption("elementsContainer"),d=["absolute","fixed"].indexOf(window.getComputedStyle(c).getPropertyValue("position"))>-1,f={};t=this.anchorPreview.offsetWidth/2;var p=this.base.getExtensionByName("toolbar");p&&(l=p.diffLeft,u=p.diffTop),r=l-t,d?(_=c.getBoundingClientRect(),["top","left"].forEach(function(e){f[e]=s[e]-_[e]}),f.width=s.width,f.height=s.height,s=f,i=_.width,a=c.scrollTop):a=this.window.pageYOffset,n=s.left+s.width/2,a+=o+s.top+s.height-u-this.anchorPreview.offsetHeight,this.anchorPreview.style.top=Math.round(a)+"px",this.anchorPreview.style.right="initial",nthis.hideDelay&&this.detachPreviewHandlers()},detachPreviewHandlers:function(){clearInterval(this.intervalTimer),this.instanceHandlePreviewMouseover&&(this.off(this.anchorPreview,"mouseover",this.instanceHandlePreviewMouseover),this.off(this.anchorPreview,"mouseout",this.instanceHandlePreviewMouseout),this.activeAnchor&&(this.off(this.activeAnchor,"mouseover",this.instanceHandlePreviewMouseover),this.off(this.activeAnchor,"mouseout",this.instanceHandlePreviewMouseout))),this.hidePreview(),this.hovering=this.instanceHandlePreviewMouseover=this.instanceHandlePreviewMouseout=null},attachPreviewHandlers:function(){this.lastOver=(new Date).getTime(),this.hovering=!0,this.instanceHandlePreviewMouseover=this.handlePreviewMouseover.bind(this),this.instanceHandlePreviewMouseout=this.handlePreviewMouseout.bind(this),this.intervalTimer=setInterval(this.updatePreview.bind(this),200),this.on(this.anchorPreview,"mouseover",this.instanceHandlePreviewMouseover),this.on(this.anchorPreview,"mouseout",this.instanceHandlePreviewMouseout),this.on(this.activeAnchor,"mouseover",this.instanceHandlePreviewMouseover),this.on(this.activeAnchor,"mouseout",this.instanceHandlePreviewMouseout)}});e.extensions.anchorPreview=t}(),function(){var t,r,n,_,a;function i(t){return!e.util.getClosestTag(t,"a")}t=[" ","\t","\n","\r"," "," "," "," "," ","\u2028","\u2029"],n="(((?:(https?://|ftps?://|nntp://)|www\\d{0,3}[.]|[a-z0-9.\\-]+[.]("+(r="com|net|org|edu|gov|mil|aero|asia|biz|cat|coop|info|int|jobs|mobi|museum|name|post|pro|tel|travel|xxx|ac|ad|ae|af|ag|ai|al|am|an|ao|aq|ar|as|at|au|aw|ax|az|ba|bb|bd|be|bf|bg|bh|bi|bj|bm|bn|bo|br|bs|bt|bv|bw|by|bz|ca|cc|cd|cf|cg|ch|ci|ck|cl|cm|cn|co|cr|cs|cu|cv|cx|cy|cz|dd|de|dj|dk|dm|do|dz|ec|ee|eg|eh|er|es|et|eu|fi|fj|fk|fm|fo|fr|ga|gb|gd|ge|gf|gg|gh|gi|gl|gm|gn|gp|gq|gr|gs|gt|gu|gw|gy|hk|hm|hn|hr|ht|hu|id|ie|il|im|in|io|iq|ir|is|it|je|jm|jo|jp|ke|kg|kh|ki|km|kn|kp|kr|kw|ky|kz|la|lb|lc|li|lk|lr|ls|lt|lu|lv|ly|ma|mc|md|me|mg|mh|mk|ml|mm|mn|mo|mp|mq|mr|ms|mt|mu|mv|mw|mx|my|mz|na|nc|ne|nf|ng|ni|nl|no|np|nr|nu|nz|om|pa|pe|pf|pg|ph|pk|pl|pm|pn|pr|ps|pt|pw|py|qa|re|ro|rs|ru|rw|sa|sb|sc|sd|se|sg|sh|si|sj|ja|sk|sl|sm|sn|so|sr|ss|st|su|sv|sx|sy|sz|tc|td|tf|tg|th|tj|tk|tl|tm|tn|to|tp|tr|tt|tv|tw|tz|ua|ug|uk|us|uy|uz|va|vc|ve|vg|vi|vn|vu|wf|ws|ye|yt|yu|za|zm|zw")+")\\/)\\S+(?:[^\\s`!\\[\\]{};:'\".,?«»“”‘’])))|(([a-z0-9\\-]+\\.)?[a-z0-9\\-]+\\.("+r+"))",_=new RegExp("^("+r+")$","i"),a=new RegExp(n,"gi");var o=e.Extension.extend({init:function(){e.Extension.prototype.init.apply(this,arguments),this.disableEventHandling=!1,this.subscribe("editableKeypress",this.onKeypress.bind(this)),this.subscribe("editableBlur",this.onBlur.bind(this)),this.document.execCommand("AutoUrlDetect",!1,!1)},isLastInstance:function(){for(var e=0,t=0;t0&&null!==_;)(n=(r=a.currentNode).nodeValue).length>t?(_=r.splitText(n.length-t),t=0):(_=a.previousNode(),t-=n.length);return _},performLinkingWithinElement:function(t){for(var r=this.findLinkableText(t),n=0;n1;)_.appendChild(n.childNodes[1])}});e.extensions.autoLink=o}(),function(){var t="medium-editor-dragover";function r(r){var n=e.util.getContainerEditorElement(r);Array.prototype.slice.call(n.parentElement.querySelectorAll("."+t)).forEach(function(e){e.classList.remove(t)})}var n=e.Extension.extend({name:"fileDragging",allowedTypes:["image"],init:function(){e.Extension.prototype.init.apply(this,arguments),this.subscribe("editableDrag",this.handleDrag.bind(this)),this.subscribe("editableDrop",this.handleDrop.bind(this))},handleDrag:function(e){e.preventDefault(),e.dataTransfer.dropEffect="copy";var n=e.target.classList?e.target:e.target.parentElement;r(n),"dragover"===e.type&&n.classList.add(t)},handleDrop:function(e){e.preventDefault(),e.stopPropagation(),this.base.selectElement(e.target);var t=this.base.exportSelection();t.start=t.end,this.base.importSelection(t),e.dataTransfer.files&&Array.prototype.slice.call(e.dataTransfer.files).forEach(function(e){this.isAllowedFile(e)&&e.type.match("image")&&this.insertImageFile(e)},this),r(e.target)},isAllowedFile:function(e){return this.allowedTypes.some(function(t){return!!e.type.match(t)})},insertImageFile:function(t){if("function"==typeof FileReader){var r=new FileReader;r.readAsDataURL(t),r.addEventListener("load",function(t){var r=this.document.createElement("img");r.src=t.target.result,e.util.insertHTMLCommand(this.document,r.outerHTML)}.bind(this))}}});e.extensions.fileDragging=n}(),function(){var t=e.Extension.extend({name:"keyboard-commands",commands:[{command:"bold",key:"B",meta:!0,shift:!1,alt:!1},{command:"italic",key:"I",meta:!0,shift:!1,alt:!1},{command:"underline",key:"U",meta:!0,shift:!1,alt:!1}],init:function(){e.Extension.prototype.init.apply(this,arguments),this.subscribe("editableKeydown",this.handleKeydown.bind(this)),this.keys={},this.commands.forEach(function(e){var t=e.key.charCodeAt(0);this.keys[t]||(this.keys[t]=[]),this.keys[t].push(e)},this)},handleKeydown:function(t){var r=e.util.getKeyCode(t);if(this.keys[r]){var n=e.util.isMetaCtrlKey(t),_=!!t.shiftKey,a=!!t.altKey;this.keys[r].forEach(function(e){e.meta!==n||e.shift!==_||e.alt!==a&&void 0!==e.alt||(t.preventDefault(),t.stopPropagation(),"function"==typeof e.command?e.command.apply(this):!1!==e.command&&this.execAction(e.command))},this)}}});e.extensions.keyboardCommands=t}(),function(){var t=e.extensions.form.extend({name:"fontname",action:"fontName",aria:"change font name",contentDefault:"±",contentFA:'',fonts:["","Arial","Verdana","Times New Roman"],init:function(){e.extensions.form.prototype.init.apply(this,arguments)},handleClick:function(e){if(e.preventDefault(),e.stopPropagation(),!this.isDisplayed()){var t=this.document.queryCommandValue("fontName")+"";this.showForm(t)}return!1},getForm:function(){return this.form||(this.form=this.createForm()),this.form},isDisplayed:function(){return"block"===this.getForm().style.display},hideForm:function(){this.getForm().style.display="none",this.getSelect().value=""},showForm:function(e){var t=this.getSelect();this.base.saveSelection(),this.hideToolbarDefaultActions(),this.getForm().style.display="block",this.setToolbarPosition(),t.value=e||"",t.focus()},destroy:function(){if(!this.form)return!1;this.form.parentNode&&this.form.parentNode.removeChild(this.form),delete this.form},doFormSave:function(){this.base.restoreSelection(),this.base.checkSelection()},doFormCancel:function(){this.base.restoreSelection(),this.clearFontName(),this.base.checkSelection()},createForm:function(){var e,t=this.document,r=t.createElement("div"),n=t.createElement("select"),_=t.createElement("a"),a=t.createElement("a");r.className="medium-editor-toolbar-form",r.id="medium-editor-toolbar-form-fontname-"+this.getEditorId(),this.on(r,"click",this.handleFormClick.bind(this));for(var i=0;i
':"✓",r.appendChild(a),this.on(a,"click",this.handleSaveClick.bind(this),!0),_.setAttribute("href","#"),_.className="medium-editor-toobar-close",_.innerHTML="fontawesome"===this.getEditorOption("buttonLabels")?'':"×",r.appendChild(_),this.on(_,"click",this.handleCloseClick.bind(this)),r},getSelect:function(){return this.getForm().querySelector("select.medium-editor-toolbar-select")},clearFontName:function(){e.selection.getSelectedElements(this.document).forEach(function(e){"font"===e.nodeName.toLowerCase()&&e.hasAttribute("face")&&e.removeAttribute("face")})},handleFontChange:function(){var e=this.getSelect().value;""===e?this.clearFontName():this.execAction("fontName",{value:e})},handleFormClick:function(e){e.stopPropagation()},handleSaveClick:function(e){e.preventDefault(),this.doFormSave()},handleCloseClick:function(e){e.preventDefault(),this.doFormCancel()}});e.extensions.fontName=t}(),function(){var t=e.extensions.form.extend({name:"fontsize",action:"fontSize",aria:"increase/decrease font size",contentDefault:"±",contentFA:'',init:function(){e.extensions.form.prototype.init.apply(this,arguments)},handleClick:function(e){if(e.preventDefault(),e.stopPropagation(),!this.isDisplayed()){var t=this.document.queryCommandValue("fontSize")+"";this.showForm(t)}return!1},getForm:function(){return this.form||(this.form=this.createForm()),this.form},isDisplayed:function(){return"block"===this.getForm().style.display},hideForm:function(){this.getForm().style.display="none",this.getInput().value=""},showForm:function(e){var t=this.getInput();this.base.saveSelection(),this.hideToolbarDefaultActions(),this.getForm().style.display="block",this.setToolbarPosition(),t.value=e||"",t.focus()},destroy:function(){if(!this.form)return!1;this.form.parentNode&&this.form.parentNode.removeChild(this.form),delete this.form},doFormSave:function(){this.base.restoreSelection(),this.base.checkSelection()},doFormCancel:function(){this.base.restoreSelection(),this.clearFontSize(),this.base.checkSelection()},createForm:function(){var e=this.document,t=e.createElement("div"),r=e.createElement("input"),n=e.createElement("a"),_=e.createElement("a");return t.className="medium-editor-toolbar-form",t.id="medium-editor-toolbar-form-fontsize-"+this.getEditorId(),this.on(t,"click",this.handleFormClick.bind(this)),r.setAttribute("type","range"),r.setAttribute("min","1"),r.setAttribute("max","7"),r.className="medium-editor-toolbar-input",t.appendChild(r),this.on(r,"change",this.handleSliderChange.bind(this)),_.setAttribute("href","#"),_.className="medium-editor-toobar-save",_.innerHTML="fontawesome"===this.getEditorOption("buttonLabels")?'':"✓",t.appendChild(_),this.on(_,"click",this.handleSaveClick.bind(this),!0),n.setAttribute("href","#"),n.className="medium-editor-toobar-close",n.innerHTML="fontawesome"===this.getEditorOption("buttonLabels")?'':"×",t.appendChild(n),this.on(n,"click",this.handleCloseClick.bind(this)),t},getInput:function(){return this.getForm().querySelector("input.medium-editor-toolbar-input")},clearFontSize:function(){e.selection.getSelectedElements(this.document).forEach(function(e){"font"===e.nodeName.toLowerCase()&&e.hasAttribute("size")&&e.removeAttribute("size")})},handleSliderChange:function(){var e=this.getInput().value;"4"===e?this.clearFontSize():this.execAction("fontSize",{value:e})},handleFormClick:function(e){e.stopPropagation()},handleSaveClick:function(e){e.preventDefault(),this.doFormSave()},handleCloseClick:function(e){e.preventDefault(),this.doFormCancel()}});e.extensions.fontSize=t}(),function(){var t=null,r=null,n=function(e){e.stopPropagation()};function _(e,t,r){var n=e.clipboardData||t.clipboardData||r.dataTransfer,_={};if(!n)return _;if(n.getData){var a=n.getData("Text");a&&a.length>0&&(_["text/plain"]=a)}if(n.types)for(var i=0;i1)for(a=0;a<_.length;a+=1)""!==_[a]&&(i+="

"+e.util.htmlEntities(_[a])+"

");else i=e.util.htmlEntities(_[0]);e.util.insertHTMLCommand(this.document,i)}},handlePasteBinPaste:function(e){if(e.defaultPrevented)this.removePasteBin();else{var t=_(e,this.window,this.document),n=t["text/html"],a=t["text/plain"],i=r;if(!this.cleanPastedHTML||n)return e.preventDefault(),this.removePasteBin(),this.doPaste(n,a,i),void this.trigger("editablePaste",{currentTarget:i,target:i},i);setTimeout(function(){this.cleanPastedHTML&&(n=this.getPasteBinHtml()),this.removePasteBin(),this.doPaste(n,a,i),this.trigger("editablePaste",{currentTarget:i,target:i},i)}.bind(this),0)}},handleKeydown:function(t,r){e.util.isKey(t,e.util.keyCode.V)&&e.util.isMetaCtrlKey(t)&&(t.stopImmediatePropagation(),this.removePasteBin(),this.createPasteBin(r))},createPasteBin:function(_){var a,i=e.selection.getSelectionRange(this.document),o=this.window.pageYOffset;r=_,i&&((a=i.getClientRects()).length?o+=a[0].top:void 0!==i.startContainer.getBoundingClientRect?o+=i.startContainer.getBoundingClientRect().top:o+=i.getBoundingClientRect().top),t=i;var s=this.document.createElement("div");s.id=this.pasteBinId="medium-editor-pastebin-"+ +Date.now(),s.setAttribute("style","border: 1px red solid; position: absolute; top: "+o+"px; width: 10px; height: 10px; overflow: hidden; opacity: 0"),s.setAttribute("contentEditable",!0),s.innerHTML="%ME_PASTEBIN%",this.document.body.appendChild(s),this.on(s,"focus",n),this.on(s,"focusin",n),this.on(s,"focusout",n),s.focus(),e.selection.selectNode(s,this.document),this.boundHandlePaste||(this.boundHandlePaste=this.handlePasteBinPaste.bind(this)),this.on(s,"paste",this.boundHandlePaste)},removePasteBin:function(){null!==t&&(e.selection.selectRange(this.document,t),t=null),null!==r&&(r=null);var _=this.getPasteBin();_&&_&&(this.off(_,"focus",n),this.off(_,"focusin",n),this.off(_,"focusout",n),this.off(_,"paste",this.boundHandlePaste),_.parentElement.removeChild(_))},getPasteBin:function(){return this.document.getElementById(this.pasteBinId)},getPasteBinHtml:function(){var e=this.getPasteBin();if(!e)return!1;if(e.firstChild&&"mcepastebin"===e.firstChild.id)return!1;var t=e.innerHTML;return!(!t||"%ME_PASTEBIN%"===t)&&t},cleanPaste:function(e){var t,r,n,_,a=/]*>\s*|\s*<\/body[^>]*>[\s\S]*$/g),""],[new RegExp(/|/g),""],[new RegExp(/
$/i),""],[new RegExp(/<[^>]*docs-internal-guid[^>]*>/gi),""],[new RegExp(/<\/b>(]*>)?$/gi),""],[new RegExp(/\s+<\/span>/g)," "],[new RegExp(/
/g),"
"],[new RegExp(/]*(font-style:italic;font-weight:(bold|700)|font-weight:(bold|700);font-style:italic)[^>]*>/gi),''],[new RegExp(/]*font-style:italic[^>]*>/gi),''],[new RegExp(/]*font-weight:(bold|700)[^>]*>/gi),''],[new RegExp(/<(\/?)(i|b|a)>/gi),"<$1$2>"],[new RegExp(/<a(?:(?!href).)+href=(?:"|”|“|"|“|”)(((?!"|”|“|"|“|”).)*)(?:"|”|“|"|“|”)(?:(?!>).)*>/gi),''],[new RegExp(/<\/p>\n+/gi),"

"],[new RegExp(/\n+

/gi),""],[new RegExp(/(((?!/gi),"$1"]],this.cleanReplacements||[]);for(t=0;t"+e.split("

").join("

")+"

",r=n.querySelectorAll("a,p,div,br"),t=0;t"+n.innerHTML+"
":_.innerHTML=n.innerHTML,n.parentNode.replaceChild(_,n);for(a=t.querySelectorAll("span"),r=0;r0&&(n[0].classList.add(this.firstButtonClass),n[n.length-1].classList.add(this.lastButtonClass)),o},destroy:function(){this.toolbar&&(this.toolbar.parentNode&&this.toolbar.parentNode.removeChild(this.toolbar),delete this.toolbar)},getInteractionElements:function(){return this.getToolbarElement()},getToolbarElement:function(){return this.toolbar||(this.toolbar=this.createToolbar()),this.toolbar},getToolbarActionsElement:function(){return this.getToolbarElement().querySelector(".medium-editor-toolbar-actions")},initThrottledMethods:function(){this.throttledPositionToolbar=e.util.throttle(function(){this.base.isActive&&this.positionToolbarIfShown()}.bind(this))},attachEventHandlers:function(){this.subscribe("blur",this.handleBlur.bind(this)),this.subscribe("focus",this.handleFocus.bind(this)),this.subscribe("editableClick",this.handleEditableClick.bind(this)),this.subscribe("editableKeyup",this.handleEditableKeyup.bind(this)),this.on(this.document.documentElement,"mouseup",this.handleDocumentMouseup.bind(this)),this.static&&this.sticky&&this.on(this.window,"scroll",this.handleWindowScroll.bind(this),!0),this.on(this.window,"resize",this.handleWindowResize.bind(this))},handleWindowScroll:function(){this.positionToolbarIfShown()},handleWindowResize:function(){this.throttledPositionToolbar()},handleDocumentMouseup:function(t){if(t&&t.target&&e.util.isDescendant(this.getToolbarElement(),t.target))return!1;this.checkState()},handleEditableClick:function(){setTimeout(function(){this.checkState()}.bind(this),0)},handleEditableKeyup:function(){this.checkState()},handleBlur:function(){clearTimeout(this.hideTimeout),clearTimeout(this.delayShowTimeout),this.hideTimeout=setTimeout(function(){this.hideToolbar()}.bind(this),1)},handleFocus:function(){this.checkState()},isDisplayed:function(){return this.getToolbarElement().classList.contains("medium-editor-toolbar-active")},showToolbar:function(){clearTimeout(this.hideTimeout),this.isDisplayed()||(this.getToolbarElement().classList.add("medium-editor-toolbar-active"),this.trigger("showToolbar",{},this.base.getFocusedElement()))},hideToolbar:function(){this.isDisplayed()&&(this.getToolbarElement().classList.remove("medium-editor-toolbar-active"),this.trigger("hideToolbar",{},this.base.getFocusedElement()))},isToolbarDefaultActionsDisplayed:function(){return"block"===this.getToolbarActionsElement().style.display},hideToolbarDefaultActions:function(){this.isToolbarDefaultActionsDisplayed()&&(this.getToolbarActionsElement().style.display="none")},showToolbarDefaultActions:function(){this.hideExtensionForms(),this.isToolbarDefaultActionsDisplayed()||(this.getToolbarActionsElement().style.display="block"),this.delayShowTimeout=this.base.delay(function(){this.showToolbar()}.bind(this))},hideExtensionForms:function(){this.forEachExtension(function(e){e.hasForm&&e.isDisplayed()&&e.hideForm()})},multipleBlockElementsSelected:function(){var t=new RegExp("<("+e.util.blockContainerElementNames.join("|")+")[^>]*>","g"),r=e.selection.getSelectionHtml(this.document).replace(/<[^\/>][^>]*><\/[^>]+>/gim,"").match(t);return!!r&&r.length>1},modifySelection:function(){var t=this.window.getSelection().getRangeAt(0);if(this.standardizeSelectionStart&&t.startContainer.nodeValue&&t.startOffset===t.startContainer.nodeValue.length){var r=e.util.findAdjacentTextNodeWithContent(e.selection.getSelectionElement(this.window),t.startContainer,this.document);if(r){for(var n=0;0===r.nodeValue.substr(n,1).trim().length;)n+=1;t=e.selection.select(this.document,r,n,t.endContainer,t.endOffset)}}},checkState:function(){if(!this.base.preventSelectionUpdates){if(!this.base.getFocusedElement()||e.selection.selectionInContentEditableFalse(this.window))return this.hideToolbar();var t=e.selection.getSelectionElement(this.window);return!t||-1===this.getEditorElements().indexOf(t)||t.getAttribute("data-disable-toolbar")?this.hideToolbar():this.updateOnEmptySelection&&this.static?this.showAndUpdateToolbar():!e.selection.selectionContainsContent(this.document)||!1===this.allowMultiParagraphSelection&&this.multipleBlockElementsSelected()?this.hideToolbar():void this.showAndUpdateToolbar()}},showAndUpdateToolbar:function(){this.modifySelection(),this.setToolbarButtonStates(),this.trigger("positionToolbar",{},this.base.getFocusedElement()),this.showToolbarDefaultActions(),this.setToolbarPosition()},setToolbarButtonStates:function(){this.forEachExtension(function(e){"function"==typeof e.isActive&&"function"==typeof e.setInactive&&e.setInactive()}),this.checkActiveButtons()},checkActiveButtons:function(){var t,r=[],n=null,_=e.selection.getSelectionRange(this.document),a=function(e){"function"==typeof e.checkState?e.checkState(t):"function"==typeof e.isActive&&"function"==typeof e.isAlreadyApplied&&"function"==typeof e.setActive&&!e.isActive()&&e.isAlreadyApplied(t)&&e.setActive()};if(_&&(this.forEachExtension(function(e){"function"!=typeof e.queryCommandState||null===(n=e.queryCommandState())?r.push(e):n&&"function"==typeof e.setActive&&e.setActive()}),t=e.selection.getSelectedParentElement(_),this.getEditorElements().some(function(r){return e.util.isDescendant(r,t,!0)})))for(;t&&(r.forEach(a),!e.util.isMediumEditorElement(t));)t=t.parentNode},positionToolbarIfShown:function(){this.isDisplayed()&&this.setToolbarPosition()},setToolbarPosition:function(){var e=this.base.getFocusedElement(),t=this.window.getSelection();if(!e)return this;!this.static&&t.isCollapsed||(this.showToolbar(),this.relativeContainer||(this.static?this.positionStaticToolbar(e):this.positionToolbar(t)),this.trigger("positionedToolbar",{},this.base.getFocusedElement()))},positionStaticToolbar:function(e){this.getToolbarElement().style.left="0";var t,r=this.document.documentElement&&this.document.documentElement.scrollTop||this.document.body.scrollTop,n=this.window.innerWidth,_=this.getToolbarElement(),a=e.getBoundingClientRect(),i=a.top+r,o=a.left+a.width/2,s=_.offsetHeight,l=_.offsetWidth,u=l/2;switch(this.sticky?r>i+e.offsetHeight-s-this.stickyTopOffset?(_.style.top=i+e.offsetHeight-s+"px",_.classList.remove("medium-editor-sticky-toolbar")):r>i-s-this.stickyTopOffset?(_.classList.add("medium-editor-sticky-toolbar"),_.style.top=this.stickyTopOffset+"px"):(_.classList.remove("medium-editor-sticky-toolbar"),_.style.top=i-s+"px"):_.style.top=i-s+"px",this.align){case"left":t=a.left;break;case"right":t=a.right-l;break;case"center":t=o-u}t<0?t=0:t+l>n&&(t=n-Math.ceil(l)-1),_.style.left=t+"px"},positionToolbar:function(e){this.getToolbarElement().style.left="0",this.getToolbarElement().style.right="initial";var t=e.getRangeAt(0),r=t.getBoundingClientRect();(!r||0===r.height&&0===r.width&&t.startContainer===t.endContainer)&&(r=1===t.startContainer.nodeType&&t.startContainer.querySelector("img")?t.startContainer.querySelector("img").getBoundingClientRect():t.startContainer.getBoundingClientRect());var n,_,a=this.window.innerWidth,i=this.getToolbarElement(),o=i.offsetHeight,s=i.offsetWidth/2,l=this.diffLeft-s,u=this.getEditorOption("elementsContainer"),c={},d={};["absolute","fixed"].indexOf(window.getComputedStyle(u).getPropertyValue("position"))>-1?(_=u.getBoundingClientRect(),["top","left"].forEach(function(e){d[e]=r[e]-_[e]}),d.width=r.width,d.height=r.height,r=d,a=_.width,c.top=u.scrollTop):c.top=this.window.pageYOffset,n=r.left+r.width/2,c.top+=r.top-o,r.top<50?(i.classList.add("medium-toolbar-arrow-over"),i.classList.remove("medium-toolbar-arrow-under"),c.top+=50+r.height-this.diffTop):(i.classList.add("medium-toolbar-arrow-under"),i.classList.remove("medium-toolbar-arrow-over"),c.top+=this.diffTop),n'),r.onload=function(){var e=this.document.getElementById(n);e&&(e.removeAttribute("id"),e.removeAttribute("class"),e.src=r.result)}.bind(this))}.bind(this)),t.target.classList.remove("medium-editor-dragover")}});e.extensions.imageDragging=t}(),function(){function t(t,r){if(this.options.disableReturn||r.getAttribute("data-disable-return"))t.preventDefault();else if(this.options.disableDoubleReturn||r.getAttribute("data-disable-double-return")){var n=e.selection.getSelectionStart(this.options.ownerDocument);(n&&""===n.textContent.trim()&&"li"!==n.nodeName.toLowerCase()||n.previousElementSibling&&"br"!==n.previousElementSibling.nodeName.toLowerCase()&&""===n.previousElementSibling.textContent.trim())&&t.preventDefault()}}function r(t){var r,n=e.selection.getSelectionStart(this.options.ownerDocument),_=n.nodeName.toLowerCase(),a=/^(\s+|)?$/i,i=/h\d/i;e.util.isKey(t,[e.util.keyCode.BACKSPACE,e.util.keyCode.ENTER])&&n.previousElementSibling&&i.test(_)&&0===e.selection.getCaretOffsets(n).left?e.util.isKey(t,e.util.keyCode.BACKSPACE)&&a.test(n.previousElementSibling.innerHTML)?(n.previousElementSibling.parentNode.removeChild(n.previousElementSibling),t.preventDefault()):!this.options.disableDoubleReturn&&e.util.isKey(t,e.util.keyCode.ENTER)&&((r=this.options.ownerDocument.createElement("p")).innerHTML="
",n.previousElementSibling.parentNode.insertBefore(r,n),t.preventDefault()):e.util.isKey(t,e.util.keyCode.DELETE)&&n.nextElementSibling&&n.previousElementSibling&&!i.test(_)&&a.test(n.innerHTML)&&i.test(n.nextElementSibling.nodeName.toLowerCase())?(e.selection.moveCursor(this.options.ownerDocument,n.nextElementSibling),n.previousElementSibling.parentNode.removeChild(n),t.preventDefault()):e.util.isKey(t,e.util.keyCode.BACKSPACE)&&"li"===_&&a.test(n.innerHTML)&&!n.previousElementSibling&&!n.parentElement.previousElementSibling&&n.nextElementSibling&&"li"===n.nextElementSibling.nodeName.toLowerCase()?((r=this.options.ownerDocument.createElement("p")).innerHTML="
",n.parentElement.parentElement.insertBefore(r,n.parentElement),e.selection.moveCursor(this.options.ownerDocument,r),n.parentElement.removeChild(n),t.preventDefault()):e.util.isKey(t,e.util.keyCode.BACKSPACE)&&!1!==e.util.getClosestTag(n,"blockquote")&&0===e.selection.getCaretOffsets(n).left?(t.preventDefault(),e.util.execFormatBlock(this.options.ownerDocument,"p")):e.util.isKey(t,e.util.keyCode.ENTER)&&!1!==e.util.getClosestTag(n,"blockquote")&&0===e.selection.getCaretOffsets(n).right?((r=this.options.ownerDocument.createElement("p")).innerHTML="
",n.parentElement.insertBefore(r,n.nextSibling),e.selection.moveCursor(this.options.ownerDocument,r),t.preventDefault()):e.util.isKey(t,e.util.keyCode.BACKSPACE)&&e.util.isMediumEditorElement(n.parentElement)&&!n.previousElementSibling&&n.nextElementSibling&&a.test(n.innerHTML)&&(t.preventDefault(),e.selection.moveCursor(this.options.ownerDocument,n.nextSibling),n.parentElement.removeChild(n))}function n(t,r,n){var _=[];if(t||(t=[]),"string"==typeof t&&(t=r.querySelectorAll(t)),e.util.isElement(t)&&(t=[t]),n)for(var a=0;a=0&&(n=e.selection.exportSelection(t,this.options.ownerDocument)),null!==n&&0!==r&&(n.editableElementIndex=r),n},saveSelection:function(){this.selectionState=this.exportSelection()},importSelection:function(t,r){if(t){var n=this.elements[t.editableElementIndex||0];e.selection.importSelection(t,n,this.options.ownerDocument,r)}},restoreSelection:function(){this.importSelection(this.selectionState)},createLink:function(t){var r,n=e.selection.getSelectionElement(this.options.contentWindow),_={};if(-1!==this.elements.indexOf(n)){try{if(this.events.disableCustomEvent("editableInput"),t.url&&e.util.deprecated(".url option for createLink",".value","6.0.0"),(r=t.url||t.value)&&r.trim().length>0){var a=this.options.contentWindow.getSelection();if(a){var i,o,s,l,u=a.getRangeAt(0),c=u.commonAncestorContainer;if(3===u.endContainer.nodeType&&3!==u.startContainer.nodeType&&0===u.startOffset&&u.startContainer.firstChild===u.endContainer&&(c=u.endContainer),o=e.util.getClosestBlockContainer(u.startContainer),s=e.util.getClosestBlockContainer(u.endContainer),3!==c.nodeType&&0!==c.textContent.length&&o===s){var d=o||n,f=this.options.ownerDocument.createDocumentFragment();this.execAction("unlink"),i=this.exportSelection(),f.appendChild(d.cloneNode(!0)),n===d?e.selection.select(this.options.ownerDocument,d.firstChild,0,d.lastChild,3===d.lastChild.nodeType?d.lastChild.nodeValue.length:d.lastChild.childNodes.length):e.selection.select(this.options.ownerDocument,d,0,d,d.childNodes.length);var p=this.exportSelection();0===(l=e.util.findOrCreateMatchingTextNodes(this.options.ownerDocument,f,{start:i.start-p.start,end:i.end-p.start,editableElementIndex:i.editableElementIndex})).length&&((f=this.options.ownerDocument.createDocumentFragment()).appendChild(c.cloneNode(!0)),l=[f.firstChild.firstChild,f.firstChild.lastChild]),e.util.createLink(this.options.ownerDocument,l,r.trim());var h=(f.firstChild.innerHTML.match(/^\s+/)||[""])[0].length;e.util.insertHTMLCommand(this.options.ownerDocument,f.firstChild.innerHTML.replace(/^\s+/,"")),i.start-=h,i.end-=h,this.importSelection(i)}else this.options.ownerDocument.execCommand("createLink",!1,r);this.options.targetBlank||"_blank"===t.target?e.util.setTargetBlank(e.selection.getSelectionStart(this.options.ownerDocument),r):e.util.removeTargetBlank(e.selection.getSelectionStart(this.options.ownerDocument),r),t.buttonClass&&e.util.addClassToAnchors(e.selection.getSelectionStart(this.options.ownerDocument),t.buttonClass)}}if(this.options.targetBlank||"_blank"===t.target||t.buttonClass){(_=this.options.ownerDocument.createEvent("HTMLEvents")).initEvent("input",!0,!0,this.options.contentWindow);for(var E=0,m=this.elements.length;E1?t[1]:"";return{major:parseInt(r[0],10),minor:parseInt(r[1],10),revision:parseInt(r[2],10),preRelease:n,toString:function(){return[r[0],r[1],r[2]].join(".")+(n?"-"+n:"")}}},e.version=e.parseVersionString.call(this,"5.23.3"),e}())}).call(this,r(130))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(0),_=r(60),a=r(54),i=r(48);t.boldCommand={buttonContent:n.createElement(i.MdeToolbarIcon,{icon:"bold"}),buttonProps:{"aria-label":"Add bold text"},execute:function(e){var t=a.getMarkdownStateFromDraftState(e);return t=_.insertBeforeAndAfter(t,"**"),a.buildNewDraftState(e,t)}}},function(e,t,r){"use strict";var n=r(35)||function(e){for(var t=1;t=e.start});1!=p.length&&a(!1);var h=p[0];if("IMMUTABLE"===d)return r.merge({anchorOffset:h.start,focusOffset:h.end,isBackward:!1});s||(l?c=h.end:u=h.start);var E=n.getRemovalRange(u,c,t.getText().slice(h.start,h.end),h.start,i);return r.merge({anchorOffset:E.start,focusOffset:E.end,isBackward:!1})}e.exports=function(e,t,r,n,_){var a=n.getStartOffset(),o=n.getEndOffset(),s=t.getEntityAt(a),l=r.getEntityAt(o-1);if(!s&&!l)return n;var u=n;if(s&&s===l)u=i(e,t,u,_,s,!0,!0);else if(s&&l){var c=i(e,t,u,_,s,!1,!0),d=i(e,r,u,_,l,!1,!1);u=u.merge({anchorOffset:c.getAnchorOffset(),focusOffset:d.getFocusOffset(),isBackward:!1})}else if(s){var f=i(e,t,u,_,s,!1,!0);u=u.merge({anchorOffset:f.getStartOffset(),isBackward:!1})}else if(l){var p=i(e,r,u,_,l,!1,!1);u=u.merge({focusOffset:p.getEndOffset(),isBackward:!1})}return u}},function(e,t,r){"use strict";e.exports={getRemovalRange:function(e,t,r,n,_){var a=r.split(" ");a=a.map(function(e,t){if("forward"===_){if(t>0)return" "+e}else if(tt;)e=e.pop(),r--;else{var n=e.slice(0,t),_=e.slice(r);e=n.concat(_).toList()}return e};e.exports=function(e,t){if(t.isCollapsed())return e;var r=e.getBlockMap(),_=t.getStartKey(),o=t.getStartOffset(),l=t.getEndKey(),u=t.getEndOffset(),f=r.get(_),p=r.get(l),h=f instanceof n,E=[];if(h){var m=p.getChildKeys(),g=s(l,r);p.getNextSiblingKey()&&(E=E.concat(g)),m.isEmpty()||(E=E.concat(g.concat([l]))),E=E.concat(s(a(p,r),r))}var b=void 0;b=f===p?d(f.getCharacterList(),o,u):f.getCharacterList().slice(0,o).concat(p.getCharacterList().slice(u));var v=f.merge({text:f.getText().slice(0,o)+p.getText().slice(u),characterList:b}),O=r.toSeq().skipUntil(function(e,t){return t===_}).takeUntil(function(e,t){return t===l}).filter(function(e,t){return-1===E.indexOf(t)}).concat(i([[l,null]])).map(function(e,t){return t===_?v:null}),M=r.merge(O).filter(function(e){return!!e});return h&&(M=c(M,f,p,r)),e.merge({blockMap:M,selectionBefore:t,selectionAfter:t.merge({anchorKey:_,anchorOffset:o,focusKey:_,focusOffset:o,isBackward:!1})})}},function(e,t,r){"use strict";var n=r(65),_=r(30),a=r(78),i=r(29),o=_.List,s=_.Map,l=function(e,t,r){if(e){var n=t.get(e);n&&t.set(e,r(n))}};e.exports=function(e,t){t.isCollapsed()||i(!1);var r=t.getAnchorKey(),_=t.getAnchorOffset(),u=e.getBlockMap(),c=u.get(r),d=c.getText(),f=c.getCharacterList(),p=a(),h=c instanceof n,E=c.merge({text:d.slice(0,_),characterList:f.slice(0,_)}),m=E.merge({key:p,text:d.slice(_),characterList:f.slice(_),data:s()}),g=u.toSeq().takeUntil(function(e){return e===c}),b=u.toSeq().skipUntil(function(e){return e===c}).rest(),v=g.concat([[r,E],[p,m]],b).toOrderedMap();return h&&(c.getChildKeys().isEmpty()||i(!1),v=function(e,t,r){return e.withMutations(function(e){var n=t.getKey(),_=r.getKey();l(t.getParentKey(),e,function(e){var t=e.getChildKeys(),r=t.indexOf(n)+1,a=t.toArray();return a.splice(r,0,_),e.merge({children:o(a)})}),l(t.getNextSiblingKey(),e,function(e){return e.merge({prevSibling:_})}),l(n,e,function(e){return e.merge({nextSibling:_})}),l(_,e,function(e){return e.merge({prevSibling:n})})})}(v,E,m)),e.merge({blockMap:v,selectionBefore:t,selectionAfter:t.merge({anchorKey:p,anchorOffset:0,focusKey:p,focusOffset:0,isBackward:!1})})}},function(e,t,r){"use strict";var n,_=r(30),a=r(621),i=r(68),o=_.OrderedMap,s={getDirectionMap:function(e,t){n?n.reset():n=new a;var r=e.getBlockMap(),s=r.valueSeq().map(function(e){return i(n).getDirection(e.getText())}),l=o(r.keySeq().zip(s));return null!=t&&_.is(t,l)?t:l}};e.exports=s},function(e,t,r){"use strict";var n=r(309),_=r(216),a=r(29),i=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t?_.isStrong(t)||a(!1):t=_.getGlobalDir(),this._defaultDir=t,this.reset()}return e.prototype.reset=function(){this._lastDir=this._defaultDir},e.prototype.getDirection=function(e){return this._lastDir=n.getDirection(e,this._lastDir),this._lastDir},e}();e.exports=i},function(e,t,r){"use strict";var n=r(65),_=r(30),a=r(306),i=r(29),o=_.OrderedMap,s=_.List,l=function(e,t,r){if(e){var n=t.get(e);n&&t.set(e,r(n))}};e.exports=function(e,t,r,_){"replace"===_&&i(!1);var u=r.getKey(),c=t.getKey();c===u&&i(!1);var d=e.getBlockMap(),f=t instanceof n,p=[t],h=d.delete(c);f&&(p=[],h=d.withMutations(function(e){var r=t.getNextSiblingKey(),n=a(t,e);e.toSeq().skipUntil(function(e){return e.getKey()===c}).takeWhile(function(e){var t=e.getKey(),_=t===c,a=r&&t!==r,i=!r&&e.getParentKey()&&(!n||t!==n);return!!(_||a||i)}).forEach(function(t){p.push(t),e.delete(t.getKey())})}));var E=h.toSeq().takeUntil(function(e){return e===r}),m=h.toSeq().skipUntil(function(e){return e===r}).skip(1),g=p.map(function(e){return[e.getKey(),e]}),b=o();if("before"===_){var v=e.getBlockBefore(u);v&&v.getKey()===t.getKey()&&i(!1),b=E.concat([].concat(g,[[u,r]]),m).toOrderedMap()}else if("after"===_){var O=e.getBlockAfter(u);O&&O.getKey()===c&&i(!1),b=E.concat([[u,r]].concat(g),m).toOrderedMap()}return e.merge({blockMap:function(e,t,r,n,_){if(!_)return e;var a="after"===n,i=t.getKey(),o=r.getKey(),u=t.getParentKey(),c=t.getNextSiblingKey(),d=t.getPrevSiblingKey(),f=r.getParentKey(),p=a?r.getNextSiblingKey():o,h=a?o:r.getPrevSiblingKey();return e.withMutations(function(e){l(u,e,function(e){var t=e.getChildKeys();return e.merge({children:t.delete(t.indexOf(i))})}),l(d,e,function(e){return e.merge({nextSibling:c})}),l(c,e,function(e){return e.merge({prevSibling:d})}),l(p,e,function(e){return e.merge({prevSibling:i})}),l(h,e,function(e){return e.merge({nextSibling:i})}),l(f,e,function(e){var t=e.getChildKeys(),r=t.indexOf(o),n=a?r+1:0!==r?r-1:0,_=t.toArray();return _.splice(n,0,i),e.merge({children:s(_)})}),l(i,e,function(e){return e.merge({nextSibling:p,prevSibling:h,parent:f})})})}(b,t,r,_,f),selectionBefore:e.getSelectionAfter(),selectionAfter:e.getSelectionAfter().merge({anchorKey:c,focusKey:c})})}},function(e,t,r){"use strict";var n=r(30).List,_=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._decorators=t.slice()}return e.prototype.getDecorations=function(e,t){var r=Array(e.getText().length).fill(null);return this._decorators.forEach(function(n,_){var a=0;(0,n.strategy)(e,function(e,t){(function(e,t,r){for(var n=t;n0||null!==f;if(p&&e.restoreEditorDOM(),e.exitCurrentMode(),t){if(n.draft_handlebeforeinput_composed_text&&e.props.handleBeforeInput&&s(e.props.handleBeforeInput(t,r)))return;var h=_.replaceText(r.getCurrentContent(),r.getSelection(),t,i,f);e.update(a.push(r,h,"insert-characters"))}else p&&e.update(a.set(r,{nativelyRenderedContent:null,forceSelection:!0}))}}};e.exports=f},function(e,t,r){"use strict";var n=r(627);e.exports=n},function(e,t,r){"use strict";var n=r(35)||function(e){for(var t=1;tC,L));var N=k||_,q={className:j,"data-block":!0,"data-editor":p,"data-offset-key":B,key:w};void 0!==R&&(q=n({},q,{contentEditable:R,suppressContentEditableWarning:!0}));var F=i.createElement(W,q,i.createElement(N,U));M.push({block:F,wrapperTemplate:K,key:w,offsetKey:B}),C=K?y.getDepth():null,P=K}for(var V=[],H=0;H * Dual licensed under GPLv2 or MIT */ -!function(_,a){"use strict";var i="model",o="name",s="type",l="vendor",u="version",c="mobile",d="tablet",f={extend:function(e,t){var r={};for(var n in e)t[n]&&t[n].length%2==0?r[n]=t[n].concat(e[n]):r[n]=e[n];return r},has:function(e,t){return"string"==typeof e&&-1!==t.toLowerCase().indexOf(e.toLowerCase())},lowerize:function(e){return e.toLowerCase()},major:function(e){return"string"==typeof e?e.replace(/[^\d\.]/g,"").split(".")[0]:void 0},trim:function(e){return e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},p={rgx:function(e,t){for(var r,n,_,a,i,o,s=0;s0?2==a.length?"function"==typeof a[1]?this[a[0]]=a[1].call(this,o):this[a[0]]=a[1]:3==a.length?"function"!=typeof a[1]||a[1].exec&&a[1].test?this[a[0]]=o?o.replace(a[1],a[2]):void 0:this[a[0]]=o?a[1].call(this,o,a[2]):void 0:4==a.length&&(this[a[0]]=o?a[3].call(this,o.replace(a[1],a[2])):void 0):this[a]=o||void 0;s+=2}},str:function(e,t){for(var r in t)if("object"==typeof t[r]&&t[r].length>0){for(var n=0;n=|~>|~|>|)?\s*(.+)/,s=/^(\d*)(.*)/;function l(e,t){var r=e.split(a);return r.length>1?r.some(function(e){return v.contains(e,t)}):function(e,t){var r=e.split(i);if(r.length>0&&r.length<=2||n(!1),1===r.length)return u(r[0],t);var _=r[0],a=r[1];return h(_)&&h(a)||n(!1),u(">="+_,t)&&u("<="+a,t)}(e=r[0].trim(),t)}function u(e,t){if(""===(e=e.trim()))return!0;var r=t.split(_),n=f(e),a=n.modifier,i=n.rangeComponents;switch(a){case"<":return c(r,i);case"<=":return function(e,t){var r=b(e,t);return-1===r||0===r}(r,i);case">=":return d(r,i);case">":return function(e,t){return 1===b(e,t)}(r,i);case"~":case"~>":return function(e,t){var r=t.slice(),n=t.slice();n.length>1&&n.pop();var _=n.length-1,a=parseInt(n[_],10);p(a)&&(n[_]=a+1+"");return d(e,r)&&c(e,n)}(r,i);default:return function(e,t){return 0===b(e,t)}(r,i)}}function c(e,t){return-1===b(e,t)}function d(e,t){var r=b(e,t);return 1===r||0===r}function f(e){var t=e.split(_),r=t[0].match(o);return r||n(!1),{modifier:r[1],rangeComponents:[r[2]].concat(t.slice(1))}}function p(e){return!isNaN(e)&&isFinite(e)}function h(e){return!f(e).modifier}function E(e,t){for(var r=e.length;rt?1:el(t)&&n.logSelectionStateFailure({anonymizedDom:s(t),extraParams:JSON.stringify({offset:r}),selectionState:JSON.stringify(i.toJS())});var u=t===e.focusNode;try{e.extend(t,r)}catch(_){throw n.logSelectionStateFailure({anonymizedDom:s(t,function(t){var r=[];return t===o&&r.push("active element"),t===e.anchorNode&&r.push("selection anchor node"),t===e.focusNode&&r.push("selection focus node"),r}),extraParams:JSON.stringify({activeElementName:o?o.nodeName:null,nodeIsFocus:t===e.focusNode,nodeWasFocus:u,selectionRangeCount:e.rangeCount,selectionAnchorNodeName:e.anchorNode?e.anchorNode.nodeName:null,selectionAnchorOffset:e.anchorOffset,selectionFocusNodeName:e.focusNode?e.focusNode.nodeName:null,selectionFocusOffset:e.focusOffset,message:_?""+_:null,offset:r},null,2),selectionState:JSON.stringify(i.toJS(),null,2)}),_}}else{var c=e.getRangeAt(0);c.setEnd(t,r),e.addRange(c.cloneRange())}}function c(e,t,r,_){var a=document.createRange();r>l(t)&&n.logSelectionStateFailure({anonymizedDom:s(t),extraParams:JSON.stringify({offset:r}),selectionState:JSON.stringify(_.toJS())}),a.setStart(t,r),e.addRange(a)}e.exports=function(e,r,n,a,i){if(_(document.documentElement,r)){var o=t.getSelection(),s=e.getAnchorKey(),l=e.getAnchorOffset(),d=e.getFocusKey(),f=e.getFocusOffset(),p=e.getIsBackward();if(!o.extend&&p){var h=s,E=l;s=d,l=f,d=h,f=E,p=!1}var m=s===n&&a<=l&&i>=l,g=d===n&&a<=f&&i>=f;if(m&&g)return o.removeAllRanges(),c(o,r,l-a,e),void u(o,r,f-a,e);if(p){if(g&&(o.removeAllRanges(),c(o,r,f-a,e)),m){var b=o.focusNode,v=o.focusOffset;o.removeAllRanges(),c(o,r,l-a,e),u(o,b,v,e)}}else m&&(o.removeAllRanges(),c(o,r,l-a,e)),g&&u(o,r,f-a,e)}}}).call(this,r(49))},function(e,t,r){"use strict";e.exports={logSelectionStateFailure:function(){return null}}},function(e,t,r){"use strict";var n=r(639);e.exports=function(e){return n(e)&&3==e.nodeType}},function(e,t,r){"use strict";e.exports=function(e){var t=(e?e.ownerDocument||e:document).defaultView||window;return!(!e||!("function"==typeof t.Node?e instanceof t.Node:"object"==typeof e&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName))}},function(e,t,r){"use strict";var n=r(641),_=r(642);function a(e){return null==e?e:String(e)}e.exports=function(e,t){var r=void 0;if(window.getComputedStyle&&(r=window.getComputedStyle(e,null)))return a(r.getPropertyValue(_(t)));if(document.defaultView&&document.defaultView.getComputedStyle){if(r=document.defaultView.getComputedStyle(e,null))return a(r.getPropertyValue(_(t)));if("display"===t)return"none"}return e.currentStyle?a("float"===t?e.currentStyle.cssFloat||e.currentStyle.styleFloat:e.currentStyle[n(t)]):a(e.style&&e.style[n(t)])}},function(e,t,r){"use strict";var n=/-(.)/g;e.exports=function(e){return e.replace(n,function(e,t){return t.toUpperCase()})}},function(e,t,r){"use strict";var n=/([A-Z])/g;e.exports=function(e){return e.replace(n,"-$1").toLowerCase()}},function(e,t,r){"use strict";var n=r(644);e.exports=function(e){var t=n(e);return{x:t.left,y:t.top,width:t.right-t.left,height:t.bottom-t.top}}},function(e,t,r){"use strict";var n=r(220);e.exports=function(e){var t=e.ownerDocument.documentElement;if(!("getBoundingClientRect"in e&&n(t,e)))return{left:0,right:0,top:0,bottom:0};var r=e.getBoundingClientRect();return{left:Math.round(r.left)-t.clientLeft,right:Math.round(r.right)-t.clientLeft,top:Math.round(r.top)-t.clientTop,bottom:Math.round(r.bottom)-t.clientTop}}},function(e,t,r){"use strict";var n="undefined"!=typeof navigator&&navigator.userAgent.indexOf("AppleWebKit")>-1;e.exports=function(e){return(e=e||document).scrollingElement?e.scrollingElement:n||"CSS1Compat"!==e.compatMode?e.body:e.documentElement}},function(e,t,r){"use strict";e.exports=function(e){return e.Window&&e instanceof e.Window?{x:e.pageXOffset||e.document.documentElement.scrollLeft,y:e.pageYOffset||e.document.documentElement.scrollTop}:{x:e.scrollLeft,y:e.scrollTop}}},function(e,t,r){"use strict";function n(){var e=void 0;return document.documentElement&&(e=document.documentElement.clientWidth),!e&&document.body&&(e=document.body.clientWidth),e||0}function _(){var e=void 0;return document.documentElement&&(e=document.documentElement.clientHeight),!e&&document.body&&(e=document.body.clientHeight),e||0}function a(){return{width:window.innerWidth||n(),height:window.innerHeight||_()}}a.withoutScrollbars=function(){return{width:n(),height:_()}},e.exports=a},function(e,t,r){"use strict";e.exports=function(e){e||(e="");var t=void 0,r=arguments.length;if(r>1)for(var n=1;n0){if(e.props.handleDroppedFiles&&l(e.props.handleDroppedFiles(f,p)))return;o(p,function(t){t&&e.update(d(c,f,t))})}else{var h=e._internalDrag?"internal":"external";e.props.handleDrop&&l(e.props.handleDrop(f,r,h))||(e._internalDrag?e.update(function(e,t){var r=_.moveText(e.getCurrentContent(),e.getSelection(),t);return a.push(e,r,"insert-fragment")}(c,f)):e.update(d(c,f,r.getText())))}}}};function d(e,t,r){var n=_.insertText(e.getCurrentContent(),t,r,e.getCurrentInlineStyle());return a.push(e,n,"insert-fragment")}e.exports=c},function(e,t,r){"use strict";var n={isImage:function(e){return"image"===_(e)[0]},isJpeg:function(e){var t=_(e);return n.isImage(e)&&("jpeg"===t[1]||"pjpeg"===t[1])}};function _(e){return e.split("/")}e.exports=n},function(e,t,r){"use strict";var n=r(29);e.exports=function(e){return function(e){return!!e&&("object"==typeof e||"function"==typeof e)&&"length"in e&&!("setInterval"in e)&&"number"!=typeof e.nodeType&&(Array.isArray(e)||"callee"in e||"item"in e)}(e)?Array.isArray(e)?e.slice():function(e){var t=e.length;if((Array.isArray(e)||"object"!=typeof e&&"function"!=typeof e)&&n(!1),"number"!=typeof t&&n(!1),0===t||t-1 in e||n(!1),"function"==typeof e.callee&&n(!1),e.hasOwnProperty)try{return Array.prototype.slice.call(e)}catch(e){}for(var r=Array(t),_=0;_=0;f--)if(!(null!=d&&f>0&&n.isSurrogatePair(d,f-1))){if(e.setStart(u,f),!i(_(e),r))break;s=u,l=f}if(-1===f||0===u.childNodes.length)break;c=o(u=u.childNodes[f])}return e.setStart(s,l),e}},function(e,t,r){"use strict";var n=r(322),_=r(33),a=r(225),i=r(138);e.exports=function(e){var t=i(e,function(e){var t=e.getSelection(),r=t.getStartOffset();if(0===r)return a(e,1);var _=t.getStartKey(),i=e.getCurrentContent().getBlockForKey(_).getText().slice(0,r),o=n.getBackward(i);return a(e,o.length||1)},"backward");return t===e.getCurrentContent()?e:_.push(e,t,"remove-range")}},function(e,t,r){"use strict";e.exports={getPunctuation:function(){return"[.,+*?$|#{}()'\\^\\-\\[\\]\\\\\\/!@%\"~=<>_:;・、。〈-】〔-〟:-?!-/[-`{-・⸮؟٪-٬؛،؍﴾﴿᠁।၊။‐-‧‰-⁞¡-±´-¸º»¿]"}}},function(e,t,r){"use strict";var n=r(322),_=r(33),a=r(323),i=r(138);e.exports=function(e){var t=i(e,function(e){var t=e.getSelection(),r=t.getStartOffset(),_=t.getStartKey(),i=e.getCurrentContent().getBlockForKey(_).getText().slice(r),o=n.getForward(i);return a(e,o.length||1)},"forward");return t===e.getCurrentContent()?e:_.push(e,t,"remove-range")}},function(e,t,r){"use strict";var n=r(55),_=r(33);e.exports=function(e){var t=n.splitBlock(e.getCurrentContent(),e.getSelection());return _.push(e,t,"split-block")}},function(e,t,r){"use strict";var n=r(33);e.exports=function(e){var t=e.getSelection(),r=t.getEndKey(),_=e.getCurrentContent().getBlockForKey(r).getLength();return n.set(e,{selection:t.merge({anchorKey:r,anchorOffset:_,focusKey:r,focusOffset:_,isBackward:!1}),forceSelection:!0})}},function(e,t,r){"use strict";var n=r(33);e.exports=function(e){var t=e.getSelection(),r=t.getStartKey();return n.set(e,{selection:t.merge({anchorKey:r,anchorOffset:0,focusKey:r,focusOffset:0,isBackward:!1}),forceSelection:!0})}},function(e,t,r){"use strict";var n=r(33),_=r(100),a=r(225),i=r(138);e.exports=function(e){var t=i(e,function(e){var t=e.getSelection(),r=e.getCurrentContent(),n=t.getAnchorKey(),i=t.getAnchorOffset(),o=r.getBlockForKey(n).getText()[i-1];return a(e,o?_.getUTF16Length(o,0):1)},"backward");if(t===e.getCurrentContent())return e;var r=e.getSelection();return n.push(e,t.set("selectionBefore",r),r.isCollapsed()?"backspace-character":"remove-range")}},function(e,t,r){"use strict";var n=r(33),_=r(100),a=r(323),i=r(138);e.exports=function(e){var t=i(e,function(e){var t=e.getSelection(),r=e.getCurrentContent(),n=t.getAnchorKey(),i=t.getAnchorOffset(),o=r.getBlockForKey(n).getText()[i];return a(e,o?_.getUTF16Length(o,0):1)},"forward");if(t===e.getCurrentContent())return e;var r=e.getSelection();return n.push(e,t.set("selectionBefore",r),r.isCollapsed()?"delete-character":"remove-range")}},function(e,t,r){"use strict";var n=r(55),_=r(33),a=r(167);e.exports=function(e){var t=e.getSelection();if(!t.isCollapsed())return e;var r=t.getAnchorOffset();if(0===r)return e;var i,o,s=t.getAnchorKey(),l=e.getCurrentContent(),u=l.getBlockForKey(s).getLength();if(u<=1)return e;r===u?(i=t.set("anchorOffset",r-1),o=t):o=(i=t.set("focusOffset",r+1)).set("anchorOffset",r+1);var c=a(l,i),d=n.removeRange(l,i,"backward"),f=d.getSelectionAfter(),p=f.getAnchorOffset()-1,h=f.merge({anchorOffset:p,focusOffset:p}),E=n.replaceWithFragment(d,h,c),m=_.push(e,E,"insert-fragment");return _.acceptSelection(m,o)}},function(e,t,r){"use strict";var n=r(33);e.exports=function(e,t,r){var _=n.undo(t);if("spellcheck-change"!==t.getLastChangeType())e.preventDefault(),t.getNativelyRenderedContent()?(r(n.set(t,{nativelyRenderedContent:null})),setTimeout(function(){r(_)},0)):r(_);else{var a=_.getCurrentContent();r(n.set(_,{nativelyRenderedContent:a}))}}},function(e,t,r){"use strict";var n=r(135),_=r(61),a=r(315),i=r(55),o=r(679),s=r(33),l=r(326),u=r(219),c=r(317),d=r(137),f=r(682);function p(e,t,r){var n=i.replaceWithFragment(e.getCurrentContent(),e.getSelection(),t);return s.push(e,n.set("entityMap",r),"insert-fragment")}e.exports=function(e,t){t.preventDefault();var r=new a(t.clipboardData);if(!r.isRichText()){var h=r.getFiles(),E=r.getText();if(h.length>0){if(e.props.handlePastedFiles&&d(e.props.handlePastedFiles(h)))return;return void c(h,function(t){if(t=t||E){var r=e._latestEditorState,a=f(t),c=_.create({style:r.getCurrentInlineStyle(),entity:u(r.getCurrentContent(),r.getSelection())}),d=l.getCurrentBlockType(r),p=o.processText(a,c,d),h=n.createFromArray(p),m=i.replaceWithFragment(r.getCurrentContent(),r.getSelection(),h);e.update(s.push(r,m,"insert-fragment"))}})}}var m=[],g=r.getText(),b=r.getHTML(),v=e._latestEditorState;if(!e.props.handlePastedText||!d(e.props.handlePastedText(g,b,v))){if(g&&(m=f(g)),!e.props.stripPastedStyles){var O=e.getClipboard();if(r.isRichText()&&O){if(-1!==b.indexOf(e.getEditorKey())||1===m.length&&1===O.size&&O.first().getText()===g)return void e.update(p(e._latestEditorState,O))}else if(O&&r.types.includes("com.apple.webarchive")&&!r.types.includes("text/html")&&function(e,t){return e.length===t.size&&t.valueSeq().every(function(t,r){return t.getText()===e[r]})}(m,O))return void e.update(p(e._latestEditorState,O));if(b){var M=o.processHTML(b,e.props.blockRenderMap);if(M){var C=M.contentBlocks,P=M.entityMap;if(C){var D=n.createFromArray(C);return void e.update(p(e._latestEditorState,D,P))}}}e.setClipboard(null)}if(m.length){var y=_.create({style:v.getCurrentInlineStyle(),entity:u(v.getCurrentContent(),v.getSelection())}),w=l.getCurrentBlockType(v),T=o.processText(m,y,w),A=n.createFromArray(T);e.update(p(e._latestEditorState,A))}}}},function(e,t,r){"use strict";var n=r(35)||function(e){for(var t=1;t0;){var u=l.pop(),c=u.parentRef,d=c.getChildKeys(),f=d.indexOf(u.key),p=Array.isArray(u.children);if(!p){p||E(!1);break}var h=u.children.map(C),m=new a(n({},O(u,t),{parent:c.getKey(),children:g(h.map(function(e){return e.key})),prevSibling:0===f?null:d.get(f-1),nextSibling:f===d.size-1?null:d.get(f+1)}));r=r.set(m.getKey(),m),l=P(l,h,m)}return r},v())}(i,t):function(e,t){return v(e.map(function(e){var r=new _(O(e,t));return[r.getKey(),r]}))}(r?l.fromRawTreeStateToRawState(e).blocks:i,t)};e.exports=function(e){Array.isArray(e.blocks)||E(!1);var t=function(e){var t=e.entityMap,r={};return Object.keys(t).forEach(function(e){var n=t[e],_=n.type,a=n.mutability,i=n.data;r[e]=o.__create(_,a,i||{})}),r}(e),r=D(e,t),n=r.isEmpty()?new c:c.createEmpty(r.first().getKey());return new i({blockMap:r,entityMap:t,selectionBefore:n,selectionAfter:n})}},function(e,t,r){"use strict";var n=r(35)||function(e){for(var t=1;t0){var l=t[o-1];return l||_(!1),void l.children.push(s)}r.push(s)}),n({},e,{blocks:r})}};e.exports=i},function(e,t,r){"use strict";var n=r(61),_=r(30).List;e.exports=function(e,t){var r=e.map(function(e,r){var _=t[r];return n.create({style:e,entity:_})});return _(r)}},function(e,t,r){"use strict";var n=r(100).substr;e.exports=function(e,t){var r=Array(e.length).fill(null);return t&&t.forEach(function(t){for(var _=n(e,0,t.offset).length,a=_+n(e,t.offset,t.length).length,i=_;i1&&0===t[0].width){var o=t[1];r=o.top,_=o.right,a=o.bottom,i=o.left}else{var s=t[0];r=s.top,_=s.right,a=s.bottom,i=s.left}for(var l=1;l 

"},ref:function(t){return e.previewRef=t}}))},t}(_.Component);t.MdePreview=a},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:!0});var _=r(0),a=r(212),i=r(211),o=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handleOnChange=function(e){(0,t.props.onChange)(e)},t.handleKeyCommand=function(e,r){var n=t.props.onChange;switch(e){case"bold":return n(i.boldCommand.execute(r)),"handled";case"italic":return n(i.italicCommand.execute(r)),"handled";case"code":return n(i.codeCommand.execute(r)),"handled";default:return"not-handled"}},t.handleTab=function(e){e.preventDefault();var r=t.props,n=r.editorState.draftEditorState;(0,r.onChange)(i.tabCommand.execute(n,e.shiftKey))},t}return n(t,e),t.prototype.render=function(){var e=this,t=this.props,r=t.editorState.draftEditorState,n=t.className,i=t.readOnly;return _.createElement("div",{className:"mde-text "+(n||"")},_.createElement(a.Editor,{ref:function(t){return e.editorRef=t},stripPastedStyles:!0,editorState:r,onChange:this.handleOnChange,onTab:this.handleTab,handleKeyCommand:this.handleKeyCommand,readOnly:i}))},t}(_.Component);t.MdeEditor=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(0),_=r(329),a=r(330),i=r(226);t.MdeToolbar=function(e){var t=e.children,r=e.commands,o=e.onCommand,s=e.readOnly;return r&&0!==r.length||t?n.createElement("div",{className:"mde-header"},r.map(function(e,t){return n.createElement(_.MdeToolbarButtonGroup,{key:t},e.map(function(e,t){return e.children?n.createElement(a.MdeToolbarDropdown,{key:t,buttonProps:e.buttonProps,buttonContent:e.buttonContent,commands:e.children,onCommand:function(e){return o(e)},readOnly:s}):n.createElement(i.MdeToolbarButton,{key:t,buttonContent:e.buttonContent,buttonProps:e.buttonProps,onClick:function(){return o(e)},readOnly:s})}))}),n.createElement("div",{className:"mde-toolbar-children"},t)):null}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(0),_=r(60),a=r(54),i=r(48);t.codeCommand={buttonContent:n.createElement(i.MdeToolbarIcon,{icon:"code"}),buttonProps:{"aria-label":"Insert code"},execute:function(e){var t,r=a.getMarkdownStateFromDraftState(e),n=r.text,i=r.selection;if(i=_.selectWordIfCaretIsInsideOne({text:n,selection:i}),-1===n.slice(i.start,i.end).indexOf("\n")){var o=_.insertBeforeAndAfter({text:n,selection:i},"`");return a.buildNewDraftState(e,o)}return n=(t=_.insertBreaksBeforeSoThatThereIsAnEmptyLineBefore({text:n,selection:i})).newText,i=t.newSelection,n=(t=_.insertBefore(n,"```\n",i,!1)).newText,i=t.newSelection,n=(t=_.insertAfter(n,"\n```",i)).newText,i=t.newSelection,n=(t=_.insertBreaksAfterSoThatThereIsAnEmptyLineAfter({text:n,selection:i})).newText,i=t.newSelection,a.buildNewDraftState(e,{text:n,selection:i})}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(0),_=r(60),a=r(54),i=r(48);function o(e,t){var r=a.getMarkdownStateFromDraftState(e);return r=_.makeHeader(r,t),a.buildNewDraftState(e,r)}t.headerCommand={buttonContent:n.createElement(i.MdeToolbarIcon,{icon:"heading"}),buttonProps:{"aria-label":"Add header"},children:[{buttonContent:n.createElement("p",{className:"header-1"},"Header 1"),execute:function(e){return o(e,"# ")}},{buttonContent:n.createElement("p",{className:"header-2"},"Header 2"),execute:function(e){return o(e,"## ")}},{buttonContent:n.createElement("p",{className:"header-3"},"Header 3"),execute:function(e){return o(e,"### ")}},{buttonContent:n.createElement("p",{className:"header-4"},"Header 4"),execute:function(e){return o(e,"#### ")}}]}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(0),_=r(60),a=r(54),i=r(48);t.imageCommand={buttonContent:n.createElement(i.MdeToolbarIcon,{icon:"image"}),buttonProps:{"aria-label":"Insert a picture"},execute:function(e){var t=a.getMarkdownStateFromDraftState(e),r=t.text,n=t.selection,i=_.insertText(r,"![",n.start),o=i.newText,s=i.insertionLength,l=_.insertText(o,"](image-url)",n.end+s).newText;return a.buildNewDraftState(e,{text:l,selection:{start:n.start+s,end:n.end+s}})}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(0),_=r(60),a=r(54),i=r(48);t.italicCommand={buttonContent:n.createElement(i.MdeToolbarIcon,{icon:"italic"}),buttonProps:{"aria-label":"Add italic text"},execute:function(e){var t=a.getMarkdownStateFromDraftState(e);return t=_.insertBeforeAndAfter(t,"_"),a.buildNewDraftState(e,t)}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(0),_=r(60),a=r(54),i=r(48);t.strikethroughCommand={buttonContent:n.createElement(i.MdeToolbarIcon,{icon:"strikethrough"}),buttonProps:{"aria-label":"Add strikethrough text"},execute:function(e){var t=a.getMarkdownStateFromDraftState(e);return t=_.insertBeforeAndAfter(t,"~~"),a.buildNewDraftState(e,t)}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(0),_=r(60),a=r(54),i=r(48);t.linkCommand={buttonContent:n.createElement(i.MdeToolbarIcon,{icon:"link"}),buttonProps:{"aria-label":"Insert a link"},execute:function(e){var t=a.getMarkdownStateFromDraftState(e),r=t.text,n=t.selection,i=_.selectWordIfCaretIsInsideOne({text:r,selection:n}),o=_.insertText(r,"[",i.start),s=o.newText,l=o.insertionLength,u=_.insertText(s,"](url)",i.end+l).newText;return a.buildNewDraftState(e,{text:u,selection:{start:i.start+l,end:i.end+l}})}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(0),_=r(60),a=r(54),i=r(48);t.orderedListCommand={buttonContent:n.createElement(i.MdeToolbarIcon,{icon:"list-ol"}),buttonProps:{"aria-label":"Insert numbered list"},execute:function(e){var t=a.getMarkdownStateFromDraftState(e);return t=_.makeList(t,function(e,t){return t+1+". "}),a.buildNewDraftState(e,t)}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(0),_=r(60),a=r(54),i=r(48);t.quoteCommand={buttonContent:n.createElement(i.MdeToolbarIcon,{icon:"quote-right"}),buttonProps:{"aria-label":"Insert a quote"},execute:function(e){var t,r=a.getMarkdownStateFromDraftState(e),n=r.text,i=r.selection;return i=_.selectWordIfCaretIsInsideOne({text:n,selection:i}),n=(t=_.insertBreaksBeforeSoThatThereIsAnEmptyLineBefore({text:n,selection:i})).newText,i=t.newSelection,n=(t=_.insertBefore(n,"> ",i,!1)).newText,i=t.newSelection,n=(t=_.insertBreaksAfterSoThatThereIsAnEmptyLineAfter({text:n,selection:i})).newText,i=t.newSelection,a.buildNewDraftState(e,{text:n,selection:i})}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(0),_=r(60),a=r(54),i=r(48);t.unorderedListCommand={buttonContent:n.createElement(i.MdeToolbarIcon,{icon:"list-ul"}),buttonProps:{"aria-label":"Insert a bulleted list"},execute:function(e){var t=a.getMarkdownStateFromDraftState(e);return t=_.makeList(t,"- "),a.buildNewDraftState(e,t)}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(0),_=r(60),a=r(54),i=r(48);t.checkListCommand={buttonContent:n.createElement(i.MdeToolbarIcon,{icon:"tasks"}),buttonProps:{"aria-label":"Insert checklist"},execute:function(e){var t=a.getMarkdownStateFromDraftState(e);return t=_.makeList(t,"- [ ] "),a.buildNewDraftState(e,t)}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(60),_=r(54);t.tabCommand={buttonContent:null,buttonProps:null,execute:function(e,t){var r=_.getMarkdownStateFromDraftState(e);return r=n.onTab(r,t),_.buildNewDraftState(e,r)}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),_=this&&this.__assign||Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&_[_.length-1])&&(6===a[0]||2===a[0])){i=0;continue}if(3===a[0]&&(!_||a[1]>_[0]&&a[1]<_[3])){i.label=a[1];break}if(6===a[0]&&i.label<_[1]){i.label=_[1],_=a;break}if(_&&i.label<_[2]){i.label=_[2],i.ops.push(a);break}_[2]&&i.ops.pop(),i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e],n=0}finally{r=_=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,o])}}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(0),o=r(211),s=r(717),l=r(212),u=r(54),c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handleOnChange=function(e){var r=e.markdown,n=e.html,_=e.draftEditorState;(0,t.props.onChange)({markdown:r,html:n,draftEditorState:_})},t.handleDraftStateChange=function(e){var r=t.props.generateMarkdownPreview;u.getMdeStateFromDraftState(e,r).then(function(r){t.handleOnChange({html:r.html,markdown:r.markdown,draftEditorState:e})})},t.onCommand=function(e){var r=t.props.editorState.draftEditorState;t.handleDraftStateChange(e.execute(r))},t}return n(t,e),t.prototype.componentDidMount=function(){return _(this,void 0,void 0,function(){var e,t,r,n,_;return a(this,function(a){switch(a.label){case 0:return e=this.props,t=e.editorState,r=e.generateMarkdownPreview,!t||t.draftEditorState?[2]:!(n={html:t.html,markdown:t.markdown,draftEditorState:l.EditorState.createWithContent(l.ContentState.createFromText(t.markdown))}).markdown||n.html||null==r?[3,2]:(_=n,[4,r(n.markdown)]);case 1:_.html=a.sent(),a.label=2;case 2:return this.handleOnChange(n),[2]}})})},t.prototype.render=function(){var e=s.layoutMap[this.props.layout],t=this.props,r=t.commands,n=t.layoutOptions,_=t.className,a=t.emptyPreviewHtml,o=t.readOnly,u=this.props.editorState;return u&&u.draftEditorState||(u={html:"",markdown:"",draftEditorState:l.EditorState.createEmpty()}),i.createElement("div",{className:"react-mde "+(_||"")},i.createElement(e,{onChange:this.handleDraftStateChange,onCommand:this.onCommand,commands:r,layoutOptions:n,mdeEditorState:u,emptyPreviewHtml:a,readOnly:o}))},t.defaultProps={commands:o.getDefaultCommands(),layout:"vertical",emptyPreviewHtml:"

 

",readOnly:!1},t}(i.Component);t.ReactMde=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(331),_=function(){return function(){this.vertical=n.VerticalLayout,this.noPreview=n.NoPreviewLayout,this.horizontal=n.HorizontalLayout,this.tabbed=n.TabbedLayout}}();t.LayoutMap=_;var a=new _;t.layoutMap=a},function(e,t,r){"use strict";var n=r(44),_=r(124),a=r(106),i=r(51),o=[].sort,s=[1,2,3];n(n.P+n.F*(i(function(){s.sort(void 0)})||!i(function(){s.sort(null)})||!r(127)(o)),"Array",{sort:function(e){return void 0===e?o.call(a(this)):o.call(a(this),_(e))}})},function(e,t){e.exports=function(e){if(Array.isArray(e))return e}},function(e,t){e.exports=function(e,t){var r=[],n=!0,_=!1,a=void 0;try{for(var i,o=e[Symbol.iterator]();!(n=(i=o.next()).done)&&(r.push(i.value),!t||r.length!==t);n=!0);}catch(e){_=!0,a=e}finally{try{n||null==o.return||o.return()}finally{if(_)throw a}}return r}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}},function(e,t,r){"use strict";function n(e){return e&&"object"==typeof e&&"default"in e?e.default:e}var _=r(0),a=n(_),i=n(r(723)),o=n(r(724));e.exports=function(e,t,r){if("function"!=typeof e)throw new Error("Expected reducePropsToState to be a function.");if("function"!=typeof t)throw new Error("Expected handleStateChangeOnClient to be a function.");if(void 0!==r&&"function"!=typeof r)throw new Error("Expected mapStateOnServer to either be undefined or a function.");return function(n){if("function"!=typeof n)throw new Error("Expected WrappedComponent to be a React component.");var s=[],l=void 0;function u(){l=e(s.map(function(e){return e.props})),c.canUseDOM?t(l):r&&(l=r(l))}var c=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.peek=function(){return l},t.rewind=function(){if(t.canUseDOM)throw new Error("You may only call rewind() on the server. Call peek() to read the current state.");var e=l;return l=void 0,s=[],e},t.prototype.shouldComponentUpdate=function(e){return!o(e,this.props)},t.prototype.componentWillMount=function(){s.push(this),u()},t.prototype.componentDidUpdate=function(){u()},t.prototype.componentWillUnmount=function(){var e=s.indexOf(this);s.splice(e,1),u()},t.prototype.render=function(){return a.createElement(n,this.props)},t}(_.Component);return c.displayName="SideEffect("+function(e){return e.displayName||e.name||"Component"}(n)+")",c.canUseDOM=i.canUseDOM,c}}},function(e,t,r){var n; +!function(_,a){"use strict";var i="model",o="name",s="type",l="vendor",u="version",c="mobile",d="tablet",f={extend:function(e,t){var r={};for(var n in e)t[n]&&t[n].length%2==0?r[n]=t[n].concat(e[n]):r[n]=e[n];return r},has:function(e,t){return"string"==typeof e&&-1!==t.toLowerCase().indexOf(e.toLowerCase())},lowerize:function(e){return e.toLowerCase()},major:function(e){return"string"==typeof e?e.replace(/[^\d\.]/g,"").split(".")[0]:void 0},trim:function(e){return e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},p={rgx:function(e,t){for(var r,n,_,a,i,o,s=0;s0?2==a.length?"function"==typeof a[1]?this[a[0]]=a[1].call(this,o):this[a[0]]=a[1]:3==a.length?"function"!=typeof a[1]||a[1].exec&&a[1].test?this[a[0]]=o?o.replace(a[1],a[2]):void 0:this[a[0]]=o?a[1].call(this,o,a[2]):void 0:4==a.length&&(this[a[0]]=o?a[3].call(this,o.replace(a[1],a[2])):void 0):this[a]=o||void 0;s+=2}},str:function(e,t){for(var r in t)if("object"==typeof t[r]&&t[r].length>0){for(var n=0;n=|~>|~|>|)?\s*(.+)/,s=/^(\d*)(.*)/;function l(e,t){var r=e.split(a);return r.length>1?r.some(function(e){return v.contains(e,t)}):function(e,t){var r=e.split(i);if(r.length>0&&r.length<=2||n(!1),1===r.length)return u(r[0],t);var _=r[0],a=r[1];return h(_)&&h(a)||n(!1),u(">="+_,t)&&u("<="+a,t)}(e=r[0].trim(),t)}function u(e,t){if(""===(e=e.trim()))return!0;var r=t.split(_),n=f(e),a=n.modifier,i=n.rangeComponents;switch(a){case"<":return c(r,i);case"<=":return function(e,t){var r=b(e,t);return-1===r||0===r}(r,i);case">=":return d(r,i);case">":return function(e,t){return 1===b(e,t)}(r,i);case"~":case"~>":return function(e,t){var r=t.slice(),n=t.slice();n.length>1&&n.pop();var _=n.length-1,a=parseInt(n[_],10);p(a)&&(n[_]=a+1+"");return d(e,r)&&c(e,n)}(r,i);default:return function(e,t){return 0===b(e,t)}(r,i)}}function c(e,t){return-1===b(e,t)}function d(e,t){var r=b(e,t);return 1===r||0===r}function f(e){var t=e.split(_),r=t[0].match(o);return r||n(!1),{modifier:r[1],rangeComponents:[r[2]].concat(t.slice(1))}}function p(e){return!isNaN(e)&&isFinite(e)}function h(e){return!f(e).modifier}function E(e,t){for(var r=e.length;rt?1:el(t)&&n.logSelectionStateFailure({anonymizedDom:s(t),extraParams:JSON.stringify({offset:r}),selectionState:JSON.stringify(i.toJS())});var u=t===e.focusNode;try{e.extend(t,r)}catch(_){throw n.logSelectionStateFailure({anonymizedDom:s(t,function(t){var r=[];return t===o&&r.push("active element"),t===e.anchorNode&&r.push("selection anchor node"),t===e.focusNode&&r.push("selection focus node"),r}),extraParams:JSON.stringify({activeElementName:o?o.nodeName:null,nodeIsFocus:t===e.focusNode,nodeWasFocus:u,selectionRangeCount:e.rangeCount,selectionAnchorNodeName:e.anchorNode?e.anchorNode.nodeName:null,selectionAnchorOffset:e.anchorOffset,selectionFocusNodeName:e.focusNode?e.focusNode.nodeName:null,selectionFocusOffset:e.focusOffset,message:_?""+_:null,offset:r},null,2),selectionState:JSON.stringify(i.toJS(),null,2)}),_}}else{var c=e.getRangeAt(0);c.setEnd(t,r),e.addRange(c.cloneRange())}}function c(e,t,r,_){var a=document.createRange();r>l(t)&&n.logSelectionStateFailure({anonymizedDom:s(t),extraParams:JSON.stringify({offset:r}),selectionState:JSON.stringify(_.toJS())}),a.setStart(t,r),e.addRange(a)}e.exports=function(e,r,n,a,i){if(_(document.documentElement,r)){var o=t.getSelection(),s=e.getAnchorKey(),l=e.getAnchorOffset(),d=e.getFocusKey(),f=e.getFocusOffset(),p=e.getIsBackward();if(!o.extend&&p){var h=s,E=l;s=d,l=f,d=h,f=E,p=!1}var m=s===n&&a<=l&&i>=l,g=d===n&&a<=f&&i>=f;if(m&&g)return o.removeAllRanges(),c(o,r,l-a,e),void u(o,r,f-a,e);if(p){if(g&&(o.removeAllRanges(),c(o,r,f-a,e)),m){var b=o.focusNode,v=o.focusOffset;o.removeAllRanges(),c(o,r,l-a,e),u(o,b,v,e)}}else m&&(o.removeAllRanges(),c(o,r,l-a,e)),g&&u(o,r,f-a,e)}}}).call(this,r(49))},function(e,t,r){"use strict";e.exports={logSelectionStateFailure:function(){return null}}},function(e,t,r){"use strict";var n=r(639);e.exports=function(e){return n(e)&&3==e.nodeType}},function(e,t,r){"use strict";e.exports=function(e){var t=(e?e.ownerDocument||e:document).defaultView||window;return!(!e||!("function"==typeof t.Node?e instanceof t.Node:"object"==typeof e&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName))}},function(e,t,r){"use strict";var n=r(641),_=r(642);function a(e){return null==e?e:String(e)}e.exports=function(e,t){var r=void 0;if(window.getComputedStyle&&(r=window.getComputedStyle(e,null)))return a(r.getPropertyValue(_(t)));if(document.defaultView&&document.defaultView.getComputedStyle){if(r=document.defaultView.getComputedStyle(e,null))return a(r.getPropertyValue(_(t)));if("display"===t)return"none"}return e.currentStyle?a("float"===t?e.currentStyle.cssFloat||e.currentStyle.styleFloat:e.currentStyle[n(t)]):a(e.style&&e.style[n(t)])}},function(e,t,r){"use strict";var n=/-(.)/g;e.exports=function(e){return e.replace(n,function(e,t){return t.toUpperCase()})}},function(e,t,r){"use strict";var n=/([A-Z])/g;e.exports=function(e){return e.replace(n,"-$1").toLowerCase()}},function(e,t,r){"use strict";var n=r(644);e.exports=function(e){var t=n(e);return{x:t.left,y:t.top,width:t.right-t.left,height:t.bottom-t.top}}},function(e,t,r){"use strict";var n=r(220);e.exports=function(e){var t=e.ownerDocument.documentElement;if(!("getBoundingClientRect"in e&&n(t,e)))return{left:0,right:0,top:0,bottom:0};var r=e.getBoundingClientRect();return{left:Math.round(r.left)-t.clientLeft,right:Math.round(r.right)-t.clientLeft,top:Math.round(r.top)-t.clientTop,bottom:Math.round(r.bottom)-t.clientTop}}},function(e,t,r){"use strict";var n="undefined"!=typeof navigator&&navigator.userAgent.indexOf("AppleWebKit")>-1;e.exports=function(e){return(e=e||document).scrollingElement?e.scrollingElement:n||"CSS1Compat"!==e.compatMode?e.body:e.documentElement}},function(e,t,r){"use strict";e.exports=function(e){return e.Window&&e instanceof e.Window?{x:e.pageXOffset||e.document.documentElement.scrollLeft,y:e.pageYOffset||e.document.documentElement.scrollTop}:{x:e.scrollLeft,y:e.scrollTop}}},function(e,t,r){"use strict";function n(){var e=void 0;return document.documentElement&&(e=document.documentElement.clientWidth),!e&&document.body&&(e=document.body.clientWidth),e||0}function _(){var e=void 0;return document.documentElement&&(e=document.documentElement.clientHeight),!e&&document.body&&(e=document.body.clientHeight),e||0}function a(){return{width:window.innerWidth||n(),height:window.innerHeight||_()}}a.withoutScrollbars=function(){return{width:n(),height:_()}},e.exports=a},function(e,t,r){"use strict";e.exports=function(e){e||(e="");var t=void 0,r=arguments.length;if(r>1)for(var n=1;n0){if(e.props.handleDroppedFiles&&l(e.props.handleDroppedFiles(f,p)))return;o(p,function(t){t&&e.update(d(c,f,t))})}else{var h=e._internalDrag?"internal":"external";e.props.handleDrop&&l(e.props.handleDrop(f,r,h))||(e._internalDrag?e.update(function(e,t){var r=_.moveText(e.getCurrentContent(),e.getSelection(),t);return a.push(e,r,"insert-fragment")}(c,f)):e.update(d(c,f,r.getText())))}}}};function d(e,t,r){var n=_.insertText(e.getCurrentContent(),t,r,e.getCurrentInlineStyle());return a.push(e,n,"insert-fragment")}e.exports=c},function(e,t,r){"use strict";var n={isImage:function(e){return"image"===_(e)[0]},isJpeg:function(e){var t=_(e);return n.isImage(e)&&("jpeg"===t[1]||"pjpeg"===t[1])}};function _(e){return e.split("/")}e.exports=n},function(e,t,r){"use strict";var n=r(29);e.exports=function(e){return function(e){return!!e&&("object"==typeof e||"function"==typeof e)&&"length"in e&&!("setInterval"in e)&&"number"!=typeof e.nodeType&&(Array.isArray(e)||"callee"in e||"item"in e)}(e)?Array.isArray(e)?e.slice():function(e){var t=e.length;if((Array.isArray(e)||"object"!=typeof e&&"function"!=typeof e)&&n(!1),"number"!=typeof t&&n(!1),0===t||t-1 in e||n(!1),"function"==typeof e.callee&&n(!1),e.hasOwnProperty)try{return Array.prototype.slice.call(e)}catch(e){}for(var r=Array(t),_=0;_=0;f--)if(!(null!=d&&f>0&&n.isSurrogatePair(d,f-1))){if(e.setStart(u,f),!i(_(e),r))break;s=u,l=f}if(-1===f||0===u.childNodes.length)break;c=o(u=u.childNodes[f])}return e.setStart(s,l),e}},function(e,t,r){"use strict";var n=r(322),_=r(33),a=r(225),i=r(137);e.exports=function(e){var t=i(e,function(e){var t=e.getSelection(),r=t.getStartOffset();if(0===r)return a(e,1);var _=t.getStartKey(),i=e.getCurrentContent().getBlockForKey(_).getText().slice(0,r),o=n.getBackward(i);return a(e,o.length||1)},"backward");return t===e.getCurrentContent()?e:_.push(e,t,"remove-range")}},function(e,t,r){"use strict";e.exports={getPunctuation:function(){return"[.,+*?$|#{}()'\\^\\-\\[\\]\\\\\\/!@%\"~=<>_:;・、。〈-】〔-〟:-?!-/[-`{-・⸮؟٪-٬؛،؍﴾﴿᠁।၊။‐-‧‰-⁞¡-±´-¸º»¿]"}}},function(e,t,r){"use strict";var n=r(322),_=r(33),a=r(323),i=r(137);e.exports=function(e){var t=i(e,function(e){var t=e.getSelection(),r=t.getStartOffset(),_=t.getStartKey(),i=e.getCurrentContent().getBlockForKey(_).getText().slice(r),o=n.getForward(i);return a(e,o.length||1)},"forward");return t===e.getCurrentContent()?e:_.push(e,t,"remove-range")}},function(e,t,r){"use strict";var n=r(55),_=r(33);e.exports=function(e){var t=n.splitBlock(e.getCurrentContent(),e.getSelection());return _.push(e,t,"split-block")}},function(e,t,r){"use strict";var n=r(33);e.exports=function(e){var t=e.getSelection(),r=t.getEndKey(),_=e.getCurrentContent().getBlockForKey(r).getLength();return n.set(e,{selection:t.merge({anchorKey:r,anchorOffset:_,focusKey:r,focusOffset:_,isBackward:!1}),forceSelection:!0})}},function(e,t,r){"use strict";var n=r(33);e.exports=function(e){var t=e.getSelection(),r=t.getStartKey();return n.set(e,{selection:t.merge({anchorKey:r,anchorOffset:0,focusKey:r,focusOffset:0,isBackward:!1}),forceSelection:!0})}},function(e,t,r){"use strict";var n=r(33),_=r(100),a=r(225),i=r(137);e.exports=function(e){var t=i(e,function(e){var t=e.getSelection(),r=e.getCurrentContent(),n=t.getAnchorKey(),i=t.getAnchorOffset(),o=r.getBlockForKey(n).getText()[i-1];return a(e,o?_.getUTF16Length(o,0):1)},"backward");if(t===e.getCurrentContent())return e;var r=e.getSelection();return n.push(e,t.set("selectionBefore",r),r.isCollapsed()?"backspace-character":"remove-range")}},function(e,t,r){"use strict";var n=r(33),_=r(100),a=r(323),i=r(137);e.exports=function(e){var t=i(e,function(e){var t=e.getSelection(),r=e.getCurrentContent(),n=t.getAnchorKey(),i=t.getAnchorOffset(),o=r.getBlockForKey(n).getText()[i];return a(e,o?_.getUTF16Length(o,0):1)},"forward");if(t===e.getCurrentContent())return e;var r=e.getSelection();return n.push(e,t.set("selectionBefore",r),r.isCollapsed()?"delete-character":"remove-range")}},function(e,t,r){"use strict";var n=r(55),_=r(33),a=r(167);e.exports=function(e){var t=e.getSelection();if(!t.isCollapsed())return e;var r=t.getAnchorOffset();if(0===r)return e;var i,o,s=t.getAnchorKey(),l=e.getCurrentContent(),u=l.getBlockForKey(s).getLength();if(u<=1)return e;r===u?(i=t.set("anchorOffset",r-1),o=t):o=(i=t.set("focusOffset",r+1)).set("anchorOffset",r+1);var c=a(l,i),d=n.removeRange(l,i,"backward"),f=d.getSelectionAfter(),p=f.getAnchorOffset()-1,h=f.merge({anchorOffset:p,focusOffset:p}),E=n.replaceWithFragment(d,h,c),m=_.push(e,E,"insert-fragment");return _.acceptSelection(m,o)}},function(e,t,r){"use strict";var n=r(33);e.exports=function(e,t,r){var _=n.undo(t);if("spellcheck-change"!==t.getLastChangeType())e.preventDefault(),t.getNativelyRenderedContent()?(r(n.set(t,{nativelyRenderedContent:null})),setTimeout(function(){r(_)},0)):r(_);else{var a=_.getCurrentContent();r(n.set(_,{nativelyRenderedContent:a}))}}},function(e,t,r){"use strict";var n=r(134),_=r(61),a=r(315),i=r(55),o=r(679),s=r(33),l=r(326),u=r(219),c=r(317),d=r(136),f=r(682);function p(e,t,r){var n=i.replaceWithFragment(e.getCurrentContent(),e.getSelection(),t);return s.push(e,n.set("entityMap",r),"insert-fragment")}e.exports=function(e,t){t.preventDefault();var r=new a(t.clipboardData);if(!r.isRichText()){var h=r.getFiles(),E=r.getText();if(h.length>0){if(e.props.handlePastedFiles&&d(e.props.handlePastedFiles(h)))return;return void c(h,function(t){if(t=t||E){var r=e._latestEditorState,a=f(t),c=_.create({style:r.getCurrentInlineStyle(),entity:u(r.getCurrentContent(),r.getSelection())}),d=l.getCurrentBlockType(r),p=o.processText(a,c,d),h=n.createFromArray(p),m=i.replaceWithFragment(r.getCurrentContent(),r.getSelection(),h);e.update(s.push(r,m,"insert-fragment"))}})}}var m=[],g=r.getText(),b=r.getHTML(),v=e._latestEditorState;if(!e.props.handlePastedText||!d(e.props.handlePastedText(g,b,v))){if(g&&(m=f(g)),!e.props.stripPastedStyles){var O=e.getClipboard();if(r.isRichText()&&O){if(-1!==b.indexOf(e.getEditorKey())||1===m.length&&1===O.size&&O.first().getText()===g)return void e.update(p(e._latestEditorState,O))}else if(O&&r.types.includes("com.apple.webarchive")&&!r.types.includes("text/html")&&function(e,t){return e.length===t.size&&t.valueSeq().every(function(t,r){return t.getText()===e[r]})}(m,O))return void e.update(p(e._latestEditorState,O));if(b){var M=o.processHTML(b,e.props.blockRenderMap);if(M){var C=M.contentBlocks,P=M.entityMap;if(C){var D=n.createFromArray(C);return void e.update(p(e._latestEditorState,D,P))}}}e.setClipboard(null)}if(m.length){var y=_.create({style:v.getCurrentInlineStyle(),entity:u(v.getCurrentContent(),v.getSelection())}),w=l.getCurrentBlockType(v),T=o.processText(m,y,w),A=n.createFromArray(T);e.update(p(e._latestEditorState,A))}}}},function(e,t,r){"use strict";var n=r(35)||function(e){for(var t=1;t0;){var u=l.pop(),c=u.parentRef,d=c.getChildKeys(),f=d.indexOf(u.key),p=Array.isArray(u.children);if(!p){p||E(!1);break}var h=u.children.map(C),m=new a(n({},O(u,t),{parent:c.getKey(),children:g(h.map(function(e){return e.key})),prevSibling:0===f?null:d.get(f-1),nextSibling:f===d.size-1?null:d.get(f+1)}));r=r.set(m.getKey(),m),l=P(l,h,m)}return r},v())}(i,t):function(e,t){return v(e.map(function(e){var r=new _(O(e,t));return[r.getKey(),r]}))}(r?l.fromRawTreeStateToRawState(e).blocks:i,t)};e.exports=function(e){Array.isArray(e.blocks)||E(!1);var t=function(e){var t=e.entityMap,r={};return Object.keys(t).forEach(function(e){var n=t[e],_=n.type,a=n.mutability,i=n.data;r[e]=o.__create(_,a,i||{})}),r}(e),r=D(e,t),n=r.isEmpty()?new c:c.createEmpty(r.first().getKey());return new i({blockMap:r,entityMap:t,selectionBefore:n,selectionAfter:n})}},function(e,t,r){"use strict";var n=r(35)||function(e){for(var t=1;t0){var l=t[o-1];return l||_(!1),void l.children.push(s)}r.push(s)}),n({},e,{blocks:r})}};e.exports=i},function(e,t,r){"use strict";var n=r(61),_=r(30).List;e.exports=function(e,t){var r=e.map(function(e,r){var _=t[r];return n.create({style:e,entity:_})});return _(r)}},function(e,t,r){"use strict";var n=r(100).substr;e.exports=function(e,t){var r=Array(e.length).fill(null);return t&&t.forEach(function(t){for(var _=n(e,0,t.offset).length,a=_+n(e,t.offset,t.length).length,i=_;i1&&0===t[0].width){var o=t[1];r=o.top,_=o.right,a=o.bottom,i=o.left}else{var s=t[0];r=s.top,_=s.right,a=s.bottom,i=s.left}for(var l=1;l 

"},ref:function(t){return e.previewRef=t}}))},t}(_.Component);t.MdePreview=a},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:!0});var _=r(0),a=r(212),i=r(211),o=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handleOnChange=function(e){(0,t.props.onChange)(e)},t.handleKeyCommand=function(e,r){var n=t.props.onChange;switch(e){case"bold":return n(i.boldCommand.execute(r)),"handled";case"italic":return n(i.italicCommand.execute(r)),"handled";case"code":return n(i.codeCommand.execute(r)),"handled";default:return"not-handled"}},t.handleTab=function(e){e.preventDefault();var r=t.props,n=r.editorState.draftEditorState;(0,r.onChange)(i.tabCommand.execute(n,e.shiftKey))},t}return n(t,e),t.prototype.render=function(){var e=this,t=this.props,r=t.editorState.draftEditorState,n=t.className,i=t.readOnly;return _.createElement("div",{className:"mde-text "+(n||"")},_.createElement(a.Editor,{ref:function(t){return e.editorRef=t},stripPastedStyles:!0,editorState:r,onChange:this.handleOnChange,onTab:this.handleTab,handleKeyCommand:this.handleKeyCommand,readOnly:i}))},t}(_.Component);t.MdeEditor=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(0),_=r(329),a=r(330),i=r(226);t.MdeToolbar=function(e){var t=e.children,r=e.commands,o=e.onCommand,s=e.readOnly;return r&&0!==r.length||t?n.createElement("div",{className:"mde-header"},r.map(function(e,t){return n.createElement(_.MdeToolbarButtonGroup,{key:t},e.map(function(e,t){return e.children?n.createElement(a.MdeToolbarDropdown,{key:t,buttonProps:e.buttonProps,buttonContent:e.buttonContent,commands:e.children,onCommand:function(e){return o(e)},readOnly:s}):n.createElement(i.MdeToolbarButton,{key:t,buttonContent:e.buttonContent,buttonProps:e.buttonProps,onClick:function(){return o(e)},readOnly:s})}))}),n.createElement("div",{className:"mde-toolbar-children"},t)):null}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(0),_=r(60),a=r(54),i=r(48);t.codeCommand={buttonContent:n.createElement(i.MdeToolbarIcon,{icon:"code"}),buttonProps:{"aria-label":"Insert code"},execute:function(e){var t,r=a.getMarkdownStateFromDraftState(e),n=r.text,i=r.selection;if(i=_.selectWordIfCaretIsInsideOne({text:n,selection:i}),-1===n.slice(i.start,i.end).indexOf("\n")){var o=_.insertBeforeAndAfter({text:n,selection:i},"`");return a.buildNewDraftState(e,o)}return n=(t=_.insertBreaksBeforeSoThatThereIsAnEmptyLineBefore({text:n,selection:i})).newText,i=t.newSelection,n=(t=_.insertBefore(n,"```\n",i,!1)).newText,i=t.newSelection,n=(t=_.insertAfter(n,"\n```",i)).newText,i=t.newSelection,n=(t=_.insertBreaksAfterSoThatThereIsAnEmptyLineAfter({text:n,selection:i})).newText,i=t.newSelection,a.buildNewDraftState(e,{text:n,selection:i})}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(0),_=r(60),a=r(54),i=r(48);function o(e,t){var r=a.getMarkdownStateFromDraftState(e);return r=_.makeHeader(r,t),a.buildNewDraftState(e,r)}t.headerCommand={buttonContent:n.createElement(i.MdeToolbarIcon,{icon:"heading"}),buttonProps:{"aria-label":"Add header"},children:[{buttonContent:n.createElement("p",{className:"header-1"},"Header 1"),execute:function(e){return o(e,"# ")}},{buttonContent:n.createElement("p",{className:"header-2"},"Header 2"),execute:function(e){return o(e,"## ")}},{buttonContent:n.createElement("p",{className:"header-3"},"Header 3"),execute:function(e){return o(e,"### ")}},{buttonContent:n.createElement("p",{className:"header-4"},"Header 4"),execute:function(e){return o(e,"#### ")}}]}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(0),_=r(60),a=r(54),i=r(48);t.imageCommand={buttonContent:n.createElement(i.MdeToolbarIcon,{icon:"image"}),buttonProps:{"aria-label":"Insert a picture"},execute:function(e){var t=a.getMarkdownStateFromDraftState(e),r=t.text,n=t.selection,i=_.insertText(r,"![",n.start),o=i.newText,s=i.insertionLength,l=_.insertText(o,"](image-url)",n.end+s).newText;return a.buildNewDraftState(e,{text:l,selection:{start:n.start+s,end:n.end+s}})}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(0),_=r(60),a=r(54),i=r(48);t.italicCommand={buttonContent:n.createElement(i.MdeToolbarIcon,{icon:"italic"}),buttonProps:{"aria-label":"Add italic text"},execute:function(e){var t=a.getMarkdownStateFromDraftState(e);return t=_.insertBeforeAndAfter(t,"_"),a.buildNewDraftState(e,t)}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(0),_=r(60),a=r(54),i=r(48);t.strikethroughCommand={buttonContent:n.createElement(i.MdeToolbarIcon,{icon:"strikethrough"}),buttonProps:{"aria-label":"Add strikethrough text"},execute:function(e){var t=a.getMarkdownStateFromDraftState(e);return t=_.insertBeforeAndAfter(t,"~~"),a.buildNewDraftState(e,t)}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(0),_=r(60),a=r(54),i=r(48);t.linkCommand={buttonContent:n.createElement(i.MdeToolbarIcon,{icon:"link"}),buttonProps:{"aria-label":"Insert a link"},execute:function(e){var t=a.getMarkdownStateFromDraftState(e),r=t.text,n=t.selection,i=_.selectWordIfCaretIsInsideOne({text:r,selection:n}),o=_.insertText(r,"[",i.start),s=o.newText,l=o.insertionLength,u=_.insertText(s,"](url)",i.end+l).newText;return a.buildNewDraftState(e,{text:u,selection:{start:i.start+l,end:i.end+l}})}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(0),_=r(60),a=r(54),i=r(48);t.orderedListCommand={buttonContent:n.createElement(i.MdeToolbarIcon,{icon:"list-ol"}),buttonProps:{"aria-label":"Insert numbered list"},execute:function(e){var t=a.getMarkdownStateFromDraftState(e);return t=_.makeList(t,function(e,t){return t+1+". "}),a.buildNewDraftState(e,t)}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(0),_=r(60),a=r(54),i=r(48);t.quoteCommand={buttonContent:n.createElement(i.MdeToolbarIcon,{icon:"quote-right"}),buttonProps:{"aria-label":"Insert a quote"},execute:function(e){var t,r=a.getMarkdownStateFromDraftState(e),n=r.text,i=r.selection;return i=_.selectWordIfCaretIsInsideOne({text:n,selection:i}),n=(t=_.insertBreaksBeforeSoThatThereIsAnEmptyLineBefore({text:n,selection:i})).newText,i=t.newSelection,n=(t=_.insertBefore(n,"> ",i,!1)).newText,i=t.newSelection,n=(t=_.insertBreaksAfterSoThatThereIsAnEmptyLineAfter({text:n,selection:i})).newText,i=t.newSelection,a.buildNewDraftState(e,{text:n,selection:i})}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(0),_=r(60),a=r(54),i=r(48);t.unorderedListCommand={buttonContent:n.createElement(i.MdeToolbarIcon,{icon:"list-ul"}),buttonProps:{"aria-label":"Insert a bulleted list"},execute:function(e){var t=a.getMarkdownStateFromDraftState(e);return t=_.makeList(t,"- "),a.buildNewDraftState(e,t)}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(0),_=r(60),a=r(54),i=r(48);t.checkListCommand={buttonContent:n.createElement(i.MdeToolbarIcon,{icon:"tasks"}),buttonProps:{"aria-label":"Insert checklist"},execute:function(e){var t=a.getMarkdownStateFromDraftState(e);return t=_.makeList(t,"- [ ] "),a.buildNewDraftState(e,t)}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(60),_=r(54);t.tabCommand={buttonContent:null,buttonProps:null,execute:function(e,t){var r=_.getMarkdownStateFromDraftState(e);return r=n.onTab(r,t),_.buildNewDraftState(e,r)}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),_=this&&this.__assign||Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&_[_.length-1])&&(6===a[0]||2===a[0])){i=0;continue}if(3===a[0]&&(!_||a[1]>_[0]&&a[1]<_[3])){i.label=a[1];break}if(6===a[0]&&i.label<_[1]){i.label=_[1],_=a;break}if(_&&i.label<_[2]){i.label=_[2],i.ops.push(a);break}_[2]&&i.ops.pop(),i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e],n=0}finally{r=_=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,o])}}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(0),o=r(211),s=r(717),l=r(212),u=r(54),c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handleOnChange=function(e){var r=e.markdown,n=e.html,_=e.draftEditorState;(0,t.props.onChange)({markdown:r,html:n,draftEditorState:_})},t.handleDraftStateChange=function(e){var r=t.props.generateMarkdownPreview;u.getMdeStateFromDraftState(e,r).then(function(r){t.handleOnChange({html:r.html,markdown:r.markdown,draftEditorState:e})})},t.onCommand=function(e){var r=t.props.editorState.draftEditorState;t.handleDraftStateChange(e.execute(r))},t}return n(t,e),t.prototype.componentDidMount=function(){return _(this,void 0,void 0,function(){var e,t,r,n,_;return a(this,function(a){switch(a.label){case 0:return e=this.props,t=e.editorState,r=e.generateMarkdownPreview,!t||t.draftEditorState?[2]:!(n={html:t.html,markdown:t.markdown,draftEditorState:l.EditorState.createWithContent(l.ContentState.createFromText(t.markdown))}).markdown||n.html||null==r?[3,2]:(_=n,[4,r(n.markdown)]);case 1:_.html=a.sent(),a.label=2;case 2:return this.handleOnChange(n),[2]}})})},t.prototype.render=function(){var e=s.layoutMap[this.props.layout],t=this.props,r=t.commands,n=t.layoutOptions,_=t.className,a=t.emptyPreviewHtml,o=t.readOnly,u=this.props.editorState;return u&&u.draftEditorState||(u={html:"",markdown:"",draftEditorState:l.EditorState.createEmpty()}),i.createElement("div",{className:"react-mde "+(_||"")},i.createElement(e,{onChange:this.handleDraftStateChange,onCommand:this.onCommand,commands:r,layoutOptions:n,mdeEditorState:u,emptyPreviewHtml:a,readOnly:o}))},t.defaultProps={commands:o.getDefaultCommands(),layout:"vertical",emptyPreviewHtml:"

 

",readOnly:!1},t}(i.Component);t.ReactMde=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(331),_=function(){return function(){this.vertical=n.VerticalLayout,this.noPreview=n.NoPreviewLayout,this.horizontal=n.HorizontalLayout,this.tabbed=n.TabbedLayout}}();t.LayoutMap=_;var a=new _;t.layoutMap=a},function(e,t,r){"use strict";var n=r(44),_=r(123),a=r(105),i=r(51),o=[].sort,s=[1,2,3];n(n.P+n.F*(i(function(){s.sort(void 0)})||!i(function(){s.sort(null)})||!r(126)(o)),"Array",{sort:function(e){return void 0===e?o.call(a(this)):o.call(a(this),_(e))}})},function(e,t){e.exports=function(e){if(Array.isArray(e))return e}},function(e,t){e.exports=function(e,t){var r=[],n=!0,_=!1,a=void 0;try{for(var i,o=e[Symbol.iterator]();!(n=(i=o.next()).done)&&(r.push(i.value),!t||r.length!==t);n=!0);}catch(e){_=!0,a=e}finally{try{n||null==o.return||o.return()}finally{if(_)throw a}}return r}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}},function(e,t,r){"use strict";function n(e){return e&&"object"==typeof e&&"default"in e?e.default:e}var _=r(0),a=n(_),i=n(r(723)),o=n(r(724));e.exports=function(e,t,r){if("function"!=typeof e)throw new Error("Expected reducePropsToState to be a function.");if("function"!=typeof t)throw new Error("Expected handleStateChangeOnClient to be a function.");if(void 0!==r&&"function"!=typeof r)throw new Error("Expected mapStateOnServer to either be undefined or a function.");return function(n){if("function"!=typeof n)throw new Error("Expected WrappedComponent to be a React component.");var s=[],l=void 0;function u(){l=e(s.map(function(e){return e.props})),c.canUseDOM?t(l):r&&(l=r(l))}var c=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.peek=function(){return l},t.rewind=function(){if(t.canUseDOM)throw new Error("You may only call rewind() on the server. Call peek() to read the current state.");var e=l;return l=void 0,s=[],e},t.prototype.shouldComponentUpdate=function(e){return!o(e,this.props)},t.prototype.componentWillMount=function(){s.push(this),u()},t.prototype.componentDidUpdate=function(){u()},t.prototype.componentWillUnmount=function(){var e=s.indexOf(this);s.splice(e,1),u()},t.prototype.render=function(){return a.createElement(n,this.props)},t}(_.Component);return c.displayName="SideEffect("+function(e){return e.displayName||e.name||"Component"}(n)+")",c.canUseDOM=i.canUseDOM,c}}},function(e,t,r){var n; /*! Copyright (c) 2015 Jed Watson. Based on code that is Copyright 2013-2015, Facebook, Inc. diff --git a/dist/main.min.css b/dist/main.min.css index 0e9b6455..c0b32dbe 100644 --- a/dist/main.min.css +++ b/dist/main.min.css @@ -670,6 +670,65 @@ template { [hidden] { display: none; } +.Header---header---1OKbu { + position: fixed; + background: #fff; + top: 0; + left: 0; + width: 100%; + min-height: 60px; + + -js-display: flex; + + display: flex; + justify-content: space-between; + align-items: center; + + box-shadow: 0px 4px 6px -2px rgba(0,0,0,0.10); +} + + .Header---header---1OKbu .Header---logo---3355v { + flex: 1 1; + max-width: 240px; + text-align: center; +} + + .Header---header---1OKbu .Header---logo---3355v img { + height: 30px; +} + + .Header---header---1OKbu .Header---logout---53m2m { + position: absolute; + right: 20px; + top: 0; + font-size: 13px; + color: #000; + line-height: 60px; + opacity: 0.7; + font-weight: 300; + cursor: pointer; + transition: opacity 0.2s ease; + will-change: opacity; + + -js-display: flex; + + display: flex; + flex-flow: row nowrap; + align-items: center; +} + + .Header---header---1OKbu .Header---logout-icon---3-Sr2 { + margin-left: 10px; +} + + .Header---header---1OKbu .Header---logout-icon---3-Sr2 svg { + opacity: 0.5; + height: 14px; +} + + .Header---header---1OKbu .Header---logout---53m2m:hover { + opacity: 1; +} .Sign---Sign---1hEJV { -js-display: flex; display: flex; @@ -765,65 +824,6 @@ template { cursor: pointer; font-size: 12px; } -.Header---header---1OKbu { - position: fixed; - background: #fff; - top: 0; - left: 0; - width: 100%; - min-height: 60px; - - -js-display: flex; - - display: flex; - justify-content: space-between; - align-items: center; - - box-shadow: 0px 4px 6px -2px rgba(0,0,0,0.10); -} - - .Header---header---1OKbu .Header---logo---3355v { - flex: 1 1; - max-width: 240px; - text-align: center; -} - - .Header---header---1OKbu .Header---logo---3355v img { - height: 30px; -} - - .Header---header---1OKbu .Header---logout---53m2m { - position: absolute; - right: 20px; - top: 0; - font-size: 13px; - color: #000; - line-height: 60px; - opacity: 0.7; - font-weight: 300; - cursor: pointer; - transition: opacity 0.2s ease; - will-change: opacity; - - -js-display: flex; - - display: flex; - flex-flow: row nowrap; - align-items: center; -} - - .Header---header---1OKbu .Header---logout-icon---3-Sr2 { - margin-left: 10px; -} - - .Header---header---1OKbu .Header---logout-icon---3-Sr2 svg { - opacity: 0.5; - height: 14px; -} - - .Header---header---1OKbu .Header---logout---53m2m:hover { - opacity: 1; -} .Sidebar---sidebar---2oRaL { margin-top: 60px; overflow-x: hidden; @@ -897,87 +897,7 @@ template { /*rtl:begin:ignore*/ /* /*rtl:end:ignore*/ -.flatpickr-months .flatpickr-prev-month:hover,.flatpickr-months .flatpickr-next-month:hover{color:#959ea9;}.flatpickr-months .flatpickr-prev-month:hover svg,.flatpickr-months .flatpickr-next-month:hover svg{fill:#f64747}.flatpickr-months .flatpickr-prev-month svg,.flatpickr-months .flatpickr-next-month svg{width:14px;height:14px;}.flatpickr-months .flatpickr-prev-month svg path,.flatpickr-months .flatpickr-next-month svg path{-webkit-transition:fill .1s;transition:fill .1s;fill:inherit}.numInputWrapper{position:relative;height:auto;}.numInputWrapper input,.numInputWrapper span{display:inline-block}.numInputWrapper input{width:100%;}.numInputWrapper input::-ms-clear{display:none}.numInputWrapper span{position:absolute;right:0;width:14px;padding:0 4px 0 2px;height:50%;line-height:50%;opacity:0;cursor:pointer;border:1px solid rgba(57,57,57,0.15);-webkit-box-sizing:border-box;box-sizing:border-box;}.numInputWrapper span:hover{background:rgba(0,0,0,0.1)}.numInputWrapper span:active{background:rgba(0,0,0,0.2)}.numInputWrapper span:after{display:block;content:"";position:absolute}.numInputWrapper span.arrowUp{top:0;border-bottom:0;}.numInputWrapper span.arrowUp:after{border-left:4px solid transparent;border-right:4px solid transparent;border-bottom:4px solid rgba(57,57,57,0.6);top:26%}.numInputWrapper span.arrowDown{top:50%;}.numInputWrapper span.arrowDown:after{border-left:4px solid transparent;border-right:4px solid transparent;border-top:4px solid rgba(57,57,57,0.6);top:40%}.numInputWrapper span svg{width:inherit;height:auto;}.numInputWrapper span svg path{fill:rgba(0,0,0,0.5)}.numInputWrapper:hover{background:rgba(0,0,0,0.05);}.numInputWrapper:hover span{opacity:1}.flatpickr-current-month{font-size:135%;line-height:inherit;font-weight:300;color:inherit;position:absolute;width:75%;left:12.5%;padding:6.16px 0 0 0;line-height:1;height:28px;display:inline-block;text-align:center;-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0);}.flatpickr-current-month span.cur-month{font-family:inherit;font-weight:700;color:inherit;display:inline-block;margin-left:.5ch;padding:0;}.flatpickr-current-month span.cur-month:hover{background:rgba(0,0,0,0.05)}.flatpickr-current-month .numInputWrapper{width:6ch;width:7ch\0;display:inline-block;}.flatpickr-current-month .numInputWrapper span.arrowUp:after{border-bottom-color:rgba(0,0,0,0.9)}.flatpickr-current-month .numInputWrapper span.arrowDown:after{border-top-color:rgba(0,0,0,0.9)}.flatpickr-current-month input.cur-year{background:transparent;-webkit-box-sizing:border-box;box-sizing:border-box;color:inherit;cursor:text;padding:0 0 0 .5ch;margin:0;display:inline-block;font-size:inherit;font-family:inherit;font-weight:300;line-height:inherit;height:auto;border:0;border-radius:0;vertical-align:initial;}.flatpickr-current-month input.cur-year:focus{outline:0}.flatpickr-current-month input.cur-year[disabled],.flatpickr-current-month input.cur-year[disabled]:hover{font-size:100%;color:rgba(0,0,0,0.5);background:transparent;pointer-events:none}.flatpickr-weekdays{background:transparent;text-align:center;overflow:hidden;width:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;-js-display:flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;height:28px;}.flatpickr-weekdays .flatpickr-weekdaycontainer{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;-js-display:flex;display:flex;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1 1}span.flatpickr-weekday{cursor:default;font-size:90%;background:transparent;color:rgba(0,0,0,0.54);line-height:1;margin:0;text-align:center;display:block;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1 1;font-weight:bolder}.dayContainer,.flatpickr-weeks{padding:1px 0 0 0}.flatpickr-days{position:relative;overflow:hidden;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;-js-display:flex;display:flex;-webkit-box-align:start;-webkit-align-items:flex-start;-ms-flex-align:start;align-items:flex-start;width:307.875px;}.flatpickr-days:focus{outline:0}.dayContainer{padding:0;outline:0;text-align:left;width:307.875px;min-width:307.875px;max-width:307.875px;-webkit-box-sizing:border-box;box-sizing:border-box;display:inline-block;display:-ms-flexbox;display:-webkit-box;display:-webkit-flex;-js-display:flex;display:flex;-webkit-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-wrap:wrap;-ms-flex-pack:justify;-webkit-justify-content:space-around;justify-content:space-around;-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0);opacity:1;}.dayContainer + .dayContainer{-webkit-box-shadow:-1px 0 0 #e6e6e6;box-shadow:-1px 0 0 #e6e6e6}.flatpickr-day{background:none;border:1px solid transparent;border-radius:150px;-webkit-box-sizing:border-box;box-sizing:border-box;color:#393939;cursor:pointer;font-weight:400;width:14.2857143%;-webkit-flex-basis:14.2857143%;-ms-flex-preferred-size:14.2857143%;flex-basis:14.2857143%;max-width:39px;height:39px;line-height:39px;margin:0;display:inline-block;position:relative;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;text-align:center;}.flatpickr-day.inRange,.flatpickr-day.prevMonthDay.inRange,.flatpickr-day.nextMonthDay.inRange,.flatpickr-day.today.inRange,.flatpickr-day.prevMonthDay.today.inRange,.flatpickr-day.nextMonthDay.today.inRange,.flatpickr-day:hover,.flatpickr-day.prevMonthDay:hover,.flatpickr-day.nextMonthDay:hover,.flatpickr-day:focus,.flatpickr-day.prevMonthDay:focus,.flatpickr-day.nextMonthDay:focus{cursor:pointer;outline:0;background:#e6e6e6;border-color:#e6e6e6}.flatpickr-day.today{border-color:#959ea9;}.flatpickr-day.today:hover,.flatpickr-day.today:focus{border-color:#959ea9;background:#959ea9;color:#fff}.flatpickr-day.selected,.flatpickr-day.startRange,.flatpickr-day.endRange,.flatpickr-day.selected.inRange,.flatpickr-day.startRange.inRange,.flatpickr-day.endRange.inRange,.flatpickr-day.selected:focus,.flatpickr-day.startRange:focus,.flatpickr-day.endRange:focus,.flatpickr-day.selected:hover,.flatpickr-day.startRange:hover,.flatpickr-day.endRange:hover,.flatpickr-day.selected.prevMonthDay,.flatpickr-day.startRange.prevMonthDay,.flatpickr-day.endRange.prevMonthDay,.flatpickr-day.selected.nextMonthDay,.flatpickr-day.startRange.nextMonthDay,.flatpickr-day.endRange.nextMonthDay{background:#569ff7;-webkit-box-shadow:none;box-shadow:none;color:#fff;border-color:#569ff7}.flatpickr-day.selected.startRange,.flatpickr-day.startRange.startRange,.flatpickr-day.endRange.startRange{border-radius:50px 0 0 50px}.flatpickr-day.selected.endRange,.flatpickr-day.startRange.endRange,.flatpickr-day.endRange.endRange{border-radius:0 50px 50px 0}.flatpickr-day.selected.startRange + .endRange:not(:nth-child(7n+1)),.flatpickr-day.startRange.startRange + .endRange:not(:nth-child(7n+1)),.flatpickr-day.endRange.startRange + .endRange:not(:nth-child(7n+1)){-webkit-box-shadow:-10px 0 0 #569ff7;box-shadow:-10px 0 0 #569ff7}.flatpickr-day.selected.startRange.endRange,.flatpickr-day.startRange.startRange.endRange,.flatpickr-day.endRange.startRange.endRange{border-radius:50px}.flatpickr-day.inRange{border-radius:0;-webkit-box-shadow:-5px 0 0 #e6e6e6,5px 0 0 #e6e6e6;box-shadow:-5px 0 0 #e6e6e6,5px 0 0 #e6e6e6}.flatpickr-day.disabled,.flatpickr-day.disabled:hover,.flatpickr-day.prevMonthDay,.flatpickr-day.nextMonthDay,.flatpickr-day.notAllowed,.flatpickr-day.notAllowed.prevMonthDay,.flatpickr-day.notAllowed.nextMonthDay{color:rgba(57,57,57,0.3);background:transparent;border-color:transparent;cursor:default}.flatpickr-day.disabled,.flatpickr-day.disabled:hover{cursor:not-allowed;color:rgba(57,57,57,0.1)}.flatpickr-day.week.selected{border-radius:0;-webkit-box-shadow:-5px 0 0 #569ff7,5px 0 0 #569ff7;box-shadow:-5px 0 0 #569ff7,5px 0 0 #569ff7}.flatpickr-day.hidden{visibility:hidden}.rangeMode .flatpickr-day{margin-top:1px}.flatpickr-weekwrapper{display:inline-block;float:left;}.flatpickr-weekwrapper .flatpickr-weeks{padding:0 12px;-webkit-box-shadow:1px 0 0 #e6e6e6;box-shadow:1px 0 0 #e6e6e6}.flatpickr-weekwrapper .flatpickr-weekday{float:none;width:100%;line-height:28px}.flatpickr-weekwrapper span.flatpickr-day,.flatpickr-weekwrapper span.flatpickr-day:hover{display:block;width:100%;max-width:none;color:rgba(57,57,57,0.3);background:transparent;cursor:default;border:none}.flatpickr-innerContainer{display:block;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;-js-display:flex;display:flex;-webkit-box-sizing:border-box;box-sizing:border-box;overflow:hidden;}.flatpickr-rContainer{display:inline-block;padding:0;-webkit-box-sizing:border-box;box-sizing:border-box}.flatpickr-time{text-align:center;outline:0;display:block;height:0;line-height:40px;max-height:40px;-webkit-box-sizing:border-box;box-sizing:border-box;overflow:hidden;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;-js-display:flex;display:flex;}.flatpickr-time:after{content:"";display:table;clear:both}.flatpickr-time .numInputWrapper{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1 1;width:40%;height:40px;float:left;}.flatpickr-time .numInputWrapper span.arrowUp:after{border-bottom-color:#393939}.flatpickr-time .numInputWrapper span.arrowDown:after{border-top-color:#393939}.flatpickr-time.hasSeconds .numInputWrapper{width:26%}.flatpickr-time.time24hr .numInputWrapper{width:49%}.flatpickr-time input{background:transparent;-webkit-box-shadow:none;box-shadow:none;border:0;border-radius:0;text-align:center;margin:0;padding:0;height:inherit;line-height:inherit;color:#393939;font-size:14px;position:relative;-webkit-box-sizing:border-box;box-sizing:border-box;}.flatpickr-time input.flatpickr-hour{font-weight:bold}.flatpickr-time input.flatpickr-minute,.flatpickr-time input.flatpickr-second{font-weight:400}.flatpickr-time input:focus{outline:0;border:0}.flatpickr-time .flatpickr-time-separator,.flatpickr-time .flatpickr-am-pm{height:inherit;display:inline-block;float:left;line-height:inherit;color:#393939;font-weight:bold;width:2%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-align-self:center;-ms-flex-item-align:center;align-self:center}.flatpickr-time .flatpickr-am-pm{outline:0;width:18%;cursor:pointer;text-align:center;font-weight:400}.flatpickr-time input:hover,.flatpickr-time .flatpickr-am-pm:hover,.flatpickr-time input:focus,.flatpickr-time .flatpickr-am-pm:focus{background:#f3f3f3}.flatpickr-input[readonly]{cursor:pointer}@-webkit-keyframes fpFadeInDown{from{opacity:0;-webkit-transform:translate3d(0,-20px,0);transform:translate3d(0,-20px,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}}@keyframes fpFadeInDown{from{opacity:0;-webkit-transform:translate3d(0,-20px,0);transform:translate3d(0,-20px,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}}.SwitchControl---SwitchControl---rT2QO .SwitchControl---checkbox---1XUYp { - vertical-align: top; - margin: 0 3px 0 0 -} - - .SwitchControl---SwitchControl---rT2QO .SwitchControl---label---2ddtD { - font-weight: 600; - font-size: 13px; - color: #666666; - letter-spacing: 0.5px; - -webkit-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none -} - - .SwitchControl---SwitchControl---rT2QO .SwitchControl---checkbox---1XUYp + .SwitchControl---label---2ddtD { - cursor: pointer -} - - .SwitchControl---SwitchControl---rT2QO .SwitchControl---checkbox---1XUYp:not(checked) { - position: absolute; - opacity: 0 -} - - .SwitchControl---SwitchControl---rT2QO .SwitchControl---checkbox---1XUYp:not(checked) + .SwitchControl---label---2ddtD { - position: relative; - padding: 0 0 0 72px -} - - .SwitchControl---SwitchControl---rT2QO .SwitchControl---checkbox---1XUYp:not(checked) + .SwitchControl---label---2ddtD:before { - content: ''; - position: absolute; - top: -5px; - left: 0px; - width: 58px; - height: 28px; - background: #CCCCCC; - box-shadow: inset 0 10px 20px 0 rgba(0,0,0,0.10); - border-radius: 25px; - transition: all .2s -} - - .SwitchControl---SwitchControl---rT2QO .SwitchControl---checkbox---1XUYp:not(checked) + .SwitchControl---label---2ddtD:after { - content: ''; - position: absolute; - top: -5px; - left: 0px; - width: 28px; - height: 28px; - border-radius: 100%; - background: #FFF; - box-shadow: 0px 0px 4px 0px rgba(0,0,0,0.50); - transition: all .2s -} - - .SwitchControl---SwitchControl---rT2QO .SwitchControl---checkbox---1XUYp:checked + .SwitchControl---label---2ddtD:before { - background-image: linear-gradient(-180deg, #0C80FF 0%, #3F9CFF 100%); - transition: background-image .2s -} - - .SwitchControl---SwitchControl---rT2QO .SwitchControl---checkbox---1XUYp:checked + .SwitchControl---label---2ddtD:after { - left: 30px -} - -.SwitchControl---disabled---3ycZR .SwitchControl---label---2ddtD { - color: #b1b1b1 -} - -.SwitchControl---disabled---3ycZR .SwitchControl---checkbox---1XUYp:not(checked) + .SwitchControl---label---2ddtD:before { - background: #e6e6e6; - box-shadow: inset 0 10px 20px 0 rgba(0, 0, 0, 0.01) -} - -.SwitchControl---disabled---3ycZR .SwitchControl---checkbox---1XUYp:not(checked) + .SwitchControl---label---2ddtD:after { - box-shadow: 0px 0px 4px 0px rgba(0, 0, 0, 0.26) -} - -.SwitchControl---disabled---3ycZR .SwitchControl---checkbox---1XUYp:checked + .SwitchControl---label---2ddtD:before { - background-image: linear-gradient(-180deg, rgb(128, 189, 255) 0%, rgb(166, 210, 255) 100%) -}.SiteLoader---loader-wrapper---3uDnF { +.flatpickr-months .flatpickr-prev-month:hover,.flatpickr-months .flatpickr-next-month:hover{color:#959ea9;}.flatpickr-months .flatpickr-prev-month:hover svg,.flatpickr-months .flatpickr-next-month:hover svg{fill:#f64747}.flatpickr-months .flatpickr-prev-month svg,.flatpickr-months .flatpickr-next-month svg{width:14px;height:14px;}.flatpickr-months .flatpickr-prev-month svg path,.flatpickr-months .flatpickr-next-month svg path{-webkit-transition:fill .1s;transition:fill .1s;fill:inherit}.numInputWrapper{position:relative;height:auto;}.numInputWrapper input,.numInputWrapper span{display:inline-block}.numInputWrapper input{width:100%;}.numInputWrapper input::-ms-clear{display:none}.numInputWrapper span{position:absolute;right:0;width:14px;padding:0 4px 0 2px;height:50%;line-height:50%;opacity:0;cursor:pointer;border:1px solid rgba(57,57,57,0.15);-webkit-box-sizing:border-box;box-sizing:border-box;}.numInputWrapper span:hover{background:rgba(0,0,0,0.1)}.numInputWrapper span:active{background:rgba(0,0,0,0.2)}.numInputWrapper span:after{display:block;content:"";position:absolute}.numInputWrapper span.arrowUp{top:0;border-bottom:0;}.numInputWrapper span.arrowUp:after{border-left:4px solid transparent;border-right:4px solid transparent;border-bottom:4px solid rgba(57,57,57,0.6);top:26%}.numInputWrapper span.arrowDown{top:50%;}.numInputWrapper span.arrowDown:after{border-left:4px solid transparent;border-right:4px solid transparent;border-top:4px solid rgba(57,57,57,0.6);top:40%}.numInputWrapper span svg{width:inherit;height:auto;}.numInputWrapper span svg path{fill:rgba(0,0,0,0.5)}.numInputWrapper:hover{background:rgba(0,0,0,0.05);}.numInputWrapper:hover span{opacity:1}.flatpickr-current-month{font-size:135%;line-height:inherit;font-weight:300;color:inherit;position:absolute;width:75%;left:12.5%;padding:6.16px 0 0 0;line-height:1;height:28px;display:inline-block;text-align:center;-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0);}.flatpickr-current-month span.cur-month{font-family:inherit;font-weight:700;color:inherit;display:inline-block;margin-left:.5ch;padding:0;}.flatpickr-current-month span.cur-month:hover{background:rgba(0,0,0,0.05)}.flatpickr-current-month .numInputWrapper{width:6ch;width:7ch\0;display:inline-block;}.flatpickr-current-month .numInputWrapper span.arrowUp:after{border-bottom-color:rgba(0,0,0,0.9)}.flatpickr-current-month .numInputWrapper span.arrowDown:after{border-top-color:rgba(0,0,0,0.9)}.flatpickr-current-month input.cur-year{background:transparent;-webkit-box-sizing:border-box;box-sizing:border-box;color:inherit;cursor:text;padding:0 0 0 .5ch;margin:0;display:inline-block;font-size:inherit;font-family:inherit;font-weight:300;line-height:inherit;height:auto;border:0;border-radius:0;vertical-align:initial;}.flatpickr-current-month input.cur-year:focus{outline:0}.flatpickr-current-month input.cur-year[disabled],.flatpickr-current-month input.cur-year[disabled]:hover{font-size:100%;color:rgba(0,0,0,0.5);background:transparent;pointer-events:none}.flatpickr-weekdays{background:transparent;text-align:center;overflow:hidden;width:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;-js-display:flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;height:28px;}.flatpickr-weekdays .flatpickr-weekdaycontainer{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;-js-display:flex;display:flex;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1 1}span.flatpickr-weekday{cursor:default;font-size:90%;background:transparent;color:rgba(0,0,0,0.54);line-height:1;margin:0;text-align:center;display:block;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1 1;font-weight:bolder}.dayContainer,.flatpickr-weeks{padding:1px 0 0 0}.flatpickr-days{position:relative;overflow:hidden;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;-js-display:flex;display:flex;-webkit-box-align:start;-webkit-align-items:flex-start;-ms-flex-align:start;align-items:flex-start;width:307.875px;}.flatpickr-days:focus{outline:0}.dayContainer{padding:0;outline:0;text-align:left;width:307.875px;min-width:307.875px;max-width:307.875px;-webkit-box-sizing:border-box;box-sizing:border-box;display:inline-block;display:-ms-flexbox;display:-webkit-box;display:-webkit-flex;-js-display:flex;display:flex;-webkit-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-wrap:wrap;-ms-flex-pack:justify;-webkit-justify-content:space-around;justify-content:space-around;-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0);opacity:1;}.dayContainer + .dayContainer{-webkit-box-shadow:-1px 0 0 #e6e6e6;box-shadow:-1px 0 0 #e6e6e6}.flatpickr-day{background:none;border:1px solid transparent;border-radius:150px;-webkit-box-sizing:border-box;box-sizing:border-box;color:#393939;cursor:pointer;font-weight:400;width:14.2857143%;-webkit-flex-basis:14.2857143%;-ms-flex-preferred-size:14.2857143%;flex-basis:14.2857143%;max-width:39px;height:39px;line-height:39px;margin:0;display:inline-block;position:relative;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;text-align:center;}.flatpickr-day.inRange,.flatpickr-day.prevMonthDay.inRange,.flatpickr-day.nextMonthDay.inRange,.flatpickr-day.today.inRange,.flatpickr-day.prevMonthDay.today.inRange,.flatpickr-day.nextMonthDay.today.inRange,.flatpickr-day:hover,.flatpickr-day.prevMonthDay:hover,.flatpickr-day.nextMonthDay:hover,.flatpickr-day:focus,.flatpickr-day.prevMonthDay:focus,.flatpickr-day.nextMonthDay:focus{cursor:pointer;outline:0;background:#e6e6e6;border-color:#e6e6e6}.flatpickr-day.today{border-color:#959ea9;}.flatpickr-day.today:hover,.flatpickr-day.today:focus{border-color:#959ea9;background:#959ea9;color:#fff}.flatpickr-day.selected,.flatpickr-day.startRange,.flatpickr-day.endRange,.flatpickr-day.selected.inRange,.flatpickr-day.startRange.inRange,.flatpickr-day.endRange.inRange,.flatpickr-day.selected:focus,.flatpickr-day.startRange:focus,.flatpickr-day.endRange:focus,.flatpickr-day.selected:hover,.flatpickr-day.startRange:hover,.flatpickr-day.endRange:hover,.flatpickr-day.selected.prevMonthDay,.flatpickr-day.startRange.prevMonthDay,.flatpickr-day.endRange.prevMonthDay,.flatpickr-day.selected.nextMonthDay,.flatpickr-day.startRange.nextMonthDay,.flatpickr-day.endRange.nextMonthDay{background:#569ff7;-webkit-box-shadow:none;box-shadow:none;color:#fff;border-color:#569ff7}.flatpickr-day.selected.startRange,.flatpickr-day.startRange.startRange,.flatpickr-day.endRange.startRange{border-radius:50px 0 0 50px}.flatpickr-day.selected.endRange,.flatpickr-day.startRange.endRange,.flatpickr-day.endRange.endRange{border-radius:0 50px 50px 0}.flatpickr-day.selected.startRange + .endRange:not(:nth-child(7n+1)),.flatpickr-day.startRange.startRange + .endRange:not(:nth-child(7n+1)),.flatpickr-day.endRange.startRange + .endRange:not(:nth-child(7n+1)){-webkit-box-shadow:-10px 0 0 #569ff7;box-shadow:-10px 0 0 #569ff7}.flatpickr-day.selected.startRange.endRange,.flatpickr-day.startRange.startRange.endRange,.flatpickr-day.endRange.startRange.endRange{border-radius:50px}.flatpickr-day.inRange{border-radius:0;-webkit-box-shadow:-5px 0 0 #e6e6e6,5px 0 0 #e6e6e6;box-shadow:-5px 0 0 #e6e6e6,5px 0 0 #e6e6e6}.flatpickr-day.disabled,.flatpickr-day.disabled:hover,.flatpickr-day.prevMonthDay,.flatpickr-day.nextMonthDay,.flatpickr-day.notAllowed,.flatpickr-day.notAllowed.prevMonthDay,.flatpickr-day.notAllowed.nextMonthDay{color:rgba(57,57,57,0.3);background:transparent;border-color:transparent;cursor:default}.flatpickr-day.disabled,.flatpickr-day.disabled:hover{cursor:not-allowed;color:rgba(57,57,57,0.1)}.flatpickr-day.week.selected{border-radius:0;-webkit-box-shadow:-5px 0 0 #569ff7,5px 0 0 #569ff7;box-shadow:-5px 0 0 #569ff7,5px 0 0 #569ff7}.flatpickr-day.hidden{visibility:hidden}.rangeMode .flatpickr-day{margin-top:1px}.flatpickr-weekwrapper{display:inline-block;float:left;}.flatpickr-weekwrapper .flatpickr-weeks{padding:0 12px;-webkit-box-shadow:1px 0 0 #e6e6e6;box-shadow:1px 0 0 #e6e6e6}.flatpickr-weekwrapper .flatpickr-weekday{float:none;width:100%;line-height:28px}.flatpickr-weekwrapper span.flatpickr-day,.flatpickr-weekwrapper span.flatpickr-day:hover{display:block;width:100%;max-width:none;color:rgba(57,57,57,0.3);background:transparent;cursor:default;border:none}.flatpickr-innerContainer{display:block;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;-js-display:flex;display:flex;-webkit-box-sizing:border-box;box-sizing:border-box;overflow:hidden;}.flatpickr-rContainer{display:inline-block;padding:0;-webkit-box-sizing:border-box;box-sizing:border-box}.flatpickr-time{text-align:center;outline:0;display:block;height:0;line-height:40px;max-height:40px;-webkit-box-sizing:border-box;box-sizing:border-box;overflow:hidden;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;-js-display:flex;display:flex;}.flatpickr-time:after{content:"";display:table;clear:both}.flatpickr-time .numInputWrapper{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1 1;width:40%;height:40px;float:left;}.flatpickr-time .numInputWrapper span.arrowUp:after{border-bottom-color:#393939}.flatpickr-time .numInputWrapper span.arrowDown:after{border-top-color:#393939}.flatpickr-time.hasSeconds .numInputWrapper{width:26%}.flatpickr-time.time24hr .numInputWrapper{width:49%}.flatpickr-time input{background:transparent;-webkit-box-shadow:none;box-shadow:none;border:0;border-radius:0;text-align:center;margin:0;padding:0;height:inherit;line-height:inherit;color:#393939;font-size:14px;position:relative;-webkit-box-sizing:border-box;box-sizing:border-box;}.flatpickr-time input.flatpickr-hour{font-weight:bold}.flatpickr-time input.flatpickr-minute,.flatpickr-time input.flatpickr-second{font-weight:400}.flatpickr-time input:focus{outline:0;border:0}.flatpickr-time .flatpickr-time-separator,.flatpickr-time .flatpickr-am-pm{height:inherit;display:inline-block;float:left;line-height:inherit;color:#393939;font-weight:bold;width:2%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-align-self:center;-ms-flex-item-align:center;align-self:center}.flatpickr-time .flatpickr-am-pm{outline:0;width:18%;cursor:pointer;text-align:center;font-weight:400}.flatpickr-time input:hover,.flatpickr-time .flatpickr-am-pm:hover,.flatpickr-time input:focus,.flatpickr-time .flatpickr-am-pm:focus{background:#f3f3f3}.flatpickr-input[readonly]{cursor:pointer}@-webkit-keyframes fpFadeInDown{from{opacity:0;-webkit-transform:translate3d(0,-20px,0);transform:translate3d(0,-20px,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}}@keyframes fpFadeInDown{from{opacity:0;-webkit-transform:translate3d(0,-20px,0);transform:translate3d(0,-20px,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}}.SiteLoader---loader-wrapper---3uDnF { position: absolute; top: 0; left: 0; @@ -1131,7 +1051,87 @@ template { height: 0% } } -.CheckboxControl---CheckboxControl---kLRku { +.SwitchControl---SwitchControl---rT2QO .SwitchControl---checkbox---1XUYp { + vertical-align: top; + margin: 0 3px 0 0 +} + + .SwitchControl---SwitchControl---rT2QO .SwitchControl---label---2ddtD { + font-weight: 600; + font-size: 13px; + color: #666666; + letter-spacing: 0.5px; + -webkit-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + user-select: none +} + + .SwitchControl---SwitchControl---rT2QO .SwitchControl---checkbox---1XUYp + .SwitchControl---label---2ddtD { + cursor: pointer +} + + .SwitchControl---SwitchControl---rT2QO .SwitchControl---checkbox---1XUYp:not(checked) { + position: absolute; + opacity: 0 +} + + .SwitchControl---SwitchControl---rT2QO .SwitchControl---checkbox---1XUYp:not(checked) + .SwitchControl---label---2ddtD { + position: relative; + padding: 0 0 0 72px +} + + .SwitchControl---SwitchControl---rT2QO .SwitchControl---checkbox---1XUYp:not(checked) + .SwitchControl---label---2ddtD:before { + content: ''; + position: absolute; + top: -5px; + left: 0px; + width: 58px; + height: 28px; + background: #CCCCCC; + box-shadow: inset 0 10px 20px 0 rgba(0,0,0,0.10); + border-radius: 25px; + transition: all .2s +} + + .SwitchControl---SwitchControl---rT2QO .SwitchControl---checkbox---1XUYp:not(checked) + .SwitchControl---label---2ddtD:after { + content: ''; + position: absolute; + top: -5px; + left: 0px; + width: 28px; + height: 28px; + border-radius: 100%; + background: #FFF; + box-shadow: 0px 0px 4px 0px rgba(0,0,0,0.50); + transition: all .2s +} + + .SwitchControl---SwitchControl---rT2QO .SwitchControl---checkbox---1XUYp:checked + .SwitchControl---label---2ddtD:before { + background-image: linear-gradient(-180deg, #0C80FF 0%, #3F9CFF 100%); + transition: background-image .2s +} + + .SwitchControl---SwitchControl---rT2QO .SwitchControl---checkbox---1XUYp:checked + .SwitchControl---label---2ddtD:after { + left: 30px +} + +.SwitchControl---disabled---3ycZR .SwitchControl---label---2ddtD { + color: #b1b1b1 +} + +.SwitchControl---disabled---3ycZR .SwitchControl---checkbox---1XUYp:not(checked) + .SwitchControl---label---2ddtD:before { + background: #e6e6e6; + box-shadow: inset 0 10px 20px 0 rgba(0, 0, 0, 0.01) +} + +.SwitchControl---disabled---3ycZR .SwitchControl---checkbox---1XUYp:not(checked) + .SwitchControl---label---2ddtD:after { + box-shadow: 0px 0px 4px 0px rgba(0, 0, 0, 0.26) +} + +.SwitchControl---disabled---3ycZR .SwitchControl---checkbox---1XUYp:checked + .SwitchControl---label---2ddtD:before { + background-image: linear-gradient(-180deg, rgb(128, 189, 255) 0%, rgb(166, 210, 255) 100%) +}.CheckboxControl---CheckboxControl---kLRku { -js-display: flex; display: flex; flex-flow: row nowrap; @@ -2323,7 +2323,70 @@ template { background: #F9F9F9; color: #6D9EE1 } -.Sites---sites---2YpSl { +.User---user---1y6JR { + border-bottom: 1px solid #CCCCCC; + padding: 20px 14px; + font-weight: 600; + font-size: 12px; + color: #666666; + + -js-display: flex; + + display: flex; + justify-content: space-between; + align-items: center; + + cursor: pointer; +} + +.User---user---1y6JR:hover { + background: #ececec; +} + +.User---user---1y6JR .User---profile---2DWFO { + -js-display: flex; + display: flex; + align-items: center; +} + +.User---user---1y6JR .User---avatar---1Vocq { + box-shadow: 0px 1px 3px 0px rgba(0,0,0,0.4); + margin-right: 9px; + height: 32px; + width: 32px; + overflow: hidden; + background: #D8D8D8; + border: 1px solid #CCCCCC; + border-radius: 100%; + position: relative; +} + +.User---user---1y6JR .User---avatar---1Vocq .User---gravatar---2k1H3 { + width: 100%; + height: 100%; + background-size: contain; + background-position: center center; +} + +.User---user---1y6JR .User---avatar-name---1AWdm { + overflow: hidden; + white-space: nowrap; + text-overflow: ellipsis; + max-width: 150px; + color: #666666; +} + +.User---user---1y6JR .User---settings---JSr8R svg { + height: 16px; +} + +.User---activeBla---2vJSc { + background: white; +} + +.User---activeBla---2vJSc:hover { + background: white; +}.Sites---sites---2YpSl { -js-display: flex; display: flex; flex-flow: column nowrap; @@ -2451,97 +2514,34 @@ template { .Sites---list---2bvP3 .Sites---element-active---2kYBG:hover { background: #F9F9F9; } - -.Sites---list---2bvP3 .Sites---element-active---2kYBG:hover .Sites---site-name---1j0wd { - border: 1px solid #f9f9f9; -} - -.Sites---new-site---2iRUv { - padding: 20px 14px; - visibility: visible; - -js-display: flex; - display: flex; - align-items: center; - - font-size: 12px; - color: #666666; - letter-spacing: 0.5px; - - cursor: pointer; -} - -.Sites---new-site---2iRUv svg { - margin-right: 14px; - height: 14px; -} - -.Sites---new-site---2iRUv:hover { - background: #ececec; -} -.User---user---1y6JR { - border-bottom: 1px solid #CCCCCC; - padding: 20px 14px; - font-weight: 600; - font-size: 12px; - color: #666666; - - -js-display: flex; - - display: flex; - justify-content: space-between; - align-items: center; - - cursor: pointer; -} - -.User---user---1y6JR:hover { - background: #ececec; -} - -.User---user---1y6JR .User---profile---2DWFO { - -js-display: flex; - display: flex; - align-items: center; -} - -.User---user---1y6JR .User---avatar---1Vocq { - box-shadow: 0px 1px 3px 0px rgba(0,0,0,0.4); - margin-right: 9px; - height: 32px; - width: 32px; - overflow: hidden; - background: #D8D8D8; - border: 1px solid #CCCCCC; - border-radius: 100%; - position: relative; -} - -.User---user---1y6JR .User---avatar---1Vocq .User---gravatar---2k1H3 { - width: 100%; - height: 100%; - background-size: contain; - background-position: center center; -} - -.User---user---1y6JR .User---avatar-name---1AWdm { - overflow: hidden; - white-space: nowrap; - text-overflow: ellipsis; - max-width: 150px; - color: #666666; -} - -.User---user---1y6JR .User---settings---JSr8R svg { - height: 16px; + +.Sites---list---2bvP3 .Sites---element-active---2kYBG:hover .Sites---site-name---1j0wd { + border: 1px solid #f9f9f9; } - -.User---activeBla---2vJSc { - background: white; + +.Sites---new-site---2iRUv { + padding: 20px 14px; + visibility: visible; + -js-display: flex; + display: flex; + align-items: center; + + font-size: 12px; + color: #666666; + letter-spacing: 0.5px; + + cursor: pointer; } - -.User---activeBla---2vJSc:hover { - background: white; -}.ContainerComponent---ContainerComponent---1CFy1 { + +.Sites---new-site---2iRUv svg { + margin-right: 14px; + height: 14px; +} + +.Sites---new-site---2iRUv:hover { + background: #ececec; +} +.ContainerComponent---ContainerComponent---1CFy1 { width: 90%; position: relative; margin-top: 40px; @@ -3696,7 +3696,119 @@ template { .ModelsList---hidden-remove---hdCVb .ModelsList---cross---3jcnf:hover { opacity: 1; -}.ContentList---content-wrapper---T0KhS { +}.Model---model-wrapper---3ik0S { + padding: 0 10%; +} + +.Model---input-wrapper---zLDbT { + margin-top: 9px; +} + +.Model---list---34OT4 { + -js-display: flex; + display: flex; + flex-flow: column nowrap; + margin: 22px auto 0; +} + +.Model---listItem---3DzwD { + -js-display: flex; + display: flex; + flex-flow: row nowrap; + align-items: center; + position: relative; + margin-bottom: 9px; +} + +.Model---listItem---3DzwD:hover .Model---hiddenControls---n9psi { + opacity: 0.999; +} + +.Model---listItemPointer---2u-JJ { + cursor: pointer; +} + +.Model---listItemDisabled---3CpKx .Model---listItemColor---3lZyY { + opacity: 0.5; +} + +.Model---listItemDisabled---3CpKx .Model---listItemText---2CE6q { + opacity: 0.5; +} + +.Model---listItemColor---3lZyY { + height: 20px; + width: 20px; + border-radius: 100%; + position: absolute; + left: -30px; + top: 50%; + -webkit-transform: translateY(-50%); + transform: translateY(-50%); +} + +.Model---listItemText---2CE6q { + flex: 1 1; +} + +.Model---listItemName---2i4tn, + .Model---listItemType---1idJ0 { + font-size: 13px; + color: #666666; + letter-spacing: 0.5px; + text-align: left; +} + +.Model---listItemName---2i4tn { + font-weight: 600; +} + +.Model---listItemType---1idJ0 { + margin-top: 3px; + letter-spacing: 0.46px; +} + +.Model---titleButton---msufr { + background-image: linear-gradient(-180deg, #607D8B 0%, #3E5059 150%); + box-shadow: 0px 1px 2px 0px rgba(0,0,0,0.20); + border-radius: 2px; + font-weight: 700; + font-size: 11px; + color: #FFFFFF; + letter-spacing: 0.42px; + line-height: 24px; + padding: 0 15px; + text-transform: uppercase; +} + +.Model---hiddenControls---n9psi { + opacity: 0.001; + transition: opacity 0.1s ease; + will-change: opacity; + + -js-display: flex; + + display: flex; + flex-flow: row nowrap; + align-items: center; +} + +.Model---hiddenRemove---29sMr { + margin-left: 25px; + height: 24px; + width: 24px; +} + +.Model---hiddenRemove---29sMr .Model---cross---3u5ik { + height: 24px; + width: 24px; + opacity: .6; +} + +.Model---hiddenRemove---29sMr .Model---cross---3u5ik:hover { + opacity: 1; +} +.ContentList---content-wrapper---T0KhS { width: 100%; -js-display: flex; display: flex; @@ -3917,118 +4029,6 @@ template { .ContentList---hidden-remove---202ki .ContentList---cross---1kzxD:hover { opacity: 1; } -.Model---model-wrapper---3ik0S { - padding: 0 10%; -} - -.Model---input-wrapper---zLDbT { - margin-top: 9px; -} - -.Model---list---34OT4 { - -js-display: flex; - display: flex; - flex-flow: column nowrap; - margin: 22px auto 0; -} - -.Model---listItem---3DzwD { - -js-display: flex; - display: flex; - flex-flow: row nowrap; - align-items: center; - position: relative; - margin-bottom: 9px; -} - -.Model---listItem---3DzwD:hover .Model---hiddenControls---n9psi { - opacity: 0.999; -} - -.Model---listItemPointer---2u-JJ { - cursor: pointer; -} - -.Model---listItemDisabled---3CpKx .Model---listItemColor---3lZyY { - opacity: 0.5; -} - -.Model---listItemDisabled---3CpKx .Model---listItemText---2CE6q { - opacity: 0.5; -} - -.Model---listItemColor---3lZyY { - height: 20px; - width: 20px; - border-radius: 100%; - position: absolute; - left: -30px; - top: 50%; - -webkit-transform: translateY(-50%); - transform: translateY(-50%); -} - -.Model---listItemText---2CE6q { - flex: 1 1; -} - -.Model---listItemName---2i4tn, - .Model---listItemType---1idJ0 { - font-size: 13px; - color: #666666; - letter-spacing: 0.5px; - text-align: left; -} - -.Model---listItemName---2i4tn { - font-weight: 600; -} - -.Model---listItemType---1idJ0 { - margin-top: 3px; - letter-spacing: 0.46px; -} - -.Model---titleButton---msufr { - background-image: linear-gradient(-180deg, #607D8B 0%, #3E5059 150%); - box-shadow: 0px 1px 2px 0px rgba(0,0,0,0.20); - border-radius: 2px; - font-weight: 700; - font-size: 11px; - color: #FFFFFF; - letter-spacing: 0.42px; - line-height: 24px; - padding: 0 15px; - text-transform: uppercase; -} - -.Model---hiddenControls---n9psi { - opacity: 0.001; - transition: opacity 0.1s ease; - will-change: opacity; - - -js-display: flex; - - display: flex; - flex-flow: row nowrap; - align-items: center; -} - -.Model---hiddenRemove---29sMr { - margin-left: 25px; - height: 24px; - width: 24px; -} - -.Model---hiddenRemove---29sMr .Model---cross---3u5ik { - height: 24px; - width: 24px; - opacity: .6; -} - -.Model---hiddenRemove---29sMr .Model---cross---3u5ik:hover { - opacity: 1; -} .ContentEdit---content---1OXFl { -js-display: flex; display: flex; diff --git a/package-lock.json b/package-lock.json index adc1128c..0b14a088 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "chisel-cms", - "version": "0.7.0", + "version": "0.7.3", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 8b2c5e4e..d1460232 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "chisel-cms", - "version": "0.7.0", + "version": "0.7.3", "description": "Parse CMS", "main": "dist/main.js", "files": [