!function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,(function(r){return o(e[i][1][r]||r)}),p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}({1:[function(require,module,exports){"use strict";function _typeof(obj){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _react=function(obj,nodeInterop){if(!nodeInterop&&obj&&obj.__esModule)return obj;if(null===obj||"object"!==_typeof(obj)&&"function"!=typeof obj)return{default:obj};var cache=_getRequireWildcardCache(nodeInterop);if(cache&&cache.has(obj))return cache.get(obj);var newObj={},hasPropertyDescriptor=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var key in obj)if("default"!==key&&Object.prototype.hasOwnProperty.call(obj,key)){var desc=hasPropertyDescriptor?Object.getOwnPropertyDescriptor(obj,key):null;desc&&(desc.get||desc.set)?Object.defineProperty(newObj,key,desc):newObj[key]=obj[key]}newObj.default=obj,cache&&cache.set(obj,newObj);return newObj}(require("react")),_NodeGroups=_interopRequireDefault(require("./components/NodeGroups")),_NodeTriggerBuilder=_interopRequireDefault(require("./components/NodeTriggerBuilder")),_NodeTriggerBuilderPreview=_interopRequireDefault(require("./components/NodeTriggerBuilderPreview"));function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function _getRequireWildcardCache(nodeInterop){if("function"!=typeof WeakMap)return null;var cacheBabelInterop=new WeakMap,cacheNodeInterop=new WeakMap;return(_getRequireWildcardCache=function(nodeInterop){return nodeInterop?cacheNodeInterop:cacheBabelInterop})(nodeInterop)}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}function _setPrototypeOf(o,p){return(_setPrototypeOf=Object.setPrototypeOf||function(o,p){return o.__proto__=p,o})(o,p)}function _createSuper(Derived){var hasNativeReflectConstruct=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var result,Super=_getPrototypeOf(Derived);if(hasNativeReflectConstruct){var NewTarget=_getPrototypeOf(this).constructor;result=Reflect.construct(Super,arguments,NewTarget)}else result=Super.apply(this,arguments);return _possibleConstructorReturn(this,result)}}function _possibleConstructorReturn(self,call){if(call&&("object"===_typeof(call)||"function"==typeof call))return call;if(void 0!==call)throw new TypeError("Derived constructors may only return object or undefined");return function(self){if(void 0===self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return self}(self)}function _getPrototypeOf(o){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(o){return o.__proto__||Object.getPrototypeOf(o)})(o)}var _default=function(_Component){!function(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function");subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:!0,configurable:!0}}),Object.defineProperty(subClass,"prototype",{writable:!1}),superClass&&_setPrototypeOf(subClass,superClass)}(App,_Component);var Constructor,protoProps,staticProps,_super=_createSuper(App);function App(){return _classCallCheck(this,App),_super.apply(this,arguments)}return Constructor=App,(protoProps=[{key:"render",value:function(){return _react.default.createElement("div",{className:"row"},_react.default.createElement("div",{className:"col-4"},_react.default.createElement(_NodeGroups.default,{botId:this.props.botId})),_react.default.createElement("div",{className:"col-5"},_react.default.createElement(_NodeTriggerBuilder.default,{botId:this.props.botId})),_react.default.createElement("div",{className:"col-3"},_react.default.createElement(_NodeTriggerBuilderPreview.default,null)))}}])&&_defineProperties(Constructor.prototype,protoProps),staticProps&&_defineProperties(Constructor,staticProps),Object.defineProperty(Constructor,"prototype",{writable:!1}),App}(_react.Component);exports.default=_default},{"./components/NodeGroups":8,"./components/NodeTriggerBuilder":9,"./components/NodeTriggerBuilderPreview":10,react:146}],2:[function(require,module,exports){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.addNodeGroup=function(botId){return function(dispatch){dispatch({type:"FETCH_NODE_GROUPS"}),_axios.default.get(WWW_DIR_JAVASCRIPT+"genericbot/addgroup/"+botId).then((function(response){dispatch({type:"ADD_GROUP_FULFILLED",payload:response.data})})).catch((function(err){dispatch({type:"ADD_GROUP_REJECTED",payload:err})}))}},exports.fetchNodeGroups=function(botId){return function(dispatch){dispatch({type:"FETCH_NODE_GROUPS"}),_axios.default.get(WWW_DIR_JAVASCRIPT+"genericbot/nodegroups/"+botId).then((function(response){dispatch({type:"FETCH_NODE_GROUPS_FULFILLED",payload:response.data})})).catch((function(err){dispatch({type:"FETCH_NODE_GROUPS_REJECTED",payload:err})}))}},exports.updateNodeGroup=function(obj){return function(dispatch){dispatch({type:"UPDATE_GROUP_FULFILLED",payload:obj}),clearTimeout(timeout),timeout=setTimeout((function(){_axios.default.post(WWW_DIR_JAVASCRIPT+"genericbot/updategroup",obj.toJS()).then((function(response){dispatch({type:"UPDATE_GROUP_UPDATED",payload:response.data})})).catch((function(err){dispatch({type:"ADD_GROUP_REJECTED",payload:err})}))}),200)}};var obj,_axios=(obj=require("axios"))&&obj.__esModule?obj:{default:obj};_axios.default.defaults.headers.common["X-CSRFToken"]=confLH.csrf_token;var timeout=null},{axios:72}],3:[function(require,module,exports){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.addTrigger=function(obj){return function(dispatch){dispatch({type:"ADD_TRIGGER",payload:obj}),_axios.default.get(WWW_DIR_JAVASCRIPT+"genericbot/addtrigger/"+obj.id).then((function(response){dispatch({type:"ADD_TRIGGER_FULFILLED",payload:response.data})})).catch((function(err){dispatch({type:"ADD_TRIGGER_REJECTED",payload:err})}))}},exports.addTriggerEvent=function(obj){return function(dispatch){dispatch({type:"ADD_TRIGGER_EVENT",payload:obj}),_axios.default.get(WWW_DIR_JAVASCRIPT+"genericbot/addtriggerevent/"+obj.id).then((function(response){dispatch({type:"ADD_TRIGGER_EVENT_FULFILLED",payload:response.data})})).catch((function(err){dispatch({type:"ADD_TRIGGER_EVENT_FULFILLED",payload:err})}))}},exports.deleteGroup=function(groupId){return function(dispatch){dispatch({type:"DELETE_TRIGGER_GROUP",payload:{groupId:groupId}}),_axios.default.get(WWW_DIR_JAVASCRIPT+"genericbot/deletegroup/"+groupId.id).then((function(response){dispatch({type:"DELETE_TRIGGER_GROUP_FULFILLED",payload:response.data})})).catch((function(err){dispatch({type:"DELETE_TRIGGER_GROUP_REJECTED",payload:err})}))}},exports.deleteTriggerEvent=function(obj){return function(dispatch){dispatch({type:"DELETE_TRIGGER_EVENT",payload:obj}),_axios.default.get(WWW_DIR_JAVASCRIPT+"genericbot/deletetriggerevent/"+obj.get("id")).then((function(response){dispatch({type:"DELETE_TRIGGER_EVENT_FULFILLED",payload:response.data})})).catch((function(err){dispatch({type:"DELETE_TRIGGER_EVENT_FULFILLED",payload:err})}))}},exports.fetchNodeGroupTriggerAction=fetchNodeGroupTriggerAction,exports.fetchNodeGroupTriggers=fetchNodeGroupTriggers,exports.initArgumentTemplates=function(){return function(dispatch){_axios.default.post(WWW_DIR_JAVASCRIPT+"genericbot/argumenttemplates").then((function(response){dispatch({type:"INIT_BOT_ARGUMENTS_FULFILLED",payload:response.data})})).catch((function(err){dispatch({type:"INIT_BOT_ARGUMENTS_REJECTED",payload:err})}))}},exports.initBot=function(botId){return function(dispatch){dispatch({type:"INIT_BOT",payload:botId}),_axios.default.post(WWW_DIR_JAVASCRIPT+"genericbot/initbot/"+botId).then((function(response){dispatch({type:"INIT_BOT_FULFILLED",payload:response.data})})).catch((function(err){dispatch({type:"INIT_BOT_REJECTED",payload:err})}))}},exports.initRestMethods=function(RestAPIID){return function(dispatch){_axios.default.post(WWW_DIR_JAVASCRIPT+"genericbot/restapimethods/"+RestAPIID).then((function(response){dispatch({type:"INIT_BOT_REST_API_METHODS",payload:response.data})})).catch((function(err){}))}},exports.loadUseCases=function(obj){return function(dispatch){_axios.default.get(WWW_DIR_JAVASCRIPT+"genericbot/loadusecases/"+obj.get("id")).then((function(response){dispatch({type:"LOAD_USE_CASES_TRIGGER_FULFILLED",payload:response.data})})).catch((function(err){dispatch({type:"LOAD_USE_CASES_TRIGGER_FULFILLED",payload:err})}))}},exports.makeTriggerCopy=function(obj){return function(dispatch){_axios.default.post(WWW_DIR_JAVASCRIPT+"genericbot/maketriggercopy/"+obj.get("id")).then((function(response){fetchNodeGroupTriggers(obj.get("group_id"))(dispatch),fetchNodeGroupTriggerAction(response.data.id)(dispatch)})).catch((function(err){dispatch({type:"COPY_TRIGGER_REJECTED",payload:err})}))}},exports.removeTrigger=function(obj){return function(dispatch){dispatch({type:"REMOVE_TRIGGER",payload:obj}),_axios.default.post(WWW_DIR_JAVASCRIPT+"genericbot/removetrigger/"+obj.get("id")).then((function(response){dispatch({type:"REMOVE_TRIGGER_FULFILLED",payload:response.data})})).catch((function(err){dispatch({type:"REMOVE_TRIGGER_REJECTED",payload:err})}))}},exports.saveTrigger=function(obj){return function(dispatch){dispatch({type:"SAVE_TRIGGER",payload:obj}),_axios.default.post(WWW_DIR_JAVASCRIPT+"genericbot/savetrigger/(method)/actions",obj.toJS()).then((function(response){dispatch({type:"SAVE_TRIGGER_FULFILLED",payload:response.data}),updatePayload(dispatch,obj)})).catch((function(err){dispatch({type:"SAVE_TRIGGER_REJECTED",payload:err})}))}},exports.setAsArgumentTrigger=function(obj){return function(dispatch){dispatch({type:"SET_AS_ARGUMENT_TRIGGER",payload:obj}),_axios.default.post(WWW_DIR_JAVASCRIPT+"genericbot/setasargument/"+obj.get("id")+"/"+obj.get("as_argument")).then((function(response){dispatch({type:"SET_AS_ARGUMENT_FULFILLED",payload:response.data})})).catch((function(err){dispatch({type:"SET_AS_ARGUMENT__REJECTED",payload:err})}))}},exports.setDefaultAlwaysTrigger=function(obj){return function(dispatch){dispatch({type:"SET_DEFAULT_ALWAYS_TRIGGER",payload:obj}),_axios.default.post(WWW_DIR_JAVASCRIPT+"genericbot/setdefaultalwaystrigger/"+obj.get("id")+"/"+obj.get("default_always")).then((function(response){dispatch({type:"SET_DEFAULT_ALWAYS_FULFILLED",payload:response.data})})).catch((function(err){dispatch({type:"SET_DEFAULT_ALWAYS_REJECTED",payload:err})}))}},exports.setDefaultTrigger=function(obj){return function(dispatch){dispatch({type:"SET_DEFAULT_TRIGGER",payload:obj}),_axios.default.post(WWW_DIR_JAVASCRIPT+"genericbot/setdefaulttrigger/"+obj.get("id")+"/"+obj.get("default")).then((function(response){dispatch({type:"SET_DEFAULT_FULFILLED",payload:response.data})})).catch((function(err){dispatch({type:"SET_DEFAULT_REJECTED",payload:err})}))}},exports.setDefaultUnknownBtnTrigger=function(obj){return function(dispatch){dispatch({type:"SET_DEFAULT_UNKNOWN_BTN_TRIGGER",payload:obj}),_axios.default.post(WWW_DIR_JAVASCRIPT+"genericbot/setdefaultunknownbtntrigger/"+obj.get("id")+"/"+obj.get("default_unknown_btn")).then((function(response){dispatch({type:"SET_DEFAULT_UNKNOWN_BTN_FULFILLED",payload:response.data})})).catch((function(err){dispatch({type:"SET_DEFAULT_UNKNOWN_BTN_REJECTED",payload:err})}))}},exports.setDefaultUnknownTrigger=function(obj){return function(dispatch){dispatch({type:"SET_DEFAULT_UNKNOWN_TRIGGER",payload:obj}),_axios.default.post(WWW_DIR_JAVASCRIPT+"genericbot/setdefaultunknowntrigger/"+obj.get("id")+"/"+obj.get("default_unknown")).then((function(response){dispatch({type:"SET_DEFAULT_UNKNOWN_FULFILLED",payload:response.data})})).catch((function(err){dispatch({type:"SET_DEFAULT_UNKNOWN_REJECTED",payload:err})}))}},exports.setInProgressTrigger=function(obj){return function(dispatch){dispatch({type:"SET_IN_PROGRESS_TRIGGER",payload:obj}),_axios.default.post(WWW_DIR_JAVASCRIPT+"genericbot/setinprogresstrigger/"+obj.get("id")+"/"+obj.get("in_progress")).then((function(response){dispatch({type:"SET_IN_PROGRESS_FULFILLED",payload:response.data})})).catch((function(err){dispatch({type:"SET_IN_PROGRESS_REJECTED",payload:err})}))}},exports.setTriggerGroup=function(obj,group_id){return function(dispatch){dispatch({type:"SET_GROUP_TRIGGER_EVENT",payload:obj,group_id:group_id}),_axios.default.post(WWW_DIR_JAVASCRIPT+"genericbot/settriggergroup/"+obj.get("id")+"/"+obj.get("group_id")).then((function(response){dispatch({type:"SET_GROUP_TRIGGER_EVENT_FULFILLED",payload:response.data})})).catch((function(err){dispatch({type:"SET_GROUP_TRIGGER_EVENT_FULFILLED",payload:err})}))}},exports.updatePayload=updatePayload,exports.updateTriggerEvent=function(obj){return function(dispatch){dispatch({type:"UPDATE_TRIGGER_EVENT",payload:obj}),clearTimeout(timeoutEvent),timeoutEvent=setTimeout((function(){_axios.default.post(WWW_DIR_JAVASCRIPT+"genericbot/updatetriggerevent",obj.toJS()).then((function(response){dispatch({type:"UPDATE_TRIGGER_EVENT_FULFILLED",payload:response.data})})).catch((function(err){dispatch({type:"UPDATE_TRIGGER_EVENT_FULFILLED",payload:err})}))}),1e3)}},exports.updateTriggerName=function(obj){return function(dispatch){dispatch({type:"UPDATE_TRIGGER_NAME",payload:obj})}},exports.updateTriggerType=function(obj){return function(dispatch){dispatch({type:"UPDATE_TRIGGER_TYPE",payload:obj})}};var obj,_axios=(obj=require("axios"))&&obj.__esModule?obj:{default:obj};function fetchNodeGroupTriggers(groupId){return function(dispatch){dispatch({type:"FETCH_NODE_GROUP_TRIGGERS"}),_axios.default.get(WWW_DIR_JAVASCRIPT+"genericbot/nodegrouptriggers/"+groupId).then((function(response){dispatch({type:"FETCH_NODE_GROUP_TRIGGERS_FULFILLED",payload:response.data,group_id:groupId})})).catch((function(err){dispatch({type:"FETCH_NODE_GROUP_TRIGGERS_REJECTED",payload:err})}))}}function fetchNodeGroupTriggerAction(triggerId){return function(dispatch){dispatch({type:"FETCH_TRIGGER_RESPONSE",payload:{triggerid:triggerId}}),_axios.default.get(WWW_DIR_JAVASCRIPT+"genericbot/nodetriggeractions/"+triggerId).then((function(response){dispatch({type:"FETCH_TRIGGER_RESPONSE_FULFILLED",payload:response.data})})).catch((function(err){dispatch({type:"FETCH_TRIGGER_RESPONSE_REJECTED",payload:err})}))}}_axios.default.defaults.headers.common["X-CSRFToken"]=confLH.csrf_token;var timeoutEvent=null;function updatePayload(dispatch,obj){_axios.default.post(WWW_DIR_JAVASCRIPT+"genericbot/getpayloads/"+obj.get("id")).then((function(response){dispatch({type:"UPDATE_PAYLOADS_FULFILLED",payload:response.data})})).catch((function(err){dispatch({type:"UPDATE_PAYLOADS_REJECTED",payload:err})}))}},{axios:72}],4:[function(require,module,exports){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.addPayload=function(payload){return function(dispatch){dispatch({type:"ADD_PAYLOAD_TRIGGERS"}),_axios.default.post(WWW_DIR_JAVASCRIPT+"genericbot/addpayload",payload).then((function(response){dispatch({type:"ADD_PAYLOAD_TRIGGERS_FULFILLED",payload:response.data})})).catch((function(err){dispatch({type:"ADD_PAYLOAD_TRIGGERS_REJECTED",payload:err})}))}};var obj,_axios=(obj=require("axios"))&&obj.__esModule?obj:{default:obj};_axios.default.defaults.headers.common["X-CSRFToken"]=confLH.csrf_token},{axios:72}],5:[function(require,module,exports){"use strict";function _typeof(obj){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _class,_react=function(obj,nodeInterop){if(!nodeInterop&&obj&&obj.__esModule)return obj;if(null===obj||"object"!==_typeof(obj)&&"function"!=typeof obj)return{default:obj};var cache=_getRequireWildcardCache(nodeInterop);if(cache&&cache.has(obj))return cache.get(obj);var newObj={},hasPropertyDescriptor=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var key in obj)if("default"!==key&&Object.prototype.hasOwnProperty.call(obj,key)){var desc=hasPropertyDescriptor?Object.getOwnPropertyDescriptor(obj,key):null;desc&&(desc.get||desc.set)?Object.defineProperty(newObj,key,desc):newObj[key]=obj[key]}newObj.default=obj,cache&&cache.set(obj,newObj);return newObj}(require("react")),_NodeGroupTrigger=_interopRequireDefault(require("./NodeGroupTrigger")),_NodeGroupTriggerEvents=_interopRequireDefault(require("./NodeGroupTriggerEvents")),_reactRedux=require("react-redux"),_nodeGroupTriggerActions=require("../actions/nodeGroupTriggerActions"),_nodeGroupActions=require("../actions/nodeGroupActions");function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function _getRequireWildcardCache(nodeInterop){if("function"!=typeof WeakMap)return null;var cacheBabelInterop=new WeakMap,cacheNodeInterop=new WeakMap;return(_getRequireWildcardCache=function(nodeInterop){return nodeInterop?cacheNodeInterop:cacheBabelInterop})(nodeInterop)}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}function _setPrototypeOf(o,p){return(_setPrototypeOf=Object.setPrototypeOf||function(o,p){return o.__proto__=p,o})(o,p)}function _createSuper(Derived){var hasNativeReflectConstruct=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var result,Super=_getPrototypeOf(Derived);if(hasNativeReflectConstruct){var NewTarget=_getPrototypeOf(this).constructor;result=Reflect.construct(Super,arguments,NewTarget)}else result=Super.apply(this,arguments);return _possibleConstructorReturn(this,result)}}function _possibleConstructorReturn(self,call){if(call&&("object"===_typeof(call)||"function"==typeof call))return call;if(void 0!==call)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(self)}function _assertThisInitialized(self){if(void 0===self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return self}function _getPrototypeOf(o){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(o){return o.__proto__||Object.getPrototypeOf(o)})(o)}var _default=(0,_reactRedux.connect)((function(store){return{nodegrouptriggers:store.nodegrouptriggers,currenttrigger:store.currenttrigger}}))(_class=function(_Component){!function(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function");subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:!0,configurable:!0}}),Object.defineProperty(subClass,"prototype",{writable:!1}),superClass&&_setPrototypeOf(subClass,superClass)}(NodeGroup,_Component);var Constructor,protoProps,staticProps,_super=_createSuper(NodeGroup);function NodeGroup(props){var _this;return function(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}(this,NodeGroup),(_this=_super.call(this,props)).state={position:_this.props.group.get("pos")},_this.addTriggerEvent=_this.addTriggerEvent.bind(_assertThisInitialized(_this)),_this.updateEvent=_this.updateEvent.bind(_assertThisInitialized(_this)),_this.deleteEvent=_this.deleteEvent.bind(_assertThisInitialized(_this)),_this}return Constructor=NodeGroup,(protoProps=[{key:"handleChange",value:function(e){var name=e.target.value;this.props.changeTitle(this.props.group.set("name",name))}},{key:"handleCollapse",value:function(){this.props.dispatch((0,_nodeGroupActions.updateNodeGroup)(this.props.group.set("is_collapsed",!this.props.group.get("is_collapsed"))))}},{key:"addTrigger",value:function(){this.props.dispatch((0,_nodeGroupTriggerActions.addTrigger)({id:this.props.group.get("id")}))}},{key:"componentWillMount",value:function(){this.props.dispatch((0,_nodeGroupTriggerActions.fetchNodeGroupTriggers)(this.props.group.get("id")))}},{key:"addTriggerEvent",value:function(){this.props.dispatch((0,_nodeGroupTriggerActions.addTriggerEvent)({id:this.props.currenttrigger.getIn(["currenttrigger","id"])}))}},{key:"updateEvent",value:function(event){this.props.dispatch((0,_nodeGroupTriggerActions.updateTriggerEvent)(event))}},{key:"deleteEvent",value:function(event){this.props.dispatch((0,_nodeGroupTriggerActions.deleteTriggerEvent)(event))}},{key:"deleteGroup",value:function(){confirm("Are you sure?")&&this.props.dispatch((0,_nodeGroupTriggerActions.deleteGroup)({id:this.props.group.get("id")}))}},{key:"setPosition",value:function(){this.props.dispatch((0,_nodeGroupActions.updateNodeGroup)(this.props.group.set("pos",this.state.position)))}},{key:"render",value:function(){var _this2=this;if(this.props.nodegrouptriggers.get("nodegrouptriggers").has(this.props.group.get("id")))var mappedNodeGroupTriggers=this.props.nodegrouptriggers.get("nodegrouptriggers").get(this.props.group.get("id")).map((function(nodegrouptrigger){return _react.default.createElement(_NodeGroupTrigger.default,{key:nodegrouptrigger.get("id"),trigger:nodegrouptrigger})}));else mappedNodeGroupTriggers="";if(this.props.currenttrigger.getIn(["currenttrigger","id"])&&this.props.currenttrigger.getIn(["currenttrigger","group_id"])==this.props.group.get("id"))var triggerAction=_react.default.createElement(_NodeGroupTriggerEvents.default,{deleteEvent:this.deleteEvent.bind(this),addEvent:this.addTriggerEvent.bind(this),updateEvent:this.updateEvent.bind(this),trigger:this.props.currenttrigger.get("currenttrigger")});else triggerAction="";var classNameCurrent="material-icons chat-active";return this.props.group.get("bot_id")!=this.props.botId&&(classNameCurrent="material-icons chat-unread"),_react.default.createElement("div",{className:"row"},_react.default.createElement("div",{className:"col-12"},_react.default.createElement("hr",{className:"my-2"}),_react.default.createElement("div",{className:"d-flex"},_react.default.createElement("div",{className:"flex-grow-1"},_react.default.createElement("div",{className:"input-group"},_react.default.createElement("div",{className:"input-group-prepend"},_react.default.createElement("span",null,_react.default.createElement("i",{className:classNameCurrent,title:"Bot Id - "+this.props.group.get("bot_id")},"home"))),_react.default.createElement("input",{className:"form-control form-control-sm gbot-group-name",value:this.props.group.get("name"),onChange:this.handleChange.bind(this)}))),_react.default.createElement("div",null,_react.default.createElement("div",{className:"btn-toolbar"},_react.default.createElement("div",{className:"input-group input-group-sm mr-2"},_react.default.createElement("input",{type:"number",title:"Position",onChange:function(e){return _this2.setState({position:parseInt(e.target.value)})},className:"form-control",style:{width:"65px"},defaultValue:this.props.group.get("pos"),placeholder:"Position","aria-label":"Input group example","aria-describedby":"btnGroupAddon"}),_react.default.createElement("div",{className:"input-group-append"},_react.default.createElement("button",{className:"btn btn-secondary",disabled:this.props.group.get("pos")==this.state.position,onClick:this.setPosition.bind(this),type:"button",id:"button-addon1"},_react.default.createElement("span",{className:"material-icons mr-0"},"done")))),_react.default.createElement("div",{className:"btn-group btn-group-sm",role:"group","aria-label":"Basic example"},_react.default.createElement("button",{title:"Collapse/Expand",className:"btn btn-sm btn-secondary float-right",onClick:this.handleCollapse.bind(this)},_react.default.createElement("span",{className:"material-icons mr-0"},this.props.group.get("is_collapsed")?"unfold_more":"unfold_less")," ",_react.default.createElement("span",{className:"fs11"},this.props.nodegrouptriggers.get("nodegrouptriggers").get(this.props.group.get("id"))?"["+this.props.nodegrouptriggers.get("nodegrouptriggers").get(this.props.group.get("id")).size+"]":"")),_react.default.createElement("a",{className:"btn btn-sm btn-secondary float-right",href:WWW_DIR_JAVASCRIPT+"genericbot/downloadbotgroup/"+this.props.group.get("id")},_react.default.createElement("i",{className:"material-icons mr-0"},"cloud_download")),_react.default.createElement("button",{className:"btn btn-sm btn-danger float-right",onClick:this.deleteGroup.bind(this)},_react.default.createElement("i",{className:"material-icons mr-0"},"delete")))))),_react.default.createElement("div",{className:this.props.group.get("is_collapsed")?"d-none":""},_react.default.createElement("div",{className:"row"},_react.default.createElement("div",{className:"col-12"},_react.default.createElement("ul",{className:"gbot-trglist"},mappedNodeGroupTriggers,_react.default.createElement("li",null,_react.default.createElement("button",{className:"btn btn-sm btn-secondary",onClick:this.addTrigger.bind(this)},_react.default.createElement("i",{className:"material-icons mr-0"},"add")))))),triggerAction)))}}])&&_defineProperties(Constructor.prototype,protoProps),staticProps&&_defineProperties(Constructor,staticProps),Object.defineProperty(Constructor,"prototype",{writable:!1}),NodeGroup}(_react.Component))||_class;exports.default=_default},{"../actions/nodeGroupActions":2,"../actions/nodeGroupTriggerActions":3,"./NodeGroupTrigger":6,"./NodeGroupTriggerEvents":7,react:146,"react-redux":131}],6:[function(require,module,exports){"use strict";function _typeof(obj){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _class,_react=function(obj,nodeInterop){if(!nodeInterop&&obj&&obj.__esModule)return obj;if(null===obj||"object"!==_typeof(obj)&&"function"!=typeof obj)return{default:obj};var cache=_getRequireWildcardCache(nodeInterop);if(cache&&cache.has(obj))return cache.get(obj);var newObj={},hasPropertyDescriptor=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var key in obj)if("default"!==key&&Object.prototype.hasOwnProperty.call(obj,key)){var desc=hasPropertyDescriptor?Object.getOwnPropertyDescriptor(obj,key):null;desc&&(desc.get||desc.set)?Object.defineProperty(newObj,key,desc):newObj[key]=obj[key]}newObj.default=obj,cache&&cache.set(obj,newObj);return newObj}(require("react")),_nodeGroupTriggerActions=require("../actions/nodeGroupTriggerActions");function _getRequireWildcardCache(nodeInterop){if("function"!=typeof WeakMap)return null;var cacheBabelInterop=new WeakMap,cacheNodeInterop=new WeakMap;return(_getRequireWildcardCache=function(nodeInterop){return nodeInterop?cacheNodeInterop:cacheBabelInterop})(nodeInterop)}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}function _setPrototypeOf(o,p){return(_setPrototypeOf=Object.setPrototypeOf||function(o,p){return o.__proto__=p,o})(o,p)}function _createSuper(Derived){var hasNativeReflectConstruct=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var result,Super=_getPrototypeOf(Derived);if(hasNativeReflectConstruct){var NewTarget=_getPrototypeOf(this).constructor;result=Reflect.construct(Super,arguments,NewTarget)}else result=Super.apply(this,arguments);return _possibleConstructorReturn(this,result)}}function _possibleConstructorReturn(self,call){if(call&&("object"===_typeof(call)||"function"==typeof call))return call;if(void 0!==call)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(self)}function _assertThisInitialized(self){if(void 0===self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return self}function _getPrototypeOf(o){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(o){return o.__proto__||Object.getPrototypeOf(o)})(o)}var _default=(0,require("react-redux").connect)((function(store){return{currenttrigger:store.currenttrigger,nodegroups:store.nodegroups}}))(_class=function(_Component){!function(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function");subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:!0,configurable:!0}}),Object.defineProperty(subClass,"prototype",{writable:!1}),superClass&&_setPrototypeOf(subClass,superClass)}(NodeGroupTrigger,_Component);var Constructor,protoProps,staticProps,_super=_createSuper(NodeGroupTrigger);function NodeGroupTrigger(props){var _this;return function(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}(this,NodeGroupTrigger),(_this=_super.call(this,props)).state={isCurrent:!1,changingGroup:!1},_this.removeTrigger=_this.removeTrigger.bind(_assertThisInitialized(_this)),_this.setDefaultTrigger=_this.setDefaultTrigger.bind(_assertThisInitialized(_this)),_this.setDefaultUnknownTrigger=_this.setDefaultUnknownTrigger.bind(_assertThisInitialized(_this)),_this.setDefaultUnknownBtnTrigger=_this.setDefaultUnknownBtnTrigger.bind(_assertThisInitialized(_this)),_this.setDefaultAlwaysTrigger=_this.setDefaultAlwaysTrigger.bind(_assertThisInitialized(_this)),_this.setInProgressTrigger=_this.setInProgressTrigger.bind(_assertThisInitialized(_this)),_this.setAsArgumentTrigger=_this.setAsArgumentTrigger.bind(_assertThisInitialized(_this)),_this.changeGroup=_this.changeGroup.bind(_assertThisInitialized(_this)),_this.makeCopy=_this.makeCopy.bind(_assertThisInitialized(_this)),_this}return Constructor=NodeGroupTrigger,(protoProps=[{key:"loadTriggerActions",value:function(){this.props.dispatch((0,_nodeGroupTriggerActions.fetchNodeGroupTriggerAction)(this.props.trigger.get("id")))}},{key:"removeTrigger",value:function(){this.props.dispatch((0,_nodeGroupTriggerActions.removeTrigger)(this.props.trigger))}},{key:"setDefaultTrigger",value:function(e){var value=e.target.checked;this.props.dispatch((0,_nodeGroupTriggerActions.setDefaultTrigger)(this.props.trigger.set("default",1==value?1:0)))}},{key:"setAsArgumentTrigger",value:function(e){var value=e.target.checked;this.props.dispatch((0,_nodeGroupTriggerActions.setAsArgumentTrigger)(this.props.trigger.set("as_argument",1==value?1:0)))}},{key:"setDefaultUnknownTrigger",value:function(e){var value=e.target.checked;this.props.dispatch((0,_nodeGroupTriggerActions.setDefaultUnknownTrigger)(this.props.trigger.set("default_unknown",1==value?1:0)))}},{key:"setDefaultUnknownBtnTrigger",value:function(e){var value=e.target.checked;this.props.dispatch((0,_nodeGroupTriggerActions.setDefaultUnknownBtnTrigger)(this.props.trigger.set("default_unknown_btn",1==value?1:0)))}},{key:"setDefaultAlwaysTrigger",value:function(e){var value=e.target.checked;this.props.dispatch((0,_nodeGroupTriggerActions.setDefaultAlwaysTrigger)(this.props.trigger.set("default_always",1==value?1:0)))}},{key:"setInProgressTrigger",value:function(e){var value=e.target.checked;this.props.dispatch((0,_nodeGroupTriggerActions.setInProgressTrigger)(this.props.trigger.set("in_progress",1==value?1:0)))}},{key:"changeGroup",value:function(state,group_id){this.props.currenttrigger.getIn(["currenttrigger","id"])!=this.props.trigger.get("id")?(this.setState({changingGroup:state}),group_id&&this.props.dispatch((0,_nodeGroupTriggerActions.setTriggerGroup)(this.props.trigger.set("group_id",parseInt(group_id)),this.props.trigger.get("group_id")))):alert("Please cancel trigger editing before changing it's group!")}},{key:"makeCopy",value:function(){this.props.dispatch((0,_nodeGroupTriggerActions.makeTriggerCopy)(this.props.trigger))}},{key:"shouldComponentUpdate",value:function(nextProps,nextState){return this.props.trigger!==nextProps.trigger||this.props.nodegroups!==nextProps.nodegroups||(nextProps.currenttrigger.getIn(["currenttrigger","id"])===this.props.trigger.get("id")&&0==this.state.isCurrent?(this.state.isCurrent=!0,!0):nextProps.currenttrigger.getIn(["currenttrigger","id"])!==this.props.trigger.get("id")&&1==this.state.isCurrent?(this.state.isCurrent=!1,!0):this.state.changingGroup!=nextState.changingGroup)}},{key:"render",value:function(){var _this2=this,classNameCurrent="btn btn-secondary btn-sm";this.props.currenttrigger.get("currenttrigger").get("id")===this.props.trigger.get("id")&&(classNameCurrent="btn btn-secondary btn-sm btn-success"),1==this.props.trigger.get("default")&&(classNameCurrent+=" default-trigger-btn"),1!=this.props.trigger.get("default_unknown")&&1!=this.props.trigger.get("default_unknown_btn")||(classNameCurrent+=" btn-warning"),1==this.props.trigger.get("default_always")&&(classNameCurrent+=" btn-info");var list=this.props.nodegroups.get("nodegroups").sortBy((function(group){return group.get("pos")})).map((function(nodegroup){return _react.default.createElement("option",{key:nodegroup.get("id"),value:nodegroup.get("id")},nodegroup.get("name"))}));return _react.default.createElement("li",null,_react.default.createElement("div",{className:"btn-group trigger-btn"},_react.default.createElement("button",{onClick:this.loadTriggerActions.bind(this),className:classNameCurrent},this.props.trigger.get("name")),_react.default.createElement("button",{type:"button",className:"btn btn-sm btn-success dropdown-toggle","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"}),_react.default.createElement("ul",{className:"dropdown-menu dropdown-menu-trigger"},_react.default.createElement("li",{className:"dropdown-item"},_react.default.createElement("a",{href:"#",onClick:this.removeTrigger},_react.default.createElement("i",{className:"material-icons"},"delete")," Delete")),_react.default.createElement("li",{className:"dropdown-item"},_react.default.createElement("a",{href:"#",onClick:this.makeCopy},_react.default.createElement("i",{className:"material-icons"},"file_copy")," Copy")),_react.default.createElement("li",{className:"dropdown-item"},_react.default.createElement("a",{href:"#",onClick:function(e){return _this2.changeGroup(!_this2.state.changingGroup)}},_react.default.createElement("i",{className:"material-icons"},"home")," Change group")),_react.default.createElement("div",{className:"dropdown-divider"}),_react.default.createElement("li",{className:"dropdown-item"},_react.default.createElement("label",{className:"mb-0",title:"This message will be send tu visitor then chat starts"},_react.default.createElement("input",{onChange:this.setDefaultTrigger,type:"checkbox",checked:this.props.trigger.get("default")})," Default")),_react.default.createElement("li",{className:"dropdown-item"},_react.default.createElement("label",{className:"mb-0",title:"This message will be send to visitor then we could dot determine what we should do with a visitor message"},_react.default.createElement("input",{onChange:this.setDefaultUnknownTrigger,type:"checkbox",checked:this.props.trigger.get("default_unknown")})," Default for unknown message")),_react.default.createElement("li",{className:"dropdown-item"},_react.default.createElement("label",{className:"mb-0",title:"This message will be send to visitor then we could dot determine what we should do with a button click"},_react.default.createElement("input",{onChange:this.setDefaultUnknownBtnTrigger,type:"checkbox",checked:this.props.trigger.get("default_unknown_btn")})," Default for unknown button click")),_react.default.createElement("li",{className:"dropdown-item"},_react.default.createElement("label",{className:"mb-0",title:"This trigger will be always checking independently in what process we are"},_react.default.createElement("input",{onChange:this.setDefaultAlwaysTrigger,type:"checkbox",checked:this.props.trigger.get("default_always")})," Execute always")),_react.default.createElement("li",{className:"dropdown-item"},_react.default.createElement("label",{className:"mb-0",title:"This trigger will be executed if previous process has not finished yet."},_react.default.createElement("input",{onChange:this.setInProgressTrigger,type:"checkbox",checked:this.props.trigger.get("in_progress")})," In progress trigger")),_react.default.createElement("li",{className:"dropdown-item"},_react.default.createElement("label",{className:"mb-0",title:"This trigger can be passed as argument. Required for it to work for Themes, Proactive chat and for trigger_id argument."},_react.default.createElement("input",{onChange:this.setAsArgumentTrigger,type:"checkbox",checked:this.props.trigger.get("as_argument")})," Can be passed as argument ",_react.default.createElement("b",null,this.props.trigger.get("id")))))),this.state.changingGroup&&_react.default.createElement("div",{className:"btn-group ml-1"},_react.default.createElement("select",{className:"form-control form-control-sm",onChange:function(e){return _this2.changeGroup(!1,e.currentTarget.value)},value:this.props.trigger.get("group_id")},list),_react.default.createElement("button",{type:"button",className:"btn btn-sm btn-warning",onClick:function(e){return _this2.changeGroup(!1)}},_react.default.createElement("span",{className:"material-icons mr-0"},"close"))))}}])&&_defineProperties(Constructor.prototype,protoProps),staticProps&&_defineProperties(Constructor,staticProps),Object.defineProperty(Constructor,"prototype",{writable:!1}),NodeGroupTrigger}(_react.Component))||_class;exports.default=_default},{"../actions/nodeGroupTriggerActions":3,react:146,"react-redux":131}],7:[function(require,module,exports){"use strict";function _typeof(obj){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var obj,_react=function(obj,nodeInterop){if(!nodeInterop&&obj&&obj.__esModule)return obj;if(null===obj||"object"!==_typeof(obj)&&"function"!=typeof obj)return{default:obj};var cache=_getRequireWildcardCache(nodeInterop);if(cache&&cache.has(obj))return cache.get(obj);var newObj={},hasPropertyDescriptor=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var key in obj)if("default"!==key&&Object.prototype.hasOwnProperty.call(obj,key)){var desc=hasPropertyDescriptor?Object.getOwnPropertyDescriptor(obj,key):null;desc&&(desc.get||desc.set)?Object.defineProperty(newObj,key,desc):newObj[key]=obj[key]}newObj.default=obj,cache&&cache.set(obj,newObj);return newObj}(require("react")),_NodeGroupTriggerEvent=(require("immutable"),(obj=require("./events/NodeGroupTriggerEvent"))&&obj.__esModule?obj:{default:obj});function _getRequireWildcardCache(nodeInterop){if("function"!=typeof WeakMap)return null;var cacheBabelInterop=new WeakMap,cacheNodeInterop=new WeakMap;return(_getRequireWildcardCache=function(nodeInterop){return nodeInterop?cacheNodeInterop:cacheBabelInterop})(nodeInterop)}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}function _setPrototypeOf(o,p){return(_setPrototypeOf=Object.setPrototypeOf||function(o,p){return o.__proto__=p,o})(o,p)}function _createSuper(Derived){var hasNativeReflectConstruct=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var result,Super=_getPrototypeOf(Derived);if(hasNativeReflectConstruct){var NewTarget=_getPrototypeOf(this).constructor;result=Reflect.construct(Super,arguments,NewTarget)}else result=Super.apply(this,arguments);return _possibleConstructorReturn(this,result)}}function _possibleConstructorReturn(self,call){if(call&&("object"===_typeof(call)||"function"==typeof call))return call;if(void 0!==call)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(self)}function _assertThisInitialized(self){if(void 0===self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return self}function _getPrototypeOf(o){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(o){return o.__proto__||Object.getPrototypeOf(o)})(o)}var _default=function(_Component){!function(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function");subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:!0,configurable:!0}}),Object.defineProperty(subClass,"prototype",{writable:!1}),superClass&&_setPrototypeOf(subClass,superClass)}(NodeGroupTriggerEvents,_Component);var Constructor,protoProps,staticProps,_super=_createSuper(NodeGroupTriggerEvents);function NodeGroupTriggerEvents(props){var _this;return function(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}(this,NodeGroupTriggerEvents),(_this=_super.call(this,props)).addEvent=_this.addEvent.bind(_assertThisInitialized(_this)),_this.deleteEvent=_this.deleteEvent.bind(_assertThisInitialized(_this)),_this}return Constructor=NodeGroupTriggerEvents,(protoProps=[{key:"addEvent",value:function(){this.props.addEvent()}},{key:"updateEvent",value:function(event){this.props.updateEvent(event)}},{key:"deleteEvent",value:function(event){this.props.deleteEvent(event)}},{key:"render",value:function(){var _this2=this,mappedEvents=this.props.trigger.get("events").map((function(event){return _react.default.createElement(_NodeGroupTriggerEvent.default,{deleteEvent:_this2.deleteEvent.bind(_this2),updateEvent:_this2.updateEvent.bind(_this2),key:event.get("id"),event:event})}));return _react.default.createElement("div",{className:"row"},_react.default.createElement("div",{className:"col-12"},_react.default.createElement("br",null),mappedEvents,_react.default.createElement("button",{onClick:this.addEvent,className:"btn btn-info btn-sm"},"Add event"),_react.default.createElement("span",{className:"pl-2"},_react.default.createElement("i",null,_react.default.createElement("small",null,"Saved automatically.")))))}}])&&_defineProperties(Constructor.prototype,protoProps),staticProps&&_defineProperties(Constructor,staticProps),Object.defineProperty(Constructor,"prototype",{writable:!1}),NodeGroupTriggerEvents}(_react.Component);exports.default=_default},{"./events/NodeGroupTriggerEvent":49,immutable:102,react:146}],8:[function(require,module,exports){"use strict";function _typeof(obj){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var obj,_class,_react=function(obj,nodeInterop){if(!nodeInterop&&obj&&obj.__esModule)return obj;if(null===obj||"object"!==_typeof(obj)&&"function"!=typeof obj)return{default:obj};var cache=_getRequireWildcardCache(nodeInterop);if(cache&&cache.has(obj))return cache.get(obj);var newObj={},hasPropertyDescriptor=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var key in obj)if("default"!==key&&Object.prototype.hasOwnProperty.call(obj,key)){var desc=hasPropertyDescriptor?Object.getOwnPropertyDescriptor(obj,key):null;desc&&(desc.get||desc.set)?Object.defineProperty(newObj,key,desc):newObj[key]=obj[key]}newObj.default=obj,cache&&cache.set(obj,newObj);return newObj}(require("react")),_NodeGroup=(obj=require("./NodeGroup"))&&obj.__esModule?obj:{default:obj},_reactRedux=require("react-redux"),_nodeGroupActions=require("../actions/nodeGroupActions");function _getRequireWildcardCache(nodeInterop){if("function"!=typeof WeakMap)return null;var cacheBabelInterop=new WeakMap,cacheNodeInterop=new WeakMap;return(_getRequireWildcardCache=function(nodeInterop){return nodeInterop?cacheNodeInterop:cacheBabelInterop})(nodeInterop)}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}function _setPrototypeOf(o,p){return(_setPrototypeOf=Object.setPrototypeOf||function(o,p){return o.__proto__=p,o})(o,p)}function _createSuper(Derived){var hasNativeReflectConstruct=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var result,Super=_getPrototypeOf(Derived);if(hasNativeReflectConstruct){var NewTarget=_getPrototypeOf(this).constructor;result=Reflect.construct(Super,arguments,NewTarget)}else result=Super.apply(this,arguments);return _possibleConstructorReturn(this,result)}}function _possibleConstructorReturn(self,call){if(call&&("object"===_typeof(call)||"function"==typeof call))return call;if(void 0!==call)throw new TypeError("Derived constructors may only return object or undefined");return function(self){if(void 0===self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return self}(self)}function _getPrototypeOf(o){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(o){return o.__proto__||Object.getPrototypeOf(o)})(o)}var _default=(0,_reactRedux.connect)((function(state){return{nodegroups:state.nodegroups}}))(_class=function(_Component){!function(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function");subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:!0,configurable:!0}}),Object.defineProperty(subClass,"prototype",{writable:!1}),superClass&&_setPrototypeOf(subClass,superClass)}(NodeGroups,_Component);var Constructor,protoProps,staticProps,_super=_createSuper(NodeGroups);function NodeGroups(){return _classCallCheck(this,NodeGroups),_super.apply(this,arguments)}return Constructor=NodeGroups,(protoProps=[{key:"componentWillMount",value:function(){this.props.dispatch((0,_nodeGroupActions.fetchNodeGroups)(this.props.botId))}},{key:"addGroup",value:function(){this.props.dispatch((0,_nodeGroupActions.addNodeGroup)(this.props.botId))}},{key:"importGroup",value:function(){lhc.revealModal({iframe:!0,height:500,url:WWW_DIR_JAVASCRIPT+"/genericbot/botimportgroup/"+this.props.botId})}},{key:"changeTitle",value:function(obj){this.props.dispatch((0,_nodeGroupActions.updateNodeGroup)(obj))}},{key:"render",value:function(){var _this=this,mappedNodeGroups=this.props.nodegroups.get("nodegroups").sortBy((function(group){return group.get("pos")})).map((function(nodegroup){return _react.default.createElement(_NodeGroup.default,{botId:_this.props.botId,changeTitle:_this.changeTitle.bind(_this),key:nodegroup.get("id"),group:nodegroup})}));return _react.default.createElement("div",null,mappedNodeGroups,_react.default.createElement("hr",null),_react.default.createElement("div",{className:"btn-group",role:"group","aria-label":"Basic example"},_react.default.createElement("button",{className:"btn btn-sm btn-secondary",onClick:this.addGroup.bind(this)},_react.default.createElement("i",{className:"material-icons"},"add"),"Add group"),_react.default.createElement("button",{className:"btn btn-sm btn-secondary",onClick:this.importGroup.bind(this)},_react.default.createElement("i",{className:"material-icons"},"cloud_upload"),"Import group")))}}])&&_defineProperties(Constructor.prototype,protoProps),staticProps&&_defineProperties(Constructor,staticProps),Object.defineProperty(Constructor,"prototype",{writable:!1}),NodeGroups}(_react.Component))||_class;exports.default=_default},{"../actions/nodeGroupActions":2,"./NodeGroup":5,react:146,"react-redux":131}],9:[function(require,module,exports){"use strict";function _typeof(obj){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _class,_react=function(obj,nodeInterop){if(!nodeInterop&&obj&&obj.__esModule)return obj;if(null===obj||"object"!==_typeof(obj)&&"function"!=typeof obj)return{default:obj};var cache=_getRequireWildcardCache(nodeInterop);if(cache&&cache.has(obj))return cache.get(obj);var newObj={},hasPropertyDescriptor=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var key in obj)if("default"!==key&&Object.prototype.hasOwnProperty.call(obj,key)){var desc=hasPropertyDescriptor?Object.getOwnPropertyDescriptor(obj,key):null;desc&&(desc.get||desc.set)?Object.defineProperty(newObj,key,desc):newObj[key]=obj[key]}newObj.default=obj,cache&&cache.set(obj,newObj);return newObj}(require("react")),_reactRedux=require("react-redux"),_nodeGroupTriggerActions=require("../actions/nodeGroupTriggerActions"),_NodeTriggerActionText=_interopRequireDefault(require("./builder/NodeTriggerActionText")),_NodeTriggerActionList=_interopRequireDefault(require("./builder/NodeTriggerActionList")),_NodeTriggerActionGeneric=_interopRequireDefault(require("./builder/NodeTriggerActionGeneric")),_NodeTriggerActionCollectable=_interopRequireDefault(require("./builder/NodeTriggerActionCollectable")),_NodeTriggerActionButtons=_interopRequireDefault(require("./builder/NodeTriggerActionButtons")),_NodeTriggerActionCommand=_interopRequireDefault(require("./builder/NodeTriggerActionCommand")),_NodeTriggerActionPredefined=_interopRequireDefault(require("./builder/NodeTriggerActionPredefined")),_NodeTriggerActionTyping=_interopRequireDefault(require("./builder/NodeTriggerActionTyping")),_NodeTriggerActionProgress=_interopRequireDefault(require("./builder/NodeTriggerActionProgress")),_NodeTriggerActionVideo=_interopRequireDefault(require("./builder/NodeTriggerActionVideo")),_NodeTriggerActionAttribute=_interopRequireDefault(require("./builder/NodeTriggerActionAttribute")),_NodeTriggerActionActions=_interopRequireDefault(require("./builder/NodeTriggerActionActions")),_NodeTriggerActionIntent=_interopRequireDefault(require("./builder/NodeTriggerActionIntent")),_NodeTriggerActionIntentCheck=_interopRequireDefault(require("./builder/NodeTriggerActionIntentCheck")),_NodeTriggerActionConditions=_interopRequireDefault(require("./builder/NodeTriggerActionConditions")),_NodeTriggerActionMatchActions=_interopRequireDefault(require("./builder/NodeTriggerActionMatchActions")),_NodeTriggerActionEventType=_interopRequireDefault(require("./builder/NodeTriggerActionEventType")),_NodeTriggerActionRepeatRestrict=_interopRequireDefault(require("./builder/NodeTriggerActionRepeatRestrict")),_NodeTriggerActionExecuteJS=_interopRequireDefault(require("./builder/NodeTriggerActionExecuteJS")),_NodeTriggerActionRestAPI=_interopRequireDefault(require("./builder/NodeTriggerActionRestAPI")),_NodeTriggerActionTbody=_interopRequireDefault(require("./builder/NodeTriggerActionTbody")),_NodeTriggerActionTextConditional=_interopRequireDefault(require("./builder/NodeTriggerActionTextConditional")),_NodeTriggerActionAlertIcon=_interopRequireDefault(require("./builder/NodeTriggerActionAlertIcon")),_NodeTriggerActionMail=_interopRequireDefault(require("./builder/NodeTriggerActionMail")),_NodeTriggerActionLogAction=_interopRequireDefault(require("./builder/NodeTriggerActionLogAction"));function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function _getRequireWildcardCache(nodeInterop){if("function"!=typeof WeakMap)return null;var cacheBabelInterop=new WeakMap,cacheNodeInterop=new WeakMap;return(_getRequireWildcardCache=function(nodeInterop){return nodeInterop?cacheNodeInterop:cacheBabelInterop})(nodeInterop)}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}function _setPrototypeOf(o,p){return(_setPrototypeOf=Object.setPrototypeOf||function(o,p){return o.__proto__=p,o})(o,p)}function _createSuper(Derived){var hasNativeReflectConstruct=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var result,Super=_getPrototypeOf(Derived);if(hasNativeReflectConstruct){var NewTarget=_getPrototypeOf(this).constructor;result=Reflect.construct(Super,arguments,NewTarget)}else result=Super.apply(this,arguments);return _possibleConstructorReturn(this,result)}}function _possibleConstructorReturn(self,call){if(call&&("object"===_typeof(call)||"function"==typeof call))return call;if(void 0!==call)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(self)}function _assertThisInitialized(self){if(void 0===self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return self}function _getPrototypeOf(o){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(o){return o.__proto__||Object.getPrototypeOf(o)})(o)}var _default=(0,_reactRedux.connect)((function(store){return{currenttrigger:store.currenttrigger}}))(_class=function(_Component){!function(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function");subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:!0,configurable:!0}}),Object.defineProperty(subClass,"prototype",{writable:!1}),superClass&&_setPrototypeOf(subClass,superClass)}(NodeTriggerBuilder,_Component);var Constructor,protoProps,staticProps,_super=_createSuper(NodeTriggerBuilder);function NodeTriggerBuilder(props){var _this;return function(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}(this,NodeTriggerBuilder),(_this=_super.call(this,props)).state={dataChanged:!1,value:"",viewCode:!1,viewUseCases:!1,compressCode:!1},_this.handleChange=_this.handleChange.bind(_assertThisInitialized(_this)),_this.handleTypeChange=_this.handleTypeChange.bind(_assertThisInitialized(_this)),_this.handleContentChange=_this.handleContentChange.bind(_assertThisInitialized(_this)),_this.addResponse=_this.addResponse.bind(_assertThisInitialized(_this)),_this.saveResponse=_this.saveResponse.bind(_assertThisInitialized(_this)),_this.cancelChanges=_this.cancelChanges.bind(_assertThisInitialized(_this)),_this.addQuickReply=_this.addQuickReply.bind(_assertThisInitialized(_this)),_this.removeQuickReply=_this.removeQuickReply.bind(_assertThisInitialized(_this)),_this.removeAction=_this.removeAction.bind(_assertThisInitialized(_this)),_this.addSubelement=_this.addSubelement.bind(_assertThisInitialized(_this)),_this.deleteSubelement=_this.deleteSubelement.bind(_assertThisInitialized(_this)),_this.moveUpSubelement=_this.moveUpSubelement.bind(_assertThisInitialized(_this)),_this.moveDownSubelement=_this.moveDownSubelement.bind(_assertThisInitialized(_this)),_this.viewCode=_this.viewCode.bind(_assertThisInitialized(_this)),_this.viewUseCases=_this.viewUseCases.bind(_assertThisInitialized(_this)),_this.navigateToTrigger=_this.navigateToTrigger.bind(_assertThisInitialized(_this)),_this.upField=_this.upField.bind(_assertThisInitialized(_this)),_this.downField=_this.downField.bind(_assertThisInitialized(_this)),_this.props.dispatch((0,_nodeGroupTriggerActions.initBot)(_this.props.botId)),_this}return Constructor=NodeTriggerBuilder,(protoProps=[{key:"handleChange",value:function(e){this.setState({dataChanged:!0});var name=e.target.value;this.props.dispatch((0,_nodeGroupTriggerActions.updateTriggerName)(this.props.currenttrigger.get("currenttrigger").set("name",name)))}},{key:"saveResponse",value:function(){this.setState({dataChanged:!1}),this.props.dispatch((0,_nodeGroupTriggerActions.saveTrigger)(this.props.currenttrigger.get("currenttrigger")))}},{key:"cancelChanges",value:function(){this.props.dispatch({type:"CANCEL_TRIGGER",payload:this.props.currenttrigger.get("currenttrigger")})}},{key:"handleTypeChange",value:function(obj){this.setState({dataChanged:!0}),this.props.dispatch((0,_nodeGroupTriggerActions.updateTriggerType)(obj))}},{key:"handleContentChange",value:function(obj){this.setState({dataChanged:!0}),this.props.dispatch({type:"HANDLE_CONTENT_CHANGE",payload:obj})}},{key:"addResponse",value:function(){this.setState({dataChanged:!0}),this.props.dispatch({type:"ADD_TRIGGER_RESPONSE"})}},{key:"addQuickReply",value:function(obj){this.setState({dataChanged:!0}),this.props.dispatch({type:"HANDLE_ADD_QUICK_REPLY",payload:obj})}},{key:"removeQuickReply",value:function(obj){this.setState({dataChanged:!0}),this.props.dispatch({type:"HANDLE_ADD_QUICK_REPLY_REMOVE",payload:obj})}},{key:"removeAction",value:function(obj){this.setState({dataChanged:!0}),this.props.dispatch({type:"REMOVE_TRIGGER_RESPONSE",payload:obj})}},{key:"addSubelement",value:function(obj){this.setState({dataChanged:!0}),this.props.dispatch({type:"ADD_SUBELEMENT",payload:obj})}},{key:"deleteSubelement",value:function(obj){this.setState({dataChanged:!0}),this.props.dispatch({type:"REMOVE_SUBELEMENT",payload:obj})}},{key:"moveUpSubelement",value:function(obj){this.setState({dataChanged:!0}),this.props.dispatch({type:"MOVE_UP_SUBELEMENT",payload:obj})}},{key:"moveDownSubelement",value:function(obj){this.setState({dataChanged:!0}),this.props.dispatch({type:"MOVE_DOWN_SUBELEMENT",payload:obj})}},{key:"viewCode",value:function(){this.setState({viewCode:!this.state.viewCode})}},{key:"viewUseCases",value:function(){this.setState({viewUseCases:!this.state.viewUseCases}),0==this.state.viewUseCases&&this.props.dispatch((0,_nodeGroupTriggerActions.loadUseCases)(this.props.currenttrigger.get("currenttrigger")))}},{key:"upField",value:function(fieldIndex){this.setState({dataChanged:!0}),this.props.dispatch({type:"MOVE_UP",payload:{index:fieldIndex}})}},{key:"downField",value:function(fieldIndex){this.setState({dataChanged:!0}),this.props.dispatch({type:"MOVE_DOWN",payload:{index:fieldIndex}})}},{key:"navigateToTrigger",value:function(obj){this.setState({viewUseCases:!1}),this.props.dispatch((0,_nodeGroupTriggerActions.fetchNodeGroupTriggerAction)(obj.get("id")))}},{key:"render",value:function(){var _this2=this,actions=[];if(this.props.currenttrigger.get("currenttrigger").has("actions")){var totalTriggers=this.props.currenttrigger.get("currenttrigger").get("actions").size;actions=this.props.currenttrigger.get("currenttrigger").get("actions").map((function(action,index){var key=index+"-"+_this2.props.currenttrigger.get("currenttrigger").get("id")+"-"+action.get("_id");return"text"==action.get("type")?_react.default.createElement(_NodeTriggerActionText.default,{upField:_this2.upField,downField:_this2.downField,isFirst:0==index,isLast:index+1==totalTriggers,moveDownSubelement:_this2.moveDownSubelement,moveUpSubelement:_this2.moveUpSubelement,addSubelement:_this2.addSubelement,deleteSubelement:_this2.deleteSubelement,key:key,id:index,removeAction:_this2.removeAction,removeQuickReply:_this2.removeQuickReply,addQuickReply:_this2.addQuickReply,onChangeContent:_this2.handleContentChange,onChangeType:_this2.handleTypeChange,action:action}):"list"==action.get("type")?_react.default.createElement(_NodeTriggerActionList.default,{upField:_this2.upField,downField:_this2.downField,isFirst:0==index,isLast:index+1==totalTriggers,moveDownSubelement:_this2.moveDownSubelement,moveUpSubelement:_this2.moveUpSubelement,addSubelement:_this2.addSubelement,removeQuickReply:_this2.removeQuickReply,addQuickReply:_this2.addQuickReply,deleteSubelement:_this2.deleteSubelement,key:key,id:index,removeAction:_this2.removeAction,onChangeContent:_this2.handleContentChange,onChangeType:_this2.handleTypeChange,action:action}):"generic"==action.get("type")?_react.default.createElement(_NodeTriggerActionGeneric.default,{upField:_this2.upField,downField:_this2.downField,isFirst:0==index,isLast:index+1==totalTriggers,moveDownSubelement:_this2.moveDownSubelement,moveUpSubelement:_this2.moveUpSubelement,addSubelement:_this2.addSubelement,removeQuickReply:_this2.removeQuickReply,addQuickReply:_this2.addQuickReply,deleteSubelement:_this2.deleteSubelement,key:key,id:index,removeAction:_this2.removeAction,onChangeContent:_this2.handleContentChange,onChangeType:_this2.handleTypeChange,action:action}):"collectable"==action.get("type")?_react.default.createElement(_NodeTriggerActionCollectable.default,{upField:_this2.upField,downField:_this2.downField,isFirst:0==index,isLast:index+1==totalTriggers,moveDownSubelement:_this2.moveDownSubelement,moveUpSubelement:_this2.moveUpSubelement,deleteSubelement:_this2.deleteSubelement,addSubelement:_this2.addSubelement,key:key,id:index,removeAction:_this2.removeAction,onChangeContent:_this2.handleContentChange,onChangeType:_this2.handleTypeChange,action:action}):"buttons"==action.get("type")?_react.default.createElement(_NodeTriggerActionButtons.default,{upField:_this2.upField,downField:_this2.downField,isFirst:0==index,isLast:index+1==totalTriggers,moveDownSubelement:_this2.moveDownSubelement,moveUpSubelement:_this2.moveUpSubelement,deleteSubelement:_this2.deleteSubelement,addSubelement:_this2.addSubelement,key:key,id:index,removeAction:_this2.removeAction,onChangeContent:_this2.handleContentChange,onChangeType:_this2.handleTypeChange,action:action}):"command"==action.get("type")?_react.default.createElement(_NodeTriggerActionCommand.default,{upField:_this2.upField,downField:_this2.downField,isFirst:0==index,isLast:index+1==totalTriggers,key:key,id:index,onChangeContent:_this2.handleContentChange,onChangeType:_this2.handleTypeChange,action:action,removeAction:_this2.removeAction}):"predefined"==action.get("type")?_react.default.createElement(_NodeTriggerActionPredefined.default,{upField:_this2.upField,downField:_this2.downField,isFirst:0==index,isLast:index+1==totalTriggers,key:key,id:index,onChangeContent:_this2.handleContentChange,onChangeType:_this2.handleTypeChange,action:action,removeAction:_this2.removeAction}):"typing"==action.get("type")?_react.default.createElement(_NodeTriggerActionTyping.default,{upField:_this2.upField,downField:_this2.downField,isFirst:0==index,isLast:index+1==totalTriggers,key:key,id:index,onChangeContent:_this2.handleContentChange,onChangeType:_this2.handleTypeChange,action:action,removeAction:_this2.removeAction}):"progress"==action.get("type")?_react.default.createElement(_NodeTriggerActionProgress.default,{upField:_this2.upField,downField:_this2.downField,isFirst:0==index,isLast:index+1==totalTriggers,key:key,id:index,onChangeContent:_this2.handleContentChange,onChangeType:_this2.handleTypeChange,action:action,removeAction:_this2.removeAction}):"video"==action.get("type")?_react.default.createElement(_NodeTriggerActionVideo.default,{upField:_this2.upField,downField:_this2.downField,isFirst:0==index,isLast:index+1==totalTriggers,key:key,id:index,onChangeContent:_this2.handleContentChange,onChangeType:_this2.handleTypeChange,action:action,removeAction:_this2.removeAction}):"attribute"==action.get("type")?_react.default.createElement(_NodeTriggerActionAttribute.default,{upField:_this2.upField,downField:_this2.downField,isFirst:0==index,isLast:index+1==totalTriggers,key:key,id:index,onChangeContent:_this2.handleContentChange,onChangeType:_this2.handleTypeChange,action:action,removeAction:_this2.removeAction}):"actions"==action.get("type")?_react.default.createElement(_NodeTriggerActionActions.default,{upField:_this2.upField,downField:_this2.downField,isFirst:0==index,isLast:index+1==totalTriggers,key:key,id:index,onChangeContent:_this2.handleContentChange,onChangeType:_this2.handleTypeChange,action:action,removeAction:_this2.removeAction}):"intent"==action.get("type")?_react.default.createElement(_NodeTriggerActionIntent.default,{upField:_this2.upField,downField:_this2.downField,isFirst:0==index,isLast:index+1==totalTriggers,key:key,id:index,onChangeContent:_this2.handleContentChange,moveDownSubelement:_this2.moveDownSubelement,moveUpSubelement:_this2.moveUpSubelement,deleteSubelement:_this2.deleteSubelement,addSubelement:_this2.addSubelement,onChangeType:_this2.handleTypeChange,action:action,removeAction:_this2.removeAction}):"intentcheck"==action.get("type")?_react.default.createElement(_NodeTriggerActionIntentCheck.default,{upField:_this2.upField,downField:_this2.downField,isFirst:0==index,isLast:index+1==totalTriggers,key:key,id:index,onChangeType:_this2.handleTypeChange,action:action,removeAction:_this2.removeAction}):"conditions"==action.get("type")?_react.default.createElement(_NodeTriggerActionConditions.default,{upField:_this2.upField,downField:_this2.downField,isFirst:0==index,isLast:index+1==totalTriggers,key:key,id:index,onChangeContent:_this2.handleContentChange,onChangeType:_this2.handleTypeChange,action:action,removeAction:_this2.removeAction,deleteSubelement:_this2.deleteSubelement,addSubelement:_this2.addSubelement}):"match_actions"==action.get("type")?_react.default.createElement(_NodeTriggerActionMatchActions.default,{upField:_this2.upField,downField:_this2.downField,isFirst:0==index,isLast:index+1==totalTriggers,key:key,id:index,onChangeContent:_this2.handleContentChange,onChangeType:_this2.handleTypeChange,action:action,removeAction:_this2.removeAction}):"event_type"==action.get("type")?_react.default.createElement(_NodeTriggerActionEventType.default,{upField:_this2.upField,downField:_this2.downField,isFirst:0==index,isLast:index+1==totalTriggers,key:key,id:index,onChangeContent:_this2.handleContentChange,onChangeType:_this2.handleTypeChange,action:action,removeAction:_this2.removeAction,deleteSubelement:_this2.deleteSubelement,addSubelement:_this2.addSubelement}):"repeat_restrict"==action.get("type")?_react.default.createElement(_NodeTriggerActionRepeatRestrict.default,{upField:_this2.upField,downField:_this2.downField,isFirst:0==index,isLast:index+1==totalTriggers,key:key,id:index,onChangeContent:_this2.handleContentChange,onChangeType:_this2.handleTypeChange,action:action,removeAction:_this2.removeAction,deleteSubelement:_this2.deleteSubelement,addSubelement:_this2.addSubelement}):"execute_js"==action.get("type")?_react.default.createElement(_NodeTriggerActionExecuteJS.default,{upField:_this2.upField,downField:_this2.downField,isFirst:0==index,isLast:index+1==totalTriggers,key:key,id:index,onChangeContent:_this2.handleContentChange,onChangeType:_this2.handleTypeChange,action:action,removeAction:_this2.removeAction,deleteSubelement:_this2.deleteSubelement,addSubelement:_this2.addSubelement}):"tbody"==action.get("type")?_react.default.createElement(_NodeTriggerActionTbody.default,{upField:_this2.upField,downField:_this2.downField,isFirst:0==index,isLast:index+1==totalTriggers,key:key,id:index,onChangeContent:_this2.handleContentChange,onChangeType:_this2.handleTypeChange,action:action,removeAction:_this2.removeAction,deleteSubelement:_this2.deleteSubelement,addSubelement:_this2.addSubelement}):"restapi"==action.get("type")?_react.default.createElement(_NodeTriggerActionRestAPI.default,{upField:_this2.upField,downField:_this2.downField,isFirst:0==index,isLast:index+1==totalTriggers,key:key,id:index,onChangeContent:_this2.handleContentChange,onChangeType:_this2.handleTypeChange,action:action,removeAction:_this2.removeAction,deleteSubelement:_this2.deleteSubelement,addSubelement:_this2.addSubelement}):"text_conditional"==action.get("type")?_react.default.createElement(_NodeTriggerActionTextConditional.default,{upField:_this2.upField,downField:_this2.downField,isFirst:0==index,isLast:index+1==totalTriggers,key:key,id:index,onChangeContent:_this2.handleContentChange,onChangeType:_this2.handleTypeChange,action:action,removeAction:_this2.removeAction,deleteSubelement:_this2.deleteSubelement,addSubelement:_this2.addSubelement}):"alert_icon"==action.get("type")?_react.default.createElement(_NodeTriggerActionAlertIcon.default,{upField:_this2.upField,downField:_this2.downField,isFirst:0==index,isLast:index+1==totalTriggers,key:key,id:index,onChangeContent:_this2.handleContentChange,onChangeType:_this2.handleTypeChange,action:action,removeAction:_this2.removeAction,deleteSubelement:_this2.deleteSubelement,addSubelement:_this2.addSubelement}):"mail"==action.get("type")?_react.default.createElement(_NodeTriggerActionMail.default,{upField:_this2.upField,downField:_this2.downField,isFirst:0==index,isLast:index+1==totalTriggers,key:key,id:index,onChangeContent:_this2.handleContentChange,onChangeType:_this2.handleTypeChange,action:action,removeAction:_this2.removeAction,deleteSubelement:_this2.deleteSubelement,addSubelement:_this2.addSubelement}):"laction"==action.get("type")?_react.default.createElement(_NodeTriggerActionLogAction.default,{upField:_this2.upField,downField:_this2.downField,isFirst:0==index,isLast:index+1==totalTriggers,key:key,id:index,onChangeContent:_this2.handleContentChange,onChangeType:_this2.handleTypeChange,action:action,removeAction:_this2.removeAction,deleteSubelement:_this2.deleteSubelement,addSubelement:_this2.addSubelement}):void 0}))}var usecases=[];return this.props.currenttrigger.get("currenttrigger").has("use_cases")&&(usecases=this.props.currenttrigger.get("currenttrigger").get("use_cases").map((function(use_case,index){return _react.default.createElement("button",{onClick:function(e){return _this2.navigateToTrigger(use_case)},className:"btn btn-secondary btn-xs m-1"},use_case.get("name"))}))),this.props.currenttrigger.hasIn(["currenttrigger","name"])?_react.default.createElement("div",null,_react.default.createElement("input",{className:"form-control gbot-group-name",value:this.props.currenttrigger.getIn(["currenttrigger","name"]),onChange:this.handleChange}),_react.default.createElement("hr",null),actions,_react.default.createElement("div",{className:"form-group"},_react.default.createElement("div",{className:"btn-group",role:"group","aria-label":"Trigger actions"},_react.default.createElement("button",{className:"btn btn-info btn-sm",onClick:this.addResponse},"Add response"),_react.default.createElement("button",{className:"btn btn-info btn-sm",onClick:this.viewCode},_react.default.createElement("i",{className:"material-icons"},"code"),1==this.state.viewCode?"Hide code":"Show code"),_react.default.createElement("button",{className:"btn btn-info btn-sm",onClick:this.viewUseCases},_react.default.createElement("i",{className:"material-icons"},"info"),1==this.state.viewUseCases?"Hide use cases":"Show use cases"))),1==this.state.viewCode?_react.default.createElement("div",{className:"form-group"},_react.default.createElement("div",{className:"float-right"},_react.default.createElement("label",null,_react.default.createElement("input",{type:"checkbox",value:"on",onChange:function(e){return _this2.setState({compressCode:!_this2.state.compressCode})},defaultChecked:this.state.compressCode}),"Compressed version")),_react.default.createElement("label",null,"JSON body you can use for REST API"),_react.default.createElement("textarea",{readOnly:"readOnly",rows:10,className:"form-control fs11",value:JSON.stringify(this.props.currenttrigger.getIn(["currenttrigger","actions"]).toJSON(),null,0==this.state.compressCode?4:0)}),_react.default.createElement("p",null,_react.default.createElement("small",null,_react.default.createElement("i",null,'"_id" can be ignored')))):"",1==this.state.viewUseCases?_react.default.createElement("div",{className:"form-group"},this.props.currenttrigger.get("currenttrigger").has("use_cases")&&0!=this.props.currenttrigger.getIn(["currenttrigger","use_cases"]).size?"":_react.default.createElement("p",null,"No use cases were found"),usecases):"",_react.default.createElement("hr",null),_react.default.createElement("div",{className:"btn-group",role:"group","aria-label":"Trigger actions"},_react.default.createElement("button",{className:"btn btn-success btn-sm",disabled:!this.state.dataChanged,onClick:this.saveResponse},"Save"),_react.default.createElement("button",{className:"btn btn-success btn-sm",onClick:this.cancelChanges},"Cancel"))):_react.default.createElement("div",{className:"alert alert-warning",role:"alert"},"Choose a trigger")}}])&&_defineProperties(Constructor.prototype,protoProps),staticProps&&_defineProperties(Constructor,staticProps),Object.defineProperty(Constructor,"prototype",{writable:!1}),NodeTriggerBuilder}(_react.Component))||_class;exports.default=_default},{"../actions/nodeGroupTriggerActions":3,"./builder/NodeTriggerActionActions":11,"./builder/NodeTriggerActionAlertIcon":12,"./builder/NodeTriggerActionAttribute":13,"./builder/NodeTriggerActionButtons":14,"./builder/NodeTriggerActionCollectable":15,"./builder/NodeTriggerActionCommand":16,"./builder/NodeTriggerActionConditions":17,"./builder/NodeTriggerActionEventType":18,"./builder/NodeTriggerActionExecuteJS":19,"./builder/NodeTriggerActionGeneric":20,"./builder/NodeTriggerActionIntent":21,"./builder/NodeTriggerActionIntentCheck":22,"./builder/NodeTriggerActionList":23,"./builder/NodeTriggerActionLogAction":24,"./builder/NodeTriggerActionMail":25,"./builder/NodeTriggerActionMatchActions":26,"./builder/NodeTriggerActionPredefined":27,"./builder/NodeTriggerActionProgress":28,"./builder/NodeTriggerActionRepeatRestrict":31,"./builder/NodeTriggerActionRestAPI":32,"./builder/NodeTriggerActionTbody":33,"./builder/NodeTriggerActionText":34,"./builder/NodeTriggerActionTextConditional":35,"./builder/NodeTriggerActionTyping":37,"./builder/NodeTriggerActionVideo":38,react:146,"react-redux":131}],10:[function(require,module,exports){"use strict";function _typeof(obj){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _class,_react=function(obj,nodeInterop){if(!nodeInterop&&obj&&obj.__esModule)return obj;if(null===obj||"object"!==_typeof(obj)&&"function"!=typeof obj)return{default:obj};var cache=_getRequireWildcardCache(nodeInterop);if(cache&&cache.has(obj))return cache.get(obj);var newObj={},hasPropertyDescriptor=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var key in obj)if("default"!==key&&Object.prototype.hasOwnProperty.call(obj,key)){var desc=hasPropertyDescriptor?Object.getOwnPropertyDescriptor(obj,key):null;desc&&(desc.get||desc.set)?Object.defineProperty(newObj,key,desc):newObj[key]=obj[key]}newObj.default=obj,cache&&cache.set(obj,newObj);return newObj}(require("react")),_reactRedux=require("react-redux"),_NodeTriggerActionTextPreview=(require("../actions/nodeGroupTriggerActions"),_interopRequireDefault(require("./preview/NodeTriggerActionTextPreview"))),_NodeTriggerActionListPreview=_interopRequireDefault(require("./preview/NodeTriggerActionListPreview")),_NodeTriggerActionButtonsPreview=_interopRequireDefault(require("./preview/NodeTriggerActionButtonsPreview")),_NodeTriggerActionGenericPreview=_interopRequireDefault(require("./preview/NodeTriggerActionGenericPreview")),_NodeTriggerActionPredefinedPreview=_interopRequireDefault(require("./preview/NodeTriggerActionPredefinedPreview")),_NodeTriggerActionTypingPreview=_interopRequireDefault(require("./preview/NodeTriggerActionTypingPreview")),_NodeTriggerActionVideoPreview=_interopRequireDefault(require("./preview/NodeTriggerActionVideoPreview"));function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function _getRequireWildcardCache(nodeInterop){if("function"!=typeof WeakMap)return null;var cacheBabelInterop=new WeakMap,cacheNodeInterop=new WeakMap;return(_getRequireWildcardCache=function(nodeInterop){return nodeInterop?cacheNodeInterop:cacheBabelInterop})(nodeInterop)}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}function _setPrototypeOf(o,p){return(_setPrototypeOf=Object.setPrototypeOf||function(o,p){return o.__proto__=p,o})(o,p)}function _createSuper(Derived){var hasNativeReflectConstruct=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var result,Super=_getPrototypeOf(Derived);if(hasNativeReflectConstruct){var NewTarget=_getPrototypeOf(this).constructor;result=Reflect.construct(Super,arguments,NewTarget)}else result=Super.apply(this,arguments);return _possibleConstructorReturn(this,result)}}function _possibleConstructorReturn(self,call){if(call&&("object"===_typeof(call)||"function"==typeof call))return call;if(void 0!==call)throw new TypeError("Derived constructors may only return object or undefined");return function(self){if(void 0===self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return self}(self)}function _getPrototypeOf(o){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(o){return o.__proto__||Object.getPrototypeOf(o)})(o)}var _default=(0,_reactRedux.connect)((function(store){return{currenttrigger:store.currenttrigger}}))(_class=function(_Component){!function(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function");subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:!0,configurable:!0}}),Object.defineProperty(subClass,"prototype",{writable:!1}),superClass&&_setPrototypeOf(subClass,superClass)}(NodeTriggerBuilderPreview,_Component);var Constructor,protoProps,staticProps,_super=_createSuper(NodeTriggerBuilderPreview);function NodeTriggerBuilderPreview(props){return function(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}(this,NodeTriggerBuilderPreview),_super.call(this,props)}return Constructor=NodeTriggerBuilderPreview,(protoProps=[{key:"render",value:function(){var _this=this,actions=[];return this.props.currenttrigger.get("currenttrigger").has("actions")&&(actions=this.props.currenttrigger.get("currenttrigger").get("actions").map((function(action,index){return"text"==action.get("type")?_react.default.createElement(_NodeTriggerActionTextPreview.default,{key:index+"-"+_this.props.currenttrigger.get("currenttrigger").get("id"),id:index,action:action}):"list"==action.get("type")?_react.default.createElement(_NodeTriggerActionListPreview.default,{key:index+"-"+_this.props.currenttrigger.get("currenttrigger").get("id"),id:index,action:action}):"buttons"==action.get("type")?_react.default.createElement(_NodeTriggerActionButtonsPreview.default,{key:index+"-"+_this.props.currenttrigger.get("currenttrigger").get("id"),id:index,action:action}):"generic"==action.get("type")?_react.default.createElement(_NodeTriggerActionGenericPreview.default,{key:index+"-"+_this.props.currenttrigger.get("currenttrigger").get("id"),id:index,action:action}):"predefined"==action.get("type")?_react.default.createElement(_NodeTriggerActionPredefinedPreview.default,{key:index+"-"+_this.props.currenttrigger.get("currenttrigger").get("id"),id:index,action:action}):"typing"==action.get("type")?_react.default.createElement(_NodeTriggerActionTypingPreview.default,{key:index+"-"+_this.props.currenttrigger.get("currenttrigger").get("id"),id:index,action:action}):"video"==action.get("type")?_react.default.createElement(_NodeTriggerActionVideoPreview.default,{key:index+"-"+_this.props.currenttrigger.get("currenttrigger").get("id"),id:index,action:action}):void 0}))),_react.default.createElement("div",null,actions)}}])&&_defineProperties(Constructor.prototype,protoProps),staticProps&&_defineProperties(Constructor,staticProps),Object.defineProperty(Constructor,"prototype",{writable:!1}),NodeTriggerBuilderPreview}(_react.Component))||_class;exports.default=_default},{"../actions/nodeGroupTriggerActions":3,"./preview/NodeTriggerActionButtonsPreview":50,"./preview/NodeTriggerActionGenericPreview":51,"./preview/NodeTriggerActionListPreview":52,"./preview/NodeTriggerActionPredefinedPreview":53,"./preview/NodeTriggerActionTextPreview":55,"./preview/NodeTriggerActionTypingPreview":56,"./preview/NodeTriggerActionVideoPreview":57,react:146,"react-redux":131}],11:[function(require,module,exports){"use strict";function _typeof(obj){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _react=function(obj,nodeInterop){if(!nodeInterop&&obj&&obj.__esModule)return obj;if(null===obj||"object"!==_typeof(obj)&&"function"!=typeof obj)return{default:obj};var cache=_getRequireWildcardCache(nodeInterop);if(cache&&cache.has(obj))return cache.get(obj);var newObj={},hasPropertyDescriptor=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var key in obj)if("default"!==key&&Object.prototype.hasOwnProperty.call(obj,key)){var desc=hasPropertyDescriptor?Object.getOwnPropertyDescriptor(obj,key):null;desc&&(desc.get||desc.set)?Object.defineProperty(newObj,key,desc):newObj[key]=obj[key]}newObj.default=obj,cache&&cache.set(obj,newObj);return newObj}(require("react")),_NodeTriggerActionType=_interopRequireDefault(require("./NodeTriggerActionType")),_NodeTriggerList=_interopRequireDefault(require("./NodeTriggerList"));function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function _getRequireWildcardCache(nodeInterop){if("function"!=typeof WeakMap)return null;var cacheBabelInterop=new WeakMap,cacheNodeInterop=new WeakMap;return(_getRequireWildcardCache=function(nodeInterop){return nodeInterop?cacheNodeInterop:cacheBabelInterop})(nodeInterop)}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}function _setPrototypeOf(o,p){return(_setPrototypeOf=Object.setPrototypeOf||function(o,p){return o.__proto__=p,o})(o,p)}function _createSuper(Derived){var hasNativeReflectConstruct=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var result,Super=_getPrototypeOf(Derived);if(hasNativeReflectConstruct){var NewTarget=_getPrototypeOf(this).constructor;result=Reflect.construct(Super,arguments,NewTarget)}else result=Super.apply(this,arguments);return _possibleConstructorReturn(this,result)}}function _possibleConstructorReturn(self,call){if(call&&("object"===_typeof(call)||"function"==typeof call))return call;if(void 0!==call)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(self)}function _assertThisInitialized(self){if(void 0===self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return self}function _getPrototypeOf(o){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(o){return o.__proto__||Object.getPrototypeOf(o)})(o)}var _default=function(_Component){!function(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function");subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:!0,configurable:!0}}),Object.defineProperty(subClass,"prototype",{writable:!1}),superClass&&_setPrototypeOf(subClass,superClass)}(NodeTriggerActionActions,_Component);var Constructor,protoProps,staticProps,_super=_createSuper(NodeTriggerActionActions);function NodeTriggerActionActions(props){var _this;return function(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}(this,NodeTriggerActionActions),(_this=_super.call(this,props)).changeType=_this.changeType.bind(_assertThisInitialized(_this)),_this.removeAction=_this.removeAction.bind(_assertThisInitialized(_this)),_this.onchangeAttr=_this.onchangeAttr.bind(_assertThisInitialized(_this)),_this.addAnswerVariation=_this.addAnswerVariation.bind(_assertThisInitialized(_this)),_this.textMessageRef=_react.default.createRef(),_this}return Constructor=NodeTriggerActionActions,(protoProps=[{key:"changeType",value:function(e){this.props.onChangeType({id:this.props.id,type:e.target.value})}},{key:"removeAction",value:function(){this.props.removeAction({id:this.props.id})}},{key:"onchangeAttr",value:function(e){this.props.onChangeContent({id:this.props.id,path:["content"].concat(e.path),value:e.value})}},{key:"addAnswerVariation",value:function(){var newVal=this.props.action.getIn(["content","success_message"])+" |||\n";this.props.onChangeContent({id:this.props.id,path:["content","success_message"],value:newVal}),this.textMessageRef.current.focus(),this.textMessageRef.current.value=newVal}},{key:"render",value:function(){var _this2=this;return _react.default.createElement("div",null,_react.default.createElement("div",{className:"d-flex flex-row"},_react.default.createElement("div",null,_react.default.createElement("div",{className:"btn-group float-left",role:"group","aria-label":"Trigger actions"},_react.default.createElement("button",{disabled:!0,className:"btn btn-sm btn-info"},this.props.id+1),0==this.props.isFirst&&_react.default.createElement("button",{className:"btn btn-secondary btn-sm",onClick:function(e){return _this2.props.upField(_this2.props.id)}},_react.default.createElement("i",{className:"material-icons mr-0"},"keyboard_arrow_up")),0==this.props.isLast&&_react.default.createElement("button",{className:"btn btn-secondary btn-sm",onClick:function(e){return _this2.props.downField(_this2.props.id)}},_react.default.createElement("i",{className:"material-icons mr-0"},"keyboard_arrow_down")))),_react.default.createElement("div",{className:"flex-grow-1 px-2"},_react.default.createElement(_NodeTriggerActionType.default,{onChange:this.changeType,type:this.props.action.get("type")})),_react.default.createElement("div",{className:"pr-2"},_react.default.createElement("div",{className:"input-group input-group-sm"},_react.default.createElement("div",{className:"input-group-prepend"},_react.default.createElement("span",{className:"input-group-text",id:"basic-addon1"},_react.default.createElement("span",{className:"material-icons"},"vpn_key"))),_react.default.createElement("input",{type:"text",className:"form-control",readOnly:"true",value:this.props.action.getIn(["_id"]),title:"Action ID"}))),_react.default.createElement("div",{className:"pr-2 pt-1 text-nowrap"},_react.default.createElement("label",{className:"form-check-label",title:"Response will not be executed. Usefull for a quick testing."},_react.default.createElement("input",{onChange:function(e){return _this2.props.onChangeContent({id:_this2.props.id,path:["skip_resp"],value:e.target.checked})},defaultChecked:this.props.action.getIn(["skip_resp"]),type:"checkbox"})," Skip")),_react.default.createElement("div",null,_react.default.createElement("button",{onClick:this.removeAction,type:"button",className:"btn btn-danger btn-sm float-right"},_react.default.createElement("i",{className:"material-icons mr-0"},"delete")))),_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,"Message before dispatching event"),_react.default.createElement("a",{title:"Add answer variation",className:"float-right",onClick:this.addAnswerVariation},_react.default.createElement("i",{className:"material-icons mr-0"},"question_answer")),_react.default.createElement("textarea",{rows:3,className:"form-control form-control-sm",ref:this.textMessageRef,defaultValue:this.props.action.getIn(["content","success_message"]),onChange:function(e){return _this2.onchangeAttr({path:["success_message"],value:e.target.value})}})),_react.default.createElement("div",{className:"row"},_react.default.createElement("div",{className:"col-6"},_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,"Event identifier"),_react.default.createElement("input",{type:"text",placeholder:"Event name",className:"form-control form-control-sm",onChange:function(e){return _this2.onchangeAttr({path:["event"],value:e.target.value})},defaultValue:this.props.action.getIn(["content","event"])}))),_react.default.createElement("div",{className:"col-6"},_react.default.createElement("div",null,_react.default.createElement("label",null,_react.default.createElement("input",{type:"checkbox",onChange:function(e){return _this2.onchangeAttr({path:["event_background"],value:e.target.checked})},defaultChecked:this.props.action.getIn(["content","event_background"])})," Event is processed on next visitor message.")),_react.default.createElement("div",null,_react.default.createElement("label",null,_react.default.createElement("input",{type:"checkbox",onChange:function(e){return _this2.onchangeAttr({path:["event_background_inst"],value:e.target.checked})},defaultChecked:this.props.action.getIn(["content","event_background_inst"])})," Event is processed instantly.")))),_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,_react.default.createElement("input",{type:"checkbox",onChange:function(e){return _this2.onchangeAttr({path:["event_default"],value:e.target.checked})},defaultChecked:this.props.action.getIn(["content","event_default"])})," Check for default matching text first.")),_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,"Check for alternative scenario first executing this trigger"),_react.default.createElement(_NodeTriggerList.default,{onSetPayload:function(e){return _this2.onchangeAttr({path:["attr_options","collection_callback_match"],value:e})},payload:this.props.action.getIn(["content","attr_options","collection_callback_match"])})),_react.default.createElement("div",{className:"row"},_react.default.createElement("div",{className:"col-8"},_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,"For success visitor message has to contain one of these words"),_react.default.createElement("input",{type:"text",placeholder:"ok, yes, great, go ahead",className:"form-control form-control-sm",onChange:function(e){return _this2.onchangeAttr({path:["event_validate"],value:e.target.value})},defaultValue:this.props.action.getIn(["content","event_validate"])}))),_react.default.createElement("div",{className:"col-4"},_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,"Typos per word?"),_react.default.createElement("input",{type:"text",placeholder:"0",className:"form-control form-control-sm",onChange:function(e){return _this2.onchangeAttr({path:["event_typos"],value:e.target.value})},defaultValue:this.props.action.getIn(["content","event_typos"])}))),_react.default.createElement("div",{className:"col-8"},_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,"Bot not any of"),_react.default.createElement("input",{type:"text",placeholder:"no, not",className:"form-control form-control-sm",onChange:function(e){return _this2.onchangeAttr({path:["event_validate_exc"],value:e.target.value})},defaultValue:this.props.action.getIn(["content","event_validate_exc"])}))),_react.default.createElement("div",{className:"col-4"},_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,"Typos per word?"),_react.default.createElement("input",{type:"text",placeholder:"0",className:"form-control form-control-sm",onChange:function(e){return _this2.onchangeAttr({path:["event_typos_exc"],value:e.target.value})},defaultValue:this.props.action.getIn(["content","event_typos_exc"])}))),_react.default.createElement("div",{className:"col-12"},_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,"Extract arguments from visitor message"),_react.default.createElement("textarea",{className:"form-control form-control-sm",placeholder:"Match rule ==> Matched item number to use ==> identifier",onChange:function(e){return _this2.onchangeAttr({path:["event_arg_match"],value:e.target.value})},defaultValue:this.props.action.getIn(["content","event_arg_match"])}))),_react.default.createElement("div",{className:"col-12"},_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,"Static arguments"),_react.default.createElement("textarea",{className:"form-control form-control-sm",placeholder:"Argument value ==> identifier",onChange:function(e){return _this2.onchangeAttr({path:["event_arg_static"],value:e.target.value})},defaultValue:this.props.action.getIn(["content","event_arg_static"])})))),_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,_react.default.createElement("input",{type:"checkbox",onChange:function(e){return _this2.onchangeAttr({path:["attr_options","check_default"],value:e.target.checked})},defaultChecked:this.props.action.getIn(["content","attr_options","check_default"])})," On failure check for default match trigger first.")),_react.default.createElement("div",{className:"row"},_react.default.createElement("div",{className:"col-6"},_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,"Execute trigger on success"),_react.default.createElement(_NodeTriggerList.default,{onSetPayload:function(e){return _this2.onchangeAttr({path:["attr_options","collection_callback_pattern"],value:e})},payload:this.props.action.getIn(["content","attr_options","collection_callback_pattern"])}))),_react.default.createElement("div",{className:"col-6"},_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,"Execute trigger on fail"),_react.default.createElement(_NodeTriggerList.default,{onSetPayload:function(e){return _this2.onchangeAttr({path:["attr_options","collection_callback_cancel"],value:e})},payload:this.props.action.getIn(["content","attr_options","collection_callback_cancel"])}))),_react.default.createElement("div",{className:"col-12"},_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,"Execute trigger on failed format"),_react.default.createElement(_NodeTriggerList.default,{onSetPayload:function(e){return _this2.onchangeAttr({path:["attr_options","collection_callback_format"],value:e})},payload:this.props.action.getIn(["content","attr_options","collection_callback_format"])}))),_react.default.createElement("div",{className:"col-6"},_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,"Alternative answer match"),_react.default.createElement("input",{type:"text",title:"no, nop, not ok, ne",placeholder:"no, nop, not ok, ne",className:"form-control form-control-sm",onChange:function(e){return _this2.onchangeAttr({path:["event_in_validate"],value:e.target.value})},defaultValue:this.props.action.getIn(["content","event_in_validate"])}))),_react.default.createElement("div",{className:"col-6"},_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,"Execute trigger"),_react.default.createElement(_NodeTriggerList.default,{onSetPayload:function(e){return _this2.onchangeAttr({path:["attr_options","collection_callback_alternative"],value:e})},payload:this.props.action.getIn(["content","attr_options","collection_callback_alternative"])})))),_react.default.createElement("hr",{className:"hr-big"}))}}])&&_defineProperties(Constructor.prototype,protoProps),staticProps&&_defineProperties(Constructor,staticProps),Object.defineProperty(Constructor,"prototype",{writable:!1}),NodeTriggerActionActions}(_react.Component);exports.default=_default},{"./NodeTriggerActionType":36,"./NodeTriggerList":41,react:146}],12:[function(require,module,exports){"use strict";function _typeof(obj){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var obj,_react=function(obj,nodeInterop){if(!nodeInterop&&obj&&obj.__esModule)return obj;if(null===obj||"object"!==_typeof(obj)&&"function"!=typeof obj)return{default:obj};var cache=_getRequireWildcardCache(nodeInterop);if(cache&&cache.has(obj))return cache.get(obj);var newObj={},hasPropertyDescriptor=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var key in obj)if("default"!==key&&Object.prototype.hasOwnProperty.call(obj,key)){var desc=hasPropertyDescriptor?Object.getOwnPropertyDescriptor(obj,key):null;desc&&(desc.get||desc.set)?Object.defineProperty(newObj,key,desc):newObj[key]=obj[key]}newObj.default=obj,cache&&cache.set(obj,newObj);return newObj}(require("react")),_NodeTriggerActionType=(obj=require("./NodeTriggerActionType"))&&obj.__esModule?obj:{default:obj};function _getRequireWildcardCache(nodeInterop){if("function"!=typeof WeakMap)return null;var cacheBabelInterop=new WeakMap,cacheNodeInterop=new WeakMap;return(_getRequireWildcardCache=function(nodeInterop){return nodeInterop?cacheNodeInterop:cacheBabelInterop})(nodeInterop)}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}function _setPrototypeOf(o,p){return(_setPrototypeOf=Object.setPrototypeOf||function(o,p){return o.__proto__=p,o})(o,p)}function _createSuper(Derived){var hasNativeReflectConstruct=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var result,Super=_getPrototypeOf(Derived);if(hasNativeReflectConstruct){var NewTarget=_getPrototypeOf(this).constructor;result=Reflect.construct(Super,arguments,NewTarget)}else result=Super.apply(this,arguments);return _possibleConstructorReturn(this,result)}}function _possibleConstructorReturn(self,call){if(call&&("object"===_typeof(call)||"function"==typeof call))return call;if(void 0!==call)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(self)}function _assertThisInitialized(self){if(void 0===self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return self}function _getPrototypeOf(o){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(o){return o.__proto__||Object.getPrototypeOf(o)})(o)}var _default=function(_Component){!function(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function");subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:!0,configurable:!0}}),Object.defineProperty(subClass,"prototype",{writable:!1}),superClass&&_setPrototypeOf(subClass,superClass)}(NodeTriggerActionAlertIcon,_Component);var Constructor,protoProps,staticProps,_super=_createSuper(NodeTriggerActionAlertIcon);function NodeTriggerActionAlertIcon(props){var _this;return function(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}(this,NodeTriggerActionAlertIcon),(_this=_super.call(this,props)).changeType=_this.changeType.bind(_assertThisInitialized(_this)),_this.removeAction=_this.removeAction.bind(_assertThisInitialized(_this)),_this.onchangeAttr=_this.onchangeAttr.bind(_assertThisInitialized(_this)),_this}return Constructor=NodeTriggerActionAlertIcon,(protoProps=[{key:"changeType",value:function(e){this.props.onChangeType({id:this.props.id,type:e.target.value})}},{key:"removeAction",value:function(){this.props.removeAction({id:this.props.id})}},{key:"onchangeAttr",value:function(e){this.props.onChangeContent({id:this.props.id,path:["content"].concat(e.path),value:e.value})}},{key:"render",value:function(){var _this2=this;return _react.default.createElement("div",null,_react.default.createElement("div",{className:"d-flex flex-row"},_react.default.createElement("div",null,_react.default.createElement("div",{className:"btn-group float-left",role:"group","aria-label":"Trigger actions"},_react.default.createElement("button",{disabled:!0,className:"btn btn-sm btn-info"},this.props.id+1),0==this.props.isFirst&&_react.default.createElement("button",{className:"btn btn-secondary btn-sm",onClick:function(e){return _this2.props.upField(_this2.props.id)}},_react.default.createElement("i",{className:"material-icons mr-0"},"keyboard_arrow_up")),0==this.props.isLast&&_react.default.createElement("button",{className:"btn btn-secondary btn-sm",onClick:function(e){return _this2.props.downField(_this2.props.id)}},_react.default.createElement("i",{className:"material-icons mr-0"},"keyboard_arrow_down")))),_react.default.createElement("div",{className:"flex-grow-1 px-2"},_react.default.createElement(_NodeTriggerActionType.default,{onChange:this.changeType,type:this.props.action.get("type")})),_react.default.createElement("div",{className:"pr-2"},_react.default.createElement("div",{className:"input-group input-group-sm"},_react.default.createElement("div",{className:"input-group-prepend"},_react.default.createElement("span",{className:"input-group-text",id:"basic-addon1"},_react.default.createElement("span",{className:"material-icons"},"vpn_key"))),_react.default.createElement("input",{type:"text",className:"form-control",readOnly:"true",value:this.props.action.getIn(["_id"]),title:"Action ID"}))),_react.default.createElement("div",{className:"pr-2 pt-1 text-nowrap"},_react.default.createElement("label",{className:"form-check-label",title:"Response will not be executed. Usefull for a quick testing."},_react.default.createElement("input",{onChange:function(e){return _this2.props.onChangeContent({id:_this2.props.id,path:["skip_resp"],value:e.target.checked})},defaultChecked:this.props.action.getIn(["skip_resp"]),type:"checkbox"})," Skip")),_react.default.createElement("div",null,_react.default.createElement("button",{onClick:this.removeAction,type:"button",className:"btn btn-danger btn-sm float-right"},_react.default.createElement("i",{className:"material-icons mr-0"},"delete")))),_react.default.createElement("div",{className:"row"},_react.default.createElement("div",{className:"col-6"},_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,"Icon identifier. ",_react.default.createElement("a",{target:"_blank",href:"https://material.io/resources/icons/?style=baseline"},_react.default.createElement("span",{className:"material-icons"},"open_in_new")," Material Icons")),_react.default.createElement("input",{type:"text",placeholder:"Icon identifier - new_releases",onChange:function(e){return _this2.onchangeAttr({path:["alert_icon"],value:e.target.value})},defaultValue:this.props.action.hasIn(["content","alert_icon"])?this.props.action.getIn(["content","alert_icon"]):"new_releases",className:"form-control form-control-sm"}))),_react.default.createElement("div",{className:"col-6"},_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,"Color E.g green, #509646"),_react.default.createElement("input",{type:"text",onChange:function(e){return _this2.onchangeAttr({path:["attr_options","aicon_color"],value:e.target.value})},defaultValue:this.props.action.hasIn(["content","attr_options","aicon_color"])?this.props.action.getIn(["content","attr_options","aicon_color"]):"",className:"form-control form-control-sm"}))),_react.default.createElement("div",{className:"col-12"},_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,"Title. If you do not enter title we will show icon text."),_react.default.createElement("input",{type:"text",onChange:function(e){return _this2.onchangeAttr({path:["attr_options","aicon_title"],value:e.target.value})},defaultValue:this.props.action.hasIn(["content","attr_options","aicon_title"])?this.props.action.getIn(["content","attr_options","aicon_title"]):"",className:"form-control form-control-sm"}))),_react.default.createElement("div",{className:"col-12"},_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,_react.default.createElement("input",{type:"checkbox",onChange:function(e){return _this2.onchangeAttr({path:["attr_options","show_alert"],value:e.target.checked})},defaultChecked:this.props.action.getIn(["content","attr_options","show_alert"])})," Show alert. We will show alert if this icon is added to the chat."))),_react.default.createElement("div",{className:"col-12"},_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,_react.default.createElement("input",{type:"checkbox",onChange:function(e){return _this2.onchangeAttr({path:["attr_options","remove_icon"],value:e.target.checked})},defaultChecked:this.props.action.getIn(["content","attr_options","remove_icon"])})," Remove icon if it exists.")))),_react.default.createElement("hr",{className:"hr-big"}))}}])&&_defineProperties(Constructor.prototype,protoProps),staticProps&&_defineProperties(Constructor,staticProps),Object.defineProperty(Constructor,"prototype",{writable:!1}),NodeTriggerActionAlertIcon}(_react.Component);exports.default=_default},{"./NodeTriggerActionType":36,react:146}],13:[function(require,module,exports){"use strict";function _typeof(obj){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _react=function(obj,nodeInterop){if(!nodeInterop&&obj&&obj.__esModule)return obj;if(null===obj||"object"!==_typeof(obj)&&"function"!=typeof obj)return{default:obj};var cache=_getRequireWildcardCache(nodeInterop);if(cache&&cache.has(obj))return cache.get(obj);var newObj={},hasPropertyDescriptor=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var key in obj)if("default"!==key&&Object.prototype.hasOwnProperty.call(obj,key)){var desc=hasPropertyDescriptor?Object.getOwnPropertyDescriptor(obj,key):null;desc&&(desc.get||desc.set)?Object.defineProperty(newObj,key,desc):newObj[key]=obj[key]}newObj.default=obj,cache&&cache.set(obj,newObj);return newObj}(require("react")),_NodeTriggerActionType=_interopRequireDefault(require("./NodeTriggerActionType")),_NodeTriggerList=_interopRequireDefault(require("./NodeTriggerList"));function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function _getRequireWildcardCache(nodeInterop){if("function"!=typeof WeakMap)return null;var cacheBabelInterop=new WeakMap,cacheNodeInterop=new WeakMap;return(_getRequireWildcardCache=function(nodeInterop){return nodeInterop?cacheNodeInterop:cacheBabelInterop})(nodeInterop)}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}function _setPrototypeOf(o,p){return(_setPrototypeOf=Object.setPrototypeOf||function(o,p){return o.__proto__=p,o})(o,p)}function _createSuper(Derived){var hasNativeReflectConstruct=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var result,Super=_getPrototypeOf(Derived);if(hasNativeReflectConstruct){var NewTarget=_getPrototypeOf(this).constructor;result=Reflect.construct(Super,arguments,NewTarget)}else result=Super.apply(this,arguments);return _possibleConstructorReturn(this,result)}}function _possibleConstructorReturn(self,call){if(call&&("object"===_typeof(call)||"function"==typeof call))return call;if(void 0!==call)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(self)}function _assertThisInitialized(self){if(void 0===self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return self}function _getPrototypeOf(o){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(o){return o.__proto__||Object.getPrototypeOf(o)})(o)}var _default=function(_Component){!function(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function");subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:!0,configurable:!0}}),Object.defineProperty(subClass,"prototype",{writable:!1}),superClass&&_setPrototypeOf(subClass,superClass)}(NodeTriggerActionAttribute,_Component);var Constructor,protoProps,staticProps,_super=_createSuper(NodeTriggerActionAttribute);function NodeTriggerActionAttribute(props){var _this;return function(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}(this,NodeTriggerActionAttribute),(_this=_super.call(this,props)).changeType=_this.changeType.bind(_assertThisInitialized(_this)),_this.removeAction=_this.removeAction.bind(_assertThisInitialized(_this)),_this.onchangeAttr=_this.onchangeAttr.bind(_assertThisInitialized(_this)),_this.showHelp=_this.showHelp.bind(_assertThisInitialized(_this)),_this}return Constructor=NodeTriggerActionAttribute,(protoProps=[{key:"changeType",value:function(e){this.props.onChangeType({id:this.props.id,type:e.target.value})}},{key:"removeAction",value:function(){this.props.removeAction({id:this.props.id})}},{key:"onchangeAttr",value:function(e){this.props.onChangeContent({id:this.props.id,path:["content"].concat(e.path),value:e.value})}},{key:"showHelp",value:function(e){lhc.revealModal({url:WWW_DIR_JAVASCRIPT+"genericbot/help/"+e})}},{key:"render",value:function(){var _this2=this;return _react.default.createElement("div",null,_react.default.createElement("div",{className:"d-flex flex-row"},_react.default.createElement("div",null,_react.default.createElement("div",{className:"btn-group float-left",role:"group","aria-label":"Trigger actions"},_react.default.createElement("button",{disabled:!0,className:"btn btn-sm btn-info"},this.props.id+1),0==this.props.isFirst&&_react.default.createElement("button",{className:"btn btn-secondary btn-sm",onClick:function(e){return _this2.props.upField(_this2.props.id)}},_react.default.createElement("i",{className:"material-icons mr-0"},"keyboard_arrow_up")),0==this.props.isLast&&_react.default.createElement("button",{className:"btn btn-secondary btn-sm",onClick:function(e){return _this2.props.downField(_this2.props.id)}},_react.default.createElement("i",{className:"material-icons mr-0"},"keyboard_arrow_down")))),_react.default.createElement("div",{className:"flex-grow-1 px-2"},_react.default.createElement(_NodeTriggerActionType.default,{onChange:this.changeType,type:this.props.action.get("type")})),_react.default.createElement("div",{className:"pr-2"},_react.default.createElement("div",{className:"input-group input-group-sm"},_react.default.createElement("div",{className:"input-group-prepend"},_react.default.createElement("span",{className:"input-group-text",id:"basic-addon1"},_react.default.createElement("span",{className:"material-icons"},"vpn_key"))),_react.default.createElement("input",{type:"text",className:"form-control",readOnly:"true",value:this.props.action.getIn(["_id"]),title:"Action ID"}))),_react.default.createElement("div",{className:"pr-2 pt-1 text-nowrap"},_react.default.createElement("label",{className:"form-check-label",title:"Response will not be executed. Usefull for a quick testing."},_react.default.createElement("input",{onChange:function(e){return _this2.props.onChangeContent({id:_this2.props.id,path:["skip_resp"],value:e.target.checked})},defaultChecked:this.props.action.getIn(["skip_resp"]),type:"checkbox"})," Skip")),_react.default.createElement("div",null,_react.default.createElement("button",{onClick:this.removeAction,type:"button",className:"btn btn-danger btn-sm float-right"},_react.default.createElement("i",{className:"material-icons mr-0"},"delete")))),_react.default.createElement("div",{className:"row"},_react.default.createElement("div",{className:"col-6"},_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,"Attribute identifier ",_react.default.createElement("a",{title:"Need help?",className:"float-right",onClick:function(e){return _this2.showHelp("attribute_identifier")}},_react.default.createElement("i",{className:"material-icons mr-0"},"help"))),_react.default.createElement("input",{type:"text",placeholder:"Attribute identifier",className:"form-control",onChange:function(e){return _this2.onchangeAttr({path:["attr_options","identifier"],value:e.target.value})},defaultValue:this.props.action.getIn(["content","attr_options","identifier"])}))),_react.default.createElement("div",{className:"col-6"},_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,"Attribute name ",_react.default.createElement("a",{title:"Need help?",className:"float-right",onClick:function(e){return _this2.showHelp("attribute_name")}},_react.default.createElement("i",{className:"material-icons mr-0"},"help"))),_react.default.createElement("input",{type:"text",placeholder:"Attribute name",className:"form-control",onChange:function(e){return _this2.onchangeAttr({path:["attr_options","name"],value:e.target.value})},defaultValue:this.props.action.getIn(["content","attr_options","name"])}))),_react.default.createElement("div",{className:"col-6"},_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,"Preg match rule. ",_react.default.createElement("a",{title:"Need help?",className:"float-right",onClick:function(e){return _this2.showHelp("preg_match")}},_react.default.createElement("i",{className:"material-icons mr-0"},"help"))),_react.default.createElement("input",{type:"text",placeholder:"Attribute name",className:"form-control",onChange:function(e){return _this2.onchangeAttr({path:["preg_match"],value:e.target.value})},defaultValue:this.props.action.getIn(["content","preg_match"])}))),_react.default.createElement("div",{className:"col-6"},_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,"Custom event to validate"),_react.default.createElement("input",{type:"text",placeholder:"Event name",className:"form-control",onChange:function(e){return _this2.onchangeAttr({path:["event"],value:e.target.value})},defaultValue:this.props.action.getIn(["content","event"])}))),_react.default.createElement("div",{className:"col-6"},_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,_react.default.createElement("input",{type:"checkbox",onChange:function(e){return _this2.onchangeAttr({path:["attr_options","cancel_button_enabled"],value:e.target.checked})},defaultChecked:this.props.action.getIn(["content","attr_options","cancel_button_enabled"])}),"Cancel button enabled on failed validation"))),_react.default.createElement("div",{className:"col-6"},_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,"Cancel button text"),_react.default.createElement("input",{type:"text",placeholder:"Cancel",className:"form-control",onChange:function(e){return _this2.onchangeAttr({path:["cancel_button"],value:e.target.value})},defaultValue:this.props.action.getIn(["content","cancel_button"])}))),_react.default.createElement("div",{className:"col-12"},_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,"Intro message"),_react.default.createElement("textarea",{className:"form-control",defaultValue:this.props.action.getIn(["content","intro_message"]),onChange:function(e){return _this2.onchangeAttr({path:["intro_message"],value:e.target.value})}}))),_react.default.createElement("div",{className:"col-6"},_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,"Execute trigger on validation failure"),_react.default.createElement(_NodeTriggerList.default,{onSetPayload:function(e){return _this2.onchangeAttr({path:["attr_options","collection_callback_fail"],value:e})},payload:this.props.action.getIn(["content","attr_options","collection_callback_fail"])}))),_react.default.createElement("div",{className:"col-6"},_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,"Validation error message"),_react.default.createElement("textarea",{className:"form-control",defaultValue:this.props.action.getIn(["content","validation_error"]),onChange:function(e){return _this2.onchangeAttr({path:["validation_error"],value:e.target.value})}}))),_react.default.createElement("div",{className:"col-6"},_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,"Execute trigger on success"),_react.default.createElement(_NodeTriggerList.default,{onSetPayload:function(e){return _this2.onchangeAttr({path:["attr_options","collection_callback_pattern"],value:e})},payload:this.props.action.getIn(["content","attr_options","collection_callback_pattern"])}))),_react.default.createElement("div",{className:"col-6"},_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,"Success message"),_react.default.createElement("textarea",{className:"form-control",defaultValue:this.props.action.getIn(["content","success_message"]),onChange:function(e){return _this2.onchangeAttr({path:["success_message"],value:e.target.value})}}))),_react.default.createElement("div",{className:"col-12"},_react.default.createElement("div",{className:"row"},_react.default.createElement("div",{className:"col-6"},_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,"Execute trigger on cancelation, overrides message on cancelation"),_react.default.createElement(_NodeTriggerList.default,{onSetPayload:function(e){return _this2.onchangeAttr({path:["attr_options","collection_callback_cancel"],value:e})},payload:this.props.action.getIn(["content","attr_options","collection_callback_cancel"])}))),_react.default.createElement("div",{className:"col-6"},_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,"Message on cancelation"),_react.default.createElement("textarea",{className:"form-control",defaultValue:this.props.action.getIn(["content","cancel_message"]),onChange:function(e){return _this2.onchangeAttr({path:["cancel_message"],value:e.target.value})}}))))),_react.default.createElement("div",{className:"col-12"},_react.default.createElement("label",null,_react.default.createElement("input",{type:"checkbox",onChange:function(e){return _this2.onchangeAttr({path:["soft_event"],value:e.target.checked})},defaultChecked:this.props.action.getIn(["content","soft_event"])})," Soft event. If this event is found while cliking another button - we will automatically terminate it."))),_react.default.createElement("hr",{className:"hr-big"}))}}])&&_defineProperties(Constructor.prototype,protoProps),staticProps&&_defineProperties(Constructor,staticProps),Object.defineProperty(Constructor,"prototype",{writable:!1}),NodeTriggerActionAttribute}(_react.Component);exports.default=_default},{"./NodeTriggerActionType":36,"./NodeTriggerList":41,react:146}],14:[function(require,module,exports){"use strict";function _typeof(obj){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _react=function(obj,nodeInterop){if(!nodeInterop&&obj&&obj.__esModule)return obj;if(null===obj||"object"!==_typeof(obj)&&"function"!=typeof obj)return{default:obj};var cache=_getRequireWildcardCache(nodeInterop);if(cache&&cache.has(obj))return cache.get(obj);var newObj={},hasPropertyDescriptor=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var key in obj)if("default"!==key&&Object.prototype.hasOwnProperty.call(obj,key)){var desc=hasPropertyDescriptor?Object.getOwnPropertyDescriptor(obj,key):null;desc&&(desc.get||desc.set)?Object.defineProperty(newObj,key,desc):newObj[key]=obj[key]}newObj.default=obj,cache&&cache.set(obj,newObj);return newObj}(require("react")),_NodeTriggerActionType=_interopRequireDefault(require("./NodeTriggerActionType")),_NodeActionButton=_interopRequireDefault(require("./buttons/NodeActionButton")),_shortid=(_interopRequireDefault(require("./NodeTriggerPayloadList")),_interopRequireDefault(require("shortid")));function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function _getRequireWildcardCache(nodeInterop){if("function"!=typeof WeakMap)return null;var cacheBabelInterop=new WeakMap,cacheNodeInterop=new WeakMap;return(_getRequireWildcardCache=function(nodeInterop){return nodeInterop?cacheNodeInterop:cacheBabelInterop})(nodeInterop)}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}function _setPrototypeOf(o,p){return(_setPrototypeOf=Object.setPrototypeOf||function(o,p){return o.__proto__=p,o})(o,p)}function _createSuper(Derived){var hasNativeReflectConstruct=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var result,Super=_getPrototypeOf(Derived);if(hasNativeReflectConstruct){var NewTarget=_getPrototypeOf(this).constructor;result=Reflect.construct(Super,arguments,NewTarget)}else result=Super.apply(this,arguments);return _possibleConstructorReturn(this,result)}}function _possibleConstructorReturn(self,call){if(call&&("object"===_typeof(call)||"function"==typeof call))return call;if(void 0!==call)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(self)}function _assertThisInitialized(self){if(void 0===self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return self}function _getPrototypeOf(o){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(o){return o.__proto__||Object.getPrototypeOf(o)})(o)}var _default=function(_Component){!function(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function");subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:!0,configurable:!0}}),Object.defineProperty(subClass,"prototype",{writable:!1}),superClass&&_setPrototypeOf(subClass,superClass)}(NodeTriggerActionButtons,_Component);var Constructor,protoProps,staticProps,_super=_createSuper(NodeTriggerActionButtons);function NodeTriggerActionButtons(props){var _this;return function(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}(this,NodeTriggerActionButtons),(_this=_super.call(this,props)).changeType=_this.changeType.bind(_assertThisInitialized(_this)),_this.removeAction=_this.removeAction.bind(_assertThisInitialized(_this)),_this.onchangeFieldAttr=_this.onchangeFieldAttr.bind(_assertThisInitialized(_this)),_this.onDeleteField=_this.onDeleteField.bind(_assertThisInitialized(_this)),_this.onMoveUpField=_this.onMoveUpField.bind(_assertThisInitialized(_this)),_this.onMoveDownField=_this.onMoveDownField.bind(_assertThisInitialized(_this)),_this.onChangeMainAttr=_this.onChangeMainAttr.bind(_assertThisInitialized(_this)),_this}return Constructor=NodeTriggerActionButtons,(protoProps=[{key:"changeType",value:function(e){this.props.onChangeType({id:this.props.id,type:e.target.value})}},{key:"removeAction",value:function(){this.props.removeAction({id:this.props.id})}},{key:"addField",value:function(){this.props.addSubelement({id:this.props.id,path:["content","buttons"],default:{_id:_shortid.default.generate(),type:"button",content:{name:"",payload:""}}})}},{key:"onchangeFieldAttr",value:function(e){this.props.onChangeContent({id:this.props.id,path:["content","buttons",e.id].concat(e.path),value:e.value})}},{key:"onDeleteField",value:function(fieldIndex){this.props.deleteSubelement({id:this.props.id,path:["content","buttons",fieldIndex]})}},{key:"onMoveUpField",value:function(fieldIndex){this.props.moveUpSubelement({id:this.props.id,index:fieldIndex,path:["content","buttons"]})}},{key:"onMoveDownField",value:function(fieldIndex){this.props.moveDownSubelement({id:this.props.id,index:fieldIndex,path:["content","buttons"]})}},{key:"onChangeMainAttr",value:function(field,e){this.props.onChangeContent({id:this.props.id,path:["content","buttons_options",field],value:e})}},{key:"render",value:function(){var _this2=this,button_list=[];return this.props.action.hasIn(["content","buttons"])&&(button_list=this.props.action.getIn(["content","buttons"]).map((function(field,index){return _react.default.createElement(_NodeActionButton.default,{id:index,isFirst:0==index,isLast:index+1==_this2.props.action.getIn(["content","buttons"]).size,key:field.get("_id"),button:field,onMoveDownField:_this2.onMoveDownField,onMoveUpField:_this2.onMoveUpField,onDeleteField:_this2.onDeleteField,onChangeFieldAttr:_this2.onchangeFieldAttr})}))),_react.default.createElement("div",null,_react.default.createElement("div",{className:"d-flex flex-row"},_react.default.createElement("div",null,_react.default.createElement("div",{className:"btn-group float-left",role:"group","aria-label":"Trigger actions"},_react.default.createElement("button",{disabled:!0,className:"btn btn-sm btn-info"},this.props.id+1),0==this.props.isFirst&&_react.default.createElement("button",{className:"btn btn-secondary btn-sm",onClick:function(e){return _this2.props.upField(_this2.props.id)}},_react.default.createElement("i",{className:"material-icons mr-0"},"keyboard_arrow_up")),0==this.props.isLast&&_react.default.createElement("button",{className:"btn btn-secondary btn-sm",onClick:function(e){return _this2.props.downField(_this2.props.id)}},_react.default.createElement("i",{className:"material-icons mr-0"},"keyboard_arrow_down")))),_react.default.createElement("div",{className:"flex-grow-1 px-2"},_react.default.createElement(_NodeTriggerActionType.default,{onChange:this.changeType,type:this.props.action.get("type")})),_react.default.createElement("div",{className:"pr-2"},_react.default.createElement("div",{className:"input-group input-group-sm"},_react.default.createElement("div",{className:"input-group-prepend"},_react.default.createElement("span",{className:"input-group-text",id:"basic-addon1"},_react.default.createElement("span",{className:"material-icons"},"vpn_key"))),_react.default.createElement("input",{type:"text",className:"form-control",readOnly:"true",value:this.props.action.getIn(["_id"]),title:"Action ID"}))),_react.default.createElement("div",{className:"pr-2 pt-1 text-nowrap"},_react.default.createElement("label",{className:"form-check-label",title:"Response will not be executed. Usefull for a quick testing."},_react.default.createElement("input",{onChange:function(e){return _this2.props.onChangeContent({id:_this2.props.id,path:["skip_resp"],value:e.target.checked})},defaultChecked:this.props.action.getIn(["skip_resp"]),type:"checkbox"})," Skip")),_react.default.createElement("div",null,_react.default.createElement("button",{onClick:this.removeAction,type:"button",className:"btn btn-danger btn-sm float-right"},_react.default.createElement("i",{className:"material-icons mr-0"},"delete")))),_react.default.createElement("div",null,_react.default.createElement("label",null,_react.default.createElement("input",{type:"checkbox",onChange:function(e){return _this2.onChangeMainAttr("hide_text_area",e.target.checked)},defaultChecked:this.props.action.getIn(["content","buttons_options","hide_text_area"])})," Hide text area on response.")," ",_react.default.createElement("i",{className:"material-icons",title:"Textarea to enter user message will be disabled. Make sure you include buttons for user to click."},"info")),_react.default.createElement("div",{className:"row"},_react.default.createElement("div",{className:"col-12"},_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,"Default message"),_react.default.createElement("input",{type:"text",className:"form-control",onChange:function(e){return _this2.onChangeMainAttr("message",e.target.value)},defaultValue:this.props.action.getIn(["content","buttons_options","message"])})))),_react.default.createElement("hr",null),_react.default.createElement("div",{className:"bot-buttons"},button_list),_react.default.createElement("button",{className:"btn btn-info btn-sm",onClick:this.addField.bind(this)},"Add button"),_react.default.createElement("hr",{className:"hr-big"}))}}])&&_defineProperties(Constructor.prototype,protoProps),staticProps&&_defineProperties(Constructor,staticProps),Object.defineProperty(Constructor,"prototype",{writable:!1}),NodeTriggerActionButtons}(_react.Component);exports.default=_default},{"./NodeTriggerActionType":36,"./NodeTriggerPayloadList":42,"./buttons/NodeActionButton":43,react:146,shortid:158}],15:[function(require,module,exports){"use strict";function _typeof(obj){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _react=function(obj,nodeInterop){if(!nodeInterop&&obj&&obj.__esModule)return obj;if(null===obj||"object"!==_typeof(obj)&&"function"!=typeof obj)return{default:obj};var cache=_getRequireWildcardCache(nodeInterop);if(cache&&cache.has(obj))return cache.get(obj);var newObj={},hasPropertyDescriptor=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var key in obj)if("default"!==key&&Object.prototype.hasOwnProperty.call(obj,key)){var desc=hasPropertyDescriptor?Object.getOwnPropertyDescriptor(obj,key):null;desc&&(desc.get||desc.set)?Object.defineProperty(newObj,key,desc):newObj[key]=obj[key]}newObj.default=obj,cache&&cache.set(obj,newObj);return newObj}(require("react")),_NodeTriggerActionType=_interopRequireDefault(require("./NodeTriggerActionType")),_NodeCollectableField=_interopRequireDefault(require("./collectable/NodeCollectableField")),_shortid=(_interopRequireDefault(require("./NodeTriggerPayloadList")),_interopRequireDefault(require("shortid"))),_NodeTriggerList=_interopRequireDefault(require("./NodeTriggerList"));function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function _getRequireWildcardCache(nodeInterop){if("function"!=typeof WeakMap)return null;var cacheBabelInterop=new WeakMap,cacheNodeInterop=new WeakMap;return(_getRequireWildcardCache=function(nodeInterop){return nodeInterop?cacheNodeInterop:cacheBabelInterop})(nodeInterop)}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}function _setPrototypeOf(o,p){return(_setPrototypeOf=Object.setPrototypeOf||function(o,p){return o.__proto__=p,o})(o,p)}function _createSuper(Derived){var hasNativeReflectConstruct=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var result,Super=_getPrototypeOf(Derived);if(hasNativeReflectConstruct){var NewTarget=_getPrototypeOf(this).constructor;result=Reflect.construct(Super,arguments,NewTarget)}else result=Super.apply(this,arguments);return _possibleConstructorReturn(this,result)}}function _possibleConstructorReturn(self,call){if(call&&("object"===_typeof(call)||"function"==typeof call))return call;if(void 0!==call)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(self)}function _assertThisInitialized(self){if(void 0===self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return self}function _getPrototypeOf(o){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(o){return o.__proto__||Object.getPrototypeOf(o)})(o)}var _default=function(_Component){!function(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function");subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:!0,configurable:!0}}),Object.defineProperty(subClass,"prototype",{writable:!1}),superClass&&_setPrototypeOf(subClass,superClass)}(NodeTriggerActionCollectable,_Component);var Constructor,protoProps,staticProps,_super=_createSuper(NodeTriggerActionCollectable);function NodeTriggerActionCollectable(props){var _this;return function(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}(this,NodeTriggerActionCollectable),(_this=_super.call(this,props)).changeType=_this.changeType.bind(_assertThisInitialized(_this)),_this.removeAction=_this.removeAction.bind(_assertThisInitialized(_this)),_this.onchangeFieldAttr=_this.onchangeFieldAttr.bind(_assertThisInitialized(_this)),_this.onDeleteField=_this.onDeleteField.bind(_assertThisInitialized(_this)),_this.onMoveUpField=_this.onMoveUpField.bind(_assertThisInitialized(_this)),_this.onMoveDownField=_this.onMoveDownField.bind(_assertThisInitialized(_this)),_this.payloadChange=_this.payloadChange.bind(_assertThisInitialized(_this)),_this.onChangeMainAttr=_this.onChangeMainAttr.bind(_assertThisInitialized(_this)),_this}return Constructor=NodeTriggerActionCollectable,(protoProps=[{key:"changeType",value:function(e){this.props.onChangeType({id:this.props.id,type:e.target.value})}},{key:"removeAction",value:function(){this.props.removeAction({id:this.props.id})}},{key:"addField",value:function(){this.props.addSubelement({id:this.props.id,path:["content","collectable_fields"],default:{_id:_shortid.default.generate(),type:"text",content:{message:"",name:"",validation:"",field:""}}})}},{key:"onchangeFieldAttr",value:function(e){this.props.onChangeContent({id:this.props.id,path:["content","collectable_fields",e.id].concat(e.path),value:e.value})}},{key:"onDeleteField",value:function(fieldIndex){this.props.deleteSubelement({id:this.props.id,path:["content","collectable_fields",fieldIndex]})}},{key:"onMoveUpField",value:function(fieldIndex){this.props.moveUpSubelement({id:this.props.id,index:fieldIndex,path:["content","collectable_fields"]})}},{key:"onMoveDownField",value:function(fieldIndex){this.props.moveDownSubelement({id:this.props.id,index:fieldIndex,path:["content","collectable_fields"]})}},{key:"payloadChange",value:function(e){console.log(e.target.value)}},{key:"onChangeMainAttr",value:function(field,e){this.props.onChangeContent({id:this.props.id,path:["content","collectable_options",field],value:e})}},{key:"render",value:function(){var _this2=this,collectable_fields=[];return this.props.action.hasIn(["content","collectable_fields"])&&(collectable_fields=this.props.action.getIn(["content","collectable_fields"]).map((function(field,index){return _react.default.createElement(_NodeCollectableField.default,{id:index,isFirst:0==index,isLast:index+1==_this2.props.action.getIn(["content","collectable_fields"]).size,key:field.get("_id"),field:field,onMoveDownField:_this2.onMoveDownField,onMoveUpField:_this2.onMoveUpField,onDeleteField:_this2.onDeleteField,onChangeFieldAttr:_this2.onchangeFieldAttr})}))),_react.default.createElement("div",null,_react.default.createElement("div",{className:"d-flex flex-row"},_react.default.createElement("div",null,_react.default.createElement("div",{className:"btn-group float-left",role:"group","aria-label":"Trigger actions"},_react.default.createElement("button",{disabled:!0,className:"btn btn-sm btn-info"},this.props.id+1),0==this.props.isFirst&&_react.default.createElement("button",{className:"btn btn-secondary btn-sm",onClick:function(e){return _this2.props.upField(_this2.props.id)}},_react.default.createElement("i",{className:"material-icons mr-0"},"keyboard_arrow_up")),0==this.props.isLast&&_react.default.createElement("button",{className:"btn btn-secondary btn-sm",onClick:function(e){return _this2.props.downField(_this2.props.id)}},_react.default.createElement("i",{className:"material-icons mr-0"},"keyboard_arrow_down")))),_react.default.createElement("div",{className:"flex-grow-1 px-2"},_react.default.createElement(_NodeTriggerActionType.default,{onChange:this.changeType,type:this.props.action.get("type")})),_react.default.createElement("div",{className:"pr-2"},_react.default.createElement("div",{className:"input-group input-group-sm"},_react.default.createElement("div",{className:"input-group-prepend"},_react.default.createElement("span",{className:"input-group-text",id:"basic-addon1"},_react.default.createElement("span",{className:"material-icons"},"vpn_key"))),_react.default.createElement("input",{type:"text",className:"form-control",readOnly:"true",value:this.props.action.getIn(["_id"]),title:"Action ID"}))),_react.default.createElement("div",{className:"pr-2 pt-1 text-nowrap"},_react.default.createElement("label",{className:"form-check-label",title:"Response will not be executed. Usefull for a quick testing."},_react.default.createElement("input",{onChange:function(e){return _this2.props.onChangeContent({id:_this2.props.id,path:["skip_resp"],value:e.target.checked})},defaultChecked:this.props.action.getIn(["skip_resp"]),type:"checkbox"})," Skip")),_react.default.createElement("div",null,_react.default.createElement("button",{onClick:this.removeAction,type:"button",className:"btn btn-danger btn-sm float-right"},_react.default.createElement("i",{className:"material-icons mr-0"},"delete")))),_react.default.createElement("div",{className:"row"},_react.default.createElement("div",{className:"col-12"},_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,"Collection identifier"),_react.default.createElement("input",{type:"text",className:"form-control",onChange:function(e){return _this2.onChangeMainAttr("identifier_collection",e.target.value)},defaultValue:this.props.action.getIn(["content","collectable_options","identifier_collection"])}))),_react.default.createElement("div",{className:"col-6"},_react.default.createElement("label",null,_react.default.createElement("input",{type:"checkbox",onChange:function(e){return _this2.onChangeMainAttr("show_summary",e.target.checked)},defaultChecked:this.props.action.getIn(["content","collectable_options","show_summary"])}),"Ask user to confirm collected information")),_react.default.createElement("div",{className:"col-6"},_react.default.createElement("label",null,_react.default.createElement("input",{type:"checkbox",onChange:function(e){return _this2.onChangeMainAttr("show_summary_checkbox",e.target.checked)},defaultChecked:this.props.action.getIn(["content","collectable_options","show_summary_checkbox"])}),"Ask user to confirm information by checking checkbox"))),_react.default.createElement("div",{className:"row"},_react.default.createElement("div",{className:"col-12"},_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,"Checkbox value"),_react.default.createElement("input",{type:"text",className:"form-control form-control-sm",onChange:function(e){return _this2.onChangeMainAttr("show_summary_checkbox_name",e.target.value)},defaultValue:this.props.action.getIn(["content","collectable_options","show_summary_checkbox_name"])}))),_react.default.createElement("div",{className:"col-6"},_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,"Confirm button value"),_react.default.createElement("input",{type:"text",className:"form-control form-control-sm",onChange:function(e){return _this2.onChangeMainAttr("show_summary_confirm_name",e.target.value)},defaultValue:this.props.action.getIn(["content","collectable_options","show_summary_confirm_name"])}))),_react.default.createElement("div",{className:"col-6"},_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,"Cancel button value"),_react.default.createElement("input",{type:"text",className:"form-control form-control-sm",onChange:function(e){return _this2.onChangeMainAttr("show_summary_cancel_name",e.target.value)},defaultValue:this.props.action.getIn(["content","collectable_options","show_summary_cancel_name"])}))),_react.default.createElement("div",{className:"col-6"},_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,"Custom summary formation event"),_react.default.createElement("input",{type:"text",className:"form-control form-control-sm",onChange:function(e){return _this2.onChangeMainAttr("show_summary_callback",e.target.value)},defaultValue:this.props.action.getIn(["content","collectable_options","show_summary_callback"])}))),_react.default.createElement("div",{className:"col-6"},_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,"Dispatch this event then all steps are successfuly completed"),_react.default.createElement("input",{type:"text",className:"form-control form-control-sm",onChange:function(e){return _this2.onChangeMainAttr("collection_callback",e.target.value)},defaultValue:this.props.action.getIn(["content","collectable_options","collection_callback"])}))),_react.default.createElement("div",{className:"col-12"},_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,"Question to confirm collected information"),_react.default.createElement("input",{type:"text",className:"form-control form-control-sm",onChange:function(e){return _this2.onChangeMainAttr("collection_confirm",e.target.value)},defaultValue:this.props.action.getIn(["content","collectable_options","collection_confirm"])}))),_react.default.createElement("div",{className:"col-12"},_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,"Message if user types instead of clicking confirm button"),_react.default.createElement("input",{type:"text",className:"form-control form-control-sm",onChange:function(e){return _this2.onChangeMainAttr("collection_confirm_missing",e.target.value)},defaultValue:this.props.action.getIn(["content","collectable_options","collection_confirm_missing"])}))),_react.default.createElement("div",{className:"col-6"},_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,"Argument"),_react.default.createElement("input",{type:"text",className:"form-control form-control-sm",onChange:function(e){return _this2.onChangeMainAttr("collection_argument",e.target.value)},defaultValue:this.props.action.getIn(["content","collectable_options","collection_argument"])}))),_react.default.createElement("div",{className:"col-6"},_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,"Workflow from begining expires in n minutes, 0 for unlimited"),_react.default.createElement("input",{type:"number",className:"form-control form-control-sm",onChange:function(e){return _this2.onChangeMainAttr("expires_in",e.target.value)},defaultValue:this.props.action.getIn(["content","collectable_options","expires_in"])}))),_react.default.createElement("div",{className:"col-12"},_react.default.createElement("p",null,"Then process is complete send this message to user or execute trigger"),_react.default.createElement("div",{className:"row"},_react.default.createElement("div",{className:"col-6"},_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,"Confirmation message"),_react.default.createElement("textarea",{className:"form-control form-control-sm",onChange:function(e){return _this2.onChangeMainAttr("confirmation_message",e.target.value)},defaultValue:this.props.action.getIn(["content","collectable_options","confirmation_message"])}))),_react.default.createElement("div",{className:"col-6"},_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,"Execute trigger"),_react.default.createElement(_NodeTriggerList.default,{onSetPayload:function(e){return _this2.onChangeMainAttr("collection_callback_pattern",e)},payload:this.props.action.getIn(["content","collectable_options","collection_callback_pattern"])})))),_react.default.createElement("p",null,"Then process is canceled send this message to user or execute trigger"),_react.default.createElement("div",{className:"row"},_react.default.createElement("div",{className:"col-6"},_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,"Cancel message"),_react.default.createElement("textarea",{className:"form-control form-control-sm",onChange:function(e){return _this2.onChangeMainAttr("cancel_message",e.target.value)},defaultValue:this.props.action.getIn(["content","collectable_options","cancel_message"])}))),_react.default.createElement("div",{className:"col-6"},_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,"Execute trigger"),_react.default.createElement(_NodeTriggerList.default,{onSetPayload:function(e){return _this2.onChangeMainAttr("collection_cancel_callback_pattern",e)},payload:this.props.action.getIn(["content","collectable_options","collection_cancel_callback_pattern"])})))),_react.default.createElement("p",null,"Then process is expired send this message to user or execute trigger"),_react.default.createElement("div",{className:"row"},_react.default.createElement("div",{className:"col-6"},_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,"Expire message"),_react.default.createElement("textarea",{className:"form-control",onChange:function(e){return _this2.onChangeMainAttr("expire_message",e.target.value)},defaultValue:this.props.action.getIn(["content","collectable_options","expire_message"])}))),_react.default.createElement("div",{className:"col-6"},_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,"Execute trigger"),_react.default.createElement(_NodeTriggerList.default,{onSetPayload:function(e){return _this2.onChangeMainAttr("collection_expire_callback_pattern",e)},payload:this.props.action.getIn(["content","collectable_options","collection_expire_callback_pattern"])}))))),_react.default.createElement("div",{className:"col-12"},_react.default.createElement("div",{className:"row"},_react.default.createElement("div",{className:"col-6"},_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,"Edit collected information image URL"),_react.default.createElement("input",{type:"text",className:"form-control",onChange:function(e){return _this2.onChangeMainAttr("edit_image_url",e.target.value)},defaultValue:this.props.action.getIn(["content","collectable_options","edit_image_url"])})))))),_react.default.createElement("hr",null),collectable_fields,_react.default.createElement("a",{className:"btn btn-info btn-sm",onClick:this.addField.bind(this)},"Add field"),_react.default.createElement("hr",{className:"hr-big"}))}}])&&_defineProperties(Constructor.prototype,protoProps),staticProps&&_defineProperties(Constructor,staticProps),Object.defineProperty(Constructor,"prototype",{writable:!1}),NodeTriggerActionCollectable}(_react.Component);exports.default=_default},{"./NodeTriggerActionType":36,"./NodeTriggerList":41,"./NodeTriggerPayloadList":42,"./collectable/NodeCollectableField":44,react:146,shortid:158}],16:[function(require,module,exports){"use strict";function _typeof(obj){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _react=function(obj,nodeInterop){if(!nodeInterop&&obj&&obj.__esModule)return obj;if(null===obj||"object"!==_typeof(obj)&&"function"!=typeof obj)return{default:obj};var cache=_getRequireWildcardCache(nodeInterop);if(cache&&cache.has(obj))return cache.get(obj);var newObj={},hasPropertyDescriptor=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var key in obj)if("default"!==key&&Object.prototype.hasOwnProperty.call(obj,key)){var desc=hasPropertyDescriptor?Object.getOwnPropertyDescriptor(obj,key):null;desc&&(desc.get||desc.set)?Object.defineProperty(newObj,key,desc):newObj[key]=obj[key]}newObj.default=obj,cache&&cache.set(obj,newObj);return newObj}(require("react")),_NodeTriggerActionType=_interopRequireDefault(require("./NodeTriggerActionType")),_NodeTriggerList=_interopRequireDefault(require("./NodeTriggerList"));function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function _getRequireWildcardCache(nodeInterop){if("function"!=typeof WeakMap)return null;var cacheBabelInterop=new WeakMap,cacheNodeInterop=new WeakMap;return(_getRequireWildcardCache=function(nodeInterop){return nodeInterop?cacheNodeInterop:cacheBabelInterop})(nodeInterop)}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}function _setPrototypeOf(o,p){return(_setPrototypeOf=Object.setPrototypeOf||function(o,p){return o.__proto__=p,o})(o,p)}function _createSuper(Derived){var hasNativeReflectConstruct=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var result,Super=_getPrototypeOf(Derived);if(hasNativeReflectConstruct){var NewTarget=_getPrototypeOf(this).constructor;result=Reflect.construct(Super,arguments,NewTarget)}else result=Super.apply(this,arguments);return _possibleConstructorReturn(this,result)}}function _possibleConstructorReturn(self,call){if(call&&("object"===_typeof(call)||"function"==typeof call))return call;if(void 0!==call)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(self)}function _assertThisInitialized(self){if(void 0===self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return self}function _getPrototypeOf(o){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(o){return o.__proto__||Object.getPrototypeOf(o)})(o)}var _default=function(_Component){!function(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function");subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:!0,configurable:!0}}),Object.defineProperty(subClass,"prototype",{writable:!1}),superClass&&_setPrototypeOf(subClass,superClass)}(NodeTriggerActionCommand,_Component);var Constructor,protoProps,staticProps,_super=_createSuper(NodeTriggerActionCommand);function NodeTriggerActionCommand(props){var _this;return function(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}(this,NodeTriggerActionCommand),(_this=_super.call(this,props)).changeType=_this.changeType.bind(_assertThisInitialized(_this)),_this.removeAction=_this.removeAction.bind(_assertThisInitialized(_this)),_this.onchangeAttr=_this.onchangeAttr.bind(_assertThisInitialized(_this)),_this}return Constructor=NodeTriggerActionCommand,(protoProps=[{key:"changeType",value:function(e){this.props.onChangeType({id:this.props.id,type:e.target.value})}},{key:"removeAction",value:function(){this.props.removeAction({id:this.props.id})}},{key:"onchangeAttr",value:function(e){this.props.onChangeContent({id:this.props.id,path:["content"].concat(e.path),value:e.value})}},{key:"render",value:function(){var _this2=this;return _react.default.createElement("div",null,_react.default.createElement("div",{className:"d-flex flex-row"},_react.default.createElement("div",null,_react.default.createElement("div",{className:"btn-group float-left",role:"group","aria-label":"Trigger actions"},_react.default.createElement("button",{disabled:!0,className:"btn btn-sm btn-info"},this.props.id+1),0==this.props.isFirst&&_react.default.createElement("button",{className:"btn btn-secondary btn-sm",onClick:function(e){return _this2.props.upField(_this2.props.id)}},_react.default.createElement("i",{className:"material-icons mr-0"},"keyboard_arrow_up")),0==this.props.isLast&&_react.default.createElement("button",{className:"btn btn-secondary btn-sm",onClick:function(e){return _this2.props.downField(_this2.props.id)}},_react.default.createElement("i",{className:"material-icons mr-0"},"keyboard_arrow_down")))),_react.default.createElement("div",{className:"flex-grow-1 px-2"},_react.default.createElement(_NodeTriggerActionType.default,{onChange:this.changeType,type:this.props.action.get("type")})),_react.default.createElement("div",{className:"pr-2"},_react.default.createElement("div",{className:"input-group input-group-sm"},_react.default.createElement("div",{className:"input-group-prepend"},_react.default.createElement("span",{className:"input-group-text",id:"basic-addon1"},_react.default.createElement("span",{className:"material-icons"},"vpn_key"))),_react.default.createElement("input",{type:"text",className:"form-control",readOnly:"true",value:this.props.action.getIn(["_id"]),title:"Action ID"}))),_react.default.createElement("div",{className:"pr-2 pt-1 text-nowrap"},_react.default.createElement("label",{className:"form-check-label",title:"Response will not be executed. Usefull for a quick testing."},_react.default.createElement("input",{onChange:function(e){return _this2.props.onChangeContent({id:_this2.props.id,path:["skip_resp"],value:e.target.checked})},defaultChecked:this.props.action.getIn(["skip_resp"]),type:"checkbox"})," Skip")),_react.default.createElement("div",null,_react.default.createElement("button",{onClick:this.removeAction,type:"button",className:"btn btn-danger btn-sm float-right"},_react.default.createElement("i",{className:"material-icons mr-0"},"delete")))),_react.default.createElement("div",{className:"row"},_react.default.createElement("div",{className:"col-12"},_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,"Command"),_react.default.createElement("select",{className:"form-control form-control-sm",onChange:function(e){return _this2.onchangeAttr({path:["command"],value:e.target.value})},defaultValue:this.props.action.getIn(["content","command"])},_react.default.createElement("option",{value:""},"Select action"),_react.default.createElement("optgroup",{label:"Chat related"},_react.default.createElement("option",{value:"stopchat"},"Stop chat and transfer to human"),_react.default.createElement("option",{value:"transfertobot"},"Transfer chat to bot"),_react.default.createElement("option",{value:"closechat"},"Close chat"),_react.default.createElement("option",{value:"chatvariable"},"Set chat variable [not visible by operator]"),_react.default.createElement("option",{value:"chatattribute"},"Set chat additional attribute [visible by operator]"),_react.default.createElement("option",{value:"dispatchevent"},"Dispatch Event"),_react.default.createElement("option",{value:"setchatattribute"},"Update main chat attribute"),_react.default.createElement("option",{value:"setdepartment"},"Change department"),_react.default.createElement("option",{value:"setsubject"},"Set subject"),_react.default.createElement("option",{value:"setliveattr"},"Set widget live attribute"),_react.default.createElement("option",{value:"removeprocess"},"Remove any previous process")),_react.default.createElement("optgroup",{label:"Chat messages aggregation"},_react.default.createElement("option",{value:"messageaggregation"},"Messages aggregation")),_react.default.createElement("optgroup",{label:"Visitor message related"},_react.default.createElement("option",{value:"messageattribute"},"Update main message attribute"),_react.default.createElement("option",{value:"metamsg"},"Set meta_msg attribute")))))),"closechat"==this.props.action.getIn(["content","command"])&&_react.default.createElement("div",null,_react.default.createElement("label",null,_react.default.createElement("input",{type:"checkbox",onChange:function(e){return _this2.onchangeAttr({path:["close_widget"],value:e.target.checked})},defaultChecked:this.props.action.getIn(["content","close_widget"])})," Close widget also.")),"stopchat"==this.props.action.getIn(["content","command"])&&_react.default.createElement("div",null,_react.default.createElement("label",null,_react.default.createElement("input",{type:"checkbox",onChange:function(e){return _this2.onchangeAttr({path:["payload_ignore_status"],value:e.target.checked})},defaultChecked:this.props.action.getIn(["content","payload_ignore_status"])})," Ignore department status and always transfer to operator."),_react.default.createElement("label",null,_react.default.createElement("input",{type:"checkbox",onChange:function(e){return _this2.onchangeAttr({path:["payload_ignore_dep_hours"],value:e.target.checked})},defaultChecked:this.props.action.getIn(["content","payload_ignore_dep_hours"])})," Ignore department online hours. This will force chat to be transfered to operator only if there is logged operators."),_react.default.createElement("div",{className:"row"},_react.default.createElement("div",{className:"col-6"},_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,"Search only for operators with this field"),_react.default.createElement("input",{className:"form-control form-control-sm",type:"text",placeholder:"email",onChange:function(e){return _this2.onchangeAttr({path:["payload_attr"],value:e.target.value})},defaultValue:this.props.action.getIn(["content","payload_attr"])}))),_react.default.createElement("div",{className:"col-6"},_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,"equal to"),_react.default.createElement("input",{className:"form-control form-control-sm",type:"text",placeholder:"",onChange:function(e){return _this2.onchangeAttr({path:["payload_val"],value:e.target.value})},defaultValue:this.props.action.getIn(["content","payload_val"])})))),_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,"If there is no online operators send this trigger to user"),_react.default.createElement(_NodeTriggerList.default,{onSetPayload:function(e){return _this2.onchangeAttr({path:["payload"],value:e})},payload:this.props.action.getIn(["content","payload"])})),_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,"If there is online operators send this trigger to user"),_react.default.createElement(_NodeTriggerList.default,{onSetPayload:function(e){return _this2.onchangeAttr({path:["payload_online"],value:e})},payload:this.props.action.getIn(["content","payload_online"])}))),"transfertobot"==this.props.action.getIn(["content","command"])&&_react.default.createElement("div",null,_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,"What trigger to execute once chat is transfered to bot"),_react.default.createElement(_NodeTriggerList.default,{onSetPayload:function(e){return _this2.onchangeAttr({path:["payload"],value:e})},payload:this.props.action.getIn(["content","payload"])}))),"metamsg"==this.props.action.getIn(["content","command"])&&_react.default.createElement("div",null,_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,"Set meta_msg variables in JSON format. It will merge with existing one."),_react.default.createElement("input",{className:"form-control form-control-sm",type:"text",placeholder:'{"bot_touched":true}',onChange:function(e){return _this2.onchangeAttr({path:["payload"],value:e.target.value})},defaultValue:this.props.action.getIn(["content","payload"])}))),"chatvariable"==this.props.action.getIn(["content","command"])&&_react.default.createElement("div",null,_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,_react.default.createElement("input",{type:"checkbox",onChange:function(e){return _this2.onchangeAttr({path:["update_if_empty"],value:e.target.checked})},defaultChecked:this.props.action.getIn(["content","update_if_empty"])})," Update only if empty")),_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,"Set chat variables in JSON format."),_react.default.createElement("input",{className:"form-control form-control-sm",type:"text",placeholder:'{"bot_touched":true}',onChange:function(e){return _this2.onchangeAttr({path:["payload"],value:e.target.value})},defaultValue:this.props.action.getIn(["content","payload"])}))),"setliveattr"==this.props.action.getIn(["content","command"])&&_react.default.createElement("div",null,_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,"Live attribute path"),_react.default.createElement("input",{className:"form-control form-control-sm",type:"text",placeholder:"['chat_ui','survey_id']",onChange:function(e){return _this2.onchangeAttr({path:["payload"],value:e.target.value})},defaultValue:this.props.action.getIn(["content","payload"])})),_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,_react.default.createElement("input",{type:"checkbox",onChange:function(e){return _this2.onchangeAttr({path:["remove_subject"],value:e.target.checked})},defaultChecked:this.props.action.getIn(["content","remove_subject"])})," Remove attribute if it exists.")),_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,_react.default.createElement("input",{type:"checkbox",onChange:function(e){return _this2.onchangeAttr({path:["remove_if_empty"],value:e.target.checked})},defaultChecked:this.props.action.getIn(["content","remove_if_empty"])}),' Remove attribute if it\'s value is empty (0,"",null).')),!this.props.action.getIn(["content","remove_subject"])&&_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,"Live attribute value in JSON format."),_react.default.createElement("textarea",{className:"form-control form-control-sm",type:"text",placeholder:"",onChange:function(e){return _this2.onchangeAttr({path:["payload_arg"],value:e.target.value})},defaultValue:this.props.action.getIn(["content","payload_arg"])}))),"chatattribute"==this.props.action.getIn(["content","command"])&&_react.default.createElement("div",null,_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,_react.default.createElement("input",{type:"checkbox",onChange:function(e){return _this2.onchangeAttr({path:["update_if_empty"],value:e.target.checked})},defaultChecked:this.props.action.getIn(["content","update_if_empty"])})," Update only if empty")),_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,"Set chat attribute in JSON format."),_react.default.createElement("input",{className:"form-control form-control-sm",type:"text",placeholder:'[{"value":"Attribute value or {content_1}","identifier":"attribute_name","key":"Attribute Name"}]',onChange:function(e){return _this2.onchangeAttr({path:["payload"],value:e.target.value})},defaultValue:this.props.action.getIn(["content","payload"])}))),"setsubject"==this.props.action.getIn(["content","command"])&&_react.default.createElement("div",null,_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,"Set subject for a chat. Enter subject ID from the subject list."),_react.default.createElement("input",{className:"form-control form-control-sm",type:"text",placeholder:"Please enter Subject ID.",onChange:function(e){return _this2.onchangeAttr({path:["payload"],value:e.target.value})},defaultValue:this.props.action.getIn(["content","payload"])})),_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,_react.default.createElement("input",{type:"checkbox",onChange:function(e){return _this2.onchangeAttr({path:["remove_subject"],value:e.target.checked})},defaultChecked:this.props.action.getIn(["content","remove_subject"])})," Remove subject. Instead of adding we will remove subject."))),"messageattribute"==this.props.action.getIn(["content","command"])&&_react.default.createElement("div",null,_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,"Main message attribute (msg,name_support,user_id,chat_id,time)"),_react.default.createElement("input",{className:"form-control form-control-sm",type:"text",placeholder:"remarks",onChange:function(e){return _this2.onchangeAttr({path:["payload"],value:e.target.value})},defaultValue:this.props.action.getIn(["content","payload"])})),_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,"Message attribute value."),_react.default.createElement("textarea",{className:"form-control form-control-sm",type:"text",placeholder:"",onChange:function(e){return _this2.onchangeAttr({path:["payload_arg"],value:e.target.value})},defaultValue:this.props.action.getIn(["content","payload_arg"])}))),"messageaggregation"==this.props.action.getIn(["content","command"])&&_react.default.createElement("div",null,_react.default.createElement("div",{className:"row"},_react.default.createElement("div",{className:"col-6"},_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,"Chat variable as Group field"),_react.default.createElement("input",{className:"form-control form-control-sm",type:"text",onChange:function(e){return _this2.onchangeAttr({path:["payload"],value:e.target.value})},defaultValue:this.props.action.getIn(["content","payload"])}))),"count_filter"!=this.props.action.getIn(["content","payload_arg_type"])&&"count"!=this.props.action.getIn(["content","payload_arg_type"])&&"ratio"!=this.props.action.getIn(["content","payload_arg_type"])&&_react.default.createElement("div",{className:"col-6"},_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,"Calculated value from group method"),_react.default.createElement("input",{className:"form-control form-control-sm",type:"text",onChange:function(e){return _this2.onchangeAttr({path:["payload_cond_field"],value:e.target.value})},defaultValue:this.props.action.getIn(["content","payload_cond_field"])}))),_react.default.createElement("div",{className:"col-12"},_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,"Group method"),_react.default.createElement("select",{className:"form-control form-control-sm",onChange:function(e){return _this2.onchangeAttr({path:["payload_arg_type"],value:e.target.value})},defaultValue:this.props.action.getIn(["content","payload_arg_type"])},_react.default.createElement("option",{value:""},"Select group logic"),_react.default.createElement("optgroup",{label:"Grouping"},_react.default.createElement("option",{value:"avg"},"AVG"),_react.default.createElement("option",{value:"sum"},"SUM"),_react.default.createElement("option",{value:"sum_avg"},"SUM as comparator and AVG as value"),_react.default.createElement("option",{value:"max"},"MAX"),_react.default.createElement("option",{value:"min"},"MIN"),_react.default.createElement("option",{value:"count_max"},"COUNT MAX (maximum number of grouped record)")),_react.default.createElement("optgroup",{label:"Counting"},_react.default.createElement("option",{value:"count"},"COUNT (total number of messages)"),_react.default.createElement("option",{value:"count_filter"},"COUNT FILTER (filtered by group value field)"),_react.default.createElement("option",{value:"ratio"},"RATIO in comparison with all messages"))))),"count"!=this.props.action.getIn(["content","payload_arg_type"])&&_react.default.createElement("div",{className:"col-6"},_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,"Group field (sentiment)"),_react.default.createElement("input",{className:"form-control form-control-sm",type:"text",onChange:function(e){return _this2.onchangeAttr({path:["payload_arg_field"],value:e.target.value})},defaultValue:this.props.action.getIn(["content","payload_arg_field"])}))),"count"!=this.props.action.getIn(["content","payload_arg_type"])&&_react.default.createElement("div",{className:"col-6"},_react.default.createElement("div",{className:"form-group"},("count_filter"==this.props.action.getIn(["content","payload_arg_type"])||"ratio"==this.props.action.getIn(["content","payload_arg_type"]))&&_react.default.createElement("label",null,"Filter value"),"count_filter"!=this.props.action.getIn(["content","payload_arg_type"])&&"ratio"!=this.props.action.getIn(["content","payload_arg_type"])&&_react.default.createElement("label",null,"Group value field. Eg (score field of the sentiment)"),_react.default.createElement("input",{className:"form-control form-control-sm",type:"text",onChange:function(e){return _this2.onchangeAttr({path:["payload_arg_val"],value:e.target.value})},defaultValue:this.props.action.getIn(["content","payload_arg_val"])}))),-1!==["ratio","avg","sum_avg","max","min","count_max"].indexOf(this.props.action.getIn(["content","payload_arg_type"]))&&_react.default.createElement("div",{className:"col-12"},_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,"Use only if value is one of. If not defined all possible values will be used."),_react.default.createElement("input",{className:"form-control form-control-sm",placeholder:"negative,positive",type:"text",onChange:function(e){return _this2.onchangeAttr({path:["payload_arg_val_sum"],value:e.target.value})},defaultValue:this.props.action.getIn(["content","payload_arg_val_sum"])}))),_react.default.createElement("div",{className:"col-12"},_react.default.createElement("label",null,"Messages to include"),_react.default.createElement("div",{className:"form-group"},_react.default.createElement("div",{className:"row"},_react.default.createElement("div",{className:"col-6"},_react.default.createElement("label",null,_react.default.createElement("input",{type:"checkbox",onChange:function(e){return _this2.onchangeAttr({path:["msg_type_all"],value:e.target.checked})},defaultChecked:this.props.action.getIn(["content","msg_type_all"])})," All messages")),_react.default.createElement("div",{className:"col-6"},_react.default.createElement("label",null,_react.default.createElement("input",{type:"checkbox",onChange:function(e){return _this2.onchangeAttr({path:["msg_type_vis"],value:e.target.checked})},defaultChecked:this.props.action.getIn(["content","msg_type_vis"])})," All visitor messages")),_react.default.createElement("div",{className:"col-6"},_react.default.createElement("label",null,_react.default.createElement("input",{type:"checkbox",onChange:function(e){return _this2.onchangeAttr({path:["msg_type_vis_bot"],value:e.target.checked})},defaultChecked:this.props.action.getIn(["content","msg_type_vis_bot"])})," Visitor messages with a bot")),_react.default.createElement("div",{className:"col-6"},_react.default.createElement("label",null,_react.default.createElement("input",{type:"checkbox",onChange:function(e){return _this2.onchangeAttr({path:["msg_type_vis_op"],value:e.target.checked})},defaultChecked:this.props.action.getIn(["content","msg_type_vis_op"])})," Visitor messages with an operator")),_react.default.createElement("div",{className:"col-6"},_react.default.createElement("label",null,_react.default.createElement("input",{type:"checkbox",onChange:function(e){return _this2.onchangeAttr({path:["msg_type_op"],value:e.target.checked})},defaultChecked:this.props.action.getIn(["content","msg_type_op"])})," Operator messages")),_react.default.createElement("div",{className:"col-6"},_react.default.createElement("label",null,_react.default.createElement("input",{type:"checkbox",onChange:function(e){return _this2.onchangeAttr({path:["msg_type_bot"],value:e.target.checked})},defaultChecked:this.props.action.getIn(["content","msg_type_bot"])})," Bot messages")))),_react.default.createElement("label",null,"Number of messages to include"),_react.default.createElement("select",{className:"form-control form-control-sm",onChange:function(e){return _this2.onchangeAttr({path:["payload_include_number"],value:e.target.value})},defaultValue:this.props.action.getIn(["content","payload_include_number"])},_react.default.createElement("option",{value:""},"All messages"),_react.default.createElement("option",{value:"f10"},"First 10% of the messages"),_react.default.createElement("option",{value:"f20"},"First 20% of the messages"),_react.default.createElement("option",{value:"f30"},"First 30% of the messages"),_react.default.createElement("option",{value:"f40"},"First 40% of the messages"),_react.default.createElement("option",{value:"f50"},"First 50% of the messages"),_react.default.createElement("option",{value:"f60"},"First 60% of the messages"),_react.default.createElement("option",{value:"f70"},"First 70% of the messages"),_react.default.createElement("option",{value:"f80"},"First 80% of the messages"),_react.default.createElement("option",{value:"f90"},"First 90% of the messages"),_react.default.createElement("option",{value:"l10"},"Last 10% of the messages"),_react.default.createElement("option",{value:"l20"},"Last 20% of the messages"),_react.default.createElement("option",{value:"l30"},"Last 30% of the messages"),_react.default.createElement("option",{value:"l40"},"Last 40% of the messages"),_react.default.createElement("option",{value:"l50"},"Last 50% of the messages"),_react.default.createElement("option",{value:"l60"},"Last 60% of the messages"),_react.default.createElement("option",{value:"l70"},"Last 70% of the messages"),_react.default.createElement("option",{value:"l80"},"Last 80% of the messages"),_react.default.createElement("option",{value:"l90"},"Last 90% of the messages"))))),"setchatattribute"==this.props.action.getIn(["content","command"])&&_react.default.createElement("div",null,_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,"Chat attribute name (nick,remarks,email,dep_id)."),_react.default.createElement("input",{className:"form-control form-control-sm",type:"text",placeholder:"remarks",onChange:function(e){return _this2.onchangeAttr({path:["payload"],value:e.target.value})},defaultValue:this.props.action.getIn(["content","payload"])})),_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,_react.default.createElement("input",{type:"checkbox",onChange:function(e){return _this2.onchangeAttr({path:["update_if_empty"],value:e.target.checked})},defaultChecked:this.props.action.getIn(["content","update_if_empty"])})," Update only if empty")),_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,"Chat attribute value."),_react.default.createElement("textarea",{className:"form-control form-control-sm",type:"text",placeholder:"",onChange:function(e){return _this2.onchangeAttr({path:["payload_arg"],value:e.target.value})},defaultValue:this.props.action.getIn(["content","payload_arg"])}))),"setdepartment"==this.props.action.getIn(["content","command"])&&_react.default.createElement("div",null,_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,"Enter department ID"),_react.default.createElement("input",{className:"form-control form-control-sm",type:"text",placeholder:"Department ID",onChange:function(e){return _this2.onchangeAttr({path:["payload"],value:e.target.value})},defaultValue:this.props.action.getIn(["content","payload"])}))),"dispatchevent"==this.props.action.getIn(["content","command"])&&_react.default.createElement("div",null,_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,"Event Name"),_react.default.createElement("input",{className:"form-control form-control-sm",type:"text",placeholder:"SetSubjectExtension",onChange:function(e){return _this2.onchangeAttr({path:["payload"],value:e.target.value})},defaultValue:this.props.action.getIn(["content","payload"])})),_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,"Event argument"),_react.default.createElement("textarea",{className:"form-control form-control-sm",type:"text",onChange:function(e){return _this2.onchangeAttr({path:["payload_arg"],value:e.target.value})},defaultValue:this.props.action.getIn(["content","payload_arg"])}))),_react.default.createElement("hr",{className:"hr-big"}))}}])&&_defineProperties(Constructor.prototype,protoProps),staticProps&&_defineProperties(Constructor,staticProps),Object.defineProperty(Constructor,"prototype",{writable:!1}),NodeTriggerActionCommand}(_react.Component);exports.default=_default},{"./NodeTriggerActionType":36,"./NodeTriggerList":41,react:146}],17:[function(require,module,exports){"use strict";function _typeof(obj){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _react=function(obj,nodeInterop){if(!nodeInterop&&obj&&obj.__esModule)return obj;if(null===obj||"object"!==_typeof(obj)&&"function"!=typeof obj)return{default:obj};var cache=_getRequireWildcardCache(nodeInterop);if(cache&&cache.has(obj))return cache.get(obj);var newObj={},hasPropertyDescriptor=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var key in obj)if("default"!==key&&Object.prototype.hasOwnProperty.call(obj,key)){var desc=hasPropertyDescriptor?Object.getOwnPropertyDescriptor(obj,key):null;desc&&(desc.get||desc.set)?Object.defineProperty(newObj,key,desc):newObj[key]=obj[key]}newObj.default=obj,cache&&cache.set(obj,newObj);return newObj}(require("react")),_NodeTriggerActionType=_interopRequireDefault(require("./NodeTriggerActionType")),_NodeTriggerList=_interopRequireDefault(require("./NodeTriggerList")),_NodeActionConditionItem=_interopRequireDefault(require("./condition/NodeActionConditionItem")),_shortid=_interopRequireDefault(require("shortid"));function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function _getRequireWildcardCache(nodeInterop){if("function"!=typeof WeakMap)return null;var cacheBabelInterop=new WeakMap,cacheNodeInterop=new WeakMap;return(_getRequireWildcardCache=function(nodeInterop){return nodeInterop?cacheNodeInterop:cacheBabelInterop})(nodeInterop)}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}function _setPrototypeOf(o,p){return(_setPrototypeOf=Object.setPrototypeOf||function(o,p){return o.__proto__=p,o})(o,p)}function _createSuper(Derived){var hasNativeReflectConstruct=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var result,Super=_getPrototypeOf(Derived);if(hasNativeReflectConstruct){var NewTarget=_getPrototypeOf(this).constructor;result=Reflect.construct(Super,arguments,NewTarget)}else result=Super.apply(this,arguments);return _possibleConstructorReturn(this,result)}}function _possibleConstructorReturn(self,call){if(call&&("object"===_typeof(call)||"function"==typeof call))return call;if(void 0!==call)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(self)}function _assertThisInitialized(self){if(void 0===self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return self}function _getPrototypeOf(o){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(o){return o.__proto__||Object.getPrototypeOf(o)})(o)}var _default=function(_Component){!function(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function");subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:!0,configurable:!0}}),Object.defineProperty(subClass,"prototype",{writable:!1}),superClass&&_setPrototypeOf(subClass,superClass)}(NodeTriggerActionConditions,_Component);var Constructor,protoProps,staticProps,_super=_createSuper(NodeTriggerActionConditions);function NodeTriggerActionConditions(props){var _this;return function(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}(this,NodeTriggerActionConditions),(_this=_super.call(this,props)).changeType=_this.changeType.bind(_assertThisInitialized(_this)),_this.removeAction=_this.removeAction.bind(_assertThisInitialized(_this)),_this.onchangeAttr=_this.onchangeAttr.bind(_assertThisInitialized(_this)),_this.addCondition=_this.addCondition.bind(_assertThisInitialized(_this)),_this.onDeleteField=_this.onDeleteField.bind(_assertThisInitialized(_this)),_this.onchangeFieldAttr=_this.onchangeFieldAttr.bind(_assertThisInitialized(_this)),_this}return Constructor=NodeTriggerActionConditions,(protoProps=[{key:"changeType",value:function(e){this.props.onChangeType({id:this.props.id,type:e.target.value})}},{key:"removeAction",value:function(){this.props.removeAction({id:this.props.id})}},{key:"onchangeAttr",value:function(e){this.props.onChangeContent({id:this.props.id,path:["content"].concat(e.path),value:e.value})}},{key:"onchangeFieldAttr",value:function(e){this.props.onChangeContent({id:this.props.id,path:["content","conditions",e.id].concat(e.path),value:e.value})}},{key:"addCondition",value:function(){this.props.addSubelement({id:this.props.id,path:["content","conditions"],default:{_id:_shortid.default.generate(),type:"condition",content:{field:"",comp:"",val:""}}})}},{key:"onDeleteField",value:function(fieldIndex){this.props.deleteSubelement({id:this.props.id,path:["content","conditions",fieldIndex]})}},{key:"render",value:function(){var _this2=this,button_list=[];return this.props.action.hasIn(["content","conditions"])&&(button_list=this.props.action.getIn(["content","conditions"]).map((function(field,index){return _react.default.createElement(_NodeActionConditionItem.default,{id:index,isFirst:0==index,isLast:index+1==_this2.props.action.getIn(["content","conditions"]).size,key:field.get("_id"),action:field,onMoveDownField:_this2.onMoveDownField,onMoveUpField:_this2.onMoveUpField,onDeleteField:_this2.onDeleteField,onChangeFieldAttr:_this2.onchangeFieldAttr})}))),_react.default.createElement("div",null,_react.default.createElement("div",{className:"d-flex flex-row"},_react.default.createElement("div",null,_react.default.createElement("div",{className:"btn-group float-left",role:"group","aria-label":"Trigger actions"},_react.default.createElement("button",{disabled:!0,className:"btn btn-sm btn-info"},this.props.id+1),0==this.props.isFirst&&_react.default.createElement("button",{className:"btn btn-secondary btn-sm",onClick:function(e){return _this2.props.upField(_this2.props.id)}},_react.default.createElement("i",{className:"material-icons mr-0"},"keyboard_arrow_up")),0==this.props.isLast&&_react.default.createElement("button",{className:"btn btn-secondary btn-sm",onClick:function(e){return _this2.props.downField(_this2.props.id)}},_react.default.createElement("i",{className:"material-icons mr-0"},"keyboard_arrow_down")))),_react.default.createElement("div",{className:"flex-grow-1 px-2"},_react.default.createElement(_NodeTriggerActionType.default,{onChange:this.changeType,type:this.props.action.get("type")})),_react.default.createElement("div",{className:"pr-2"},_react.default.createElement("div",{className:"input-group input-group-sm"},_react.default.createElement("div",{className:"input-group-prepend"},_react.default.createElement("span",{className:"input-group-text",id:"basic-addon1"},_react.default.createElement("span",{className:"material-icons"},"vpn_key"))),_react.default.createElement("input",{type:"text",className:"form-control",readOnly:"true",value:this.props.action.getIn(["_id"]),title:"Action ID"}))),_react.default.createElement("div",{className:"pr-2 pt-1 text-nowrap"},_react.default.createElement("label",{className:"form-check-label",title:"Response will not be executed. Usefull for a quick testing."},_react.default.createElement("input",{onChange:function(e){return _this2.props.onChangeContent({id:_this2.props.id,path:["skip_resp"],value:e.target.checked})},defaultChecked:this.props.action.getIn(["skip_resp"]),type:"checkbox"})," Skip")),_react.default.createElement("div",null,_react.default.createElement("button",{onClick:this.removeAction,type:"button",className:"btn btn-danger btn-sm float-right"},_react.default.createElement("i",{className:"material-icons mr-0"},"delete")))),_react.default.createElement("div",{className:"row"},_react.default.createElement("div",{className:"col-12"},_react.default.createElement("div",{className:"btn-group float-right",role:"group"},_react.default.createElement("button",{type:"button",onClick:this.addCondition,className:"btn btn-sm btn-secondary"},_react.default.createElement("i",{className:"material-icons mr-0"},"add")," Add condition")))),button_list,_react.default.createElement("div",{className:"row"},_react.default.createElement("div",{className:"col-6"},_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,"If conditions ",_react.default.createElement("b",null,"are")," met execute this trigger"),_react.default.createElement(_NodeTriggerList.default,{onSetPayload:function(e){return _this2.onchangeAttr({path:["attr_options","callback_match"],value:e})},payload:this.props.action.getIn(["content","attr_options","callback_match"])}))),_react.default.createElement("div",{className:"col-6"},_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,"Schedule this trigger execution"),_react.default.createElement(_NodeTriggerList.default,{onSetPayload:function(e){return _this2.onchangeAttr({path:["attr_options","callback_reschedule"],value:e})},payload:this.props.action.getIn(["content","attr_options","callback_reschedule"])})))),_react.default.createElement("div",{className:"row"},_react.default.createElement("div",{className:"col-6"},_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,"If conditions ",_react.default.createElement("b",null,"are NOT")," met execute this trigger"),_react.default.createElement(_NodeTriggerList.default,{onSetPayload:function(e){return _this2.onchangeAttr({path:["attr_options","callback_unmatch"],value:e})},payload:this.props.action.getIn(["content","attr_options","callback_unmatch"])}))),_react.default.createElement("div",{className:"col-6"},_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,"Schedule this trigger execution"),_react.default.createElement(_NodeTriggerList.default,{onSetPayload:function(e){return _this2.onchangeAttr({path:["attr_options","callback_unreschedule"],value:e})},payload:this.props.action.getIn(["content","attr_options","callback_unreschedule"])}))),_react.default.createElement("div",{className:"col-12"},_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,_react.default.createElement("input",{type:"checkbox",onChange:function(e){return _this2.onchangeAttr({path:["attr_options","continue_all"],value:e.target.checked})},defaultChecked:this.props.action.getIn(["content","attr_options","continue_all"])})," If conditions are matched continue executing responses."),_react.default.createElement("p",null,_react.default.createElement("small",null,"By default if conditions are met we execute trigger and stop any futher responses execution."))))),_react.default.createElement("hr",{className:"hr-big"}))}}])&&_defineProperties(Constructor.prototype,protoProps),staticProps&&_defineProperties(Constructor,staticProps),Object.defineProperty(Constructor,"prototype",{writable:!1}),NodeTriggerActionConditions}(_react.Component);exports.default=_default},{"./NodeTriggerActionType":36,"./NodeTriggerList":41,"./condition/NodeActionConditionItem":45,react:146,shortid:158}],18:[function(require,module,exports){"use strict";function _typeof(obj){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _react=function(obj,nodeInterop){if(!nodeInterop&&obj&&obj.__esModule)return obj;if(null===obj||"object"!==_typeof(obj)&&"function"!=typeof obj)return{default:obj};var cache=_getRequireWildcardCache(nodeInterop);if(cache&&cache.has(obj))return cache.get(obj);var newObj={},hasPropertyDescriptor=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var key in obj)if("default"!==key&&Object.prototype.hasOwnProperty.call(obj,key)){var desc=hasPropertyDescriptor?Object.getOwnPropertyDescriptor(obj,key):null;desc&&(desc.get||desc.set)?Object.defineProperty(newObj,key,desc):newObj[key]=obj[key]}newObj.default=obj,cache&&cache.set(obj,newObj);return newObj}(require("react")),_NodeTriggerActionType=_interopRequireDefault(require("./NodeTriggerActionType")),_NodeEventActionTypeItem=_interopRequireDefault(require("./events/NodeEventActionTypeItem")),_shortid=_interopRequireDefault(require("shortid"));function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function _getRequireWildcardCache(nodeInterop){if("function"!=typeof WeakMap)return null;var cacheBabelInterop=new WeakMap,cacheNodeInterop=new WeakMap;return(_getRequireWildcardCache=function(nodeInterop){return nodeInterop?cacheNodeInterop:cacheBabelInterop})(nodeInterop)}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}function _setPrototypeOf(o,p){return(_setPrototypeOf=Object.setPrototypeOf||function(o,p){return o.__proto__=p,o})(o,p)}function _createSuper(Derived){var hasNativeReflectConstruct=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var result,Super=_getPrototypeOf(Derived);if(hasNativeReflectConstruct){var NewTarget=_getPrototypeOf(this).constructor;result=Reflect.construct(Super,arguments,NewTarget)}else result=Super.apply(this,arguments);return _possibleConstructorReturn(this,result)}}function _possibleConstructorReturn(self,call){if(call&&("object"===_typeof(call)||"function"==typeof call))return call;if(void 0!==call)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(self)}function _assertThisInitialized(self){if(void 0===self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return self}function _getPrototypeOf(o){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(o){return o.__proto__||Object.getPrototypeOf(o)})(o)}var _default=function(_Component){!function(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function");subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:!0,configurable:!0}}),Object.defineProperty(subClass,"prototype",{writable:!1}),superClass&&_setPrototypeOf(subClass,superClass)}(NodeTriggerActionEventType,_Component);var Constructor,protoProps,staticProps,_super=_createSuper(NodeTriggerActionEventType);function NodeTriggerActionEventType(props){var _this;return function(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}(this,NodeTriggerActionEventType),(_this=_super.call(this,props)).changeType=_this.changeType.bind(_assertThisInitialized(_this)),_this.removeAction=_this.removeAction.bind(_assertThisInitialized(_this)),_this.onchangeAttr=_this.onchangeAttr.bind(_assertThisInitialized(_this)),_this.onchangeFieldAttr=_this.onchangeFieldAttr.bind(_assertThisInitialized(_this)),_this.onDeleteField=_this.onDeleteField.bind(_assertThisInitialized(_this)),_this}return Constructor=NodeTriggerActionEventType,(protoProps=[{key:"changeType",value:function(e){this.props.onChangeType({id:this.props.id,type:e.target.value})}},{key:"removeAction",value:function(){this.props.removeAction({id:this.props.id})}},{key:"onchangeAttr",value:function(e){this.props.onChangeContent({id:this.props.id,path:["content"].concat(e.path),value:e.value})}},{key:"addField",value:function(){this.props.addSubelement({id:this.props.id,path:["content","events"],default:{_id:_shortid.default.generate(),type:"button",content:{identifier:"",trigger_id:""}}})}},{key:"onDeleteField",value:function(fieldIndex){this.props.deleteSubelement({id:this.props.id,path:["content","events",fieldIndex]})}},{key:"onchangeFieldAttr",value:function(e){this.props.onChangeContent({id:this.props.id,path:["content","events",e.id].concat(e.path),value:e.value})}},{key:"render",value:function(){var _this2=this,event_list=[];return this.props.action.hasIn(["content","events"])&&(event_list=this.props.action.getIn(["content","events"]).map((function(field,index){return _react.default.createElement(_NodeEventActionTypeItem.default,{id:index,isFirst:0==index,isLast:index+1==_this2.props.action.getIn(["content","events"]).size,key:field.get("_id"),button:field,onMoveDownField:_this2.onMoveDownField,onMoveUpField:_this2.onMoveUpField,onDeleteField:_this2.onDeleteField,onChangeFieldAttr:_this2.onchangeFieldAttr})}))),_react.default.createElement("div",null,_react.default.createElement("div",{className:"d-flex flex-row"},_react.default.createElement("div",null,_react.default.createElement("div",{className:"btn-group float-left",role:"group","aria-label":"Trigger actions"},_react.default.createElement("button",{disabled:!0,className:"btn btn-sm btn-info"},this.props.id+1),0==this.props.isFirst&&_react.default.createElement("button",{className:"btn btn-secondary btn-sm",onClick:function(e){return _this2.props.upField(_this2.props.id)}},_react.default.createElement("i",{className:"material-icons mr-0"},"keyboard_arrow_up")),0==this.props.isLast&&_react.default.createElement("button",{className:"btn btn-secondary btn-sm",onClick:function(e){return _this2.props.downField(_this2.props.id)}},_react.default.createElement("i",{className:"material-icons mr-0"},"keyboard_arrow_down")))),_react.default.createElement("div",{className:"flex-grow-1 px-2"},_react.default.createElement(_NodeTriggerActionType.default,{onChange:this.changeType,type:this.props.action.get("type")})),_react.default.createElement("div",{className:"pr-2"},_react.default.createElement("div",{className:"input-group input-group-sm"},_react.default.createElement("div",{className:"input-group-prepend"},_react.default.createElement("span",{className:"input-group-text",id:"basic-addon1"},_react.default.createElement("span",{className:"material-icons"},"vpn_key"))),_react.default.createElement("input",{type:"text",className:"form-control",readOnly:"true",value:this.props.action.getIn(["_id"]),title:"Action ID"}))),_react.default.createElement("div",{className:"pr-2 pt-1 text-nowrap"},_react.default.createElement("label",{className:"form-check-label",title:"Response will not be executed. Usefull for a quick testing."},_react.default.createElement("input",{onChange:function(e){return _this2.props.onChangeContent({id:_this2.props.id,path:["skip_resp"],value:e.target.checked})},defaultChecked:this.props.action.getIn(["skip_resp"]),type:"checkbox"})," Skip")),_react.default.createElement("div",null,_react.default.createElement("button",{onClick:this.removeAction,type:"button",className:"btn btn-danger btn-sm float-right"},_react.default.createElement("i",{className:"material-icons mr-0"},"delete")))),_react.default.createElement("hr",null),_react.default.createElement("div",{className:"bot-buttons"},event_list),_react.default.createElement("button",{className:"btn btn-info btn-sm",onClick:this.addField.bind(this)},"Add event"),_react.default.createElement("hr",{className:"hr-big"}))}}])&&_defineProperties(Constructor.prototype,protoProps),staticProps&&_defineProperties(Constructor,staticProps),Object.defineProperty(Constructor,"prototype",{writable:!1}),NodeTriggerActionEventType}(_react.Component);exports.default=_default},{"./NodeTriggerActionType":36,"./events/NodeEventActionTypeItem":46,react:146,shortid:158}],19:[function(require,module,exports){"use strict";function _typeof(obj){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var obj,_react=function(obj,nodeInterop){if(!nodeInterop&&obj&&obj.__esModule)return obj;if(null===obj||"object"!==_typeof(obj)&&"function"!=typeof obj)return{default:obj};var cache=_getRequireWildcardCache(nodeInterop);if(cache&&cache.has(obj))return cache.get(obj);var newObj={},hasPropertyDescriptor=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var key in obj)if("default"!==key&&Object.prototype.hasOwnProperty.call(obj,key)){var desc=hasPropertyDescriptor?Object.getOwnPropertyDescriptor(obj,key):null;desc&&(desc.get||desc.set)?Object.defineProperty(newObj,key,desc):newObj[key]=obj[key]}newObj.default=obj,cache&&cache.set(obj,newObj);return newObj}(require("react")),_NodeTriggerActionType=(obj=require("./NodeTriggerActionType"))&&obj.__esModule?obj:{default:obj};function _getRequireWildcardCache(nodeInterop){if("function"!=typeof WeakMap)return null;var cacheBabelInterop=new WeakMap,cacheNodeInterop=new WeakMap;return(_getRequireWildcardCache=function(nodeInterop){return nodeInterop?cacheNodeInterop:cacheBabelInterop})(nodeInterop)}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}function _setPrototypeOf(o,p){return(_setPrototypeOf=Object.setPrototypeOf||function(o,p){return o.__proto__=p,o})(o,p)}function _createSuper(Derived){var hasNativeReflectConstruct=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var result,Super=_getPrototypeOf(Derived);if(hasNativeReflectConstruct){var NewTarget=_getPrototypeOf(this).constructor;result=Reflect.construct(Super,arguments,NewTarget)}else result=Super.apply(this,arguments);return _possibleConstructorReturn(this,result)}}function _possibleConstructorReturn(self,call){if(call&&("object"===_typeof(call)||"function"==typeof call))return call;if(void 0!==call)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(self)}function _assertThisInitialized(self){if(void 0===self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return self}function _getPrototypeOf(o){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(o){return o.__proto__||Object.getPrototypeOf(o)})(o)}var _default=function(_Component){!function(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function");subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:!0,configurable:!0}}),Object.defineProperty(subClass,"prototype",{writable:!1}),superClass&&_setPrototypeOf(subClass,superClass)}(NodeTriggerActionExecuteJS,_Component);var Constructor,protoProps,staticProps,_super=_createSuper(NodeTriggerActionExecuteJS);function NodeTriggerActionExecuteJS(props){var _this;return function(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}(this,NodeTriggerActionExecuteJS),(_this=_super.call(this,props)).changeType=_this.changeType.bind(_assertThisInitialized(_this)),_this.removeAction=_this.removeAction.bind(_assertThisInitialized(_this)),_this.onchangeAttr=_this.onchangeAttr.bind(_assertThisInitialized(_this)),_this.showHelp=_this.showHelp.bind(_assertThisInitialized(_this)),_this}return Constructor=NodeTriggerActionExecuteJS,(protoProps=[{key:"changeType",value:function(e){this.props.onChangeType({id:this.props.id,type:e.target.value})}},{key:"removeAction",value:function(){this.props.removeAction({id:this.props.id})}},{key:"onchangeAttr",value:function(e){this.props.onChangeContent({id:this.props.id,path:["content"].concat(e.path),value:e.value})}},{key:"showHelp",value:function(e){lhc.revealModal({url:WWW_DIR_JAVASCRIPT+"genericbot/help/"+e})}},{key:"render",value:function(){var _this2=this;return _react.default.createElement("div",null,_react.default.createElement("div",{className:"d-flex flex-row"},_react.default.createElement("div",null,_react.default.createElement("div",{className:"btn-group float-left",role:"group","aria-label":"Trigger actions"},_react.default.createElement("button",{disabled:!0,className:"btn btn-sm btn-info"},this.props.id+1),0==this.props.isFirst&&_react.default.createElement("button",{className:"btn btn-secondary btn-sm",onClick:function(e){return _this2.props.upField(_this2.props.id)}},_react.default.createElement("i",{className:"material-icons mr-0"},"keyboard_arrow_up")),0==this.props.isLast&&_react.default.createElement("button",{className:"btn btn-secondary btn-sm",onClick:function(e){return _this2.props.downField(_this2.props.id)}},_react.default.createElement("i",{className:"material-icons mr-0"},"keyboard_arrow_down")))),_react.default.createElement("div",{className:"flex-grow-1 px-2"},_react.default.createElement(_NodeTriggerActionType.default,{onChange:this.changeType,type:this.props.action.get("type")})),_react.default.createElement("div",{className:"pr-2"},_react.default.createElement("div",{className:"input-group input-group-sm"},_react.default.createElement("div",{className:"input-group-prepend"},_react.default.createElement("span",{className:"input-group-text",id:"basic-addon1"},_react.default.createElement("span",{className:"material-icons"},"vpn_key"))),_react.default.createElement("input",{type:"text",className:"form-control",readOnly:"true",value:this.props.action.getIn(["_id"]),title:"Action ID"}))),_react.default.createElement("div",{className:"pr-2 pt-1 text-nowrap"},_react.default.createElement("label",{className:"form-check-label",title:"Response will not be executed. Usefull for a quick testing."},_react.default.createElement("input",{onChange:function(e){return _this2.props.onChangeContent({id:_this2.props.id,path:["skip_resp"],value:e.target.checked})},defaultChecked:this.props.action.getIn(["skip_resp"]),type:"checkbox"})," Skip")),_react.default.createElement("div",null,_react.default.createElement("button",{onClick:this.removeAction,type:"button",className:"btn btn-danger btn-sm float-right"},_react.default.createElement("i",{className:"material-icons mr-0"},"delete")))),_react.default.createElement("div",{className:"row"},_react.default.createElement("div",{className:"col-12"},_react.default.createElement("div",{className:"form-group"},_react.default.createElement("a",{title:"Need help?",className:"float-right",onClick:function(e){return _this2.showHelp("execute_js")}},_react.default.createElement("i",{className:"material-icons mr-0"},"help")),_react.default.createElement("label",null,"Execute JS"),_react.default.createElement("textarea",{rows:3,placeholder:"Write your javascript here!",onChange:function(e){return _this2.onchangeAttr({path:["payload"],value:e.target.value})},defaultValue:this.props.action.getIn(["content","payload"]),className:"form-control form-control-sm"}))),_react.default.createElement("div",{className:"col-6"},_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,"Script identifier"),_react.default.createElement("input",{type:"text",className:"form-control form-control-sm",onChange:function(e){return _this2.onchangeAttr({path:["ext_execute"],value:e.target.value})},defaultValue:this.props.action.getIn(["content","ext_execute"])}))),_react.default.createElement("div",{className:"col-6"},_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,"Arguments for the callback"),_react.default.createElement("input",{type:"text",className:"form-control form-control-sm",placeholder:"{show:true}",onChange:function(e){return _this2.onchangeAttr({path:["ext_args"],value:e.target.value})},defaultValue:this.props.action.getIn(["content","ext_args"])})))),_react.default.createElement("hr",{className:"hr-big"}))}}])&&_defineProperties(Constructor.prototype,protoProps),staticProps&&_defineProperties(Constructor,staticProps),Object.defineProperty(Constructor,"prototype",{writable:!1}),NodeTriggerActionExecuteJS}(_react.Component);exports.default=_default},{"./NodeTriggerActionType":36,react:146}],20:[function(require,module,exports){"use strict";function _typeof(obj){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _react=function(obj,nodeInterop){if(!nodeInterop&&obj&&obj.__esModule)return obj;if(null===obj||"object"!==_typeof(obj)&&"function"!=typeof obj)return{default:obj};var cache=_getRequireWildcardCache(nodeInterop);if(cache&&cache.has(obj))return cache.get(obj);var newObj={},hasPropertyDescriptor=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var key in obj)if("default"!==key&&Object.prototype.hasOwnProperty.call(obj,key)){var desc=hasPropertyDescriptor?Object.getOwnPropertyDescriptor(obj,key):null;desc&&(desc.get||desc.set)?Object.defineProperty(newObj,key,desc):newObj[key]=obj[key]}newObj.default=obj,cache&&cache.set(obj,newObj);return newObj}(require("react")),_NodeTriggerActionType=_interopRequireDefault(require("./NodeTriggerActionType")),_NodeActionListItem=_interopRequireDefault(require("./list/NodeActionListItem")),_shortid=(_interopRequireDefault(require("./NodeTriggerPayloadList")),_interopRequireDefault(require("shortid")));function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function _getRequireWildcardCache(nodeInterop){if("function"!=typeof WeakMap)return null;var cacheBabelInterop=new WeakMap,cacheNodeInterop=new WeakMap;return(_getRequireWildcardCache=function(nodeInterop){return nodeInterop?cacheNodeInterop:cacheBabelInterop})(nodeInterop)}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}function _setPrototypeOf(o,p){return(_setPrototypeOf=Object.setPrototypeOf||function(o,p){return o.__proto__=p,o})(o,p)}function _createSuper(Derived){var hasNativeReflectConstruct=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var result,Super=_getPrototypeOf(Derived);if(hasNativeReflectConstruct){var NewTarget=_getPrototypeOf(this).constructor;result=Reflect.construct(Super,arguments,NewTarget)}else result=Super.apply(this,arguments);return _possibleConstructorReturn(this,result)}}function _possibleConstructorReturn(self,call){if(call&&("object"===_typeof(call)||"function"==typeof call))return call;if(void 0!==call)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(self)}function _assertThisInitialized(self){if(void 0===self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return self}function _getPrototypeOf(o){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(o){return o.__proto__||Object.getPrototypeOf(o)})(o)}var _default=function(_Component){!function(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function");subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:!0,configurable:!0}}),Object.defineProperty(subClass,"prototype",{writable:!1}),superClass&&_setPrototypeOf(subClass,superClass)}(NodeTriggerActionGeneric,_Component);var Constructor,protoProps,staticProps,_super=_createSuper(NodeTriggerActionGeneric);function NodeTriggerActionGeneric(props){var _this;return function(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}(this,NodeTriggerActionGeneric),(_this=_super.call(this,props)).changeType=_this.changeType.bind(_assertThisInitialized(_this)),_this.removeAction=_this.removeAction.bind(_assertThisInitialized(_this)),_this.onchangeFieldAttr=_this.onchangeFieldAttr.bind(_assertThisInitialized(_this)),_this.onDeleteField=_this.onDeleteField.bind(_assertThisInitialized(_this)),_this.onMoveUpField=_this.onMoveUpField.bind(_assertThisInitialized(_this)),_this.onMoveDownField=_this.onMoveDownField.bind(_assertThisInitialized(_this)),_this.onChangeMainAttr=_this.onChangeMainAttr.bind(_assertThisInitialized(_this)),_this.addSubelement=_this.addSubelement.bind(_assertThisInitialized(_this)),_this.onDeleteSubField=_this.onDeleteSubField.bind(_assertThisInitialized(_this)),_this}return Constructor=NodeTriggerActionGeneric,(protoProps=[{key:"changeType",value:function(e){this.props.onChangeType({id:this.props.id,type:e.target.value})}},{key:"removeAction",value:function(){this.props.removeAction({id:this.props.id})}},{key:"addField",value:function(){this.props.addSubelement({id:this.props.id,path:["content","list"],default:{_id:_shortid.default.generate(),type:"none",content:{img:"",title:"",subtitle:"",payload:"",subbuttons:[]}}})}},{key:"addSubelement",value:function(e){this.props.addSubelement({id:this.props.id,path:["content","list"].concat(e.path),default:e.default})}},{key:"onchangeFieldAttr",value:function(e){this.props.onChangeContent({id:this.props.id,path:["content","list",e.id].concat(e.path),value:e.value})}},{key:"onDeleteField",value:function(fieldIndex){this.props.deleteSubelement({id:this.props.id,path:["content","list",fieldIndex]})}},{key:"onDeleteSubField",value:function(e){this.props.deleteSubelement({id:this.props.id,path:["content","list"].concat(e.path)})}},{key:"onMoveUpField",value:function(fieldIndex){this.props.moveUpSubelement({id:this.props.id,index:fieldIndex,path:["content","list"]})}},{key:"onMoveDownField",value:function(fieldIndex){this.props.moveDownSubelement({id:this.props.id,index:fieldIndex,path:["content","list"]})}},{key:"onChangeMainAttr",value:function(field,e){this.props.onChangeContent({id:this.props.id,path:["content","list_options",field],value:e})}},{key:"render",value:function(){var _this2=this,element_list=[];return this.props.action.hasIn(["content","list"])&&(element_list=this.props.action.getIn(["content","list"]).map((function(field,index){return _react.default.createElement(_NodeActionListItem.default,{id:index,isFirst:0==index,isLast:index+1==_this2.props.action.getIn(["content","list"]).size,onDeleteSubField:_this2.onDeleteSubField,addSubelement:_this2.addSubelement,key:field.get("_id"),item:field,onMoveDownField:_this2.onMoveDownField,onMoveUpField:_this2.onMoveUpField,onDeleteField:_this2.onDeleteField,onChangeFieldAttr:_this2.onchangeFieldAttr})}))),_react.default.createElement("div",null,_react.default.createElement("div",{className:"d-flex flex-row"},_react.default.createElement("div",null,_react.default.createElement("div",{className:"btn-group float-left",role:"group","aria-label":"Trigger actions"},_react.default.createElement("button",{disabled:!0,className:"btn btn-sm btn-info"},this.props.id+1),0==this.props.isFirst&&_react.default.createElement("button",{className:"btn btn-secondary btn-sm",onClick:function(e){return _this2.props.upField(_this2.props.id)}},_react.default.createElement("i",{className:"material-icons mr-0"},"keyboard_arrow_up")),0==this.props.isLast&&_react.default.createElement("button",{className:"btn btn-secondary btn-sm",onClick:function(e){return _this2.props.downField(_this2.props.id)}},_react.default.createElement("i",{className:"material-icons mr-0"},"keyboard_arrow_down")))),_react.default.createElement("div",{className:"flex-grow-1 px-2"},_react.default.createElement(_NodeTriggerActionType.default,{onChange:this.changeType,type:this.props.action.get("type")})),_react.default.createElement("div",{className:"pr-2"},_react.default.createElement("div",{className:"input-group input-group-sm"},_react.default.createElement("div",{className:"input-group-prepend"},_react.default.createElement("span",{className:"input-group-text",id:"basic-addon1"},_react.default.createElement("span",{className:"material-icons"},"vpn_key"))),_react.default.createElement("input",{type:"text",className:"form-control",readOnly:"true",value:this.props.action.getIn(["_id"]),title:"Action ID"}))),_react.default.createElement("div",{className:"pr-2 pt-1 text-nowrap"},_react.default.createElement("label",{className:"form-check-label",title:"Response will not be executed. Usefull for a quick testing."},_react.default.createElement("input",{onChange:function(e){return _this2.props.onChangeContent({id:_this2.props.id,path:["skip_resp"],value:e.target.checked})},defaultChecked:this.props.action.getIn(["skip_resp"]),type:"checkbox"})," Skip")),_react.default.createElement("div",null,_react.default.createElement("button",{onClick:this.removeAction,type:"button",className:"btn btn-danger btn-sm float-right"},_react.default.createElement("i",{className:"material-icons mr-0"},"delete")))),_react.default.createElement("div",{role:"group"},_react.default.createElement("label",null,_react.default.createElement("input",{type:"checkbox",onChange:function(e){return _this2.onChangeMainAttr("hide_text_area",e.target.checked)},defaultChecked:this.props.action.getIn(["content","list_options","hide_text_area"])})," Hide text area on response.")," ",_react.default.createElement("i",{className:"material-icons",title:"Textarea to enter user message will be disabled. Make sure you include buttons for user to click."},"info")),_react.default.createElement("div",{className:"bot-elements"},element_list,_react.default.createElement("div",null,_react.default.createElement("a",{className:"btn btn-info btn-sm",onClick:this.addField.bind(this)},"Add Element"))),_react.default.createElement("hr",{className:"hr-big"}))}}])&&_defineProperties(Constructor.prototype,protoProps),staticProps&&_defineProperties(Constructor,staticProps),Object.defineProperty(Constructor,"prototype",{writable:!1}),NodeTriggerActionGeneric}(_react.Component);exports.default=_default},{"./NodeTriggerActionType":36,"./NodeTriggerPayloadList":42,"./list/NodeActionListItem":48,react:146,shortid:158}],21:[function(require,module,exports){"use strict";function _typeof(obj){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _react=function(obj,nodeInterop){if(!nodeInterop&&obj&&obj.__esModule)return obj;if(null===obj||"object"!==_typeof(obj)&&"function"!=typeof obj)return{default:obj};var cache=_getRequireWildcardCache(nodeInterop);if(cache&&cache.has(obj))return cache.get(obj);var newObj={},hasPropertyDescriptor=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var key in obj)if("default"!==key&&Object.prototype.hasOwnProperty.call(obj,key)){var desc=hasPropertyDescriptor?Object.getOwnPropertyDescriptor(obj,key):null;desc&&(desc.get||desc.set)?Object.defineProperty(newObj,key,desc):newObj[key]=obj[key]}newObj.default=obj,cache&&cache.set(obj,newObj);return newObj}(require("react")),_NodeTriggerActionType=_interopRequireDefault(require("./NodeTriggerActionType")),_NodeActionIntentItem=(_interopRequireDefault(require("./NodeTriggerList")),_interopRequireDefault(require("./intent/NodeActionIntentItem"))),_shortid=_interopRequireDefault(require("shortid"));function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function _getRequireWildcardCache(nodeInterop){if("function"!=typeof WeakMap)return null;var cacheBabelInterop=new WeakMap,cacheNodeInterop=new WeakMap;return(_getRequireWildcardCache=function(nodeInterop){return nodeInterop?cacheNodeInterop:cacheBabelInterop})(nodeInterop)}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}function _setPrototypeOf(o,p){return(_setPrototypeOf=Object.setPrototypeOf||function(o,p){return o.__proto__=p,o})(o,p)}function _createSuper(Derived){var hasNativeReflectConstruct=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var result,Super=_getPrototypeOf(Derived);if(hasNativeReflectConstruct){var NewTarget=_getPrototypeOf(this).constructor;result=Reflect.construct(Super,arguments,NewTarget)}else result=Super.apply(this,arguments);return _possibleConstructorReturn(this,result)}}function _possibleConstructorReturn(self,call){if(call&&("object"===_typeof(call)||"function"==typeof call))return call;if(void 0!==call)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(self)}function _assertThisInitialized(self){if(void 0===self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return self}function _getPrototypeOf(o){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(o){return o.__proto__||Object.getPrototypeOf(o)})(o)}var _default=function(_Component){!function(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function");subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:!0,configurable:!0}}),Object.defineProperty(subClass,"prototype",{writable:!1}),superClass&&_setPrototypeOf(subClass,superClass)}(NodeTriggerActionIntent,_Component);var Constructor,protoProps,staticProps,_super=_createSuper(NodeTriggerActionIntent);function NodeTriggerActionIntent(props){var _this;return function(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}(this,NodeTriggerActionIntent),(_this=_super.call(this,props)).changeType=_this.changeType.bind(_assertThisInitialized(_this)),_this.removeAction=_this.removeAction.bind(_assertThisInitialized(_this)),_this.onchangeAttr=_this.onchangeAttr.bind(_assertThisInitialized(_this)),_this.addIntent=_this.addIntent.bind(_assertThisInitialized(_this)),_this.onDeleteField=_this.onDeleteField.bind(_assertThisInitialized(_this)),_this.onchangeFieldAttr=_this.onchangeFieldAttr.bind(_assertThisInitialized(_this)),_this}return Constructor=NodeTriggerActionIntent,(protoProps=[{key:"changeType",value:function(e){this.props.onChangeType({id:this.props.id,type:e.target.value})}},{key:"removeAction",value:function(){this.props.removeAction({id:this.props.id})}},{key:"onchangeAttr",value:function(e){this.props.onChangeContent({id:this.props.id,path:["content"].concat(e.path),value:e.value})}},{key:"onchangeFieldAttr",value:function(e){this.props.onChangeContent({id:this.props.id,path:["content","intents",e.id].concat(e.path),value:e.value})}},{key:"addIntent",value:function(){this.props.addSubelement({id:this.props.id,path:["content","intents"],default:{_id:_shortid.default.generate(),type:"intent",content:{words:""}}})}},{key:"onDeleteField",value:function(fieldIndex){this.props.deleteSubelement({id:this.props.id,path:["content","intents",fieldIndex]})}},{key:"render",value:function(){var _this2=this,button_list=[];return this.props.action.hasIn(["content","intents"])&&(button_list=this.props.action.getIn(["content","intents"]).map((function(field,index){return _react.default.createElement(_NodeActionIntentItem.default,{id:index,isFirst:0==index,isLast:index+1==_this2.props.action.getIn(["content","intents"]).size,key:field.get("_id"),action:field,onMoveDownField:_this2.onMoveDownField,onMoveUpField:_this2.onMoveUpField,onDeleteField:_this2.onDeleteField,onChangeFieldAttr:_this2.onchangeFieldAttr})}))),_react.default.createElement("div",null,_react.default.createElement("div",{className:"d-flex flex-row"},_react.default.createElement("div",null,_react.default.createElement("div",{className:"btn-group float-left",role:"group","aria-label":"Trigger actions"},_react.default.createElement("button",{disabled:!0,className:"btn btn-sm btn-info"},this.props.id+1),0==this.props.isFirst&&_react.default.createElement("button",{className:"btn btn-secondary btn-sm",onClick:function(e){return _this2.props.upField(_this2.props.id)}},_react.default.createElement("i",{className:"material-icons mr-0"},"keyboard_arrow_up")),0==this.props.isLast&&_react.default.createElement("button",{className:"btn btn-secondary btn-sm",onClick:function(e){return _this2.props.downField(_this2.props.id)}},_react.default.createElement("i",{className:"material-icons mr-0"},"keyboard_arrow_down")))),_react.default.createElement("div",{className:"flex-grow-1 px-2"},_react.default.createElement(_NodeTriggerActionType.default,{onChange:this.changeType,type:this.props.action.get("type")})),_react.default.createElement("div",{className:"pr-2"},_react.default.createElement("div",{className:"input-group input-group-sm"},_react.default.createElement("div",{className:"input-group-prepend"},_react.default.createElement("span",{className:"input-group-text",id:"basic-addon1"},_react.default.createElement("span",{className:"material-icons"},"vpn_key"))),_react.default.createElement("input",{type:"text",className:"form-control",readOnly:"true",value:this.props.action.getIn(["_id"]),title:"Action ID"}))),_react.default.createElement("div",{className:"pr-2 pt-1 text-nowrap"},_react.default.createElement("label",{className:"form-check-label",title:"Response will not be executed. Usefull for a quick testing."},_react.default.createElement("input",{onChange:function(e){return _this2.props.onChangeContent({id:_this2.props.id,path:["skip_resp"],value:e.target.checked})},defaultChecked:this.props.action.getIn(["skip_resp"]),type:"checkbox"})," Skip")),_react.default.createElement("div",null,_react.default.createElement("button",{onClick:this.removeAction,type:"button",className:"btn btn-danger btn-sm float-right"},_react.default.createElement("i",{className:"material-icons mr-0"},"delete")))),_react.default.createElement("div",{className:"row"},_react.default.createElement("div",{className:"col-12"},_react.default.createElement("div",{className:"btn-group float-right",role:"group"},_react.default.createElement("button",{onClick:this.addIntent,className:"btn btn-sm btn-secondary"},_react.default.createElement("i",{className:"material-icons mr-0"},"add")," Add intent detection")))),button_list,_react.default.createElement("hr",{className:"hr-big"}))}}])&&_defineProperties(Constructor.prototype,protoProps),staticProps&&_defineProperties(Constructor,staticProps),Object.defineProperty(Constructor,"prototype",{writable:!1}),NodeTriggerActionIntent}(_react.Component);exports.default=_default},{"./NodeTriggerActionType":36,"./NodeTriggerList":41,"./intent/NodeActionIntentItem":47,react:146,shortid:158}],22:[function(require,module,exports){"use strict";function _typeof(obj){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _react=function(obj,nodeInterop){if(!nodeInterop&&obj&&obj.__esModule)return obj;if(null===obj||"object"!==_typeof(obj)&&"function"!=typeof obj)return{default:obj};var cache=_getRequireWildcardCache(nodeInterop);if(cache&&cache.has(obj))return cache.get(obj);var newObj={},hasPropertyDescriptor=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var key in obj)if("default"!==key&&Object.prototype.hasOwnProperty.call(obj,key)){var desc=hasPropertyDescriptor?Object.getOwnPropertyDescriptor(obj,key):null;desc&&(desc.get||desc.set)?Object.defineProperty(newObj,key,desc):newObj[key]=obj[key]}newObj.default=obj,cache&&cache.set(obj,newObj);return newObj}(require("react")),_NodeTriggerActionType=_interopRequireDefault(require("./NodeTriggerActionType"));_interopRequireDefault(require("shortid"));function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function _getRequireWildcardCache(nodeInterop){if("function"!=typeof WeakMap)return null;var cacheBabelInterop=new WeakMap,cacheNodeInterop=new WeakMap;return(_getRequireWildcardCache=function(nodeInterop){return nodeInterop?cacheNodeInterop:cacheBabelInterop})(nodeInterop)}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}function _setPrototypeOf(o,p){return(_setPrototypeOf=Object.setPrototypeOf||function(o,p){return o.__proto__=p,o})(o,p)}function _createSuper(Derived){var hasNativeReflectConstruct=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var result,Super=_getPrototypeOf(Derived);if(hasNativeReflectConstruct){var NewTarget=_getPrototypeOf(this).constructor;result=Reflect.construct(Super,arguments,NewTarget)}else result=Super.apply(this,arguments);return _possibleConstructorReturn(this,result)}}function _possibleConstructorReturn(self,call){if(call&&("object"===_typeof(call)||"function"==typeof call))return call;if(void 0!==call)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(self)}function _assertThisInitialized(self){if(void 0===self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return self}function _getPrototypeOf(o){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(o){return o.__proto__||Object.getPrototypeOf(o)})(o)}var _default=function(_Component){!function(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function");subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:!0,configurable:!0}}),Object.defineProperty(subClass,"prototype",{writable:!1}),superClass&&_setPrototypeOf(subClass,superClass)}(NodeTriggerActionIntentCheck,_Component);var Constructor,protoProps,staticProps,_super=_createSuper(NodeTriggerActionIntentCheck);function NodeTriggerActionIntentCheck(props){var _this;return function(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}(this,NodeTriggerActionIntentCheck),(_this=_super.call(this,props)).changeType=_this.changeType.bind(_assertThisInitialized(_this)),_this.removeAction=_this.removeAction.bind(_assertThisInitialized(_this)),_this}return Constructor=NodeTriggerActionIntentCheck,(protoProps=[{key:"changeType",value:function(e){this.props.onChangeType({id:this.props.id,type:e.target.value})}},{key:"removeAction",value:function(){this.props.removeAction({id:this.props.id})}},{key:"render",value:function(){var _this2=this;return _react.default.createElement("div",null,_react.default.createElement("div",{className:"d-flex flex-row"},_react.default.createElement("div",null,_react.default.createElement("div",{className:"btn-group float-left",role:"group","aria-label":"Trigger actions"},_react.default.createElement("button",{disabled:!0,className:"btn btn-sm btn-info"},this.props.id+1),0==this.props.isFirst&&_react.default.createElement("button",{className:"btn btn-secondary btn-sm",onClick:function(e){return _this2.props.upField(_this2.props.id)}},_react.default.createElement("i",{className:"material-icons mr-0"},"keyboard_arrow_up")),0==this.props.isLast&&_react.default.createElement("button",{className:"btn btn-secondary btn-sm",onClick:function(e){return _this2.props.downField(_this2.props.id)}},_react.default.createElement("i",{className:"material-icons mr-0"},"keyboard_arrow_down")))),_react.default.createElement("div",{className:"flex-grow-1 px-2"},_react.default.createElement(_NodeTriggerActionType.default,{onChange:this.changeType,type:this.props.action.get("type")})),_react.default.createElement("div",{className:"pr-2"},_react.default.createElement("div",{className:"input-group input-group-sm"},_react.default.createElement("div",{className:"input-group-prepend"},_react.default.createElement("span",{className:"input-group-text",id:"basic-addon1"},_react.default.createElement("span",{className:"material-icons"},"vpn_key"))),_react.default.createElement("input",{type:"text",className:"form-control",readOnly:"true",value:this.props.action.getIn(["_id"]),title:"Action ID"}))),_react.default.createElement("div",{className:"pr-2 pt-1 text-nowrap"},_react.default.createElement("label",{className:"form-check-label",title:"Response will not be executed. Usefull for a quick testing."},_react.default.createElement("input",{onChange:function(e){return _this2.props.onChangeContent({id:_this2.props.id,path:["skip_resp"],value:e.target.checked})},defaultChecked:this.props.action.getIn(["skip_resp"]),type:"checkbox"})," Skip")),_react.default.createElement("div",null,_react.default.createElement("button",{onClick:this.removeAction,type:"button",className:"btn btn-danger btn-sm float-right"},_react.default.createElement("i",{className:"material-icons mr-0"},"delete")))),_react.default.createElement("div",{className:"row"},_react.default.createElement("p",null,"Check for pending intended actions. If atleast one pending actions will be found. None of the rest triggers will be executed.")),_react.default.createElement("hr",{className:"hr-big"}))}}])&&_defineProperties(Constructor.prototype,protoProps),staticProps&&_defineProperties(Constructor,staticProps),Object.defineProperty(Constructor,"prototype",{writable:!1}),NodeTriggerActionIntentCheck}(_react.Component);exports.default=_default},{"./NodeTriggerActionType":36,react:146,shortid:158}],23:[function(require,module,exports){"use strict";function _typeof(obj){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _react=function(obj,nodeInterop){if(!nodeInterop&&obj&&obj.__esModule)return obj;if(null===obj||"object"!==_typeof(obj)&&"function"!=typeof obj)return{default:obj};var cache=_getRequireWildcardCache(nodeInterop);if(cache&&cache.has(obj))return cache.get(obj);var newObj={},hasPropertyDescriptor=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var key in obj)if("default"!==key&&Object.prototype.hasOwnProperty.call(obj,key)){var desc=hasPropertyDescriptor?Object.getOwnPropertyDescriptor(obj,key):null;desc&&(desc.get||desc.set)?Object.defineProperty(newObj,key,desc):newObj[key]=obj[key]}newObj.default=obj,cache&&cache.set(obj,newObj);return newObj}(require("react")),_NodeTriggerActionType=_interopRequireDefault(require("./NodeTriggerActionType")),_NodeActionListItem=_interopRequireDefault(require("./list/NodeActionListItem")),_NodeTriggerActionQuickReply=(_interopRequireDefault(require("./NodeTriggerPayloadList")),_interopRequireDefault(require("./NodeTriggerActionQuickReply"))),_shortid=_interopRequireDefault(require("shortid"));function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function _getRequireWildcardCache(nodeInterop){if("function"!=typeof WeakMap)return null;var cacheBabelInterop=new WeakMap,cacheNodeInterop=new WeakMap;return(_getRequireWildcardCache=function(nodeInterop){return nodeInterop?cacheNodeInterop:cacheBabelInterop})(nodeInterop)}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}function _setPrototypeOf(o,p){return(_setPrototypeOf=Object.setPrototypeOf||function(o,p){return o.__proto__=p,o})(o,p)}function _createSuper(Derived){var hasNativeReflectConstruct=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var result,Super=_getPrototypeOf(Derived);if(hasNativeReflectConstruct){var NewTarget=_getPrototypeOf(this).constructor;result=Reflect.construct(Super,arguments,NewTarget)}else result=Super.apply(this,arguments);return _possibleConstructorReturn(this,result)}}function _possibleConstructorReturn(self,call){if(call&&("object"===_typeof(call)||"function"==typeof call))return call;if(void 0!==call)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(self)}function _assertThisInitialized(self){if(void 0===self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return self}function _getPrototypeOf(o){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(o){return o.__proto__||Object.getPrototypeOf(o)})(o)}var _default=function(_Component){!function(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function");subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:!0,configurable:!0}}),Object.defineProperty(subClass,"prototype",{writable:!1}),superClass&&_setPrototypeOf(subClass,superClass)}(NodeTriggerActionList,_Component);var Constructor,protoProps,staticProps,_super=_createSuper(NodeTriggerActionList);function NodeTriggerActionList(props){var _this;return function(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}(this,NodeTriggerActionList),(_this=_super.call(this,props)).changeType=_this.changeType.bind(_assertThisInitialized(_this)),_this.removeAction=_this.removeAction.bind(_assertThisInitialized(_this)),_this.onchangeFieldAttr=_this.onchangeFieldAttr.bind(_assertThisInitialized(_this)),_this.onDeleteField=_this.onDeleteField.bind(_assertThisInitialized(_this)),_this.onMoveUpField=_this.onMoveUpField.bind(_assertThisInitialized(_this)),_this.onMoveDownField=_this.onMoveDownField.bind(_assertThisInitialized(_this)),_this.onChangeMainAttr=_this.onChangeMainAttr.bind(_assertThisInitialized(_this)),_this.addSubelement=_this.addSubelement.bind(_assertThisInitialized(_this)),_this.onDeleteSubField=_this.onDeleteSubField.bind(_assertThisInitialized(_this)),_this.addQuickReply=_this.addQuickReply.bind(_assertThisInitialized(_this)),_this}return Constructor=NodeTriggerActionList,(protoProps=[{key:"changeType",value:function(e){this.props.onChangeType({id:this.props.id,type:e.target.value})}},{key:"removeAction",value:function(){this.props.removeAction({id:this.props.id})}},{key:"addField",value:function(){this.props.addSubelement({id:this.props.id,path:["content","list"],default:{_id:_shortid.default.generate(),type:"none",content:{img:"",title:"",subtitle:"",payload:"",subbuttons:[]}}})}},{key:"addSubelement",value:function(e){this.props.addSubelement({id:this.props.id,path:["content","list"].concat(e.path),default:e.default})}},{key:"onchangeFieldAttr",value:function(e){this.props.onChangeContent({id:this.props.id,path:["content","list",e.id].concat(e.path),value:e.value})}},{key:"onDeleteField",value:function(fieldIndex){this.props.deleteSubelement({id:this.props.id,path:["content","list",fieldIndex]})}},{key:"onDeleteSubField",value:function(e){this.props.deleteSubelement({id:this.props.id,path:["content","list"].concat(e.path)})}},{key:"onMoveUpField",value:function(fieldIndex,path){this.props.moveUpSubelement({id:this.props.id,index:fieldIndex,path:path})}},{key:"onMoveDownField",value:function(fieldIndex,path){this.props.moveDownSubelement({id:this.props.id,index:fieldIndex,path:path})}},{key:"onChangeMainAttr",value:function(field,e){this.props.onChangeContent({id:this.props.id,path:["content","list_options",field],value:e})}},{key:"addQuickReply",value:function(e){this.props.addQuickReply({id:this.props.id})}},{key:"render",value:function(){var _this2=this,element_list=[];this.props.action.hasIn(["content","list"])&&(element_list=this.props.action.getIn(["content","list"]).map((function(field,index){return _react.default.createElement(_NodeActionListItem.default,{id:index,isFirst:0==index,isLast:index+1==_this2.props.action.getIn(["content","list"]).size,onDeleteSubField:_this2.onDeleteSubField,addSubelement:_this2.addSubelement,key:field.get("_id"),item:field,onMoveDownField:function(e){return _this2.onMoveDownField(index,["content","list"])},onMoveUpField:function(e){return _this2.onMoveUpField(index,["content","list"])},onDeleteField:_this2.onDeleteField,onChangeFieldAttr:_this2.onchangeFieldAttr})})));var button_list=[];if(this.props.action.hasIn(["content","quick_replies"])){var totalButtons=this.props.action.getIn(["content","quick_replies"]).size;button_list=this.props.action.getIn(["content","quick_replies"]).map((function(reply,index){return _react.default.createElement(_NodeTriggerActionQuickReply.default,{onPayloadAttrChange:function(e){return _this2.props.onChangeContent({id:_this2.props.id,path:["content","quick_replies",e.id,"content",e.payload.attr],value:e.payload.value})},onPayloadTypeChange:function(e){return _this2.props.onChangeContent({id:_this2.props.id,path:["content","quick_replies",e.id,"type"],value:e.value})},deleteReply:function(e){return _this2.props.removeQuickReply({id:_this2.props.id,path:["content","quick_replies",e.id]})},onNameChange:function(e){return _this2.props.onChangeContent({id:_this2.props.id,path:["content","quick_replies",e.id,"content","name"],value:e.value})},onPayloadChange:function(e){return _this2.props.onChangeContent({id:_this2.props.id,path:["content","quick_replies",e.id,"content","payload"],value:e.value})},upField:function(e){return _this2.onMoveUpField(index,["content","quick_replies"])},downField:function(e){return _this2.onMoveDownField(index,["content","quick_replies"])},isFirst:0==index,isLast:index+1==totalButtons,id:index,key:reply.get("_id")||index,reply:reply})}))}return _react.default.createElement("div",null,_react.default.createElement("div",{className:"d-flex flex-row"},_react.default.createElement("div",null,_react.default.createElement("div",{className:"btn-group float-left",role:"group","aria-label":"Trigger actions"},_react.default.createElement("button",{disabled:!0,className:"btn btn-sm btn-info"},this.props.id+1),0==this.props.isFirst&&_react.default.createElement("button",{className:"btn btn-secondary btn-sm",onClick:function(e){return _this2.props.upField(_this2.props.id)}},_react.default.createElement("i",{className:"material-icons mr-0"},"keyboard_arrow_up")),0==this.props.isLast&&_react.default.createElement("button",{className:"btn btn-secondary btn-sm",onClick:function(e){return _this2.props.downField(_this2.props.id)}},_react.default.createElement("i",{className:"material-icons mr-0"},"keyboard_arrow_down")))),_react.default.createElement("div",{className:"flex-grow-1 px-2"},_react.default.createElement(_NodeTriggerActionType.default,{onChange:this.changeType,type:this.props.action.get("type")})),_react.default.createElement("div",{className:"pr-2"},_react.default.createElement("div",{className:"input-group input-group-sm"},_react.default.createElement("div",{className:"input-group-prepend"},_react.default.createElement("span",{className:"input-group-text",id:"basic-addon1"},_react.default.createElement("span",{className:"material-icons"},"vpn_key"))),_react.default.createElement("input",{type:"text",className:"form-control",readOnly:"true",value:this.props.action.getIn(["_id"]),title:"Action ID"}))),_react.default.createElement("div",{className:"pr-2 pt-1 text-nowrap"},_react.default.createElement("label",{className:"form-check-label",title:"Response will not be executed. Usefull for a quick testing."},_react.default.createElement("input",{onChange:function(e){return _this2.props.onChangeContent({id:_this2.props.id,path:["skip_resp"],value:e.target.checked})},defaultChecked:this.props.action.getIn(["skip_resp"]),type:"checkbox"})," Skip")),_react.default.createElement("div",null,_react.default.createElement("button",{onClick:this.removeAction,type:"button",className:"btn btn-danger btn-sm float-right"},_react.default.createElement("i",{className:"material-icons mr-0"},"delete")))),_react.default.createElement("div",{className:"row"},_react.default.createElement("div",{className:"col-12"},_react.default.createElement("div",{className:"float-right"},_react.default.createElement("label",null,_react.default.createElement("input",{type:"checkbox",onChange:function(e){return _this2.onChangeMainAttr("no_highlight",e.target.checked)},defaultChecked:this.props.action.getIn(["content","list_options","no_highlight"])})," No Highlight Top Element")),_react.default.createElement("label",null,_react.default.createElement("input",{type:"checkbox",onChange:function(e){return _this2.onChangeMainAttr("hide_text_area",e.target.checked)},defaultChecked:this.props.action.getIn(["content","list_options","hide_text_area"])})," Hide text area on response.")," ",_react.default.createElement("i",{className:"material-icons",title:"Textarea to enter user message will be disabled. Make sure you include buttons for user to click."},"info"))),_react.default.createElement("div",{className:"bot-elements"},element_list,_react.default.createElement("div",null,_react.default.createElement("a",{className:"btn btn-info btn-sm",onClick:this.addField.bind(this)},"Add Element"))),_react.default.createElement("hr",null),_react.default.createElement("div",{className:"bot-buttons"},button_list,_react.default.createElement("div",null,_react.default.createElement("a",{className:"btn btn-info btn-sm",onClick:this.addQuickReply.bind(this)},"Add buttom"))),_react.default.createElement("hr",{className:"hr-big"}))}}])&&_defineProperties(Constructor.prototype,protoProps),staticProps&&_defineProperties(Constructor,staticProps),Object.defineProperty(Constructor,"prototype",{writable:!1}),NodeTriggerActionList}(_react.Component);exports.default=_default},{"./NodeTriggerActionQuickReply":29,"./NodeTriggerActionType":36,"./NodeTriggerPayloadList":42,"./list/NodeActionListItem":48,react:146,shortid:158}],24:[function(require,module,exports){"use strict";function _typeof(obj){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var obj,_react=function(obj,nodeInterop){if(!nodeInterop&&obj&&obj.__esModule)return obj;if(null===obj||"object"!==_typeof(obj)&&"function"!=typeof obj)return{default:obj};var cache=_getRequireWildcardCache(nodeInterop);if(cache&&cache.has(obj))return cache.get(obj);var newObj={},hasPropertyDescriptor=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var key in obj)if("default"!==key&&Object.prototype.hasOwnProperty.call(obj,key)){var desc=hasPropertyDescriptor?Object.getOwnPropertyDescriptor(obj,key):null;desc&&(desc.get||desc.set)?Object.defineProperty(newObj,key,desc):newObj[key]=obj[key]}newObj.default=obj,cache&&cache.set(obj,newObj);return newObj}(require("react")),_NodeTriggerActionType=(obj=require("./NodeTriggerActionType"))&&obj.__esModule?obj:{default:obj};function _getRequireWildcardCache(nodeInterop){if("function"!=typeof WeakMap)return null;var cacheBabelInterop=new WeakMap,cacheNodeInterop=new WeakMap;return(_getRequireWildcardCache=function(nodeInterop){return nodeInterop?cacheNodeInterop:cacheBabelInterop})(nodeInterop)}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}function _setPrototypeOf(o,p){return(_setPrototypeOf=Object.setPrototypeOf||function(o,p){return o.__proto__=p,o})(o,p)}function _createSuper(Derived){var hasNativeReflectConstruct=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var result,Super=_getPrototypeOf(Derived);if(hasNativeReflectConstruct){var NewTarget=_getPrototypeOf(this).constructor;result=Reflect.construct(Super,arguments,NewTarget)}else result=Super.apply(this,arguments);return _possibleConstructorReturn(this,result)}}function _possibleConstructorReturn(self,call){if(call&&("object"===_typeof(call)||"function"==typeof call))return call;if(void 0!==call)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(self)}function _assertThisInitialized(self){if(void 0===self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return self}function _getPrototypeOf(o){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(o){return o.__proto__||Object.getPrototypeOf(o)})(o)}var _default=function(_Component){!function(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function");subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:!0,configurable:!0}}),Object.defineProperty(subClass,"prototype",{writable:!1}),superClass&&_setPrototypeOf(subClass,superClass)}(NodeTriggerActionLogAction,_Component);var Constructor,protoProps,staticProps,_super=_createSuper(NodeTriggerActionLogAction);function NodeTriggerActionLogAction(props){var _this;return function(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}(this,NodeTriggerActionLogAction),(_this=_super.call(this,props)).changeType=_this.changeType.bind(_assertThisInitialized(_this)),_this.removeAction=_this.removeAction.bind(_assertThisInitialized(_this)),_this.onchangeAttr=_this.onchangeAttr.bind(_assertThisInitialized(_this)),_this}return Constructor=NodeTriggerActionLogAction,(protoProps=[{key:"changeType",value:function(e){this.props.onChangeType({id:this.props.id,type:e.target.value})}},{key:"removeAction",value:function(){this.props.removeAction({id:this.props.id})}},{key:"onchangeAttr",value:function(e){this.props.onChangeContent({id:this.props.id,path:["content"].concat(e.path),value:e.value})}},{key:"render",value:function(){var _this2=this;return _react.default.createElement("div",null,_react.default.createElement("div",{className:"d-flex flex-row"},_react.default.createElement("div",null,_react.default.createElement("div",{className:"btn-group float-left",role:"group","aria-label":"Trigger actions"},_react.default.createElement("button",{disabled:!0,className:"btn btn-sm btn-info"},this.props.id+1),0==this.props.isFirst&&_react.default.createElement("button",{className:"btn btn-secondary btn-sm",onClick:function(e){return _this2.props.upField(_this2.props.id)}},_react.default.createElement("i",{className:"material-icons mr-0"},"keyboard_arrow_up")),0==this.props.isLast&&_react.default.createElement("button",{className:"btn btn-secondary btn-sm",onClick:function(e){return _this2.props.downField(_this2.props.id)}},_react.default.createElement("i",{className:"material-icons mr-0"},"keyboard_arrow_down")))),_react.default.createElement("div",{className:"flex-grow-1 px-2"},_react.default.createElement(_NodeTriggerActionType.default,{onChange:this.changeType,type:this.props.action.get("type")})),_react.default.createElement("div",{className:"pr-2"},_react.default.createElement("div",{className:"input-group input-group-sm"},_react.default.createElement("div",{className:"input-group-prepend"},_react.default.createElement("span",{className:"input-group-text",id:"basic-addon1"},_react.default.createElement("span",{className:"material-icons"},"vpn_key"))),_react.default.createElement("input",{type:"text",className:"form-control",readOnly:"true",value:this.props.action.getIn(["_id"]),title:"Action ID"}))),_react.default.createElement("div",{className:"pr-2 pt-1 text-nowrap"},_react.default.createElement("label",{className:"form-check-label",title:"Response will not be executed. Usefull for a quick testing."},_react.default.createElement("input",{onChange:function(e){return _this2.props.onChangeContent({id:_this2.props.id,path:["skip_resp"],value:e.target.checked})},defaultChecked:this.props.action.getIn(["skip_resp"]),type:"checkbox"})," Skip")),_react.default.createElement("div",null,_react.default.createElement("button",{onClick:this.removeAction,type:"button",className:"btn btn-danger btn-sm float-right"},_react.default.createElement("i",{className:"material-icons mr-0"},"delete")))),_react.default.createElement("div",{className:"row"},_react.default.createElement("div",{className:"col-12"},_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,"Action identifier"),_react.default.createElement("input",{type:"text",className:"form-control form-control-sm",onChange:function(e){return _this2.onchangeAttr({path:["action_options","action"],value:e.target.value})},defaultValue:this.props.action.getIn(["content","action_options","action"])}))),_react.default.createElement("div",{className:"col-12"},_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,"Action body, content is always saved as JSON"),_react.default.createElement("textarea",{placeholder:"Put your action to log here",className:"form-control form-control-sm",onChange:function(e){return _this2.onchangeAttr({path:["text"],value:e.target.value})},defaultValue:this.props.action.getIn(["content","text"])})))),_react.default.createElement("hr",{className:"hr-big"}))}}])&&_defineProperties(Constructor.prototype,protoProps),staticProps&&_defineProperties(Constructor,staticProps),Object.defineProperty(Constructor,"prototype",{writable:!1}),NodeTriggerActionLogAction}(_react.Component);exports.default=_default},{"./NodeTriggerActionType":36,react:146}],25:[function(require,module,exports){"use strict";function _typeof(obj){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var obj,_react=function(obj,nodeInterop){if(!nodeInterop&&obj&&obj.__esModule)return obj;if(null===obj||"object"!==_typeof(obj)&&"function"!=typeof obj)return{default:obj};var cache=_getRequireWildcardCache(nodeInterop);if(cache&&cache.has(obj))return cache.get(obj);var newObj={},hasPropertyDescriptor=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var key in obj)if("default"!==key&&Object.prototype.hasOwnProperty.call(obj,key)){var desc=hasPropertyDescriptor?Object.getOwnPropertyDescriptor(obj,key):null;desc&&(desc.get||desc.set)?Object.defineProperty(newObj,key,desc):newObj[key]=obj[key]}newObj.default=obj,cache&&cache.set(obj,newObj);return newObj}(require("react")),_NodeTriggerActionType=(obj=require("./NodeTriggerActionType"))&&obj.__esModule?obj:{default:obj};function _getRequireWildcardCache(nodeInterop){if("function"!=typeof WeakMap)return null;var cacheBabelInterop=new WeakMap,cacheNodeInterop=new WeakMap;return(_getRequireWildcardCache=function(nodeInterop){return nodeInterop?cacheNodeInterop:cacheBabelInterop})(nodeInterop)}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}function _setPrototypeOf(o,p){return(_setPrototypeOf=Object.setPrototypeOf||function(o,p){return o.__proto__=p,o})(o,p)}function _createSuper(Derived){var hasNativeReflectConstruct=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var result,Super=_getPrototypeOf(Derived);if(hasNativeReflectConstruct){var NewTarget=_getPrototypeOf(this).constructor;result=Reflect.construct(Super,arguments,NewTarget)}else result=Super.apply(this,arguments);return _possibleConstructorReturn(this,result)}}function _possibleConstructorReturn(self,call){if(call&&("object"===_typeof(call)||"function"==typeof call))return call;if(void 0!==call)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(self)}function _assertThisInitialized(self){if(void 0===self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return self}function _getPrototypeOf(o){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(o){return o.__proto__||Object.getPrototypeOf(o)})(o)}var _default=function(_Component){!function(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function");subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:!0,configurable:!0}}),Object.defineProperty(subClass,"prototype",{writable:!1}),superClass&&_setPrototypeOf(subClass,superClass)}(NodeTriggerActionMail,_Component);var Constructor,protoProps,staticProps,_super=_createSuper(NodeTriggerActionMail);function NodeTriggerActionMail(props){var _this;return function(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}(this,NodeTriggerActionMail),(_this=_super.call(this,props)).changeType=_this.changeType.bind(_assertThisInitialized(_this)),_this.removeAction=_this.removeAction.bind(_assertThisInitialized(_this)),_this.onchangeAttr=_this.onchangeAttr.bind(_assertThisInitialized(_this)),_this}return Constructor=NodeTriggerActionMail,(protoProps=[{key:"changeType",value:function(e){this.props.onChangeType({id:this.props.id,type:e.target.value})}},{key:"removeAction",value:function(){this.props.removeAction({id:this.props.id})}},{key:"onchangeAttr",value:function(e){this.props.onChangeContent({id:this.props.id,path:["content"].concat(e.path),value:e.value})}},{key:"render",value:function(){var _this2=this;return _react.default.createElement("div",null,_react.default.createElement("div",{className:"d-flex flex-row"},_react.default.createElement("div",null,_react.default.createElement("div",{className:"btn-group float-left",role:"group","aria-label":"Trigger actions"},_react.default.createElement("button",{disabled:!0,className:"btn btn-sm btn-info"},this.props.id+1),0==this.props.isFirst&&_react.default.createElement("button",{className:"btn btn-secondary btn-sm",onClick:function(e){return _this2.props.upField(_this2.props.id)}},_react.default.createElement("i",{className:"material-icons mr-0"},"keyboard_arrow_up")),0==this.props.isLast&&_react.default.createElement("button",{className:"btn btn-secondary btn-sm",onClick:function(e){return _this2.props.downField(_this2.props.id)}},_react.default.createElement("i",{className:"material-icons mr-0"},"keyboard_arrow_down")))),_react.default.createElement("div",{className:"flex-grow-1 px-2"},_react.default.createElement(_NodeTriggerActionType.default,{onChange:this.changeType,type:this.props.action.get("type")})),_react.default.createElement("div",{className:"pr-2"},_react.default.createElement("div",{className:"input-group input-group-sm"},_react.default.createElement("div",{className:"input-group-prepend"},_react.default.createElement("span",{className:"input-group-text",id:"basic-addon1"},_react.default.createElement("span",{className:"material-icons"},"vpn_key"))),_react.default.createElement("input",{type:"text",className:"form-control",readOnly:"true",value:this.props.action.getIn(["_id"]),title:"Action ID"}))),_react.default.createElement("div",{className:"pr-2 pt-1 text-nowrap"},_react.default.createElement("label",{className:"form-check-label",title:"Response will not be executed. Usefull for a quick testing."},_react.default.createElement("input",{onChange:function(e){return _this2.props.onChangeContent({id:_this2.props.id,path:["skip_resp"],value:e.target.checked})},defaultChecked:this.props.action.getIn(["skip_resp"]),type:"checkbox"})," Skip")),_react.default.createElement("div",null,_react.default.createElement("button",{onClick:this.removeAction,type:"button",className:"btn btn-danger btn-sm float-right"},_react.default.createElement("i",{className:"material-icons mr-0"},"delete")))),_react.default.createElement("div",{className:"row"},_react.default.createElement("div",{className:"col-6"},_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,"Subject"),_react.default.createElement("input",{type:"text",className:"form-control form-control-sm",onChange:function(e){return _this2.onchangeAttr({path:["mail_options","subject"],value:e.target.value})},defaultValue:this.props.action.getIn(["content","mail_options","subject"])}))),_react.default.createElement("div",{className:"col-6"},_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,"From name"),_react.default.createElement("input",{type:"text",className:"form-control form-control-sm",onChange:function(e){return _this2.onchangeAttr({path:["mail_options","from_name"],value:e.target.value})},defaultValue:this.props.action.getIn(["content","mail_options","from_name"])}))),_react.default.createElement("div",{className:"col-6"},_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,"From e-mail"),_react.default.createElement("input",{type:"text",className:"form-control form-control-sm",onChange:function(e){return _this2.onchangeAttr({path:["mail_options","from_email"],value:e.target.value})},defaultValue:this.props.action.getIn(["content","mail_options","from_email"])}))),_react.default.createElement("div",{className:"col-6"},_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,"Reply to"),_react.default.createElement("input",{type:"text",className:"form-control form-control-sm",onChange:function(e){return _this2.onchangeAttr({path:["mail_options","reply_to"],value:e.target.value})},defaultValue:this.props.action.getIn(["content","mail_options","reply_to"])}))),_react.default.createElement("div",{className:"col-6"},_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,"Recipient"),_react.default.createElement("input",{type:"text",className:"form-control form-control-sm",onChange:function(e){return _this2.onchangeAttr({path:["mail_options","recipient"],value:e.target.value})},defaultValue:this.props.action.getIn(["content","mail_options","recipient"])}))),_react.default.createElement("div",{className:"col-6"},_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,"CC Recipient"),_react.default.createElement("input",{type:"text",className:"form-control form-control-sm",onChange:function(e){return _this2.onchangeAttr({path:["mail_options","cc_recipient"],value:e.target.value})},defaultValue:this.props.action.getIn(["content","mail_options","cc_recipient"])}))),_react.default.createElement("div",{className:"col-6"},_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,"BCC Recipient"),_react.default.createElement("input",{type:"text",className:"form-control form-control-sm",onChange:function(e){return _this2.onchangeAttr({path:["mail_options","bcc_recipient"],value:e.target.value})},defaultValue:this.props.action.getIn(["content","mail_options","bcc_recipient"])}))),_react.default.createElement("div",{className:"col-12"},_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,"Mail body"),_react.default.createElement("textarea",{placeholder:"Video URL",className:"form-control form-control-sm",onChange:function(e){return _this2.onchangeAttr({path:["text"],value:e.target.value})},defaultValue:this.props.action.getIn(["content","text"])})))),_react.default.createElement("hr",{className:"hr-big"}))}}])&&_defineProperties(Constructor.prototype,protoProps),staticProps&&_defineProperties(Constructor,staticProps),Object.defineProperty(Constructor,"prototype",{writable:!1}),NodeTriggerActionMail}(_react.Component);exports.default=_default},{"./NodeTriggerActionType":36,react:146}],26:[function(require,module,exports){"use strict";function _typeof(obj){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _react=function(obj,nodeInterop){if(!nodeInterop&&obj&&obj.__esModule)return obj;if(null===obj||"object"!==_typeof(obj)&&"function"!=typeof obj)return{default:obj};var cache=_getRequireWildcardCache(nodeInterop);if(cache&&cache.has(obj))return cache.get(obj);var newObj={},hasPropertyDescriptor=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var key in obj)if("default"!==key&&Object.prototype.hasOwnProperty.call(obj,key)){var desc=hasPropertyDescriptor?Object.getOwnPropertyDescriptor(obj,key):null;desc&&(desc.get||desc.set)?Object.defineProperty(newObj,key,desc):newObj[key]=obj[key]}newObj.default=obj,cache&&cache.set(obj,newObj);return newObj}(require("react")),_NodeTriggerActionType=_interopRequireDefault(require("./NodeTriggerActionType")),_NodeTriggerList=_interopRequireDefault(require("./NodeTriggerList"));function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function _getRequireWildcardCache(nodeInterop){if("function"!=typeof WeakMap)return null;var cacheBabelInterop=new WeakMap,cacheNodeInterop=new WeakMap;return(_getRequireWildcardCache=function(nodeInterop){return nodeInterop?cacheNodeInterop:cacheBabelInterop})(nodeInterop)}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}function _setPrototypeOf(o,p){return(_setPrototypeOf=Object.setPrototypeOf||function(o,p){return o.__proto__=p,o})(o,p)}function _createSuper(Derived){var hasNativeReflectConstruct=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var result,Super=_getPrototypeOf(Derived);if(hasNativeReflectConstruct){var NewTarget=_getPrototypeOf(this).constructor;result=Reflect.construct(Super,arguments,NewTarget)}else result=Super.apply(this,arguments);return _possibleConstructorReturn(this,result)}}function _possibleConstructorReturn(self,call){if(call&&("object"===_typeof(call)||"function"==typeof call))return call;if(void 0!==call)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(self)}function _assertThisInitialized(self){if(void 0===self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return self}function _getPrototypeOf(o){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(o){return o.__proto__||Object.getPrototypeOf(o)})(o)}var _default=function(_Component){!function(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function");subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:!0,configurable:!0}}),Object.defineProperty(subClass,"prototype",{writable:!1}),superClass&&_setPrototypeOf(subClass,superClass)}(NodeTriggerActionMatchActions,_Component);var Constructor,protoProps,staticProps,_super=_createSuper(NodeTriggerActionMatchActions);function NodeTriggerActionMatchActions(props){var _this;return function(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}(this,NodeTriggerActionMatchActions),(_this=_super.call(this,props)).changeType=_this.changeType.bind(_assertThisInitialized(_this)),_this.removeAction=_this.removeAction.bind(_assertThisInitialized(_this)),_this.onchangeAttr=_this.onchangeAttr.bind(_assertThisInitialized(_this)),_this}return Constructor=NodeTriggerActionMatchActions,(protoProps=[{key:"changeType",value:function(e){this.props.onChangeType({id:this.props.id,type:e.target.value})}},{key:"removeAction",value:function(){this.props.removeAction({id:this.props.id})}},{key:"onchangeAttr",value:function(e){this.props.onChangeContent({id:this.props.id,path:["content"].concat(e.path),value:e.value})}},{key:"render",value:function(){var _this2=this;return _react.default.createElement("div",null,_react.default.createElement("div",{className:"d-flex flex-row"},_react.default.createElement("div",null,_react.default.createElement("div",{className:"btn-group float-left",role:"group","aria-label":"Trigger actions"},_react.default.createElement("button",{disabled:!0,className:"btn btn-sm btn-info"},this.props.id+1),0==this.props.isFirst&&_react.default.createElement("button",{className:"btn btn-secondary btn-sm",onClick:function(e){return _this2.props.upField(_this2.props.id)}},_react.default.createElement("i",{className:"material-icons mr-0"},"keyboard_arrow_up")),0==this.props.isLast&&_react.default.createElement("button",{className:"btn btn-secondary btn-sm",onClick:function(e){return _this2.props.downField(_this2.props.id)}},_react.default.createElement("i",{className:"material-icons mr-0"},"keyboard_arrow_down")))),_react.default.createElement("div",{className:"flex-grow-1 px-2"},_react.default.createElement(_NodeTriggerActionType.default,{onChange:this.changeType,type:this.props.action.get("type")})),_react.default.createElement("div",{className:"pr-2"},_react.default.createElement("div",{className:"input-group input-group-sm"},_react.default.createElement("div",{className:"input-group-prepend"},_react.default.createElement("span",{className:"input-group-text",id:"basic-addon1"},_react.default.createElement("span",{className:"material-icons"},"vpn_key"))),_react.default.createElement("input",{type:"text",className:"form-control",readOnly:"true",value:this.props.action.getIn(["_id"]),title:"Action ID"}))),_react.default.createElement("div",{className:"pr-2 pt-1 text-nowrap"},_react.default.createElement("label",{className:"form-check-label",title:"Response will not be executed. Usefull for a quick testing."},_react.default.createElement("input",{onChange:function(e){return _this2.props.onChangeContent({id:_this2.props.id,path:["skip_resp"],value:e.target.checked})},defaultChecked:this.props.action.getIn(["skip_resp"]),type:"checkbox"})," Skip")),_react.default.createElement("div",null,_react.default.createElement("button",{onClick:this.removeAction,type:"button",className:"btn btn-danger btn-sm float-right"},_react.default.createElement("i",{className:"material-icons mr-0"},"delete")))),_react.default.createElement("div",{className:"row"},_react.default.createElement("div",{className:"col-12"},_react.default.createElement("label",null,_react.default.createElement("input",{type:"checkbox",onChange:function(e){return _this2.onchangeAttr({path:["event_background"],value:e.target.checked})},defaultChecked:this.props.action.getIn(["content","event_background"])})," Event is processed on next visitor message.")),_react.default.createElement("div",{className:"col-12"},_react.default.createElement("label",null,_react.default.createElement("input",{type:"checkbox",onChange:function(e){return _this2.onchangeAttr({path:["check_visitor_msg"],value:e.target.checked})},defaultChecked:this.props.action.getIn(["content","check_visitor_msg"])})," Check for visitor message also. If you put ","{content_1}",", or any other value, but still want to check by vistior message check this.")),_react.default.createElement("div",{className:"col-12"},_react.default.createElement("label",null,_react.default.createElement("input",{type:"checkbox",onChange:function(e){return _this2.onchangeAttr({path:["check_visitor_first"],value:e.target.checked})},defaultChecked:this.props.action.getIn(["content","check_visitor_first"])})," Check first by visitor message.")),_react.default.createElement("div",{className:"col-12"},_react.default.createElement("label",null,"Search for text. This field will override user message text. Usefull in case you want to search by Rest API response. You can put here like ","{content_1}"),_react.default.createElement("input",{type:"text",placeholder:"Bot content {content_1}",onChange:function(e){return _this2.onchangeAttr({path:["text"],value:e.target.value})},defaultValue:this.props.action.hasIn(["content","text"])?this.props.action.getIn(["content","text"]):"",className:"form-control form-control-sm"})),_react.default.createElement("div",{className:"col-6"},_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,"For what start chat actions to search"),_react.default.createElement("select",{className:"form-control form-control-sm",defaultValue:this.props.action.getIn(["content","on_start_type"]),onChange:function(e){return _this2.onchangeAttr({path:["on_start_type"],value:e.target.value})}},_react.default.createElement("option",{value:"0"},"Do not check on chat start"),_react.default.createElement("option",{value:"1"},"Instant execution (Executes and continues workflow)"),_react.default.createElement("option",{value:"2"},"Instant execution and block (executes and blocks further triggers execution)"),_react.default.createElement("option",{value:"3"},"Instant execution and continue if stop is returned from this trigger"),_react.default.createElement("option",{value:"4"},"Schedule (schedules for further execution trigger)"),_react.default.createElement("option",{value:"5"},"Any")))),_react.default.createElement("div",{className:"col-6"},_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,"If no trigger was found execute this"),_react.default.createElement(_NodeTriggerList.default,{onSetPayload:function(e){return _this2.onchangeAttr({path:["alternative_callback"],value:e})},payload:this.props.action.getIn(["content","alternative_callback"])})))),_react.default.createElement("hr",{className:"hr-big"}))}}])&&_defineProperties(Constructor.prototype,protoProps),staticProps&&_defineProperties(Constructor,staticProps),Object.defineProperty(Constructor,"prototype",{writable:!1}),NodeTriggerActionMatchActions}(_react.Component);exports.default=_default},{"./NodeTriggerActionType":36,"./NodeTriggerList":41,react:146}],27:[function(require,module,exports){"use strict";function _typeof(obj){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _react=function(obj,nodeInterop){if(!nodeInterop&&obj&&obj.__esModule)return obj;if(null===obj||"object"!==_typeof(obj)&&"function"!=typeof obj)return{default:obj};var cache=_getRequireWildcardCache(nodeInterop);if(cache&&cache.has(obj))return cache.get(obj);var newObj={},hasPropertyDescriptor=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var key in obj)if("default"!==key&&Object.prototype.hasOwnProperty.call(obj,key)){var desc=hasPropertyDescriptor?Object.getOwnPropertyDescriptor(obj,key):null;desc&&(desc.get||desc.set)?Object.defineProperty(newObj,key,desc):newObj[key]=obj[key]}newObj.default=obj,cache&&cache.set(obj,newObj);return newObj}(require("react")),_NodeTriggerActionType=_interopRequireDefault(require("./NodeTriggerActionType")),_NodeTriggerList=_interopRequireDefault(require("./NodeTriggerList"));function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function _getRequireWildcardCache(nodeInterop){if("function"!=typeof WeakMap)return null;var cacheBabelInterop=new WeakMap,cacheNodeInterop=new WeakMap;return(_getRequireWildcardCache=function(nodeInterop){return nodeInterop?cacheNodeInterop:cacheBabelInterop})(nodeInterop)}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}function _setPrototypeOf(o,p){return(_setPrototypeOf=Object.setPrototypeOf||function(o,p){return o.__proto__=p,o})(o,p)}function _createSuper(Derived){var hasNativeReflectConstruct=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var result,Super=_getPrototypeOf(Derived);if(hasNativeReflectConstruct){var NewTarget=_getPrototypeOf(this).constructor;result=Reflect.construct(Super,arguments,NewTarget)}else result=Super.apply(this,arguments);return _possibleConstructorReturn(this,result)}}function _possibleConstructorReturn(self,call){if(call&&("object"===_typeof(call)||"function"==typeof call))return call;if(void 0!==call)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(self)}function _assertThisInitialized(self){if(void 0===self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return self}function _getPrototypeOf(o){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(o){return o.__proto__||Object.getPrototypeOf(o)})(o)}var _default=function(_Component){!function(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function");subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:!0,configurable:!0}}),Object.defineProperty(subClass,"prototype",{writable:!1}),superClass&&_setPrototypeOf(subClass,superClass)}(NodeTriggerActionPredefined,_Component);var Constructor,protoProps,staticProps,_super=_createSuper(NodeTriggerActionPredefined);function NodeTriggerActionPredefined(props){var _this;return function(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}(this,NodeTriggerActionPredefined),(_this=_super.call(this,props)).changeType=_this.changeType.bind(_assertThisInitialized(_this)),_this.removeAction=_this.removeAction.bind(_assertThisInitialized(_this)),_this.onchangeAttr=_this.onchangeAttr.bind(_assertThisInitialized(_this)),_this}return Constructor=NodeTriggerActionPredefined,(protoProps=[{key:"changeType",value:function(e){this.props.onChangeType({id:this.props.id,type:e.target.value})}},{key:"removeAction",value:function(){this.props.removeAction({id:this.props.id})}},{key:"onchangeAttr",value:function(e){this.props.onChangeContent({id:this.props.id,path:["content"].concat(e.path),value:e.value})}},{key:"render",value:function(){var _this2=this;return _react.default.createElement("div",null,_react.default.createElement("div",{className:"d-flex flex-row"},_react.default.createElement("div",null,_react.default.createElement("div",{className:"btn-group float-left",role:"group","aria-label":"Trigger actions"},_react.default.createElement("button",{disabled:!0,className:"btn btn-sm btn-info"},this.props.id+1),0==this.props.isFirst&&_react.default.createElement("button",{className:"btn btn-secondary btn-sm",onClick:function(e){return _this2.props.upField(_this2.props.id)}},_react.default.createElement("i",{className:"material-icons mr-0"},"keyboard_arrow_up")),0==this.props.isLast&&_react.default.createElement("button",{className:"btn btn-secondary btn-sm",onClick:function(e){return _this2.props.downField(_this2.props.id)}},_react.default.createElement("i",{className:"material-icons mr-0"},"keyboard_arrow_down")))),_react.default.createElement("div",{className:"flex-grow-1 px-2"},_react.default.createElement(_NodeTriggerActionType.default,{onChange:this.changeType,type:this.props.action.get("type")})),_react.default.createElement("div",{className:"pr-2"},_react.default.createElement("div",{className:"input-group input-group-sm"},_react.default.createElement("div",{className:"input-group-prepend"},_react.default.createElement("span",{className:"input-group-text",id:"basic-addon1"},_react.default.createElement("span",{className:"material-icons"},"vpn_key"))),_react.default.createElement("input",{type:"text",className:"form-control",readOnly:"true",value:this.props.action.getIn(["_id"]),title:"Action ID"}))),_react.default.createElement("div",{className:"pr-2 pt-1 text-nowrap"},_react.default.createElement("label",{className:"form-check-label",title:"Response will not be executed. Usefull for a quick testing."},_react.default.createElement("input",{onChange:function(e){return _this2.props.onChangeContent({id:_this2.props.id,path:["skip_resp"],value:e.target.checked})},defaultChecked:this.props.action.getIn(["skip_resp"]),type:"checkbox"})," Skip")),_react.default.createElement("div",null,_react.default.createElement("button",{onClick:this.removeAction,type:"button",className:"btn btn-danger btn-sm float-right"},_react.default.createElement("i",{className:"material-icons mr-0"},"delete")))),_react.default.createElement("div",{className:"row"},_react.default.createElement("div",{className:"col-12"},_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,"Execute trigger"),_react.default.createElement(_NodeTriggerList.default,{onSetPayload:function(e){return _this2.onchangeAttr({path:["payload"],value:e})},payload:this.props.action.getIn(["content","payload"])})))),_react.default.createElement("hr",{className:"hr-big"}))}}])&&_defineProperties(Constructor.prototype,protoProps),staticProps&&_defineProperties(Constructor,staticProps),Object.defineProperty(Constructor,"prototype",{writable:!1}),NodeTriggerActionPredefined}(_react.Component);exports.default=_default},{"./NodeTriggerActionType":36,"./NodeTriggerList":41,react:146}],28:[function(require,module,exports){"use strict";function _typeof(obj){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _react=function(obj,nodeInterop){if(!nodeInterop&&obj&&obj.__esModule)return obj;if(null===obj||"object"!==_typeof(obj)&&"function"!=typeof obj)return{default:obj};var cache=_getRequireWildcardCache(nodeInterop);if(cache&&cache.has(obj))return cache.get(obj);var newObj={},hasPropertyDescriptor=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var key in obj)if("default"!==key&&Object.prototype.hasOwnProperty.call(obj,key)){var desc=hasPropertyDescriptor?Object.getOwnPropertyDescriptor(obj,key):null;desc&&(desc.get||desc.set)?Object.defineProperty(newObj,key,desc):newObj[key]=obj[key]}newObj.default=obj,cache&&cache.set(obj,newObj);return newObj}(require("react")),_NodeTriggerActionType=_interopRequireDefault(require("./NodeTriggerActionType")),_NodeTriggerArgumentTemplate=_interopRequireDefault(require("./NodeTriggerArgumentTemplate"));function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function _getRequireWildcardCache(nodeInterop){if("function"!=typeof WeakMap)return null;var cacheBabelInterop=new WeakMap,cacheNodeInterop=new WeakMap;return(_getRequireWildcardCache=function(nodeInterop){return nodeInterop?cacheNodeInterop:cacheBabelInterop})(nodeInterop)}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}function _setPrototypeOf(o,p){return(_setPrototypeOf=Object.setPrototypeOf||function(o,p){return o.__proto__=p,o})(o,p)}function _createSuper(Derived){var hasNativeReflectConstruct=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var result,Super=_getPrototypeOf(Derived);if(hasNativeReflectConstruct){var NewTarget=_getPrototypeOf(this).constructor;result=Reflect.construct(Super,arguments,NewTarget)}else result=Super.apply(this,arguments);return _possibleConstructorReturn(this,result)}}function _possibleConstructorReturn(self,call){if(call&&("object"===_typeof(call)||"function"==typeof call))return call;if(void 0!==call)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(self)}function _assertThisInitialized(self){if(void 0===self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return self}function _getPrototypeOf(o){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(o){return o.__proto__||Object.getPrototypeOf(o)})(o)}var _default=function(_Component){!function(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function");subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:!0,configurable:!0}}),Object.defineProperty(subClass,"prototype",{writable:!1}),superClass&&_setPrototypeOf(subClass,superClass)}(NodeTriggerActionProgress,_Component);var Constructor,protoProps,staticProps,_super=_createSuper(NodeTriggerActionProgress);function NodeTriggerActionProgress(props){var _this;return function(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}(this,NodeTriggerActionProgress),(_this=_super.call(this,props)).changeType=_this.changeType.bind(_assertThisInitialized(_this)),_this.removeAction=_this.removeAction.bind(_assertThisInitialized(_this)),_this.onchangeAttr=_this.onchangeAttr.bind(_assertThisInitialized(_this)),_this}return Constructor=NodeTriggerActionProgress,(protoProps=[{key:"changeType",value:function(e){this.props.onChangeType({id:this.props.id,type:e.target.value})}},{key:"removeAction",value:function(){this.props.removeAction({id:this.props.id})}},{key:"onchangeAttr",value:function(e){this.props.onChangeContent({id:this.props.id,path:["content"].concat(e.path),value:e.value})}},{key:"render",value:function(){var _this2=this;return _react.default.createElement("div",null,_react.default.createElement("div",{className:"d-flex flex-row"},_react.default.createElement("div",null,_react.default.createElement("div",{className:"btn-group float-left",role:"group","aria-label":"Trigger actions"},_react.default.createElement("button",{disabled:!0,className:"btn btn-sm btn-info"},this.props.id+1),0==this.props.isFirst&&_react.default.createElement("button",{className:"btn btn-secondary btn-sm",onClick:function(e){return _this2.props.upField(_this2.props.id)}},_react.default.createElement("i",{className:"material-icons mr-0"},"keyboard_arrow_up")),0==this.props.isLast&&_react.default.createElement("button",{className:"btn btn-secondary btn-sm",onClick:function(e){return _this2.props.downField(_this2.props.id)}},_react.default.createElement("i",{className:"material-icons mr-0"},"keyboard_arrow_down")))),_react.default.createElement("div",{className:"flex-grow-1 px-2"},_react.default.createElement(_NodeTriggerActionType.default,{onChange:this.changeType,type:this.props.action.get("type")})),_react.default.createElement("div",{className:"pr-2"},_react.default.createElement("div",{className:"input-group input-group-sm"},_react.default.createElement("div",{className:"input-group-prepend"},_react.default.createElement("span",{className:"input-group-text",id:"basic-addon1"},_react.default.createElement("span",{className:"material-icons"},"vpn_key"))),_react.default.createElement("input",{type:"text",className:"form-control",readOnly:"true",value:this.props.action.getIn(["_id"]),title:"Action ID"}))),_react.default.createElement("div",{className:"pr-2 pt-1 text-nowrap"},_react.default.createElement("label",{className:"form-check-label",title:"Response will not be executed. Usefull for a quick testing."},_react.default.createElement("input",{onChange:function(e){return _this2.props.onChangeContent({id:_this2.props.id,path:["skip_resp"],value:e.target.checked})},defaultChecked:this.props.action.getIn(["skip_resp"]),type:"checkbox"})," Skip")),_react.default.createElement("div",null,_react.default.createElement("button",{onClick:this.removeAction,type:"button",className:"btn btn-danger btn-sm float-right"},_react.default.createElement("i",{className:"material-icons mr-0"},"delete")))),_react.default.createElement("div",{className:"row"},_react.default.createElement("div",{className:"col-6"},_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,"Update interval"),_react.default.createElement("input",{type:"text",placeholder:"Value in seconds",className:"form-control",onChange:function(e){return _this2.onchangeAttr({path:["interval"],value:e.target.value})},defaultValue:this.props.action.getIn(["content","interval"])}))),_react.default.createElement("div",{className:"col-6"},_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,"Event identifier"),_react.default.createElement("input",{placeholder:"progress_event",type:"text",className:"form-control",onChange:function(e){return _this2.onchangeAttr({path:["method"],value:e.target.value})},defaultValue:this.props.action.getIn(["content","method"])})))),_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,"Argument template"),_react.default.createElement(_NodeTriggerArgumentTemplate.default,{showOptional:!0,onChange:this.onchangeAttr,argument:this.props.action.getIn(["content","argument_template"])})),_react.default.createElement("hr",{className:"hr-big"}))}}])&&_defineProperties(Constructor.prototype,protoProps),staticProps&&_defineProperties(Constructor,staticProps),Object.defineProperty(Constructor,"prototype",{writable:!1}),NodeTriggerActionProgress}(_react.Component);exports.default=_default},{"./NodeTriggerActionType":36,"./NodeTriggerArgumentTemplate":39,react:146}],29:[function(require,module,exports){"use strict";function _typeof(obj){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var obj,_class,_react=function(obj,nodeInterop){if(!nodeInterop&&obj&&obj.__esModule)return obj;if(null===obj||"object"!==_typeof(obj)&&"function"!=typeof obj)return{default:obj};var cache=_getRequireWildcardCache(nodeInterop);if(cache&&cache.has(obj))return cache.get(obj);var newObj={},hasPropertyDescriptor=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var key in obj)if("default"!==key&&Object.prototype.hasOwnProperty.call(obj,key)){var desc=hasPropertyDescriptor?Object.getOwnPropertyDescriptor(obj,key):null;desc&&(desc.get||desc.set)?Object.defineProperty(newObj,key,desc):newObj[key]=obj[key]}newObj.default=obj,cache&&cache.set(obj,newObj);return newObj}(require("react")),_reactRedux=require("react-redux"),_NodeTriggerActionQuickReplyPayload=(obj=require("./NodeTriggerActionQuickReplyPayload"))&&obj.__esModule?obj:{default:obj};function _getRequireWildcardCache(nodeInterop){if("function"!=typeof WeakMap)return null;var cacheBabelInterop=new WeakMap,cacheNodeInterop=new WeakMap;return(_getRequireWildcardCache=function(nodeInterop){return nodeInterop?cacheNodeInterop:cacheBabelInterop})(nodeInterop)}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}function _setPrototypeOf(o,p){return(_setPrototypeOf=Object.setPrototypeOf||function(o,p){return o.__proto__=p,o})(o,p)}function _createSuper(Derived){var hasNativeReflectConstruct=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var result,Super=_getPrototypeOf(Derived);if(hasNativeReflectConstruct){var NewTarget=_getPrototypeOf(this).constructor;result=Reflect.construct(Super,arguments,NewTarget)}else result=Super.apply(this,arguments);return _possibleConstructorReturn(this,result)}}function _possibleConstructorReturn(self,call){if(call&&("object"===_typeof(call)||"function"==typeof call))return call;if(void 0!==call)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(self)}function _assertThisInitialized(self){if(void 0===self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return self}function _getPrototypeOf(o){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(o){return o.__proto__||Object.getPrototypeOf(o)})(o)}var _default=(0,_reactRedux.connect)((function(store){return{payloads:store.currenttrigger}}))(_class=function(_Component){!function(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function");subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:!0,configurable:!0}}),Object.defineProperty(subClass,"prototype",{writable:!1}),superClass&&_setPrototypeOf(subClass,superClass)}(NodeTriggerActionQuickReply,_Component);var Constructor,protoProps,staticProps,_super=_createSuper(NodeTriggerActionQuickReply);function NodeTriggerActionQuickReply(props){var _this;return function(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}(this,NodeTriggerActionQuickReply),(_this=_super.call(this,props)).onNameChange=_this.onNameChange.bind(_assertThisInitialized(_this)),_this.onPayloadChange=_this.onPayloadChange.bind(_assertThisInitialized(_this)),_this.deleteReply=_this.deleteReply.bind(_assertThisInitialized(_this)),_this.onPayloadTypeChange=_this.onPayloadTypeChange.bind(_assertThisInitialized(_this)),_this.onPayloadAttrChange=_this.onPayloadAttrChange.bind(_assertThisInitialized(_this)),_this.onPrecheckChange=_this.onPrecheckChange.bind(_assertThisInitialized(_this)),_this.onRenderArgsChange=_this.onRenderArgsChange.bind(_assertThisInitialized(_this)),_this.onStoreNameChange=_this.onStoreNameChange.bind(_assertThisInitialized(_this)),_this.onStoreValueChange=_this.onStoreValueChange.bind(_assertThisInitialized(_this)),_this.onButtonIDChange=_this.onButtonIDChange.bind(_assertThisInitialized(_this)),_this}return Constructor=NodeTriggerActionQuickReply,(protoProps=[{key:"onStoreNameChange",value:function(e){this.props.onStoreNameChange({id:this.props.id,value:e.target.value})}},{key:"onStoreValueChange",value:function(e){this.props.onStoreValueChange({id:this.props.id,value:e.target.value})}},{key:"onButtonIDChange",value:function(e){this.props.onButtonIDChange({id:this.props.id,value:e.target.value})}},{key:"onPrecheckChange",value:function(e){this.props.onPrecheckChange({id:this.props.id,value:e.target.value})}},{key:"onRenderArgsChange",value:function(e){this.props.onRenderArgsChange({id:this.props.id,value:e.target.value})}},{key:"onNameChange",value:function(e){this.props.onNameChange({id:this.props.id,value:e.target.value})}},{key:"onPayloadChange",value:function(payload){this.props.onPayloadChange({id:this.props.id,value:payload})}},{key:"onPayloadTypeChange",value:function(payload){this.props.onPayloadChange({id:this.props.id,value:""}),this.props.onPayloadTypeChange({id:this.props.id,value:payload})}},{key:"onPayloadAttrChange",value:function(payload){this.props.onPayloadAttrChange({id:this.props.id,payload:payload})}},{key:"deleteReply",value:function(){this.props.deleteReply({id:this.props.id})}},{key:"render",value:function(){var _this2=this;return _react.default.createElement("div",{className:"row"},_react.default.createElement("div",{className:"col-5"},_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",{className:"font-weight-bold"},"Name"),_react.default.createElement("input",{type:"text",onChange:this.onNameChange,defaultValue:this.props.reply.getIn(["content","name"]),className:"form-control form-control-sm"})),_react.default.createElement("div",{className:"row"},_react.default.createElement("div",{className:"col-6"},_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,"Precheck event"),_react.default.createElement("input",{type:"text",onChange:this.onPrecheckChange,defaultValue:this.props.reply.getIn(["content","render_precheck_function"]),className:"form-control form-control-sm"}))),_react.default.createElement("div",{className:"col-6"},_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,"Arguments"),_react.default.createElement("input",{type:"text",onChange:this.onRenderArgsChange,defaultValue:this.props.reply.getIn(["content","render_args"]),className:"form-control form-control-sm"}))))),_react.default.createElement("div",{className:"col-5"},_react.default.createElement(_NodeTriggerActionQuickReplyPayload.default,{onPayloadAttrChange:this.onPayloadAttrChange,onPayloadTypeChange:this.onPayloadTypeChange,onPayloadChange:this.onPayloadChange,payloadType:this.props.reply.get("type"),currentPayload:this.props.reply.getIn(["content"])})),_react.default.createElement("div",{className:"col-2"},_react.default.createElement("div",{className:"btn-group float-left mt-4 pt-2",role:"group","aria-label":"Trigger actions"},_react.default.createElement("button",{disabled:!0,className:"btn btn-xs btn-secondary"},this.props.id+1),0==this.props.isFirst&&_react.default.createElement("button",{className:"btn btn-secondary btn-xs",onClick:this.props.upField},_react.default.createElement("i",{className:"material-icons mr-0"},"keyboard_arrow_up")),0==this.props.isLast&&_react.default.createElement("button",{className:"btn btn-secondary btn-xs",onClick:this.props.downField},_react.default.createElement("i",{className:"material-icons mr-0"},"keyboard_arrow_down"))),_react.default.createElement("div",{className:"form-group float-right mt-4 pt-1"},_react.default.createElement("div",null,_react.default.createElement("a",{onClick:this.deleteReply},_react.default.createElement("i",{className:"material-icons mr-0"},"delete"))))),"url"==this.props.reply.get("type")&&_react.default.createElement("div",{className:"col-12"},_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,"Button ID"),_react.default.createElement("input",{type:"text",placeholder:"Button ID",onChange:this.onButtonIDChange,defaultValue:this.props.reply.getIn(["content","button_id"]),className:"form-control form-control-sm"}))),("trigger"==this.props.reply.get("type")||"button"==this.props.reply.get("type"))&&_react.default.createElement("div",{className:"col-10"},_react.default.createElement("div",{className:"row"},_react.default.createElement("div",{className:"col-6"},_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,"Store name"),_react.default.createElement("input",{type:"text",title:"If you do not set we will not save button click",placeholder:"How should we name stored attribute?",onChange:this.onStoreNameChange,defaultValue:this.props.reply.getIn(["content","store_name"]),className:"form-control form-control-sm"}))),_react.default.createElement("div",{className:"col-6"},_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,"Store value"),_react.default.createElement("input",{type:"text",placeholder:"Button name is used by default.",onChange:this.onStoreValueChange,defaultValue:this.props.reply.getIn(["content","store_value"]),className:"form-control form-control-sm"}))),_react.default.createElement("div",{className:"col-6"},_react.default.createElement("label",null,_react.default.createElement("input",{type:"checkbox",onChange:function(e){return _this2.props.onButtonStoreTypeChange({id:_this2.props.id,value:e.target.checked})},defaultChecked:this.props.reply.getIn(["content","as_variable"])})," Save value as chat variable.")," ",_react.default.createElement("i",{className:"material-icons",title:"This will be invisible for the operator."},"info")),_react.default.createElement("div",{className:"col-6"},_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,"Button ID"),_react.default.createElement("input",{type:"text",placeholder:"Button ID",onChange:this.onButtonIDChange,defaultValue:this.props.reply.getIn(["content","button_id"]),className:"form-control form-control-sm"}))))))}}])&&_defineProperties(Constructor.prototype,protoProps),staticProps&&_defineProperties(Constructor,staticProps),Object.defineProperty(Constructor,"prototype",{writable:!1}),NodeTriggerActionQuickReply}(_react.Component))||_class;exports.default=_default},{"./NodeTriggerActionQuickReplyPayload":30,react:146,"react-redux":131}],30:[function(require,module,exports){"use strict";function _typeof(obj){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var obj,_class,_react=function(obj,nodeInterop){if(!nodeInterop&&obj&&obj.__esModule)return obj;if(null===obj||"object"!==_typeof(obj)&&"function"!=typeof obj)return{default:obj};var cache=_getRequireWildcardCache(nodeInterop);if(cache&&cache.has(obj))return cache.get(obj);var newObj={},hasPropertyDescriptor=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var key in obj)if("default"!==key&&Object.prototype.hasOwnProperty.call(obj,key)){var desc=hasPropertyDescriptor?Object.getOwnPropertyDescriptor(obj,key):null;desc&&(desc.get||desc.set)?Object.defineProperty(newObj,key,desc):newObj[key]=obj[key]}newObj.default=obj,cache&&cache.set(obj,newObj);return newObj}(require("react")),_reactRedux=require("react-redux"),_nodePayloadActions=require("../../actions/nodePayloadActions"),_NodeTriggerList=(obj=require("./NodeTriggerList"))&&obj.__esModule?obj:{default:obj};function _getRequireWildcardCache(nodeInterop){if("function"!=typeof WeakMap)return null;var cacheBabelInterop=new WeakMap,cacheNodeInterop=new WeakMap;return(_getRequireWildcardCache=function(nodeInterop){return nodeInterop?cacheNodeInterop:cacheBabelInterop})(nodeInterop)}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}function _setPrototypeOf(o,p){return(_setPrototypeOf=Object.setPrototypeOf||function(o,p){return o.__proto__=p,o})(o,p)}function _createSuper(Derived){var hasNativeReflectConstruct=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var result,Super=_getPrototypeOf(Derived);if(hasNativeReflectConstruct){var NewTarget=_getPrototypeOf(this).constructor;result=Reflect.construct(Super,arguments,NewTarget)}else result=Super.apply(this,arguments);return _possibleConstructorReturn(this,result)}}function _possibleConstructorReturn(self,call){if(call&&("object"===_typeof(call)||"function"==typeof call))return call;if(void 0!==call)throw new TypeError("Derived constructors may only return object or undefined");return function(self){if(void 0===self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return self}(self)}function _getPrototypeOf(o){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(o){return o.__proto__||Object.getPrototypeOf(o)})(o)}var _default=(0,_reactRedux.connect)((function(store){return{payloads:store.currenttrigger}}))(_class=function(_Component){!function(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function");subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:!0,configurable:!0}}),Object.defineProperty(subClass,"prototype",{writable:!1}),superClass&&_setPrototypeOf(subClass,superClass)}(NodeTriggerActionQuickReplyPayload,_Component);var Constructor,protoProps,staticProps,_super=_createSuper(NodeTriggerActionQuickReplyPayload);function NodeTriggerActionQuickReplyPayload(props){var _this;return function(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}(this,NodeTriggerActionQuickReplyPayload),(_this=_super.call(this,props)).state={addingPayload:!1,value:""},_this}return Constructor=NodeTriggerActionQuickReplyPayload,(protoProps=[{key:"addPayload",value:function(){this.setState({addingPayload:!0})}},{key:"savePayload",value:function(){this.props.dispatch((0,_nodePayloadActions.addPayload)({trigger_id:this.props.payloads.getIn(["currenttrigger","id"]),name:this.props.currentPayload.get("name"),value:this.state.value})),this.props.onPayloadChange(this.state.value),this.setState({addingPayload:!1})}},{key:"cancelSavePayload",value:function(){this.setState({addingPayload:!1})}},{key:"onChange",value:function(e){this.props.onPayloadChange(e.target.value)}},{key:"onChangeType",value:function(e){this.props.onPayloadTypeChange(e.target.value)}},{key:"onPayloadNameChange",value:function(e){this.setState({value:e.target.value})}},{key:"onChangeMessageToVisitor",value:function(e){this.props.onPayloadAttrChange({attr:"payload_message",value:e.target.value})}},{key:"onChangePayload",value:function(val){this.props.onPayloadAttrChange({attr:"payload",value:val})}},{key:"render",value:function(){var _this2=this,list=this.props.payloads.get("payloads").map((function(option,index){return _react.default.createElement("option",{key:option.get("id"),value:option.get("payload")},option.get("name")+" ["+option.get("payload")+"]")})),controlPayload="";return"button"==this.props.payloadType?controlPayload=_react.default.createElement("div",{className:"col-9"},_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,"Payload"),0==this.state.addingPayload?_react.default.createElement("select",{className:"form-control form-control-sm",onChange:this.onChange.bind(this),value:this.props.currentPayload.get("payload")},_react.default.createElement("option",{value:""},"Select event"),list):_react.default.createElement("input",{className:"form-control form-control-sm",type:"text",onChange:this.onPayloadNameChange.bind(this),defaultValue:""}))):"url"==this.props.payloadType?controlPayload=_react.default.createElement("div",{className:"col-12"},_react.default.createElement("div",{className:"row"},_react.default.createElement("div",{className:"col-6"},_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,"URL"),_react.default.createElement("input",{className:"form-control form-control-sm",type:"text",onChange:this.onChange.bind(this),defaultValue:this.props.currentPayload.get("payload")}))),_react.default.createElement("div",{className:"col-6"},_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,"Payload"),_react.default.createElement("select",{className:"form-control form-control-sm",onChange:this.onChangeMessageToVisitor.bind(this),value:this.props.currentPayload.get("payload_message")},_react.default.createElement("option",{value:""},"Select event"),list))))):"file"==this.props.payloadType?controlPayload=_react.default.createElement("div",{className:"col-12"},_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,"File ID"),_react.default.createElement("input",{className:"form-control form-control-sm",placeholder:"File ID",type:"text",onChange:this.onChange.bind(this),defaultValue:this.props.currentPayload.get("payload")}))):"updatechat"==this.props.payloadType?controlPayload=_react.default.createElement("div",{className:"col-12"},_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,"Select action"),_react.default.createElement("select",{className:"form-control form-control-sm",value:this.props.currentPayload.get("payload"),onChange:this.onChange.bind(this)},_react.default.createElement("option",{value:""},"Select event"),_react.default.createElement("option",{value:"transferToOperator"},"Transfer to operator"),_react.default.createElement("option",{value:"transferToBot"},"Transfer to bot"),_react.default.createElement("option",{value:"subscribeToNotifications"},"Subscribe to notifications"))),("transferToOperator"==this.props.currentPayload.get("payload")||"transferToBot"==this.props.currentPayload.get("payload"))&&_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,"Message to user after transfer"),_react.default.createElement("input",{className:"form-control form-control-sm",onChange:this.onChangeMessageToVisitor.bind(this),defaultValue:this.props.currentPayload.get("payload_message"),type:"text",placeholder:"Message to visitor"}))):"trigger"==this.props.payloadType&&(controlPayload=_react.default.createElement("div",{className:"col-12"},_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,"Select what trigger to execute"),_react.default.createElement(_NodeTriggerList.default,{onSetPayload:function(e){return _this2.props.onPayloadChange(e)},payload:this.props.currentPayload.get("payload")})))),_react.default.createElement("div",{className:"row"},_react.default.createElement("div",{className:"col-12"},_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,"Type"),_react.default.createElement("select",{className:"form-control form-control-sm",defaultValue:this.props.payloadType,onChange:this.onChangeType.bind(this)},_react.default.createElement("option",{value:"none"},"No action"),_react.default.createElement("option",{value:"url"},"URL"),_react.default.createElement("option",{value:"button"},"Click"),_react.default.createElement("option",{value:"updatechat"},"Update chat"),_react.default.createElement("option",{value:"trigger"},"Execute trigger"),_react.default.createElement("option",{value:"file"},"File")))),controlPayload,"button"==this.props.payloadType&&_react.default.createElement("div",{className:"col-3"},_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null," "),_react.default.createElement("div",null,0==this.state.addingPayload?_react.default.createElement("a",{title:"Add new payload",onClick:this.addPayload.bind(this)},_react.default.createElement("i",{className:"material-icons mr-0"},"add")):_react.default.createElement("div",null,_react.default.createElement("a",{title:"Save",onClick:this.savePayload.bind(this)},_react.default.createElement("i",{className:"material-icons mr-0"},"check")),_react.default.createElement("a",{title:"Cancel",onClick:this.cancelSavePayload.bind(this)},_react.default.createElement("i",{className:"material-icons mr-0"},"cancel")))))))}}])&&_defineProperties(Constructor.prototype,protoProps),staticProps&&_defineProperties(Constructor,staticProps),Object.defineProperty(Constructor,"prototype",{writable:!1}),NodeTriggerActionQuickReplyPayload}(_react.Component))||_class;exports.default=_default},{"../../actions/nodePayloadActions":4,"./NodeTriggerList":41,react:146,"react-redux":131}],31:[function(require,module,exports){"use strict";function _typeof(obj){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _react=function(obj,nodeInterop){if(!nodeInterop&&obj&&obj.__esModule)return obj;if(null===obj||"object"!==_typeof(obj)&&"function"!=typeof obj)return{default:obj};var cache=_getRequireWildcardCache(nodeInterop);if(cache&&cache.has(obj))return cache.get(obj);var newObj={},hasPropertyDescriptor=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var key in obj)if("default"!==key&&Object.prototype.hasOwnProperty.call(obj,key)){var desc=hasPropertyDescriptor?Object.getOwnPropertyDescriptor(obj,key):null;desc&&(desc.get||desc.set)?Object.defineProperty(newObj,key,desc):newObj[key]=obj[key]}newObj.default=obj,cache&&cache.set(obj,newObj);return newObj}(require("react")),_NodeTriggerActionType=_interopRequireDefault(require("./NodeTriggerActionType")),_NodeTriggerList=_interopRequireDefault(require("./NodeTriggerList"));function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function _getRequireWildcardCache(nodeInterop){if("function"!=typeof WeakMap)return null;var cacheBabelInterop=new WeakMap,cacheNodeInterop=new WeakMap;return(_getRequireWildcardCache=function(nodeInterop){return nodeInterop?cacheNodeInterop:cacheBabelInterop})(nodeInterop)}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}function _setPrototypeOf(o,p){return(_setPrototypeOf=Object.setPrototypeOf||function(o,p){return o.__proto__=p,o})(o,p)}function _createSuper(Derived){var hasNativeReflectConstruct=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var result,Super=_getPrototypeOf(Derived);if(hasNativeReflectConstruct){var NewTarget=_getPrototypeOf(this).constructor;result=Reflect.construct(Super,arguments,NewTarget)}else result=Super.apply(this,arguments);return _possibleConstructorReturn(this,result)}}function _possibleConstructorReturn(self,call){if(call&&("object"===_typeof(call)||"function"==typeof call))return call;if(void 0!==call)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(self)}function _assertThisInitialized(self){if(void 0===self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return self}function _getPrototypeOf(o){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(o){return o.__proto__||Object.getPrototypeOf(o)})(o)}var _default=function(_Component){!function(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function");subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:!0,configurable:!0}}),Object.defineProperty(subClass,"prototype",{writable:!1}),superClass&&_setPrototypeOf(subClass,superClass)}(NodeTriggerActionRepeatRestrict,_Component);var Constructor,protoProps,staticProps,_super=_createSuper(NodeTriggerActionRepeatRestrict);function NodeTriggerActionRepeatRestrict(props){var _this;return function(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}(this,NodeTriggerActionRepeatRestrict),(_this=_super.call(this,props)).changeType=_this.changeType.bind(_assertThisInitialized(_this)),_this.removeAction=_this.removeAction.bind(_assertThisInitialized(_this)),_this.onchangeAttr=_this.onchangeAttr.bind(_assertThisInitialized(_this)),_this}return Constructor=NodeTriggerActionRepeatRestrict,(protoProps=[{key:"changeType",value:function(e){this.props.onChangeType({id:this.props.id,type:e.target.value})}},{key:"removeAction",value:function(){this.props.removeAction({id:this.props.id})}},{key:"onchangeAttr",value:function(e){this.props.onChangeContent({id:this.props.id,path:["content"].concat(e.path),value:e.value})}},{key:"render",value:function(){var _this2=this;return _react.default.createElement("div",null,_react.default.createElement("div",{className:"d-flex flex-row"},_react.default.createElement("div",null,_react.default.createElement("div",{className:"btn-group float-left",role:"group","aria-label":"Trigger actions"},_react.default.createElement("button",{disabled:!0,className:"btn btn-sm btn-info"},this.props.id+1),0==this.props.isFirst&&_react.default.createElement("button",{className:"btn btn-secondary btn-sm",onClick:function(e){return _this2.props.upField(_this2.props.id)}},_react.default.createElement("i",{className:"material-icons mr-0"},"keyboard_arrow_up")),0==this.props.isLast&&_react.default.createElement("button",{className:"btn btn-secondary btn-sm",onClick:function(e){return _this2.props.downField(_this2.props.id)}},_react.default.createElement("i",{className:"material-icons mr-0"},"keyboard_arrow_down")))),_react.default.createElement("div",{className:"flex-grow-1 px-2"},_react.default.createElement(_NodeTriggerActionType.default,{onChange:this.changeType,type:this.props.action.get("type")})),_react.default.createElement("div",{className:"pr-2"},_react.default.createElement("div",{className:"input-group input-group-sm"},_react.default.createElement("div",{className:"input-group-prepend"},_react.default.createElement("span",{className:"input-group-text",id:"basic-addon1"},_react.default.createElement("span",{className:"material-icons"},"vpn_key"))),_react.default.createElement("input",{type:"text",className:"form-control",readOnly:"true",value:this.props.action.getIn(["_id"]),title:"Action ID"}))),_react.default.createElement("div",{className:"pr-2 pt-1 text-nowrap"},_react.default.createElement("label",{className:"form-check-label",title:"Response will not be executed. Usefull for a quick testing."},_react.default.createElement("input",{onChange:function(e){return _this2.props.onChangeContent({id:_this2.props.id,path:["skip_resp"],value:e.target.checked})},defaultChecked:this.props.action.getIn(["skip_resp"]),type:"checkbox"})," Skip")),_react.default.createElement("div",null,_react.default.createElement("button",{onClick:this.removeAction,type:"button",className:"btn btn-danger btn-sm float-right"},_react.default.createElement("i",{className:"material-icons mr-0"},"delete")))),_react.default.createElement("div",{className:"row"},_react.default.createElement("div",{className:"col-6"},_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,"How many times allow to execute this trigger"),_react.default.createElement("input",{type:"text",className:"form-control form-control-sm",defaultValue:this.props.action.getIn(["content","repeat_count"]),onChange:function(e){return _this2.onchangeAttr({path:["repeat_count"],value:e.target.value})}}))),_react.default.createElement("div",{className:"col-6"},_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,"Repeat identifier"),_react.default.createElement("input",{type:"text",maxLength:"20",placeholder:"E.g global_counter",title:"If you define identifier counter will be using it for repeatable identification so you can use same identifier in multiple places.",className:"form-control form-control-sm",defaultValue:this.props.action.getIn(["content","identifier"]),onChange:function(e){return _this2.onchangeAttr({path:["identifier"],value:e.target.value})}}))),_react.default.createElement("div",{className:"col-12"},_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,"Set value manually. It wil not increment counter and will set value defined in this field"),_react.default.createElement("input",{type:"number",maxLength:"20",title:"You can set counter value manually",placeholder:"You can set counter value manually",className:"form-control form-control-sm",defaultValue:this.props.action.getIn(["content","value_man"]),onChange:function(e){return _this2.onchangeAttr({path:["value_man"],value:e.target.value})}}))),_react.default.createElement("div",{className:"col-6"},_react.default.createElement("label",null,_react.default.createElement("input",{type:"checkbox",onChange:function(e){return _this2.onchangeAttr({path:["reset_counter"],value:e.target.checked})},defaultChecked:this.props.action.getIn(["content","reset_counter"])})," This is reset operation.")),_react.default.createElement("div",{className:"col-6"},_react.default.createElement("label",null,_react.default.createElement("input",{type:"checkbox",onChange:function(e){return _this2.onchangeAttr({path:["do_not_inc"],value:e.target.checked})},defaultChecked:this.props.action.getIn(["content","do_not_inc"])})," Do not increment counter on check.")),_react.default.createElement("div",{className:"col-12"},_react.default.createElement("label",null,_react.default.createElement("input",{type:"checkbox",onChange:function(e){return _this2.onchangeAttr({path:["continue_all"],value:e.target.checked})},defaultChecked:this.props.action.getIn(["content","continue_all"])})," Continue executing responses. By default if limit is reached we do not execute any other response.")),_react.default.createElement("div",{className:"col-12"},_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,"If limit is reached execute this trigger"),_react.default.createElement(_NodeTriggerList.default,{onSetPayload:function(e){return _this2.onchangeAttr({path:["alternative_callback"],value:e})},payload:this.props.action.getIn(["content","alternative_callback"])})))),_react.default.createElement("hr",{className:"hr-big"}))}}])&&_defineProperties(Constructor.prototype,protoProps),staticProps&&_defineProperties(Constructor,staticProps),Object.defineProperty(Constructor,"prototype",{writable:!1}),NodeTriggerActionRepeatRestrict}(_react.Component);exports.default=_default},{"./NodeTriggerActionType":36,"./NodeTriggerList":41,react:146}],32:[function(require,module,exports){"use strict";function _typeof(obj){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _class,_react=function(obj,nodeInterop){if(!nodeInterop&&obj&&obj.__esModule)return obj;if(null===obj||"object"!==_typeof(obj)&&"function"!=typeof obj)return{default:obj};var cache=_getRequireWildcardCache(nodeInterop);if(cache&&cache.has(obj))return cache.get(obj);var newObj={},hasPropertyDescriptor=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var key in obj)if("default"!==key&&Object.prototype.hasOwnProperty.call(obj,key)){var desc=hasPropertyDescriptor?Object.getOwnPropertyDescriptor(obj,key):null;desc&&(desc.get||desc.set)?Object.defineProperty(newObj,key,desc):newObj[key]=obj[key]}newObj.default=obj,cache&&cache.set(obj,newObj);return newObj}(require("react")),_NodeTriggerActionType=_interopRequireDefault(require("./NodeTriggerActionType")),_NodeTriggerList=(_interopRequireDefault(require("./NodeTriggerArgumentTemplate")),_interopRequireDefault(require("./NodeTriggerList"))),_nodeGroupTriggerActions=require("../../actions/nodeGroupTriggerActions"),_reactRedux=require("react-redux"),_immutable=require("immutable");function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function _getRequireWildcardCache(nodeInterop){if("function"!=typeof WeakMap)return null;var cacheBabelInterop=new WeakMap,cacheNodeInterop=new WeakMap;return(_getRequireWildcardCache=function(nodeInterop){return nodeInterop?cacheNodeInterop:cacheBabelInterop})(nodeInterop)}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}function _setPrototypeOf(o,p){return(_setPrototypeOf=Object.setPrototypeOf||function(o,p){return o.__proto__=p,o})(o,p)}function _createSuper(Derived){var hasNativeReflectConstruct=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var result,Super=_getPrototypeOf(Derived);if(hasNativeReflectConstruct){var NewTarget=_getPrototypeOf(this).constructor;result=Reflect.construct(Super,arguments,NewTarget)}else result=Super.apply(this,arguments);return _possibleConstructorReturn(this,result)}}function _possibleConstructorReturn(self,call){if(call&&("object"===_typeof(call)||"function"==typeof call))return call;if(void 0!==call)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(self)}function _assertThisInitialized(self){if(void 0===self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return self}function _getPrototypeOf(o){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(o){return o.__proto__||Object.getPrototypeOf(o)})(o)}var _default=(0,_reactRedux.connect)((function(store){return{payloads:store.currenttrigger}}))(_class=function(_Component){!function(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function");subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:!0,configurable:!0}}),Object.defineProperty(subClass,"prototype",{writable:!1}),superClass&&_setPrototypeOf(subClass,superClass)}(NodeTriggerActionRestAPI,_Component);var Constructor,protoProps,staticProps,_super=_createSuper(NodeTriggerActionRestAPI);function NodeTriggerActionRestAPI(props){var _this;return function(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}(this,NodeTriggerActionRestAPI),(_this=_super.call(this,props)).changeType=_this.changeType.bind(_assertThisInitialized(_this)),_this.removeAction=_this.removeAction.bind(_assertThisInitialized(_this)),_this.onchangeAttr=_this.onchangeAttr.bind(_assertThisInitialized(_this)),_this.onRestAPIChange=_this.onRestAPIChange.bind(_assertThisInitialized(_this)),_this.onRestAPIMethodChange=_this.onRestAPIMethodChange.bind(_assertThisInitialized(_this)),_this}return Constructor=NodeTriggerActionRestAPI,(protoProps=[{key:"changeType",value:function(e){this.props.onChangeType({id:this.props.id,type:e.target.value})}},{key:"removeAction",value:function(){this.props.removeAction({id:this.props.id})}},{key:"onchangeAttr",value:function(e){this.props.onChangeContent({id:this.props.id,path:["content"].concat(e.path),value:e.value})}},{key:"componentDidMount",value:function(){this.props.action.hasIn(["content","rest_api"])&&(this.props.dispatch((0,_nodeGroupTriggerActions.initRestMethods)(this.props.action.getIn(["content","rest_api"]))),_immutable.List.isList(this.props.action.getIn(["content","rest_api_method_output"]))&&this.onchangeAttr({path:["rest_api_method_output"],value:(0,_immutable.fromJS)({})}),_immutable.List.isList(this.props.action.getIn(["content","rest_api_method_params"]))&&this.onchangeAttr({path:["rest_api_method_params"],value:(0,_immutable.fromJS)({})}))}},{key:"onRestAPIChange",value:function(e){this.props.dispatch((0,_nodeGroupTriggerActions.initRestMethods)(e)),this.onchangeAttr({path:["rest_api"],value:e}),this.onchangeAttr({path:["rest_api_method"],value:null}),this.onchangeAttr({path:["rest_api_method_params"],value:(0,_immutable.fromJS)({})}),this.onchangeAttr({path:["rest_api_method_output"],value:(0,_immutable.fromJS)({})})}},{key:"onRestAPIMethodChange",value:function(e){this.onchangeAttr({path:["rest_api_method"],value:e}),this.onchangeAttr({path:["rest_api_method_params"],value:(0,_immutable.fromJS)({})}),this.onchangeAttr({path:["rest_api_method_output"],value:(0,_immutable.fromJS)({})})}},{key:"render",value:function(){var _this2=this,list=this.props.payloads.get("rest_api_calls").map((function(option,index){return _react.default.createElement("option",{key:option.get("id"),value:option.get("id")},option.get("name"))})),indexOfListingToUpdate=this.props.payloads.getIn(["rest_api_calls"]).findIndex((function(listing){return listing.get("id")==_this2.props.action.getIn(["content","rest_api"])})),listMethods=[],userParams=[],outputCombinations=[];if(-1!==indexOfListingToUpdate&&this.props.payloads.hasIn(["rest_api_calls",indexOfListingToUpdate,"methods"])&&(listMethods=this.props.payloads.getIn(["rest_api_calls",indexOfListingToUpdate,"methods"]).map((function(option,index){return _react.default.createElement("option",{key:option.get("id"),value:option.get("id")},option.get("name"))})),this.props.action.hasIn(["content","rest_api_method"]))){var indexOfListingToUpdateMethod=this.props.payloads.getIn(["rest_api_calls",indexOfListingToUpdate,"methods"]).findIndex((function(listing){return listing.get("id")==_this2.props.action.getIn(["content","rest_api_method"])}));-1!==indexOfListingToUpdateMethod&&(userParams=this.props.payloads.getIn(["rest_api_calls",indexOfListingToUpdate,"methods",indexOfListingToUpdateMethod,"userparams"]).map((function(option,index){return _react.default.createElement("div",{className:"form-group",key:option.get("id")},_react.default.createElement("label",null,option.get("value")),_react.default.createElement("input",{className:"form-control form-control-sm",onChange:function(e){return _this2.onchangeAttr({path:["rest_api_method_params",option.get("id")],value:e.target.value})},defaultValue:_this2.props.action.getIn(["content","rest_api_method_params",option.get("id")]),type:"text"}))})),outputCombinations=this.props.payloads.getIn(["rest_api_calls",indexOfListingToUpdate,"methods",indexOfListingToUpdateMethod,"output"]).map((function(option,index){return _react.default.createElement("div",{key:option.get("id"),className:"form-group"},_react.default.createElement("div",{className:"row"},_react.default.createElement("div",{className:"col-6"},_react.default.createElement("label",null,"Execute trigger for [",_react.default.createElement("b",null,option.get("success_name")),"]")),_react.default.createElement("div",{className:"col-6"},_react.default.createElement("label",null,_react.default.createElement("input",{type:"checkbox",value:"",onChange:function(e){return _this2.onchangeAttr({path:["rest_api_method_output",option.get("id")+"_chk"],value:e.target.checked})},defaultChecked:_this2.props.action.getIn(["content","rest_api_method_output",option.get("id")+"_chk"])})," Check only this response. ",_react.default.createElement("i",{className:"material-icons",title:"By default we are checking all output combinations. You can force to check only selected ones."},"info")))),_react.default.createElement(_NodeTriggerList.default,{onSetPayload:function(e){return _this2.onchangeAttr({path:["rest_api_method_output",option.get("id")],value:e})},payload:_this2.props.action.getIn(["content","rest_api_method_output",option.get("id")])}))})))}return _react.default.createElement("div",null,_react.default.createElement("div",{className:"d-flex flex-row"},_react.default.createElement("div",null,_react.default.createElement("div",{className:"btn-group float-left",role:"group","aria-label":"Trigger actions"},_react.default.createElement("button",{disabled:!0,className:"btn btn-sm btn-info"},this.props.id+1),0==this.props.isFirst&&_react.default.createElement("button",{className:"btn btn-secondary btn-sm",onClick:function(e){return _this2.props.upField(_this2.props.id)}},_react.default.createElement("i",{className:"material-icons mr-0"},"keyboard_arrow_up")),0==this.props.isLast&&_react.default.createElement("button",{className:"btn btn-secondary btn-sm",onClick:function(e){return _this2.props.downField(_this2.props.id)}},_react.default.createElement("i",{className:"material-icons mr-0"},"keyboard_arrow_down")))),_react.default.createElement("div",{className:"flex-grow-1 px-2"},_react.default.createElement(_NodeTriggerActionType.default,{onChange:this.changeType,type:this.props.action.get("type")})),_react.default.createElement("div",{className:"pr-2"},_react.default.createElement("div",{className:"input-group input-group-sm"},_react.default.createElement("div",{className:"input-group-prepend"},_react.default.createElement("span",{className:"input-group-text",id:"basic-addon1"},_react.default.createElement("span",{className:"material-icons"},"vpn_key"))),_react.default.createElement("input",{type:"text",className:"form-control",readOnly:"true",value:this.props.action.getIn(["_id"]),title:"Action ID"}))),_react.default.createElement("div",{className:"pr-2 pt-1 text-nowrap"},_react.default.createElement("label",{className:"form-check-label",title:"Response will not be executed. Usefull for a quick testing."},_react.default.createElement("input",{onChange:function(e){return _this2.props.onChangeContent({id:_this2.props.id,path:["skip_resp"],value:e.target.checked})},defaultChecked:this.props.action.getIn(["skip_resp"]),type:"checkbox"})," Skip")),_react.default.createElement("div",null,_react.default.createElement("button",{onClick:this.removeAction,type:"button",className:"btn btn-danger btn-sm float-right"},_react.default.createElement("i",{className:"material-icons mr-0"},"delete")))),_react.default.createElement("div",{className:"row"},_react.default.createElement("div",{className:"col-6"},_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,"Rest API"),_react.default.createElement("select",{className:"form-control form-control-sm",defaultValue:this.props.action.getIn(["content","rest_api"]),onChange:function(e){return _this2.onRestAPIChange(e.target.value)}},_react.default.createElement("option",{value:""},"Choose a Rest API"),list))),_react.default.createElement("div",{className:"col-6"},_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,"Method"),_react.default.createElement("select",{className:"form-control form-control-sm",value:this.props.action.getIn(["content","rest_api_method"]),onChange:function(e){return _this2.onRestAPIMethodChange(e.target.value)}},_react.default.createElement("option",{value:""},"Choose a method"),listMethods)))),userParams,outputCombinations,_react.default.createElement("div",{className:"row"},_react.default.createElement("div",{className:"col-6"},_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,"Default trigger to execute"),_react.default.createElement(_NodeTriggerList.default,{enableAction:!0,payload_action_id:this.props.action.getIn(["content","rest_api_method_output","default_trigger_action_id"]),onSetPayloadActionId:function(e){return _this2.onchangeAttr({path:["rest_api_method_output","default_trigger_action_id"],value:e})},onSetPayload:function(e){return _this2.onchangeAttr({path:["rest_api_method_output","default_trigger"],value:e})},payload:this.props.action.getIn(["content","rest_api_method_output","default_trigger"])}))),_react.default.createElement("div",{className:"col-6"},_react.default.createElement("label",null,"Trigger to execute before default ",_react.default.createElement("i",{className:"material-icons",title:"Usefull for logging purposes to track full path of navigation. Use `Log action` response type. This trigger is executed only if default trigger is executed."},"info")),_react.default.createElement(_NodeTriggerList.default,{onSetPayload:function(e){return _this2.onchangeAttr({path:["rest_api_method_output","default_trigger_alt"],value:e})},payload:this.props.action.getIn(["content","rest_api_method_output","default_trigger_alt"])})),_react.default.createElement("div",{className:"col-12"},_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,"If your Rest API takes long time and visitor writes a message while it's still hapenning, you can send a custom trigger to execute. E.g this trigger can write that we are still processing your request."),_react.default.createElement(_NodeTriggerList.default,{enableAction:!0,payload_action_id:this.props.action.getIn(["content","rest_api_method_output","long_taking_action_id"]),onSetPayloadActionId:function(e){return _this2.onchangeAttr({path:["rest_api_method_output","long_taking_action_id"],value:e})},onSetPayload:function(e){return _this2.onchangeAttr({path:["rest_api_method_output","long_taking_trigger"],value:e})},payload:this.props.action.getIn(["content","rest_api_method_output","long_taking_trigger"])})))),_react.default.createElement("div",{className:"row"},_react.default.createElement("div",{className:"col-6"},_react.default.createElement("label",null,_react.default.createElement("input",{type:"checkbox",onChange:function(e){return _this2.onchangeAttr({path:["attr_options","background_process"],value:e.target.checked})},defaultChecked:this.props.action.getIn(["content","attr_options","background_process"])})," Send Rest API Call in the background.")," ",_react.default.createElement("i",{className:"material-icons",title:"You have to be using lhc-php-resque extension."},"info")),_react.default.createElement("div",{className:"col-6"},_react.default.createElement("label",null,_react.default.createElement("input",{type:"checkbox",onChange:function(e){return _this2.onchangeAttr({path:["attr_options","no_body"],value:e.target.checked})},defaultChecked:this.props.action.getIn(["content","attr_options","no_body"])})," Do not save response.")),_react.default.createElement("div",{className:"col-6"},_react.default.createElement("label",null,_react.default.createElement("input",{type:"checkbox",onChange:function(e){return _this2.onchangeAttr({path:["attr_options","as_system"],value:e.target.checked})},defaultChecked:this.props.action.getIn(["content","attr_options","as_system"])})," Save response as system message")),_react.default.createElement("div",{className:"col-6"},_react.default.createElement("label",null,_react.default.createElement("input",{type:"checkbox",onChange:function(e){return _this2.onchangeAttr({path:["attr_options","on_next_msg"],value:e.target.checked})},defaultChecked:this.props.action.getIn(["content","attr_options","on_next_msg"])})," Process on next visitor message"))),_react.default.createElement("hr",{className:"hr-big"}))}}])&&_defineProperties(Constructor.prototype,protoProps),staticProps&&_defineProperties(Constructor,staticProps),Object.defineProperty(Constructor,"prototype",{writable:!1}),NodeTriggerActionRestAPI}(_react.Component))||_class;exports.default=_default},{"../../actions/nodeGroupTriggerActions":3,"./NodeTriggerActionType":36,"./NodeTriggerArgumentTemplate":39,"./NodeTriggerList":41,immutable:102,react:146,"react-redux":131}],33:[function(require,module,exports){"use strict";function _typeof(obj){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var obj,_react=function(obj,nodeInterop){if(!nodeInterop&&obj&&obj.__esModule)return obj;if(null===obj||"object"!==_typeof(obj)&&"function"!=typeof obj)return{default:obj};var cache=_getRequireWildcardCache(nodeInterop);if(cache&&cache.has(obj))return cache.get(obj);var newObj={},hasPropertyDescriptor=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var key in obj)if("default"!==key&&Object.prototype.hasOwnProperty.call(obj,key)){var desc=hasPropertyDescriptor?Object.getOwnPropertyDescriptor(obj,key):null;desc&&(desc.get||desc.set)?Object.defineProperty(newObj,key,desc):newObj[key]=obj[key]}newObj.default=obj,cache&&cache.set(obj,newObj);return newObj}(require("react")),_NodeTriggerActionType=(obj=require("./NodeTriggerActionType"))&&obj.__esModule?obj:{default:obj};function _getRequireWildcardCache(nodeInterop){if("function"!=typeof WeakMap)return null;var cacheBabelInterop=new WeakMap,cacheNodeInterop=new WeakMap;return(_getRequireWildcardCache=function(nodeInterop){return nodeInterop?cacheNodeInterop:cacheBabelInterop})(nodeInterop)}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}function _setPrototypeOf(o,p){return(_setPrototypeOf=Object.setPrototypeOf||function(o,p){return o.__proto__=p,o})(o,p)}function _createSuper(Derived){var hasNativeReflectConstruct=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var result,Super=_getPrototypeOf(Derived);if(hasNativeReflectConstruct){var NewTarget=_getPrototypeOf(this).constructor;result=Reflect.construct(Super,arguments,NewTarget)}else result=Super.apply(this,arguments);return _possibleConstructorReturn(this,result)}}function _possibleConstructorReturn(self,call){if(call&&("object"===_typeof(call)||"function"==typeof call))return call;if(void 0!==call)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(self)}function _assertThisInitialized(self){if(void 0===self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return self}function _getPrototypeOf(o){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(o){return o.__proto__||Object.getPrototypeOf(o)})(o)}var _default=function(_Component){!function(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function");subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:!0,configurable:!0}}),Object.defineProperty(subClass,"prototype",{writable:!1}),superClass&&_setPrototypeOf(subClass,superClass)}(NodeTriggerActionTbody,_Component);var Constructor,protoProps,staticProps,_super=_createSuper(NodeTriggerActionTbody);function NodeTriggerActionTbody(props){var _this;return function(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}(this,NodeTriggerActionTbody),(_this=_super.call(this,props)).changeType=_this.changeType.bind(_assertThisInitialized(_this)),_this.removeAction=_this.removeAction.bind(_assertThisInitialized(_this)),_this.onchangeAttr=_this.onchangeAttr.bind(_assertThisInitialized(_this)),_this.showHelp=_this.showHelp.bind(_assertThisInitialized(_this)),_this}return Constructor=NodeTriggerActionTbody,(protoProps=[{key:"changeType",value:function(e){this.props.onChangeType({id:this.props.id,type:e.target.value})}},{key:"removeAction",value:function(){this.props.removeAction({id:this.props.id})}},{key:"onchangeAttr",value:function(e){this.props.onChangeContent({id:this.props.id,path:["content"].concat(e.path),value:e.value})}},{key:"showHelp",value:function(e){lhc.revealModal({url:WWW_DIR_JAVASCRIPT+"genericbot/help/"+e})}},{key:"render",value:function(){var _this2=this;return _react.default.createElement("div",null,_react.default.createElement("div",{className:"d-flex flex-row"},_react.default.createElement("div",null,_react.default.createElement("div",{className:"btn-group float-left",role:"group","aria-label":"Trigger actions"},_react.default.createElement("button",{disabled:!0,className:"btn btn-sm btn-info"},this.props.id+1),0==this.props.isFirst&&_react.default.createElement("button",{className:"btn btn-secondary btn-sm",onClick:function(e){return _this2.props.upField(_this2.props.id)}},_react.default.createElement("i",{className:"material-icons mr-0"},"keyboard_arrow_up")),0==this.props.isLast&&_react.default.createElement("button",{className:"btn btn-secondary btn-sm",onClick:function(e){return _this2.props.downField(_this2.props.id)}},_react.default.createElement("i",{className:"material-icons mr-0"},"keyboard_arrow_down")))),_react.default.createElement("div",{className:"flex-grow-1 px-2"},_react.default.createElement(_NodeTriggerActionType.default,{onChange:this.changeType,type:this.props.action.get("type")})),_react.default.createElement("div",{className:"pr-2"},_react.default.createElement("div",{className:"input-group input-group-sm"},_react.default.createElement("div",{className:"input-group-prepend"},_react.default.createElement("span",{className:"input-group-text",id:"basic-addon1"},_react.default.createElement("span",{className:"material-icons"},"vpn_key"))),_react.default.createElement("input",{type:"text",className:"form-control",readOnly:"true",value:this.props.action.getIn(["_id"]),title:"Action ID"}))),_react.default.createElement("div",{className:"pr-2 pt-1 text-nowrap"},_react.default.createElement("label",{className:"form-check-label",title:"Response will not be executed. Usefull for a quick testing."},_react.default.createElement("input",{onChange:function(e){return _this2.props.onChangeContent({id:_this2.props.id,path:["skip_resp"],value:e.target.checked})},defaultChecked:this.props.action.getIn(["skip_resp"]),type:"checkbox"})," Skip")),_react.default.createElement("div",null,_react.default.createElement("button",{onClick:this.removeAction,type:"button",className:"btn btn-danger btn-sm float-right"},_react.default.createElement("i",{className:"material-icons mr-0"},"delete")))),_react.default.createElement("div",{className:"row"},_react.default.createElement("div",{className:"col-12"},_react.default.createElement("div",{className:"form-group"},_react.default.createElement("a",{title:"Need help?",className:"float-right",onClick:function(e){return _this2.showHelp("execute_tbody")}},_react.default.createElement("i",{className:"material-icons mr-0"},"help")),_react.default.createElement("label",null,"Execute JSON. There you can paste code directly from `Show code` section."),_react.default.createElement("textarea",{rows:3,placeholder:"Write your JSON here or use placeholder for Rest API response!",onChange:function(e){return _this2.onchangeAttr({path:["payload"],value:e.target.value})},defaultValue:this.props.action.getIn(["content","payload"]),className:"form-control form-control-sm"})))),_react.default.createElement("hr",{className:"hr-big"}))}}])&&_defineProperties(Constructor.prototype,protoProps),staticProps&&_defineProperties(Constructor,staticProps),Object.defineProperty(Constructor,"prototype",{writable:!1}),NodeTriggerActionTbody}(_react.Component);exports.default=_default},{"./NodeTriggerActionType":36,react:146}],34:[function(require,module,exports){"use strict";function _typeof(obj){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _react=function(obj,nodeInterop){if(!nodeInterop&&obj&&obj.__esModule)return obj;if(null===obj||"object"!==_typeof(obj)&&"function"!=typeof obj)return{default:obj};var cache=_getRequireWildcardCache(nodeInterop);if(cache&&cache.has(obj))return cache.get(obj);var newObj={},hasPropertyDescriptor=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var key in obj)if("default"!==key&&Object.prototype.hasOwnProperty.call(obj,key)){var desc=hasPropertyDescriptor?Object.getOwnPropertyDescriptor(obj,key):null;desc&&(desc.get||desc.set)?Object.defineProperty(newObj,key,desc):newObj[key]=obj[key]}newObj.default=obj,cache&&cache.set(obj,newObj);return newObj}(require("react")),_NodeTriggerActionType=_interopRequireDefault(require("./NodeTriggerActionType")),_NodeTriggerActionQuickReply=_interopRequireDefault(require("./NodeTriggerActionQuickReply")),_NodeTriggerCallbackItem=_interopRequireDefault(require("./NodeTriggerCallbackItem")),_shortid=_interopRequireDefault(require("shortid"));function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function _getRequireWildcardCache(nodeInterop){if("function"!=typeof WeakMap)return null;var cacheBabelInterop=new WeakMap,cacheNodeInterop=new WeakMap;return(_getRequireWildcardCache=function(nodeInterop){return nodeInterop?cacheNodeInterop:cacheBabelInterop})(nodeInterop)}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}function _setPrototypeOf(o,p){return(_setPrototypeOf=Object.setPrototypeOf||function(o,p){return o.__proto__=p,o})(o,p)}function _createSuper(Derived){var hasNativeReflectConstruct=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var result,Super=_getPrototypeOf(Derived);if(hasNativeReflectConstruct){var NewTarget=_getPrototypeOf(this).constructor;result=Reflect.construct(Super,arguments,NewTarget)}else result=Super.apply(this,arguments);return _possibleConstructorReturn(this,result)}}function _possibleConstructorReturn(self,call){if(call&&("object"===_typeof(call)||"function"==typeof call))return call;if(void 0!==call)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(self)}function _assertThisInitialized(self){if(void 0===self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return self}function _getPrototypeOf(o){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(o){return o.__proto__||Object.getPrototypeOf(o)})(o)}var _default=function(_Component){!function(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function");subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:!0,configurable:!0}}),Object.defineProperty(subClass,"prototype",{writable:!1}),superClass&&_setPrototypeOf(subClass,superClass)}(NodeTriggerActionText,_Component);var Constructor,protoProps,staticProps,_super=_createSuper(NodeTriggerActionText);function NodeTriggerActionText(props){var _this;return function(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}(this,NodeTriggerActionText),(_this=_super.call(this,props)).changeType=_this.changeType.bind(_assertThisInitialized(_this)),_this.setText=_this.setText.bind(_assertThisInitialized(_this)),_this.setHTML=_this.setHTML.bind(_assertThisInitialized(_this)),_this.addQuickReply=_this.addQuickReply.bind(_assertThisInitialized(_this)),_this.addAction=_this.addAction.bind(_assertThisInitialized(_this)),_this.removeAction=_this.removeAction.bind(_assertThisInitialized(_this)),_this.addAnswerVariation=_this.addAnswerVariation.bind(_assertThisInitialized(_this)),_this.onQuickReplyNameChange=_this.onQuickReplyNameChange.bind(_assertThisInitialized(_this)),_this.onPrecheckChange=_this.onPrecheckChange.bind(_assertThisInitialized(_this)),_this.onRenderArgsChange=_this.onRenderArgsChange.bind(_assertThisInitialized(_this)),_this.onQuickReplyPayloadChange=_this.onQuickReplyPayloadChange.bind(_assertThisInitialized(_this)),_this.onDeleteQuickReply=_this.onDeleteQuickReply.bind(_assertThisInitialized(_this)),_this.onQuickReplyPayloadTypeChange=_this.onQuickReplyPayloadTypeChange.bind(_assertThisInitialized(_this)),_this.onPayloadAttrChange=_this.onPayloadAttrChange.bind(_assertThisInitialized(_this)),_this.showHelp=_this.showHelp.bind(_assertThisInitialized(_this)),_this.onStoreNameChange=_this.onStoreNameChange.bind(_assertThisInitialized(_this)),_this.onStoreValueChange=_this.onStoreValueChange.bind(_assertThisInitialized(_this)),_this.onButtonIDChange=_this.onButtonIDChange.bind(_assertThisInitialized(_this)),_this.onButtonStoreTypeChange=_this.onButtonStoreTypeChange.bind(_assertThisInitialized(_this)),_this.onDeleteField=_this.onDeleteField.bind(_assertThisInitialized(_this)),_this.onchangeFieldAttr=_this.onchangeFieldAttr.bind(_assertThisInitialized(_this)),_this.upChildField=_this.upChildField.bind(_assertThisInitialized(_this)),_this.downChildField=_this.downChildField.bind(_assertThisInitialized(_this)),_this.textMessageRef=_react.default.createRef(),_this}return Constructor=NodeTriggerActionText,(protoProps=[{key:"changeType",value:function(e){this.props.onChangeType({id:this.props.id,type:e.target.value})}},{key:"setText",value:function(e){this.props.onChangeContent({id:this.props.id,path:["content","text"],value:e.target.value})}},{key:"addAnswerVariation",value:function(){console.log("add answer validation");var newVal=this.props.action.getIn(["content","text"])+" |||\n";this.props.onChangeContent({id:this.props.id,path:["content","text"],value:newVal}),this.textMessageRef.current.focus(),this.textMessageRef.current.value=newVal}},{key:"setHTML",value:function(e){this.props.onChangeContent({id:this.props.id,path:["content","html"],value:e.target.value})}},{key:"addQuickReply",value:function(e){this.props.addQuickReply({id:this.props.id})}},{key:"addAction",value:function(e){this.props.addSubelement({id:this.props.id,path:["content","callback_list"],default:{_id:_shortid.default.generate(),content:{success_message:"",success_text_pattern:"",success_callback:"",type:"",field:"",event:""}}})}},{key:"onQuickReplyNameChange",value:function(e){this.props.onChangeContent({id:this.props.id,path:["content","quick_replies",e.id,"content","name"],value:e.value})}},{key:"onQuickReplyPayloadChange",value:function(e){this.props.onChangeContent({id:this.props.id,path:["content","quick_replies",e.id,"content","payload"],value:e.value})}},{key:"onQuickReplyPayloadTypeChange",value:function(e){this.props.onChangeContent({id:this.props.id,path:["content","quick_replies",e.id,"type"],value:e.value})}},{key:"onPrecheckChange",value:function(e){this.props.onChangeContent({id:this.props.id,path:["content","quick_replies",e.id,"content","render_precheck_function"],value:e.value})}},{key:"onStoreNameChange",value:function(e){this.props.onChangeContent({id:this.props.id,path:["content","quick_replies",e.id,"content","store_name"],value:e.value})}},{key:"onStoreValueChange",value:function(e){this.props.onChangeContent({id:this.props.id,path:["content","quick_replies",e.id,"content","store_value"],value:e.value})}},{key:"onButtonIDChange",value:function(e){this.props.onChangeContent({id:this.props.id,path:["content","quick_replies",e.id,"content","button_id"],value:e.value})}},{key:"onButtonStoreTypeChange",value:function(e){this.props.onChangeContent({id:this.props.id,path:["content","quick_replies",e.id,"content","as_variable"],value:e.value})}},{key:"onRenderArgsChange",value:function(e){this.props.onChangeContent({id:this.props.id,path:["content","quick_replies",e.id,"content","render_args"],value:e.value})}},{key:"onPayloadAttrChange",value:function(e){this.props.onChangeContent({id:this.props.id,path:["content","quick_replies",e.id,"content",e.payload.attr],value:e.payload.value})}},{key:"onDeleteQuickReply",value:function(e){this.props.removeQuickReply({id:this.props.id,path:["content","quick_replies",e.id]})}},{key:"removeAction",value:function(){this.props.removeAction({id:this.props.id})}},{key:"onDeleteField",value:function(fieldIndex){this.props.deleteSubelement({id:this.props.id,path:["content","callback_list",fieldIndex]})}},{key:"onchangeFieldAttr",value:function(e){this.props.onChangeContent({id:this.props.id,path:["content","callback_list",e.id].concat(e.path),value:e.value})}},{key:"onchangeAttr",value:function(e){this.props.onChangeContent({id:this.props.id,path:["content"].concat(e.path),value:e.value})}},{key:"showHelp",value:function(e){lhc.revealModal({url:WWW_DIR_JAVASCRIPT+"genericbot/help/"+e})}},{key:"upChildField",value:function(fieldIndex){this.props.moveUpSubelement({id:this.props.id,index:fieldIndex,path:["content","quick_replies"]})}},{key:"downChildField",value:function(fieldIndex){this.props.moveDownSubelement({id:this.props.id,index:fieldIndex,path:["content","quick_replies"]})}},{key:"render",value:function(){var _this2=this,quick_replies=[];if(this.props.action.hasIn(["content","quick_replies"])){var totalButtons=this.props.action.getIn(["content","quick_replies"]).size;quick_replies=this.props.action.getIn(["content","quick_replies"]).map((function(reply,index){return _react.default.createElement(_NodeTriggerActionQuickReply.default,{onPayloadAttrChange:_this2.onPayloadAttrChange,upField:function(e){return _this2.upChildField(index)},downField:function(e){return _this2.downChildField(index)},onButtonStoreTypeChange:_this2.onButtonStoreTypeChange,onButtonIDChange:_this2.onButtonIDChange,isFirst:0==index,isLast:index+1==totalButtons,onStoreValueChange:_this2.onStoreValueChange,onStoreNameChange:_this2.onStoreNameChange,onPrecheckChange:_this2.onPrecheckChange,onRenderArgsChange:_this2.onRenderArgsChange,onPayloadTypeChange:_this2.onQuickReplyPayloadTypeChange,deleteReply:_this2.onDeleteQuickReply,onNameChange:_this2.onQuickReplyNameChange,onPayloadChange:_this2.onQuickReplyPayloadChange,id:index,key:reply.get("_id")||index,reply:reply})}))}var callback_list=[];return this.props.action.hasIn(["content","callback_list"])&&(callback_list=this.props.action.getIn(["content","callback_list"]).map((function(callback,index){return _react.default.createElement(_NodeTriggerCallbackItem.default,{onChangeFieldAttr:_this2.onchangeFieldAttr,onDeleteField:_this2.onDeleteField,id:index,key:index,callback:callback})}))),_react.default.createElement("div",{className:"row"},_react.default.createElement("div",{className:"col-12"},_react.default.createElement("div",{className:"d-flex flex-row"},_react.default.createElement("div",null,_react.default.createElement("div",{className:"btn-group float-left",role:"group","aria-label":"Trigger actions"},_react.default.createElement("button",{disabled:!0,className:"btn btn-sm btn-info"},this.props.id+1),0==this.props.isFirst&&_react.default.createElement("button",{className:"btn btn-secondary btn-sm",onClick:function(e){return _this2.props.upField(_this2.props.id)}},_react.default.createElement("i",{className:"material-icons mr-0"},"keyboard_arrow_up")),0==this.props.isLast&&_react.default.createElement("button",{className:"btn btn-secondary btn-sm",onClick:function(e){return _this2.props.downField(_this2.props.id)}},_react.default.createElement("i",{className:"material-icons mr-0"},"keyboard_arrow_down")))),_react.default.createElement("div",{className:"flex-grow-1 px-2"},_react.default.createElement(_NodeTriggerActionType.default,{onChange:this.changeType,type:this.props.action.get("type")})),_react.default.createElement("div",{className:"pr-2"},_react.default.createElement("div",{className:"input-group input-group-sm"},_react.default.createElement("div",{className:"input-group-prepend"},_react.default.createElement("span",{className:"input-group-text",id:"basic-addon1"},_react.default.createElement("span",{className:"material-icons"},"vpn_key"))),_react.default.createElement("input",{type:"text",className:"form-control",readOnly:"true",value:this.props.action.getIn(["_id"]),title:"Action ID"}))),_react.default.createElement("div",{className:"pr-2 pt-1 text-nowrap"},_react.default.createElement("label",{className:"form-check-label",title:"Response will not be executed. Usefull for a quick testing."},_react.default.createElement("input",{onChange:function(e){return _this2.props.onChangeContent({id:_this2.props.id,path:["skip_resp"],value:e.target.checked})},defaultChecked:this.props.action.getIn(["skip_resp"]),type:"checkbox"})," Skip")),_react.default.createElement("div",null,_react.default.createElement("button",{onClick:this.removeAction,type:"button",className:"btn btn-danger btn-sm float-right"},_react.default.createElement("i",{className:"material-icons mr-0"},"delete")))),_react.default.createElement("a",{title:"Need help?",className:"float-right",onClick:function(e){return _this2.showHelp("text")}},_react.default.createElement("i",{className:"material-icons mr-0"},"help")),_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,"Enter text"),_react.default.createElement("a",{title:"Add answer variation",className:"float-right",onClick:this.addAnswerVariation},_react.default.createElement("i",{className:"material-icons mr-0"},"question_answer")),_react.default.createElement("textarea",{rows:3,placeholder:"Write your response here!",onChange:this.setText,ref:this.textMessageRef,defaultValue:this.props.action.getIn(["content","text"]),className:"form-control form-control-sm"})),_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,"Enter HTML"),_react.default.createElement("textarea",{placeholder:"Write your response here!",onChange:this.setHTML,defaultValue:this.props.action.getIn(["content","html"]),className:"form-control form-control-sm"})),_react.default.createElement("div",{className:"row"},_react.default.createElement("div",{className:"col-6"},_react.default.createElement("div",{role:"group"},_react.default.createElement("label",null,_react.default.createElement("input",{type:"checkbox",onChange:function(e){return _this2.onchangeAttr({path:["attr_options","hide_text_area"],value:e.target.checked})},defaultChecked:this.props.action.getIn(["content","attr_options","hide_text_area"])})," Hide text area on response.")," ",_react.default.createElement("i",{className:"material-icons",title:"Textarea to enter user message will be disabled. Make sure you include buttons for user to click."},"info")),_react.default.createElement("div",{role:"group"},_react.default.createElement("label",null,_react.default.createElement("input",{type:"checkbox",onChange:function(e){return _this2.onchangeAttr({path:["attr_options","on_start_chat"],value:e.target.checked})},defaultChecked:this.props.action.getIn(["content","attr_options","on_start_chat"])})," Send message only at chat start.")," ",_react.default.createElement("i",{className:"material-icons",title:"Message will be send only on chat start event."},"info")),_react.default.createElement("div",{role:"group"},_react.default.createElement("label",null,_react.default.createElement("input",{type:"checkbox",onChange:function(e){return _this2.onchangeAttr({path:["attr_options","hide_on_next"],value:e.target.checked})},defaultChecked:this.props.action.getIn(["content","attr_options","hide_on_next"])})," Hide on next message.")," ",_react.default.createElement("i",{className:"material-icons",title:"Hide message content on next message."},"info"))),_react.default.createElement("div",{className:"col-6"},_react.default.createElement("div",{role:"group"},_react.default.createElement("label",null,_react.default.createElement("input",{type:"checkbox",onChange:function(e){return _this2.onchangeAttr({path:["attr_options","as_system"],value:e.target.checked})},defaultChecked:this.props.action.getIn(["content","attr_options","as_system"])})," Save as a system message.")," ",_react.default.createElement("i",{className:"material-icons",title:"Message will be saved as system message and will be invisible by visitor."},"info")),_react.default.createElement("div",{role:"group"},_react.default.createElement("label",null,_react.default.createElement("input",{type:"checkbox",onChange:function(e){return _this2.onchangeAttr({path:["attr_options","as_visitor"],value:e.target.checked})},defaultChecked:this.props.action.getIn(["content","attr_options","as_visitor"])})," Save as a visitor message.")," ",_react.default.createElement("i",{className:"material-icons",title:"Message will be saved as a visitor message."},"info")),_react.default.createElement("div",{role:"group"},_react.default.createElement("label",null,_react.default.createElement("input",{type:"checkbox",onChange:function(e){return _this2.onchangeAttr({path:["attr_options","as_log_msg"],value:e.target.checked})},defaultChecked:this.props.action.getIn(["content","attr_options","as_log_msg"])})," Save as a log message.")," ",_react.default.createElement("i",{className:"material-icons",title:"Message will be saved in audit log only."},"info"))),_react.default.createElement("div",{className:"col-12 text-right"},_react.default.createElement("div",{className:"btn-group",role:"group"},_react.default.createElement("button",{onClick:this.addAction,className:"btn btn-xs btn-secondary"},_react.default.createElement("i",{className:"material-icons mr-0"},"add")," Add action on message"),_react.default.createElement("button",{onClick:this.addQuickReply,className:"btn btn-xs btn-secondary"},_react.default.createElement("i",{className:"material-icons mr-0"},"add")," Add quick reply"))))),_react.default.createElement("div",{className:"col-12"},callback_list,callback_list.size>0&&quick_replies.size>0&&_react.default.createElement("hr",null),quick_replies.size>0&&_react.default.createElement(_react.default.Fragment,null,_react.default.createElement("hr",null),_react.default.createElement("div",{className:"row"},_react.default.createElement("div",{className:"col-6"},_react.default.createElement("label",null,_react.default.createElement("input",{type:"checkbox",onChange:function(e){return _this2.onchangeAttr({path:["attr_options","as_dropdown"],value:e.target.checked})},defaultChecked:this.props.action.getIn(["content","attr_options","as_dropdown"])})," Render buttons as dropdown."),_react.default.createElement("br",null)),_react.default.createElement("div",{className:"col-6"},_react.default.createElement("label",null,_react.default.createElement("input",{type:"checkbox",onChange:function(e){return _this2.onchangeAttr({path:["attr_options","always_show"],value:e.target.checked})},defaultChecked:this.props.action.getIn(["content","attr_options","always_show"])})," Render buttons even if it's not the last message.")),this.props.action.hasIn(["content","attr_options","always_show"])&&1==this.props.action.getIn(["content","attr_options","always_show"])&&_react.default.createElement("div",{className:"col-12"},_react.default.createElement("label",null,"How many messages can be after buttons before they are hidden permanently? (applies only after page refresh)"),_react.default.createElement("input",{type:"number",placeholder:"1",className:"form-control form-control-sm",min:1,onChange:function(e){return _this2.onchangeAttr({path:["attr_options","after_messages_number"],value:e.target.value})},defaultValue:this.props.action.getIn(["content","attr_options","after_messages_number"])})))),quick_replies),_react.default.createElement("div",{className:"col-12"},_react.default.createElement("hr",{className:"hr-big"})))}}])&&_defineProperties(Constructor.prototype,protoProps),staticProps&&_defineProperties(Constructor,staticProps),Object.defineProperty(Constructor,"prototype",{writable:!1}),NodeTriggerActionText}(_react.Component);exports.default=_default},{"./NodeTriggerActionQuickReply":29,"./NodeTriggerActionType":36,"./NodeTriggerCallbackItem":40,react:146,shortid:158}],35:[function(require,module,exports){"use strict";function _typeof(obj){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var obj,_react=function(obj,nodeInterop){if(!nodeInterop&&obj&&obj.__esModule)return obj;if(null===obj||"object"!==_typeof(obj)&&"function"!=typeof obj)return{default:obj};var cache=_getRequireWildcardCache(nodeInterop);if(cache&&cache.has(obj))return cache.get(obj);var newObj={},hasPropertyDescriptor=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var key in obj)if("default"!==key&&Object.prototype.hasOwnProperty.call(obj,key)){var desc=hasPropertyDescriptor?Object.getOwnPropertyDescriptor(obj,key):null;desc&&(desc.get||desc.set)?Object.defineProperty(newObj,key,desc):newObj[key]=obj[key]}newObj.default=obj,cache&&cache.set(obj,newObj);return newObj}(require("react")),_NodeTriggerActionType=(obj=require("./NodeTriggerActionType"))&&obj.__esModule?obj:{default:obj};function _getRequireWildcardCache(nodeInterop){if("function"!=typeof WeakMap)return null;var cacheBabelInterop=new WeakMap,cacheNodeInterop=new WeakMap;return(_getRequireWildcardCache=function(nodeInterop){return nodeInterop?cacheNodeInterop:cacheBabelInterop})(nodeInterop)}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}function _setPrototypeOf(o,p){return(_setPrototypeOf=Object.setPrototypeOf||function(o,p){return o.__proto__=p,o})(o,p)}function _createSuper(Derived){var hasNativeReflectConstruct=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var result,Super=_getPrototypeOf(Derived);if(hasNativeReflectConstruct){var NewTarget=_getPrototypeOf(this).constructor;result=Reflect.construct(Super,arguments,NewTarget)}else result=Super.apply(this,arguments);return _possibleConstructorReturn(this,result)}}function _possibleConstructorReturn(self,call){if(call&&("object"===_typeof(call)||"function"==typeof call))return call;if(void 0!==call)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(self)}function _assertThisInitialized(self){if(void 0===self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return self}function _getPrototypeOf(o){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(o){return o.__proto__||Object.getPrototypeOf(o)})(o)}var _default=function(_Component){!function(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function");subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:!0,configurable:!0}}),Object.defineProperty(subClass,"prototype",{writable:!1}),superClass&&_setPrototypeOf(subClass,superClass)}(NodeTriggerActionTextConditional,_Component);var Constructor,protoProps,staticProps,_super=_createSuper(NodeTriggerActionTextConditional);function NodeTriggerActionTextConditional(props){var _this;return function(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}(this,NodeTriggerActionTextConditional),(_this=_super.call(this,props)).changeType=_this.changeType.bind(_assertThisInitialized(_this)),_this.removeAction=_this.removeAction.bind(_assertThisInitialized(_this)),_this.onchangeAttr=_this.onchangeAttr.bind(_assertThisInitialized(_this)),_this.showHelp=_this.showHelp.bind(_assertThisInitialized(_this)),_this}return Constructor=NodeTriggerActionTextConditional,(protoProps=[{key:"changeType",value:function(e){this.props.onChangeType({id:this.props.id,type:e.target.value})}},{key:"removeAction",value:function(){this.props.removeAction({id:this.props.id})}},{key:"onchangeAttr",value:function(e){this.props.onChangeContent({id:this.props.id,path:["content"].concat(e.path),value:e.value})}},{key:"showHelp",value:function(e){lhc.revealModal({url:WWW_DIR_JAVASCRIPT+"genericbot/help/"+e})}},{key:"render",value:function(){var _this2=this;return _react.default.createElement("div",null,_react.default.createElement("div",{className:"d-flex flex-row"},_react.default.createElement("div",null,_react.default.createElement("div",{className:"btn-group float-left",role:"group","aria-label":"Trigger actions"},_react.default.createElement("button",{disabled:!0,className:"btn btn-sm btn-info"},this.props.id+1),0==this.props.isFirst&&_react.default.createElement("button",{className:"btn btn-secondary btn-sm",onClick:function(e){return _this2.props.upField(_this2.props.id)}},_react.default.createElement("i",{className:"material-icons mr-0"},"keyboard_arrow_up")),0==this.props.isLast&&_react.default.createElement("button",{className:"btn btn-secondary btn-sm",onClick:function(e){return _this2.props.downField(_this2.props.id)}},_react.default.createElement("i",{className:"material-icons mr-0"},"keyboard_arrow_down")))),_react.default.createElement("div",{className:"flex-grow-1 px-2"},_react.default.createElement(_NodeTriggerActionType.default,{onChange:this.changeType,type:this.props.action.get("type")})),_react.default.createElement("div",{className:"pr-2"},_react.default.createElement("div",{className:"input-group input-group-sm"},_react.default.createElement("div",{className:"input-group-prepend"},_react.default.createElement("span",{className:"input-group-text",id:"basic-addon1"},_react.default.createElement("span",{className:"material-icons"},"vpn_key"))),_react.default.createElement("input",{type:"text",className:"form-control",readOnly:"true",value:this.props.action.getIn(["_id"]),title:"Action ID"}))),_react.default.createElement("div",{className:"pr-2 pt-1 text-nowrap"},_react.default.createElement("label",{className:"form-check-label",title:"Response will not be executed. Usefull for a quick testing."},_react.default.createElement("input",{onChange:function(e){return _this2.props.onChangeContent({id:_this2.props.id,path:["skip_resp"],value:e.target.checked})},defaultChecked:this.props.action.getIn(["skip_resp"]),type:"checkbox"})," Skip")),_react.default.createElement("div",null,_react.default.createElement("button",{onClick:this.removeAction,type:"button",className:"btn btn-danger btn-sm float-right"},_react.default.createElement("i",{className:"material-icons mr-0"},"delete")))),_react.default.createElement("div",{className:"row"},_react.default.createElement("div",{className:"col-12"},_react.default.createElement("div",{className:"form-group"},_react.default.createElement("a",{title:"Need help?",className:"float-right",onClick:function(e){return _this2.showHelp("conditional_message")}},_react.default.createElement("i",{className:"material-icons mr-0"},"help")),_react.default.createElement("label",null,"Intro message to the user"),_react.default.createElement("textarea",{rows:3,placeholder:"This message will receive a user",onChange:function(e){return _this2.onchangeAttr({path:["intro_us"],value:e.target.value})},defaultValue:this.props.action.getIn(["content","intro_us"]),className:"form-control form-control-sm"}))),_react.default.createElement("div",{className:"col-12"},_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,"Full message to the user"),_react.default.createElement("textarea",{rows:3,placeholder:"This is full message body after read more is clicked.",onChange:function(e){return _this2.onchangeAttr({path:["full_us"],value:e.target.value})},defaultValue:this.props.action.getIn(["content","full_us"]),className:"form-control form-control-sm"}))),_react.default.createElement("div",{className:"col-6"},_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,"Read more text for the visitor"),_react.default.createElement("input",{type:"text",placeholder:"Read more",className:"form-control form-control-sm",onChange:function(e){return _this2.onchangeAttr({path:["readmore_us"],value:e.target.value})},defaultValue:this.props.action.getIn(["content","readmore_us"])}))),_react.default.createElement("div",{className:"col-12"},_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,"Intro message to the operator"),_react.default.createElement("textarea",{rows:3,placeholder:"This message will receive a user",onChange:function(e){return _this2.onchangeAttr({path:["intro_op"],value:e.target.value})},defaultValue:this.props.action.getIn(["content","intro_op"]),className:"form-control form-control-sm"}))),_react.default.createElement("div",{className:"col-12"},_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,"Full message to the operator"),_react.default.createElement("textarea",{rows:3,placeholder:"This is full message body after read more is clicked.",onChange:function(e){return _this2.onchangeAttr({path:["full_op"],value:e.target.value})},defaultValue:this.props.action.getIn(["content","full_op"]),className:"form-control form-control-sm"}))),_react.default.createElement("div",{className:"col-6"},_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,"Read more text for the operator"),_react.default.createElement("input",{type:"text",placeholder:"Read more",className:"form-control form-control-sm",onChange:function(e){return _this2.onchangeAttr({path:["readmore_op"],value:e.target.value})},defaultValue:this.props.action.getIn(["content","readmore_op"])})))),_react.default.createElement("hr",{className:"hr-big"}))}}])&&_defineProperties(Constructor.prototype,protoProps),staticProps&&_defineProperties(Constructor,staticProps),Object.defineProperty(Constructor,"prototype",{writable:!1}),NodeTriggerActionTextConditional}(_react.Component);exports.default=_default},{"./NodeTriggerActionType":36,react:146}],36:[function(require,module,exports){"use strict";function _typeof(obj){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _react=function(obj,nodeInterop){if(!nodeInterop&&obj&&obj.__esModule)return obj;if(null===obj||"object"!==_typeof(obj)&&"function"!=typeof obj)return{default:obj};var cache=_getRequireWildcardCache(nodeInterop);if(cache&&cache.has(obj))return cache.get(obj);var newObj={},hasPropertyDescriptor=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var key in obj)if("default"!==key&&Object.prototype.hasOwnProperty.call(obj,key)){var desc=hasPropertyDescriptor?Object.getOwnPropertyDescriptor(obj,key):null;desc&&(desc.get||desc.set)?Object.defineProperty(newObj,key,desc):newObj[key]=obj[key]}newObj.default=obj,cache&&cache.set(obj,newObj);return newObj}(require("react")),_immutable=require("immutable");function _getRequireWildcardCache(nodeInterop){if("function"!=typeof WeakMap)return null;var cacheBabelInterop=new WeakMap,cacheNodeInterop=new WeakMap;return(_getRequireWildcardCache=function(nodeInterop){return nodeInterop?cacheNodeInterop:cacheBabelInterop})(nodeInterop)}exports.default=function(_ref){var _onChange=_ref.onChange,type=_ref.type,options=(0,_immutable.fromJS)([{value:"text",text:"Send Text"},{value:"attribute",text:"Collect custom attribute"},{value:"buttons",text:"Button list"},{value:"list",text:"Send List"},{value:"predefined",text:"Send predefined block"},{value:"typing",text:"Send Typing"},{value:"video",text:"Send Video"},{value:"generic",text:"Send Carrousel"},{value:"command",text:"Update Current chat"},{value:"intent",text:"Intent detection"},{value:"intentcheck",text:"Check for pending intentions"},{value:"conditions",text:"Check for conditions to proceed"},{value:"match_actions",text:"Search for default actions on message"},{value:"repeat_restrict",text:"Restrict execution more than defined times"},{value:"text_conditional",text:"Different text message to visitor and operator"},{value:"alert_icon",text:"Alert icon"},{value:"mail",text:"Send mail"}]),options_advanced=(0,_immutable.fromJS)([{value:"collectable",text:"Collect information"},{value:"progress",text:"Progress"},{value:"event_type",text:"Trigger to execute by response"},{value:"execute_js",text:"Execute Javascript"},{value:"actions",text:"Execute action"},{value:"restapi",text:"Rest API"},{value:"tbody",text:"Execute trigger body"},{value:"laction",text:"Log action"}]),list=options.map((function(option,index){return _react.default.createElement("option",{key:index,value:option.get("value")},option.get("text"))})),list_advanced=options_advanced.map((function(option,index){return _react.default.createElement("option",{key:index,value:option.get("value")},option.get("text"))}));return _react.default.createElement("div",{className:"row"},_react.default.createElement("div",{className:"col-12"},_react.default.createElement("div",{className:"form-group"},_react.default.createElement("select",{title:"Response type",onChange:function(e){return _onChange(e)},className:"form-control form-control-sm",defaultValue:type},_react.default.createElement("optgroup",{label:"Basic"},list),_react.default.createElement("optgroup",{label:"Advanced"},list_advanced)))))}},{immutable:102,react:146}],37:[function(require,module,exports){"use strict";function _typeof(obj){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var obj,_react=function(obj,nodeInterop){if(!nodeInterop&&obj&&obj.__esModule)return obj;if(null===obj||"object"!==_typeof(obj)&&"function"!=typeof obj)return{default:obj};var cache=_getRequireWildcardCache(nodeInterop);if(cache&&cache.has(obj))return cache.get(obj);var newObj={},hasPropertyDescriptor=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var key in obj)if("default"!==key&&Object.prototype.hasOwnProperty.call(obj,key)){var desc=hasPropertyDescriptor?Object.getOwnPropertyDescriptor(obj,key):null;desc&&(desc.get||desc.set)?Object.defineProperty(newObj,key,desc):newObj[key]=obj[key]}newObj.default=obj,cache&&cache.set(obj,newObj);return newObj}(require("react")),_NodeTriggerActionType=(obj=require("./NodeTriggerActionType"))&&obj.__esModule?obj:{default:obj};function _getRequireWildcardCache(nodeInterop){if("function"!=typeof WeakMap)return null;var cacheBabelInterop=new WeakMap,cacheNodeInterop=new WeakMap;return(_getRequireWildcardCache=function(nodeInterop){return nodeInterop?cacheNodeInterop:cacheBabelInterop})(nodeInterop)}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}function _setPrototypeOf(o,p){return(_setPrototypeOf=Object.setPrototypeOf||function(o,p){return o.__proto__=p,o})(o,p)}function _createSuper(Derived){var hasNativeReflectConstruct=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var result,Super=_getPrototypeOf(Derived);if(hasNativeReflectConstruct){var NewTarget=_getPrototypeOf(this).constructor;result=Reflect.construct(Super,arguments,NewTarget)}else result=Super.apply(this,arguments);return _possibleConstructorReturn(this,result)}}function _possibleConstructorReturn(self,call){if(call&&("object"===_typeof(call)||"function"==typeof call))return call;if(void 0!==call)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(self)}function _assertThisInitialized(self){if(void 0===self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return self}function _getPrototypeOf(o){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(o){return o.__proto__||Object.getPrototypeOf(o)})(o)}var _default=function(_Component){!function(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function");subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:!0,configurable:!0}}),Object.defineProperty(subClass,"prototype",{writable:!1}),superClass&&_setPrototypeOf(subClass,superClass)}(NodeTriggerActionTyping,_Component);var Constructor,protoProps,staticProps,_super=_createSuper(NodeTriggerActionTyping);function NodeTriggerActionTyping(props){var _this;return function(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}(this,NodeTriggerActionTyping),(_this=_super.call(this,props)).changeType=_this.changeType.bind(_assertThisInitialized(_this)),_this.removeAction=_this.removeAction.bind(_assertThisInitialized(_this)),_this.onchangeAttr=_this.onchangeAttr.bind(_assertThisInitialized(_this)),_this}return Constructor=NodeTriggerActionTyping,(protoProps=[{key:"changeType",value:function(e){this.props.onChangeType({id:this.props.id,type:e.target.value})}},{key:"removeAction",value:function(){this.props.removeAction({id:this.props.id})}},{key:"onchangeAttr",value:function(e){this.props.onChangeContent({id:this.props.id,path:["content"].concat(e.path),value:e.value})}},{key:"render",value:function(){var _this2=this;return _react.default.createElement("div",null,_react.default.createElement("div",{className:"d-flex flex-row"},_react.default.createElement("div",null,_react.default.createElement("div",{className:"btn-group float-left",role:"group","aria-label":"Trigger actions"},_react.default.createElement("button",{disabled:!0,className:"btn btn-sm btn-info"},this.props.id+1),0==this.props.isFirst&&_react.default.createElement("button",{className:"btn btn-secondary btn-sm",onClick:function(e){return _this2.props.upField(_this2.props.id)}},_react.default.createElement("i",{className:"material-icons mr-0"},"keyboard_arrow_up")),0==this.props.isLast&&_react.default.createElement("button",{className:"btn btn-secondary btn-sm",onClick:function(e){return _this2.props.downField(_this2.props.id)}},_react.default.createElement("i",{className:"material-icons mr-0"},"keyboard_arrow_down")))),_react.default.createElement("div",{className:"flex-grow-1 px-2"},_react.default.createElement(_NodeTriggerActionType.default,{onChange:this.changeType,type:this.props.action.get("type")})),_react.default.createElement("div",{className:"pr-2"},_react.default.createElement("div",{className:"input-group input-group-sm"},_react.default.createElement("div",{className:"input-group-prepend"},_react.default.createElement("span",{className:"input-group-text",id:"basic-addon1"},_react.default.createElement("span",{className:"material-icons"},"vpn_key"))),_react.default.createElement("input",{type:"text",className:"form-control",readOnly:"true",value:this.props.action.getIn(["_id"]),title:"Action ID"}))),_react.default.createElement("div",{className:"pr-2 pt-1 text-nowrap"},_react.default.createElement("label",{className:"form-check-label",title:"Response will not be executed. Usefull for a quick testing."},_react.default.createElement("input",{onChange:function(e){return _this2.props.onChangeContent({id:_this2.props.id,path:["skip_resp"],value:e.target.checked})},defaultChecked:this.props.action.getIn(["skip_resp"]),type:"checkbox"})," Skip")),_react.default.createElement("div",null,_react.default.createElement("button",{onClick:this.removeAction,type:"button",className:"btn btn-danger btn-sm float-right"},_react.default.createElement("i",{className:"material-icons mr-0"},"delete")))),_react.default.createElement("div",{className:"row"},_react.default.createElement("div",{className:"col-12"},_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,"Show typing for N seconds"),_react.default.createElement("input",{type:"text",placeholder:"Value in seconds",className:"form-control form-control-sm",onChange:function(e){return _this2.onchangeAttr({path:["duration"],value:e.target.value})},defaultValue:this.props.action.getIn(["content","duration"])})),_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,_react.default.createElement("input",{type:"checkbox",onChange:function(e){return _this2.onchangeAttr({path:["untill_message"],value:e.target.checked})},defaultChecked:this.props.action.getIn(["content","untill_message"])}),"OR untill next operator message")," ",_react.default.createElement("i",{className:"material-icons",title:"Usefull if some background job posts a message."},"info"))),_react.default.createElement("div",{className:"col-6"},_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,"Default typing text"),_react.default.createElement("input",{placeholder:"Typing...",type:"text",className:"form-control form-control-sm",onChange:function(e){return _this2.onchangeAttr({path:["text"],value:e.target.value})},defaultValue:this.props.action.getIn(["content","text"])}))),_react.default.createElement("div",{className:"col-6"},_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,"Delay typing appearance for n seconds"),_react.default.createElement("input",{placeholder:"Value in seconds",type:"text",className:"form-control form-control-sm",onChange:function(e){return _this2.onchangeAttr({path:["delay"],value:e.target.value})},defaultValue:this.props.action.getIn(["content","delay"])}))),_react.default.createElement("div",{className:"col-12"},_react.default.createElement("div",{role:"group"},_react.default.createElement("label",null,_react.default.createElement("input",{type:"checkbox",onChange:function(e){return _this2.onchangeAttr({path:["on_start_chat"],value:e.target.checked})},defaultChecked:this.props.action.getIn(["content","on_start_chat"])})," Send typing only at chat start.")," ",_react.default.createElement("i",{className:"material-icons",title:"Typing will be send only on chat start event."},"info")))),_react.default.createElement("hr",{className:"hr-big"}))}}])&&_defineProperties(Constructor.prototype,protoProps),staticProps&&_defineProperties(Constructor,staticProps),Object.defineProperty(Constructor,"prototype",{writable:!1}),NodeTriggerActionTyping}(_react.Component);exports.default=_default},{"./NodeTriggerActionType":36,react:146}],38:[function(require,module,exports){"use strict";function _typeof(obj){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var obj,_react=function(obj,nodeInterop){if(!nodeInterop&&obj&&obj.__esModule)return obj;if(null===obj||"object"!==_typeof(obj)&&"function"!=typeof obj)return{default:obj};var cache=_getRequireWildcardCache(nodeInterop);if(cache&&cache.has(obj))return cache.get(obj);var newObj={},hasPropertyDescriptor=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var key in obj)if("default"!==key&&Object.prototype.hasOwnProperty.call(obj,key)){var desc=hasPropertyDescriptor?Object.getOwnPropertyDescriptor(obj,key):null;desc&&(desc.get||desc.set)?Object.defineProperty(newObj,key,desc):newObj[key]=obj[key]}newObj.default=obj,cache&&cache.set(obj,newObj);return newObj}(require("react")),_NodeTriggerActionType=(obj=require("./NodeTriggerActionType"))&&obj.__esModule?obj:{default:obj};function _getRequireWildcardCache(nodeInterop){if("function"!=typeof WeakMap)return null;var cacheBabelInterop=new WeakMap,cacheNodeInterop=new WeakMap;return(_getRequireWildcardCache=function(nodeInterop){return nodeInterop?cacheNodeInterop:cacheBabelInterop})(nodeInterop)}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}function _setPrototypeOf(o,p){return(_setPrototypeOf=Object.setPrototypeOf||function(o,p){return o.__proto__=p,o})(o,p)}function _createSuper(Derived){var hasNativeReflectConstruct=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var result,Super=_getPrototypeOf(Derived);if(hasNativeReflectConstruct){var NewTarget=_getPrototypeOf(this).constructor;result=Reflect.construct(Super,arguments,NewTarget)}else result=Super.apply(this,arguments);return _possibleConstructorReturn(this,result)}}function _possibleConstructorReturn(self,call){if(call&&("object"===_typeof(call)||"function"==typeof call))return call;if(void 0!==call)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(self)}function _assertThisInitialized(self){if(void 0===self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return self}function _getPrototypeOf(o){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(o){return o.__proto__||Object.getPrototypeOf(o)})(o)}var _default=function(_Component){!function(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function");subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:!0,configurable:!0}}),Object.defineProperty(subClass,"prototype",{writable:!1}),superClass&&_setPrototypeOf(subClass,superClass)}(NodeTriggerActionVideo,_Component);var Constructor,protoProps,staticProps,_super=_createSuper(NodeTriggerActionVideo);function NodeTriggerActionVideo(props){var _this;return function(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}(this,NodeTriggerActionVideo),(_this=_super.call(this,props)).changeType=_this.changeType.bind(_assertThisInitialized(_this)),_this.removeAction=_this.removeAction.bind(_assertThisInitialized(_this)),_this.onchangeAttr=_this.onchangeAttr.bind(_assertThisInitialized(_this)),_this}return Constructor=NodeTriggerActionVideo,(protoProps=[{key:"changeType",value:function(e){this.props.onChangeType({id:this.props.id,type:e.target.value})}},{key:"removeAction",value:function(){this.props.removeAction({id:this.props.id})}},{key:"onchangeAttr",value:function(e){this.props.onChangeContent({id:this.props.id,path:["content"].concat(e.path),value:e.value})}},{key:"render",value:function(){var _this2=this;return _react.default.createElement("div",null,_react.default.createElement("div",{className:"d-flex flex-row"},_react.default.createElement("div",null,_react.default.createElement("div",{className:"btn-group float-left",role:"group","aria-label":"Trigger actions"},_react.default.createElement("button",{disabled:!0,className:"btn btn-sm btn-info"},this.props.id+1),0==this.props.isFirst&&_react.default.createElement("button",{className:"btn btn-secondary btn-sm",onClick:function(e){return _this2.props.upField(_this2.props.id)}},_react.default.createElement("i",{className:"material-icons mr-0"},"keyboard_arrow_up")),0==this.props.isLast&&_react.default.createElement("button",{className:"btn btn-secondary btn-sm",onClick:function(e){return _this2.props.downField(_this2.props.id)}},_react.default.createElement("i",{className:"material-icons mr-0"},"keyboard_arrow_down")))),_react.default.createElement("div",{className:"flex-grow-1 px-2"},_react.default.createElement(_NodeTriggerActionType.default,{onChange:this.changeType,type:this.props.action.get("type")})),_react.default.createElement("div",{className:"pr-2"},_react.default.createElement("div",{className:"input-group input-group-sm"},_react.default.createElement("div",{className:"input-group-prepend"},_react.default.createElement("span",{className:"input-group-text",id:"basic-addon1"},_react.default.createElement("span",{className:"material-icons"},"vpn_key"))),_react.default.createElement("input",{type:"text",className:"form-control",readOnly:"true",value:this.props.action.getIn(["_id"]),title:"Action ID"}))),_react.default.createElement("div",{className:"pr-2 pt-1 text-nowrap"},_react.default.createElement("label",{className:"form-check-label",title:"Response will not be executed. Usefull for a quick testing."},_react.default.createElement("input",{onChange:function(e){return _this2.props.onChangeContent({id:_this2.props.id,path:["skip_resp"],value:e.target.checked})},defaultChecked:this.props.action.getIn(["skip_resp"]),type:"checkbox"})," Skip")),_react.default.createElement("div",null,_react.default.createElement("button",{onClick:this.removeAction,type:"button",className:"btn btn-danger btn-sm float-right"},_react.default.createElement("i",{className:"material-icons mr-0"},"delete")))),_react.default.createElement("div",{className:"row"},_react.default.createElement("div",{className:"col-6"},_react.default.createElement("label",null,_react.default.createElement("input",{type:"checkbox",onChange:function(e){return _this2.onchangeAttr({path:["video_options","autoplay"],value:e.target.checked})},defaultChecked:this.props.action.getIn(["content","video_options","autoplay"])})," Autoplay")),_react.default.createElement("div",{className:"col-6"},_react.default.createElement("label",null,_react.default.createElement("input",{type:"checkbox",onChange:function(e){return _this2.onchangeAttr({path:["video_options","controls"],value:e.target.checked})},defaultChecked:this.props.action.getIn(["content","video_options","controls"])})," Controls")),_react.default.createElement("div",{className:"col-12"},_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,"Video URL"),_react.default.createElement("input",{type:"text",placeholder:"Video URL",className:"form-control form-control-sm",onChange:function(e){return _this2.onchangeAttr({path:["payload"],value:e.target.value})},defaultValue:this.props.action.getIn(["content","payload"])})))),_react.default.createElement("hr",{className:"hr-big"}))}}])&&_defineProperties(Constructor.prototype,protoProps),staticProps&&_defineProperties(Constructor,staticProps),Object.defineProperty(Constructor,"prototype",{writable:!1}),NodeTriggerActionVideo}(_react.Component);exports.default=_default},{"./NodeTriggerActionType":36,react:146}],39:[function(require,module,exports){"use strict";function _typeof(obj){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _class,_react=function(obj,nodeInterop){if(!nodeInterop&&obj&&obj.__esModule)return obj;if(null===obj||"object"!==_typeof(obj)&&"function"!=typeof obj)return{default:obj};var cache=_getRequireWildcardCache(nodeInterop);if(cache&&cache.has(obj))return cache.get(obj);var newObj={},hasPropertyDescriptor=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var key in obj)if("default"!==key&&Object.prototype.hasOwnProperty.call(obj,key)){var desc=hasPropertyDescriptor?Object.getOwnPropertyDescriptor(obj,key):null;desc&&(desc.get||desc.set)?Object.defineProperty(newObj,key,desc):newObj[key]=obj[key]}newObj.default=obj,cache&&cache.set(obj,newObj);return newObj}(require("react")),_reactRedux=require("react-redux"),_nodeGroupTriggerActions=require("../../actions/nodeGroupTriggerActions"),_immutable=require("immutable");function _getRequireWildcardCache(nodeInterop){if("function"!=typeof WeakMap)return null;var cacheBabelInterop=new WeakMap,cacheNodeInterop=new WeakMap;return(_getRequireWildcardCache=function(nodeInterop){return nodeInterop?cacheNodeInterop:cacheBabelInterop})(nodeInterop)}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}function _setPrototypeOf(o,p){return(_setPrototypeOf=Object.setPrototypeOf||function(o,p){return o.__proto__=p,o})(o,p)}function _createSuper(Derived){var hasNativeReflectConstruct=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var result,Super=_getPrototypeOf(Derived);if(hasNativeReflectConstruct){var NewTarget=_getPrototypeOf(this).constructor;result=Reflect.construct(Super,arguments,NewTarget)}else result=Super.apply(this,arguments);return _possibleConstructorReturn(this,result)}}function _possibleConstructorReturn(self,call){if(call&&("object"===_typeof(call)||"function"==typeof call))return call;if(void 0!==call)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(self)}function _assertThisInitialized(self){if(void 0===self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return self}function _getPrototypeOf(o){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(o){return o.__proto__||Object.getPrototypeOf(o)})(o)}var _default=(0,_reactRedux.connect)((function(store){return{payloads:store.currenttrigger}}))(_class=function(_Component){!function(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function");subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:!0,configurable:!0}}),Object.defineProperty(subClass,"prototype",{writable:!1}),superClass&&_setPrototypeOf(subClass,superClass)}(NodeTriggerArgumentTemplate,_Component);var Constructor,protoProps,staticProps,_super=_createSuper(NodeTriggerArgumentTemplate);function NodeTriggerArgumentTemplate(props){var _this;return function(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}(this,NodeTriggerArgumentTemplate),(_this=_super.call(this,props)).props.dispatch((0,_nodeGroupTriggerActions.initArgumentTemplates)()),_this.onChangeMainAttr=_this.onChangeMainAttr.bind(_assertThisInitialized(_this)),_this}return Constructor=NodeTriggerArgumentTemplate,(protoProps=[{key:"onChange",value:function(e){this.props.onChange({path:["argument_template"],value:(0,_immutable.fromJS)({id:e.target.value})})}},{key:"onChangeMainAttr",value:function(path,e){this.props.onChange({id:this.props.id,path:["argument_template"].concat(path),value:e})}},{key:"render",value:function(){var _this2=this,list=[];this.props.payloads.has("arguments")&&(list=this.props.payloads.get("arguments").map((function(option,index){return _react.default.createElement("option",{key:index,value:index},option.get("name"))})));var argumentId=void 0!==this.props.argument?this.props.argument.get("id"):-1,header="",elements=[];return-1!=argumentId&&this.props.payloads.hasIn(["arguments",argumentId])&&(header=_react.default.createElement("div",null,_react.default.createElement("hr",null),_react.default.createElement("h4",null,this.props.payloads.getIn(["arguments",argumentId,"name"]))),elements=this.props.payloads.getIn(["arguments",argumentId,"items"]).map((function(option,index){return _react.default.createElement("div",{className:"col-6"},_react.default.createElement("div",{key:option.get("id"),className:"form-group"},_react.default.createElement("label",null,option.get("name")),_react.default.createElement("input",{type:"text",defaultValue:_this2.props.argument.getIn(["args",option.get("id"),"value"]),onChange:function(e){return _this2.onChangeMainAttr(["args",option.get("id"),"value"],e.target.value)},className:"form-control form-control-sm",placeholder:option.get("placeholder")})))}))),_react.default.createElement("div",null,_react.default.createElement("select",{className:"form-control form-control-sm",onChange:this.onChange.bind(this),value:argumentId},1==this.props.showOptional&&_react.default.createElement("option",{value:""},"Choose argument"),list),header,_react.default.createElement("div",{className:"row"},elements))}}])&&_defineProperties(Constructor.prototype,protoProps),staticProps&&_defineProperties(Constructor,staticProps),Object.defineProperty(Constructor,"prototype",{writable:!1}),NodeTriggerArgumentTemplate}(_react.Component))||_class;exports.default=_default},{"../../actions/nodeGroupTriggerActions":3,immutable:102,react:146,"react-redux":131}],40:[function(require,module,exports){"use strict";function _typeof(obj){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var obj,_react=function(obj,nodeInterop){if(!nodeInterop&&obj&&obj.__esModule)return obj;if(null===obj||"object"!==_typeof(obj)&&"function"!=typeof obj)return{default:obj};var cache=_getRequireWildcardCache(nodeInterop);if(cache&&cache.has(obj))return cache.get(obj);var newObj={},hasPropertyDescriptor=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var key in obj)if("default"!==key&&Object.prototype.hasOwnProperty.call(obj,key)){var desc=hasPropertyDescriptor?Object.getOwnPropertyDescriptor(obj,key):null;desc&&(desc.get||desc.set)?Object.defineProperty(newObj,key,desc):newObj[key]=obj[key]}newObj.default=obj,cache&&cache.set(obj,newObj);return newObj}(require("react")),_NodeTriggerPayloadList=(obj=require("./NodeTriggerPayloadList"))&&obj.__esModule?obj:{default:obj};function _getRequireWildcardCache(nodeInterop){if("function"!=typeof WeakMap)return null;var cacheBabelInterop=new WeakMap,cacheNodeInterop=new WeakMap;return(_getRequireWildcardCache=function(nodeInterop){return nodeInterop?cacheNodeInterop:cacheBabelInterop})(nodeInterop)}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}function _setPrototypeOf(o,p){return(_setPrototypeOf=Object.setPrototypeOf||function(o,p){return o.__proto__=p,o})(o,p)}function _createSuper(Derived){var hasNativeReflectConstruct=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var result,Super=_getPrototypeOf(Derived);if(hasNativeReflectConstruct){var NewTarget=_getPrototypeOf(this).constructor;result=Reflect.construct(Super,arguments,NewTarget)}else result=Super.apply(this,arguments);return _possibleConstructorReturn(this,result)}}function _possibleConstructorReturn(self,call){if(call&&("object"===_typeof(call)||"function"==typeof call))return call;if(void 0!==call)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(self)}function _assertThisInitialized(self){if(void 0===self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return self}function _getPrototypeOf(o){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(o){return o.__proto__||Object.getPrototypeOf(o)})(o)}var _default=function(_Component){!function(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function");subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:!0,configurable:!0}}),Object.defineProperty(subClass,"prototype",{writable:!1}),superClass&&_setPrototypeOf(subClass,superClass)}(NodeTriggerCallbackItem,_Component);var Constructor,protoProps,staticProps,_super=_createSuper(NodeTriggerCallbackItem);function NodeTriggerCallbackItem(props){var _this;return function(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}(this,NodeTriggerCallbackItem),(_this=_super.call(this,props)).onChangeMainAttr=_this.onChangeMainAttr.bind(_assertThisInitialized(_this)),_this}return Constructor=NodeTriggerCallbackItem,(protoProps=[{key:"deleteField",value:function(){this.props.onDeleteField(this.props.id)}},{key:"onChangeType",value:function(e){this.props.onChangeFieldAttr({id:this.props.id,path:["content","type"],value:e.target.value})}},{key:"onChangeField",value:function(e){this.props.onChangeFieldAttr({id:this.props.id,path:["content","field"],value:e.target.value})}},{key:"onChangeEvent",value:function(e){this.props.onChangeFieldAttr({id:this.props.id,path:["content","event"],value:e.target.value})}},{key:"onChangeSuccessCallback",value:function(e){this.props.onChangeFieldAttr({id:this.props.id,path:["content","success_callback"],value:e.target.value})}},{key:"onChangeMainAttr",value:function(field,e){this.props.onChangeFieldAttr({id:this.props.id,path:["content",field],value:e})}},{key:"render",value:function(){var _this2=this;return _react.default.createElement("div",{className:"row"},_react.default.createElement("div",{className:"col-3"},_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,"Type"),_react.default.createElement("select",{defaultValue:this.props.callback.getIn(["content","type"]),className:"form-control",onChange:this.onChangeType.bind(this)},_react.default.createElement("option",{value:""},"Choose what should be updated"),_react.default.createElement("option",{value:"chat"},"Set chat attribute")))),_react.default.createElement("div",{className:"col-3"},_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,"Attribute"),_react.default.createElement("select",{defaultValue:this.props.callback.getIn(["content","field"]),className:"form-control",onChange:this.onChangeField.bind(this)},_react.default.createElement("option",{value:""},"Choose what attribute should be set"),_react.default.createElement("option",{value:"email"},"E-mail"),_react.default.createElement("option",{value:"phone"},"Phone")))),_react.default.createElement("div",{className:"col-3"},_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,"Custom event to validate"),_react.default.createElement("input",{type:"text",defaultValue:this.props.callback.getIn(["content","event"]),onChange:this.onChangeEvent.bind(this),className:"form-control"}))),_react.default.createElement("div",{className:"col-3"},_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null," "),_react.default.createElement("div",null,_react.default.createElement("a",{onClick:this.deleteField.bind(this)},_react.default.createElement("i",{className:"material-icons mr-0"},"delete"))))),_react.default.createElement("div",{className:"col-6"},_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,"Confirmation message"),_react.default.createElement("textarea",{className:"form-control",defaultValue:this.props.callback.getIn(["content","success_message"]),onChange:function(e){return _this2.onChangeMainAttr("success_message",e.target.value)}}))),_react.default.createElement("div",{className:"col-6"},_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,"Choose payload to initialise after success"),_react.default.createElement(_NodeTriggerPayloadList.default,{showOptional:!0,onSetPayload:function(e){return _this2.onChangeMainAttr("success_callback",e)},payload:this.props.callback.getIn(["content","success_callback"])})),_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,"Enter text pattern to find a trigger. This can be next trigger activation text."),_react.default.createElement("input",{type:"text",defaultValue:this.props.callback.getIn(["content","success_text_pattern"]),onChange:function(e){return _this2.onChangeMainAttr("success_text_pattern",e.target.value)},className:"form-control"}))))}}])&&_defineProperties(Constructor.prototype,protoProps),staticProps&&_defineProperties(Constructor,staticProps),Object.defineProperty(Constructor,"prototype",{writable:!1}),NodeTriggerCallbackItem}(_react.Component);exports.default=_default},{"./NodeTriggerPayloadList":42,react:146}],41:[function(require,module,exports){"use strict";function _typeof(obj){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _class,_react=function(obj,nodeInterop){if(!nodeInterop&&obj&&obj.__esModule)return obj;if(null===obj||"object"!==_typeof(obj)&&"function"!=typeof obj)return{default:obj};var cache=_getRequireWildcardCache(nodeInterop);if(cache&&cache.has(obj))return cache.get(obj);var newObj={},hasPropertyDescriptor=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var key in obj)if("default"!==key&&Object.prototype.hasOwnProperty.call(obj,key)){var desc=hasPropertyDescriptor?Object.getOwnPropertyDescriptor(obj,key):null;desc&&(desc.get||desc.set)?Object.defineProperty(newObj,key,desc):newObj[key]=obj[key]}newObj.default=obj,cache&&cache.set(obj,newObj);return newObj}(require("react"));function _getRequireWildcardCache(nodeInterop){if("function"!=typeof WeakMap)return null;var cacheBabelInterop=new WeakMap,cacheNodeInterop=new WeakMap;return(_getRequireWildcardCache=function(nodeInterop){return nodeInterop?cacheNodeInterop:cacheBabelInterop})(nodeInterop)}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}function _setPrototypeOf(o,p){return(_setPrototypeOf=Object.setPrototypeOf||function(o,p){return o.__proto__=p,o})(o,p)}function _createSuper(Derived){var hasNativeReflectConstruct=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var result,Super=_getPrototypeOf(Derived);if(hasNativeReflectConstruct){var NewTarget=_getPrototypeOf(this).constructor;result=Reflect.construct(Super,arguments,NewTarget)}else result=Super.apply(this,arguments);return _possibleConstructorReturn(this,result)}}function _possibleConstructorReturn(self,call){if(call&&("object"===_typeof(call)||"function"==typeof call))return call;if(void 0!==call)throw new TypeError("Derived constructors may only return object or undefined");return function(self){if(void 0===self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return self}(self)}function _getPrototypeOf(o){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(o){return o.__proto__||Object.getPrototypeOf(o)})(o)}var _default=(0,require("react-redux").connect)((function(store){return{nodegroups:store.nodegroups,nodegrouptriggers:store.nodegrouptriggers}}))(_class=function(_Component){!function(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function");subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:!0,configurable:!0}}),Object.defineProperty(subClass,"prototype",{writable:!1}),superClass&&_setPrototypeOf(subClass,superClass)}(NodeTriggerList,_Component);var Constructor,protoProps,staticProps,_super=_createSuper(NodeTriggerList);function NodeTriggerList(props){return function(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}(this,NodeTriggerList),_super.call(this,props)}return Constructor=NodeTriggerList,(protoProps=[{key:"onChange",value:function(e){this.props.onSetPayload(e.target.value)}},{key:"onChangeActionId",value:function(e){this.props.onSetPayloadActionId(e.target.value)}},{key:"render",value:function(){var _this=this,mappedNodeGroups=this.props.nodegroups.get("nodegroups").map((function(nodegroup){return _react.default.createElement("optgroup",{label:nodegroup.get("name"),key:nodegroup.get("id")},_this.props.nodegrouptriggers.get("nodegrouptriggers").has(nodegroup.get("id"))&&_this.props.nodegrouptriggers.get("nodegrouptriggers").get(nodegroup.get("id")).map((function(nodegrouptrigger){return _react.default.createElement("option",{key:nodegrouptrigger.get("id"),value:nodegrouptrigger.get("id")},nodegrouptrigger.get("name"))})))}));return _react.default.createElement(_react.default.Fragment,null,_react.default.createElement("div",{className:"row"},_react.default.createElement("div",{className:"col-"+(this.props.enableAction?6:12)},_react.default.createElement("select",{className:"form-control form-control-sm",onChange:this.onChange.bind(this),value:this.props.payload},_react.default.createElement("option",{value:""},"Choose a trigger"),mappedNodeGroups)),this.props.enableAction&&_react.default.createElement("div",{className:"col-6"},_react.default.createElement("input",{type:"text",defaultValue:this.props.payload_action_id,onChange:this.onChangeActionId.bind(this),className:"form-control form-control-sm",title:"Execute only one action from selected trigger from selected",placeholder:"Action ID"}))))}}])&&_defineProperties(Constructor.prototype,protoProps),staticProps&&_defineProperties(Constructor,staticProps),Object.defineProperty(Constructor,"prototype",{writable:!1}),NodeTriggerList}(_react.Component))||_class;exports.default=_default},{react:146,"react-redux":131}],42:[function(require,module,exports){"use strict";function _typeof(obj){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _class,_react=function(obj,nodeInterop){if(!nodeInterop&&obj&&obj.__esModule)return obj;if(null===obj||"object"!==_typeof(obj)&&"function"!=typeof obj)return{default:obj};var cache=_getRequireWildcardCache(nodeInterop);if(cache&&cache.has(obj))return cache.get(obj);var newObj={},hasPropertyDescriptor=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var key in obj)if("default"!==key&&Object.prototype.hasOwnProperty.call(obj,key)){var desc=hasPropertyDescriptor?Object.getOwnPropertyDescriptor(obj,key):null;desc&&(desc.get||desc.set)?Object.defineProperty(newObj,key,desc):newObj[key]=obj[key]}newObj.default=obj,cache&&cache.set(obj,newObj);return newObj}(require("react"));function _getRequireWildcardCache(nodeInterop){if("function"!=typeof WeakMap)return null;var cacheBabelInterop=new WeakMap,cacheNodeInterop=new WeakMap;return(_getRequireWildcardCache=function(nodeInterop){return nodeInterop?cacheNodeInterop:cacheBabelInterop})(nodeInterop)}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}function _setPrototypeOf(o,p){return(_setPrototypeOf=Object.setPrototypeOf||function(o,p){return o.__proto__=p,o})(o,p)}function _createSuper(Derived){var hasNativeReflectConstruct=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var result,Super=_getPrototypeOf(Derived);if(hasNativeReflectConstruct){var NewTarget=_getPrototypeOf(this).constructor;result=Reflect.construct(Super,arguments,NewTarget)}else result=Super.apply(this,arguments);return _possibleConstructorReturn(this,result)}}function _possibleConstructorReturn(self,call){if(call&&("object"===_typeof(call)||"function"==typeof call))return call;if(void 0!==call)throw new TypeError("Derived constructors may only return object or undefined");return function(self){if(void 0===self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return self}(self)}function _getPrototypeOf(o){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(o){return o.__proto__||Object.getPrototypeOf(o)})(o)}var _default=(0,require("react-redux").connect)((function(store){return{payloads:store.currenttrigger}}))(_class=function(_Component){!function(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function");subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:!0,configurable:!0}}),Object.defineProperty(subClass,"prototype",{writable:!1}),superClass&&_setPrototypeOf(subClass,superClass)}(NodeTriggerPayloadList,_Component);var Constructor,protoProps,staticProps,_super=_createSuper(NodeTriggerPayloadList);function NodeTriggerPayloadList(props){return function(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}(this,NodeTriggerPayloadList),_super.call(this,props)}return Constructor=NodeTriggerPayloadList,(protoProps=[{key:"onChange",value:function(e){this.props.onSetPayload(e.target.value)}},{key:"render",value:function(){var list=this.props.payloads.get("payloads").map((function(option,index){return _react.default.createElement("option",{key:option.get("id"),value:option.get("payload")},option.get("name")+" ["+option.get("payload")+"]")}));return _react.default.createElement("select",{className:"form-control form-control-sm",onChange:this.onChange.bind(this),value:this.props.payload},1==this.props.showOptional&&_react.default.createElement("option",{value:""},"Choose payload"),list)}}])&&_defineProperties(Constructor.prototype,protoProps),staticProps&&_defineProperties(Constructor,staticProps),Object.defineProperty(Constructor,"prototype",{writable:!1}),NodeTriggerPayloadList}(_react.Component))||_class;exports.default=_default},{react:146,"react-redux":131}],43:[function(require,module,exports){"use strict";function _typeof(obj){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var obj,_react=function(obj,nodeInterop){if(!nodeInterop&&obj&&obj.__esModule)return obj;if(null===obj||"object"!==_typeof(obj)&&"function"!=typeof obj)return{default:obj};var cache=_getRequireWildcardCache(nodeInterop);if(cache&&cache.has(obj))return cache.get(obj);var newObj={},hasPropertyDescriptor=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var key in obj)if("default"!==key&&Object.prototype.hasOwnProperty.call(obj,key)){var desc=hasPropertyDescriptor?Object.getOwnPropertyDescriptor(obj,key):null;desc&&(desc.get||desc.set)?Object.defineProperty(newObj,key,desc):newObj[key]=obj[key]}newObj.default=obj,cache&&cache.set(obj,newObj);return newObj}(require("react")),_NodeTriggerActionQuickReplyPayload=(obj=require("../NodeTriggerActionQuickReplyPayload"))&&obj.__esModule?obj:{default:obj};function _getRequireWildcardCache(nodeInterop){if("function"!=typeof WeakMap)return null;var cacheBabelInterop=new WeakMap,cacheNodeInterop=new WeakMap;return(_getRequireWildcardCache=function(nodeInterop){return nodeInterop?cacheNodeInterop:cacheBabelInterop})(nodeInterop)}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}function _setPrototypeOf(o,p){return(_setPrototypeOf=Object.setPrototypeOf||function(o,p){return o.__proto__=p,o})(o,p)}function _createSuper(Derived){var hasNativeReflectConstruct=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var result,Super=_getPrototypeOf(Derived);if(hasNativeReflectConstruct){var NewTarget=_getPrototypeOf(this).constructor;result=Reflect.construct(Super,arguments,NewTarget)}else result=Super.apply(this,arguments);return _possibleConstructorReturn(this,result)}}function _possibleConstructorReturn(self,call){if(call&&("object"===_typeof(call)||"function"==typeof call))return call;if(void 0!==call)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(self)}function _assertThisInitialized(self){if(void 0===self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return self}function _getPrototypeOf(o){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(o){return o.__proto__||Object.getPrototypeOf(o)})(o)}var _default=function(_Component){!function(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function");subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:!0,configurable:!0}}),Object.defineProperty(subClass,"prototype",{writable:!1}),superClass&&_setPrototypeOf(subClass,superClass)}(NodeActionButton,_Component);var Constructor,protoProps,staticProps,_super=_createSuper(NodeActionButton);function NodeActionButton(props){var _this;return function(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}(this,NodeActionButton),(_this=_super.call(this,props)).changeType=_this.changeType.bind(_assertThisInitialized(_this)),_this.onPayloadChange=_this.onPayloadChange.bind(_assertThisInitialized(_this)),_this.onChangeFieldType=_this.onChangeFieldType.bind(_assertThisInitialized(_this)),_this.onPayloadAttrChange=_this.onPayloadAttrChange.bind(_assertThisInitialized(_this)),_this}return Constructor=NodeActionButton,(protoProps=[{key:"changeType",value:function(e){this.props.onChangeType({id:this.props.id,type:e.target.value})}},{key:"onChangeFieldName",value:function(e){this.props.onChangeFieldAttr({id:this.props.id,path:["content","name"],value:e.target.value})}},{key:"onPayloadChange",value:function(payload){this.props.onChangeFieldAttr({id:this.props.id,path:["content","payload"],value:payload})}},{key:"onChangeFieldType",value:function(type){this.props.onChangeFieldAttr({id:this.props.id,path:["type"],value:type})}},{key:"onPayloadAttrChange",value:function(payload){this.props.onChangeFieldAttr({id:this.props.id,path:["content",payload.attr],value:payload.value})}},{key:"deleteField",value:function(){this.props.onDeleteField(this.props.id)}},{key:"upField",value:function(){this.props.onMoveUpField(this.props.id)}},{key:"downField",value:function(){this.props.onMoveDownField(this.props.id)}},{key:"render",value:function(){return _react.default.createElement("div",{className:"row"},_react.default.createElement("div",{className:"col-6"},_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,this.props.id+1,". Button name*"),_react.default.createElement("input",{className:"form-control",onChange:this.onChangeFieldName.bind(this),type:"text",defaultValue:this.props.button.getIn(["content","name"])}))),_react.default.createElement("div",{className:"col-6"},_react.default.createElement("div",{className:"form-group"},_react.default.createElement(_NodeTriggerActionQuickReplyPayload.default,{onPayloadAttrChange:this.onPayloadAttrChange,onPayloadTypeChange:this.onChangeFieldType,onPayloadChange:this.onPayloadChange,payloadType:this.props.button.get("type"),currentPayload:this.props.button.getIn(["content"])}))),_react.default.createElement("div",{className:"col-12"},_react.default.createElement("div",{className:"btn-group float-left",role:"group","aria-label":"Trigger actions"},0==this.props.isFirst&&_react.default.createElement("button",{className:"btn btn-secondary btn-sm",onClick:this.upField.bind(this)},_react.default.createElement("i",{className:"material-icons mr-0"},"keyboard_arrow_up")),0==this.props.isLast&&_react.default.createElement("button",{className:"btn btn-secondary btn-sm",onClick:this.downField.bind(this)},_react.default.createElement("i",{className:"material-icons mr-0"},"keyboard_arrow_down"))),_react.default.createElement("div",{className:"btn-group float-right",role:"group","aria-label":"Trigger actions"},_react.default.createElement("button",{className:"btn btn-warning btn-sm",onClick:this.deleteField.bind(this)},"Delete"))),_react.default.createElement("div",{className:"col-12"},_react.default.createElement("hr",null)))}}])&&_defineProperties(Constructor.prototype,protoProps),staticProps&&_defineProperties(Constructor,staticProps),Object.defineProperty(Constructor,"prototype",{writable:!1}),NodeActionButton}(_react.Component);exports.default=_default},{"../NodeTriggerActionQuickReplyPayload":30,react:146}],44:[function(require,module,exports){"use strict";function _typeof(obj){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _react=function(obj,nodeInterop){if(!nodeInterop&&obj&&obj.__esModule)return obj;if(null===obj||"object"!==_typeof(obj)&&"function"!=typeof obj)return{default:obj};var cache=_getRequireWildcardCache(nodeInterop);if(cache&&cache.has(obj))return cache.get(obj);var newObj={},hasPropertyDescriptor=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var key in obj)if("default"!==key&&Object.prototype.hasOwnProperty.call(obj,key)){var desc=hasPropertyDescriptor?Object.getOwnPropertyDescriptor(obj,key):null;desc&&(desc.get||desc.set)?Object.defineProperty(newObj,key,desc):newObj[key]=obj[key]}newObj.default=obj,cache&&cache.set(obj,newObj);return newObj}(require("react"));function _getRequireWildcardCache(nodeInterop){if("function"!=typeof WeakMap)return null;var cacheBabelInterop=new WeakMap,cacheNodeInterop=new WeakMap;return(_getRequireWildcardCache=function(nodeInterop){return nodeInterop?cacheNodeInterop:cacheBabelInterop})(nodeInterop)}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}function _setPrototypeOf(o,p){return(_setPrototypeOf=Object.setPrototypeOf||function(o,p){return o.__proto__=p,o})(o,p)}function _createSuper(Derived){var hasNativeReflectConstruct=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var result,Super=_getPrototypeOf(Derived);if(hasNativeReflectConstruct){var NewTarget=_getPrototypeOf(this).constructor;result=Reflect.construct(Super,arguments,NewTarget)}else result=Super.apply(this,arguments);return _possibleConstructorReturn(this,result)}}function _possibleConstructorReturn(self,call){if(call&&("object"===_typeof(call)||"function"==typeof call))return call;if(void 0!==call)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(self)}function _assertThisInitialized(self){if(void 0===self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return self}function _getPrototypeOf(o){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(o){return o.__proto__||Object.getPrototypeOf(o)})(o)}var _default=function(_Component){!function(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function");subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:!0,configurable:!0}}),Object.defineProperty(subClass,"prototype",{writable:!1}),superClass&&_setPrototypeOf(subClass,superClass)}(NodeCollectableField,_Component);var Constructor,protoProps,staticProps,_super=_createSuper(NodeCollectableField);function NodeCollectableField(props){var _this;return function(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}(this,NodeCollectableField),(_this=_super.call(this,props)).changeType=_this.changeType.bind(_assertThisInitialized(_this)),_this}return Constructor=NodeCollectableField,(protoProps=[{key:"changeType",value:function(e){this.props.onChangeType({id:this.props.id,type:e.target.value})}},{key:"onChangeFieldStoreName",value:function(e){this.props.onChangeFieldAttr({id:this.props.id,path:["content","field"],value:e.target.value})}},{key:"onChangeFieldName",value:function(e){this.props.onChangeFieldAttr({id:this.props.id,path:["content","name"],value:e.target.value})}},{key:"onChangeFieldType",value:function(e){this.props.onChangeFieldAttr({id:this.props.id,path:["type"],value:e.target.value})}},{key:"onChangeValidation",value:function(e){this.props.onChangeFieldAttr({id:this.props.id,path:["content","validation"],value:e.target.value})}},{key:"onChangeRenderFunction",value:function(e){this.props.onChangeFieldAttr({id:this.props.id,path:["content","render_function"],value:e.target.value})}},{key:"onChangePrecheckRenderFunction",value:function(e){this.props.onChangeFieldAttr({id:this.props.id,path:["content","render_precheck_function"],value:e.target.value})}},{key:"onChangeRenderArgs",value:function(e){this.props.onChangeFieldAttr({id:this.props.id,path:["content","render_args"],value:e.target.value})}},{key:"onChangeMessage",value:function(e){this.props.onChangeFieldAttr({id:this.props.id,path:["content","message"],value:e.target.value})}},{key:"onChangePrecheckMessage",value:function(e){this.props.onChangeFieldAttr({id:this.props.id,path:["content","message_precheck"],value:e.target.value})}},{key:"onChangeAdditionalMessage",value:function(e){this.props.onChangeFieldAttr({id:this.props.id,path:["content","message_explain"],value:e.target.value})}},{key:"onChangeProvider",value:function(e){this.props.onChangeFieldAttr({id:this.props.id,path:["content","provider_dropdown"],value:e.target.value})}},{key:"onChangeProviderName",value:function(e){this.props.onChangeFieldAttr({id:this.props.id,path:["content","provider_name"],value:e.target.value})}},{key:"onChangeProviderId",value:function(e){this.props.onChangeFieldAttr({id:this.props.id,path:["content","provider_id"],value:e.target.value})}},{key:"onChangeProviderDefault",value:function(e){this.props.onChangeFieldAttr({id:this.props.id,path:["content","provider_default"],value:e.target.value})}},{key:"onChangeProviderArgument",value:function(e){this.props.onChangeFieldAttr({id:this.props.id,path:["content","provider_argument"],value:e.target.value})}},{key:"onChangeRenderValidateFunction",value:function(e){this.props.onChangeFieldAttr({id:this.props.id,path:["content","render_validate"],value:e.target.value})}},{key:"onChangeValidationCallback",value:function(e){this.props.onChangeFieldAttr({id:this.props.id,path:["content","validation_callback"],value:e.target.value})}},{key:"onChangeValidationError",value:function(e){this.props.onChangeFieldAttr({id:this.props.id,path:["content","validation_error"],value:e.target.value})}},{key:"onChangeValidationArgument",value:function(e){this.props.onChangeFieldAttr({id:this.props.id,path:["content","validation_argument"],value:e.target.value})}},{key:"deleteField",value:function(){this.props.onDeleteField(this.props.id)}},{key:"upField",value:function(){this.props.onMoveUpField(this.props.id)}},{key:"downField",value:function(){this.props.onMoveDownField(this.props.id)}},{key:"render",value:function(){return _react.default.createElement("div",{className:"row"},_react.default.createElement("div",{className:"col-6"},_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,this.props.id+1,". Field name*"),_react.default.createElement("input",{className:"form-control",onChange:this.onChangeFieldName.bind(this),type:"text",defaultValue:this.props.field.getIn(["content","name"])}))),_react.default.createElement("div",{className:"col-6"},_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,"Field store name*"),_react.default.createElement("input",{className:"form-control",onChange:this.onChangeFieldStoreName.bind(this),type:"text",defaultValue:this.props.field.getIn(["content","field"])}))),_react.default.createElement("div",{className:"col-6"},_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,"Field type*"),_react.default.createElement("select",{className:"form-control",onChange:this.onChangeFieldType.bind(this),defaultValue:this.props.field.get("type")},_react.default.createElement("option",{value:""},"Select field type"),_react.default.createElement("option",{value:"text"},"Text"),_react.default.createElement("option",{value:"email"},"E-mail"),_react.default.createElement("option",{value:"phone"},"Phone"),_react.default.createElement("option",{value:"buttons"},"Buttons"),_react.default.createElement("option",{value:"dropdown"},"Dropdown"),_react.default.createElement("option",{value:"custom"},"Custom")))),"text"==this.props.field.get("type")&&_react.default.createElement("div",{className:"col-6"},_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,"Validation preg match rule"),_react.default.createElement("input",{className:"form-control",type:"text",onChange:this.onChangeValidation.bind(this),defaultValue:this.props.field.getIn(["content","validation"])}))),"text"==this.props.field.get("type")&&_react.default.createElement("div",{className:"col-12"},_react.default.createElement("div",{className:"row"},_react.default.createElement("div",{className:"col-6"},_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,"Custom event validation"),_react.default.createElement("input",{className:"form-control",type:"text",onChange:this.onChangeValidationCallback.bind(this),defaultValue:this.props.field.getIn(["content","validation_callback"])}))),_react.default.createElement("div",{className:"col-6"},_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,"Validation error message"),_react.default.createElement("input",{className:"form-control",type:"text",onChange:this.onChangeValidationError.bind(this),defaultValue:this.props.field.getIn(["content","validation_error"])}))),_react.default.createElement("div",{className:"col-12"},_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,"Argument"),_react.default.createElement("input",{className:"form-control",type:"text",onChange:this.onChangeValidationArgument.bind(this),defaultValue:this.props.field.getIn(["content","validation_argument"])}))))),"dropdown"==this.props.field.get("type")&&_react.default.createElement("div",{className:"col-6"},_react.default.createElement("div",{className:"row"},_react.default.createElement("div",{className:"col-4"},_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,"Provider event"),_react.default.createElement("input",{className:"form-control",type:"text",onChange:this.onChangeProvider.bind(this),defaultValue:this.props.field.getIn(["content","provider_dropdown"])}))),_react.default.createElement("div",{className:"col-4"},_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,"Name attribute"),_react.default.createElement("input",{className:"form-control",type:"text",onChange:this.onChangeProviderName.bind(this),defaultValue:this.props.field.getIn(["content","provider_name"])}))),_react.default.createElement("div",{className:"col-4"},_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,"Id attribute"),_react.default.createElement("input",{className:"form-control",type:"text",onChange:this.onChangeProviderId.bind(this),defaultValue:this.props.field.getIn(["content","provider_id"])}))),_react.default.createElement("div",{className:"col-6"},_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,"Default value"),_react.default.createElement("input",{className:"form-control",type:"text",onChange:this.onChangeProviderDefault.bind(this),defaultValue:this.props.field.getIn(["content","provider_default"])}))),_react.default.createElement("div",{className:"col-6"},_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,"Argument"),_react.default.createElement("input",{className:"form-control",type:"text",onChange:this.onChangeProviderArgument.bind(this),defaultValue:this.props.field.getIn(["content","provider_argument"])}))))),("buttons"==this.props.field.get("type")||"custom"==this.props.field.get("type"))&&_react.default.createElement("div",{className:"col-6"},_react.default.createElement("div",{className:"row"},_react.default.createElement("div",{className:"col-6"},_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,"Precheck event"),_react.default.createElement("input",{className:"form-control",type:"text",onChange:this.onChangePrecheckRenderFunction.bind(this),defaultValue:this.props.field.getIn(["content","render_precheck_function"])}))),_react.default.createElement("div",{className:"col-6"},_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,"Render event"),_react.default.createElement("input",{className:"form-control",type:"text",onChange:this.onChangeRenderFunction.bind(this),defaultValue:this.props.field.getIn(["content","render_function"])}))),_react.default.createElement("div",{className:"col-12"},_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,"Validate event"),_react.default.createElement("input",{className:"form-control",type:"text",onChange:this.onChangeRenderValidateFunction.bind(this),defaultValue:this.props.field.getIn(["content","render_validate"])}))),_react.default.createElement("div",{className:"col-6"},_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,"Arguments"),_react.default.createElement("input",{className:"form-control",type:"text",onChange:this.onChangeRenderArgs.bind(this),defaultValue:this.props.field.getIn(["content","render_args"])}))))),_react.default.createElement("div",{className:"col-12"},_react.default.createElement("div",{className:"row"},_react.default.createElement("div",{className:"col-6"},_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,"Message to user"),_react.default.createElement("textarea",{onChange:this.onChangeMessage.bind(this),defaultValue:this.props.field.getIn(["content","message"]),className:"form-control"}))),_react.default.createElement("div",{className:"col-6"},_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,"If something wrong in precheck send this"),_react.default.createElement("textarea",{onChange:this.onChangePrecheckMessage.bind(this),defaultValue:this.props.field.getIn(["content","message_precheck"]),className:"form-control"}))),_react.default.createElement("div",{className:"col-6"},_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,"Additional message to user"),_react.default.createElement("textarea",{onChange:this.onChangeAdditionalMessage.bind(this),defaultValue:this.props.field.getIn(["content","message_explain"]),className:"form-control"})))),_react.default.createElement("div",{className:"row"},_react.default.createElement("div",{className:"col-12"},_react.default.createElement("div",{className:"btn-group float-left",role:"group","aria-label":"Trigger actions"},0==this.props.isFirst&&_react.default.createElement("a",{className:"btn btn-secondary btn-sm",onClick:this.upField.bind(this)},_react.default.createElement("i",{className:"material-icons mr-0"},"keyboard_arrow_up")),0==this.props.isLast&&_react.default.createElement("a",{className:"btn btn-secondary btn-sm",onClick:this.downField.bind(this)},_react.default.createElement("i",{className:"material-icons mr-0"},"keyboard_arrow_down"))),_react.default.createElement("div",{className:"btn-group float-right",role:"group","aria-label":"Trigger actions"},_react.default.createElement("a",{className:"btn btn-warning btn-sm",onClick:this.deleteField.bind(this)},"Delete")))),_react.default.createElement("hr",null)))}}])&&_defineProperties(Constructor.prototype,protoProps),staticProps&&_defineProperties(Constructor,staticProps),Object.defineProperty(Constructor,"prototype",{writable:!1}),NodeCollectableField}(_react.Component);exports.default=_default},{react:146}],45:[function(require,module,exports){"use strict";function _typeof(obj){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var obj,_react=function(obj,nodeInterop){if(!nodeInterop&&obj&&obj.__esModule)return obj;if(null===obj||"object"!==_typeof(obj)&&"function"!=typeof obj)return{default:obj};var cache=_getRequireWildcardCache(nodeInterop);if(cache&&cache.has(obj))return cache.get(obj);var newObj={},hasPropertyDescriptor=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var key in obj)if("default"!==key&&Object.prototype.hasOwnProperty.call(obj,key)){var desc=hasPropertyDescriptor?Object.getOwnPropertyDescriptor(obj,key):null;desc&&(desc.get||desc.set)?Object.defineProperty(newObj,key,desc):newObj[key]=obj[key]}newObj.default=obj,cache&&cache.set(obj,newObj);return newObj}(require("react"));(obj=require("../NodeTriggerList"))&&obj.__esModule;function _getRequireWildcardCache(nodeInterop){if("function"!=typeof WeakMap)return null;var cacheBabelInterop=new WeakMap,cacheNodeInterop=new WeakMap;return(_getRequireWildcardCache=function(nodeInterop){return nodeInterop?cacheNodeInterop:cacheBabelInterop})(nodeInterop)}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}function _setPrototypeOf(o,p){return(_setPrototypeOf=Object.setPrototypeOf||function(o,p){return o.__proto__=p,o})(o,p)}function _createSuper(Derived){var hasNativeReflectConstruct=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var result,Super=_getPrototypeOf(Derived);if(hasNativeReflectConstruct){var NewTarget=_getPrototypeOf(this).constructor;result=Reflect.construct(Super,arguments,NewTarget)}else result=Super.apply(this,arguments);return _possibleConstructorReturn(this,result)}}function _possibleConstructorReturn(self,call){if(call&&("object"===_typeof(call)||"function"==typeof call))return call;if(void 0!==call)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(self)}function _assertThisInitialized(self){if(void 0===self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return self}function _getPrototypeOf(o){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(o){return o.__proto__||Object.getPrototypeOf(o)})(o)}var _default=function(_Component){!function(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function");subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:!0,configurable:!0}}),Object.defineProperty(subClass,"prototype",{writable:!1}),superClass&&_setPrototypeOf(subClass,superClass)}(NodeActionConditionItem,_Component);var Constructor,protoProps,staticProps,_super=_createSuper(NodeActionConditionItem);function NodeActionConditionItem(props){var _this;return function(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}(this,NodeActionConditionItem),(_this=_super.call(this,props)).onAttrChange=_this.onAttrChange.bind(_assertThisInitialized(_this)),_this.onchangeAttr=_this.onchangeAttr.bind(_assertThisInitialized(_this)),_this.onConditionChange=_this.onConditionChange.bind(_assertThisInitialized(_this)),_this}return Constructor=NodeActionConditionItem,(protoProps=[{key:"onAttrChange",value:function(payload){this.props.onChangeFieldAttr({id:this.props.id,path:["content","attr"],value:payload})}},{key:"onValChange",value:function(payload){this.props.onChangeFieldAttr({id:this.props.id,path:["content","val"],value:payload})}},{key:"onConditionChange",value:function(payload){this.props.onChangeFieldAttr({id:this.props.id,path:["content","comp"],value:payload})}},{key:"deleteField",value:function(){this.props.onDeleteField(this.props.id)}},{key:"onchangeAttr",value:function(e){this.props.onChangeFieldAttr({id:this.props.id,path:["content"].concat(e.path),value:e.value})}},{key:"render",value:function(){var _this2=this;return _react.default.createElement("div",{className:"row"},_react.default.createElement("div",{className:"col-4"},_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,"Attribute"),_react.default.createElement("input",{type:"text",placeholder:"yes, thanks",className:"form-control form-control-sm",onChange:function(e){return _this2.onAttrChange(e.target.value)},defaultValue:this.props.action.getIn(["content","attr"])}))),_react.default.createElement("div",{className:"col-2"},_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,"Condition"),_react.default.createElement("select",{className:"form-control form-control-sm",onChange:function(e){return _this2.onConditionChange(e.target.value)},defaultValue:this.props.action.getIn(["content","comp"])},_react.default.createElement("option",{value:""},"--Choose--"),_react.default.createElement("option",{value:"gt"},">"),_react.default.createElement("option",{value:"gte"},">="),_react.default.createElement("option",{value:"lt"},"<"),_react.default.createElement("option",{value:"lte"},"<="),_react.default.createElement("option",{value:"eq"},"="),_react.default.createElement("option",{value:"neq"},"!="),_react.default.createElement("option",{value:"like"},"Text like"),_react.default.createElement("option",{value:"notlike"},"Text not like"),_react.default.createElement("option",{value:"contains"},"Contains")))),_react.default.createElement("div",{className:"col-4"},_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,"Value"),_react.default.createElement("input",{type:"text",placeholder:"",className:"form-control form-control-sm",onChange:function(e){return _this2.onValChange(e.target.value)},defaultValue:this.props.action.getIn(["content","val"])}))),_react.default.createElement("div",{className:"col-2"},_react.default.createElement("div",null,_react.default.createElement("label",null," ")),_react.default.createElement("button",{type:"button",className:"btn btn-block btn-warning btn-sm",onClick:this.deleteField.bind(this)},"Delete")))}}])&&_defineProperties(Constructor.prototype,protoProps),staticProps&&_defineProperties(Constructor,staticProps),Object.defineProperty(Constructor,"prototype",{writable:!1}),NodeActionConditionItem}(_react.Component);exports.default=_default},{"../NodeTriggerList":41,react:146}],46:[function(require,module,exports){"use strict";function _typeof(obj){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var obj,_react=function(obj,nodeInterop){if(!nodeInterop&&obj&&obj.__esModule)return obj;if(null===obj||"object"!==_typeof(obj)&&"function"!=typeof obj)return{default:obj};var cache=_getRequireWildcardCache(nodeInterop);if(cache&&cache.has(obj))return cache.get(obj);var newObj={},hasPropertyDescriptor=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var key in obj)if("default"!==key&&Object.prototype.hasOwnProperty.call(obj,key)){var desc=hasPropertyDescriptor?Object.getOwnPropertyDescriptor(obj,key):null;desc&&(desc.get||desc.set)?Object.defineProperty(newObj,key,desc):newObj[key]=obj[key]}newObj.default=obj,cache&&cache.set(obj,newObj);return newObj}(require("react")),_NodeTriggerList=(obj=require("../NodeTriggerList"))&&obj.__esModule?obj:{default:obj};function _getRequireWildcardCache(nodeInterop){if("function"!=typeof WeakMap)return null;var cacheBabelInterop=new WeakMap,cacheNodeInterop=new WeakMap;return(_getRequireWildcardCache=function(nodeInterop){return nodeInterop?cacheNodeInterop:cacheBabelInterop})(nodeInterop)}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}function _setPrototypeOf(o,p){return(_setPrototypeOf=Object.setPrototypeOf||function(o,p){return o.__proto__=p,o})(o,p)}function _createSuper(Derived){var hasNativeReflectConstruct=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var result,Super=_getPrototypeOf(Derived);if(hasNativeReflectConstruct){var NewTarget=_getPrototypeOf(this).constructor;result=Reflect.construct(Super,arguments,NewTarget)}else result=Super.apply(this,arguments);return _possibleConstructorReturn(this,result)}}function _possibleConstructorReturn(self,call){if(call&&("object"===_typeof(call)||"function"==typeof call))return call;if(void 0!==call)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(self)}function _assertThisInitialized(self){if(void 0===self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return self}function _getPrototypeOf(o){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(o){return o.__proto__||Object.getPrototypeOf(o)})(o)}var _default=function(_Component){!function(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function");subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:!0,configurable:!0}}),Object.defineProperty(subClass,"prototype",{writable:!1}),superClass&&_setPrototypeOf(subClass,superClass)}(NodeEventActionTypeItem,_Component);var Constructor,protoProps,staticProps,_super=_createSuper(NodeEventActionTypeItem);function NodeEventActionTypeItem(props){var _this;return function(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}(this,NodeEventActionTypeItem),(_this=_super.call(this,props)).onchangeAttr=_this.onchangeAttr.bind(_assertThisInitialized(_this)),_this}return Constructor=NodeEventActionTypeItem,(protoProps=[{key:"deleteField",value:function(){this.props.onDeleteField(this.props.id)}},{key:"upField",value:function(){this.props.onMoveUpField(this.props.id)}},{key:"downField",value:function(){this.props.onMoveDownField(this.props.id)}},{key:"onchangeAttr",value:function(e){this.props.onChangeFieldAttr({id:this.props.id,path:["content"].concat(e.path),value:e.value})}},{key:"render",value:function(){var _this2=this;return _react.default.createElement("div",{className:"row"},_react.default.createElement("div",{className:"col-6"},_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,"Event identifier"),_react.default.createElement("input",{className:"form-control form-control-sm",onChange:function(e){return _this2.onchangeAttr({path:["identifier"],value:e.target.value})},type:"text",defaultValue:this.props.button.getIn(["content","identifier"])}))),_react.default.createElement("div",{className:"col-6"},_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,"Trigger to execute"),_react.default.createElement(_NodeTriggerList.default,{onSetPayload:function(e){return _this2.onchangeAttr({path:["trigger_id"],value:e})},payload:this.props.button.getIn(["content","trigger_id"])}))),_react.default.createElement("div",{className:"col-12"},_react.default.createElement("div",{className:"btn-group float-right",role:"group","aria-label":"Trigger actions"},_react.default.createElement("button",{type:"button",className:"btn btn-warning btn-sm",onClick:this.deleteField.bind(this)},"Delete"))),_react.default.createElement("div",{className:"col-12"},_react.default.createElement("hr",null)))}}])&&_defineProperties(Constructor.prototype,protoProps),staticProps&&_defineProperties(Constructor,staticProps),Object.defineProperty(Constructor,"prototype",{writable:!1}),NodeEventActionTypeItem}(_react.Component);exports.default=_default},{"../NodeTriggerList":41,react:146}],47:[function(require,module,exports){"use strict";function _typeof(obj){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var obj,_react=function(obj,nodeInterop){if(!nodeInterop&&obj&&obj.__esModule)return obj;if(null===obj||"object"!==_typeof(obj)&&"function"!=typeof obj)return{default:obj};var cache=_getRequireWildcardCache(nodeInterop);if(cache&&cache.has(obj))return cache.get(obj);var newObj={},hasPropertyDescriptor=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var key in obj)if("default"!==key&&Object.prototype.hasOwnProperty.call(obj,key)){var desc=hasPropertyDescriptor?Object.getOwnPropertyDescriptor(obj,key):null;desc&&(desc.get||desc.set)?Object.defineProperty(newObj,key,desc):newObj[key]=obj[key]}newObj.default=obj,cache&&cache.set(obj,newObj);return newObj}(require("react")),_NodeTriggerList=(obj=require("../NodeTriggerList"))&&obj.__esModule?obj:{default:obj};function _getRequireWildcardCache(nodeInterop){if("function"!=typeof WeakMap)return null;var cacheBabelInterop=new WeakMap,cacheNodeInterop=new WeakMap;return(_getRequireWildcardCache=function(nodeInterop){return nodeInterop?cacheNodeInterop:cacheBabelInterop})(nodeInterop)}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}function _setPrototypeOf(o,p){return(_setPrototypeOf=Object.setPrototypeOf||function(o,p){return o.__proto__=p,o})(o,p)}function _createSuper(Derived){var hasNativeReflectConstruct=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var result,Super=_getPrototypeOf(Derived);if(hasNativeReflectConstruct){var NewTarget=_getPrototypeOf(this).constructor;result=Reflect.construct(Super,arguments,NewTarget)}else result=Super.apply(this,arguments);return _possibleConstructorReturn(this,result)}}function _possibleConstructorReturn(self,call){if(call&&("object"===_typeof(call)||"function"==typeof call))return call;if(void 0!==call)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(self)}function _assertThisInitialized(self){if(void 0===self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return self}function _getPrototypeOf(o){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(o){return o.__proto__||Object.getPrototypeOf(o)})(o)}var _default=function(_Component){!function(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function");subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:!0,configurable:!0}}),Object.defineProperty(subClass,"prototype",{writable:!1}),superClass&&_setPrototypeOf(subClass,superClass)}(NodeActionIntentItem,_Component);var Constructor,protoProps,staticProps,_super=_createSuper(NodeActionIntentItem);function NodeActionIntentItem(props){var _this;return function(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}(this,NodeActionIntentItem),(_this=_super.call(this,props)).onIncludeWordsChange=_this.onIncludeWordsChange.bind(_assertThisInitialized(_this)),_this.onExcludeWordsChange=_this.onExcludeWordsChange.bind(_assertThisInitialized(_this)),_this.onTypos=_this.onTypos.bind(_assertThisInitialized(_this)),_this.onTyposExc=_this.onTyposExc.bind(_assertThisInitialized(_this)),_this.onchangeAttr=_this.onchangeAttr.bind(_assertThisInitialized(_this)),_this}return Constructor=NodeActionIntentItem,(protoProps=[{key:"onIncludeWordsChange",value:function(payload){this.props.onChangeFieldAttr({id:this.props.id,path:["content","words"],value:payload})}},{key:"onMatchIncludeWordsChange",value:function(payload){this.props.onChangeFieldAttr({id:this.props.id,path:["content","words_match"],value:payload})}},{key:"onExcludeWordsChange",value:function(payload){this.props.onChangeFieldAttr({id:this.props.id,path:["content","exc_words"],value:payload})}},{key:"deleteField",value:function(){this.props.onDeleteField(this.props.id)}},{key:"onchangeAttr",value:function(e){this.props.onChangeFieldAttr({id:this.props.id,path:["content"].concat(e.path),value:e.value})}},{key:"onTypos",value:function(payload){this.props.onChangeFieldAttr({id:this.props.id,path:["content","words_typo"],value:payload})}},{key:"onTyposExc",value:function(payload){this.props.onChangeFieldAttr({id:this.props.id,path:["content","exc_words_typo"],value:payload})}},{key:"render",value:function(){var _this2=this;return _react.default.createElement("div",{className:"row"},_react.default.createElement("div",{className:"col-12"},_react.default.createElement("hr",null)),_react.default.createElement("div",{className:"col-6"},_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,"Should include any of these words"),_react.default.createElement("input",{type:"text",placeholder:"yes, thanks",className:"form-control form-control-sm",onChange:function(e){return _this2.onIncludeWordsChange(e.target.value)},defaultValue:this.props.action.getIn(["content","words"])}))),_react.default.createElement("div",{className:"col-6"},_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,"But not any of these"),_react.default.createElement("input",{type:"text",placeholder:"no, nop",className:"form-control form-control-sm",onChange:function(e){return _this2.onExcludeWordsChange(e.target.value)},defaultValue:this.props.action.getIn(["content","exc_words"])}))),_react.default.createElement("div",{className:"col-12"},_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,"Or preg match, new match per line"),_react.default.createElement("textarea",{className:"form-control form-control-sm",placeholder:"Match rule ==> Matched item number to use ==> identifier",onChange:function(e){return _this2.onMatchIncludeWordsChange(e.target.value)},defaultValue:this.props.action.getIn(["content","words_match"])}))),_react.default.createElement("div",{className:"col-6"},_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,"Number of typos allowed"),_react.default.createElement("input",{type:"text",placeholder:"0",className:"form-control form-control-sm",onChange:function(e){return _this2.onTypos(e.target.value)},defaultValue:this.props.action.getIn(["content","words_typo"])}))),_react.default.createElement("div",{className:"col-6"},_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,"Number of typos allowed"),_react.default.createElement("input",{type:"text",placeholder:"0",className:"form-control form-control-sm",onChange:function(e){return _this2.onTyposExc(e.target.value)},defaultValue:this.props.action.getIn(["content","exc_words_typo"])}))),_react.default.createElement("div",{className:"col-12"},_react.default.createElement("label",null,_react.default.createElement("input",{type:"checkbox",onChange:function(e){return _this2.onchangeAttr({path:["only_these"],value:e.target.checked})},defaultChecked:this.props.action.getIn(["content","only_these"])})," Should include only words from above, not any."),_react.default.createElement("label",null,_react.default.createElement("input",{type:"checkbox",onChange:function(e){return _this2.onchangeAttr({path:["exec_insta"],value:e.target.checked})},defaultChecked:this.props.action.getIn(["content","exec_insta"])})," Do not schedule execution of this but execute it instantly. Blocks execution of all other responses and checks."),_react.default.createElement("label",null,_react.default.createElement("input",{type:"checkbox",onChange:function(e){return _this2.onchangeAttr({path:["exec_cont"],value:e.target.checked})},defaultChecked:this.props.action.getIn(["content","exec_cont"])})," Continue workflow if stop is returned from executed trigger."),_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,"Schedule this trigger for execution"),_react.default.createElement(_NodeTriggerList.default,{onSetPayload:function(e){return _this2.onchangeAttr({path:["trigger_id"],value:e})},payload:this.props.action.getIn(["content","trigger_id"])}))),_react.default.createElement("div",{className:"col-12"},_react.default.createElement("div",{className:"btn-group float-right",role:"group","aria-label":"Trigger actions"},_react.default.createElement("button",{className:"btn btn-warning btn-sm",onClick:this.deleteField.bind(this)},"Delete"))))}}])&&_defineProperties(Constructor.prototype,protoProps),staticProps&&_defineProperties(Constructor,staticProps),Object.defineProperty(Constructor,"prototype",{writable:!1}),NodeActionIntentItem}(_react.Component);exports.default=_default},{"../NodeTriggerList":41,react:146}],48:[function(require,module,exports){"use strict";function _typeof(obj){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _react=function(obj,nodeInterop){if(!nodeInterop&&obj&&obj.__esModule)return obj;if(null===obj||"object"!==_typeof(obj)&&"function"!=typeof obj)return{default:obj};var cache=_getRequireWildcardCache(nodeInterop);if(cache&&cache.has(obj))return cache.get(obj);var newObj={},hasPropertyDescriptor=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var key in obj)if("default"!==key&&Object.prototype.hasOwnProperty.call(obj,key)){var desc=hasPropertyDescriptor?Object.getOwnPropertyDescriptor(obj,key):null;desc&&(desc.get||desc.set)?Object.defineProperty(newObj,key,desc):newObj[key]=obj[key]}newObj.default=obj,cache&&cache.set(obj,newObj);return newObj}(require("react")),_NodeTriggerActionQuickReplyPayload=_interopRequireDefault(require("../NodeTriggerActionQuickReplyPayload")),_NodeTriggerActionQuickReply=_interopRequireDefault(require("../NodeTriggerActionQuickReply")),_shortid=_interopRequireDefault(require("shortid"));function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function _getRequireWildcardCache(nodeInterop){if("function"!=typeof WeakMap)return null;var cacheBabelInterop=new WeakMap,cacheNodeInterop=new WeakMap;return(_getRequireWildcardCache=function(nodeInterop){return nodeInterop?cacheNodeInterop:cacheBabelInterop})(nodeInterop)}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}function _setPrototypeOf(o,p){return(_setPrototypeOf=Object.setPrototypeOf||function(o,p){return o.__proto__=p,o})(o,p)}function _createSuper(Derived){var hasNativeReflectConstruct=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var result,Super=_getPrototypeOf(Derived);if(hasNativeReflectConstruct){var NewTarget=_getPrototypeOf(this).constructor;result=Reflect.construct(Super,arguments,NewTarget)}else result=Super.apply(this,arguments);return _possibleConstructorReturn(this,result)}}function _possibleConstructorReturn(self,call){if(call&&("object"===_typeof(call)||"function"==typeof call))return call;if(void 0!==call)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(self)}function _assertThisInitialized(self){if(void 0===self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return self}function _getPrototypeOf(o){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(o){return o.__proto__||Object.getPrototypeOf(o)})(o)}var _default=function(_Component){!function(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function");subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:!0,configurable:!0}}),Object.defineProperty(subClass,"prototype",{writable:!1}),superClass&&_setPrototypeOf(subClass,superClass)}(NodeActionListItem,_Component);var Constructor,protoProps,staticProps,_super=_createSuper(NodeActionListItem);function NodeActionListItem(props){var _this;return function(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}(this,NodeActionListItem),(_this=_super.call(this,props)).changeType=_this.changeType.bind(_assertThisInitialized(_this)),_this.onPayloadChange=_this.onPayloadChange.bind(_assertThisInitialized(_this)),_this.onChangeFieldType=_this.onChangeFieldType.bind(_assertThisInitialized(_this)),_this.onPayloadAttrChange=_this.onPayloadAttrChange.bind(_assertThisInitialized(_this)),_this.onChangeMainAttr=_this.onChangeMainAttr.bind(_assertThisInitialized(_this)),_this.onQuickReplyNameChange=_this.onQuickReplyNameChange.bind(_assertThisInitialized(_this)),_this.onDeleteQuickReply=_this.onDeleteQuickReply.bind(_assertThisInitialized(_this)),_this.onPayloadButtonAttrChange=_this.onPayloadButtonAttrChange.bind(_assertThisInitialized(_this)),_this.onQuickReplyPayloadChange=_this.onQuickReplyPayloadChange.bind(_assertThisInitialized(_this)),_this.onQuickReplyPayloadTypeChange=_this.onQuickReplyPayloadTypeChange.bind(_assertThisInitialized(_this)),_this}return Constructor=NodeActionListItem,(protoProps=[{key:"changeType",value:function(e){this.props.onChangeType({id:this.props.id,type:e.target.value})}},{key:"onChangeMainAttr",value:function(attr,val){this.props.onChangeFieldAttr({id:this.props.id,path:["content",attr],value:val})}},{key:"onPayloadChange",value:function(payload){this.props.onChangeFieldAttr({id:this.props.id,path:["content","payload"],value:payload})}},{key:"onChangeFieldType",value:function(type){this.props.onChangeFieldAttr({id:this.props.id,path:["type"],value:type})}},{key:"onPayloadAttrChange",value:function(payload){this.props.onChangeFieldAttr({id:this.props.id,path:["content",e.payload.attr],value:e.payload.value})}},{key:"addElementButton",value:function(){this.props.addSubelement({path:[this.props.id,"buttons"],default:{_id:_shortid.default.generate(),type:"url",content:{name:"New button",payload:""}}})}},{key:"deleteField",value:function(){this.props.onDeleteField(this.props.id)}},{key:"upField",value:function(){this.props.onMoveUpField(this.props.id)}},{key:"downField",value:function(){this.props.onMoveDownField(this.props.id)}},{key:"onQuickReplyNameChange",value:function(e){this.props.onChangeFieldAttr({id:this.props.id,path:["buttons",e.id,"content","name"],value:e.value})}},{key:"onDeleteQuickReply",value:function(e){this.props.onDeleteSubField({path:[this.props.id,"buttons",e.id]})}},{key:"onPayloadButtonAttrChange",value:function(e){this.props.onChangeFieldAttr({id:this.props.id,path:["buttons",e.id,"content",e.payload.attr],value:e.payload.value})}},{key:"onQuickReplyPayloadChange",value:function(e){this.props.onChangeFieldAttr({id:this.props.id,path:["buttons",e.id,"content","payload"],value:e.value})}},{key:"onQuickReplyPayloadTypeChange",value:function(e){this.props.onChangeFieldAttr({id:this.props.id,path:["buttons",e.id,"type"],value:e.value})}},{key:"render",value:function(){var _this2=this,button_list=[];return this.props.item.hasIn(["buttons"])&&(button_list=this.props.item.getIn(["buttons"]).map((function(field,index){return _react.default.createElement(_NodeTriggerActionQuickReply.default,{id:index,key:field.get("_id"),onPayloadTypeChange:_this2.onQuickReplyPayloadTypeChange,onPayloadChange:_this2.onQuickReplyPayloadChange,onPayloadAttrChange:_this2.onPayloadButtonAttrChange,reply:field,deleteReply:_this2.onDeleteQuickReply,onNameChange:_this2.onQuickReplyNameChange})}))),_react.default.createElement("div",{className:"row"},_react.default.createElement("div",{className:"col-12"},_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,this.props.id+1,". Title*"),_react.default.createElement("input",{className:"form-control form-control-sm",onChange:function(e){return _this2.onChangeMainAttr("title",e.target.value)},type:"text",defaultValue:this.props.item.getIn(["content","title"])}))),_react.default.createElement("div",{className:"col-12"},_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,"Subtitle*"),_react.default.createElement("input",{className:"form-control form-control-sm",onChange:function(e){return _this2.onChangeMainAttr("subtitle",e.target.value)},type:"text",defaultValue:this.props.item.getIn(["content","subtitle"])}))),_react.default.createElement("div",{className:"col-6"},_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,"Image URL"),_react.default.createElement("input",{className:"form-control form-control-sm",onChange:function(e){return _this2.onChangeMainAttr("img",e.target.value)},type:"text",defaultValue:this.props.item.getIn(["content","img"])}))),_react.default.createElement("div",{className:"col-6"},_react.default.createElement("div",{className:"form-group"},_react.default.createElement(_NodeTriggerActionQuickReplyPayload.default,{onPayloadAttrChange:this.onPayloadAttrChange,onPayloadTypeChange:this.onChangeFieldType,onPayloadChange:this.onPayloadChange,payloadType:this.props.item.get("type"),currentPayload:this.props.item.getIn(["content"])}))),_react.default.createElement("div",{className:"col-12"},button_list),_react.default.createElement("div",{className:"col-12"},_react.default.createElement("div",{className:"btn-group float-left",role:"group","aria-label":"Trigger actions"},0==this.props.isFirst&&_react.default.createElement("a",{className:"btn btn-secondary btn-sm",onClick:this.upField.bind(this)},_react.default.createElement("i",{className:"material-icons mr-0"},"keyboard_arrow_up")),0==this.props.isLast&&_react.default.createElement("a",{className:"btn btn-secondary btn-sm",onClick:this.downField.bind(this)},_react.default.createElement("i",{className:"material-icons mr-0"},"keyboard_arrow_down"))),_react.default.createElement("div",{className:"btn-group float-right",role:"group","aria-label":"Trigger actions"},_react.default.createElement("a",{className:"btn btn-info btn-sm",onClick:this.addElementButton.bind(this)},"Add element button"),_react.default.createElement("a",{className:"btn btn-warning btn-sm",onClick:this.deleteField.bind(this)},"Delete"))),_react.default.createElement("div",{className:"col-12"},_react.default.createElement("hr",null)))}}])&&_defineProperties(Constructor.prototype,protoProps),staticProps&&_defineProperties(Constructor,staticProps),Object.defineProperty(Constructor,"prototype",{writable:!1}),NodeActionListItem}(_react.Component);exports.default=_default},{"../NodeTriggerActionQuickReply":29,"../NodeTriggerActionQuickReplyPayload":30,react:146,shortid:158}],49:[function(require,module,exports){"use strict";function _typeof(obj){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var obj,_react=function(obj,nodeInterop){if(!nodeInterop&&obj&&obj.__esModule)return obj;if(null===obj||"object"!==_typeof(obj)&&"function"!=typeof obj)return{default:obj};var cache=_getRequireWildcardCache(nodeInterop);if(cache&&cache.has(obj))return cache.get(obj);var newObj={},hasPropertyDescriptor=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var key in obj)if("default"!==key&&Object.prototype.hasOwnProperty.call(obj,key)){var desc=hasPropertyDescriptor?Object.getOwnPropertyDescriptor(obj,key):null;desc&&(desc.get||desc.set)?Object.defineProperty(newObj,key,desc):newObj[key]=obj[key]}newObj.default=obj,cache&&cache.set(obj,newObj);return newObj}(require("react")),_NodeTriggerPayloadList=(obj=require("../builder/NodeTriggerPayloadList"))&&obj.__esModule?obj:{default:obj};function _getRequireWildcardCache(nodeInterop){if("function"!=typeof WeakMap)return null;var cacheBabelInterop=new WeakMap,cacheNodeInterop=new WeakMap;return(_getRequireWildcardCache=function(nodeInterop){return nodeInterop?cacheNodeInterop:cacheBabelInterop})(nodeInterop)}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}function _setPrototypeOf(o,p){return(_setPrototypeOf=Object.setPrototypeOf||function(o,p){return o.__proto__=p,o})(o,p)}function _createSuper(Derived){var hasNativeReflectConstruct=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var result,Super=_getPrototypeOf(Derived);if(hasNativeReflectConstruct){var NewTarget=_getPrototypeOf(this).constructor;result=Reflect.construct(Super,arguments,NewTarget)}else result=Super.apply(this,arguments);return _possibleConstructorReturn(this,result)}}function _possibleConstructorReturn(self,call){if(call&&("object"===_typeof(call)||"function"==typeof call))return call;if(void 0!==call)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(self)}function _assertThisInitialized(self){if(void 0===self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return self}function _getPrototypeOf(o){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(o){return o.__proto__||Object.getPrototypeOf(o)})(o)}var _default=function(_Component){!function(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function");subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:!0,configurable:!0}}),Object.defineProperty(subClass,"prototype",{writable:!1}),superClass&&_setPrototypeOf(subClass,superClass)}(NodeGroupTriggerEvent,_Component);var Constructor,protoProps,staticProps,_super=_createSuper(NodeGroupTriggerEvent);function NodeGroupTriggerEvent(props){var _this;return function(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}(this,NodeGroupTriggerEvent),(_this=_super.call(this,props)).typeChange=_this.typeChange.bind(_assertThisInitialized(_this)),_this.textChange=_this.textChange.bind(_assertThisInitialized(_this)),_this.textChangeExc=_this.textChangeExc.bind(_assertThisInitialized(_this)),_this.payloadChange=_this.payloadChange.bind(_assertThisInitialized(_this)),_this.deleteEvent=_this.deleteEvent.bind(_assertThisInitialized(_this)),_this.onchangeAttr=_this.onchangeAttr.bind(_assertThisInitialized(_this)),_this}return Constructor=NodeGroupTriggerEvent,(protoProps=[{key:"typeChange",value:function(e){this.props.updateEvent(this.props.event.set("type",e.target.value))}},{key:"textChange",value:function(e){this.props.updateEvent(this.props.event.set("pattern",e.target.value))}},{key:"payloadChange",value:function(payload){this.props.updateEvent(this.props.event.set("pattern",payload))}},{key:"textChangeExc",value:function(e){this.props.updateEvent(this.props.event.set("pattern_exc",e.target.value))}},{key:"deleteEvent",value:function(){this.props.deleteEvent(this.props.event)}},{key:"onchangeAttr",value:function(payload){this.props.updateEvent(this.props.event.setIn(payload.path,payload.value))}},{key:"render",value:function(){var typeRender,_this2=this;return typeRender=0==this.props.event.get("type")?_react.default.createElement("input",{onChange:this.textChange,placeholder:"Matching text phrase",type:"text",className:"form-control form-control-sm",value:this.props.event.get("pattern")}):2==this.props.event.get("type")?_react.default.createElement("div",{className:"row"},_react.default.createElement("div",{className:"col-12"},_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,"Should include any of these words"),_react.default.createElement("input",{type:"text",placeholder:"yes, thanks",className:"form-control form-control-sm",onChange:this.textChange,value:this.props.event.get("pattern")}))),_react.default.createElement("div",{className:"col-12"},_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,"But not any of these"),_react.default.createElement("input",{type:"text",placeholder:"no, nop",className:"form-control form-control-sm",onChange:this.textChangeExc,value:this.props.event.get("pattern_exc")}))),_react.default.createElement("div",{className:"col-6"},_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,"Typos number (include words)"),_react.default.createElement("input",{type:"text",placeholder:"0",className:"form-control form-control-sm",onChange:function(e){return _this2.onchangeAttr({path:["configuration_array","words_typo"],value:e.target.value})},defaultValue:this.props.event.getIn(["configuration_array","words_typo"])}))),_react.default.createElement("div",{className:"col-6"},_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,"Typos number (exclude words)"),_react.default.createElement("input",{type:"text",placeholder:"0",className:"form-control form-control-sm",onChange:function(e){return _this2.onchangeAttr({path:["configuration_array","exc_words_typo"],value:e.target.value})},defaultValue:this.props.event.getIn(["configuration_array","exc_words_typo"])}))),_react.default.createElement("div",{className:"col-12"},_react.default.createElement("label",null,_react.default.createElement("input",{type:"checkbox",onChange:function(e){return _this2.onchangeAttr({path:["configuration_array","only_these"],value:e.target.checked})},defaultChecked:this.props.event.getIn(["configuration_array","only_these"])})," Should include only words from above, not any."))):_react.default.createElement(_NodeTriggerPayloadList.default,{showOptional:!0,onSetPayload:this.payloadChange,payload:this.props.event.get("pattern")}),_react.default.createElement("div",{className:"row"},_react.default.createElement("div",{className:"col-12"},_react.default.createElement("div",{className:"form-group"},_react.default.createElement("div",{className:"row"},_react.default.createElement("div",{className:"col-10"},_react.default.createElement("label",null,"Type")),_react.default.createElement("div",{className:"col-2"},_react.default.createElement("a",{className:"float-right",onClick:this.deleteEvent},_react.default.createElement("i",{className:"material-icons mr-0"},"delete")))),_react.default.createElement("select",{className:"form-control form-control-sm",defaultValue:this.props.event.get("type"),onChange:this.typeChange},_react.default.createElement("option",{value:"0"},"Text"),_react.default.createElement("option",{value:"1"},"Click"),_react.default.createElement("option",{value:"2"},"Custom text matching"))),_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,"Chat start behaviour"),_react.default.createElement("select",{className:"form-control form-control-sm",defaultValue:this.props.event.get("on_start_type"),onChange:function(e){return _this2.onchangeAttr({path:["on_start_type"],value:e.target.value})}},_react.default.createElement("option",{value:"0"},"Do not check on chat start"),_react.default.createElement("option",{value:"1"},"Instant execution (Executes and continues workflow)"),_react.default.createElement("option",{value:"2"},"Instant execution and block (executes and blocks further triggers execution)"),_react.default.createElement("option",{value:"3"},"Instant execution and continue if stop is returned from this trigger"),_react.default.createElement("option",{value:"4"},"Schedule (schedules for further execution trigger)"))),_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,"Priority of start check"),_react.default.createElement("input",{title:"Lowest rank events will be checked first",type:"text",placeholder:"0",className:"form-control form-control-sm",onChange:function(e){return _this2.onchangeAttr({path:["priority"],value:e.target.value})},defaultValue:this.props.event.getIn(["priority"])})),_react.default.createElement("div",{className:"row"},_react.default.createElement("div",{className:"col-6"},_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,"Available for these departments"),_react.default.createElement("input",{title:"Separated by commas E.g 1,2,3",type:"text",placeholder:"Separated by commas E.g 1,2,3",className:"form-control form-control-sm",onChange:function(e){return _this2.onchangeAttr({path:["configuration_array","dep_inc"],value:e.target.value})},defaultValue:this.props.event.getIn(["configuration_array","dep_inc"])}))),_react.default.createElement("div",{className:"col-6"},_react.default.createElement("div",{className:"form-group"},_react.default.createElement("label",null,"Disabled for these departments"),_react.default.createElement("input",{title:"Separated by commas E.g 1,2,3",type:"text",placeholder:"Separated by commas E.g 1,2,3",className:"form-control form-control-sm",onChange:function(e){return _this2.onchangeAttr({path:["configuration_array","dep_exc"],value:e.target.value})},defaultValue:this.props.event.getIn(["configuration_array","dep_exc"])}))))),_react.default.createElement("div",{className:"col-12"},typeRender),_react.default.createElement("div",{className:"col-12"},_react.default.createElement("hr",null)))}}])&&_defineProperties(Constructor.prototype,protoProps),staticProps&&_defineProperties(Constructor,staticProps),Object.defineProperty(Constructor,"prototype",{writable:!1}),NodeGroupTriggerEvent}(_react.Component);exports.default=_default},{"../builder/NodeTriggerPayloadList":42,react:146}],50:[function(require,module,exports){"use strict";function _typeof(obj){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _react=function(obj,nodeInterop){if(!nodeInterop&&obj&&obj.__esModule)return obj;if(null===obj||"object"!==_typeof(obj)&&"function"!=typeof obj)return{default:obj};var cache=_getRequireWildcardCache(nodeInterop);if(cache&&cache.has(obj))return cache.get(obj);var newObj={},hasPropertyDescriptor=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var key in obj)if("default"!==key&&Object.prototype.hasOwnProperty.call(obj,key)){var desc=hasPropertyDescriptor?Object.getOwnPropertyDescriptor(obj,key):null;desc&&(desc.get||desc.set)?Object.defineProperty(newObj,key,desc):newObj[key]=obj[key]}newObj.default=obj,cache&&cache.set(obj,newObj);return newObj}(require("react"));function _getRequireWildcardCache(nodeInterop){if("function"!=typeof WeakMap)return null;var cacheBabelInterop=new WeakMap,cacheNodeInterop=new WeakMap;return(_getRequireWildcardCache=function(nodeInterop){return nodeInterop?cacheNodeInterop:cacheBabelInterop})(nodeInterop)}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}function _setPrototypeOf(o,p){return(_setPrototypeOf=Object.setPrototypeOf||function(o,p){return o.__proto__=p,o})(o,p)}function _createSuper(Derived){var hasNativeReflectConstruct=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var result,Super=_getPrototypeOf(Derived);if(hasNativeReflectConstruct){var NewTarget=_getPrototypeOf(this).constructor;result=Reflect.construct(Super,arguments,NewTarget)}else result=Super.apply(this,arguments);return _possibleConstructorReturn(this,result)}}function _possibleConstructorReturn(self,call){if(call&&("object"===_typeof(call)||"function"==typeof call))return call;if(void 0!==call)throw new TypeError("Derived constructors may only return object or undefined");return function(self){if(void 0===self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return self}(self)}function _getPrototypeOf(o){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(o){return o.__proto__||Object.getPrototypeOf(o)})(o)}var _default=function(_Component){!function(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function");subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:!0,configurable:!0}}),Object.defineProperty(subClass,"prototype",{writable:!1}),superClass&&_setPrototypeOf(subClass,superClass)}(NodeTriggerActionButtonsPreview,_Component);var Constructor,protoProps,staticProps,_super=_createSuper(NodeTriggerActionButtonsPreview);function NodeTriggerActionButtonsPreview(props){return function(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}(this,NodeTriggerActionButtonsPreview),_super.call(this,props)}return Constructor=NodeTriggerActionButtonsPreview,(protoProps=[{key:"render",value:function(){return this.props.action.hasIn(["content","buttons"])?_react.default.createElement("div",null,_react.default.createElement("div",{className:"message-row message-admin operator-changes"},_react.default.createElement("div",{className:"msg-date"},"18:10:45"),_react.default.createElement("span",{className:"usr-tit op-tit"},_react.default.createElement("i",{className:"material-icons chat-operators mi-fs15 mr-0"},""),"Operator"),_react.default.createElement("div",{className:"msg-body"},this.props.action.getIn(["content","buttons_options","message"]))),_react.default.createElement("ul",{className:"bot-btn-list"},this.props.action.getIn(["content","buttons"]).map((function(item,index){return _react.default.createElement("li",{key:index},_react.default.createElement("a",{href:"#"},"url"==item.get("type")&&_react.default.createElement("i",{className:"material-icons"},"open_in_new"),item.getIn(["content","name"])))})))):null}}])&&_defineProperties(Constructor.prototype,protoProps),staticProps&&_defineProperties(Constructor,staticProps),Object.defineProperty(Constructor,"prototype",{writable:!1}),NodeTriggerActionButtonsPreview}(_react.Component);exports.default=_default},{react:146}],51:[function(require,module,exports){"use strict";function _typeof(obj){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var obj,_react=function(obj,nodeInterop){if(!nodeInterop&&obj&&obj.__esModule)return obj;if(null===obj||"object"!==_typeof(obj)&&"function"!=typeof obj)return{default:obj};var cache=_getRequireWildcardCache(nodeInterop);if(cache&&cache.has(obj))return cache.get(obj);var newObj={},hasPropertyDescriptor=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var key in obj)if("default"!==key&&Object.prototype.hasOwnProperty.call(obj,key)){var desc=hasPropertyDescriptor?Object.getOwnPropertyDescriptor(obj,key):null;desc&&(desc.get||desc.set)?Object.defineProperty(newObj,key,desc):newObj[key]=obj[key]}newObj.default=obj,cache&&cache.set(obj,newObj);return newObj}(require("react"));(obj=require("./NodeTriggerActionQuickReplyListPreview"))&&obj.__esModule;function _getRequireWildcardCache(nodeInterop){if("function"!=typeof WeakMap)return null;var cacheBabelInterop=new WeakMap,cacheNodeInterop=new WeakMap;return(_getRequireWildcardCache=function(nodeInterop){return nodeInterop?cacheNodeInterop:cacheBabelInterop})(nodeInterop)}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}function _setPrototypeOf(o,p){return(_setPrototypeOf=Object.setPrototypeOf||function(o,p){return o.__proto__=p,o})(o,p)}function _createSuper(Derived){var hasNativeReflectConstruct=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var result,Super=_getPrototypeOf(Derived);if(hasNativeReflectConstruct){var NewTarget=_getPrototypeOf(this).constructor;result=Reflect.construct(Super,arguments,NewTarget)}else result=Super.apply(this,arguments);return _possibleConstructorReturn(this,result)}}function _possibleConstructorReturn(self,call){if(call&&("object"===_typeof(call)||"function"==typeof call))return call;if(void 0!==call)throw new TypeError("Derived constructors may only return object or undefined");return function(self){if(void 0===self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return self}(self)}function _getPrototypeOf(o){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(o){return o.__proto__||Object.getPrototypeOf(o)})(o)}var _default=function(_Component){!function(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function");subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:!0,configurable:!0}}),Object.defineProperty(subClass,"prototype",{writable:!1}),superClass&&_setPrototypeOf(subClass,superClass)}(NodeTriggerActionGenericPreview,_Component);var Constructor,protoProps,staticProps,_super=_createSuper(NodeTriggerActionGenericPreview);function NodeTriggerActionGenericPreview(props){return function(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}(this,NodeTriggerActionGenericPreview),_super.call(this,props)}return Constructor=NodeTriggerActionGenericPreview,(protoProps=[{key:"render",value:function(){return this.props.action.hasIn(["content","list"])?_react.default.createElement("div",{className:"generic-carousel"},this.props.action.getIn(["content","list"]).map((function(item,index){return _react.default.createElement("div",{className:"generic-bubble-item",key:index},_react.default.createElement("div",{className:"generic-bubble-content"},""!=item.getIn(["content","img"])&&_react.default.createElement("img",{className:"img-fluid",src:item.getIn(["content","img"])}),_react.default.createElement("h4",null,item.getIn(["content","title"])),_react.default.createElement("p",null,item.getIn(["content","subtitle"])),item.hasIn(["buttons"])&&_react.default.createElement("ul",{className:"bot-btn-list"},item.getIn(["buttons"]).map((function(item,index){return _react.default.createElement("li",{key:index},_react.default.createElement("a",{href:"#"},"url"==item.get("type")&&_react.default.createElement("i",{className:"material-icons"},"open_in_new"),item.getIn(["content","name"])))})))))}))):null}}])&&_defineProperties(Constructor.prototype,protoProps),staticProps&&_defineProperties(Constructor,staticProps),Object.defineProperty(Constructor,"prototype",{writable:!1}),NodeTriggerActionGenericPreview}(_react.Component);exports.default=_default},{"./NodeTriggerActionQuickReplyListPreview":54,react:146}],52:[function(require,module,exports){"use strict";function _typeof(obj){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var obj,_react=function(obj,nodeInterop){if(!nodeInterop&&obj&&obj.__esModule)return obj;if(null===obj||"object"!==_typeof(obj)&&"function"!=typeof obj)return{default:obj};var cache=_getRequireWildcardCache(nodeInterop);if(cache&&cache.has(obj))return cache.get(obj);var newObj={},hasPropertyDescriptor=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var key in obj)if("default"!==key&&Object.prototype.hasOwnProperty.call(obj,key)){var desc=hasPropertyDescriptor?Object.getOwnPropertyDescriptor(obj,key):null;desc&&(desc.get||desc.set)?Object.defineProperty(newObj,key,desc):newObj[key]=obj[key]}newObj.default=obj,cache&&cache.set(obj,newObj);return newObj}(require("react")),_NodeTriggerActionQuickReplyListPreview=(obj=require("./NodeTriggerActionQuickReplyListPreview"))&&obj.__esModule?obj:{default:obj};function _getRequireWildcardCache(nodeInterop){if("function"!=typeof WeakMap)return null;var cacheBabelInterop=new WeakMap,cacheNodeInterop=new WeakMap;return(_getRequireWildcardCache=function(nodeInterop){return nodeInterop?cacheNodeInterop:cacheBabelInterop})(nodeInterop)}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}function _setPrototypeOf(o,p){return(_setPrototypeOf=Object.setPrototypeOf||function(o,p){return o.__proto__=p,o})(o,p)}function _createSuper(Derived){var hasNativeReflectConstruct=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var result,Super=_getPrototypeOf(Derived);if(hasNativeReflectConstruct){var NewTarget=_getPrototypeOf(this).constructor;result=Reflect.construct(Super,arguments,NewTarget)}else result=Super.apply(this,arguments);return _possibleConstructorReturn(this,result)}}function _possibleConstructorReturn(self,call){if(call&&("object"===_typeof(call)||"function"==typeof call))return call;if(void 0!==call)throw new TypeError("Derived constructors may only return object or undefined");return function(self){if(void 0===self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return self}(self)}function _getPrototypeOf(o){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(o){return o.__proto__||Object.getPrototypeOf(o)})(o)}var _default=function(_Component){!function(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function");subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:!0,configurable:!0}}),Object.defineProperty(subClass,"prototype",{writable:!1}),superClass&&_setPrototypeOf(subClass,superClass)}(NodeTriggerActionListPreview,_Component);var Constructor,protoProps,staticProps,_super=_createSuper(NodeTriggerActionListPreview);function NodeTriggerActionListPreview(props){return function(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}(this,NodeTriggerActionListPreview),_super.call(this,props)}return Constructor=NodeTriggerActionListPreview,(protoProps=[{key:"render",value:function(){if(this.props.action.hasIn(["content","list"])){var listClass="list-group-element",compactStyle=!1;return this.props.action.hasIn(["content","list_options","no_highlight"])&&1==this.props.action.getIn(["content","list_options","no_highlight"])?(listClass+=" compact",compactStyle=!0):listClass+=" large",_react.default.createElement("div",{className:"list-group"},this.props.action.getIn(["content","list"]).map((function(item,index){return _react.default.createElement("div",{className:listClass,key:index},0==compactStyle&&0==index&&""!=item.getIn(["content","img"])&&_react.default.createElement("div",{className:"element-background",style:{backgroundImage:"url(".concat(item.getIn(["content","img"]),")")}}),_react.default.createElement("div",{className:"row element-description-row"},_react.default.createElement("div",{className:"col-9"},_react.default.createElement("div",{className:"element-description"},_react.default.createElement("h4",null,item.getIn(["content","title"])),_react.default.createElement("div",null,item.getIn(["content","subtitle"])),item.hasIn(["buttons"])&&_react.default.createElement(_NodeTriggerActionQuickReplyListPreview.default,{items:item.getIn(["buttons"])}))),_react.default.createElement("div",{className:"col-3"},""!=item.getIn(["content","img"])&&(0!==index||1==compactStyle)&&_react.default.createElement("img",{className:"float-right img-fluid",src:item.getIn(["content","img"])}))))})),this.props.action.hasIn(["content","quick_replies"])&&this.props.action.getIn(["content","quick_replies"]).map((function(item,index){return _react.default.createElement("div",{className:listClass+" button-item",key:index},_react.default.createElement("a",{key:index},"url"==item.get("type")&&_react.default.createElement("i",{className:"material-icons"},"open_in_new"),item.getIn(["content","name"])))})))}return null}}])&&_defineProperties(Constructor.prototype,protoProps),staticProps&&_defineProperties(Constructor,staticProps),Object.defineProperty(Constructor,"prototype",{writable:!1}),NodeTriggerActionListPreview}(_react.Component);exports.default=_default},{"./NodeTriggerActionQuickReplyListPreview":54,react:146}],53:[function(require,module,exports){"use strict";function _typeof(obj){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _react=function(obj,nodeInterop){if(!nodeInterop&&obj&&obj.__esModule)return obj;if(null===obj||"object"!==_typeof(obj)&&"function"!=typeof obj)return{default:obj};var cache=_getRequireWildcardCache(nodeInterop);if(cache&&cache.has(obj))return cache.get(obj);var newObj={},hasPropertyDescriptor=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var key in obj)if("default"!==key&&Object.prototype.hasOwnProperty.call(obj,key)){var desc=hasPropertyDescriptor?Object.getOwnPropertyDescriptor(obj,key):null;desc&&(desc.get||desc.set)?Object.defineProperty(newObj,key,desc):newObj[key]=obj[key]}newObj.default=obj,cache&&cache.set(obj,newObj);return newObj}(require("react"));function _getRequireWildcardCache(nodeInterop){if("function"!=typeof WeakMap)return null;var cacheBabelInterop=new WeakMap,cacheNodeInterop=new WeakMap;return(_getRequireWildcardCache=function(nodeInterop){return nodeInterop?cacheNodeInterop:cacheBabelInterop})(nodeInterop)}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}function _setPrototypeOf(o,p){return(_setPrototypeOf=Object.setPrototypeOf||function(o,p){return o.__proto__=p,o})(o,p)}function _createSuper(Derived){var hasNativeReflectConstruct=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var result,Super=_getPrototypeOf(Derived);if(hasNativeReflectConstruct){var NewTarget=_getPrototypeOf(this).constructor;result=Reflect.construct(Super,arguments,NewTarget)}else result=Super.apply(this,arguments);return _possibleConstructorReturn(this,result)}}function _possibleConstructorReturn(self,call){if(call&&("object"===_typeof(call)||"function"==typeof call))return call;if(void 0!==call)throw new TypeError("Derived constructors may only return object or undefined");return function(self){if(void 0===self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return self}(self)}function _getPrototypeOf(o){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(o){return o.__proto__||Object.getPrototypeOf(o)})(o)}var _default=function(_Component){!function(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function");subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:!0,configurable:!0}}),Object.defineProperty(subClass,"prototype",{writable:!1}),superClass&&_setPrototypeOf(subClass,superClass)}(NodeTriggerActionPredefinedPreview,_Component);var Constructor,protoProps,staticProps,_super=_createSuper(NodeTriggerActionPredefinedPreview);function NodeTriggerActionPredefinedPreview(props){return function(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}(this,NodeTriggerActionPredefinedPreview),_super.call(this,props)}return Constructor=NodeTriggerActionPredefinedPreview,(protoProps=[{key:"render",value:function(){return _react.default.createElement("div",null,_react.default.createElement("button",{className:"btn btn-secondary"},_react.default.createElement("i",{className:"material-icons"},"play_arrow"),"Execute trigger - ",this.props.action.getIn(["content","payload"])))}}])&&_defineProperties(Constructor.prototype,protoProps),staticProps&&_defineProperties(Constructor,staticProps),Object.defineProperty(Constructor,"prototype",{writable:!1}),NodeTriggerActionPredefinedPreview}(_react.Component);exports.default=_default},{react:146}],54:[function(require,module,exports){"use strict";function _typeof(obj){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _react=function(obj,nodeInterop){if(!nodeInterop&&obj&&obj.__esModule)return obj;if(null===obj||"object"!==_typeof(obj)&&"function"!=typeof obj)return{default:obj};var cache=_getRequireWildcardCache(nodeInterop);if(cache&&cache.has(obj))return cache.get(obj);var newObj={},hasPropertyDescriptor=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var key in obj)if("default"!==key&&Object.prototype.hasOwnProperty.call(obj,key)){var desc=hasPropertyDescriptor?Object.getOwnPropertyDescriptor(obj,key):null;desc&&(desc.get||desc.set)?Object.defineProperty(newObj,key,desc):newObj[key]=obj[key]}newObj.default=obj,cache&&cache.set(obj,newObj);return newObj}(require("react"));function _getRequireWildcardCache(nodeInterop){if("function"!=typeof WeakMap)return null;var cacheBabelInterop=new WeakMap,cacheNodeInterop=new WeakMap;return(_getRequireWildcardCache=function(nodeInterop){return nodeInterop?cacheNodeInterop:cacheBabelInterop})(nodeInterop)}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}function _setPrototypeOf(o,p){return(_setPrototypeOf=Object.setPrototypeOf||function(o,p){return o.__proto__=p,o})(o,p)}function _createSuper(Derived){var hasNativeReflectConstruct=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var result,Super=_getPrototypeOf(Derived);if(hasNativeReflectConstruct){var NewTarget=_getPrototypeOf(this).constructor;result=Reflect.construct(Super,arguments,NewTarget)}else result=Super.apply(this,arguments);return _possibleConstructorReturn(this,result)}}function _possibleConstructorReturn(self,call){if(call&&("object"===_typeof(call)||"function"==typeof call))return call;if(void 0!==call)throw new TypeError("Derived constructors may only return object or undefined");return function(self){if(void 0===self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return self}(self)}function _getPrototypeOf(o){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(o){return o.__proto__||Object.getPrototypeOf(o)})(o)}var _default=function(_Component){!function(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function");subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:!0,configurable:!0}}),Object.defineProperty(subClass,"prototype",{writable:!1}),superClass&&_setPrototypeOf(subClass,superClass)}(NodeTriggerActionQuickReplyListPreview,_Component);var Constructor,protoProps,staticProps,_super=_createSuper(NodeTriggerActionQuickReplyListPreview);function NodeTriggerActionQuickReplyListPreview(props){return function(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}(this,NodeTriggerActionQuickReplyListPreview),_super.call(this,props)}return Constructor=NodeTriggerActionQuickReplyListPreview,(protoProps=[{key:"render",value:function(){return this.props.items?_react.default.createElement("div",{className:"gen-btn-list"},this.props.items.map((function(item,index){return _react.default.createElement("a",{key:index,className:"btn btn-secondary btn-sm"},"url"==item.get("type")&&_react.default.createElement("i",{className:"material-icons"},"open_in_new"),item.getIn(["content","name"]))}))):null}}])&&_defineProperties(Constructor.prototype,protoProps),staticProps&&_defineProperties(Constructor,staticProps),Object.defineProperty(Constructor,"prototype",{writable:!1}),NodeTriggerActionQuickReplyListPreview}(_react.Component);exports.default=_default},{react:146}],55:[function(require,module,exports){"use strict";function _typeof(obj){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var obj,_react=function(obj,nodeInterop){if(!nodeInterop&&obj&&obj.__esModule)return obj;if(null===obj||"object"!==_typeof(obj)&&"function"!=typeof obj)return{default:obj};var cache=_getRequireWildcardCache(nodeInterop);if(cache&&cache.has(obj))return cache.get(obj);var newObj={},hasPropertyDescriptor=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var key in obj)if("default"!==key&&Object.prototype.hasOwnProperty.call(obj,key)){var desc=hasPropertyDescriptor?Object.getOwnPropertyDescriptor(obj,key):null;desc&&(desc.get||desc.set)?Object.defineProperty(newObj,key,desc):newObj[key]=obj[key]}newObj.default=obj,cache&&cache.set(obj,newObj);return newObj}(require("react")),_NodeTriggerActionQuickReplyListPreview=(obj=require("./NodeTriggerActionQuickReplyListPreview"))&&obj.__esModule?obj:{default:obj};function _getRequireWildcardCache(nodeInterop){if("function"!=typeof WeakMap)return null;var cacheBabelInterop=new WeakMap,cacheNodeInterop=new WeakMap;return(_getRequireWildcardCache=function(nodeInterop){return nodeInterop?cacheNodeInterop:cacheBabelInterop})(nodeInterop)}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}function _setPrototypeOf(o,p){return(_setPrototypeOf=Object.setPrototypeOf||function(o,p){return o.__proto__=p,o})(o,p)}function _createSuper(Derived){var hasNativeReflectConstruct=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var result,Super=_getPrototypeOf(Derived);if(hasNativeReflectConstruct){var NewTarget=_getPrototypeOf(this).constructor;result=Reflect.construct(Super,arguments,NewTarget)}else result=Super.apply(this,arguments);return _possibleConstructorReturn(this,result)}}function _possibleConstructorReturn(self,call){if(call&&("object"===_typeof(call)||"function"==typeof call))return call;if(void 0!==call)throw new TypeError("Derived constructors may only return object or undefined");return function(self){if(void 0===self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return self}(self)}function _getPrototypeOf(o){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(o){return o.__proto__||Object.getPrototypeOf(o)})(o)}var _default=function(_Component){!function(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function");subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:!0,configurable:!0}}),Object.defineProperty(subClass,"prototype",{writable:!1}),superClass&&_setPrototypeOf(subClass,superClass)}(NodeTriggerActionTextPreview,_Component);var Constructor,protoProps,staticProps,_super=_createSuper(NodeTriggerActionTextPreview);function NodeTriggerActionTextPreview(props){return function(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}(this,NodeTriggerActionTextPreview),_super.call(this,props)}return Constructor=NodeTriggerActionTextPreview,(protoProps=[{key:"render",value:function(){return _react.default.createElement("div",null,_react.default.createElement("div",{className:"message-row message-admin operator-changes"},_react.default.createElement("div",{className:"msg-date"},"18:10:45"),_react.default.createElement("span",{className:"usr-tit op-tit"},_react.default.createElement("i",{className:"material-icons chat-operators mi-fs15 mr-0"},""),"Operator"),_react.default.createElement("div",{className:"msg-body"},this.props.action.getIn(["content","text"]))),_react.default.createElement(_NodeTriggerActionQuickReplyListPreview.default,{items:this.props.action.getIn(["content","quick_replies"])}))}}])&&_defineProperties(Constructor.prototype,protoProps),staticProps&&_defineProperties(Constructor,staticProps),Object.defineProperty(Constructor,"prototype",{writable:!1}),NodeTriggerActionTextPreview}(_react.Component);exports.default=_default},{"./NodeTriggerActionQuickReplyListPreview":54,react:146}],56:[function(require,module,exports){"use strict";function _typeof(obj){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _react=function(obj,nodeInterop){if(!nodeInterop&&obj&&obj.__esModule)return obj;if(null===obj||"object"!==_typeof(obj)&&"function"!=typeof obj)return{default:obj};var cache=_getRequireWildcardCache(nodeInterop);if(cache&&cache.has(obj))return cache.get(obj);var newObj={},hasPropertyDescriptor=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var key in obj)if("default"!==key&&Object.prototype.hasOwnProperty.call(obj,key)){var desc=hasPropertyDescriptor?Object.getOwnPropertyDescriptor(obj,key):null;desc&&(desc.get||desc.set)?Object.defineProperty(newObj,key,desc):newObj[key]=obj[key]}newObj.default=obj,cache&&cache.set(obj,newObj);return newObj}(require("react"));function _getRequireWildcardCache(nodeInterop){if("function"!=typeof WeakMap)return null;var cacheBabelInterop=new WeakMap,cacheNodeInterop=new WeakMap;return(_getRequireWildcardCache=function(nodeInterop){return nodeInterop?cacheNodeInterop:cacheBabelInterop})(nodeInterop)}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}function _setPrototypeOf(o,p){return(_setPrototypeOf=Object.setPrototypeOf||function(o,p){return o.__proto__=p,o})(o,p)}function _createSuper(Derived){var hasNativeReflectConstruct=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var result,Super=_getPrototypeOf(Derived);if(hasNativeReflectConstruct){var NewTarget=_getPrototypeOf(this).constructor;result=Reflect.construct(Super,arguments,NewTarget)}else result=Super.apply(this,arguments);return _possibleConstructorReturn(this,result)}}function _possibleConstructorReturn(self,call){if(call&&("object"===_typeof(call)||"function"==typeof call))return call;if(void 0!==call)throw new TypeError("Derived constructors may only return object or undefined");return function(self){if(void 0===self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return self}(self)}function _getPrototypeOf(o){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(o){return o.__proto__||Object.getPrototypeOf(o)})(o)}var _default=function(_Component){!function(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function");subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:!0,configurable:!0}}),Object.defineProperty(subClass,"prototype",{writable:!1}),superClass&&_setPrototypeOf(subClass,superClass)}(NodeTriggerActionTypingPreview,_Component);var Constructor,protoProps,staticProps,_super=_createSuper(NodeTriggerActionTypingPreview);function NodeTriggerActionTypingPreview(props){return function(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}(this,NodeTriggerActionTypingPreview),_super.call(this,props)}return Constructor=NodeTriggerActionTypingPreview,(protoProps=[{key:"render",value:function(){return _react.default.createElement("div",null,_react.default.createElement("div",{className:"message-row message-admin message-row-typing"},_react.default.createElement("div",{className:"msg-body"},""!=this.props.action.getIn(["content","text"])?this.props.action.getIn(["content","text"]):"Typing...",_react.default.createElement("br",null),_react.default.createElement("b",null,"for ",this.props.action.getIn(["content","duration"])," seconds."))))}}])&&_defineProperties(Constructor.prototype,protoProps),staticProps&&_defineProperties(Constructor,staticProps),Object.defineProperty(Constructor,"prototype",{writable:!1}),NodeTriggerActionTypingPreview}(_react.Component);exports.default=_default},{react:146}],57:[function(require,module,exports){"use strict";function _typeof(obj){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var obj,_react=function(obj,nodeInterop){if(!nodeInterop&&obj&&obj.__esModule)return obj;if(null===obj||"object"!==_typeof(obj)&&"function"!=typeof obj)return{default:obj};var cache=_getRequireWildcardCache(nodeInterop);if(cache&&cache.has(obj))return cache.get(obj);var newObj={},hasPropertyDescriptor=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var key in obj)if("default"!==key&&Object.prototype.hasOwnProperty.call(obj,key)){var desc=hasPropertyDescriptor?Object.getOwnPropertyDescriptor(obj,key):null;desc&&(desc.get||desc.set)?Object.defineProperty(newObj,key,desc):newObj[key]=obj[key]}newObj.default=obj,cache&&cache.set(obj,newObj);return newObj}(require("react"));(obj=require("./NodeTriggerActionQuickReplyListPreview"))&&obj.__esModule;function _getRequireWildcardCache(nodeInterop){if("function"!=typeof WeakMap)return null;var cacheBabelInterop=new WeakMap,cacheNodeInterop=new WeakMap;return(_getRequireWildcardCache=function(nodeInterop){return nodeInterop?cacheNodeInterop:cacheBabelInterop})(nodeInterop)}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}function _setPrototypeOf(o,p){return(_setPrototypeOf=Object.setPrototypeOf||function(o,p){return o.__proto__=p,o})(o,p)}function _createSuper(Derived){var hasNativeReflectConstruct=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var result,Super=_getPrototypeOf(Derived);if(hasNativeReflectConstruct){var NewTarget=_getPrototypeOf(this).constructor;result=Reflect.construct(Super,arguments,NewTarget)}else result=Super.apply(this,arguments);return _possibleConstructorReturn(this,result)}}function _possibleConstructorReturn(self,call){if(call&&("object"===_typeof(call)||"function"==typeof call))return call;if(void 0!==call)throw new TypeError("Derived constructors may only return object or undefined");return function(self){if(void 0===self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return self}(self)}function _getPrototypeOf(o){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(o){return o.__proto__||Object.getPrototypeOf(o)})(o)}var _default=function(_Component){!function(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function");subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:!0,configurable:!0}}),Object.defineProperty(subClass,"prototype",{writable:!1}),superClass&&_setPrototypeOf(subClass,superClass)}(NodeTriggerActionVideoPreview,_Component);var Constructor,protoProps,staticProps,_super=_createSuper(NodeTriggerActionVideoPreview);function NodeTriggerActionVideoPreview(props){return function(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}(this,NodeTriggerActionVideoPreview),_super.call(this,props)}return Constructor=NodeTriggerActionVideoPreview,(protoProps=[{key:"render",value:function(){return _react.default.createElement("div",null,_react.default.createElement("div",{className:"message-row message-admin operator-changes"},_react.default.createElement("div",{className:"msg-date"},"18:10:45"),_react.default.createElement("span",{className:"usr-tit op-tit"},_react.default.createElement("i",{className:"material-icons chat-operators mi-fs15 mr-0"},""),"Operator"),_react.default.createElement("div",{className:"msg-body"},_react.default.createElement("br",null),_react.default.createElement("div",{className:"embed-responsive embed-responsive-16by9"},_react.default.createElement("video",{className:"embed-responsive-item",autoPlay:this.props.action.getIn(["content","video_options","autoplay"]),controls:this.props.action.getIn(["content","video_options","controls"])},_react.default.createElement("source",{src:this.props.action.getIn(["content","payload"])}))))))}}])&&_defineProperties(Constructor.prototype,protoProps),staticProps&&_defineProperties(Constructor,staticProps),Object.defineProperty(Constructor,"prototype",{writable:!1}),NodeTriggerActionVideoPreview}(_react.Component);exports.default=_default},{"./NodeTriggerActionQuickReplyListPreview":54,react:146}],58:[function(require,module,exports){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.UPDATE_TRIGGER_TYPE=exports.UPDATE_TRIGGER_NAME=exports.UPDATE_TRIGGER_EVENT=exports.UPDATE_PAYLOADS_FULFILLED=exports.UPDATE_GROUP_FULFILLED=exports.SET_IN_PROGRESS_TRIGGER=exports.SET_GROUP_TRIGGER_EVENT=exports.SET_DEFAULT_UNKNOWN_TRIGGER=exports.SET_DEFAULT_UNKNOWN_BTN_TRIGGER=exports.SET_DEFAULT_TRIGGER=exports.SET_DEFAULT_ALWAYS_TRIGGER=exports.SET_AS_ARGUMENT_TRIGGER=exports.SAVE_TRIGGER=exports.REMOVE_TRIGGER_RESPONSE=exports.REMOVE_TRIGGER=exports.REMOVE_SUBELEMENT=exports.MOVE_UP_SUBELEMENT=exports.MOVE_UP=exports.MOVE_DOWN_SUBELEMENT=exports.MOVE_DOWN=exports.LOAD_USE_CASES_TRIGGER_FULFILLED=exports.INIT_BOT_REST_API_METHODS=exports.INIT_BOT_FULFILLED=exports.INIT_BOT_ARGUMENTS_REJECTED=exports.INIT_BOT_ARGUMENTS_FULFILLED=exports.HANDLE_CONTENT_CHANGE=exports.HANDLE_ADD_QUICK_REPLY_REMOVE=exports.HANDLE_ADD_QUICK_REPLY=exports.FETCH_TRIGGER_RESPONSE_REJECTED=exports.FETCH_TRIGGER_RESPONSE_FULFILLED=exports.FETCH_TRIGGER_RESPONSE=exports.FETCH_NODE_GROUP_TRIGGERS_REJECTED=exports.FETCH_NODE_GROUP_TRIGGERS_FULFILLED=exports.FETCH_NODE_GROUP_TRIGGERS=exports.FETCH_NODE_GROUPS_REJECTED=exports.FETCH_NODE_GROUPS_FULFILLED=exports.FETCH_NODE_GROUPS=exports.DELETE_TRIGGER_GROUP=exports.DELETE_TRIGGER_EVENT=exports.CANCEL_TRIGGER=exports.ADD_TRIGGER_RESPONSE=exports.ADD_TRIGGER_FULFILLED=exports.ADD_TRIGGER_EVENT_FULFILLED=exports.ADD_SUBELEMENT=exports.ADD_PAYLOAD_TRIGGERS_FULFILLED=exports.ADD_GROUP_FULFILLED=void 0;exports.FETCH_NODE_GROUPS="FETCH_NODE_GROUPS";exports.FETCH_NODE_GROUPS_FULFILLED="FETCH_NODE_GROUPS_FULFILLED";exports.FETCH_NODE_GROUPS_REJECTED="FETCH_NODE_GROUPS_REJECTED";exports.ADD_GROUP_FULFILLED="ADD_GROUP_FULFILLED";exports.UPDATE_GROUP_FULFILLED="UPDATE_GROUP_FULFILLED";exports.DELETE_TRIGGER_GROUP="DELETE_TRIGGER_GROUP";exports.INIT_BOT_FULFILLED="INIT_BOT_FULFILLED";exports.FETCH_NODE_GROUP_TRIGGERS="FETCH_NODE_GROUP_TRIGGERS";exports.FETCH_NODE_GROUP_TRIGGERS_FULFILLED="FETCH_NODE_GROUP_TRIGGERS_FULFILLED";exports.FETCH_NODE_GROUP_TRIGGERS_REJECTED="FETCH_NODE_GROUP_TRIGGERS_REJECTED";exports.FETCH_TRIGGER_RESPONSE="FETCH_TRIGGER_RESPONSE";exports.FETCH_TRIGGER_RESPONSE_FULFILLED="FETCH_TRIGGER_RESPONSE_FULFILLED";exports.FETCH_TRIGGER_RESPONSE_REJECTED="FETCH_TRIGGER_RESPONSE_REJECTED";exports.UPDATE_TRIGGER_NAME="UPDATE_TRIGGER_NAME";exports.UPDATE_TRIGGER_TYPE="UPDATE_TRIGGER_TYPE";exports.ADD_TRIGGER_FULFILLED="ADD_TRIGGER_FULFILLED";exports.ADD_TRIGGER_RESPONSE="ADD_TRIGGER_RESPONSE";exports.HANDLE_CONTENT_CHANGE="HANDLE_CONTENT_CHANGE";exports.SAVE_TRIGGER="SAVE_TRIGGER";exports.REMOVE_TRIGGER="REMOVE_TRIGGER";exports.CANCEL_TRIGGER="CANCEL_TRIGGER";exports.UPDATE_TRIGGER_EVENT="UPDATE_TRIGGER_EVENT";exports.ADD_TRIGGER_EVENT_FULFILLED="ADD_TRIGGER_EVENT_FULFILLED";exports.DELETE_TRIGGER_EVENT="DELETE_TRIGGER_EVENT";exports.HANDLE_ADD_QUICK_REPLY="HANDLE_ADD_QUICK_REPLY";exports.HANDLE_ADD_QUICK_REPLY_REMOVE="HANDLE_ADD_QUICK_REPLY_REMOVE";exports.REMOVE_TRIGGER_RESPONSE="REMOVE_TRIGGER_RESPONSE";exports.ADD_PAYLOAD_TRIGGERS_FULFILLED="ADD_PAYLOAD_TRIGGERS_FULFILLED";exports.UPDATE_PAYLOADS_FULFILLED="UPDATE_PAYLOADS_FULFILLED";exports.SET_DEFAULT_TRIGGER="SET_DEFAULT_TRIGGER";exports.ADD_SUBELEMENT="ADD_SUBELEMENT";exports.REMOVE_SUBELEMENT="REMOVE_SUBELEMENT";exports.MOVE_UP_SUBELEMENT="MOVE_UP_SUBELEMENT";exports.MOVE_DOWN_SUBELEMENT="MOVE_DOWN_SUBELEMENT";exports.SET_DEFAULT_UNKNOWN_TRIGGER="SET_DEFAULT_UNKNOWN_TRIGGER";exports.SET_AS_ARGUMENT_TRIGGER="SET_AS_ARGUMENT_TRIGGER";exports.SET_DEFAULT_UNKNOWN_BTN_TRIGGER="SET_DEFAULT_UNKNOWN_BTN_TRIGGER";exports.SET_DEFAULT_ALWAYS_TRIGGER="SET_DEFAULT_ALWAYS_TRIGGER";exports.SET_IN_PROGRESS_TRIGGER="SET_IN_PROGRESS_TRIGGER";exports.INIT_BOT_ARGUMENTS_FULFILLED="INIT_BOT_ARGUMENTS_FULFILLED";exports.INIT_BOT_ARGUMENTS_REJECTED="INIT_BOT_ARGUMENTS_REJECTED";exports.LOAD_USE_CASES_TRIGGER_FULFILLED="LOAD_USE_CASES_TRIGGER_FULFILLED";exports.INIT_BOT_REST_API_METHODS="INIT_BOT_REST_API_METHODS";exports.SET_GROUP_TRIGGER_EVENT="SET_GROUP_TRIGGER_EVENT";exports.MOVE_UP="MOVE_UP";exports.MOVE_DOWN="MOVE_DOWN"},{}],59:[function(require,module,exports){"use strict";var _react=_interopRequireDefault(require("react")),_reactDom=_interopRequireDefault(require("react-dom")),_App=_interopRequireDefault(require("./App")),_reactRedux=require("react-redux"),_index=_interopRequireDefault(require("./store/index"));function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var root=document.getElementById("root");_reactDom.default.render(_react.default.createElement(_reactRedux.Provider,{store:_index.default},_react.default.createElement(_App.default,root.dataset)),root)},{"./App":1,"./store/index":64,react:146,"react-dom":112,"react-redux":131}],60:[function(require,module,exports){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var obj,_actionTypes=require("../constants/action-types"),_immutable=require("immutable"),_shortid=(obj=require("shortid"))&&obj.__esModule?obj:{default:obj};function _toConsumableArray(arr){return function(arr){if(Array.isArray(arr))return _arrayLikeToArray(arr)}(arr)||function(iter){if("undefined"!=typeof Symbol&&null!=iter[Symbol.iterator]||null!=iter["@@iterator"])return Array.from(iter)}(arr)||function(o,minLen){if(!o)return;if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen)}(arr)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i<len;i++)arr2[i]=arr[i];return arr2}var initialState=(0,_immutable.fromJS)({currenttrigger:{},payloads:[],rest_api_calls:[],fetching:!1,fetched:!1,error:null}),_default=function(){var state=arguments.length>0&&void 0!==arguments[0]?arguments[0]:initialState,action=arguments.length>1?arguments[1]:void 0;switch(action.type){case _actionTypes.FETCH_TRIGGER_RESPONSE_FULFILLED:return state.set("currenttrigger",(0,_immutable.fromJS)(action.payload));case _actionTypes.FETCH_TRIGGER_RESPONSE_REJECTED:return state.set("fetching",!1).set("error",(0,_immutable.fromJS)(action.payload));case _actionTypes.UPDATE_TRIGGER_NAME:return state.setIn(["currenttrigger","name"],action.payload.get("name"));case _actionTypes.UPDATE_TRIGGER_TYPE:return state.setIn(["currenttrigger","actions",action.payload.id,"type"],action.payload.type);case _actionTypes.ADD_TRIGGER_RESPONSE:return state.updateIn(["currenttrigger","actions"],(function(actions){return actions.push((0,_immutable.fromJS)({_id:_shortid.default.generate(),type:"text",content:{text:""}}))}));case _actionTypes.REMOVE_TRIGGER_RESPONSE:return state.deleteIn(["currenttrigger","actions",action.payload.id]);case _actionTypes.HANDLE_CONTENT_CHANGE:return state.setIn(["currenttrigger","actions",action.payload.id].concat(action.payload.path),action.payload.value);case _actionTypes.ADD_SUBELEMENT:return state.getIn(["currenttrigger","actions",action.payload.id]).hasIn(action.payload.path)?state.updateIn(["currenttrigger","actions",action.payload.id].concat(action.payload.path),(function(elements){return elements.push((0,_immutable.fromJS)(action.payload.default))})):state.setIn(["currenttrigger","actions",action.payload.id].concat(action.payload.path),(0,_immutable.fromJS)([action.payload.default]));case _actionTypes.REMOVE_SUBELEMENT:return state.deleteIn(["currenttrigger","actions",action.payload.id].concat(action.payload.path));case _actionTypes.MOVE_UP_SUBELEMENT:var source=state.getIn(["currenttrigger","actions",action.payload.id].concat(action.payload.path)).get(action.payload.index),destination=state.getIn(["currenttrigger","actions",action.payload.id].concat(action.payload.path)).get(action.payload.index-1);return state.setIn(["currenttrigger","actions",action.payload.id].concat(action.payload.path).concat([action.payload.index]),destination).setIn(["currenttrigger","actions",action.payload.id].concat(action.payload.path).concat([action.payload.index-1]),source);case _actionTypes.MOVE_DOWN_SUBELEMENT:var _source=state.getIn(["currenttrigger","actions",action.payload.id].concat(action.payload.path)).get(action.payload.index),_destination=state.getIn(["currenttrigger","actions",action.payload.id].concat(action.payload.path)).get(action.payload.index+1);return state.setIn(["currenttrigger","actions",action.payload.id].concat(action.payload.path).concat([action.payload.index]),_destination).setIn(["currenttrigger","actions",action.payload.id].concat(action.payload.path).concat([action.payload.index+1]),_source);case _actionTypes.MOVE_UP:var _source2=state.getIn(["currenttrigger","actions"]).get(action.payload.index),_destination2=state.getIn(["currenttrigger","actions"]).get(action.payload.index-1);return state.setIn(["currenttrigger","actions"].concat([action.payload.index]),_destination2).setIn(["currenttrigger","actions"].concat([action.payload.index-1]),_source2);case _actionTypes.MOVE_DOWN:var _source3=state.getIn(["currenttrigger","actions"]).get(action.payload.index),_destination3=state.getIn(["currenttrigger","actions"]).get(action.payload.index+1);return state.setIn(["currenttrigger","actions"].concat([action.payload.index]),_destination3).setIn(["currenttrigger","actions"].concat([action.payload.index+1]),_source3);case _actionTypes.LOAD_USE_CASES_TRIGGER_FULFILLED:return state.setIn(["currenttrigger","use_cases"],(0,_immutable.fromJS)(action.payload));case _actionTypes.HANDLE_ADD_QUICK_REPLY:return state.getIn(["currenttrigger","actions",action.payload.id,"content"]).has("quick_replies")?state.updateIn(["currenttrigger","actions",action.payload.id,"content","quick_replies"],(function(quick_replies){return quick_replies.push((0,_immutable.fromJS)({_id:_shortid.default.generate(),type:"button",content:{name:"",payload:""}}))})):state.setIn(["currenttrigger","actions",action.payload.id,"content","quick_replies"],(0,_immutable.fromJS)([{_id:_shortid.default.generate(),type:"button",content:{name:"",payload:""}}]));case _actionTypes.HANDLE_ADD_QUICK_REPLY_REMOVE:var actions=["currenttrigger","actions",action.payload.id];return state.deleteIn([].concat(actions,_toConsumableArray(action.payload.path)));case _actionTypes.REMOVE_TRIGGER:case _actionTypes.CANCEL_TRIGGER:return state.getIn(["currenttrigger","id"])==action.payload.get("id")?state.set("currenttrigger",(0,_immutable.fromJS)({})):state;case _actionTypes.UPDATE_TRIGGER_EVENT:var indexOfListingToUpdate=state.getIn(["currenttrigger","events"]).findIndex((function(listing){return listing.get("id")===action.payload.get("id")}));return state.setIn(["currenttrigger","events",indexOfListingToUpdate],action.payload);case _actionTypes.ADD_TRIGGER_EVENT_FULFILLED:return state.updateIn(["currenttrigger","events"],(function(events){return events.push((0,_immutable.fromJS)(action.payload))}));case _actionTypes.DELETE_TRIGGER_EVENT:var _indexOfListingToUpdate=state.getIn(["currenttrigger","events"]).findIndex((function(listing){return listing.get("id")===action.payload.get("id")}));return state.deleteIn(["currenttrigger","events",_indexOfListingToUpdate]);case _actionTypes.INIT_BOT_FULFILLED:return state.set("payloads",(0,_immutable.fromJS)(action.payload.payloads)).set("rest_api_calls",(0,_immutable.fromJS)(action.payload.rest_api_calls));case _actionTypes.INIT_BOT_REST_API_METHODS:var _indexOfListingToUpdate2=state.getIn(["rest_api_calls"]).findIndex((function(listing){return listing.get("id")===action.payload.id}));return state.setIn(["rest_api_calls",_indexOfListingToUpdate2,"methods"],(0,_immutable.fromJS)(action.payload.methods));case _actionTypes.INIT_BOT_ARGUMENTS_FULFILLED:return state.set("arguments",(0,_immutable.fromJS)(action.payload.arguments));case _actionTypes.ADD_PAYLOAD_TRIGGERS_FULFILLED:case _actionTypes.UPDATE_PAYLOADS_FULFILLED:return state.set("payloads",(0,_immutable.fromJS)(action.payload.payloads));default:return state}};exports.default=_default},{"../constants/action-types":58,immutable:102,shortid:158}],61:[function(require,module,exports){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _redux=require("redux"),_nodeGroupReducer=_interopRequireDefault(require("./nodeGroupReducer")),_nodeGroupTriggerReducer=_interopRequireDefault(require("./nodeGroupTriggerReducer")),_currentTriggerReducer=_interopRequireDefault(require("./currentTriggerReducer"));function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var _default=(0,_redux.combineReducers)({nodegroups:_nodeGroupReducer.default,nodegrouptriggers:_nodeGroupTriggerReducer.default,currenttrigger:_currentTriggerReducer.default});exports.default=_default},{"./currentTriggerReducer":60,"./nodeGroupReducer":62,"./nodeGroupTriggerReducer":63,redux:151}],62:[function(require,module,exports){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.pipe=exports.default=void 0;var _actionTypes=require("../constants/action-types"),_immutable=require("immutable"),initialState=(0,_immutable.fromJS)({nodegroups:[],fetching:!1,fetched:!1,error:null}),applyFn=function(state,fn){return fn(state)};exports.pipe=function(fns,state){return state.withMutations((function(s){return fns.reduce(applyFn,s)}))};var _default=function(){var state=arguments.length>0&&void 0!==arguments[0]?arguments[0]:initialState,action=arguments.length>1?arguments[1]:void 0;switch(action.type){case _actionTypes.FETCH_NODE_GROUPS:return state.set("fetching",!0);case _actionTypes.FETCH_NODE_GROUPS_FULFILLED:return state.set("fetching",!1).set("fetched",!0).set("nodegroups",(0,_immutable.fromJS)(action.payload));case _actionTypes.ADD_GROUP_FULFILLED:return state.set("fetched",!0).set("fetching",!1).update("nodegroups",(function(nodegroups){return nodegroups.push((0,_immutable.fromJS)(action.payload))}));case _actionTypes.DELETE_TRIGGER_GROUP:var indexOfListingToUpdate=state.get("nodegroups").findIndex((function(listing){return listing.get("id")===action.payload.groupId.id}));return state.deleteIn(["nodegroups",indexOfListingToUpdate]);case _actionTypes.UPDATE_GROUP_FULFILLED:var _indexOfListingToUpdate=state.get("nodegroups").findIndex((function(listing){return listing.get("id")===action.payload.get("id")}));return state.setIn(["nodegroups",_indexOfListingToUpdate],action.payload);case _actionTypes.FETCH_NODE_GROUPS_REJECTED:return state.set("fetching",!1).set("error",action.payload);default:return state}};exports.default=_default},{"../constants/action-types":58,immutable:102}],63:[function(require,module,exports){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _actionTypes=require("../constants/action-types"),_immutable=require("immutable"),initialState=(0,_immutable.fromJS)({nodegrouptriggers:{},fetching:!1,fetched:!1,error:null}),_default=function(){var state=arguments.length>0&&void 0!==arguments[0]?arguments[0]:initialState,action=arguments.length>1?arguments[1]:void 0;switch(action.type){case _actionTypes.FETCH_NODE_GROUP_TRIGGERS:return state.set("fetching",!1);case _actionTypes.FETCH_NODE_GROUP_TRIGGERS_FULFILLED:return state.setIn(["nodegrouptriggers",action.group_id],(0,_immutable.fromJS)(action.payload));case _actionTypes.FETCH_NODE_GROUP_TRIGGERS_REJECTED:return state.set("fetching",!1).set("error",(0,_immutable.fromJS)(action.payload));case _actionTypes.SAVE_TRIGGER:var indexOfListingToUpdate=state.get("nodegrouptriggers").get(action.payload.get("group_id")).findIndex((function(listing){return listing.get("id")===action.payload.get("id")}));return state.setIn(["nodegrouptriggers",action.payload.get("group_id"),indexOfListingToUpdate,"name"],action.payload.get("name"));case _actionTypes.REMOVE_TRIGGER:var _indexOfListingToUpdate=state.get("nodegrouptriggers").get(action.payload.get("group_id")).findIndex((function(listing){return listing.get("id")===action.payload.get("id")}));return state.deleteIn(["nodegrouptriggers",action.payload.get("group_id"),_indexOfListingToUpdate]);case _actionTypes.SET_GROUP_TRIGGER_EVENT:var _indexOfListingToUpdate2=state.get("nodegrouptriggers").get(action.group_id).findIndex((function(listing){return listing.get("id")===action.payload.get("id")})),newTrigger=state.getIn(["nodegrouptriggers",action.group_id,_indexOfListingToUpdate2]).set("group_id",action.payload.get("group_id"));return state.deleteIn(["nodegrouptriggers",action.group_id,_indexOfListingToUpdate2]).updateIn(["nodegrouptriggers",action.payload.get("group_id")],(function(triggers){return triggers.push(newTrigger)}));case _actionTypes.SET_DEFAULT_TRIGGER:var _indexOfListingToUpdate3=state.get("nodegrouptriggers").get(action.payload.get("group_id")).findIndex((function(listing){return listing.get("id")===action.payload.get("id")}));return state.setIn(["nodegrouptriggers",action.payload.get("group_id"),_indexOfListingToUpdate3,"default"],action.payload.get("default"));case _actionTypes.SET_DEFAULT_UNKNOWN_TRIGGER:var _indexOfListingToUpdate4=state.get("nodegrouptriggers").get(action.payload.get("group_id")).findIndex((function(listing){return listing.get("id")===action.payload.get("id")}));return state.setIn(["nodegrouptriggers",action.payload.get("group_id"),_indexOfListingToUpdate4,"default_unknown"],action.payload.get("default_unknown"));case _actionTypes.SET_IN_PROGRESS_TRIGGER:var _indexOfListingToUpdate5=state.get("nodegrouptriggers").get(action.payload.get("group_id")).findIndex((function(listing){return listing.get("id")===action.payload.get("id")}));return state.setIn(["nodegrouptriggers",action.payload.get("group_id"),_indexOfListingToUpdate5,"in_progress"],action.payload.get("in_progress"));case _actionTypes.SET_AS_ARGUMENT_TRIGGER:var _indexOfListingToUpdate6=state.get("nodegrouptriggers").get(action.payload.get("group_id")).findIndex((function(listing){return listing.get("id")===action.payload.get("id")}));return state.setIn(["nodegrouptriggers",action.payload.get("group_id"),_indexOfListingToUpdate6,"as_argument"],action.payload.get("as_argument"));case _actionTypes.SET_DEFAULT_UNKNOWN_BTN_TRIGGER:var _indexOfListingToUpdate7=state.get("nodegrouptriggers").get(action.payload.get("group_id")).findIndex((function(listing){return listing.get("id")===action.payload.get("id")}));return state.setIn(["nodegrouptriggers",action.payload.get("group_id"),_indexOfListingToUpdate7,"default_unknown_btn"],action.payload.get("default_unknown_btn"));case _actionTypes.SET_DEFAULT_ALWAYS_TRIGGER:var _indexOfListingToUpdate8=state.get("nodegrouptriggers").get(action.payload.get("group_id")).findIndex((function(listing){return listing.get("id")===action.payload.get("id")}));return state.setIn(["nodegrouptriggers",action.payload.get("group_id"),_indexOfListingToUpdate8,"default_always"],action.payload.get("default_always"));case _actionTypes.ADD_TRIGGER_FULFILLED:return state.updateIn(["nodegrouptriggers",action.payload.group_id],(function(triggers){return triggers.push((0,_immutable.fromJS)(action.payload))}));default:return state}};exports.default=_default},{"../constants/action-types":58,immutable:102}],64:[function(require,module,exports){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _redux=require("redux"),_index=_interopRequireDefault(require("../reducers/index")),_reduxThunk=(require("redux-logger"),_interopRequireDefault(require("redux-thunk"))),_reduxPromiseMiddleware=_interopRequireDefault(require("redux-promise-middleware"));function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var middleware=(0,_redux.applyMiddleware)(_reduxPromiseMiddleware.default,_reduxThunk.default),_default=(0,_redux.createStore)(_index.default,middleware);exports.default=_default},{"../reducers/index":61,redux:151,"redux-logger":147,"redux-promise-middleware":148,"redux-thunk":150}],65:[function(require,module,exports){module.exports=function(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj},module.exports.default=module.exports,module.exports.__esModule=!0},{}],66:[function(require,module,exports){function _extends(){return module.exports=_extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source)Object.prototype.hasOwnProperty.call(source,key)&&(target[key]=source[key])}return target},module.exports.default=module.exports,module.exports.__esModule=!0,_extends.apply(this,arguments)}module.exports=_extends,module.exports.default=module.exports,module.exports.__esModule=!0},{}],67:[function(require,module,exports){module.exports=function(obj){return obj&&obj.__esModule?obj:{default:obj}},module.exports.default=module.exports,module.exports.__esModule=!0},{}],68:[function(require,module,exports){var _typeof=require("@babel/runtime/helpers/typeof").default;function _getRequireWildcardCache(nodeInterop){if("function"!=typeof WeakMap)return null;var cacheBabelInterop=new WeakMap,cacheNodeInterop=new WeakMap;return(_getRequireWildcardCache=function(nodeInterop){return nodeInterop?cacheNodeInterop:cacheBabelInterop})(nodeInterop)}module.exports=function(obj,nodeInterop){if(!nodeInterop&&obj&&obj.__esModule)return obj;if(null===obj||"object"!==_typeof(obj)&&"function"!=typeof obj)return{default:obj};var cache=_getRequireWildcardCache(nodeInterop);if(cache&&cache.has(obj))return cache.get(obj);var newObj={},hasPropertyDescriptor=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var key in obj)if("default"!==key&&Object.prototype.hasOwnProperty.call(obj,key)){var desc=hasPropertyDescriptor?Object.getOwnPropertyDescriptor(obj,key):null;desc&&(desc.get||desc.set)?Object.defineProperty(newObj,key,desc):newObj[key]=obj[key]}return newObj.default=obj,cache&&cache.set(obj,newObj),newObj},module.exports.default=module.exports,module.exports.__esModule=!0},{"@babel/runtime/helpers/typeof":71}],69:[function(require,module,exports){var defineProperty=require("./defineProperty.js");function ownKeys(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(object);enumerableOnly&&(symbols=symbols.filter((function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable}))),keys.push.apply(keys,symbols)}return keys}module.exports=function(target){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?ownKeys(Object(source),!0).forEach((function(key){defineProperty(target,key,source[key])})):Object.getOwnPropertyDescriptors?Object.defineProperties(target,Object.getOwnPropertyDescriptors(source)):ownKeys(Object(source)).forEach((function(key){Object.defineProperty(target,key,Object.getOwnPropertyDescriptor(source,key))}))}return target},module.exports.default=module.exports,module.exports.__esModule=!0},{"./defineProperty.js":65}],70:[function(require,module,exports){module.exports=function(source,excluded){if(null==source)return{};var key,i,target={},sourceKeys=Object.keys(source);for(i=0;i<sourceKeys.length;i++)key=sourceKeys[i],excluded.indexOf(key)>=0||(target[key]=source[key]);return target},module.exports.default=module.exports,module.exports.__esModule=!0},{}],71:[function(require,module,exports){function _typeof(obj){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?(module.exports=_typeof=function(obj){return typeof obj},module.exports.default=module.exports,module.exports.__esModule=!0):(module.exports=_typeof=function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj},module.exports.default=module.exports,module.exports.__esModule=!0),_typeof(obj)}module.exports=_typeof,module.exports.default=module.exports,module.exports.__esModule=!0},{}],72:[function(require,module,exports){module.exports=require("./lib/axios")},{"./lib/axios":74}],73:[function(require,module,exports){"use strict";var utils=require("./../utils"),settle=require("./../core/settle"),cookies=require("./../helpers/cookies"),buildURL=require("./../helpers/buildURL"),buildFullPath=require("../core/buildFullPath"),parseHeaders=require("./../helpers/parseHeaders"),isURLSameOrigin=require("./../helpers/isURLSameOrigin"),createError=require("../core/createError");module.exports=function(config){return new Promise((function(resolve,reject){var requestData=config.data,requestHeaders=config.headers,responseType=config.responseType;utils.isFormData(requestData)&&delete requestHeaders["Content-Type"];var request=new XMLHttpRequest;if(config.auth){var username=config.auth.username||"",password=config.auth.password?unescape(encodeURIComponent(config.auth.password)):"";requestHeaders.Authorization="Basic "+btoa(username+":"+password)}var fullPath=buildFullPath(config.baseURL,config.url);function onloadend(){if(request){var responseHeaders="getAllResponseHeaders"in request?parseHeaders(request.getAllResponseHeaders()):null,response={data:responseType&&"text"!==responseType&&"json"!==responseType?request.response:request.responseText,status:request.status,statusText:request.statusText,headers:responseHeaders,config:config,request:request};settle(resolve,reject,response),request=null}}if(request.open(config.method.toUpperCase(),buildURL(fullPath,config.params,config.paramsSerializer),!0),request.timeout=config.timeout,"onloadend"in request?request.onloadend=onloadend:request.onreadystatechange=function(){request&&4===request.readyState&&(0!==request.status||request.responseURL&&0===request.responseURL.indexOf("file:"))&&setTimeout(onloadend)},request.onabort=function(){request&&(reject(createError("Request aborted",config,"ECONNABORTED",request)),request=null)},request.onerror=function(){reject(createError("Network Error",config,null,request)),request=null},request.ontimeout=function(){var timeoutErrorMessage="timeout of "+config.timeout+"ms exceeded";config.timeoutErrorMessage&&(timeoutErrorMessage=config.timeoutErrorMessage),reject(createError(timeoutErrorMessage,config,config.transitional&&config.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",request)),request=null},utils.isStandardBrowserEnv()){var xsrfValue=(config.withCredentials||isURLSameOrigin(fullPath))&&config.xsrfCookieName?cookies.read(config.xsrfCookieName):void 0;xsrfValue&&(requestHeaders[config.xsrfHeaderName]=xsrfValue)}"setRequestHeader"in request&&utils.forEach(requestHeaders,(function(val,key){void 0===requestData&&"content-type"===key.toLowerCase()?delete requestHeaders[key]:request.setRequestHeader(key,val)})),utils.isUndefined(config.withCredentials)||(request.withCredentials=!!config.withCredentials),responseType&&"json"!==responseType&&(request.responseType=config.responseType),"function"==typeof config.onDownloadProgress&&request.addEventListener("progress",config.onDownloadProgress),"function"==typeof config.onUploadProgress&&request.upload&&request.upload.addEventListener("progress",config.onUploadProgress),config.cancelToken&&config.cancelToken.promise.then((function(cancel){request&&(request.abort(),reject(cancel),request=null)})),requestData||(requestData=null),request.send(requestData)}))}},{"../core/buildFullPath":80,"../core/createError":81,"./../core/settle":85,"./../helpers/buildURL":89,"./../helpers/cookies":91,"./../helpers/isURLSameOrigin":94,"./../helpers/parseHeaders":96,"./../utils":99}],74:[function(require,module,exports){"use strict";var utils=require("./utils"),bind=require("./helpers/bind"),Axios=require("./core/Axios"),mergeConfig=require("./core/mergeConfig");function createInstance(defaultConfig){var context=new Axios(defaultConfig),instance=bind(Axios.prototype.request,context);return utils.extend(instance,Axios.prototype,context),utils.extend(instance,context),instance}var axios=createInstance(require("./defaults"));axios.Axios=Axios,axios.create=function(instanceConfig){return createInstance(mergeConfig(axios.defaults,instanceConfig))},axios.Cancel=require("./cancel/Cancel"),axios.CancelToken=require("./cancel/CancelToken"),axios.isCancel=require("./cancel/isCancel"),axios.all=function(promises){return Promise.all(promises)},axios.spread=require("./helpers/spread"),axios.isAxiosError=require("./helpers/isAxiosError"),module.exports=axios,module.exports.default=axios},{"./cancel/Cancel":75,"./cancel/CancelToken":76,"./cancel/isCancel":77,"./core/Axios":78,"./core/mergeConfig":84,"./defaults":87,"./helpers/bind":88,"./helpers/isAxiosError":93,"./helpers/spread":97,"./utils":99}],75:[function(require,module,exports){"use strict";function Cancel(message){this.message=message}Cancel.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},Cancel.prototype.__CANCEL__=!0,module.exports=Cancel},{}],76:[function(require,module,exports){"use strict";var Cancel=require("./Cancel");function CancelToken(executor){if("function"!=typeof executor)throw new TypeError("executor must be a function.");var resolvePromise;this.promise=new Promise((function(resolve){resolvePromise=resolve}));var token=this;executor((function(message){token.reason||(token.reason=new Cancel(message),resolvePromise(token.reason))}))}CancelToken.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},CancelToken.source=function(){var cancel;return{token:new CancelToken((function(c){cancel=c})),cancel:cancel}},module.exports=CancelToken},{"./Cancel":75}],77:[function(require,module,exports){"use strict";module.exports=function(value){return!(!value||!value.__CANCEL__)}},{}],78:[function(require,module,exports){"use strict";var utils=require("./../utils"),buildURL=require("../helpers/buildURL"),InterceptorManager=require("./InterceptorManager"),dispatchRequest=require("./dispatchRequest"),mergeConfig=require("./mergeConfig"),validator=require("../helpers/validator"),validators=validator.validators;function Axios(instanceConfig){this.defaults=instanceConfig,this.interceptors={request:new InterceptorManager,response:new InterceptorManager}}Axios.prototype.request=function(config){"string"==typeof config?(config=arguments[1]||{}).url=arguments[0]:config=config||{},(config=mergeConfig(this.defaults,config)).method?config.method=config.method.toLowerCase():this.defaults.method?config.method=this.defaults.method.toLowerCase():config.method="get";var transitional=config.transitional;void 0!==transitional&&validator.assertOptions(transitional,{silentJSONParsing:validators.transitional(validators.boolean,"1.0.0"),forcedJSONParsing:validators.transitional(validators.boolean,"1.0.0"),clarifyTimeoutError:validators.transitional(validators.boolean,"1.0.0")},!1);var requestInterceptorChain=[],synchronousRequestInterceptors=!0;this.interceptors.request.forEach((function(interceptor){"function"==typeof interceptor.runWhen&&!1===interceptor.runWhen(config)||(synchronousRequestInterceptors=synchronousRequestInterceptors&&interceptor.synchronous,requestInterceptorChain.unshift(interceptor.fulfilled,interceptor.rejected))}));var promise,responseInterceptorChain=[];if(this.interceptors.response.forEach((function(interceptor){responseInterceptorChain.push(interceptor.fulfilled,interceptor.rejected)})),!synchronousRequestInterceptors){var chain=[dispatchRequest,void 0];for(Array.prototype.unshift.apply(chain,requestInterceptorChain),chain=chain.concat(responseInterceptorChain),promise=Promise.resolve(config);chain.length;)promise=promise.then(chain.shift(),chain.shift());return promise}for(var newConfig=config;requestInterceptorChain.length;){var onFulfilled=requestInterceptorChain.shift(),onRejected=requestInterceptorChain.shift();try{newConfig=onFulfilled(newConfig)}catch(error){onRejected(error);break}}try{promise=dispatchRequest(newConfig)}catch(error){return Promise.reject(error)}for(;responseInterceptorChain.length;)promise=promise.then(responseInterceptorChain.shift(),responseInterceptorChain.shift());return promise},Axios.prototype.getUri=function(config){return config=mergeConfig(this.defaults,config),buildURL(config.url,config.params,config.paramsSerializer).replace(/^\?/,"")},utils.forEach(["delete","get","head","options"],(function(method){Axios.prototype[method]=function(url,config){return this.request(mergeConfig(config||{},{method:method,url:url,data:(config||{}).data}))}})),utils.forEach(["post","put","patch"],(function(method){Axios.prototype[method]=function(url,data,config){return this.request(mergeConfig(config||{},{method:method,url:url,data:data}))}})),module.exports=Axios},{"../helpers/buildURL":89,"../helpers/validator":98,"./../utils":99,"./InterceptorManager":79,"./dispatchRequest":82,"./mergeConfig":84}],79:[function(require,module,exports){"use strict";var utils=require("./../utils");function InterceptorManager(){this.handlers=[]}InterceptorManager.prototype.use=function(fulfilled,rejected,options){return this.handlers.push({fulfilled:fulfilled,rejected:rejected,synchronous:!!options&&options.synchronous,runWhen:options?options.runWhen:null}),this.handlers.length-1},InterceptorManager.prototype.eject=function(id){this.handlers[id]&&(this.handlers[id]=null)},InterceptorManager.prototype.forEach=function(fn){utils.forEach(this.handlers,(function(h){null!==h&&fn(h)}))},module.exports=InterceptorManager},{"./../utils":99}],80:[function(require,module,exports){"use strict";var isAbsoluteURL=require("../helpers/isAbsoluteURL"),combineURLs=require("../helpers/combineURLs");module.exports=function(baseURL,requestedURL){return baseURL&&!isAbsoluteURL(requestedURL)?combineURLs(baseURL,requestedURL):requestedURL}},{"../helpers/combineURLs":90,"../helpers/isAbsoluteURL":92}],81:[function(require,module,exports){"use strict";var enhanceError=require("./enhanceError");module.exports=function(message,config,code,request,response){var error=new Error(message);return enhanceError(error,config,code,request,response)}},{"./enhanceError":83}],82:[function(require,module,exports){"use strict";var utils=require("./../utils"),transformData=require("./transformData"),isCancel=require("../cancel/isCancel"),defaults=require("../defaults");function throwIfCancellationRequested(config){config.cancelToken&&config.cancelToken.throwIfRequested()}module.exports=function(config){return throwIfCancellationRequested(config),config.headers=config.headers||{},config.data=transformData.call(config,config.data,config.headers,config.transformRequest),config.headers=utils.merge(config.headers.common||{},config.headers[config.method]||{},config.headers),utils.forEach(["delete","get","head","post","put","patch","common"],(function(method){delete config.headers[method]})),(config.adapter||defaults.adapter)(config).then((function(response){return throwIfCancellationRequested(config),response.data=transformData.call(config,response.data,response.headers,config.transformResponse),response}),(function(reason){return isCancel(reason)||(throwIfCancellationRequested(config),reason&&reason.response&&(reason.response.data=transformData.call(config,reason.response.data,reason.response.headers,config.transformResponse))),Promise.reject(reason)}))}},{"../cancel/isCancel":77,"../defaults":87,"./../utils":99,"./transformData":86}],83:[function(require,module,exports){"use strict";module.exports=function(error,config,code,request,response){return error.config=config,code&&(error.code=code),error.request=request,error.response=response,error.isAxiosError=!0,error.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},error}},{}],84:[function(require,module,exports){"use strict";var utils=require("../utils");module.exports=function(config1,config2){config2=config2||{};var config={},valueFromConfig2Keys=["url","method","data"],mergeDeepPropertiesKeys=["headers","auth","proxy","params"],defaultToConfig2Keys=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],directMergeKeys=["validateStatus"];function getMergedValue(target,source){return utils.isPlainObject(target)&&utils.isPlainObject(source)?utils.merge(target,source):utils.isPlainObject(source)?utils.merge({},source):utils.isArray(source)?source.slice():source}function mergeDeepProperties(prop){utils.isUndefined(config2[prop])?utils.isUndefined(config1[prop])||(config[prop]=getMergedValue(void 0,config1[prop])):config[prop]=getMergedValue(config1[prop],config2[prop])}utils.forEach(valueFromConfig2Keys,(function(prop){utils.isUndefined(config2[prop])||(config[prop]=getMergedValue(void 0,config2[prop]))})),utils.forEach(mergeDeepPropertiesKeys,mergeDeepProperties),utils.forEach(defaultToConfig2Keys,(function(prop){utils.isUndefined(config2[prop])?utils.isUndefined(config1[prop])||(config[prop]=getMergedValue(void 0,config1[prop])):config[prop]=getMergedValue(void 0,config2[prop])})),utils.forEach(directMergeKeys,(function(prop){prop in config2?config[prop]=getMergedValue(config1[prop],config2[prop]):prop in config1&&(config[prop]=getMergedValue(void 0,config1[prop]))}));var axiosKeys=valueFromConfig2Keys.concat(mergeDeepPropertiesKeys).concat(defaultToConfig2Keys).concat(directMergeKeys),otherKeys=Object.keys(config1).concat(Object.keys(config2)).filter((function(key){return-1===axiosKeys.indexOf(key)}));return utils.forEach(otherKeys,mergeDeepProperties),config}},{"../utils":99}],85:[function(require,module,exports){"use strict";var createError=require("./createError");module.exports=function(resolve,reject,response){var validateStatus=response.config.validateStatus;response.status&&validateStatus&&!validateStatus(response.status)?reject(createError("Request failed with status code "+response.status,response.config,null,response.request,response)):resolve(response)}},{"./createError":81}],86:[function(require,module,exports){"use strict";var utils=require("./../utils"),defaults=require("./../defaults");module.exports=function(data,headers,fns){var context=this||defaults;return utils.forEach(fns,(function(fn){data=fn.call(context,data,headers)})),data}},{"./../defaults":87,"./../utils":99}],87:[function(require,module,exports){(function(process){(function(){"use strict";var utils=require("./utils"),normalizeHeaderName=require("./helpers/normalizeHeaderName"),enhanceError=require("./core/enhanceError"),DEFAULT_CONTENT_TYPE={"Content-Type":"application/x-www-form-urlencoded"};function setContentTypeIfUnset(headers,value){!utils.isUndefined(headers)&&utils.isUndefined(headers["Content-Type"])&&(headers["Content-Type"]=value)}var adapter,defaults={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:("undefined"!=typeof XMLHttpRequest?adapter=require("./adapters/xhr"):void 0!==process&&"[object process]"===Object.prototype.toString.call(process)&&(adapter=require("./adapters/http")),adapter),transformRequest:[function(data,headers){return normalizeHeaderName(headers,"Accept"),normalizeHeaderName(headers,"Content-Type"),utils.isFormData(data)||utils.isArrayBuffer(data)||utils.isBuffer(data)||utils.isStream(data)||utils.isFile(data)||utils.isBlob(data)?data:utils.isArrayBufferView(data)?data.buffer:utils.isURLSearchParams(data)?(setContentTypeIfUnset(headers,"application/x-www-form-urlencoded;charset=utf-8"),data.toString()):utils.isObject(data)||headers&&"application/json"===headers["Content-Type"]?(setContentTypeIfUnset(headers,"application/json"),function(rawValue,parser,encoder){if(utils.isString(rawValue))try{return(parser||JSON.parse)(rawValue),utils.trim(rawValue)}catch(e){if("SyntaxError"!==e.name)throw e}return(encoder||JSON.stringify)(rawValue)}(data)):data}],transformResponse:[function(data){var transitional=this.transitional,silentJSONParsing=transitional&&transitional.silentJSONParsing,forcedJSONParsing=transitional&&transitional.forcedJSONParsing,strictJSONParsing=!silentJSONParsing&&"json"===this.responseType;if(strictJSONParsing||forcedJSONParsing&&utils.isString(data)&&data.length)try{return JSON.parse(data)}catch(e){if(strictJSONParsing){if("SyntaxError"===e.name)throw enhanceError(e,this,"E_JSON_PARSE");throw e}}return data}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(status){return status>=200&&status<300}};defaults.headers={common:{Accept:"application/json, text/plain, */*"}},utils.forEach(["delete","get","head"],(function(method){defaults.headers[method]={}})),utils.forEach(["post","put","patch"],(function(method){defaults.headers[method]=utils.merge(DEFAULT_CONTENT_TYPE)})),module.exports=defaults}).call(this)}).call(this,require("_process"))},{"./adapters/http":73,"./adapters/xhr":73,"./core/enhanceError":83,"./helpers/normalizeHeaderName":95,"./utils":99,_process:104}],88:[function(require,module,exports){"use strict";module.exports=function(fn,thisArg){return function(){for(var args=new Array(arguments.length),i=0;i<args.length;i++)args[i]=arguments[i];return fn.apply(thisArg,args)}}},{}],89:[function(require,module,exports){"use strict";var utils=require("./../utils");function encode(val){return encodeURIComponent(val).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}module.exports=function(url,params,paramsSerializer){if(!params)return url;var serializedParams;if(paramsSerializer)serializedParams=paramsSerializer(params);else if(utils.isURLSearchParams(params))serializedParams=params.toString();else{var parts=[];utils.forEach(params,(function(val,key){null!=val&&(utils.isArray(val)?key+="[]":val=[val],utils.forEach(val,(function(v){utils.isDate(v)?v=v.toISOString():utils.isObject(v)&&(v=JSON.stringify(v)),parts.push(encode(key)+"="+encode(v))})))})),serializedParams=parts.join("&")}if(serializedParams){var hashmarkIndex=url.indexOf("#");-1!==hashmarkIndex&&(url=url.slice(0,hashmarkIndex)),url+=(-1===url.indexOf("?")?"?":"&")+serializedParams}return url}},{"./../utils":99}],90:[function(require,module,exports){"use strict";module.exports=function(baseURL,relativeURL){return relativeURL?baseURL.replace(/\/+$/,"")+"/"+relativeURL.replace(/^\/+/,""):baseURL}},{}],91:[function(require,module,exports){"use strict";var utils=require("./../utils");module.exports=utils.isStandardBrowserEnv()?{write:function(name,value,expires,path,domain,secure){var cookie=[];cookie.push(name+"="+encodeURIComponent(value)),utils.isNumber(expires)&&cookie.push("expires="+new Date(expires).toGMTString()),utils.isString(path)&&cookie.push("path="+path),utils.isString(domain)&&cookie.push("domain="+domain),!0===secure&&cookie.push("secure"),document.cookie=cookie.join("; ")},read:function(name){var match=document.cookie.match(new RegExp("(^|;\\s*)("+name+")=([^;]*)"));return match?decodeURIComponent(match[3]):null},remove:function(name){this.write(name,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},{"./../utils":99}],92:[function(require,module,exports){"use strict";module.exports=function(url){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(url)}},{}],93:[function(require,module,exports){"use strict";module.exports=function(payload){return"object"==typeof payload&&!0===payload.isAxiosError}},{}],94:[function(require,module,exports){"use strict";var utils=require("./../utils");module.exports=utils.isStandardBrowserEnv()?function(){var originURL,msie=/(msie|trident)/i.test(navigator.userAgent),urlParsingNode=document.createElement("a");function resolveURL(url){var href=url;return msie&&(urlParsingNode.setAttribute("href",href),href=urlParsingNode.href),urlParsingNode.setAttribute("href",href),{href:urlParsingNode.href,protocol:urlParsingNode.protocol?urlParsingNode.protocol.replace(/:$/,""):"",host:urlParsingNode.host,search:urlParsingNode.search?urlParsingNode.search.replace(/^\?/,""):"",hash:urlParsingNode.hash?urlParsingNode.hash.replace(/^#/,""):"",hostname:urlParsingNode.hostname,port:urlParsingNode.port,pathname:"/"===urlParsingNode.pathname.charAt(0)?urlParsingNode.pathname:"/"+urlParsingNode.pathname}}return originURL=resolveURL(window.location.href),function(requestURL){var parsed=utils.isString(requestURL)?resolveURL(requestURL):requestURL;return parsed.protocol===originURL.protocol&&parsed.host===originURL.host}}():function(){return!0}},{"./../utils":99}],95:[function(require,module,exports){"use strict";var utils=require("../utils");module.exports=function(headers,normalizedName){utils.forEach(headers,(function(value,name){name!==normalizedName&&name.toUpperCase()===normalizedName.toUpperCase()&&(headers[normalizedName]=value,delete headers[name])}))}},{"../utils":99}],96:[function(require,module,exports){"use strict";var utils=require("./../utils"),ignoreDuplicateOf=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];module.exports=function(headers){var key,val,i,parsed={};return headers?(utils.forEach(headers.split("\n"),(function(line){if(i=line.indexOf(":"),key=utils.trim(line.substr(0,i)).toLowerCase(),val=utils.trim(line.substr(i+1)),key){if(parsed[key]&&ignoreDuplicateOf.indexOf(key)>=0)return;parsed[key]="set-cookie"===key?(parsed[key]?parsed[key]:[]).concat([val]):parsed[key]?parsed[key]+", "+val:val}})),parsed):parsed}},{"./../utils":99}],97:[function(require,module,exports){"use strict";module.exports=function(callback){return function(arr){return callback.apply(null,arr)}}},{}],98:[function(require,module,exports){"use strict";var pkg=require("./../../package.json"),validators={};["object","boolean","number","function","string","symbol"].forEach((function(type,i){validators[type]=function(thing){return typeof thing===type||"a"+(i<1?"n ":" ")+type}}));var deprecatedWarnings={},currentVerArr=pkg.version.split(".");function isOlderVersion(version,thanVersion){for(var pkgVersionArr=thanVersion?thanVersion.split("."):currentVerArr,destVer=version.split("."),i=0;i<3;i++){if(pkgVersionArr[i]>destVer[i])return!0;if(pkgVersionArr[i]<destVer[i])return!1}return!1}validators.transitional=function(validator,version,message){var isDeprecated=version&&isOlderVersion(version);function formatMessage(opt,desc){return"[Axios v"+pkg.version+"] Transitional option '"+opt+"'"+desc+(message?". "+message:"")}return function(value,opt,opts){if(!1===validator)throw new Error(formatMessage(opt," has been removed in "+version));return isDeprecated&&!deprecatedWarnings[opt]&&(deprecatedWarnings[opt]=!0,console.warn(formatMessage(opt," has been deprecated since v"+version+" and will be removed in the near future"))),!validator||validator(value,opt,opts)}},module.exports={isOlderVersion:isOlderVersion,assertOptions:function(options,schema,allowUnknown){if("object"!=typeof options)throw new TypeError("options must be an object");for(var keys=Object.keys(options),i=keys.length;i-- >0;){var opt=keys[i],validator=schema[opt];if(validator){var value=options[opt],result=void 0===value||validator(value,opt,options);if(!0!==result)throw new TypeError("option "+opt+" must be "+result)}else if(!0!==allowUnknown)throw Error("Unknown option "+opt)}},validators:validators}},{"./../../package.json":100}],99:[function(require,module,exports){"use strict";var bind=require("./helpers/bind"),toString=Object.prototype.toString;function isArray(val){return"[object Array]"===toString.call(val)}function isUndefined(val){return void 0===val}function isObject(val){return null!==val&&"object"==typeof val}function isPlainObject(val){if("[object Object]"!==toString.call(val))return!1;var prototype=Object.getPrototypeOf(val);return null===prototype||prototype===Object.prototype}function isFunction(val){return"[object Function]"===toString.call(val)}function forEach(obj,fn){if(null!=obj)if("object"!=typeof obj&&(obj=[obj]),isArray(obj))for(var i=0,l=obj.length;i<l;i++)fn.call(null,obj[i],i,obj);else for(var key in obj)Object.prototype.hasOwnProperty.call(obj,key)&&fn.call(null,obj[key],key,obj)}module.exports={isArray:isArray,isArrayBuffer:function(val){return"[object ArrayBuffer]"===toString.call(val)},isBuffer:function(val){return null!==val&&!isUndefined(val)&&null!==val.constructor&&!isUndefined(val.constructor)&&"function"==typeof val.constructor.isBuffer&&val.constructor.isBuffer(val)},isFormData:function(val){return"undefined"!=typeof FormData&&val instanceof FormData},isArrayBufferView:function(val){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(val):val&&val.buffer&&val.buffer instanceof ArrayBuffer},isString:function(val){return"string"==typeof val},isNumber:function(val){return"number"==typeof val},isObject:isObject,isPlainObject:isPlainObject,isUndefined:isUndefined,isDate:function(val){return"[object Date]"===toString.call(val)},isFile:function(val){return"[object File]"===toString.call(val)},isBlob:function(val){return"[object Blob]"===toString.call(val)},isFunction:isFunction,isStream:function(val){return isObject(val)&&isFunction(val.pipe)},isURLSearchParams:function(val){return"undefined"!=typeof URLSearchParams&&val instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:forEach,merge:function merge(){var result={};function assignValue(val,key){isPlainObject(result[key])&&isPlainObject(val)?result[key]=merge(result[key],val):isPlainObject(val)?result[key]=merge({},val):isArray(val)?result[key]=val.slice():result[key]=val}for(var i=0,l=arguments.length;i<l;i++)forEach(arguments[i],assignValue);return result},extend:function(a,b,thisArg){return forEach(b,(function(val,key){a[key]=thisArg&&"function"==typeof val?bind(val,thisArg):val})),a},trim:function(str){return str.trim?str.trim():str.replace(/^\s+|\s+$/g,"")},stripBOM:function(content){return 65279===content.charCodeAt(0)&&(content=content.slice(1)),content}}},{"./helpers/bind":88}],100:[function(require,module,exports){module.exports={_from:"axios@^0.21.1",_id:"axios@0.21.4",_inBundle:!1,_integrity:"sha512-ut5vewkiu8jjGBdqpM44XxjuCjq9LAKeHVmoVfHVzy8eHgxxq8SbAVQNovDA8mVi05kP0Ea/n/UzcSHcTJQfNg==",_location:"/axios",_phantomChildren:{},_requested:{type:"range",registry:!0,raw:"axios@^0.21.1",name:"axios",escapedName:"axios",rawSpec:"^0.21.1",saveSpec:null,fetchSpec:"^0.21.1"},_requiredBy:["#DEV:/"],_resolved:"https://registry.npmjs.org/axios/-/axios-0.21.4.tgz",_shasum:"c67b90dc0568e5c1cf2b0b858c43ba28e2eda575",_spec:"axios@^0.21.1",_where:"/intel/git/livehelperchat_mysql/lhc_web",author:{name:"Matt Zabriskie"},browser:{"./lib/adapters/http.js":"./lib/adapters/xhr.js"},bugs:{url:"https://github.com/axios/axios/issues"},bundleDependencies:!1,bundlesize:[{path:"./dist/axios.min.js",threshold:"5kB"}],dependencies:{"follow-redirects":"^1.14.0"},deprecated:!1,description:"Promise based HTTP client for the browser and node.js",devDependencies:{coveralls:"^3.0.0","es6-promise":"^4.2.4",grunt:"^1.3.0","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^23.0.0","grunt-karma":"^4.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.19","grunt-webpack":"^4.0.2","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1",karma:"^6.3.2","karma-chrome-launcher":"^3.1.0","karma-firefox-launcher":"^2.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^4.3.6","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.8","karma-webpack":"^4.0.2","load-grunt-tasks":"^3.5.2",minimist:"^1.2.0",mocha:"^8.2.1",sinon:"^4.5.0","terser-webpack-plugin":"^4.2.3",typescript:"^4.0.5","url-search-params":"^0.10.0",webpack:"^4.44.2","webpack-dev-server":"^3.11.0"},homepage:"https://axios-http.com",jsdelivr:"dist/axios.min.js",keywords:["xhr","http","ajax","promise","node"],license:"MIT",main:"index.js",name:"axios",repository:{type:"git",url:"git+https://github.com/axios/axios.git"},scripts:{build:"NODE_ENV=production grunt build",coveralls:"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js",examples:"node ./examples/server.js",fix:"eslint --fix lib/**/*.js",postversion:"git push && git push --tags",preversion:"npm test",start:"node ./sandbox/server.js",test:"grunt test",version:"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json"},typings:"./index.d.ts",unpkg:"dist/axios.min.js",version:"0.21.4"}},{}],101:[function(require,module,exports){"use strict";var reactIs=require("react-is"),REACT_STATICS={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},KNOWN_STATICS={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},MEMO_STATICS={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},TYPE_STATICS={};function getStatics(component){return reactIs.isMemo(component)?MEMO_STATICS:TYPE_STATICS[component.$$typeof]||REACT_STATICS}TYPE_STATICS[reactIs.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},TYPE_STATICS[reactIs.Memo]=MEMO_STATICS;var defineProperty=Object.defineProperty,getOwnPropertyNames=Object.getOwnPropertyNames,getOwnPropertySymbols=Object.getOwnPropertySymbols,getOwnPropertyDescriptor=Object.getOwnPropertyDescriptor,getPrototypeOf=Object.getPrototypeOf,objectPrototype=Object.prototype;module.exports=function hoistNonReactStatics(targetComponent,sourceComponent,blacklist){if("string"!=typeof sourceComponent){if(objectPrototype){var inheritedComponent=getPrototypeOf(sourceComponent);inheritedComponent&&inheritedComponent!==objectPrototype&&hoistNonReactStatics(targetComponent,inheritedComponent,blacklist)}var keys=getOwnPropertyNames(sourceComponent);getOwnPropertySymbols&&(keys=keys.concat(getOwnPropertySymbols(sourceComponent)));for(var targetStatics=getStatics(targetComponent),sourceStatics=getStatics(sourceComponent),i=0;i<keys.length;++i){var key=keys[i];if(!(KNOWN_STATICS[key]||blacklist&&blacklist[key]||sourceStatics&&sourceStatics[key]||targetStatics&&targetStatics[key])){var descriptor=getOwnPropertyDescriptor(sourceComponent,key);try{defineProperty(targetComponent,key,descriptor)}catch(e){}}}}return targetComponent}},{"react-is":115}],102:[function(require,module,exports){!function(global,factory){"object"==typeof exports&&void 0!==module?module.exports=factory():"function"==typeof define&&define.amd?define(factory):global.Immutable=factory()}(this,(function(){"use strict";var SLICE$0=Array.prototype.slice;function createClass(ctor,superClass){superClass&&(ctor.prototype=Object.create(superClass.prototype)),ctor.prototype.constructor=ctor}function Iterable(value){return isIterable(value)?value:Seq(value)}function KeyedIterable(value){return isKeyed(value)?value:KeyedSeq(value)}function IndexedIterable(value){return isIndexed(value)?value:IndexedSeq(value)}function SetIterable(value){return isIterable(value)&&!isAssociative(value)?value:SetSeq(value)}function isIterable(maybeIterable){return!(!maybeIterable||!maybeIterable[IS_ITERABLE_SENTINEL])}function isKeyed(maybeKeyed){return!(!maybeKeyed||!maybeKeyed[IS_KEYED_SENTINEL])}function isIndexed(maybeIndexed){return!(!maybeIndexed||!maybeIndexed[IS_INDEXED_SENTINEL])}function isAssociative(maybeAssociative){return isKeyed(maybeAssociative)||isIndexed(maybeAssociative)}function isOrdered(maybeOrdered){return!(!maybeOrdered||!maybeOrdered[IS_ORDERED_SENTINEL])}createClass(KeyedIterable,Iterable),createClass(IndexedIterable,Iterable),createClass(SetIterable,Iterable),Iterable.isIterable=isIterable,Iterable.isKeyed=isKeyed,Iterable.isIndexed=isIndexed,Iterable.isAssociative=isAssociative,Iterable.isOrdered=isOrdered,Iterable.Keyed=KeyedIterable,Iterable.Indexed=IndexedIterable,Iterable.Set=SetIterable;var IS_ITERABLE_SENTINEL="@@__IMMUTABLE_ITERABLE__@@",IS_KEYED_SENTINEL="@@__IMMUTABLE_KEYED__@@",IS_INDEXED_SENTINEL="@@__IMMUTABLE_INDEXED__@@",IS_ORDERED_SENTINEL="@@__IMMUTABLE_ORDERED__@@",NOT_SET={},CHANGE_LENGTH={value:!1},DID_ALTER={value:!1};function MakeRef(ref){return ref.value=!1,ref}function SetRef(ref){ref&&(ref.value=!0)}function OwnerID(){}function arrCopy(arr,offset){offset=offset||0;for(var len=Math.max(0,arr.length-offset),newArr=new Array(len),ii=0;ii<len;ii++)newArr[ii]=arr[ii+offset];return newArr}function ensureSize(iter){return void 0===iter.size&&(iter.size=iter.__iterate(returnTrue)),iter.size}function wrapIndex(iter,index){if("number"!=typeof index){var uint32Index=index>>>0;if(""+uint32Index!==index||4294967295===uint32Index)return NaN;index=uint32Index}return index<0?ensureSize(iter)+index:index}function returnTrue(){return!0}function wholeSlice(begin,end,size){return(0===begin||void 0!==size&&begin<=-size)&&(void 0===end||void 0!==size&&end>=size)}function resolveBegin(begin,size){return resolveIndex(begin,size,0)}function resolveEnd(end,size){return resolveIndex(end,size,size)}function resolveIndex(index,size,defaultIndex){return void 0===index?defaultIndex:index<0?Math.max(0,size+index):void 0===size?index:Math.min(size,index)}var REAL_ITERATOR_SYMBOL="function"==typeof Symbol&&Symbol.iterator,ITERATOR_SYMBOL=REAL_ITERATOR_SYMBOL||"@@iterator";function Iterator(next){this.next=next}function iteratorValue(type,k,v,iteratorResult){var value=0===type?k:1===type?v:[k,v];return iteratorResult?iteratorResult.value=value:iteratorResult={value:value,done:!1},iteratorResult}function iteratorDone(){return{value:void 0,done:!0}}function hasIterator(maybeIterable){return!!getIteratorFn(maybeIterable)}function isIterator(maybeIterator){return maybeIterator&&"function"==typeof maybeIterator.next}function getIterator(iterable){var iteratorFn=getIteratorFn(iterable);return iteratorFn&&iteratorFn.call(iterable)}function getIteratorFn(iterable){var iteratorFn=iterable&&(REAL_ITERATOR_SYMBOL&&iterable[REAL_ITERATOR_SYMBOL]||iterable["@@iterator"]);if("function"==typeof iteratorFn)return iteratorFn}function isArrayLike(value){return value&&"number"==typeof value.length}function Seq(value){return null==value?emptySequence():isIterable(value)?value.toSeq():function(value){var seq=maybeIndexedSeqFromValue(value)||"object"==typeof value&&new ObjectSeq(value);if(!seq)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+value);return seq}(value)}function KeyedSeq(value){return null==value?emptySequence().toKeyedSeq():isIterable(value)?isKeyed(value)?value.toSeq():value.fromEntrySeq():keyedSeqFromValue(value)}function IndexedSeq(value){return null==value?emptySequence():isIterable(value)?isKeyed(value)?value.entrySeq():value.toIndexedSeq():indexedSeqFromValue(value)}function SetSeq(value){return(null==value?emptySequence():isIterable(value)?isKeyed(value)?value.entrySeq():value:indexedSeqFromValue(value)).toSetSeq()}Iterator.prototype.toString=function(){return"[Iterator]"},Iterator.KEYS=0,Iterator.VALUES=1,Iterator.ENTRIES=2,Iterator.prototype.inspect=Iterator.prototype.toSource=function(){return this.toString()},Iterator.prototype[ITERATOR_SYMBOL]=function(){return this},createClass(Seq,Iterable),Seq.of=function(){return Seq(arguments)},Seq.prototype.toSeq=function(){return this},Seq.prototype.toString=function(){return this.__toString("Seq {","}")},Seq.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},Seq.prototype.__iterate=function(fn,reverse){return seqIterate(this,fn,reverse,!0)},Seq.prototype.__iterator=function(type,reverse){return seqIterator(this,type,reverse,!0)},createClass(KeyedSeq,Seq),KeyedSeq.prototype.toKeyedSeq=function(){return this},createClass(IndexedSeq,Seq),IndexedSeq.of=function(){return IndexedSeq(arguments)},IndexedSeq.prototype.toIndexedSeq=function(){return this},IndexedSeq.prototype.toString=function(){return this.__toString("Seq [","]")},IndexedSeq.prototype.__iterate=function(fn,reverse){return seqIterate(this,fn,reverse,!1)},IndexedSeq.prototype.__iterator=function(type,reverse){return seqIterator(this,type,reverse,!1)},createClass(SetSeq,Seq),SetSeq.of=function(){return SetSeq(arguments)},SetSeq.prototype.toSetSeq=function(){return this},Seq.isSeq=isSeq,Seq.Keyed=KeyedSeq,Seq.Set=SetSeq,Seq.Indexed=IndexedSeq;var EMPTY_SEQ,EMPTY_REPEAT,EMPTY_RANGE;function ArraySeq(array){this._array=array,this.size=array.length}function ObjectSeq(object){var keys=Object.keys(object);this._object=object,this._keys=keys,this.size=keys.length}function IterableSeq(iterable){this._iterable=iterable,this.size=iterable.length||iterable.size}function IteratorSeq(iterator){this._iterator=iterator,this._iteratorCache=[]}function isSeq(maybeSeq){return!(!maybeSeq||!maybeSeq["@@__IMMUTABLE_SEQ__@@"])}function emptySequence(){return EMPTY_SEQ||(EMPTY_SEQ=new ArraySeq([]))}function keyedSeqFromValue(value){var seq=Array.isArray(value)?new ArraySeq(value).fromEntrySeq():isIterator(value)?new IteratorSeq(value).fromEntrySeq():hasIterator(value)?new IterableSeq(value).fromEntrySeq():"object"==typeof value?new ObjectSeq(value):void 0;if(!seq)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+value);return seq}function indexedSeqFromValue(value){var seq=maybeIndexedSeqFromValue(value);if(!seq)throw new TypeError("Expected Array or iterable object of values: "+value);return seq}function maybeIndexedSeqFromValue(value){return isArrayLike(value)?new ArraySeq(value):isIterator(value)?new IteratorSeq(value):hasIterator(value)?new IterableSeq(value):void 0}function seqIterate(seq,fn,reverse,useKeys){var cache=seq._cache;if(cache){for(var maxIndex=cache.length-1,ii=0;ii<=maxIndex;ii++){var entry=cache[reverse?maxIndex-ii:ii];if(!1===fn(entry[1],useKeys?entry[0]:ii,seq))return ii+1}return ii}return seq.__iterateUncached(fn,reverse)}function seqIterator(seq,type,reverse,useKeys){var cache=seq._cache;if(cache){var maxIndex=cache.length-1,ii=0;return new Iterator((function(){var entry=cache[reverse?maxIndex-ii:ii];return ii++>maxIndex?{value:void 0,done:!0}:iteratorValue(type,useKeys?entry[0]:ii-1,entry[1])}))}return seq.__iteratorUncached(type,reverse)}function fromJS(json,converter){return converter?function fromJSWith(converter,json,key,parentJSON){if(Array.isArray(json))return converter.call(parentJSON,key,IndexedSeq(json).map((function(v,k){return fromJSWith(converter,v,k,json)})));if(isPlainObj(json))return converter.call(parentJSON,key,KeyedSeq(json).map((function(v,k){return fromJSWith(converter,v,k,json)})));return json}(converter,json,"",{"":json}):fromJSDefault(json)}function fromJSDefault(json){return Array.isArray(json)?IndexedSeq(json).map(fromJSDefault).toList():isPlainObj(json)?KeyedSeq(json).map(fromJSDefault).toMap():json}function isPlainObj(value){return value&&(value.constructor===Object||void 0===value.constructor)}function is(valueA,valueB){if(valueA===valueB||valueA!=valueA&&valueB!=valueB)return!0;if(!valueA||!valueB)return!1;if("function"==typeof valueA.valueOf&&"function"==typeof valueB.valueOf){if((valueA=valueA.valueOf())===(valueB=valueB.valueOf())||valueA!=valueA&&valueB!=valueB)return!0;if(!valueA||!valueB)return!1}return!("function"!=typeof valueA.equals||"function"!=typeof valueB.equals||!valueA.equals(valueB))}function deepEqual(a,b){if(a===b)return!0;if(!isIterable(b)||void 0!==a.size&&void 0!==b.size&&a.size!==b.size||void 0!==a.__hash&&void 0!==b.__hash&&a.__hash!==b.__hash||isKeyed(a)!==isKeyed(b)||isIndexed(a)!==isIndexed(b)||isOrdered(a)!==isOrdered(b))return!1;if(0===a.size&&0===b.size)return!0;var notAssociative=!isAssociative(a);if(isOrdered(a)){var entries=a.entries();return b.every((function(v,k){var entry=entries.next().value;return entry&&is(entry[1],v)&&(notAssociative||is(entry[0],k))}))&&entries.next().done}var flipped=!1;if(void 0===a.size)if(void 0===b.size)"function"==typeof a.cacheResult&&a.cacheResult();else{flipped=!0;var _=a;a=b,b=_}var allEqual=!0,bSize=b.__iterate((function(v,k){if(notAssociative?!a.has(v):flipped?!is(v,a.get(k,NOT_SET)):!is(a.get(k,NOT_SET),v))return allEqual=!1,!1}));return allEqual&&a.size===bSize}function Repeat(value,times){if(!(this instanceof Repeat))return new Repeat(value,times);if(this._value=value,this.size=void 0===times?1/0:Math.max(0,times),0===this.size){if(EMPTY_REPEAT)return EMPTY_REPEAT;EMPTY_REPEAT=this}}function invariant(condition,error){if(!condition)throw new Error(error)}function Range(start,end,step){if(!(this instanceof Range))return new Range(start,end,step);if(invariant(0!==step,"Cannot step a Range by 0"),start=start||0,void 0===end&&(end=1/0),step=void 0===step?1:Math.abs(step),end<start&&(step=-step),this._start=start,this._end=end,this._step=step,this.size=Math.max(0,Math.ceil((end-start)/step-1)+1),0===this.size){if(EMPTY_RANGE)return EMPTY_RANGE;EMPTY_RANGE=this}}function Collection(){throw TypeError("Abstract")}function KeyedCollection(){}function IndexedCollection(){}function SetCollection(){}Seq.prototype["@@__IMMUTABLE_SEQ__@@"]=!0,createClass(ArraySeq,IndexedSeq),ArraySeq.prototype.get=function(index,notSetValue){return this.has(index)?this._array[wrapIndex(this,index)]:notSetValue},ArraySeq.prototype.__iterate=function(fn,reverse){for(var array=this._array,maxIndex=array.length-1,ii=0;ii<=maxIndex;ii++)if(!1===fn(array[reverse?maxIndex-ii:ii],ii,this))return ii+1;return ii},ArraySeq.prototype.__iterator=function(type,reverse){var array=this._array,maxIndex=array.length-1,ii=0;return new Iterator((function(){return ii>maxIndex?{value:void 0,done:!0}:iteratorValue(type,ii,array[reverse?maxIndex-ii++:ii++])}))},createClass(ObjectSeq,KeyedSeq),ObjectSeq.prototype.get=function(key,notSetValue){return void 0===notSetValue||this.has(key)?this._object[key]:notSetValue},ObjectSeq.prototype.has=function(key){return this._object.hasOwnProperty(key)},ObjectSeq.prototype.__iterate=function(fn,reverse){for(var object=this._object,keys=this._keys,maxIndex=keys.length-1,ii=0;ii<=maxIndex;ii++){var key=keys[reverse?maxIndex-ii:ii];if(!1===fn(object[key],key,this))return ii+1}return ii},ObjectSeq.prototype.__iterator=function(type,reverse){var object=this._object,keys=this._keys,maxIndex=keys.length-1,ii=0;return new Iterator((function(){var key=keys[reverse?maxIndex-ii:ii];return ii++>maxIndex?{value:void 0,done:!0}:iteratorValue(type,key,object[key])}))},ObjectSeq.prototype[IS_ORDERED_SENTINEL]=!0,createClass(IterableSeq,IndexedSeq),IterableSeq.prototype.__iterateUncached=function(fn,reverse){if(reverse)return this.cacheResult().__iterate(fn,reverse);var iterator=getIterator(this._iterable),iterations=0;if(isIterator(iterator))for(var step;!(step=iterator.next()).done&&!1!==fn(step.value,iterations++,this););return iterations},IterableSeq.prototype.__iteratorUncached=function(type,reverse){if(reverse)return this.cacheResult().__iterator(type,reverse);var iterator=getIterator(this._iterable);if(!isIterator(iterator))return new Iterator(iteratorDone);var iterations=0;return new Iterator((function(){var step=iterator.next();return step.done?step:iteratorValue(type,iterations++,step.value)}))},createClass(IteratorSeq,IndexedSeq),IteratorSeq.prototype.__iterateUncached=function(fn,reverse){if(reverse)return this.cacheResult().__iterate(fn,reverse);for(var step,iterator=this._iterator,cache=this._iteratorCache,iterations=0;iterations<cache.length;)if(!1===fn(cache[iterations],iterations++,this))return iterations;for(;!(step=iterator.next()).done;){var val=step.value;if(cache[iterations]=val,!1===fn(val,iterations++,this))break}return iterations},IteratorSeq.prototype.__iteratorUncached=function(type,reverse){if(reverse)return this.cacheResult().__iterator(type,reverse);var iterator=this._iterator,cache=this._iteratorCache,iterations=0;return new Iterator((function(){if(iterations>=cache.length){var step=iterator.next();if(step.done)return step;cache[iterations]=step.value}return iteratorValue(type,iterations,cache[iterations++])}))},createClass(Repeat,IndexedSeq),Repeat.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},Repeat.prototype.get=function(index,notSetValue){return this.has(index)?this._value:notSetValue},Repeat.prototype.includes=function(searchValue){return is(this._value,searchValue)},Repeat.prototype.slice=function(begin,end){var size=this.size;return wholeSlice(begin,end,size)?this:new Repeat(this._value,resolveEnd(end,size)-resolveBegin(begin,size))},Repeat.prototype.reverse=function(){return this},Repeat.prototype.indexOf=function(searchValue){return is(this._value,searchValue)?0:-1},Repeat.prototype.lastIndexOf=function(searchValue){return is(this._value,searchValue)?this.size:-1},Repeat.prototype.__iterate=function(fn,reverse){for(var ii=0;ii<this.size;ii++)if(!1===fn(this._value,ii,this))return ii+1;return ii},Repeat.prototype.__iterator=function(type,reverse){var this$0=this,ii=0;return new Iterator((function(){return ii<this$0.size?iteratorValue(type,ii++,this$0._value):{value:void 0,done:!0}}))},Repeat.prototype.equals=function(other){return other instanceof Repeat?is(this._value,other._value):deepEqual(other)},createClass(Range,IndexedSeq),Range.prototype.toString=function(){return 0===this.size?"Range []":"Range [ "+this._start+"..."+this._end+(1!==this._step?" by "+this._step:"")+" ]"},Range.prototype.get=function(index,notSetValue){return this.has(index)?this._start+wrapIndex(this,index)*this._step:notSetValue},Range.prototype.includes=function(searchValue){var possibleIndex=(searchValue-this._start)/this._step;return possibleIndex>=0&&possibleIndex<this.size&&possibleIndex===Math.floor(possibleIndex)},Range.prototype.slice=function(begin,end){return wholeSlice(begin,end,this.size)?this:(begin=resolveBegin(begin,this.size),(end=resolveEnd(end,this.size))<=begin?new Range(0,0):new Range(this.get(begin,this._end),this.get(end,this._end),this._step))},Range.prototype.indexOf=function(searchValue){var offsetValue=searchValue-this._start;if(offsetValue%this._step==0){var index=offsetValue/this._step;if(index>=0&&index<this.size)return index}return-1},Range.prototype.lastIndexOf=function(searchValue){return this.indexOf(searchValue)},Range.prototype.__iterate=function(fn,reverse){for(var maxIndex=this.size-1,step=this._step,value=reverse?this._start+maxIndex*step:this._start,ii=0;ii<=maxIndex;ii++){if(!1===fn(value,ii,this))return ii+1;value+=reverse?-step:step}return ii},Range.prototype.__iterator=function(type,reverse){var maxIndex=this.size-1,step=this._step,value=reverse?this._start+maxIndex*step:this._start,ii=0;return new Iterator((function(){var v=value;return value+=reverse?-step:step,ii>maxIndex?{value:void 0,done:!0}:iteratorValue(type,ii++,v)}))},Range.prototype.equals=function(other){return other instanceof Range?this._start===other._start&&this._end===other._end&&this._step===other._step:deepEqual(this,other)},createClass(Collection,Iterable),createClass(KeyedCollection,Collection),createClass(IndexedCollection,Collection),createClass(SetCollection,Collection),Collection.Keyed=KeyedCollection,Collection.Indexed=IndexedCollection,Collection.Set=SetCollection;var imul="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(a,b){var c=65535&(a|=0),d=65535&(b|=0);return c*d+((a>>>16)*d+c*(b>>>16)<<16>>>0)|0};function smi(i32){return i32>>>1&1073741824|3221225471&i32}function hash(o){if(!1===o||null==o)return 0;if("function"==typeof o.valueOf&&(!1===(o=o.valueOf())||null==o))return 0;if(!0===o)return 1;var type=typeof o;if("number"===type){if(o!=o||o===1/0)return 0;var h=0|o;for(h!==o&&(h^=4294967295*o);o>4294967295;)h^=o/=4294967295;return smi(h)}if("string"===type)return o.length>STRING_HASH_CACHE_MIN_STRLEN?function(string){var hash=stringHashCache[string];void 0===hash&&(hash=hashString(string),STRING_HASH_CACHE_SIZE===STRING_HASH_CACHE_MAX_SIZE&&(STRING_HASH_CACHE_SIZE=0,stringHashCache={}),STRING_HASH_CACHE_SIZE++,stringHashCache[string]=hash);return hash}(o):hashString(o);if("function"==typeof o.hashCode)return o.hashCode();if("object"===type)return function(obj){var hash;if(usingWeakMap&&void 0!==(hash=weakMap.get(obj)))return hash;if(void 0!==(hash=obj[UID_HASH_KEY]))return hash;if(!canDefineProperty){if(void 0!==(hash=obj.propertyIsEnumerable&&obj.propertyIsEnumerable[UID_HASH_KEY]))return hash;if(void 0!==(hash=function(node){if(node&&node.nodeType>0)switch(node.nodeType){case 1:return node.uniqueID;case 9:return node.documentElement&&node.documentElement.uniqueID}}(obj)))return hash}hash=++objHashUID,1073741824&objHashUID&&(objHashUID=0);if(usingWeakMap)weakMap.set(obj,hash);else{if(void 0!==isExtensible&&!1===isExtensible(obj))throw new Error("Non-extensible objects are not allowed as keys.");if(canDefineProperty)Object.defineProperty(obj,UID_HASH_KEY,{enumerable:!1,configurable:!1,writable:!1,value:hash});else if(void 0!==obj.propertyIsEnumerable&&obj.propertyIsEnumerable===obj.constructor.prototype.propertyIsEnumerable)obj.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},obj.propertyIsEnumerable[UID_HASH_KEY]=hash;else{if(void 0===obj.nodeType)throw new Error("Unable to set a non-enumerable property on object.");obj[UID_HASH_KEY]=hash}}return hash}(o);if("function"==typeof o.toString)return hashString(o.toString());throw new Error("Value type "+type+" cannot be hashed.")}function hashString(string){for(var hash=0,ii=0;ii<string.length;ii++)hash=31*hash+string.charCodeAt(ii)|0;return smi(hash)}var isExtensible=Object.isExtensible,canDefineProperty=function(){try{return Object.defineProperty({},"@",{}),!0}catch(e){return!1}}();var weakMap,usingWeakMap="function"==typeof WeakMap;usingWeakMap&&(weakMap=new WeakMap);var objHashUID=0,UID_HASH_KEY="__immutablehash__";"function"==typeof Symbol&&(UID_HASH_KEY=Symbol(UID_HASH_KEY));var STRING_HASH_CACHE_MIN_STRLEN=16,STRING_HASH_CACHE_MAX_SIZE=255,STRING_HASH_CACHE_SIZE=0,stringHashCache={};function assertNotInfinite(size){invariant(size!==1/0,"Cannot perform this action with an infinite size.")}function Map(value){return null==value?emptyMap():isMap(value)&&!isOrdered(value)?value:emptyMap().withMutations((function(map){var iter=KeyedIterable(value);assertNotInfinite(iter.size),iter.forEach((function(v,k){return map.set(k,v)}))}))}function isMap(maybeMap){return!(!maybeMap||!maybeMap[IS_MAP_SENTINEL])}createClass(Map,KeyedCollection),Map.of=function(){var keyValues=SLICE$0.call(arguments,0);return emptyMap().withMutations((function(map){for(var i=0;i<keyValues.length;i+=2){if(i+1>=keyValues.length)throw new Error("Missing value for key: "+keyValues[i]);map.set(keyValues[i],keyValues[i+1])}}))},Map.prototype.toString=function(){return this.__toString("Map {","}")},Map.prototype.get=function(k,notSetValue){return this._root?this._root.get(0,void 0,k,notSetValue):notSetValue},Map.prototype.set=function(k,v){return updateMap(this,k,v)},Map.prototype.setIn=function(keyPath,v){return this.updateIn(keyPath,NOT_SET,(function(){return v}))},Map.prototype.remove=function(k){return updateMap(this,k,NOT_SET)},Map.prototype.deleteIn=function(keyPath){return this.updateIn(keyPath,(function(){return NOT_SET}))},Map.prototype.update=function(k,notSetValue,updater){return 1===arguments.length?k(this):this.updateIn([k],notSetValue,updater)},Map.prototype.updateIn=function(keyPath,notSetValue,updater){updater||(updater=notSetValue,notSetValue=void 0);var updatedValue=function updateInDeepMap(existing,keyPathIter,notSetValue,updater){var isNotSet=existing===NOT_SET,step=keyPathIter.next();if(step.done){var existingValue=isNotSet?notSetValue:existing,newValue=updater(existingValue);return newValue===existingValue?existing:newValue}invariant(isNotSet||existing&&existing.set,"invalid keyPath");var key=step.value,nextExisting=isNotSet?NOT_SET:existing.get(key,NOT_SET),nextUpdated=updateInDeepMap(nextExisting,keyPathIter,notSetValue,updater);return nextUpdated===nextExisting?existing:nextUpdated===NOT_SET?existing.remove(key):(isNotSet?emptyMap():existing).set(key,nextUpdated)}(this,forceIterator(keyPath),notSetValue,updater);return updatedValue===NOT_SET?void 0:updatedValue},Map.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):emptyMap()},Map.prototype.merge=function(){return mergeIntoMapWith(this,void 0,arguments)},Map.prototype.mergeWith=function(merger){var iters=SLICE$0.call(arguments,1);return mergeIntoMapWith(this,merger,iters)},Map.prototype.mergeIn=function(keyPath){var iters=SLICE$0.call(arguments,1);return this.updateIn(keyPath,emptyMap(),(function(m){return"function"==typeof m.merge?m.merge.apply(m,iters):iters[iters.length-1]}))},Map.prototype.mergeDeep=function(){return mergeIntoMapWith(this,deepMerger,arguments)},Map.prototype.mergeDeepWith=function(merger){var iters=SLICE$0.call(arguments,1);return mergeIntoMapWith(this,deepMergerWith(merger),iters)},Map.prototype.mergeDeepIn=function(keyPath){var iters=SLICE$0.call(arguments,1);return this.updateIn(keyPath,emptyMap(),(function(m){return"function"==typeof m.mergeDeep?m.mergeDeep.apply(m,iters):iters[iters.length-1]}))},Map.prototype.sort=function(comparator){return OrderedMap(sortFactory(this,comparator))},Map.prototype.sortBy=function(mapper,comparator){return OrderedMap(sortFactory(this,comparator,mapper))},Map.prototype.withMutations=function(fn){var mutable=this.asMutable();return fn(mutable),mutable.wasAltered()?mutable.__ensureOwner(this.__ownerID):this},Map.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new OwnerID)},Map.prototype.asImmutable=function(){return this.__ensureOwner()},Map.prototype.wasAltered=function(){return this.__altered},Map.prototype.__iterator=function(type,reverse){return new MapIterator(this,type,reverse)},Map.prototype.__iterate=function(fn,reverse){var this$0=this,iterations=0;return this._root&&this._root.iterate((function(entry){return iterations++,fn(entry[1],entry[0],this$0)}),reverse),iterations},Map.prototype.__ensureOwner=function(ownerID){return ownerID===this.__ownerID?this:ownerID?makeMap(this.size,this._root,ownerID,this.__hash):(this.__ownerID=ownerID,this.__altered=!1,this)},Map.isMap=isMap;var EMPTY_MAP,IS_MAP_SENTINEL="@@__IMMUTABLE_MAP__@@",MapPrototype=Map.prototype;function ArrayMapNode(ownerID,entries){this.ownerID=ownerID,this.entries=entries}function BitmapIndexedNode(ownerID,bitmap,nodes){this.ownerID=ownerID,this.bitmap=bitmap,this.nodes=nodes}function HashArrayMapNode(ownerID,count,nodes){this.ownerID=ownerID,this.count=count,this.nodes=nodes}function HashCollisionNode(ownerID,keyHash,entries){this.ownerID=ownerID,this.keyHash=keyHash,this.entries=entries}function ValueNode(ownerID,keyHash,entry){this.ownerID=ownerID,this.keyHash=keyHash,this.entry=entry}function MapIterator(map,type,reverse){this._type=type,this._reverse=reverse,this._stack=map._root&&mapIteratorFrame(map._root)}function mapIteratorValue(type,entry){return iteratorValue(type,entry[0],entry[1])}function mapIteratorFrame(node,prev){return{node:node,index:0,__prev:prev}}function makeMap(size,root,ownerID,hash){var map=Object.create(MapPrototype);return map.size=size,map._root=root,map.__ownerID=ownerID,map.__hash=hash,map.__altered=!1,map}function emptyMap(){return EMPTY_MAP||(EMPTY_MAP=makeMap(0))}function updateMap(map,k,v){var newRoot,newSize;if(map._root){var didChangeSize=MakeRef(CHANGE_LENGTH),didAlter=MakeRef(DID_ALTER);if(newRoot=updateNode(map._root,map.__ownerID,0,void 0,k,v,didChangeSize,didAlter),!didAlter.value)return map;newSize=map.size+(didChangeSize.value?v===NOT_SET?-1:1:0)}else{if(v===NOT_SET)return map;newSize=1,newRoot=new ArrayMapNode(map.__ownerID,[[k,v]])}return map.__ownerID?(map.size=newSize,map._root=newRoot,map.__hash=void 0,map.__altered=!0,map):newRoot?makeMap(newSize,newRoot):emptyMap()}function updateNode(node,ownerID,shift,keyHash,key,value,didChangeSize,didAlter){return node?node.update(ownerID,shift,keyHash,key,value,didChangeSize,didAlter):value===NOT_SET?node:(SetRef(didAlter),SetRef(didChangeSize),new ValueNode(ownerID,keyHash,[key,value]))}function isLeafNode(node){return node.constructor===ValueNode||node.constructor===HashCollisionNode}function mergeIntoNode(node,ownerID,shift,keyHash,entry){if(node.keyHash===keyHash)return new HashCollisionNode(ownerID,keyHash,[node.entry,entry]);var newNode,idx1=31&(0===shift?node.keyHash:node.keyHash>>>shift),idx2=31&(0===shift?keyHash:keyHash>>>shift);return new BitmapIndexedNode(ownerID,1<<idx1|1<<idx2,idx1===idx2?[mergeIntoNode(node,ownerID,shift+5,keyHash,entry)]:(newNode=new ValueNode(ownerID,keyHash,entry),idx1<idx2?[node,newNode]:[newNode,node]))}function mergeIntoMapWith(map,merger,iterables){for(var iters=[],ii=0;ii<iterables.length;ii++){var value=iterables[ii],iter=KeyedIterable(value);isIterable(value)||(iter=iter.map((function(v){return fromJS(v)}))),iters.push(iter)}return mergeIntoCollectionWith(map,merger,iters)}function deepMerger(existing,value,key){return existing&&existing.mergeDeep&&isIterable(value)?existing.mergeDeep(value):is(existing,value)?existing:value}function deepMergerWith(merger){return function(existing,value,key){if(existing&&existing.mergeDeepWith&&isIterable(value))return existing.mergeDeepWith(merger,value);var nextValue=merger(existing,value,key);return is(existing,nextValue)?existing:nextValue}}function mergeIntoCollectionWith(collection,merger,iters){return 0===(iters=iters.filter((function(x){return 0!==x.size}))).length?collection:0!==collection.size||collection.__ownerID||1!==iters.length?collection.withMutations((function(collection){for(var mergeIntoMap=merger?function(value,key){collection.update(key,NOT_SET,(function(existing){return existing===NOT_SET?value:merger(existing,value,key)}))}:function(value,key){collection.set(key,value)},ii=0;ii<iters.length;ii++)iters[ii].forEach(mergeIntoMap)})):collection.constructor(iters[0])}function popCount(x){return x=(x=(858993459&(x-=x>>1&1431655765))+(x>>2&858993459))+(x>>4)&252645135,x+=x>>8,127&(x+=x>>16)}function setIn(array,idx,val,canEdit){var newArray=canEdit?array:arrCopy(array);return newArray[idx]=val,newArray}MapPrototype[IS_MAP_SENTINEL]=!0,MapPrototype.delete=MapPrototype.remove,MapPrototype.removeIn=MapPrototype.deleteIn,ArrayMapNode.prototype.get=function(shift,keyHash,key,notSetValue){for(var entries=this.entries,ii=0,len=entries.length;ii<len;ii++)if(is(key,entries[ii][0]))return entries[ii][1];return notSetValue},ArrayMapNode.prototype.update=function(ownerID,shift,keyHash,key,value,didChangeSize,didAlter){for(var removed=value===NOT_SET,entries=this.entries,idx=0,len=entries.length;idx<len&&!is(key,entries[idx][0]);idx++);var exists=idx<len;if(exists?entries[idx][1]===value:removed)return this;if(SetRef(didAlter),(removed||!exists)&&SetRef(didChangeSize),!removed||1!==entries.length){if(!exists&&!removed&&entries.length>=MAX_ARRAY_MAP_SIZE)return function(ownerID,entries,key,value){ownerID||(ownerID=new OwnerID);for(var node=new ValueNode(ownerID,hash(key),[key,value]),ii=0;ii<entries.length;ii++){var entry=entries[ii];node=node.update(ownerID,0,void 0,entry[0],entry[1])}return node}(ownerID,entries,key,value);var isEditable=ownerID&&ownerID===this.ownerID,newEntries=isEditable?entries:arrCopy(entries);return exists?removed?idx===len-1?newEntries.pop():newEntries[idx]=newEntries.pop():newEntries[idx]=[key,value]:newEntries.push([key,value]),isEditable?(this.entries=newEntries,this):new ArrayMapNode(ownerID,newEntries)}},BitmapIndexedNode.prototype.get=function(shift,keyHash,key,notSetValue){void 0===keyHash&&(keyHash=hash(key));var bit=1<<(31&(0===shift?keyHash:keyHash>>>shift)),bitmap=this.bitmap;return 0==(bitmap&bit)?notSetValue:this.nodes[popCount(bitmap&bit-1)].get(shift+5,keyHash,key,notSetValue)},BitmapIndexedNode.prototype.update=function(ownerID,shift,keyHash,key,value,didChangeSize,didAlter){void 0===keyHash&&(keyHash=hash(key));var keyHashFrag=31&(0===shift?keyHash:keyHash>>>shift),bit=1<<keyHashFrag,bitmap=this.bitmap,exists=0!=(bitmap&bit);if(!exists&&value===NOT_SET)return this;var idx=popCount(bitmap&bit-1),nodes=this.nodes,node=exists?nodes[idx]:void 0,newNode=updateNode(node,ownerID,shift+5,keyHash,key,value,didChangeSize,didAlter);if(newNode===node)return this;if(!exists&&newNode&&nodes.length>=MAX_BITMAP_INDEXED_SIZE)return function(ownerID,nodes,bitmap,including,node){for(var count=0,expandedNodes=new Array(32),ii=0;0!==bitmap;ii++,bitmap>>>=1)expandedNodes[ii]=1&bitmap?nodes[count++]:void 0;return expandedNodes[including]=node,new HashArrayMapNode(ownerID,count+1,expandedNodes)}(ownerID,nodes,bitmap,keyHashFrag,newNode);if(exists&&!newNode&&2===nodes.length&&isLeafNode(nodes[1^idx]))return nodes[1^idx];if(exists&&newNode&&1===nodes.length&&isLeafNode(newNode))return newNode;var isEditable=ownerID&&ownerID===this.ownerID,newBitmap=exists?newNode?bitmap:bitmap^bit:bitmap|bit,newNodes=exists?newNode?setIn(nodes,idx,newNode,isEditable):function(array,idx,canEdit){var newLen=array.length-1;if(canEdit&&idx===newLen)return array.pop(),array;for(var newArray=new Array(newLen),after=0,ii=0;ii<newLen;ii++)ii===idx&&(after=1),newArray[ii]=array[ii+after];return newArray}(nodes,idx,isEditable):function(array,idx,val,canEdit){var newLen=array.length+1;if(canEdit&&idx+1===newLen)return array[idx]=val,array;for(var newArray=new Array(newLen),after=0,ii=0;ii<newLen;ii++)ii===idx?(newArray[ii]=val,after=-1):newArray[ii]=array[ii+after];return newArray}(nodes,idx,newNode,isEditable);return isEditable?(this.bitmap=newBitmap,this.nodes=newNodes,this):new BitmapIndexedNode(ownerID,newBitmap,newNodes)},HashArrayMapNode.prototype.get=function(shift,keyHash,key,notSetValue){void 0===keyHash&&(keyHash=hash(key));var idx=31&(0===shift?keyHash:keyHash>>>shift),node=this.nodes[idx];return node?node.get(shift+5,keyHash,key,notSetValue):notSetValue},HashArrayMapNode.prototype.update=function(ownerID,shift,keyHash,key,value,didChangeSize,didAlter){void 0===keyHash&&(keyHash=hash(key));var idx=31&(0===shift?keyHash:keyHash>>>shift),removed=value===NOT_SET,nodes=this.nodes,node=nodes[idx];if(removed&&!node)return this;var newNode=updateNode(node,ownerID,shift+5,keyHash,key,value,didChangeSize,didAlter);if(newNode===node)return this;var newCount=this.count;if(node){if(!newNode&&--newCount<MIN_HASH_ARRAY_MAP_SIZE)return function(ownerID,nodes,count,excluding){for(var bitmap=0,packedII=0,packedNodes=new Array(count),ii=0,bit=1,len=nodes.length;ii<len;ii++,bit<<=1){var node=nodes[ii];void 0!==node&&ii!==excluding&&(bitmap|=bit,packedNodes[packedII++]=node)}return new BitmapIndexedNode(ownerID,bitmap,packedNodes)}(ownerID,nodes,newCount,idx)}else newCount++;var isEditable=ownerID&&ownerID===this.ownerID,newNodes=setIn(nodes,idx,newNode,isEditable);return isEditable?(this.count=newCount,this.nodes=newNodes,this):new HashArrayMapNode(ownerID,newCount,newNodes)},HashCollisionNode.prototype.get=function(shift,keyHash,key,notSetValue){for(var entries=this.entries,ii=0,len=entries.length;ii<len;ii++)if(is(key,entries[ii][0]))return entries[ii][1];return notSetValue},HashCollisionNode.prototype.update=function(ownerID,shift,keyHash,key,value,didChangeSize,didAlter){void 0===keyHash&&(keyHash=hash(key));var removed=value===NOT_SET;if(keyHash!==this.keyHash)return removed?this:(SetRef(didAlter),SetRef(didChangeSize),mergeIntoNode(this,ownerID,shift,keyHash,[key,value]));for(var entries=this.entries,idx=0,len=entries.length;idx<len&&!is(key,entries[idx][0]);idx++);var exists=idx<len;if(exists?entries[idx][1]===value:removed)return this;if(SetRef(didAlter),(removed||!exists)&&SetRef(didChangeSize),removed&&2===len)return new ValueNode(ownerID,this.keyHash,entries[1^idx]);var isEditable=ownerID&&ownerID===this.ownerID,newEntries=isEditable?entries:arrCopy(entries);return exists?removed?idx===len-1?newEntries.pop():newEntries[idx]=newEntries.pop():newEntries[idx]=[key,value]:newEntries.push([key,value]),isEditable?(this.entries=newEntries,this):new HashCollisionNode(ownerID,this.keyHash,newEntries)},ValueNode.prototype.get=function(shift,keyHash,key,notSetValue){return is(key,this.entry[0])?this.entry[1]:notSetValue},ValueNode.prototype.update=function(ownerID,shift,keyHash,key,value,didChangeSize,didAlter){var removed=value===NOT_SET,keyMatch=is(key,this.entry[0]);return(keyMatch?value===this.entry[1]:removed)?this:(SetRef(didAlter),removed?void SetRef(didChangeSize):keyMatch?ownerID&&ownerID===this.ownerID?(this.entry[1]=value,this):new ValueNode(ownerID,this.keyHash,[key,value]):(SetRef(didChangeSize),mergeIntoNode(this,ownerID,shift,hash(key),[key,value])))},ArrayMapNode.prototype.iterate=HashCollisionNode.prototype.iterate=function(fn,reverse){for(var entries=this.entries,ii=0,maxIndex=entries.length-1;ii<=maxIndex;ii++)if(!1===fn(entries[reverse?maxIndex-ii:ii]))return!1},BitmapIndexedNode.prototype.iterate=HashArrayMapNode.prototype.iterate=function(fn,reverse){for(var nodes=this.nodes,ii=0,maxIndex=nodes.length-1;ii<=maxIndex;ii++){var node=nodes[reverse?maxIndex-ii:ii];if(node&&!1===node.iterate(fn,reverse))return!1}},ValueNode.prototype.iterate=function(fn,reverse){return fn(this.entry)},createClass(MapIterator,Iterator),MapIterator.prototype.next=function(){for(var type=this._type,stack=this._stack;stack;){var maxIndex,node=stack.node,index=stack.index++;if(node.entry){if(0===index)return mapIteratorValue(type,node.entry)}else if(node.entries){if(index<=(maxIndex=node.entries.length-1))return mapIteratorValue(type,node.entries[this._reverse?maxIndex-index:index])}else if(index<=(maxIndex=node.nodes.length-1)){var subNode=node.nodes[this._reverse?maxIndex-index:index];if(subNode){if(subNode.entry)return mapIteratorValue(type,subNode.entry);stack=this._stack=mapIteratorFrame(subNode,stack)}continue}stack=this._stack=this._stack.__prev}return{value:void 0,done:!0}};var MAX_ARRAY_MAP_SIZE=8,MAX_BITMAP_INDEXED_SIZE=16,MIN_HASH_ARRAY_MAP_SIZE=8;function List(value){var empty=emptyList();if(null==value)return empty;if(isList(value))return value;var iter=IndexedIterable(value),size=iter.size;return 0===size?empty:(assertNotInfinite(size),size>0&&size<32?makeList(0,size,5,null,new VNode(iter.toArray())):empty.withMutations((function(list){list.setSize(size),iter.forEach((function(v,i){return list.set(i,v)}))})))}function isList(maybeList){return!(!maybeList||!maybeList[IS_LIST_SENTINEL])}createClass(List,IndexedCollection),List.of=function(){return this(arguments)},List.prototype.toString=function(){return this.__toString("List [","]")},List.prototype.get=function(index,notSetValue){if((index=wrapIndex(this,index))>=0&&index<this.size){var node=listNodeFor(this,index+=this._origin);return node&&node.array[31&index]}return notSetValue},List.prototype.set=function(index,value){return function(list,index,value){if((index=wrapIndex(list,index))!=index)return list;if(index>=list.size||index<0)return list.withMutations((function(list){index<0?setListBounds(list,index).set(0,value):setListBounds(list,0,index+1).set(index,value)}));index+=list._origin;var newTail=list._tail,newRoot=list._root,didAlter=MakeRef(DID_ALTER);index>=getTailOffset(list._capacity)?newTail=updateVNode(newTail,list.__ownerID,0,index,value,didAlter):newRoot=updateVNode(newRoot,list.__ownerID,list._level,index,value,didAlter);if(!didAlter.value)return list;if(list.__ownerID)return list._root=newRoot,list._tail=newTail,list.__hash=void 0,list.__altered=!0,list;return makeList(list._origin,list._capacity,list._level,newRoot,newTail)}(this,index,value)},List.prototype.remove=function(index){return this.has(index)?0===index?this.shift():index===this.size-1?this.pop():this.splice(index,1):this},List.prototype.insert=function(index,value){return this.splice(index,0,value)},List.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=5,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):emptyList()},List.prototype.push=function(){var values=arguments,oldSize=this.size;return this.withMutations((function(list){setListBounds(list,0,oldSize+values.length);for(var ii=0;ii<values.length;ii++)list.set(oldSize+ii,values[ii])}))},List.prototype.pop=function(){return setListBounds(this,0,-1)},List.prototype.unshift=function(){var values=arguments;return this.withMutations((function(list){setListBounds(list,-values.length);for(var ii=0;ii<values.length;ii++)list.set(ii,values[ii])}))},List.prototype.shift=function(){return setListBounds(this,1)},List.prototype.merge=function(){return mergeIntoListWith(this,void 0,arguments)},List.prototype.mergeWith=function(merger){var iters=SLICE$0.call(arguments,1);return mergeIntoListWith(this,merger,iters)},List.prototype.mergeDeep=function(){return mergeIntoListWith(this,deepMerger,arguments)},List.prototype.mergeDeepWith=function(merger){var iters=SLICE$0.call(arguments,1);return mergeIntoListWith(this,deepMergerWith(merger),iters)},List.prototype.setSize=function(size){return setListBounds(this,0,size)},List.prototype.slice=function(begin,end){var size=this.size;return wholeSlice(begin,end,size)?this:setListBounds(this,resolveBegin(begin,size),resolveEnd(end,size))},List.prototype.__iterator=function(type,reverse){var index=0,values=iterateList(this,reverse);return new Iterator((function(){var value=values();return value===DONE?{value:void 0,done:!0}:iteratorValue(type,index++,value)}))},List.prototype.__iterate=function(fn,reverse){for(var value,index=0,values=iterateList(this,reverse);(value=values())!==DONE&&!1!==fn(value,index++,this););return index},List.prototype.__ensureOwner=function(ownerID){return ownerID===this.__ownerID?this:ownerID?makeList(this._origin,this._capacity,this._level,this._root,this._tail,ownerID,this.__hash):(this.__ownerID=ownerID,this)},List.isList=isList;var IS_LIST_SENTINEL="@@__IMMUTABLE_LIST__@@",ListPrototype=List.prototype;function VNode(array,ownerID){this.array=array,this.ownerID=ownerID}ListPrototype[IS_LIST_SENTINEL]=!0,ListPrototype.delete=ListPrototype.remove,ListPrototype.setIn=MapPrototype.setIn,ListPrototype.deleteIn=ListPrototype.removeIn=MapPrototype.removeIn,ListPrototype.update=MapPrototype.update,ListPrototype.updateIn=MapPrototype.updateIn,ListPrototype.mergeIn=MapPrototype.mergeIn,ListPrototype.mergeDeepIn=MapPrototype.mergeDeepIn,ListPrototype.withMutations=MapPrototype.withMutations,ListPrototype.asMutable=MapPrototype.asMutable,ListPrototype.asImmutable=MapPrototype.asImmutable,ListPrototype.wasAltered=MapPrototype.wasAltered,VNode.prototype.removeBefore=function(ownerID,level,index){if(index===level?1<<level:0===this.array.length)return this;var originIndex=index>>>level&31;if(originIndex>=this.array.length)return new VNode([],ownerID);var newChild,removingFirst=0===originIndex;if(level>0){var oldChild=this.array[originIndex];if((newChild=oldChild&&oldChild.removeBefore(ownerID,level-5,index))===oldChild&&removingFirst)return this}if(removingFirst&&!newChild)return this;var editable=editableVNode(this,ownerID);if(!removingFirst)for(var ii=0;ii<originIndex;ii++)editable.array[ii]=void 0;return newChild&&(editable.array[originIndex]=newChild),editable},VNode.prototype.removeAfter=function(ownerID,level,index){if(index===(level?1<<level:0)||0===this.array.length)return this;var newChild,sizeIndex=index-1>>>level&31;if(sizeIndex>=this.array.length)return this;if(level>0){var oldChild=this.array[sizeIndex];if((newChild=oldChild&&oldChild.removeAfter(ownerID,level-5,index))===oldChild&&sizeIndex===this.array.length-1)return this}var editable=editableVNode(this,ownerID);return editable.array.splice(sizeIndex+1),newChild&&(editable.array[sizeIndex]=newChild),editable};var EMPTY_LIST,EMPTY_ORDERED_MAP,DONE={};function iterateList(list,reverse){var left=list._origin,right=list._capacity,tailPos=getTailOffset(right),tail=list._tail;return iterateNodeOrLeaf(list._root,list._level,0);function iterateNodeOrLeaf(node,level,offset){return 0===level?function(node,offset){var array=offset===tailPos?tail&&tail.array:node&&node.array,from=offset>left?0:left-offset,to=right-offset;to>32&&(to=32);return function(){if(from===to)return DONE;var idx=reverse?--to:from++;return array&&array[idx]}}(node,offset):function(node,level,offset){var values,array=node&&node.array,from=offset>left?0:left-offset>>level,to=1+(right-offset>>level);to>32&&(to=32);return function(){for(;;){if(values){var value=values();if(value!==DONE)return value;values=null}if(from===to)return DONE;var idx=reverse?--to:from++;values=iterateNodeOrLeaf(array&&array[idx],level-5,offset+(idx<<level))}}}(node,level,offset)}}function makeList(origin,capacity,level,root,tail,ownerID,hash){var list=Object.create(ListPrototype);return list.size=capacity-origin,list._origin=origin,list._capacity=capacity,list._level=level,list._root=root,list._tail=tail,list.__ownerID=ownerID,list.__hash=hash,list.__altered=!1,list}function emptyList(){return EMPTY_LIST||(EMPTY_LIST=makeList(0,0,5))}function updateVNode(node,ownerID,level,index,value,didAlter){var newNode,idx=index>>>level&31,nodeHas=node&&idx<node.array.length;if(!nodeHas&&void 0===value)return node;if(level>0){var lowerNode=node&&node.array[idx],newLowerNode=updateVNode(lowerNode,ownerID,level-5,index,value,didAlter);return newLowerNode===lowerNode?node:((newNode=editableVNode(node,ownerID)).array[idx]=newLowerNode,newNode)}return nodeHas&&node.array[idx]===value?node:(SetRef(didAlter),newNode=editableVNode(node,ownerID),void 0===value&&idx===newNode.array.length-1?newNode.array.pop():newNode.array[idx]=value,newNode)}function editableVNode(node,ownerID){return ownerID&&node&&ownerID===node.ownerID?node:new VNode(node?node.array.slice():[],ownerID)}function listNodeFor(list,rawIndex){if(rawIndex>=getTailOffset(list._capacity))return list._tail;if(rawIndex<1<<list._level+5){for(var node=list._root,level=list._level;node&&level>0;)node=node.array[rawIndex>>>level&31],level-=5;return node}}function setListBounds(list,begin,end){void 0!==begin&&(begin|=0),void 0!==end&&(end|=0);var owner=list.__ownerID||new OwnerID,oldOrigin=list._origin,oldCapacity=list._capacity,newOrigin=oldOrigin+begin,newCapacity=void 0===end?oldCapacity:end<0?oldCapacity+end:oldOrigin+end;if(newOrigin===oldOrigin&&newCapacity===oldCapacity)return list;if(newOrigin>=newCapacity)return list.clear();for(var newLevel=list._level,newRoot=list._root,offsetShift=0;newOrigin+offsetShift<0;)newRoot=new VNode(newRoot&&newRoot.array.length?[void 0,newRoot]:[],owner),offsetShift+=1<<(newLevel+=5);offsetShift&&(newOrigin+=offsetShift,oldOrigin+=offsetShift,newCapacity+=offsetShift,oldCapacity+=offsetShift);for(var oldTailOffset=getTailOffset(oldCapacity),newTailOffset=getTailOffset(newCapacity);newTailOffset>=1<<newLevel+5;)newRoot=new VNode(newRoot&&newRoot.array.length?[newRoot]:[],owner),newLevel+=5;var oldTail=list._tail,newTail=newTailOffset<oldTailOffset?listNodeFor(list,newCapacity-1):newTailOffset>oldTailOffset?new VNode([],owner):oldTail;if(oldTail&&newTailOffset>oldTailOffset&&newOrigin<oldCapacity&&oldTail.array.length){for(var node=newRoot=editableVNode(newRoot,owner),level=newLevel;level>5;level-=5){var idx=oldTailOffset>>>level&31;node=node.array[idx]=editableVNode(node.array[idx],owner)}node.array[oldTailOffset>>>5&31]=oldTail}if(newCapacity<oldCapacity&&(newTail=newTail&&newTail.removeAfter(owner,0,newCapacity)),newOrigin>=newTailOffset)newOrigin-=newTailOffset,newCapacity-=newTailOffset,newLevel=5,newRoot=null,newTail=newTail&&newTail.removeBefore(owner,0,newOrigin);else if(newOrigin>oldOrigin||newTailOffset<oldTailOffset){for(offsetShift=0;newRoot;){var beginIndex=newOrigin>>>newLevel&31;if(beginIndex!==newTailOffset>>>newLevel&31)break;beginIndex&&(offsetShift+=(1<<newLevel)*beginIndex),newLevel-=5,newRoot=newRoot.array[beginIndex]}newRoot&&newOrigin>oldOrigin&&(newRoot=newRoot.removeBefore(owner,newLevel,newOrigin-offsetShift)),newRoot&&newTailOffset<oldTailOffset&&(newRoot=newRoot.removeAfter(owner,newLevel,newTailOffset-offsetShift)),offsetShift&&(newOrigin-=offsetShift,newCapacity-=offsetShift)}return list.__ownerID?(list.size=newCapacity-newOrigin,list._origin=newOrigin,list._capacity=newCapacity,list._level=newLevel,list._root=newRoot,list._tail=newTail,list.__hash=void 0,list.__altered=!0,list):makeList(newOrigin,newCapacity,newLevel,newRoot,newTail)}function mergeIntoListWith(list,merger,iterables){for(var iters=[],maxSize=0,ii=0;ii<iterables.length;ii++){var value=iterables[ii],iter=IndexedIterable(value);iter.size>maxSize&&(maxSize=iter.size),isIterable(value)||(iter=iter.map((function(v){return fromJS(v)}))),iters.push(iter)}return maxSize>list.size&&(list=list.setSize(maxSize)),mergeIntoCollectionWith(list,merger,iters)}function getTailOffset(size){return size<32?0:size-1>>>5<<5}function OrderedMap(value){return null==value?emptyOrderedMap():isOrderedMap(value)?value:emptyOrderedMap().withMutations((function(map){var iter=KeyedIterable(value);assertNotInfinite(iter.size),iter.forEach((function(v,k){return map.set(k,v)}))}))}function isOrderedMap(maybeOrderedMap){return isMap(maybeOrderedMap)&&isOrdered(maybeOrderedMap)}function makeOrderedMap(map,list,ownerID,hash){var omap=Object.create(OrderedMap.prototype);return omap.size=map?map.size:0,omap._map=map,omap._list=list,omap.__ownerID=ownerID,omap.__hash=hash,omap}function emptyOrderedMap(){return EMPTY_ORDERED_MAP||(EMPTY_ORDERED_MAP=makeOrderedMap(emptyMap(),emptyList()))}function updateOrderedMap(omap,k,v){var newMap,newList,map=omap._map,list=omap._list,i=map.get(k),has=void 0!==i;if(v===NOT_SET){if(!has)return omap;list.size>=32&&list.size>=2*map.size?(newMap=(newList=list.filter((function(entry,idx){return void 0!==entry&&i!==idx}))).toKeyedSeq().map((function(entry){return entry[0]})).flip().toMap(),omap.__ownerID&&(newMap.__ownerID=newList.__ownerID=omap.__ownerID)):(newMap=map.remove(k),newList=i===list.size-1?list.pop():list.set(i,void 0))}else if(has){if(v===list.get(i)[1])return omap;newMap=map,newList=list.set(i,[k,v])}else newMap=map.set(k,list.size),newList=list.set(list.size,[k,v]);return omap.__ownerID?(omap.size=newMap.size,omap._map=newMap,omap._list=newList,omap.__hash=void 0,omap):makeOrderedMap(newMap,newList)}function ToKeyedSequence(indexed,useKeys){this._iter=indexed,this._useKeys=useKeys,this.size=indexed.size}function ToIndexedSequence(iter){this._iter=iter,this.size=iter.size}function ToSetSequence(iter){this._iter=iter,this.size=iter.size}function FromEntriesSequence(entries){this._iter=entries,this.size=entries.size}function flipFactory(iterable){var flipSequence=makeSequence(iterable);return flipSequence._iter=iterable,flipSequence.size=iterable.size,flipSequence.flip=function(){return iterable},flipSequence.reverse=function(){var reversedSequence=iterable.reverse.apply(this);return reversedSequence.flip=function(){return iterable.reverse()},reversedSequence},flipSequence.has=function(key){return iterable.includes(key)},flipSequence.includes=function(key){return iterable.has(key)},flipSequence.cacheResult=cacheResultThrough,flipSequence.__iterateUncached=function(fn,reverse){var this$0=this;return iterable.__iterate((function(v,k){return!1!==fn(k,v,this$0)}),reverse)},flipSequence.__iteratorUncached=function(type,reverse){if(2===type){var iterator=iterable.__iterator(type,reverse);return new Iterator((function(){var step=iterator.next();if(!step.done){var k=step.value[0];step.value[0]=step.value[1],step.value[1]=k}return step}))}return iterable.__iterator(1===type?0:1,reverse)},flipSequence}function mapFactory(iterable,mapper,context){var mappedSequence=makeSequence(iterable);return mappedSequence.size=iterable.size,mappedSequence.has=function(key){return iterable.has(key)},mappedSequence.get=function(key,notSetValue){var v=iterable.get(key,NOT_SET);return v===NOT_SET?notSetValue:mapper.call(context,v,key,iterable)},mappedSequence.__iterateUncached=function(fn,reverse){var this$0=this;return iterable.__iterate((function(v,k,c){return!1!==fn(mapper.call(context,v,k,c),k,this$0)}),reverse)},mappedSequence.__iteratorUncached=function(type,reverse){var iterator=iterable.__iterator(2,reverse);return new Iterator((function(){var step=iterator.next();if(step.done)return step;var entry=step.value,key=entry[0];return iteratorValue(type,key,mapper.call(context,entry[1],key,iterable),step)}))},mappedSequence}function reverseFactory(iterable,useKeys){var reversedSequence=makeSequence(iterable);return reversedSequence._iter=iterable,reversedSequence.size=iterable.size,reversedSequence.reverse=function(){return iterable},iterable.flip&&(reversedSequence.flip=function(){var flipSequence=flipFactory(iterable);return flipSequence.reverse=function(){return iterable.flip()},flipSequence}),reversedSequence.get=function(key,notSetValue){return iterable.get(useKeys?key:-1-key,notSetValue)},reversedSequence.has=function(key){return iterable.has(useKeys?key:-1-key)},reversedSequence.includes=function(value){return iterable.includes(value)},reversedSequence.cacheResult=cacheResultThrough,reversedSequence.__iterate=function(fn,reverse){var this$0=this;return iterable.__iterate((function(v,k){return fn(v,k,this$0)}),!reverse)},reversedSequence.__iterator=function(type,reverse){return iterable.__iterator(type,!reverse)},reversedSequence}function filterFactory(iterable,predicate,context,useKeys){var filterSequence=makeSequence(iterable);return useKeys&&(filterSequence.has=function(key){var v=iterable.get(key,NOT_SET);return v!==NOT_SET&&!!predicate.call(context,v,key,iterable)},filterSequence.get=function(key,notSetValue){var v=iterable.get(key,NOT_SET);return v!==NOT_SET&&predicate.call(context,v,key,iterable)?v:notSetValue}),filterSequence.__iterateUncached=function(fn,reverse){var this$0=this,iterations=0;return iterable.__iterate((function(v,k,c){if(predicate.call(context,v,k,c))return iterations++,fn(v,useKeys?k:iterations-1,this$0)}),reverse),iterations},filterSequence.__iteratorUncached=function(type,reverse){var iterator=iterable.__iterator(2,reverse),iterations=0;return new Iterator((function(){for(;;){var step=iterator.next();if(step.done)return step;var entry=step.value,key=entry[0],value=entry[1];if(predicate.call(context,value,key,iterable))return iteratorValue(type,useKeys?key:iterations++,value,step)}}))},filterSequence}function sliceFactory(iterable,begin,end,useKeys){var originalSize=iterable.size;if(void 0!==begin&&(begin|=0),void 0!==end&&(end===1/0?end=originalSize:end|=0),wholeSlice(begin,end,originalSize))return iterable;var resolvedBegin=resolveBegin(begin,originalSize),resolvedEnd=resolveEnd(end,originalSize);if(resolvedBegin!=resolvedBegin||resolvedEnd!=resolvedEnd)return sliceFactory(iterable.toSeq().cacheResult(),begin,end,useKeys);var sliceSize,resolvedSize=resolvedEnd-resolvedBegin;resolvedSize==resolvedSize&&(sliceSize=resolvedSize<0?0:resolvedSize);var sliceSeq=makeSequence(iterable);return sliceSeq.size=0===sliceSize?sliceSize:iterable.size&&sliceSize||void 0,!useKeys&&isSeq(iterable)&&sliceSize>=0&&(sliceSeq.get=function(index,notSetValue){return(index=wrapIndex(this,index))>=0&&index<sliceSize?iterable.get(index+resolvedBegin,notSetValue):notSetValue}),sliceSeq.__iterateUncached=function(fn,reverse){var this$0=this;if(0===sliceSize)return 0;if(reverse)return this.cacheResult().__iterate(fn,reverse);var skipped=0,isSkipping=!0,iterations=0;return iterable.__iterate((function(v,k){if(!isSkipping||!(isSkipping=skipped++<resolvedBegin))return iterations++,!1!==fn(v,useKeys?k:iterations-1,this$0)&&iterations!==sliceSize})),iterations},sliceSeq.__iteratorUncached=function(type,reverse){if(0!==sliceSize&&reverse)return this.cacheResult().__iterator(type,reverse);var iterator=0!==sliceSize&&iterable.__iterator(type,reverse),skipped=0,iterations=0;return new Iterator((function(){for(;skipped++<resolvedBegin;)iterator.next();if(++iterations>sliceSize)return{value:void 0,done:!0};var step=iterator.next();return useKeys||1===type?step:iteratorValue(type,iterations-1,0===type?void 0:step.value[1],step)}))},sliceSeq}function skipWhileFactory(iterable,predicate,context,useKeys){var skipSequence=makeSequence(iterable);return skipSequence.__iterateUncached=function(fn,reverse){var this$0=this;if(reverse)return this.cacheResult().__iterate(fn,reverse);var isSkipping=!0,iterations=0;return iterable.__iterate((function(v,k,c){if(!isSkipping||!(isSkipping=predicate.call(context,v,k,c)))return iterations++,fn(v,useKeys?k:iterations-1,this$0)})),iterations},skipSequence.__iteratorUncached=function(type,reverse){var this$0=this;if(reverse)return this.cacheResult().__iterator(type,reverse);var iterator=iterable.__iterator(2,reverse),skipping=!0,iterations=0;return new Iterator((function(){var step,k,v;do{if((step=iterator.next()).done)return useKeys||1===type?step:iteratorValue(type,iterations++,0===type?void 0:step.value[1],step);var entry=step.value;k=entry[0],v=entry[1],skipping&&(skipping=predicate.call(context,v,k,this$0))}while(skipping);return 2===type?step:iteratorValue(type,k,v,step)}))},skipSequence}function concatFactory(iterable,values){var isKeyedIterable=isKeyed(iterable),iters=[iterable].concat(values).map((function(v){return isIterable(v)?isKeyedIterable&&(v=KeyedIterable(v)):v=isKeyedIterable?keyedSeqFromValue(v):indexedSeqFromValue(Array.isArray(v)?v:[v]),v})).filter((function(v){return 0!==v.size}));if(0===iters.length)return iterable;if(1===iters.length){var singleton=iters[0];if(singleton===iterable||isKeyedIterable&&isKeyed(singleton)||isIndexed(iterable)&&isIndexed(singleton))return singleton}var concatSeq=new ArraySeq(iters);return isKeyedIterable?concatSeq=concatSeq.toKeyedSeq():isIndexed(iterable)||(concatSeq=concatSeq.toSetSeq()),(concatSeq=concatSeq.flatten(!0)).size=iters.reduce((function(sum,seq){if(void 0!==sum){var size=seq.size;if(void 0!==size)return sum+size}}),0),concatSeq}function flattenFactory(iterable,depth,useKeys){var flatSequence=makeSequence(iterable);return flatSequence.__iterateUncached=function(fn,reverse){var iterations=0,stopped=!1;return function flatDeep(iter,currentDepth){var this$0=this;iter.__iterate((function(v,k){return(!depth||currentDepth<depth)&&isIterable(v)?flatDeep(v,currentDepth+1):!1===fn(v,useKeys?k:iterations++,this$0)&&(stopped=!0),!stopped}),reverse)}(iterable,0),iterations},flatSequence.__iteratorUncached=function(type,reverse){var iterator=iterable.__iterator(type,reverse),stack=[],iterations=0;return new Iterator((function(){for(;iterator;){var step=iterator.next();if(!1===step.done){var v=step.value;if(2===type&&(v=v[1]),depth&&!(stack.length<depth)||!isIterable(v))return useKeys?step:iteratorValue(type,iterations++,v,step);stack.push(iterator),iterator=v.__iterator(type,reverse)}else iterator=stack.pop()}return{value:void 0,done:!0}}))},flatSequence}function sortFactory(iterable,comparator,mapper){comparator||(comparator=defaultComparator);var isKeyedIterable=isKeyed(iterable),index=0,entries=iterable.toSeq().map((function(v,k){return[k,v,index++,mapper?mapper(v,k,iterable):v]})).toArray();return entries.sort((function(a,b){return comparator(a[3],b[3])||a[2]-b[2]})).forEach(isKeyedIterable?function(v,i){entries[i].length=2}:function(v,i){entries[i]=v[1]}),isKeyedIterable?KeyedSeq(entries):isIndexed(iterable)?IndexedSeq(entries):SetSeq(entries)}function maxFactory(iterable,comparator,mapper){if(comparator||(comparator=defaultComparator),mapper){var entry=iterable.toSeq().map((function(v,k){return[v,mapper(v,k,iterable)]})).reduce((function(a,b){return maxCompare(comparator,a[1],b[1])?b:a}));return entry&&entry[0]}return iterable.reduce((function(a,b){return maxCompare(comparator,a,b)?b:a}))}function maxCompare(comparator,a,b){var comp=comparator(b,a);return 0===comp&&b!==a&&(null==b||b!=b)||comp>0}function zipWithFactory(keyIter,zipper,iters){var zipSequence=makeSequence(keyIter);return zipSequence.size=new ArraySeq(iters).map((function(i){return i.size})).min(),zipSequence.__iterate=function(fn,reverse){for(var step,iterator=this.__iterator(1,reverse),iterations=0;!(step=iterator.next()).done&&!1!==fn(step.value,iterations++,this););return iterations},zipSequence.__iteratorUncached=function(type,reverse){var iterators=iters.map((function(i){return i=Iterable(i),getIterator(reverse?i.reverse():i)})),iterations=0,isDone=!1;return new Iterator((function(){var steps;return isDone||(steps=iterators.map((function(i){return i.next()})),isDone=steps.some((function(s){return s.done}))),isDone?{value:void 0,done:!0}:iteratorValue(type,iterations++,zipper.apply(null,steps.map((function(s){return s.value}))))}))},zipSequence}function reify(iter,seq){return isSeq(iter)?seq:iter.constructor(seq)}function validateEntry(entry){if(entry!==Object(entry))throw new TypeError("Expected [K, V] tuple: "+entry)}function resolveSize(iter){return assertNotInfinite(iter.size),ensureSize(iter)}function iterableClass(iterable){return isKeyed(iterable)?KeyedIterable:isIndexed(iterable)?IndexedIterable:SetIterable}function makeSequence(iterable){return Object.create((isKeyed(iterable)?KeyedSeq:isIndexed(iterable)?IndexedSeq:SetSeq).prototype)}function cacheResultThrough(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):Seq.prototype.cacheResult.call(this)}function defaultComparator(a,b){return a>b?1:a<b?-1:0}function forceIterator(keyPath){var iter=getIterator(keyPath);if(!iter){if(!isArrayLike(keyPath))throw new TypeError("Expected iterable or array-like: "+keyPath);iter=getIterator(Iterable(keyPath))}return iter}function Record(defaultValues,name){var hasInitialized,RecordType=function(values){if(values instanceof RecordType)return values;if(!(this instanceof RecordType))return new RecordType(values);if(!hasInitialized){hasInitialized=!0;var keys=Object.keys(defaultValues);!function(prototype,names){try{names.forEach(setProp.bind(void 0,prototype))}catch(error){}}(RecordTypePrototype,keys),RecordTypePrototype.size=keys.length,RecordTypePrototype._name=name,RecordTypePrototype._keys=keys,RecordTypePrototype._defaultValues=defaultValues}this._map=Map(values)},RecordTypePrototype=RecordType.prototype=Object.create(RecordPrototype);return RecordTypePrototype.constructor=RecordType,RecordType}createClass(OrderedMap,Map),OrderedMap.of=function(){return this(arguments)},OrderedMap.prototype.toString=function(){return this.__toString("OrderedMap {","}")},OrderedMap.prototype.get=function(k,notSetValue){var index=this._map.get(k);return void 0!==index?this._list.get(index)[1]:notSetValue},OrderedMap.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):emptyOrderedMap()},OrderedMap.prototype.set=function(k,v){return updateOrderedMap(this,k,v)},OrderedMap.prototype.remove=function(k){return updateOrderedMap(this,k,NOT_SET)},OrderedMap.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},OrderedMap.prototype.__iterate=function(fn,reverse){var this$0=this;return this._list.__iterate((function(entry){return entry&&fn(entry[1],entry[0],this$0)}),reverse)},OrderedMap.prototype.__iterator=function(type,reverse){return this._list.fromEntrySeq().__iterator(type,reverse)},OrderedMap.prototype.__ensureOwner=function(ownerID){if(ownerID===this.__ownerID)return this;var newMap=this._map.__ensureOwner(ownerID),newList=this._list.__ensureOwner(ownerID);return ownerID?makeOrderedMap(newMap,newList,ownerID,this.__hash):(this.__ownerID=ownerID,this._map=newMap,this._list=newList,this)},OrderedMap.isOrderedMap=isOrderedMap,OrderedMap.prototype[IS_ORDERED_SENTINEL]=!0,OrderedMap.prototype.delete=OrderedMap.prototype.remove,createClass(ToKeyedSequence,KeyedSeq),ToKeyedSequence.prototype.get=function(key,notSetValue){return this._iter.get(key,notSetValue)},ToKeyedSequence.prototype.has=function(key){return this._iter.has(key)},ToKeyedSequence.prototype.valueSeq=function(){return this._iter.valueSeq()},ToKeyedSequence.prototype.reverse=function(){var this$0=this,reversedSequence=reverseFactory(this,!0);return this._useKeys||(reversedSequence.valueSeq=function(){return this$0._iter.toSeq().reverse()}),reversedSequence},ToKeyedSequence.prototype.map=function(mapper,context){var this$0=this,mappedSequence=mapFactory(this,mapper,context);return this._useKeys||(mappedSequence.valueSeq=function(){return this$0._iter.toSeq().map(mapper,context)}),mappedSequence},ToKeyedSequence.prototype.__iterate=function(fn,reverse){var ii,this$0=this;return this._iter.__iterate(this._useKeys?function(v,k){return fn(v,k,this$0)}:(ii=reverse?resolveSize(this):0,function(v){return fn(v,reverse?--ii:ii++,this$0)}),reverse)},ToKeyedSequence.prototype.__iterator=function(type,reverse){if(this._useKeys)return this._iter.__iterator(type,reverse);var iterator=this._iter.__iterator(1,reverse),ii=reverse?resolveSize(this):0;return new Iterator((function(){var step=iterator.next();return step.done?step:iteratorValue(type,reverse?--ii:ii++,step.value,step)}))},ToKeyedSequence.prototype[IS_ORDERED_SENTINEL]=!0,createClass(ToIndexedSequence,IndexedSeq),ToIndexedSequence.prototype.includes=function(value){return this._iter.includes(value)},ToIndexedSequence.prototype.__iterate=function(fn,reverse){var this$0=this,iterations=0;return this._iter.__iterate((function(v){return fn(v,iterations++,this$0)}),reverse)},ToIndexedSequence.prototype.__iterator=function(type,reverse){var iterator=this._iter.__iterator(1,reverse),iterations=0;return new Iterator((function(){var step=iterator.next();return step.done?step:iteratorValue(type,iterations++,step.value,step)}))},createClass(ToSetSequence,SetSeq),ToSetSequence.prototype.has=function(key){return this._iter.includes(key)},ToSetSequence.prototype.__iterate=function(fn,reverse){var this$0=this;return this._iter.__iterate((function(v){return fn(v,v,this$0)}),reverse)},ToSetSequence.prototype.__iterator=function(type,reverse){var iterator=this._iter.__iterator(1,reverse);return new Iterator((function(){var step=iterator.next();return step.done?step:iteratorValue(type,step.value,step.value,step)}))},createClass(FromEntriesSequence,KeyedSeq),FromEntriesSequence.prototype.entrySeq=function(){return this._iter.toSeq()},FromEntriesSequence.prototype.__iterate=function(fn,reverse){var this$0=this;return this._iter.__iterate((function(entry){if(entry){validateEntry(entry);var indexedIterable=isIterable(entry);return fn(indexedIterable?entry.get(1):entry[1],indexedIterable?entry.get(0):entry[0],this$0)}}),reverse)},FromEntriesSequence.prototype.__iterator=function(type,reverse){var iterator=this._iter.__iterator(1,reverse);return new Iterator((function(){for(;;){var step=iterator.next();if(step.done)return step;var entry=step.value;if(entry){validateEntry(entry);var indexedIterable=isIterable(entry);return iteratorValue(type,indexedIterable?entry.get(0):entry[0],indexedIterable?entry.get(1):entry[1],step)}}}))},ToIndexedSequence.prototype.cacheResult=ToKeyedSequence.prototype.cacheResult=ToSetSequence.prototype.cacheResult=FromEntriesSequence.prototype.cacheResult=cacheResultThrough,createClass(Record,KeyedCollection),Record.prototype.toString=function(){return this.__toString(recordName(this)+" {","}")},Record.prototype.has=function(k){return this._defaultValues.hasOwnProperty(k)},Record.prototype.get=function(k,notSetValue){if(!this.has(k))return notSetValue;var defaultVal=this._defaultValues[k];return this._map?this._map.get(k,defaultVal):defaultVal},Record.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var RecordType=this.constructor;return RecordType._empty||(RecordType._empty=makeRecord(this,emptyMap()))},Record.prototype.set=function(k,v){if(!this.has(k))throw new Error('Cannot set unknown key "'+k+'" on '+recordName(this));if(this._map&&!this._map.has(k)&&v===this._defaultValues[k])return this;var newMap=this._map&&this._map.set(k,v);return this.__ownerID||newMap===this._map?this:makeRecord(this,newMap)},Record.prototype.remove=function(k){if(!this.has(k))return this;var newMap=this._map&&this._map.remove(k);return this.__ownerID||newMap===this._map?this:makeRecord(this,newMap)},Record.prototype.wasAltered=function(){return this._map.wasAltered()},Record.prototype.__iterator=function(type,reverse){var this$0=this;return KeyedIterable(this._defaultValues).map((function(_,k){return this$0.get(k)})).__iterator(type,reverse)},Record.prototype.__iterate=function(fn,reverse){var this$0=this;return KeyedIterable(this._defaultValues).map((function(_,k){return this$0.get(k)})).__iterate(fn,reverse)},Record.prototype.__ensureOwner=function(ownerID){if(ownerID===this.__ownerID)return this;var newMap=this._map&&this._map.__ensureOwner(ownerID);return ownerID?makeRecord(this,newMap,ownerID):(this.__ownerID=ownerID,this._map=newMap,this)};var RecordPrototype=Record.prototype;function makeRecord(likeRecord,map,ownerID){var record=Object.create(Object.getPrototypeOf(likeRecord));return record._map=map,record.__ownerID=ownerID,record}function recordName(record){return record._name||record.constructor.name||"Record"}function setProp(prototype,name){Object.defineProperty(prototype,name,{get:function(){return this.get(name)},set:function(value){invariant(this.__ownerID,"Cannot set on an immutable record."),this.set(name,value)}})}function Set(value){return null==value?emptySet():isSet(value)&&!isOrdered(value)?value:emptySet().withMutations((function(set){var iter=SetIterable(value);assertNotInfinite(iter.size),iter.forEach((function(v){return set.add(v)}))}))}function isSet(maybeSet){return!(!maybeSet||!maybeSet[IS_SET_SENTINEL])}RecordPrototype.delete=RecordPrototype.remove,RecordPrototype.deleteIn=RecordPrototype.removeIn=MapPrototype.removeIn,RecordPrototype.merge=MapPrototype.merge,RecordPrototype.mergeWith=MapPrototype.mergeWith,RecordPrototype.mergeIn=MapPrototype.mergeIn,RecordPrototype.mergeDeep=MapPrototype.mergeDeep,RecordPrototype.mergeDeepWith=MapPrototype.mergeDeepWith,RecordPrototype.mergeDeepIn=MapPrototype.mergeDeepIn,RecordPrototype.setIn=MapPrototype.setIn,RecordPrototype.update=MapPrototype.update,RecordPrototype.updateIn=MapPrototype.updateIn,RecordPrototype.withMutations=MapPrototype.withMutations,RecordPrototype.asMutable=MapPrototype.asMutable,RecordPrototype.asImmutable=MapPrototype.asImmutable,createClass(Set,SetCollection),Set.of=function(){return this(arguments)},Set.fromKeys=function(value){return this(KeyedIterable(value).keySeq())},Set.prototype.toString=function(){return this.__toString("Set {","}")},Set.prototype.has=function(value){return this._map.has(value)},Set.prototype.add=function(value){return updateSet(this,this._map.set(value,!0))},Set.prototype.remove=function(value){return updateSet(this,this._map.remove(value))},Set.prototype.clear=function(){return updateSet(this,this._map.clear())},Set.prototype.union=function(){var iters=SLICE$0.call(arguments,0);return 0===(iters=iters.filter((function(x){return 0!==x.size}))).length?this:0!==this.size||this.__ownerID||1!==iters.length?this.withMutations((function(set){for(var ii=0;ii<iters.length;ii++)SetIterable(iters[ii]).forEach((function(value){return set.add(value)}))})):this.constructor(iters[0])},Set.prototype.intersect=function(){var iters=SLICE$0.call(arguments,0);if(0===iters.length)return this;iters=iters.map((function(iter){return SetIterable(iter)}));var originalSet=this;return this.withMutations((function(set){originalSet.forEach((function(value){iters.every((function(iter){return iter.includes(value)}))||set.remove(value)}))}))},Set.prototype.subtract=function(){var iters=SLICE$0.call(arguments,0);if(0===iters.length)return this;iters=iters.map((function(iter){return SetIterable(iter)}));var originalSet=this;return this.withMutations((function(set){originalSet.forEach((function(value){iters.some((function(iter){return iter.includes(value)}))&&set.remove(value)}))}))},Set.prototype.merge=function(){return this.union.apply(this,arguments)},Set.prototype.mergeWith=function(merger){var iters=SLICE$0.call(arguments,1);return this.union.apply(this,iters)},Set.prototype.sort=function(comparator){return OrderedSet(sortFactory(this,comparator))},Set.prototype.sortBy=function(mapper,comparator){return OrderedSet(sortFactory(this,comparator,mapper))},Set.prototype.wasAltered=function(){return this._map.wasAltered()},Set.prototype.__iterate=function(fn,reverse){var this$0=this;return this._map.__iterate((function(_,k){return fn(k,k,this$0)}),reverse)},Set.prototype.__iterator=function(type,reverse){return this._map.map((function(_,k){return k})).__iterator(type,reverse)},Set.prototype.__ensureOwner=function(ownerID){if(ownerID===this.__ownerID)return this;var newMap=this._map.__ensureOwner(ownerID);return ownerID?this.__make(newMap,ownerID):(this.__ownerID=ownerID,this._map=newMap,this)},Set.isSet=isSet;var EMPTY_SET,IS_SET_SENTINEL="@@__IMMUTABLE_SET__@@",SetPrototype=Set.prototype;function updateSet(set,newMap){return set.__ownerID?(set.size=newMap.size,set._map=newMap,set):newMap===set._map?set:0===newMap.size?set.__empty():set.__make(newMap)}function makeSet(map,ownerID){var set=Object.create(SetPrototype);return set.size=map?map.size:0,set._map=map,set.__ownerID=ownerID,set}function emptySet(){return EMPTY_SET||(EMPTY_SET=makeSet(emptyMap()))}function OrderedSet(value){return null==value?emptyOrderedSet():isOrderedSet(value)?value:emptyOrderedSet().withMutations((function(set){var iter=SetIterable(value);assertNotInfinite(iter.size),iter.forEach((function(v){return set.add(v)}))}))}function isOrderedSet(maybeOrderedSet){return isSet(maybeOrderedSet)&&isOrdered(maybeOrderedSet)}SetPrototype[IS_SET_SENTINEL]=!0,SetPrototype.delete=SetPrototype.remove,SetPrototype.mergeDeep=SetPrototype.merge,SetPrototype.mergeDeepWith=SetPrototype.mergeWith,SetPrototype.withMutations=MapPrototype.withMutations,SetPrototype.asMutable=MapPrototype.asMutable,SetPrototype.asImmutable=MapPrototype.asImmutable,SetPrototype.__empty=emptySet,SetPrototype.__make=makeSet,createClass(OrderedSet,Set),OrderedSet.of=function(){return this(arguments)},OrderedSet.fromKeys=function(value){return this(KeyedIterable(value).keySeq())},OrderedSet.prototype.toString=function(){return this.__toString("OrderedSet {","}")},OrderedSet.isOrderedSet=isOrderedSet;var EMPTY_ORDERED_SET,OrderedSetPrototype=OrderedSet.prototype;function makeOrderedSet(map,ownerID){var set=Object.create(OrderedSetPrototype);return set.size=map?map.size:0,set._map=map,set.__ownerID=ownerID,set}function emptyOrderedSet(){return EMPTY_ORDERED_SET||(EMPTY_ORDERED_SET=makeOrderedSet(emptyOrderedMap()))}function Stack(value){return null==value?emptyStack():isStack(value)?value:emptyStack().unshiftAll(value)}function isStack(maybeStack){return!(!maybeStack||!maybeStack[IS_STACK_SENTINEL])}OrderedSetPrototype[IS_ORDERED_SENTINEL]=!0,OrderedSetPrototype.__empty=emptyOrderedSet,OrderedSetPrototype.__make=makeOrderedSet,createClass(Stack,IndexedCollection),Stack.of=function(){return this(arguments)},Stack.prototype.toString=function(){return this.__toString("Stack [","]")},Stack.prototype.get=function(index,notSetValue){var head=this._head;for(index=wrapIndex(this,index);head&&index--;)head=head.next;return head?head.value:notSetValue},Stack.prototype.peek=function(){return this._head&&this._head.value},Stack.prototype.push=function(){if(0===arguments.length)return this;for(var newSize=this.size+arguments.length,head=this._head,ii=arguments.length-1;ii>=0;ii--)head={value:arguments[ii],next:head};return this.__ownerID?(this.size=newSize,this._head=head,this.__hash=void 0,this.__altered=!0,this):makeStack(newSize,head)},Stack.prototype.pushAll=function(iter){if(0===(iter=IndexedIterable(iter)).size)return this;assertNotInfinite(iter.size);var newSize=this.size,head=this._head;return iter.reverse().forEach((function(value){newSize++,head={value:value,next:head}})),this.__ownerID?(this.size=newSize,this._head=head,this.__hash=void 0,this.__altered=!0,this):makeStack(newSize,head)},Stack.prototype.pop=function(){return this.slice(1)},Stack.prototype.unshift=function(){return this.push.apply(this,arguments)},Stack.prototype.unshiftAll=function(iter){return this.pushAll(iter)},Stack.prototype.shift=function(){return this.pop.apply(this,arguments)},Stack.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):emptyStack()},Stack.prototype.slice=function(begin,end){if(wholeSlice(begin,end,this.size))return this;var resolvedBegin=resolveBegin(begin,this.size);if(resolveEnd(end,this.size)!==this.size)return IndexedCollection.prototype.slice.call(this,begin,end);for(var newSize=this.size-resolvedBegin,head=this._head;resolvedBegin--;)head=head.next;return this.__ownerID?(this.size=newSize,this._head=head,this.__hash=void 0,this.__altered=!0,this):makeStack(newSize,head)},Stack.prototype.__ensureOwner=function(ownerID){return ownerID===this.__ownerID?this:ownerID?makeStack(this.size,this._head,ownerID,this.__hash):(this.__ownerID=ownerID,this.__altered=!1,this)},Stack.prototype.__iterate=function(fn,reverse){if(reverse)return this.reverse().__iterate(fn);for(var iterations=0,node=this._head;node&&!1!==fn(node.value,iterations++,this);)node=node.next;return iterations},Stack.prototype.__iterator=function(type,reverse){if(reverse)return this.reverse().__iterator(type);var iterations=0,node=this._head;return new Iterator((function(){if(node){var value=node.value;return node=node.next,iteratorValue(type,iterations++,value)}return{value:void 0,done:!0}}))},Stack.isStack=isStack;var EMPTY_STACK,IS_STACK_SENTINEL="@@__IMMUTABLE_STACK__@@",StackPrototype=Stack.prototype;function makeStack(size,head,ownerID,hash){var map=Object.create(StackPrototype);return map.size=size,map._head=head,map.__ownerID=ownerID,map.__hash=hash,map.__altered=!1,map}function emptyStack(){return EMPTY_STACK||(EMPTY_STACK=makeStack(0))}function mixin(ctor,methods){var keyCopier=function(key){ctor.prototype[key]=methods[key]};return Object.keys(methods).forEach(keyCopier),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(methods).forEach(keyCopier),ctor}StackPrototype[IS_STACK_SENTINEL]=!0,StackPrototype.withMutations=MapPrototype.withMutations,StackPrototype.asMutable=MapPrototype.asMutable,StackPrototype.asImmutable=MapPrototype.asImmutable,StackPrototype.wasAltered=MapPrototype.wasAltered,Iterable.Iterator=Iterator,mixin(Iterable,{toArray:function(){assertNotInfinite(this.size);var array=new Array(this.size||0);return this.valueSeq().__iterate((function(v,i){array[i]=v})),array},toIndexedSeq:function(){return new ToIndexedSequence(this)},toJS:function(){return this.toSeq().map((function(value){return value&&"function"==typeof value.toJS?value.toJS():value})).__toJS()},toJSON:function(){return this.toSeq().map((function(value){return value&&"function"==typeof value.toJSON?value.toJSON():value})).__toJS()},toKeyedSeq:function(){return new ToKeyedSequence(this,!0)},toMap:function(){return Map(this.toKeyedSeq())},toObject:function(){assertNotInfinite(this.size);var object={};return this.__iterate((function(v,k){object[k]=v})),object},toOrderedMap:function(){return OrderedMap(this.toKeyedSeq())},toOrderedSet:function(){return OrderedSet(isKeyed(this)?this.valueSeq():this)},toSet:function(){return Set(isKeyed(this)?this.valueSeq():this)},toSetSeq:function(){return new ToSetSequence(this)},toSeq:function(){return isIndexed(this)?this.toIndexedSeq():isKeyed(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return Stack(isKeyed(this)?this.valueSeq():this)},toList:function(){return List(isKeyed(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(head,tail){return 0===this.size?head+tail:head+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+tail},concat:function(){var values=SLICE$0.call(arguments,0);return reify(this,concatFactory(this,values))},includes:function(searchValue){return this.some((function(value){return is(value,searchValue)}))},entries:function(){return this.__iterator(2)},every:function(predicate,context){assertNotInfinite(this.size);var returnValue=!0;return this.__iterate((function(v,k,c){if(!predicate.call(context,v,k,c))return returnValue=!1,!1})),returnValue},filter:function(predicate,context){return reify(this,filterFactory(this,predicate,context,!0))},find:function(predicate,context,notSetValue){var entry=this.findEntry(predicate,context);return entry?entry[1]:notSetValue},forEach:function(sideEffect,context){return assertNotInfinite(this.size),this.__iterate(context?sideEffect.bind(context):sideEffect)},join:function(separator){assertNotInfinite(this.size),separator=void 0!==separator?""+separator:",";var joined="",isFirst=!0;return this.__iterate((function(v){isFirst?isFirst=!1:joined+=separator,joined+=null!=v?v.toString():""})),joined},keys:function(){return this.__iterator(0)},map:function(mapper,context){return reify(this,mapFactory(this,mapper,context))},reduce:function(reducer,initialReduction,context){var reduction,useFirst;return assertNotInfinite(this.size),arguments.length<2?useFirst=!0:reduction=initialReduction,this.__iterate((function(v,k,c){useFirst?(useFirst=!1,reduction=v):reduction=reducer.call(context,reduction,v,k,c)})),reduction},reduceRight:function(reducer,initialReduction,context){var reversed=this.toKeyedSeq().reverse();return reversed.reduce.apply(reversed,arguments)},reverse:function(){return reify(this,reverseFactory(this,!0))},slice:function(begin,end){return reify(this,sliceFactory(this,begin,end,!0))},some:function(predicate,context){return!this.every(not(predicate),context)},sort:function(comparator){return reify(this,sortFactory(this,comparator))},values:function(){return this.__iterator(1)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some((function(){return!0}))},count:function(predicate,context){return ensureSize(predicate?this.toSeq().filter(predicate,context):this)},countBy:function(grouper,context){return function(iterable,grouper,context){var groups=Map().asMutable();return iterable.__iterate((function(v,k){groups.update(grouper.call(context,v,k,iterable),0,(function(a){return a+1}))})),groups.asImmutable()}(this,grouper,context)},equals:function(other){return deepEqual(this,other)},entrySeq:function(){var iterable=this;if(iterable._cache)return new ArraySeq(iterable._cache);var entriesSequence=iterable.toSeq().map(entryMapper).toIndexedSeq();return entriesSequence.fromEntrySeq=function(){return iterable.toSeq()},entriesSequence},filterNot:function(predicate,context){return this.filter(not(predicate),context)},findEntry:function(predicate,context,notSetValue){var found=notSetValue;return this.__iterate((function(v,k,c){if(predicate.call(context,v,k,c))return found=[k,v],!1})),found},findKey:function(predicate,context){var entry=this.findEntry(predicate,context);return entry&&entry[0]},findLast:function(predicate,context,notSetValue){return this.toKeyedSeq().reverse().find(predicate,context,notSetValue)},findLastEntry:function(predicate,context,notSetValue){return this.toKeyedSeq().reverse().findEntry(predicate,context,notSetValue)},findLastKey:function(predicate,context){return this.toKeyedSeq().reverse().findKey(predicate,context)},first:function(){return this.find(returnTrue)},flatMap:function(mapper,context){return reify(this,function(iterable,mapper,context){var coerce=iterableClass(iterable);return iterable.toSeq().map((function(v,k){return coerce(mapper.call(context,v,k,iterable))})).flatten(!0)}(this,mapper,context))},flatten:function(depth){return reify(this,flattenFactory(this,depth,!0))},fromEntrySeq:function(){return new FromEntriesSequence(this)},get:function(searchKey,notSetValue){return this.find((function(_,key){return is(key,searchKey)}),void 0,notSetValue)},getIn:function(searchKeyPath,notSetValue){for(var step,nested=this,iter=forceIterator(searchKeyPath);!(step=iter.next()).done;){var key=step.value;if((nested=nested&&nested.get?nested.get(key,NOT_SET):NOT_SET)===NOT_SET)return notSetValue}return nested},groupBy:function(grouper,context){return function(iterable,grouper,context){var isKeyedIter=isKeyed(iterable),groups=(isOrdered(iterable)?OrderedMap():Map()).asMutable();iterable.__iterate((function(v,k){groups.update(grouper.call(context,v,k,iterable),(function(a){return(a=a||[]).push(isKeyedIter?[k,v]:v),a}))}));var coerce=iterableClass(iterable);return groups.map((function(arr){return reify(iterable,coerce(arr))}))}(this,grouper,context)},has:function(searchKey){return this.get(searchKey,NOT_SET)!==NOT_SET},hasIn:function(searchKeyPath){return this.getIn(searchKeyPath,NOT_SET)!==NOT_SET},isSubset:function(iter){return iter="function"==typeof iter.includes?iter:Iterable(iter),this.every((function(value){return iter.includes(value)}))},isSuperset:function(iter){return(iter="function"==typeof iter.isSubset?iter:Iterable(iter)).isSubset(this)},keyOf:function(searchValue){return this.findKey((function(value){return is(value,searchValue)}))},keySeq:function(){return this.toSeq().map(keyMapper).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},lastKeyOf:function(searchValue){return this.toKeyedSeq().reverse().keyOf(searchValue)},max:function(comparator){return maxFactory(this,comparator)},maxBy:function(mapper,comparator){return maxFactory(this,comparator,mapper)},min:function(comparator){return maxFactory(this,comparator?neg(comparator):defaultNegComparator)},minBy:function(mapper,comparator){return maxFactory(this,comparator?neg(comparator):defaultNegComparator,mapper)},rest:function(){return this.slice(1)},skip:function(amount){return this.slice(Math.max(0,amount))},skipLast:function(amount){return reify(this,this.toSeq().reverse().skip(amount).reverse())},skipWhile:function(predicate,context){return reify(this,skipWhileFactory(this,predicate,context,!0))},skipUntil:function(predicate,context){return this.skipWhile(not(predicate),context)},sortBy:function(mapper,comparator){return reify(this,sortFactory(this,comparator,mapper))},take:function(amount){return this.slice(0,Math.max(0,amount))},takeLast:function(amount){return reify(this,this.toSeq().reverse().take(amount).reverse())},takeWhile:function(predicate,context){return reify(this,function(iterable,predicate,context){var takeSequence=makeSequence(iterable);return takeSequence.__iterateUncached=function(fn,reverse){var this$0=this;if(reverse)return this.cacheResult().__iterate(fn,reverse);var iterations=0;return iterable.__iterate((function(v,k,c){return predicate.call(context,v,k,c)&&++iterations&&fn(v,k,this$0)})),iterations},takeSequence.__iteratorUncached=function(type,reverse){var this$0=this;if(reverse)return this.cacheResult().__iterator(type,reverse);var iterator=iterable.__iterator(2,reverse),iterating=!0;return new Iterator((function(){if(!iterating)return{value:void 0,done:!0};var step=iterator.next();if(step.done)return step;var entry=step.value,k=entry[0],v=entry[1];return predicate.call(context,v,k,this$0)?2===type?step:iteratorValue(type,k,v,step):(iterating=!1,{value:void 0,done:!0})}))},takeSequence}(this,predicate,context))},takeUntil:function(predicate,context){return this.takeWhile(not(predicate),context)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=function(iterable){if(iterable.size===1/0)return 0;var ordered=isOrdered(iterable),keyed=isKeyed(iterable),h=ordered?1:0;return function(size,h){return h=imul(h,3432918353),h=imul(h<<15|h>>>-15,461845907),h=imul(h<<13|h>>>-13,5),h=imul((h=(h+3864292196|0)^size)^h>>>16,2246822507),h=smi((h=imul(h^h>>>13,3266489909))^h>>>16)}(iterable.__iterate(keyed?ordered?function(v,k){h=31*h+hashMerge(hash(v),hash(k))|0}:function(v,k){h=h+hashMerge(hash(v),hash(k))|0}:ordered?function(v){h=31*h+hash(v)|0}:function(v){h=h+hash(v)|0}),h)}(this))}});var IterablePrototype=Iterable.prototype;IterablePrototype[IS_ITERABLE_SENTINEL]=!0,IterablePrototype[ITERATOR_SYMBOL]=IterablePrototype.values,IterablePrototype.__toJS=IterablePrototype.toArray,IterablePrototype.__toStringMapper=quoteString,IterablePrototype.inspect=IterablePrototype.toSource=function(){return this.toString()},IterablePrototype.chain=IterablePrototype.flatMap,IterablePrototype.contains=IterablePrototype.includes,mixin(KeyedIterable,{flip:function(){return reify(this,flipFactory(this))},mapEntries:function(mapper,context){var this$0=this,iterations=0;return reify(this,this.toSeq().map((function(v,k){return mapper.call(context,[k,v],iterations++,this$0)})).fromEntrySeq())},mapKeys:function(mapper,context){var this$0=this;return reify(this,this.toSeq().flip().map((function(k,v){return mapper.call(context,k,v,this$0)})).flip())}});var KeyedIterablePrototype=KeyedIterable.prototype;function keyMapper(v,k){return k}function entryMapper(v,k){return[k,v]}function not(predicate){return function(){return!predicate.apply(this,arguments)}}function neg(predicate){return function(){return-predicate.apply(this,arguments)}}function quoteString(value){return"string"==typeof value?JSON.stringify(value):String(value)}function defaultZipper(){return arrCopy(arguments)}function defaultNegComparator(a,b){return a<b?1:a>b?-1:0}function hashMerge(a,b){return a^b+2654435769+(a<<6)+(a>>2)|0}return KeyedIterablePrototype[IS_KEYED_SENTINEL]=!0,KeyedIterablePrototype[ITERATOR_SYMBOL]=IterablePrototype.entries,KeyedIterablePrototype.__toJS=IterablePrototype.toObject,KeyedIterablePrototype.__toStringMapper=function(v,k){return JSON.stringify(k)+": "+quoteString(v)},mixin(IndexedIterable,{toKeyedSeq:function(){return new ToKeyedSequence(this,!1)},filter:function(predicate,context){return reify(this,filterFactory(this,predicate,context,!1))},findIndex:function(predicate,context){var entry=this.findEntry(predicate,context);return entry?entry[0]:-1},indexOf:function(searchValue){var key=this.keyOf(searchValue);return void 0===key?-1:key},lastIndexOf:function(searchValue){var key=this.lastKeyOf(searchValue);return void 0===key?-1:key},reverse:function(){return reify(this,reverseFactory(this,!1))},slice:function(begin,end){return reify(this,sliceFactory(this,begin,end,!1))},splice:function(index,removeNum){var numArgs=arguments.length;if(removeNum=Math.max(0|removeNum,0),0===numArgs||2===numArgs&&!removeNum)return this;index=resolveBegin(index,index<0?this.count():this.size);var spliced=this.slice(0,index);return reify(this,1===numArgs?spliced:spliced.concat(arrCopy(arguments,2),this.slice(index+removeNum)))},findLastIndex:function(predicate,context){var entry=this.findLastEntry(predicate,context);return entry?entry[0]:-1},first:function(){return this.get(0)},flatten:function(depth){return reify(this,flattenFactory(this,depth,!1))},get:function(index,notSetValue){return(index=wrapIndex(this,index))<0||this.size===1/0||void 0!==this.size&&index>this.size?notSetValue:this.find((function(_,key){return key===index}),void 0,notSetValue)},has:function(index){return(index=wrapIndex(this,index))>=0&&(void 0!==this.size?this.size===1/0||index<this.size:-1!==this.indexOf(index))},interpose:function(separator){return reify(this,function(iterable,separator){var interposedSequence=makeSequence(iterable);return interposedSequence.size=iterable.size&&2*iterable.size-1,interposedSequence.__iterateUncached=function(fn,reverse){var this$0=this,iterations=0;return iterable.__iterate((function(v,k){return(!iterations||!1!==fn(separator,iterations++,this$0))&&!1!==fn(v,iterations++,this$0)}),reverse),iterations},interposedSequence.__iteratorUncached=function(type,reverse){var step,iterator=iterable.__iterator(1,reverse),iterations=0;return new Iterator((function(){return(!step||iterations%2)&&(step=iterator.next()).done?step:iterations%2?iteratorValue(type,iterations++,separator):iteratorValue(type,iterations++,step.value,step)}))},interposedSequence}(this,separator))},interleave:function(){var iterables=[this].concat(arrCopy(arguments)),zipped=zipWithFactory(this.toSeq(),IndexedSeq.of,iterables),interleaved=zipped.flatten(!0);return zipped.size&&(interleaved.size=zipped.size*iterables.length),reify(this,interleaved)},keySeq:function(){return Range(0,this.size)},last:function(){return this.get(-1)},skipWhile:function(predicate,context){return reify(this,skipWhileFactory(this,predicate,context,!1))},zip:function(){var iterables=[this].concat(arrCopy(arguments));return reify(this,zipWithFactory(this,defaultZipper,iterables))},zipWith:function(zipper){var iterables=arrCopy(arguments);return iterables[0]=this,reify(this,zipWithFactory(this,zipper,iterables))}}),IndexedIterable.prototype[IS_INDEXED_SENTINEL]=!0,IndexedIterable.prototype[IS_ORDERED_SENTINEL]=!0,mixin(SetIterable,{get:function(value,notSetValue){return this.has(value)?value:notSetValue},includes:function(value){return this.has(value)},keySeq:function(){return this.valueSeq()}}),SetIterable.prototype.has=IterablePrototype.includes,SetIterable.prototype.contains=SetIterable.prototype.includes,mixin(KeyedSeq,KeyedIterable.prototype),mixin(IndexedSeq,IndexedIterable.prototype),mixin(SetSeq,SetIterable.prototype),mixin(KeyedCollection,KeyedIterable.prototype),mixin(IndexedCollection,IndexedIterable.prototype),mixin(SetCollection,SetIterable.prototype),{Iterable:Iterable,Seq:Seq,Collection:Collection,Map:Map,OrderedMap:OrderedMap,List:List,Stack:Stack,Set:Set,OrderedSet:OrderedSet,Record:Record,Range:Range,Repeat:Repeat,is:is,fromJS:fromJS}}))},{}],103:[function(require,module,exports){/*object-assign(c) Sindre Sorhus@license MIT*/"use strict";var getOwnPropertySymbols=Object.getOwnPropertySymbols,hasOwnProperty=Object.prototype.hasOwnProperty,propIsEnumerable=Object.prototype.propertyIsEnumerable;function toObject(val){if(null==val)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(val)}module.exports=function(){try{if(!Object.assign)return!1;var test1=new String("abc");if(test1[5]="de","5"===Object.getOwnPropertyNames(test1)[0])return!1;for(var test2={},i=0;i<10;i++)test2["_"+String.fromCharCode(i)]=i;if("0123456789"!==Object.getOwnPropertyNames(test2).map((function(n){return test2[n]})).join(""))return!1;var test3={};return"abcdefghijklmnopqrst".split("").forEach((function(letter){test3[letter]=letter})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},test3)).join("")}catch(err){return!1}}()?Object.assign:function(target,source){for(var from,symbols,to=toObject(target),s=1;s<arguments.length;s++){for(var key in from=Object(arguments[s]))hasOwnProperty.call(from,key)&&(to[key]=from[key]);if(getOwnPropertySymbols){symbols=getOwnPropertySymbols(from);for(var i=0;i<symbols.length;i++)propIsEnumerable.call(from,symbols[i])&&(to[symbols[i]]=from[symbols[i]])}}return to}},{}],104:[function(require,module,exports){var cachedSetTimeout,cachedClearTimeout,process=module.exports={};function defaultSetTimout(){throw new Error("setTimeout has not been defined")}function defaultClearTimeout(){throw new Error("clearTimeout has not been defined")}function runTimeout(fun){if(cachedSetTimeout===setTimeout)return setTimeout(fun,0);if((cachedSetTimeout===defaultSetTimout||!cachedSetTimeout)&&setTimeout)return cachedSetTimeout=setTimeout,setTimeout(fun,0);try{return cachedSetTimeout(fun,0)}catch(e){try{return cachedSetTimeout.call(null,fun,0)}catch(e){return cachedSetTimeout.call(this,fun,0)}}}!function(){try{cachedSetTimeout="function"==typeof setTimeout?setTimeout:defaultSetTimout}catch(e){cachedSetTimeout=defaultSetTimout}try{cachedClearTimeout="function"==typeof clearTimeout?clearTimeout:defaultClearTimeout}catch(e){cachedClearTimeout=defaultClearTimeout}}();var currentQueue,queue=[],draining=!1,queueIndex=-1;function cleanUpNextTick(){draining&&currentQueue&&(draining=!1,currentQueue.length?queue=currentQueue.concat(queue):queueIndex=-1,queue.length&&drainQueue())}function drainQueue(){if(!draining){var timeout=runTimeout(cleanUpNextTick);draining=!0;for(var len=queue.length;len;){for(currentQueue=queue,queue=[];++queueIndex<len;)currentQueue&&currentQueue[queueIndex].run();queueIndex=-1,len=queue.length}currentQueue=null,draining=!1,function(marker){if(cachedClearTimeout===clearTimeout)return clearTimeout(marker);if((cachedClearTimeout===defaultClearTimeout||!cachedClearTimeout)&&clearTimeout)return cachedClearTimeout=clearTimeout,clearTimeout(marker);try{cachedClearTimeout(marker)}catch(e){try{return cachedClearTimeout.call(null,marker)}catch(e){return cachedClearTimeout.call(this,marker)}}}(timeout)}}function Item(fun,array){this.fun=fun,this.array=array}function noop(){}process.nextTick=function(fun){var args=new Array(arguments.length-1);if(arguments.length>1)for(var i=1;i<arguments.length;i++)args[i-1]=arguments[i];queue.push(new Item(fun,args)),1!==queue.length||draining||runTimeout(drainQueue)},Item.prototype.run=function(){this.fun.apply(null,this.array)},process.title="browser",process.browser=!0,process.env={},process.argv=[],process.version="",process.versions={},process.on=noop,process.addListener=noop,process.once=noop,process.off=noop,process.removeListener=noop,process.removeAllListeners=noop,process.emit=noop,process.prependListener=noop,process.prependOnceListener=noop,process.listeners=function(name){return[]},process.binding=function(name){throw new Error("process.binding is not supported")},process.cwd=function(){return"/"},process.chdir=function(dir){throw new Error("process.chdir is not supported")},process.umask=function(){return 0}},{}],105:[function(require,module,exports){"use strict";function checkPropTypes(typeSpecs,values,location,componentName,getStack){}checkPropTypes.resetWarningCache=function(){0},module.exports=checkPropTypes},{"./lib/ReactPropTypesSecret":109}],106:[function(require,module,exports){"use strict";var ReactPropTypesSecret=require("./lib/ReactPropTypesSecret");function emptyFunction(){}function emptyFunctionWithReset(){}emptyFunctionWithReset.resetWarningCache=emptyFunction,module.exports=function(){function shim(props,propName,componentName,location,propFullName,secret){if(secret!==ReactPropTypesSecret){var err=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 err.name="Invariant Violation",err}}function getShim(){return shim}shim.isRequired=shim;var ReactPropTypes={array:shim,bool:shim,func:shim,number:shim,object:shim,string:shim,symbol:shim,any:shim,arrayOf:getShim,element:shim,elementType:shim,instanceOf:getShim,node:shim,objectOf:getShim,oneOf:getShim,oneOfType:getShim,shape:getShim,exact:getShim,checkPropTypes:emptyFunctionWithReset,resetWarningCache:emptyFunction};return ReactPropTypes.PropTypes=ReactPropTypes,ReactPropTypes}},{"./lib/ReactPropTypesSecret":109}],107:[function(require,module,exports){"use strict";var ReactIs=require("react-is"),assign=require("object-assign"),ReactPropTypesSecret=require("./lib/ReactPropTypesSecret"),checkPropTypes=require("./checkPropTypes"),has=Function.call.bind(Object.prototype.hasOwnProperty),printWarning=function(){};function emptyFunctionThatReturnsNull(){return null}module.exports=function(isValidElement,throwOnDirectAccess){var ITERATOR_SYMBOL="function"==typeof Symbol&&Symbol.iterator;var ReactPropTypes={array:createPrimitiveTypeChecker("array"),bool:createPrimitiveTypeChecker("boolean"),func:createPrimitiveTypeChecker("function"),number:createPrimitiveTypeChecker("number"),object:createPrimitiveTypeChecker("object"),string:createPrimitiveTypeChecker("string"),symbol:createPrimitiveTypeChecker("symbol"),any:createChainableTypeChecker(emptyFunctionThatReturnsNull),arrayOf:function(typeChecker){return createChainableTypeChecker((function(props,propName,componentName,location,propFullName){if("function"!=typeof typeChecker)return new PropTypeError("Property `"+propFullName+"` of component `"+componentName+"` has invalid PropType notation inside arrayOf.");var propValue=props[propName];if(!Array.isArray(propValue))return new PropTypeError("Invalid "+location+" `"+propFullName+"` of type `"+getPropType(propValue)+"` supplied to `"+componentName+"`, expected an array.");for(var i=0;i<propValue.length;i++){var error=typeChecker(propValue,i,componentName,location,propFullName+"["+i+"]",ReactPropTypesSecret);if(error instanceof Error)return error}return null}))},element:createChainableTypeChecker((function(props,propName,componentName,location,propFullName){var propValue=props[propName];return isValidElement(propValue)?null:new PropTypeError("Invalid "+location+" `"+propFullName+"` of type `"+getPropType(propValue)+"` supplied to `"+componentName+"`, expected a single ReactElement.")})),elementType:createChainableTypeChecker((function(props,propName,componentName,location,propFullName){var propValue=props[propName];return ReactIs.isValidElementType(propValue)?null:new PropTypeError("Invalid "+location+" `"+propFullName+"` of type `"+getPropType(propValue)+"` supplied to `"+componentName+"`, expected a single ReactElement type.")})),instanceOf:function(expectedClass){return createChainableTypeChecker((function(props,propName,componentName,location,propFullName){if(!(props[propName]instanceof expectedClass)){var expectedClassName=expectedClass.name||"<<anonymous>>";return new PropTypeError("Invalid "+location+" `"+propFullName+"` of type `"+function(propValue){if(!propValue.constructor||!propValue.constructor.name)return"<<anonymous>>";return propValue.constructor.name}(props[propName])+"` supplied to `"+componentName+"`, expected instance of `"+expectedClassName+"`.")}return null}))},node:createChainableTypeChecker((function(props,propName,componentName,location,propFullName){return isNode(props[propName])?null:new PropTypeError("Invalid "+location+" `"+propFullName+"` supplied to `"+componentName+"`, expected a ReactNode.")})),objectOf:function(typeChecker){return createChainableTypeChecker((function(props,propName,componentName,location,propFullName){if("function"!=typeof typeChecker)return new PropTypeError("Property `"+propFullName+"` of component `"+componentName+"` has invalid PropType notation inside objectOf.");var propValue=props[propName],propType=getPropType(propValue);if("object"!==propType)return new PropTypeError("Invalid "+location+" `"+propFullName+"` of type `"+propType+"` supplied to `"+componentName+"`, expected an object.");for(var key in propValue)if(has(propValue,key)){var error=typeChecker(propValue,key,componentName,location,propFullName+"."+key,ReactPropTypesSecret);if(error instanceof Error)return error}return null}))},oneOf:function(expectedValues){if(!Array.isArray(expectedValues))return emptyFunctionThatReturnsNull;function validate(props,propName,componentName,location,propFullName){for(var propValue=props[propName],i=0;i<expectedValues.length;i++)if(is(propValue,expectedValues[i]))return null;var valuesString=JSON.stringify(expectedValues,(function(key,value){return"symbol"===getPreciseType(value)?String(value):value}));return new PropTypeError("Invalid "+location+" `"+propFullName+"` of value `"+String(propValue)+"` supplied to `"+componentName+"`, expected one of "+valuesString+".")}return createChainableTypeChecker(validate)},oneOfType:function(arrayOfTypeCheckers){if(!Array.isArray(arrayOfTypeCheckers))return emptyFunctionThatReturnsNull;for(var i=0;i<arrayOfTypeCheckers.length;i++){var checker=arrayOfTypeCheckers[i];if("function"!=typeof checker)return printWarning("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+getPostfixForTypeWarning(checker)+" at index "+i+"."),emptyFunctionThatReturnsNull}return createChainableTypeChecker((function(props,propName,componentName,location,propFullName){for(var i=0;i<arrayOfTypeCheckers.length;i++){if(null==(0,arrayOfTypeCheckers[i])(props,propName,componentName,location,propFullName,ReactPropTypesSecret))return null}return new PropTypeError("Invalid "+location+" `"+propFullName+"` supplied to `"+componentName+"`.")}))},shape:function(shapeTypes){return createChainableTypeChecker((function(props,propName,componentName,location,propFullName){var propValue=props[propName],propType=getPropType(propValue);if("object"!==propType)return new PropTypeError("Invalid "+location+" `"+propFullName+"` of type `"+propType+"` supplied to `"+componentName+"`, expected `object`.");for(var key in shapeTypes){var checker=shapeTypes[key];if(checker){var error=checker(propValue,key,componentName,location,propFullName+"."+key,ReactPropTypesSecret);if(error)return error}}return null}))},exact:function(shapeTypes){return createChainableTypeChecker((function(props,propName,componentName,location,propFullName){var propValue=props[propName],propType=getPropType(propValue);if("object"!==propType)return new PropTypeError("Invalid "+location+" `"+propFullName+"` of type `"+propType+"` supplied to `"+componentName+"`, expected `object`.");var allKeys=assign({},props[propName],shapeTypes);for(var key in allKeys){var checker=shapeTypes[key];if(!checker)return new PropTypeError("Invalid "+location+" `"+propFullName+"` key `"+key+"` supplied to `"+componentName+"`.\nBad object: "+JSON.stringify(props[propName],null,"  ")+"\nValid keys: "+JSON.stringify(Object.keys(shapeTypes),null,"  "));var error=checker(propValue,key,componentName,location,propFullName+"."+key,ReactPropTypesSecret);if(error)return error}return null}))}};function is(x,y){return x===y?0!==x||1/x==1/y:x!=x&&y!=y}function PropTypeError(message){this.message=message,this.stack=""}function createChainableTypeChecker(validate){function checkType(isRequired,props,propName,componentName,location,propFullName,secret){if((componentName=componentName||"<<anonymous>>",propFullName=propFullName||propName,secret!==ReactPropTypesSecret)&&throwOnDirectAccess){var err=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 err.name="Invariant Violation",err}return null==props[propName]?isRequired?null===props[propName]?new PropTypeError("The "+location+" `"+propFullName+"` is marked as required in `"+componentName+"`, but its value is `null`."):new PropTypeError("The "+location+" `"+propFullName+"` is marked as required in `"+componentName+"`, but its value is `undefined`."):null:validate(props,propName,componentName,location,propFullName)}var chainedCheckType=checkType.bind(null,!1);return chainedCheckType.isRequired=checkType.bind(null,!0),chainedCheckType}function createPrimitiveTypeChecker(expectedType){return createChainableTypeChecker((function(props,propName,componentName,location,propFullName,secret){var propValue=props[propName];return getPropType(propValue)!==expectedType?new PropTypeError("Invalid "+location+" `"+propFullName+"` of type `"+getPreciseType(propValue)+"` supplied to `"+componentName+"`, expected `"+expectedType+"`."):null}))}function isNode(propValue){switch(typeof propValue){case"number":case"string":case"undefined":return!0;case"boolean":return!propValue;case"object":if(Array.isArray(propValue))return propValue.every(isNode);if(null===propValue||isValidElement(propValue))return!0;var iteratorFn=function(maybeIterable){var iteratorFn=maybeIterable&&(ITERATOR_SYMBOL&&maybeIterable[ITERATOR_SYMBOL]||maybeIterable["@@iterator"]);if("function"==typeof iteratorFn)return iteratorFn}(propValue);if(!iteratorFn)return!1;var step,iterator=iteratorFn.call(propValue);if(iteratorFn!==propValue.entries){for(;!(step=iterator.next()).done;)if(!isNode(step.value))return!1}else for(;!(step=iterator.next()).done;){var entry=step.value;if(entry&&!isNode(entry[1]))return!1}return!0;default:return!1}}function getPropType(propValue){var propType=typeof propValue;return Array.isArray(propValue)?"array":propValue instanceof RegExp?"object":function(propType,propValue){return"symbol"===propType||!!propValue&&("Symbol"===propValue["@@toStringTag"]||"function"==typeof Symbol&&propValue instanceof Symbol)}(propType,propValue)?"symbol":propType}function getPreciseType(propValue){if(null==propValue)return""+propValue;var propType=getPropType(propValue);if("object"===propType){if(propValue instanceof Date)return"date";if(propValue instanceof RegExp)return"regexp"}return propType}function getPostfixForTypeWarning(value){var type=getPreciseType(value);switch(type){case"array":case"object":return"an "+type;case"boolean":case"date":case"regexp":return"a "+type;default:return type}}return PropTypeError.prototype=Error.prototype,ReactPropTypes.checkPropTypes=checkPropTypes,ReactPropTypes.resetWarningCache=checkPropTypes.resetWarningCache,ReactPropTypes.PropTypes=ReactPropTypes,ReactPropTypes}},{"./checkPropTypes":105,"./lib/ReactPropTypesSecret":109,"object-assign":103,"react-is":115}],108:[function(require,module,exports){module.exports=require("./factoryWithThrowingShims")()},{"./factoryWithThrowingShims":106,"./factoryWithTypeCheckers":107,"react-is":115}],109:[function(require,module,exports){"use strict";module.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},{}],110:[function(require,module,exports){/** @license React v16.14.0 * react-dom.development.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */"use strict"},{"object-assign":103,"prop-types/checkPropTypes":105,react:146,scheduler:156,"scheduler/tracing":157}],111:[function(require,module,exports){/** @license React v16.14.0 * react-dom.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */"use strict";var aa=require("react"),n=require("object-assign"),r=require("scheduler");function u(a){for(var b="https://reactjs.org/docs/error-decoder.html?invariant="+a,c=1;c<arguments.length;c++)b+="&args[]="+encodeURIComponent(arguments[c]);return"Minified React error #"+a+"; visit "+b+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!aa)throw Error(u(227));function ba(a,b,c,d,e,f,g,h,k){var l=Array.prototype.slice.call(arguments,3);try{b.apply(c,l)}catch(m){this.onError(m)}}var da=!1,ea=null,fa=!1,ha=null,ia={onError:function(a){da=!0,ea=a}};function ja(a,b,c,d,e,f,g,h,k){da=!1,ea=null,ba.apply(ia,arguments)}var la=null,ma=null,na=null;function oa(a,b,c){var d=a.type||"unknown-event";a.currentTarget=na(c),function(a,b,c,d,e,f,g,h,k){if(ja.apply(this,arguments),da){if(!da)throw Error(u(198));var l=ea;da=!1,ea=null,fa||(fa=!0,ha=l)}}(d,b,void 0,a),a.currentTarget=null}var pa=null,qa={};function ra(){if(pa)for(var a in qa){var b=qa[a],c=pa.indexOf(a);if(!(-1<c))throw Error(u(96,a));if(!sa[c]){if(!b.extractEvents)throw Error(u(97,a));for(var d in sa[c]=b,c=b.eventTypes){var e=void 0,f=c[d],g=b,h=d;if(ta.hasOwnProperty(h))throw Error(u(99,h));ta[h]=f;var k=f.phasedRegistrationNames;if(k){for(e in k)k.hasOwnProperty(e)&&ua(k[e],g,h);e=!0}else f.registrationName?(ua(f.registrationName,g,h),e=!0):e=!1;if(!e)throw Error(u(98,d,a))}}}}function ua(a,b,c){if(va[a])throw Error(u(100,a));va[a]=b,wa[a]=b.eventTypes[c].dependencies}var sa=[],ta={},va={},wa={};function xa(a){var c,b=!1;for(c in a)if(a.hasOwnProperty(c)){var d=a[c];if(!qa.hasOwnProperty(c)||qa[c]!==d){if(qa[c])throw Error(u(102,c));qa[c]=d,b=!0}}b&&ra()}var ya=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),za=null,Aa=null,Ba=null;function Ca(a){if(a=ma(a)){if("function"!=typeof za)throw Error(u(280));var b=a.stateNode;b&&(b=la(b),za(a.stateNode,a.type,b))}}function Da(a){Aa?Ba?Ba.push(a):Ba=[a]:Aa=a}function Ea(){if(Aa){var a=Aa,b=Ba;if(Ba=Aa=null,Ca(a),b)for(a=0;a<b.length;a++)Ca(b[a])}}function Fa(a,b){return a(b)}function Ga(a,b,c,d,e){return a(b,c,d,e)}function Ha(){}var Ia=Fa,Ja=!1,Ka=!1;function La(){null===Aa&&null===Ba||(Ha(),Ea())}function Ma(a,b,c){if(Ka)return a(b,c);Ka=!0;try{return Ia(a,b,c)}finally{Ka=!1,La()}}var Na=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Oa=Object.prototype.hasOwnProperty,Pa={},Qa={};function v(a,b,c,d,e,f){this.acceptsBooleans=2===b||3===b||4===b,this.attributeName=d,this.attributeNamespace=e,this.mustUseProperty=c,this.propertyName=a,this.type=b,this.sanitizeURL=f}var C={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(a){C[a]=new v(a,0,!1,a,null,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(a){var b=a[0];C[b]=new v(b,1,!1,a[1],null,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(a){C[a]=new v(a,2,!1,a.toLowerCase(),null,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(a){C[a]=new v(a,2,!1,a,null,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(a){C[a]=new v(a,3,!1,a.toLowerCase(),null,!1)})),["checked","multiple","muted","selected"].forEach((function(a){C[a]=new v(a,3,!0,a,null,!1)})),["capture","download"].forEach((function(a){C[a]=new v(a,4,!1,a,null,!1)})),["cols","rows","size","span"].forEach((function(a){C[a]=new v(a,6,!1,a,null,!1)})),["rowSpan","start"].forEach((function(a){C[a]=new v(a,5,!1,a.toLowerCase(),null,!1)}));var Ua=/[\-:]([a-z])/g;function Va(a){return a[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(a){var b=a.replace(Ua,Va);C[b]=new v(b,1,!1,a,null,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(a){var b=a.replace(Ua,Va);C[b]=new v(b,1,!1,a,"http://www.w3.org/1999/xlink",!1)})),["xml:base","xml:lang","xml:space"].forEach((function(a){var b=a.replace(Ua,Va);C[b]=new v(b,1,!1,a,"http://www.w3.org/XML/1998/namespace",!1)})),["tabIndex","crossOrigin"].forEach((function(a){C[a]=new v(a,1,!1,a.toLowerCase(),null,!1)})),C.xlinkHref=new v("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0),["src","href","action","formAction"].forEach((function(a){C[a]=new v(a,1,!1,a.toLowerCase(),null,!0)}));var Wa=aa.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function Xa(a,b,c,d){var e=C.hasOwnProperty(b)?C[b]:null;(null!==e?0===e.type:!d&&(2<b.length&&("o"===b[0]||"O"===b[0])&&("n"===b[1]||"N"===b[1])))||(function(a,b,c,d){if(null==b||function(a,b,c,d){if(null!==c&&0===c.type)return!1;switch(typeof b){case"function":case"symbol":return!0;case"boolean":return!d&&(null!==c?!c.acceptsBooleans:"data-"!==(a=a.toLowerCase().slice(0,5))&&"aria-"!==a);default:return!1}}(a,b,c,d))return!0;if(d)return!1;if(null!==c)switch(c.type){case 3:return!b;case 4:return!1===b;case 5:return isNaN(b);case 6:return isNaN(b)||1>b}return!1}(b,c,e,d)&&(c=null),d||null===e?function(a){return!!Oa.call(Qa,a)||!Oa.call(Pa,a)&&(Na.test(a)?Qa[a]=!0:(Pa[a]=!0,!1))}(b)&&(null===c?a.removeAttribute(b):a.setAttribute(b,""+c)):e.mustUseProperty?a[e.propertyName]=null===c?3!==e.type&&"":c:(b=e.attributeName,d=e.attributeNamespace,null===c?a.removeAttribute(b):(c=3===(e=e.type)||4===e&&!0===c?"":""+c,d?a.setAttributeNS(d,b,c):a.setAttribute(b,c))))}Wa.hasOwnProperty("ReactCurrentDispatcher")||(Wa.ReactCurrentDispatcher={current:null}),Wa.hasOwnProperty("ReactCurrentBatchConfig")||(Wa.ReactCurrentBatchConfig={suspense:null});var Ya=/^(.*)[\\\/]/,E="function"==typeof Symbol&&Symbol.for,Za=E?Symbol.for("react.element"):60103,$a=E?Symbol.for("react.portal"):60106,ab=E?Symbol.for("react.fragment"):60107,bb=E?Symbol.for("react.strict_mode"):60108,cb=E?Symbol.for("react.profiler"):60114,db=E?Symbol.for("react.provider"):60109,eb=E?Symbol.for("react.context"):60110,fb=E?Symbol.for("react.concurrent_mode"):60111,gb=E?Symbol.for("react.forward_ref"):60112,hb=E?Symbol.for("react.suspense"):60113,ib=E?Symbol.for("react.suspense_list"):60120,jb=E?Symbol.for("react.memo"):60115,kb=E?Symbol.for("react.lazy"):60116,lb=E?Symbol.for("react.block"):60121,mb="function"==typeof Symbol&&Symbol.iterator;function nb(a){return null===a||"object"!=typeof a?null:"function"==typeof(a=mb&&a[mb]||a["@@iterator"])?a:null}function pb(a){if(null==a)return null;if("function"==typeof a)return a.displayName||a.name||null;if("string"==typeof a)return a;switch(a){case ab:return"Fragment";case $a:return"Portal";case cb:return"Profiler";case bb:return"StrictMode";case hb:return"Suspense";case ib:return"SuspenseList"}if("object"==typeof a)switch(a.$$typeof){case eb:return"Context.Consumer";case db:return"Context.Provider";case gb:var b=a.render;return b=b.displayName||b.name||"",a.displayName||(""!==b?"ForwardRef("+b+")":"ForwardRef");case jb:return pb(a.type);case lb:return pb(a.render);case kb:if(a=1===a._status?a._result:null)return pb(a)}return null}function qb(a){var b="";do{a:switch(a.tag){case 3:case 4:case 6:case 7:case 10:case 9:var c="";break a;default:var d=a._debugOwner,e=a._debugSource,f=pb(a.type);c=null,d&&(c=pb(d.type)),d=f,f="",e?f=" (at "+e.fileName.replace(Ya,"")+":"+e.lineNumber+")":c&&(f=" (created by "+c+")"),c="\n    in "+(d||"Unknown")+f}b+=c,a=a.return}while(a);return b}function rb(a){switch(typeof a){case"boolean":case"number":case"object":case"string":case"undefined":return a;default:return""}}function sb(a){var b=a.type;return(a=a.nodeName)&&"input"===a.toLowerCase()&&("checkbox"===b||"radio"===b)}function xb(a){a._valueTracker||(a._valueTracker=function(a){var b=sb(a)?"checked":"value",c=Object.getOwnPropertyDescriptor(a.constructor.prototype,b),d=""+a[b];if(!a.hasOwnProperty(b)&&void 0!==c&&"function"==typeof c.get&&"function"==typeof c.set){var e=c.get,f=c.set;return Object.defineProperty(a,b,{configurable:!0,get:function(){return e.call(this)},set:function(a){d=""+a,f.call(this,a)}}),Object.defineProperty(a,b,{enumerable:c.enumerable}),{getValue:function(){return d},setValue:function(a){d=""+a},stopTracking:function(){a._valueTracker=null,delete a[b]}}}}(a))}function yb(a){if(!a)return!1;var b=a._valueTracker;if(!b)return!0;var c=b.getValue(),d="";return a&&(d=sb(a)?a.checked?"true":"false":a.value),(a=d)!==c&&(b.setValue(a),!0)}function zb(a,b){var c=b.checked;return n({},b,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=c?c:a._wrapperState.initialChecked})}function Ab(a,b){var c=null==b.defaultValue?"":b.defaultValue,d=null!=b.checked?b.checked:b.defaultChecked;c=rb(null!=b.value?b.value:c),a._wrapperState={initialChecked:d,initialValue:c,controlled:"checkbox"===b.type||"radio"===b.type?null!=b.checked:null!=b.value}}function Bb(a,b){null!=(b=b.checked)&&Xa(a,"checked",b,!1)}function Cb(a,b){Bb(a,b);var c=rb(b.value),d=b.type;if(null!=c)"number"===d?(0===c&&""===a.value||a.value!=c)&&(a.value=""+c):a.value!==""+c&&(a.value=""+c);else if("submit"===d||"reset"===d)return void a.removeAttribute("value");b.hasOwnProperty("value")?Db(a,b.type,c):b.hasOwnProperty("defaultValue")&&Db(a,b.type,rb(b.defaultValue)),null==b.checked&&null!=b.defaultChecked&&(a.defaultChecked=!!b.defaultChecked)}function Eb(a,b,c){if(b.hasOwnProperty("value")||b.hasOwnProperty("defaultValue")){var d=b.type;if(!("submit"!==d&&"reset"!==d||void 0!==b.value&&null!==b.value))return;b=""+a._wrapperState.initialValue,c||b===a.value||(a.value=b),a.defaultValue=b}""!==(c=a.name)&&(a.name=""),a.defaultChecked=!!a._wrapperState.initialChecked,""!==c&&(a.name=c)}function Db(a,b,c){"number"===b&&a.ownerDocument.activeElement===a||(null==c?a.defaultValue=""+a._wrapperState.initialValue:a.defaultValue!==""+c&&(a.defaultValue=""+c))}function Gb(a,b){return a=n({children:void 0},b),(b=function(a){var b="";return aa.Children.forEach(a,(function(a){null!=a&&(b+=a)})),b}(b.children))&&(a.children=b),a}function Hb(a,b,c,d){if(a=a.options,b){b={};for(var e=0;e<c.length;e++)b["$"+c[e]]=!0;for(c=0;c<a.length;c++)e=b.hasOwnProperty("$"+a[c].value),a[c].selected!==e&&(a[c].selected=e),e&&d&&(a[c].defaultSelected=!0)}else{for(c=""+rb(c),b=null,e=0;e<a.length;e++){if(a[e].value===c)return a[e].selected=!0,void(d&&(a[e].defaultSelected=!0));null!==b||a[e].disabled||(b=a[e])}null!==b&&(b.selected=!0)}}function Ib(a,b){if(null!=b.dangerouslySetInnerHTML)throw Error(u(91));return n({},b,{value:void 0,defaultValue:void 0,children:""+a._wrapperState.initialValue})}function Jb(a,b){var c=b.value;if(null==c){if(c=b.children,b=b.defaultValue,null!=c){if(null!=b)throw Error(u(92));if(Array.isArray(c)){if(!(1>=c.length))throw Error(u(93));c=c[0]}b=c}null==b&&(b=""),c=b}a._wrapperState={initialValue:rb(c)}}function Kb(a,b){var c=rb(b.value),d=rb(b.defaultValue);null!=c&&((c=""+c)!==a.value&&(a.value=c),null==b.defaultValue&&a.defaultValue!==c&&(a.defaultValue=c)),null!=d&&(a.defaultValue=""+d)}function Lb(a){var b=a.textContent;b===a._wrapperState.initialValue&&""!==b&&null!==b&&(a.value=b)}var Mb_html="http://www.w3.org/1999/xhtml",Mb_svg="http://www.w3.org/2000/svg";function Nb(a){switch(a){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Ob(a,b){return null==a||"http://www.w3.org/1999/xhtml"===a?Nb(b):"http://www.w3.org/2000/svg"===a&&"foreignObject"===b?"http://www.w3.org/1999/xhtml":a}var Pb,Qb=function(a){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(b,c,d,e){MSApp.execUnsafeLocalFunction((function(){return a(b,c)}))}:a}((function(a,b){if(a.namespaceURI!==Mb_svg||"innerHTML"in a)a.innerHTML=b;else{for((Pb=Pb||document.createElement("div")).innerHTML="<svg>"+b.valueOf().toString()+"</svg>",b=Pb.firstChild;a.firstChild;)a.removeChild(a.firstChild);for(;b.firstChild;)a.appendChild(b.firstChild)}}));function Rb(a,b){if(b){var c=a.firstChild;if(c&&c===a.lastChild&&3===c.nodeType)return void(c.nodeValue=b)}a.textContent=b}function Sb(a,b){var c={};return c[a.toLowerCase()]=b.toLowerCase(),c["Webkit"+a]="webkit"+b,c["Moz"+a]="moz"+b,c}var Tb={animationend:Sb("Animation","AnimationEnd"),animationiteration:Sb("Animation","AnimationIteration"),animationstart:Sb("Animation","AnimationStart"),transitionend:Sb("Transition","TransitionEnd")},Ub={},Vb={};function Wb(a){if(Ub[a])return Ub[a];if(!Tb[a])return a;var c,b=Tb[a];for(c in b)if(b.hasOwnProperty(c)&&c in Vb)return Ub[a]=b[c];return a}ya&&(Vb=document.createElement("div").style,"AnimationEvent"in window||(delete Tb.animationend.animation,delete Tb.animationiteration.animation,delete Tb.animationstart.animation),"TransitionEvent"in window||delete Tb.transitionend.transition);var Xb=Wb("animationend"),Yb=Wb("animationiteration"),Zb=Wb("animationstart"),$b=Wb("transitionend"),ac="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),bc=new("function"==typeof WeakMap?WeakMap:Map);function cc(a){var b=bc.get(a);return void 0===b&&(b=new Map,bc.set(a,b)),b}function dc(a){var b=a,c=a;if(a.alternate)for(;b.return;)b=b.return;else{a=b;do{0!=(1026&(b=a).effectTag)&&(c=b.return),a=b.return}while(a)}return 3===b.tag?c:null}function ec(a){if(13===a.tag){var b=a.memoizedState;if(null===b&&(null!==(a=a.alternate)&&(b=a.memoizedState)),null!==b)return b.dehydrated}return null}function fc(a){if(dc(a)!==a)throw Error(u(188))}function hc(a){if(!(a=function(a){var b=a.alternate;if(!b){if(null===(b=dc(a)))throw Error(u(188));return b!==a?null:a}for(var c=a,d=b;;){var e=c.return;if(null===e)break;var f=e.alternate;if(null===f){if(null!==(d=e.return)){c=d;continue}break}if(e.child===f.child){for(f=e.child;f;){if(f===c)return fc(e),a;if(f===d)return fc(e),b;f=f.sibling}throw Error(u(188))}if(c.return!==d.return)c=e,d=f;else{for(var g=!1,h=e.child;h;){if(h===c){g=!0,c=e,d=f;break}if(h===d){g=!0,d=e,c=f;break}h=h.sibling}if(!g){for(h=f.child;h;){if(h===c){g=!0,c=f,d=e;break}if(h===d){g=!0,d=f,c=e;break}h=h.sibling}if(!g)throw Error(u(189))}}if(c.alternate!==d)throw Error(u(190))}if(3!==c.tag)throw Error(u(188));return c.stateNode.current===c?a:b}(a)))return null;for(var b=a;;){if(5===b.tag||6===b.tag)return b;if(b.child)b.child.return=b,b=b.child;else{if(b===a)break;for(;!b.sibling;){if(!b.return||b.return===a)return null;b=b.return}b.sibling.return=b.return,b=b.sibling}}return null}function ic(a,b){if(null==b)throw Error(u(30));return null==a?b:Array.isArray(a)?Array.isArray(b)?(a.push.apply(a,b),a):(a.push(b),a):Array.isArray(b)?[a].concat(b):[a,b]}function jc(a,b,c){Array.isArray(a)?a.forEach(b,c):a&&b.call(c,a)}var kc=null;function lc(a){if(a){var b=a._dispatchListeners,c=a._dispatchInstances;if(Array.isArray(b))for(var d=0;d<b.length&&!a.isPropagationStopped();d++)oa(a,b[d],c[d]);else b&&oa(a,b,c);a._dispatchListeners=null,a._dispatchInstances=null,a.isPersistent()||a.constructor.release(a)}}function mc(a){if(null!==a&&(kc=ic(kc,a)),a=kc,kc=null,a){if(jc(a,lc),kc)throw Error(u(95));if(fa)throw a=ha,fa=!1,ha=null,a}}function nc(a){return(a=a.target||a.srcElement||window).correspondingUseElement&&(a=a.correspondingUseElement),3===a.nodeType?a.parentNode:a}function oc(a){if(!ya)return!1;var b=(a="on"+a)in document;return b||((b=document.createElement("div")).setAttribute(a,"return;"),b="function"==typeof b[a]),b}var pc=[];function qc(a){a.topLevelType=null,a.nativeEvent=null,a.targetInst=null,a.ancestors.length=0,10>pc.length&&pc.push(a)}function rc(a,b,c,d){if(pc.length){var e=pc.pop();return e.topLevelType=a,e.eventSystemFlags=d,e.nativeEvent=b,e.targetInst=c,e}return{topLevelType:a,eventSystemFlags:d,nativeEvent:b,targetInst:c,ancestors:[]}}function sc(a){var b=a.targetInst,c=b;do{if(!c){a.ancestors.push(c);break}var d=c;if(3===d.tag)d=d.stateNode.containerInfo;else{for(;d.return;)d=d.return;d=3!==d.tag?null:d.stateNode.containerInfo}if(!d)break;5!==(b=c.tag)&&6!==b||a.ancestors.push(c),c=tc(d)}while(c);for(c=0;c<a.ancestors.length;c++){b=a.ancestors[c];var e=nc(a.nativeEvent);d=a.topLevelType;var f=a.nativeEvent,g=a.eventSystemFlags;0===c&&(g|=64);for(var h=null,k=0;k<sa.length;k++){var l=sa[k];l&&(l=l.extractEvents(d,b,f,e,g))&&(h=ic(h,l))}mc(h)}}function uc(a,b,c){if(!c.has(a)){switch(a){case"scroll":vc(b,"scroll",!0);break;case"focus":case"blur":vc(b,"focus",!0),vc(b,"blur",!0),c.set("blur",null),c.set("focus",null);break;case"cancel":case"close":oc(a)&&vc(b,a,!0);break;case"invalid":case"submit":case"reset":break;default:-1===ac.indexOf(a)&&F(a,b)}c.set(a,null)}}var wc,xc,yc,zc=!1,Ac=[],Bc=null,Cc=null,Dc=null,Ec=new Map,Fc=new Map,Gc=[],Hc="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput close cancel copy cut paste click change contextmenu reset submit".split(" "),Ic="focus blur dragenter dragleave mouseover mouseout pointerover pointerout gotpointercapture lostpointercapture".split(" ");function Kc(a,b,c,d,e){return{blockedOn:a,topLevelType:b,eventSystemFlags:32|c,nativeEvent:e,container:d}}function Lc(a,b){switch(a){case"focus":case"blur":Bc=null;break;case"dragenter":case"dragleave":Cc=null;break;case"mouseover":case"mouseout":Dc=null;break;case"pointerover":case"pointerout":Ec.delete(b.pointerId);break;case"gotpointercapture":case"lostpointercapture":Fc.delete(b.pointerId)}}function Mc(a,b,c,d,e,f){return null===a||a.nativeEvent!==f?(a=Kc(b,c,d,e,f),null!==b&&(null!==(b=Nc(b))&&xc(b)),a):(a.eventSystemFlags|=d,a)}function Pc(a){var b=tc(a.target);if(null!==b){var c=dc(b);if(null!==c)if(13===(b=c.tag)){if(null!==(b=ec(c)))return a.blockedOn=b,void r.unstable_runWithPriority(a.priority,(function(){yc(c)}))}else if(3===b&&c.stateNode.hydrate)return void(a.blockedOn=3===c.tag?c.stateNode.containerInfo:null)}a.blockedOn=null}function Qc(a){if(null!==a.blockedOn)return!1;var b=Rc(a.topLevelType,a.eventSystemFlags,a.container,a.nativeEvent);if(null!==b){var c=Nc(b);return null!==c&&xc(c),a.blockedOn=b,!1}return!0}function Sc(a,b,c){Qc(a)&&c.delete(b)}function Tc(){for(zc=!1;0<Ac.length;){var a=Ac[0];if(null!==a.blockedOn){null!==(a=Nc(a.blockedOn))&&wc(a);break}var b=Rc(a.topLevelType,a.eventSystemFlags,a.container,a.nativeEvent);null!==b?a.blockedOn=b:Ac.shift()}null!==Bc&&Qc(Bc)&&(Bc=null),null!==Cc&&Qc(Cc)&&(Cc=null),null!==Dc&&Qc(Dc)&&(Dc=null),Ec.forEach(Sc),Fc.forEach(Sc)}function Uc(a,b){a.blockedOn===b&&(a.blockedOn=null,zc||(zc=!0,r.unstable_scheduleCallback(r.unstable_NormalPriority,Tc)))}function Vc(a){function b(b){return Uc(b,a)}if(0<Ac.length){Uc(Ac[0],a);for(var c=1;c<Ac.length;c++){var d=Ac[c];d.blockedOn===a&&(d.blockedOn=null)}}for(null!==Bc&&Uc(Bc,a),null!==Cc&&Uc(Cc,a),null!==Dc&&Uc(Dc,a),Ec.forEach(b),Fc.forEach(b),c=0;c<Gc.length;c++)(d=Gc[c]).blockedOn===a&&(d.blockedOn=null);for(;0<Gc.length&&null===(c=Gc[0]).blockedOn;)Pc(c),null===c.blockedOn&&Gc.shift()}var Wc={},Yc=new Map,Zc=new Map,$c=["abort","abort",Xb,"animationEnd",Yb,"animationIteration",Zb,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",$b,"transitionEnd","waiting","waiting"];function ad(a,b){for(var c=0;c<a.length;c+=2){var d=a[c],e=a[c+1],f="on"+(e[0].toUpperCase()+e.slice(1));f={phasedRegistrationNames:{bubbled:f,captured:f+"Capture"},dependencies:[d],eventPriority:b},Zc.set(d,b),Yc.set(d,f),Wc[e]=f}}ad("blur blur cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focus focus input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),ad("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),ad($c,2);for(var bd="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),cd=0;cd<bd.length;cd++)Zc.set(bd[cd],0);var dd=r.unstable_UserBlockingPriority,ed=r.unstable_runWithPriority,fd=!0;function F(a,b){vc(b,a,!1)}function vc(a,b,c){var d=Zc.get(b);switch(void 0===d?2:d){case 0:d=gd.bind(null,b,1,a);break;case 1:d=hd.bind(null,b,1,a);break;default:d=id.bind(null,b,1,a)}c?a.addEventListener(b,d,!0):a.addEventListener(b,d,!1)}function gd(a,b,c,d){Ja||Ha();var e=id,f=Ja;Ja=!0;try{Ga(e,a,b,c,d)}finally{(Ja=f)||La()}}function hd(a,b,c,d){ed(dd,id.bind(null,a,b,c,d))}function id(a,b,c,d){if(fd)if(0<Ac.length&&-1<Hc.indexOf(a))a=Kc(null,a,b,c,d),Ac.push(a);else{var e=Rc(a,b,c,d);if(null===e)Lc(a,d);else if(-1<Hc.indexOf(a))a=Kc(e,a,b,c,d),Ac.push(a);else if(!function(a,b,c,d,e){switch(b){case"focus":return Bc=Mc(Bc,a,b,c,d,e),!0;case"dragenter":return Cc=Mc(Cc,a,b,c,d,e),!0;case"mouseover":return Dc=Mc(Dc,a,b,c,d,e),!0;case"pointerover":var f=e.pointerId;return Ec.set(f,Mc(Ec.get(f)||null,a,b,c,d,e)),!0;case"gotpointercapture":return f=e.pointerId,Fc.set(f,Mc(Fc.get(f)||null,a,b,c,d,e)),!0}return!1}(e,a,b,c,d)){Lc(a,d),a=rc(a,d,null,b);try{Ma(sc,a)}finally{qc(a)}}}}function Rc(a,b,c,d){if(null!==(c=tc(c=nc(d)))){var e=dc(c);if(null===e)c=null;else{var f=e.tag;if(13===f){if(null!==(c=ec(e)))return c;c=null}else if(3===f){if(e.stateNode.hydrate)return 3===e.tag?e.stateNode.containerInfo:null;c=null}else e!==c&&(c=null)}}a=rc(a,d,c,b);try{Ma(sc,a)}finally{qc(a)}return null}var jd={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},kd=["Webkit","ms","Moz","O"];function ld(a,b,c){return null==b||"boolean"==typeof b||""===b?"":c||"number"!=typeof b||0===b||jd.hasOwnProperty(a)&&jd[a]?(""+b).trim():b+"px"}function md(a,b){for(var c in a=a.style,b)if(b.hasOwnProperty(c)){var d=0===c.indexOf("--"),e=ld(c,b[c],d);"float"===c&&(c="cssFloat"),d?a.setProperty(c,e):a[c]=e}}Object.keys(jd).forEach((function(a){kd.forEach((function(b){b=b+a.charAt(0).toUpperCase()+a.substring(1),jd[b]=jd[a]}))}));var nd=n({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function od(a,b){if(b){if(nd[a]&&(null!=b.children||null!=b.dangerouslySetInnerHTML))throw Error(u(137,a,""));if(null!=b.dangerouslySetInnerHTML){if(null!=b.children)throw Error(u(60));if("object"!=typeof b.dangerouslySetInnerHTML||!("__html"in b.dangerouslySetInnerHTML))throw Error(u(61))}if(null!=b.style&&"object"!=typeof b.style)throw Error(u(62,""))}}function pd(a,b){if(-1===a.indexOf("-"))return"string"==typeof b.is;switch(a){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var qd=Mb_html;function rd(a,b){var c=cc(a=9===a.nodeType||11===a.nodeType?a:a.ownerDocument);b=wa[b];for(var d=0;d<b.length;d++)uc(b[d],a,c)}function sd(){}function td(a){if(void 0===(a=a||("undefined"!=typeof document?document:void 0)))return null;try{return a.activeElement||a.body}catch(b){return a.body}}function ud(a){for(;a&&a.firstChild;)a=a.firstChild;return a}function vd(a,b){var d,c=ud(a);for(a=0;c;){if(3===c.nodeType){if(d=a+c.textContent.length,a<=b&&d>=b)return{node:c,offset:b-a};a=d}a:{for(;c;){if(c.nextSibling){c=c.nextSibling;break a}c=c.parentNode}c=void 0}c=ud(c)}}function xd(){for(var a=window,b=td();b instanceof a.HTMLIFrameElement;){try{var c="string"==typeof b.contentWindow.location.href}catch(d){c=!1}if(!c)break;b=td((a=b.contentWindow).document)}return b}function yd(a){var b=a&&a.nodeName&&a.nodeName.toLowerCase();return b&&("input"===b&&("text"===a.type||"search"===a.type||"tel"===a.type||"url"===a.type||"password"===a.type)||"textarea"===b||"true"===a.contentEditable)}var Dd=null,Ed=null;function Fd(a,b){switch(a){case"button":case"input":case"select":case"textarea":return!!b.autoFocus}return!1}function Gd(a,b){return"textarea"===a||"option"===a||"noscript"===a||"string"==typeof b.children||"number"==typeof b.children||"object"==typeof b.dangerouslySetInnerHTML&&null!==b.dangerouslySetInnerHTML&&null!=b.dangerouslySetInnerHTML.__html}var Hd="function"==typeof setTimeout?setTimeout:void 0,Id="function"==typeof clearTimeout?clearTimeout:void 0;function Jd(a){for(;null!=a;a=a.nextSibling){var b=a.nodeType;if(1===b||3===b)break}return a}function Kd(a){a=a.previousSibling;for(var b=0;a;){if(8===a.nodeType){var c=a.data;if("$"===c||"$!"===c||"$?"===c){if(0===b)return a;b--}else"/$"===c&&b++}a=a.previousSibling}return null}var Ld=Math.random().toString(36).slice(2),Md="__reactInternalInstance$"+Ld,Nd="__reactEventHandlers$"+Ld,Od="__reactContainere$"+Ld;function tc(a){var b=a[Md];if(b)return b;for(var c=a.parentNode;c;){if(b=c[Od]||c[Md]){if(c=b.alternate,null!==b.child||null!==c&&null!==c.child)for(a=Kd(a);null!==a;){if(c=a[Md])return c;a=Kd(a)}return b}c=(a=c).parentNode}return null}function Nc(a){return!(a=a[Md]||a[Od])||5!==a.tag&&6!==a.tag&&13!==a.tag&&3!==a.tag?null:a}function Pd(a){if(5===a.tag||6===a.tag)return a.stateNode;throw Error(u(33))}function Qd(a){return a[Nd]||null}function Rd(a){do{a=a.return}while(a&&5!==a.tag);return a||null}function Sd(a,b){var c=a.stateNode;if(!c)return null;var d=la(c);if(!d)return null;c=d[b];a:switch(b){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(d=!d.disabled)||(d=!("button"===(a=a.type)||"input"===a||"select"===a||"textarea"===a)),a=!d;break a;default:a=!1}if(a)return null;if(c&&"function"!=typeof c)throw Error(u(231,b,typeof c));return c}function Td(a,b,c){(b=Sd(a,c.dispatchConfig.phasedRegistrationNames[b]))&&(c._dispatchListeners=ic(c._dispatchListeners,b),c._dispatchInstances=ic(c._dispatchInstances,a))}function Ud(a){if(a&&a.dispatchConfig.phasedRegistrationNames){for(var b=a._targetInst,c=[];b;)c.push(b),b=Rd(b);for(b=c.length;0<b--;)Td(c[b],"captured",a);for(b=0;b<c.length;b++)Td(c[b],"bubbled",a)}}function Vd(a,b,c){a&&c&&c.dispatchConfig.registrationName&&(b=Sd(a,c.dispatchConfig.registrationName))&&(c._dispatchListeners=ic(c._dispatchListeners,b),c._dispatchInstances=ic(c._dispatchInstances,a))}function Wd(a){a&&a.dispatchConfig.registrationName&&Vd(a._targetInst,null,a)}function Xd(a){jc(a,Ud)}var Yd=null,Zd=null,$d=null;function ae(){if($d)return $d;var a,d,b=Zd,c=b.length,e="value"in Yd?Yd.value:Yd.textContent,f=e.length;for(a=0;a<c&&b[a]===e[a];a++);var g=c-a;for(d=1;d<=g&&b[c-d]===e[f-d];d++);return $d=e.slice(a,1<d?1-d:void 0)}function be(){return!0}function ce(){return!1}function G(a,b,c,d){for(var e in this.dispatchConfig=a,this._targetInst=b,this.nativeEvent=c,a=this.constructor.Interface)a.hasOwnProperty(e)&&((b=a[e])?this[e]=b(c):"target"===e?this.target=d:this[e]=c[e]);return this.isDefaultPrevented=(null!=c.defaultPrevented?c.defaultPrevented:!1===c.returnValue)?be:ce,this.isPropagationStopped=ce,this}function ee(a,b,c,d){if(this.eventPool.length){var e=this.eventPool.pop();return this.call(e,a,b,c,d),e}return new this(a,b,c,d)}function fe(a){if(!(a instanceof this))throw Error(u(279));a.destructor(),10>this.eventPool.length&&this.eventPool.push(a)}function de(a){a.eventPool=[],a.getPooled=ee,a.release=fe}n(G.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():"unknown"!=typeof a.returnValue&&(a.returnValue=!1),this.isDefaultPrevented=be)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():"unknown"!=typeof a.cancelBubble&&(a.cancelBubble=!0),this.isPropagationStopped=be)},persist:function(){this.isPersistent=be},isPersistent:ce,destructor:function(){var b,a=this.constructor.Interface;for(b in a)this[b]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null,this.isPropagationStopped=this.isDefaultPrevented=ce,this._dispatchInstances=this._dispatchListeners=null}}),G.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(a){return a.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null},G.extend=function(a){function b(){}function c(){return d.apply(this,arguments)}var d=this;b.prototype=d.prototype;var e=new b;return n(e,c.prototype),c.prototype=e,c.prototype.constructor=c,c.Interface=n({},d.Interface,a),c.extend=d.extend,de(c),c},de(G);var ge=G.extend({data:null}),he=G.extend({data:null}),ie=[9,13,27,32],je=ya&&"CompositionEvent"in window,ke=null;ya&&"documentMode"in document&&(ke=document.documentMode);var le=ya&&"TextEvent"in window&&!ke,me=ya&&(!je||ke&&8<ke&&11>=ke),ne=String.fromCharCode(32),oe={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["compositionend","keypress","textInput","paste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"blur compositionend keydown keypress keyup mousedown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}},pe=!1;function qe(a,b){switch(a){case"keyup":return-1!==ie.indexOf(b.keyCode);case"keydown":return 229!==b.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function re(a){return"object"==typeof(a=a.detail)&&"data"in a?a.data:null}var se=!1;var ve={eventTypes:oe,extractEvents:function(a,b,c,d){var e;if(je)b:{switch(a){case"compositionstart":var f=oe.compositionStart;break b;case"compositionend":f=oe.compositionEnd;break b;case"compositionupdate":f=oe.compositionUpdate;break b}f=void 0}else se?qe(a,c)&&(f=oe.compositionEnd):"keydown"===a&&229===c.keyCode&&(f=oe.compositionStart);return f?(me&&"ko"!==c.locale&&(se||f!==oe.compositionStart?f===oe.compositionEnd&&se&&(e=ae()):(Zd="value"in(Yd=d)?Yd.value:Yd.textContent,se=!0)),f=ge.getPooled(f,b,c,d),e?f.data=e:null!==(e=re(c))&&(f.data=e),Xd(f),e=f):e=null,(a=le?function(a,b){switch(a){case"compositionend":return re(b);case"keypress":return 32!==b.which?null:(pe=!0,ne);case"textInput":return(a=b.data)===ne&&pe?null:a;default:return null}}(a,c):function(a,b){if(se)return"compositionend"===a||!je&&qe(a,b)?(a=ae(),$d=Zd=Yd=null,se=!1,a):null;switch(a){case"paste":return null;case"keypress":if(!(b.ctrlKey||b.altKey||b.metaKey)||b.ctrlKey&&b.altKey){if(b.char&&1<b.char.length)return b.char;if(b.which)return String.fromCharCode(b.which)}return null;case"compositionend":return me&&"ko"!==b.locale?null:b.data;default:return null}}(a,c))?((b=he.getPooled(oe.beforeInput,b,c,d)).data=a,Xd(b)):b=null,null===e?b:null===b?e:[e,b]}},we={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function xe(a){var b=a&&a.nodeName&&a.nodeName.toLowerCase();return"input"===b?!!we[a.type]:"textarea"===b}var ye={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:"blur change click focus input keydown keyup selectionchange".split(" ")}};function ze(a,b,c){return(a=G.getPooled(ye.change,a,b,c)).type="change",Da(c),Xd(a),a}var Ae=null,Be=null;function Ce(a){mc(a)}function De(a){if(yb(Pd(a)))return a}function Ee(a,b){if("change"===a)return b}var Fe=!1;function Ge(){Ae&&(Ae.detachEvent("onpropertychange",He),Be=Ae=null)}function He(a){if("value"===a.propertyName&&De(Be))if(a=ze(Be,a,nc(a)),Ja)mc(a);else{Ja=!0;try{Fa(Ce,a)}finally{Ja=!1,La()}}}function Ie(a,b,c){"focus"===a?(Ge(),Be=c,(Ae=b).attachEvent("onpropertychange",He)):"blur"===a&&Ge()}function Je(a){if("selectionchange"===a||"keyup"===a||"keydown"===a)return De(Be)}function Ke(a,b){if("click"===a)return De(b)}function Le(a,b){if("input"===a||"change"===a)return De(b)}ya&&(Fe=oc("input")&&(!document.documentMode||9<document.documentMode));var Me={eventTypes:ye,_isInputEventSupported:Fe,extractEvents:function(a,b,c,d){var e=b?Pd(b):window,f=e.nodeName&&e.nodeName.toLowerCase();if("select"===f||"input"===f&&"file"===e.type)var g=Ee;else if(xe(e))if(Fe)g=Le;else{g=Je;var h=Ie}else(f=e.nodeName)&&"input"===f.toLowerCase()&&("checkbox"===e.type||"radio"===e.type)&&(g=Ke);if(g&&(g=g(a,b)))return ze(g,c,d);h&&h(a,e,b),"blur"===a&&(a=e._wrapperState)&&a.controlled&&"number"===e.type&&Db(e,"number",e.value)}},Ne=G.extend({view:null,detail:null}),Oe={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Pe(a){var b=this.nativeEvent;return b.getModifierState?b.getModifierState(a):!!(a=Oe[a])&&!!b[a]}function Qe(){return Pe}var Re=0,Se=0,Te=!1,Ue=!1,Ve=Ne.extend({screenX:null,screenY:null,clientX:null,clientY:null,pageX:null,pageY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:Qe,button:null,buttons:null,relatedTarget:function(a){return a.relatedTarget||(a.fromElement===a.srcElement?a.toElement:a.fromElement)},movementX:function(a){if("movementX"in a)return a.movementX;var b=Re;return Re=a.screenX,Te?"mousemove"===a.type?a.screenX-b:0:(Te=!0,0)},movementY:function(a){if("movementY"in a)return a.movementY;var b=Se;return Se=a.screenY,Ue?"mousemove"===a.type?a.screenY-b:0:(Ue=!0,0)}}),We=Ve.extend({pointerId:null,width:null,height:null,pressure:null,tangentialPressure:null,tiltX:null,tiltY:null,twist:null,pointerType:null,isPrimary:null}),Xe={mouseEnter:{registrationName:"onMouseEnter",dependencies:["mouseout","mouseover"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["mouseout","mouseover"]},pointerEnter:{registrationName:"onPointerEnter",dependencies:["pointerout","pointerover"]},pointerLeave:{registrationName:"onPointerLeave",dependencies:["pointerout","pointerover"]}},Ye={eventTypes:Xe,extractEvents:function(a,b,c,d,e){var f="mouseover"===a||"pointerover"===a,g="mouseout"===a||"pointerout"===a;if(f&&0==(32&e)&&(c.relatedTarget||c.fromElement)||!g&&!f)return null;(f=d.window===d?d:(f=d.ownerDocument)?f.defaultView||f.parentWindow:window,g)?(g=b,null!==(b=(b=c.relatedTarget||c.toElement)?tc(b):null)&&(b!==dc(b)||5!==b.tag&&6!==b.tag)&&(b=null)):g=null;if(g===b)return null;if("mouseout"===a||"mouseover"===a)var k=Ve,l=Xe.mouseLeave,m=Xe.mouseEnter,p="mouse";else"pointerout"!==a&&"pointerover"!==a||(k=We,l=Xe.pointerLeave,m=Xe.pointerEnter,p="pointer");if(a=null==g?f:Pd(g),f=null==b?f:Pd(b),(l=k.getPooled(l,g,c,d)).type=p+"leave",l.target=a,l.relatedTarget=f,(c=k.getPooled(m,b,c,d)).type=p+"enter",c.target=f,c.relatedTarget=a,p=b,(d=g)&&p)a:{for(m=p,g=0,a=k=d;a;a=Rd(a))g++;for(a=0,b=m;b;b=Rd(b))a++;for(;0<g-a;)k=Rd(k),g--;for(;0<a-g;)m=Rd(m),a--;for(;g--;){if(k===m||k===m.alternate)break a;k=Rd(k),m=Rd(m)}k=null}else k=null;for(m=k,k=[];d&&d!==m&&(null===(g=d.alternate)||g!==m);)k.push(d),d=Rd(d);for(d=[];p&&p!==m&&(null===(g=p.alternate)||g!==m);)d.push(p),p=Rd(p);for(p=0;p<k.length;p++)Vd(k[p],"bubbled",l);for(p=d.length;0<p--;)Vd(d[p],"captured",c);return 0==(64&e)?[l]:[l,c]}};var $e="function"==typeof Object.is?Object.is:function(a,b){return a===b&&(0!==a||1/a==1/b)||a!=a&&b!=b},af=Object.prototype.hasOwnProperty;function bf(a,b){if($e(a,b))return!0;if("object"!=typeof a||null===a||"object"!=typeof b||null===b)return!1;var c=Object.keys(a),d=Object.keys(b);if(c.length!==d.length)return!1;for(d=0;d<c.length;d++)if(!af.call(b,c[d])||!$e(a[c[d]],b[c[d]]))return!1;return!0}var cf=ya&&"documentMode"in document&&11>=document.documentMode,df={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ")}},ef=null,ff=null,gf=null,hf=!1;function jf(a,b){var c=b.window===b?b.document:9===b.nodeType?b:b.ownerDocument;return hf||null==ef||ef!==td(c)?null:("selectionStart"in(c=ef)&&yd(c)?c={start:c.selectionStart,end:c.selectionEnd}:c={anchorNode:(c=(c.ownerDocument&&c.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:c.anchorOffset,focusNode:c.focusNode,focusOffset:c.focusOffset},gf&&bf(gf,c)?null:(gf=c,(a=G.getPooled(df.select,ff,a,b)).type="select",a.target=ef,Xd(a),a))}var kf={eventTypes:df,extractEvents:function(a,b,c,d,e,f){if(!(f=!(e=f||(d.window===d?d.document:9===d.nodeType?d:d.ownerDocument)))){a:{e=cc(e),f=wa.onSelect;for(var g=0;g<f.length;g++)if(!e.has(f[g])){e=!1;break a}e=!0}f=!e}if(f)return null;switch(e=b?Pd(b):window,a){case"focus":(xe(e)||"true"===e.contentEditable)&&(ef=e,ff=b,gf=null);break;case"blur":gf=ff=ef=null;break;case"mousedown":hf=!0;break;case"contextmenu":case"mouseup":case"dragend":return hf=!1,jf(c,d);case"selectionchange":if(cf)break;case"keydown":case"keyup":return jf(c,d)}return null}},lf=G.extend({animationName:null,elapsedTime:null,pseudoElement:null}),mf=G.extend({clipboardData:function(a){return"clipboardData"in a?a.clipboardData:window.clipboardData}}),nf=Ne.extend({relatedTarget:null});function of(a){var b=a.keyCode;return"charCode"in a?0===(a=a.charCode)&&13===b&&(a=13):a=b,10===a&&(a=13),32<=a||13===a?a:0}var pf={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},qf={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},rf=Ne.extend({key:function(a){if(a.key){var b=pf[a.key]||a.key;if("Unidentified"!==b)return b}return"keypress"===a.type?13===(a=of(a))?"Enter":String.fromCharCode(a):"keydown"===a.type||"keyup"===a.type?qf[a.keyCode]||"Unidentified":""},location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:Qe,charCode:function(a){return"keypress"===a.type?of(a):0},keyCode:function(a){return"keydown"===a.type||"keyup"===a.type?a.keyCode:0},which:function(a){return"keypress"===a.type?of(a):"keydown"===a.type||"keyup"===a.type?a.keyCode:0}}),sf=Ve.extend({dataTransfer:null}),tf=Ne.extend({touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:Qe}),uf=G.extend({propertyName:null,elapsedTime:null,pseudoElement:null}),vf=Ve.extend({deltaX:function(a){return"deltaX"in a?a.deltaX:"wheelDeltaX"in a?-a.wheelDeltaX:0},deltaY:function(a){return"deltaY"in a?a.deltaY:"wheelDeltaY"in a?-a.wheelDeltaY:"wheelDelta"in a?-a.wheelDelta:0},deltaZ:null,deltaMode:null}),wf={eventTypes:Wc,extractEvents:function(a,b,c,d){var e=Yc.get(a);if(!e)return null;switch(a){case"keypress":if(0===of(c))return null;case"keydown":case"keyup":a=rf;break;case"blur":case"focus":a=nf;break;case"click":if(2===c.button)return null;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":a=Ve;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":a=sf;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":a=tf;break;case Xb:case Yb:case Zb:a=lf;break;case $b:a=uf;break;case"scroll":a=Ne;break;case"wheel":a=vf;break;case"copy":case"cut":case"paste":a=mf;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":a=We;break;default:a=G}return Xd(b=a.getPooled(e,b,c,d)),b}};if(pa)throw Error(u(101));pa=Array.prototype.slice.call("ResponderEventPlugin SimpleEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" ")),ra(),la=Qd,ma=Nc,na=Pd,xa({SimpleEventPlugin:wf,EnterLeaveEventPlugin:Ye,ChangeEventPlugin:Me,SelectEventPlugin:kf,BeforeInputEventPlugin:ve});var yf=[],zf=-1;function H(a){0>zf||(a.current=yf[zf],yf[zf]=null,zf--)}function I(a,b){zf++,yf[zf]=a.current,a.current=b}var Af={},J={current:Af},K={current:!1},Bf=Af;function Cf(a,b){var c=a.type.contextTypes;if(!c)return Af;var d=a.stateNode;if(d&&d.__reactInternalMemoizedUnmaskedChildContext===b)return d.__reactInternalMemoizedMaskedChildContext;var f,e={};for(f in c)e[f]=b[f];return d&&((a=a.stateNode).__reactInternalMemoizedUnmaskedChildContext=b,a.__reactInternalMemoizedMaskedChildContext=e),e}function L(a){return null!=(a=a.childContextTypes)}function Df(){H(K),H(J)}function Ef(a,b,c){if(J.current!==Af)throw Error(u(168));I(J,b),I(K,c)}function Ff(a,b,c){var d=a.stateNode;if(a=b.childContextTypes,"function"!=typeof d.getChildContext)return c;for(var e in d=d.getChildContext())if(!(e in a))throw Error(u(108,pb(b)||"Unknown",e));return n({},c,{},d)}function Gf(a){return a=(a=a.stateNode)&&a.__reactInternalMemoizedMergedChildContext||Af,Bf=J.current,I(J,a),I(K,K.current),!0}function Hf(a,b,c){var d=a.stateNode;if(!d)throw Error(u(169));c?(a=Ff(a,b,Bf),d.__reactInternalMemoizedMergedChildContext=a,H(K),H(J),I(J,a)):H(K),I(K,c)}var If=r.unstable_runWithPriority,Jf=r.unstable_scheduleCallback,Kf=r.unstable_cancelCallback,Lf=r.unstable_requestPaint,Mf=r.unstable_now,Nf=r.unstable_getCurrentPriorityLevel,Of=r.unstable_ImmediatePriority,Pf=r.unstable_UserBlockingPriority,Qf=r.unstable_NormalPriority,Rf=r.unstable_LowPriority,Sf=r.unstable_IdlePriority,Tf={},Uf=r.unstable_shouldYield,Vf=void 0!==Lf?Lf:function(){},Wf=null,Xf=null,Yf=!1,Zf=Mf(),$f=1e4>Zf?Mf:function(){return Mf()-Zf};function ag(){switch(Nf()){case Of:return 99;case Pf:return 98;case Qf:return 97;case Rf:return 96;case Sf:return 95;default:throw Error(u(332))}}function bg(a){switch(a){case 99:return Of;case 98:return Pf;case 97:return Qf;case 96:return Rf;case 95:return Sf;default:throw Error(u(332))}}function cg(a,b){return a=bg(a),If(a,b)}function dg(a,b,c){return a=bg(a),Jf(a,b,c)}function eg(a){return null===Wf?(Wf=[a],Xf=Jf(Of,fg)):Wf.push(a),Tf}function gg(){if(null!==Xf){var a=Xf;Xf=null,Kf(a)}fg()}function fg(){if(!Yf&&null!==Wf){Yf=!0;var a=0;try{var b=Wf;cg(99,(function(){for(;a<b.length;a++){var c=b[a];do{c=c(!0)}while(null!==c)}})),Wf=null}catch(c){throw null!==Wf&&(Wf=Wf.slice(a+1)),Jf(Of,gg),c}finally{Yf=!1}}}function hg(a,b,c){return 1073741821-(1+((1073741821-a+b/10)/(c/=10)|0))*c}function ig(a,b){if(a&&a.defaultProps)for(var c in b=n({},b),a=a.defaultProps)void 0===b[c]&&(b[c]=a[c]);return b}var jg={current:null},kg=null,lg=null,mg=null;function ng(){mg=lg=kg=null}function og(a){var b=jg.current;H(jg),a.type._context._currentValue=b}function pg(a,b){for(;null!==a;){var c=a.alternate;if(a.childExpirationTime<b)a.childExpirationTime=b,null!==c&&c.childExpirationTime<b&&(c.childExpirationTime=b);else{if(!(null!==c&&c.childExpirationTime<b))break;c.childExpirationTime=b}a=a.return}}function qg(a,b){kg=a,mg=lg=null,null!==(a=a.dependencies)&&null!==a.firstContext&&(a.expirationTime>=b&&(rg=!0),a.firstContext=null)}function sg(a,b){if(mg!==a&&!1!==b&&0!==b)if("number"==typeof b&&1073741823!==b||(mg=a,b=1073741823),b={context:a,observedBits:b,next:null},null===lg){if(null===kg)throw Error(u(308));lg=b,kg.dependencies={expirationTime:0,firstContext:b,responders:null}}else lg=lg.next=b;return a._currentValue}var tg=!1;function ug(a){a.updateQueue={baseState:a.memoizedState,baseQueue:null,shared:{pending:null},effects:null}}function vg(a,b){a=a.updateQueue,b.updateQueue===a&&(b.updateQueue={baseState:a.baseState,baseQueue:a.baseQueue,shared:a.shared,effects:a.effects})}function wg(a,b){return(a={expirationTime:a,suspenseConfig:b,tag:0,payload:null,callback:null,next:null}).next=a}function xg(a,b){if(null!==(a=a.updateQueue)){var c=(a=a.shared).pending;null===c?b.next=b:(b.next=c.next,c.next=b),a.pending=b}}function yg(a,b){var c=a.alternate;null!==c&&vg(c,a),null===(c=(a=a.updateQueue).baseQueue)?(a.baseQueue=b.next=b,b.next=b):(b.next=c.next,c.next=b)}function zg(a,b,c,d){var e=a.updateQueue;tg=!1;var f=e.baseQueue,g=e.shared.pending;if(null!==g){if(null!==f){var h=f.next;f.next=g.next,g.next=h}f=g,e.shared.pending=null,null!==(h=a.alternate)&&(null!==(h=h.updateQueue)&&(h.baseQueue=g))}if(null!==f){h=f.next;var k=e.baseState,l=0,m=null,p=null,x=null;if(null!==h)for(var z=h;;){if((g=z.expirationTime)<d){var ca={expirationTime:z.expirationTime,suspenseConfig:z.suspenseConfig,tag:z.tag,payload:z.payload,callback:z.callback,next:null};null===x?(p=x=ca,m=k):x=x.next=ca,g>l&&(l=g)}else{null!==x&&(x=x.next={expirationTime:1073741823,suspenseConfig:z.suspenseConfig,tag:z.tag,payload:z.payload,callback:z.callback,next:null}),Ag(g,z.suspenseConfig);a:{var D=a,t=z;switch(g=b,ca=c,t.tag){case 1:if("function"==typeof(D=t.payload)){k=D.call(ca,k,g);break a}k=D;break a;case 3:D.effectTag=-4097&D.effectTag|64;case 0:if(null==(g="function"==typeof(D=t.payload)?D.call(ca,k,g):D))break a;k=n({},k,g);break a;case 2:tg=!0}}null!==z.callback&&(a.effectTag|=32,null===(g=e.effects)?e.effects=[z]:g.push(z))}if(null===(z=z.next)||z===h){if(null===(g=e.shared.pending))break;z=f.next=g.next,g.next=h,e.baseQueue=f=g,e.shared.pending=null}}null===x?m=k:x.next=p,e.baseState=m,e.baseQueue=x,Bg(l),a.expirationTime=l,a.memoizedState=k}}function Cg(a,b,c){if(a=b.effects,b.effects=null,null!==a)for(b=0;b<a.length;b++){var d=a[b],e=d.callback;if(null!==e){if(d.callback=null,d=e,e=c,"function"!=typeof d)throw Error(u(191,d));d.call(e)}}}var Dg=Wa.ReactCurrentBatchConfig,Eg=(new aa.Component).refs;function Fg(a,b,c,d){c=null==(c=c(d,b=a.memoizedState))?b:n({},b,c),a.memoizedState=c,0===a.expirationTime&&(a.updateQueue.baseState=c)}var Jg={isMounted:function(a){return!!(a=a._reactInternalFiber)&&dc(a)===a},enqueueSetState:function(a,b,c){a=a._reactInternalFiber;var d=Gg(),e=Dg.suspense;(e=wg(d=Hg(d,a,e),e)).payload=b,null!=c&&(e.callback=c),xg(a,e),Ig(a,d)},enqueueReplaceState:function(a,b,c){a=a._reactInternalFiber;var d=Gg(),e=Dg.suspense;(e=wg(d=Hg(d,a,e),e)).tag=1,e.payload=b,null!=c&&(e.callback=c),xg(a,e),Ig(a,d)},enqueueForceUpdate:function(a,b){a=a._reactInternalFiber;var c=Gg(),d=Dg.suspense;(d=wg(c=Hg(c,a,d),d)).tag=2,null!=b&&(d.callback=b),xg(a,d),Ig(a,c)}};function Kg(a,b,c,d,e,f,g){return"function"==typeof(a=a.stateNode).shouldComponentUpdate?a.shouldComponentUpdate(d,f,g):!b.prototype||!b.prototype.isPureReactComponent||(!bf(c,d)||!bf(e,f))}function Lg(a,b,c){var d=!1,e=Af,f=b.contextType;return"object"==typeof f&&null!==f?f=sg(f):(e=L(b)?Bf:J.current,f=(d=null!=(d=b.contextTypes))?Cf(a,e):Af),b=new b(c,f),a.memoizedState=null!==b.state&&void 0!==b.state?b.state:null,b.updater=Jg,a.stateNode=b,b._reactInternalFiber=a,d&&((a=a.stateNode).__reactInternalMemoizedUnmaskedChildContext=e,a.__reactInternalMemoizedMaskedChildContext=f),b}function Mg(a,b,c,d){a=b.state,"function"==typeof b.componentWillReceiveProps&&b.componentWillReceiveProps(c,d),"function"==typeof b.UNSAFE_componentWillReceiveProps&&b.UNSAFE_componentWillReceiveProps(c,d),b.state!==a&&Jg.enqueueReplaceState(b,b.state,null)}function Ng(a,b,c,d){var e=a.stateNode;e.props=c,e.state=a.memoizedState,e.refs=Eg,ug(a);var f=b.contextType;"object"==typeof f&&null!==f?e.context=sg(f):(f=L(b)?Bf:J.current,e.context=Cf(a,f)),zg(a,c,e,d),e.state=a.memoizedState,"function"==typeof(f=b.getDerivedStateFromProps)&&(Fg(a,b,f,c),e.state=a.memoizedState),"function"==typeof b.getDerivedStateFromProps||"function"==typeof e.getSnapshotBeforeUpdate||"function"!=typeof e.UNSAFE_componentWillMount&&"function"!=typeof e.componentWillMount||(b=e.state,"function"==typeof e.componentWillMount&&e.componentWillMount(),"function"==typeof e.UNSAFE_componentWillMount&&e.UNSAFE_componentWillMount(),b!==e.state&&Jg.enqueueReplaceState(e,e.state,null),zg(a,c,e,d),e.state=a.memoizedState),"function"==typeof e.componentDidMount&&(a.effectTag|=4)}var Og=Array.isArray;function Pg(a,b,c){if(null!==(a=c.ref)&&"function"!=typeof a&&"object"!=typeof a){if(c._owner){if(c=c._owner){if(1!==c.tag)throw Error(u(309));var d=c.stateNode}if(!d)throw Error(u(147,a));var e=""+a;return null!==b&&null!==b.ref&&"function"==typeof b.ref&&b.ref._stringRef===e?b.ref:((b=function(a){var b=d.refs;b===Eg&&(b=d.refs={}),null===a?delete b[e]:b[e]=a})._stringRef=e,b)}if("string"!=typeof a)throw Error(u(284));if(!c._owner)throw Error(u(290,a))}return a}function Qg(a,b){if("textarea"!==a.type)throw Error(u(31,"[object Object]"===Object.prototype.toString.call(b)?"object with keys {"+Object.keys(b).join(", ")+"}":b,""))}function Rg(a){function b(b,c){if(a){var d=b.lastEffect;null!==d?(d.nextEffect=c,b.lastEffect=c):b.firstEffect=b.lastEffect=c,c.nextEffect=null,c.effectTag=8}}function c(c,d){if(!a)return null;for(;null!==d;)b(c,d),d=d.sibling;return null}function d(a,b){for(a=new Map;null!==b;)null!==b.key?a.set(b.key,b):a.set(b.index,b),b=b.sibling;return a}function e(a,b){return(a=Sg(a,b)).index=0,a.sibling=null,a}function f(b,c,d){return b.index=d,a?null!==(d=b.alternate)?(d=d.index)<c?(b.effectTag=2,c):d:(b.effectTag=2,c):c}function g(b){return a&&null===b.alternate&&(b.effectTag=2),b}function h(a,b,c,d){return null===b||6!==b.tag?((b=Tg(c,a.mode,d)).return=a,b):((b=e(b,c)).return=a,b)}function k(a,b,c,d){return null!==b&&b.elementType===c.type?((d=e(b,c.props)).ref=Pg(a,b,c),d.return=a,d):((d=Ug(c.type,c.key,c.props,null,a.mode,d)).ref=Pg(a,b,c),d.return=a,d)}function l(a,b,c,d){return null===b||4!==b.tag||b.stateNode.containerInfo!==c.containerInfo||b.stateNode.implementation!==c.implementation?((b=Vg(c,a.mode,d)).return=a,b):((b=e(b,c.children||[])).return=a,b)}function m(a,b,c,d,f){return null===b||7!==b.tag?((b=Wg(c,a.mode,d,f)).return=a,b):((b=e(b,c)).return=a,b)}function p(a,b,c){if("string"==typeof b||"number"==typeof b)return(b=Tg(""+b,a.mode,c)).return=a,b;if("object"==typeof b&&null!==b){switch(b.$$typeof){case Za:return(c=Ug(b.type,b.key,b.props,null,a.mode,c)).ref=Pg(a,null,b),c.return=a,c;case $a:return(b=Vg(b,a.mode,c)).return=a,b}if(Og(b)||nb(b))return(b=Wg(b,a.mode,c,null)).return=a,b;Qg(a,b)}return null}function x(a,b,c,d){var e=null!==b?b.key:null;if("string"==typeof c||"number"==typeof c)return null!==e?null:h(a,b,""+c,d);if("object"==typeof c&&null!==c){switch(c.$$typeof){case Za:return c.key===e?c.type===ab?m(a,b,c.props.children,d,e):k(a,b,c,d):null;case $a:return c.key===e?l(a,b,c,d):null}if(Og(c)||nb(c))return null!==e?null:m(a,b,c,d,null);Qg(a,c)}return null}function z(a,b,c,d,e){if("string"==typeof d||"number"==typeof d)return h(b,a=a.get(c)||null,""+d,e);if("object"==typeof d&&null!==d){switch(d.$$typeof){case Za:return a=a.get(null===d.key?c:d.key)||null,d.type===ab?m(b,a,d.props.children,e,d.key):k(b,a,d,e);case $a:return l(b,a=a.get(null===d.key?c:d.key)||null,d,e)}if(Og(d)||nb(d))return m(b,a=a.get(c)||null,d,e,null);Qg(b,d)}return null}function ca(e,g,h,k){for(var l=null,t=null,m=g,y=g=0,A=null;null!==m&&y<h.length;y++){m.index>y?(A=m,m=null):A=m.sibling;var q=x(e,m,h[y],k);if(null===q){null===m&&(m=A);break}a&&m&&null===q.alternate&&b(e,m),g=f(q,g,y),null===t?l=q:t.sibling=q,t=q,m=A}if(y===h.length)return c(e,m),l;if(null===m){for(;y<h.length;y++)null!==(m=p(e,h[y],k))&&(g=f(m,g,y),null===t?l=m:t.sibling=m,t=m);return l}for(m=d(e,m);y<h.length;y++)null!==(A=z(m,e,y,h[y],k))&&(a&&null!==A.alternate&&m.delete(null===A.key?y:A.key),g=f(A,g,y),null===t?l=A:t.sibling=A,t=A);return a&&m.forEach((function(a){return b(e,a)})),l}function D(e,g,h,l){var k=nb(h);if("function"!=typeof k)throw Error(u(150));if(null==(h=k.call(h)))throw Error(u(151));for(var m=k=null,t=g,y=g=0,A=null,q=h.next();null!==t&&!q.done;y++,q=h.next()){t.index>y?(A=t,t=null):A=t.sibling;var D=x(e,t,q.value,l);if(null===D){null===t&&(t=A);break}a&&t&&null===D.alternate&&b(e,t),g=f(D,g,y),null===m?k=D:m.sibling=D,m=D,t=A}if(q.done)return c(e,t),k;if(null===t){for(;!q.done;y++,q=h.next())null!==(q=p(e,q.value,l))&&(g=f(q,g,y),null===m?k=q:m.sibling=q,m=q);return k}for(t=d(e,t);!q.done;y++,q=h.next())null!==(q=z(t,e,y,q.value,l))&&(a&&null!==q.alternate&&t.delete(null===q.key?y:q.key),g=f(q,g,y),null===m?k=q:m.sibling=q,m=q);return a&&t.forEach((function(a){return b(e,a)})),k}return function(a,d,f,h){var k="object"==typeof f&&null!==f&&f.type===ab&&null===f.key;k&&(f=f.props.children);var l="object"==typeof f&&null!==f;if(l)switch(f.$$typeof){case Za:a:{for(l=f.key,k=d;null!==k;){if(k.key===l){switch(k.tag){case 7:if(f.type===ab){c(a,k.sibling),(d=e(k,f.props.children)).return=a,a=d;break a}break;default:if(k.elementType===f.type){c(a,k.sibling),(d=e(k,f.props)).ref=Pg(a,k,f),d.return=a,a=d;break a}}c(a,k);break}b(a,k),k=k.sibling}f.type===ab?((d=Wg(f.props.children,a.mode,h,f.key)).return=a,a=d):((h=Ug(f.type,f.key,f.props,null,a.mode,h)).ref=Pg(a,d,f),h.return=a,a=h)}return g(a);case $a:a:{for(k=f.key;null!==d;){if(d.key===k){if(4===d.tag&&d.stateNode.containerInfo===f.containerInfo&&d.stateNode.implementation===f.implementation){c(a,d.sibling),(d=e(d,f.children||[])).return=a,a=d;break a}c(a,d);break}b(a,d),d=d.sibling}(d=Vg(f,a.mode,h)).return=a,a=d}return g(a)}if("string"==typeof f||"number"==typeof f)return f=""+f,null!==d&&6===d.tag?(c(a,d.sibling),(d=e(d,f)).return=a,a=d):(c(a,d),(d=Tg(f,a.mode,h)).return=a,a=d),g(a);if(Og(f))return ca(a,d,f,h);if(nb(f))return D(a,d,f,h);if(l&&Qg(a,f),void 0===f&&!k)switch(a.tag){case 1:case 0:throw a=a.type,Error(u(152,a.displayName||a.name||"Component"))}return c(a,d)}}var Xg=Rg(!0),Yg=Rg(!1),Zg={},$g={current:Zg},ah={current:Zg},bh={current:Zg};function ch(a){if(a===Zg)throw Error(u(174));return a}function dh(a,b){switch(I(bh,b),I(ah,a),I($g,Zg),a=b.nodeType){case 9:case 11:b=(b=b.documentElement)?b.namespaceURI:Ob(null,"");break;default:b=Ob(b=(a=8===a?b.parentNode:b).namespaceURI||null,a=a.tagName)}H($g),I($g,b)}function eh(){H($g),H(ah),H(bh)}function fh(a){ch(bh.current);var b=ch($g.current),c=Ob(b,a.type);b!==c&&(I(ah,a),I($g,c))}function gh(a){ah.current===a&&(H($g),H(ah))}var M={current:0};function hh(a){for(var b=a;null!==b;){if(13===b.tag){var c=b.memoizedState;if(null!==c&&(null===(c=c.dehydrated)||"$?"===c.data||"$!"===c.data))return b}else if(19===b.tag&&void 0!==b.memoizedProps.revealOrder){if(0!=(64&b.effectTag))return b}else if(null!==b.child){b.child.return=b,b=b.child;continue}if(b===a)break;for(;null===b.sibling;){if(null===b.return||b.return===a)return null;b=b.return}b.sibling.return=b.return,b=b.sibling}return null}function ih(a,b){return{responder:a,props:b}}var jh=Wa.ReactCurrentDispatcher,kh=Wa.ReactCurrentBatchConfig,lh=0,N=null,O=null,P=null,mh=!1;function Q(){throw Error(u(321))}function nh(a,b){if(null===b)return!1;for(var c=0;c<b.length&&c<a.length;c++)if(!$e(a[c],b[c]))return!1;return!0}function oh(a,b,c,d,e,f){if(lh=f,N=b,b.memoizedState=null,b.updateQueue=null,b.expirationTime=0,jh.current=null===a||null===a.memoizedState?ph:qh,a=c(d,e),b.expirationTime===lh){f=0;do{if(b.expirationTime=0,!(25>f))throw Error(u(301));f+=1,P=O=null,b.updateQueue=null,jh.current=rh,a=c(d,e)}while(b.expirationTime===lh)}if(jh.current=sh,b=null!==O&&null!==O.next,lh=0,P=O=N=null,mh=!1,b)throw Error(u(300));return a}function th(){var a={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===P?N.memoizedState=P=a:P=P.next=a,P}function uh(){if(null===O){var a=N.alternate;a=null!==a?a.memoizedState:null}else a=O.next;var b=null===P?N.memoizedState:P.next;if(null!==b)P=b,O=a;else{if(null===a)throw Error(u(310));a={memoizedState:(O=a).memoizedState,baseState:O.baseState,baseQueue:O.baseQueue,queue:O.queue,next:null},null===P?N.memoizedState=P=a:P=P.next=a}return P}function vh(a,b){return"function"==typeof b?b(a):b}function wh(a){var b=uh(),c=b.queue;if(null===c)throw Error(u(311));c.lastRenderedReducer=a;var d=O,e=d.baseQueue,f=c.pending;if(null!==f){if(null!==e){var g=e.next;e.next=f.next,f.next=g}d.baseQueue=e=f,c.pending=null}if(null!==e){e=e.next,d=d.baseState;var h=g=f=null,k=e;do{var l=k.expirationTime;if(l<lh){var m={expirationTime:k.expirationTime,suspenseConfig:k.suspenseConfig,action:k.action,eagerReducer:k.eagerReducer,eagerState:k.eagerState,next:null};null===h?(g=h=m,f=d):h=h.next=m,l>N.expirationTime&&(N.expirationTime=l,Bg(l))}else null!==h&&(h=h.next={expirationTime:1073741823,suspenseConfig:k.suspenseConfig,action:k.action,eagerReducer:k.eagerReducer,eagerState:k.eagerState,next:null}),Ag(l,k.suspenseConfig),d=k.eagerReducer===a?k.eagerState:a(d,k.action);k=k.next}while(null!==k&&k!==e);null===h?f=d:h.next=g,$e(d,b.memoizedState)||(rg=!0),b.memoizedState=d,b.baseState=f,b.baseQueue=h,c.lastRenderedState=d}return[b.memoizedState,c.dispatch]}function xh(a){var b=uh(),c=b.queue;if(null===c)throw Error(u(311));c.lastRenderedReducer=a;var d=c.dispatch,e=c.pending,f=b.memoizedState;if(null!==e){c.pending=null;var g=e=e.next;do{f=a(f,g.action),g=g.next}while(g!==e);$e(f,b.memoizedState)||(rg=!0),b.memoizedState=f,null===b.baseQueue&&(b.baseState=f),c.lastRenderedState=f}return[f,d]}function yh(a){var b=th();return"function"==typeof a&&(a=a()),b.memoizedState=b.baseState=a,a=(a=b.queue={pending:null,dispatch:null,lastRenderedReducer:vh,lastRenderedState:a}).dispatch=zh.bind(null,N,a),[b.memoizedState,a]}function Ah(a,b,c,d){return a={tag:a,create:b,destroy:c,deps:d,next:null},null===(b=N.updateQueue)?(b={lastEffect:null},N.updateQueue=b,b.lastEffect=a.next=a):null===(c=b.lastEffect)?b.lastEffect=a.next=a:(d=c.next,c.next=a,a.next=d,b.lastEffect=a),a}function Bh(){return uh().memoizedState}function Ch(a,b,c,d){var e=th();N.effectTag|=a,e.memoizedState=Ah(1|b,c,void 0,void 0===d?null:d)}function Dh(a,b,c,d){var e=uh();d=void 0===d?null:d;var f=void 0;if(null!==O){var g=O.memoizedState;if(f=g.destroy,null!==d&&nh(d,g.deps))return void Ah(b,c,f,d)}N.effectTag|=a,e.memoizedState=Ah(1|b,c,f,d)}function Eh(a,b){return Ch(516,4,a,b)}function Fh(a,b){return Dh(516,4,a,b)}function Gh(a,b){return Dh(4,2,a,b)}function Hh(a,b){return"function"==typeof b?(a=a(),b(a),function(){b(null)}):null!=b?(a=a(),b.current=a,function(){b.current=null}):void 0}function Ih(a,b,c){return c=null!=c?c.concat([a]):null,Dh(4,2,Hh.bind(null,b,a),c)}function Jh(){}function Kh(a,b){return th().memoizedState=[a,void 0===b?null:b],a}function Lh(a,b){var c=uh();b=void 0===b?null:b;var d=c.memoizedState;return null!==d&&null!==b&&nh(b,d[1])?d[0]:(c.memoizedState=[a,b],a)}function Mh(a,b){var c=uh();b=void 0===b?null:b;var d=c.memoizedState;return null!==d&&null!==b&&nh(b,d[1])?d[0]:(a=a(),c.memoizedState=[a,b],a)}function Nh(a,b,c){var d=ag();cg(98>d?98:d,(function(){a(!0)})),cg(97<d?97:d,(function(){var d=kh.suspense;kh.suspense=void 0===b?null:b;try{a(!1),c()}finally{kh.suspense=d}}))}function zh(a,b,c){var d=Gg(),e=Dg.suspense;e={expirationTime:d=Hg(d,a,e),suspenseConfig:e,action:c,eagerReducer:null,eagerState:null,next:null};var f=b.pending;if(null===f?e.next=e:(e.next=f.next,f.next=e),b.pending=e,f=a.alternate,a===N||null!==f&&f===N)mh=!0,e.expirationTime=lh,N.expirationTime=lh;else{if(0===a.expirationTime&&(null===f||0===f.expirationTime)&&null!==(f=b.lastRenderedReducer))try{var g=b.lastRenderedState,h=f(g,c);if(e.eagerReducer=f,e.eagerState=h,$e(h,g))return}catch(k){}Ig(a,d)}}var sh={readContext:sg,useCallback:Q,useContext:Q,useEffect:Q,useImperativeHandle:Q,useLayoutEffect:Q,useMemo:Q,useReducer:Q,useRef:Q,useState:Q,useDebugValue:Q,useResponder:Q,useDeferredValue:Q,useTransition:Q},ph={readContext:sg,useCallback:Kh,useContext:sg,useEffect:Eh,useImperativeHandle:function(a,b,c){return c=null!=c?c.concat([a]):null,Ch(4,2,Hh.bind(null,b,a),c)},useLayoutEffect:function(a,b){return Ch(4,2,a,b)},useMemo:function(a,b){var c=th();return b=void 0===b?null:b,a=a(),c.memoizedState=[a,b],a},useReducer:function(a,b,c){var d=th();return b=void 0!==c?c(b):b,d.memoizedState=d.baseState=b,a=(a=d.queue={pending:null,dispatch:null,lastRenderedReducer:a,lastRenderedState:b}).dispatch=zh.bind(null,N,a),[d.memoizedState,a]},useRef:function(a){return a={current:a},th().memoizedState=a},useState:yh,useDebugValue:Jh,useResponder:ih,useDeferredValue:function(a,b){var c=yh(a),d=c[0],e=c[1];return Eh((function(){var c=kh.suspense;kh.suspense=void 0===b?null:b;try{e(a)}finally{kh.suspense=c}}),[a,b]),d},useTransition:function(a){var b=yh(!1),c=b[0];return b=b[1],[Kh(Nh.bind(null,b,a),[b,a]),c]}},qh={readContext:sg,useCallback:Lh,useContext:sg,useEffect:Fh,useImperativeHandle:Ih,useLayoutEffect:Gh,useMemo:Mh,useReducer:wh,useRef:Bh,useState:function(){return wh(vh)},useDebugValue:Jh,useResponder:ih,useDeferredValue:function(a,b){var c=wh(vh),d=c[0],e=c[1];return Fh((function(){var c=kh.suspense;kh.suspense=void 0===b?null:b;try{e(a)}finally{kh.suspense=c}}),[a,b]),d},useTransition:function(a){var b=wh(vh),c=b[0];return b=b[1],[Lh(Nh.bind(null,b,a),[b,a]),c]}},rh={readContext:sg,useCallback:Lh,useContext:sg,useEffect:Fh,useImperativeHandle:Ih,useLayoutEffect:Gh,useMemo:Mh,useReducer:xh,useRef:Bh,useState:function(){return xh(vh)},useDebugValue:Jh,useResponder:ih,useDeferredValue:function(a,b){var c=xh(vh),d=c[0],e=c[1];return Fh((function(){var c=kh.suspense;kh.suspense=void 0===b?null:b;try{e(a)}finally{kh.suspense=c}}),[a,b]),d},useTransition:function(a){var b=xh(vh),c=b[0];return b=b[1],[Lh(Nh.bind(null,b,a),[b,a]),c]}},Oh=null,Ph=null,Qh=!1;function Rh(a,b){var c=Sh(5,null,null,0);c.elementType="DELETED",c.type="DELETED",c.stateNode=b,c.return=a,c.effectTag=8,null!==a.lastEffect?(a.lastEffect.nextEffect=c,a.lastEffect=c):a.firstEffect=a.lastEffect=c}function Th(a,b){switch(a.tag){case 5:var c=a.type;return null!==(b=1!==b.nodeType||c.toLowerCase()!==b.nodeName.toLowerCase()?null:b)&&(a.stateNode=b,!0);case 6:return null!==(b=""===a.pendingProps||3!==b.nodeType?null:b)&&(a.stateNode=b,!0);case 13:default:return!1}}function Uh(a){if(Qh){var b=Ph;if(b){var c=b;if(!Th(a,b)){if(!(b=Jd(c.nextSibling))||!Th(a,b))return a.effectTag=-1025&a.effectTag|2,Qh=!1,void(Oh=a);Rh(Oh,c)}Oh=a,Ph=Jd(b.firstChild)}else a.effectTag=-1025&a.effectTag|2,Qh=!1,Oh=a}}function Vh(a){for(a=a.return;null!==a&&5!==a.tag&&3!==a.tag&&13!==a.tag;)a=a.return;Oh=a}function Wh(a){if(a!==Oh)return!1;if(!Qh)return Vh(a),Qh=!0,!1;var b=a.type;if(5!==a.tag||"head"!==b&&"body"!==b&&!Gd(b,a.memoizedProps))for(b=Ph;b;)Rh(a,b),b=Jd(b.nextSibling);if(Vh(a),13===a.tag){if(!(a=null!==(a=a.memoizedState)?a.dehydrated:null))throw Error(u(317));a:{for(a=a.nextSibling,b=0;a;){if(8===a.nodeType){var c=a.data;if("/$"===c){if(0===b){Ph=Jd(a.nextSibling);break a}b--}else"$"!==c&&"$!"!==c&&"$?"!==c||b++}a=a.nextSibling}Ph=null}}else Ph=Oh?Jd(a.stateNode.nextSibling):null;return!0}function Xh(){Ph=Oh=null,Qh=!1}var Yh=Wa.ReactCurrentOwner,rg=!1;function R(a,b,c,d){b.child=null===a?Yg(b,null,c,d):Xg(b,a.child,c,d)}function Zh(a,b,c,d,e){c=c.render;var f=b.ref;return qg(b,e),d=oh(a,b,c,d,f,e),null===a||rg?(b.effectTag|=1,R(a,b,d,e),b.child):(b.updateQueue=a.updateQueue,b.effectTag&=-517,a.expirationTime<=e&&(a.expirationTime=0),$h(a,b,e))}function ai(a,b,c,d,e,f){if(null===a){var g=c.type;return"function"!=typeof g||bi(g)||void 0!==g.defaultProps||null!==c.compare||void 0!==c.defaultProps?((a=Ug(c.type,null,d,null,b.mode,f)).ref=b.ref,a.return=b,b.child=a):(b.tag=15,b.type=g,ci(a,b,g,d,e,f))}return g=a.child,e<f&&(e=g.memoizedProps,(c=null!==(c=c.compare)?c:bf)(e,d)&&a.ref===b.ref)?$h(a,b,f):(b.effectTag|=1,(a=Sg(g,d)).ref=b.ref,a.return=b,b.child=a)}function ci(a,b,c,d,e,f){return null!==a&&bf(a.memoizedProps,d)&&a.ref===b.ref&&(rg=!1,e<f)?(b.expirationTime=a.expirationTime,$h(a,b,f)):di(a,b,c,d,f)}function ei(a,b){var c=b.ref;(null===a&&null!==c||null!==a&&a.ref!==c)&&(b.effectTag|=128)}function di(a,b,c,d,e){var f=L(c)?Bf:J.current;return f=Cf(b,f),qg(b,e),c=oh(a,b,c,d,f,e),null===a||rg?(b.effectTag|=1,R(a,b,c,e),b.child):(b.updateQueue=a.updateQueue,b.effectTag&=-517,a.expirationTime<=e&&(a.expirationTime=0),$h(a,b,e))}function fi(a,b,c,d,e){if(L(c)){var f=!0;Gf(b)}else f=!1;if(qg(b,e),null===b.stateNode)null!==a&&(a.alternate=null,b.alternate=null,b.effectTag|=2),Lg(b,c,d),Ng(b,c,d,e),d=!0;else if(null===a){var g=b.stateNode,h=b.memoizedProps;g.props=h;var k=g.context,l=c.contextType;"object"==typeof l&&null!==l?l=sg(l):l=Cf(b,l=L(c)?Bf:J.current);var m=c.getDerivedStateFromProps,p="function"==typeof m||"function"==typeof g.getSnapshotBeforeUpdate;p||"function"!=typeof g.UNSAFE_componentWillReceiveProps&&"function"!=typeof g.componentWillReceiveProps||(h!==d||k!==l)&&Mg(b,g,d,l),tg=!1;var x=b.memoizedState;g.state=x,zg(b,d,g,e),k=b.memoizedState,h!==d||x!==k||K.current||tg?("function"==typeof m&&(Fg(b,c,m,d),k=b.memoizedState),(h=tg||Kg(b,c,h,d,x,k,l))?(p||"function"!=typeof g.UNSAFE_componentWillMount&&"function"!=typeof g.componentWillMount||("function"==typeof g.componentWillMount&&g.componentWillMount(),"function"==typeof g.UNSAFE_componentWillMount&&g.UNSAFE_componentWillMount()),"function"==typeof g.componentDidMount&&(b.effectTag|=4)):("function"==typeof g.componentDidMount&&(b.effectTag|=4),b.memoizedProps=d,b.memoizedState=k),g.props=d,g.state=k,g.context=l,d=h):("function"==typeof g.componentDidMount&&(b.effectTag|=4),d=!1)}else g=b.stateNode,vg(a,b),h=b.memoizedProps,g.props=b.type===b.elementType?h:ig(b.type,h),k=g.context,"object"==typeof(l=c.contextType)&&null!==l?l=sg(l):l=Cf(b,l=L(c)?Bf:J.current),(p="function"==typeof(m=c.getDerivedStateFromProps)||"function"==typeof g.getSnapshotBeforeUpdate)||"function"!=typeof g.UNSAFE_componentWillReceiveProps&&"function"!=typeof g.componentWillReceiveProps||(h!==d||k!==l)&&Mg(b,g,d,l),tg=!1,k=b.memoizedState,g.state=k,zg(b,d,g,e),x=b.memoizedState,h!==d||k!==x||K.current||tg?("function"==typeof m&&(Fg(b,c,m,d),x=b.memoizedState),(m=tg||Kg(b,c,h,d,k,x,l))?(p||"function"!=typeof g.UNSAFE_componentWillUpdate&&"function"!=typeof g.componentWillUpdate||("function"==typeof g.componentWillUpdate&&g.componentWillUpdate(d,x,l),"function"==typeof g.UNSAFE_componentWillUpdate&&g.UNSAFE_componentWillUpdate(d,x,l)),"function"==typeof g.componentDidUpdate&&(b.effectTag|=4),"function"==typeof g.getSnapshotBeforeUpdate&&(b.effectTag|=256)):("function"!=typeof g.componentDidUpdate||h===a.memoizedProps&&k===a.memoizedState||(b.effectTag|=4),"function"!=typeof g.getSnapshotBeforeUpdate||h===a.memoizedProps&&k===a.memoizedState||(b.effectTag|=256),b.memoizedProps=d,b.memoizedState=x),g.props=d,g.state=x,g.context=l,d=m):("function"!=typeof g.componentDidUpdate||h===a.memoizedProps&&k===a.memoizedState||(b.effectTag|=4),"function"!=typeof g.getSnapshotBeforeUpdate||h===a.memoizedProps&&k===a.memoizedState||(b.effectTag|=256),d=!1);return gi(a,b,c,d,f,e)}function gi(a,b,c,d,e,f){ei(a,b);var g=0!=(64&b.effectTag);if(!d&&!g)return e&&Hf(b,c,!1),$h(a,b,f);d=b.stateNode,Yh.current=b;var h=g&&"function"!=typeof c.getDerivedStateFromError?null:d.render();return b.effectTag|=1,null!==a&&g?(b.child=Xg(b,a.child,null,f),b.child=Xg(b,null,h,f)):R(a,b,h,f),b.memoizedState=d.state,e&&Hf(b,c,!0),b.child}function hi(a){var b=a.stateNode;b.pendingContext?Ef(0,b.pendingContext,b.pendingContext!==b.context):b.context&&Ef(0,b.context,!1),dh(a,b.containerInfo)}var ni,pi,qi,ii={dehydrated:null,retryTime:0};function ji(a,b,c){var h,d=b.mode,e=b.pendingProps,f=M.current,g=!1;if((h=0!=(64&b.effectTag))||(h=0!=(2&f)&&(null===a||null!==a.memoizedState)),h?(g=!0,b.effectTag&=-65):null!==a&&null===a.memoizedState||void 0===e.fallback||!0===e.unstable_avoidThisFallback||(f|=1),I(M,1&f),null===a){if(void 0!==e.fallback&&Uh(b),g){if(g=e.fallback,(e=Wg(null,d,0,null)).return=b,0==(2&b.mode))for(a=null!==b.memoizedState?b.child.child:b.child,e.child=a;null!==a;)a.return=e,a=a.sibling;return(c=Wg(g,d,c,null)).return=b,e.sibling=c,b.memoizedState=ii,b.child=e,c}return d=e.children,b.memoizedState=null,b.child=Yg(b,null,d,c)}if(null!==a.memoizedState){if(d=(a=a.child).sibling,g){if(e=e.fallback,(c=Sg(a,a.pendingProps)).return=b,0==(2&b.mode)&&(g=null!==b.memoizedState?b.child.child:b.child)!==a.child)for(c.child=g;null!==g;)g.return=c,g=g.sibling;return(d=Sg(d,e)).return=b,c.sibling=d,c.childExpirationTime=0,b.memoizedState=ii,b.child=c,d}return c=Xg(b,a.child,e.children,c),b.memoizedState=null,b.child=c}if(a=a.child,g){if(g=e.fallback,(e=Wg(null,d,0,null)).return=b,e.child=a,null!==a&&(a.return=e),0==(2&b.mode))for(a=null!==b.memoizedState?b.child.child:b.child,e.child=a;null!==a;)a.return=e,a=a.sibling;return(c=Wg(g,d,c,null)).return=b,e.sibling=c,c.effectTag|=2,e.childExpirationTime=0,b.memoizedState=ii,b.child=e,c}return b.memoizedState=null,b.child=Xg(b,a,e.children,c)}function ki(a,b){a.expirationTime<b&&(a.expirationTime=b);var c=a.alternate;null!==c&&c.expirationTime<b&&(c.expirationTime=b),pg(a.return,b)}function li(a,b,c,d,e,f){var g=a.memoizedState;null===g?a.memoizedState={isBackwards:b,rendering:null,renderingStartTime:0,last:d,tail:c,tailExpiration:0,tailMode:e,lastEffect:f}:(g.isBackwards=b,g.rendering=null,g.renderingStartTime=0,g.last=d,g.tail=c,g.tailExpiration=0,g.tailMode=e,g.lastEffect=f)}function mi(a,b,c){var d=b.pendingProps,e=d.revealOrder,f=d.tail;if(R(a,b,d.children,c),0!=(2&(d=M.current)))d=1&d|2,b.effectTag|=64;else{if(null!==a&&0!=(64&a.effectTag))a:for(a=b.child;null!==a;){if(13===a.tag)null!==a.memoizedState&&ki(a,c);else if(19===a.tag)ki(a,c);else if(null!==a.child){a.child.return=a,a=a.child;continue}if(a===b)break a;for(;null===a.sibling;){if(null===a.return||a.return===b)break a;a=a.return}a.sibling.return=a.return,a=a.sibling}d&=1}if(I(M,d),0==(2&b.mode))b.memoizedState=null;else switch(e){case"forwards":for(c=b.child,e=null;null!==c;)null!==(a=c.alternate)&&null===hh(a)&&(e=c),c=c.sibling;null===(c=e)?(e=b.child,b.child=null):(e=c.sibling,c.sibling=null),li(b,!1,e,c,f,b.lastEffect);break;case"backwards":for(c=null,e=b.child,b.child=null;null!==e;){if(null!==(a=e.alternate)&&null===hh(a)){b.child=e;break}a=e.sibling,e.sibling=c,c=e,e=a}li(b,!0,c,null,f,b.lastEffect);break;case"together":li(b,!1,null,null,void 0,b.lastEffect);break;default:b.memoizedState=null}return b.child}function $h(a,b,c){null!==a&&(b.dependencies=a.dependencies);var d=b.expirationTime;if(0!==d&&Bg(d),b.childExpirationTime<c)return null;if(null!==a&&b.child!==a.child)throw Error(u(153));if(null!==b.child){for(c=Sg(a=b.child,a.pendingProps),b.child=c,c.return=b;null!==a.sibling;)a=a.sibling,(c=c.sibling=Sg(a,a.pendingProps)).return=b;c.sibling=null}return b.child}function ri(a,b){switch(a.tailMode){case"hidden":b=a.tail;for(var c=null;null!==b;)null!==b.alternate&&(c=b),b=b.sibling;null===c?a.tail=null:c.sibling=null;break;case"collapsed":c=a.tail;for(var d=null;null!==c;)null!==c.alternate&&(d=c),c=c.sibling;null===d?b||null===a.tail?a.tail=null:a.tail.sibling=null:d.sibling=null}}function si(a,b,c){var d=b.pendingProps;switch(b.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:return L(b.type)&&Df(),null;case 3:return eh(),H(K),H(J),(c=b.stateNode).pendingContext&&(c.context=c.pendingContext,c.pendingContext=null),null!==a&&null!==a.child||!Wh(b)||(b.effectTag|=4),null;case 5:gh(b),c=ch(bh.current);var e=b.type;if(null!==a&&null!=b.stateNode)pi(a,b,e,d,c),a.ref!==b.ref&&(b.effectTag|=128);else{if(!d){if(null===b.stateNode)throw Error(u(166));return null}if(a=ch($g.current),Wh(b)){d=b.stateNode,e=b.type;var f=b.memoizedProps;switch(d[Md]=b,d[Nd]=f,e){case"iframe":case"object":case"embed":F("load",d);break;case"video":case"audio":for(a=0;a<ac.length;a++)F(ac[a],d);break;case"source":F("error",d);break;case"img":case"image":case"link":F("error",d),F("load",d);break;case"form":F("reset",d),F("submit",d);break;case"details":F("toggle",d);break;case"input":Ab(d,f),F("invalid",d),rd(c,"onChange");break;case"select":d._wrapperState={wasMultiple:!!f.multiple},F("invalid",d),rd(c,"onChange");break;case"textarea":Jb(d,f),F("invalid",d),rd(c,"onChange")}for(var g in od(e,f),a=null,f)if(f.hasOwnProperty(g)){var h=f[g];"children"===g?"string"==typeof h?d.textContent!==h&&(a=["children",h]):"number"==typeof h&&d.textContent!==""+h&&(a=["children",""+h]):va.hasOwnProperty(g)&&null!=h&&rd(c,g)}switch(e){case"input":xb(d),Eb(d,f,!0);break;case"textarea":xb(d),Lb(d);break;case"select":case"option":break;default:"function"==typeof f.onClick&&(d.onclick=sd)}c=a,b.updateQueue=c,null!==c&&(b.effectTag|=4)}else{switch(g=9===c.nodeType?c:c.ownerDocument,a===qd&&(a=Nb(e)),a===qd?"script"===e?((a=g.createElement("div")).innerHTML="<script><\/script>",a=a.removeChild(a.firstChild)):"string"==typeof d.is?a=g.createElement(e,{is:d.is}):(a=g.createElement(e),"select"===e&&(g=a,d.multiple?g.multiple=!0:d.size&&(g.size=d.size))):a=g.createElementNS(a,e),a[Md]=b,a[Nd]=d,ni(a,b),b.stateNode=a,g=pd(e,d),e){case"iframe":case"object":case"embed":F("load",a),h=d;break;case"video":case"audio":for(h=0;h<ac.length;h++)F(ac[h],a);h=d;break;case"source":F("error",a),h=d;break;case"img":case"image":case"link":F("error",a),F("load",a),h=d;break;case"form":F("reset",a),F("submit",a),h=d;break;case"details":F("toggle",a),h=d;break;case"input":Ab(a,d),h=zb(a,d),F("invalid",a),rd(c,"onChange");break;case"option":h=Gb(a,d);break;case"select":a._wrapperState={wasMultiple:!!d.multiple},h=n({},d,{value:void 0}),F("invalid",a),rd(c,"onChange");break;case"textarea":Jb(a,d),h=Ib(a,d),F("invalid",a),rd(c,"onChange");break;default:h=d}od(e,h);var k=h;for(f in k)if(k.hasOwnProperty(f)){var l=k[f];"style"===f?md(a,l):"dangerouslySetInnerHTML"===f?null!=(l=l?l.__html:void 0)&&Qb(a,l):"children"===f?"string"==typeof l?("textarea"!==e||""!==l)&&Rb(a,l):"number"==typeof l&&Rb(a,""+l):"suppressContentEditableWarning"!==f&&"suppressHydrationWarning"!==f&&"autoFocus"!==f&&(va.hasOwnProperty(f)?null!=l&&rd(c,f):null!=l&&Xa(a,f,l,g))}switch(e){case"input":xb(a),Eb(a,d,!1);break;case"textarea":xb(a),Lb(a);break;case"option":null!=d.value&&a.setAttribute("value",""+rb(d.value));break;case"select":a.multiple=!!d.multiple,null!=(c=d.value)?Hb(a,!!d.multiple,c,!1):null!=d.defaultValue&&Hb(a,!!d.multiple,d.defaultValue,!0);break;default:"function"==typeof h.onClick&&(a.onclick=sd)}Fd(e,d)&&(b.effectTag|=4)}null!==b.ref&&(b.effectTag|=128)}return null;case 6:if(a&&null!=b.stateNode)qi(0,b,a.memoizedProps,d);else{if("string"!=typeof d&&null===b.stateNode)throw Error(u(166));c=ch(bh.current),ch($g.current),Wh(b)?(c=b.stateNode,d=b.memoizedProps,c[Md]=b,c.nodeValue!==d&&(b.effectTag|=4)):((c=(9===c.nodeType?c:c.ownerDocument).createTextNode(d))[Md]=b,b.stateNode=c)}return null;case 13:return H(M),d=b.memoizedState,0!=(64&b.effectTag)?(b.expirationTime=c,b):(c=null!==d,d=!1,null===a?void 0!==b.memoizedProps.fallback&&Wh(b):(d=null!==(e=a.memoizedState),c||null===e||null!==(e=a.child.sibling)&&(null!==(f=b.firstEffect)?(b.firstEffect=e,e.nextEffect=f):(b.firstEffect=b.lastEffect=e,e.nextEffect=null),e.effectTag=8)),c&&!d&&0!=(2&b.mode)&&(null===a&&!0!==b.memoizedProps.unstable_avoidThisFallback||0!=(1&M.current)?S===ti&&(S=ui):(S!==ti&&S!==ui||(S=vi),0!==wi&&null!==T&&(xi(T,U),yi(T,wi)))),(c||d)&&(b.effectTag|=4),null);case 4:return eh(),null;case 10:return og(b),null;case 17:return L(b.type)&&Df(),null;case 19:if(H(M),null===(d=b.memoizedState))return null;if(e=0!=(64&b.effectTag),null===(f=d.rendering)){if(e)ri(d,!1);else if(S!==ti||null!==a&&0!=(64&a.effectTag))for(f=b.child;null!==f;){if(null!==(a=hh(f))){for(b.effectTag|=64,ri(d,!1),null!==(e=a.updateQueue)&&(b.updateQueue=e,b.effectTag|=4),null===d.lastEffect&&(b.firstEffect=null),b.lastEffect=d.lastEffect,d=b.child;null!==d;)f=c,(e=d).effectTag&=2,e.nextEffect=null,e.firstEffect=null,e.lastEffect=null,null===(a=e.alternate)?(e.childExpirationTime=0,e.expirationTime=f,e.child=null,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null):(e.childExpirationTime=a.childExpirationTime,e.expirationTime=a.expirationTime,e.child=a.child,e.memoizedProps=a.memoizedProps,e.memoizedState=a.memoizedState,e.updateQueue=a.updateQueue,f=a.dependencies,e.dependencies=null===f?null:{expirationTime:f.expirationTime,firstContext:f.firstContext,responders:f.responders}),d=d.sibling;return I(M,1&M.current|2),b.child}f=f.sibling}}else{if(!e)if(null!==(a=hh(f))){if(b.effectTag|=64,e=!0,null!==(c=a.updateQueue)&&(b.updateQueue=c,b.effectTag|=4),ri(d,!0),null===d.tail&&"hidden"===d.tailMode&&!f.alternate)return null!==(b=b.lastEffect=d.lastEffect)&&(b.nextEffect=null),null}else 2*$f()-d.renderingStartTime>d.tailExpiration&&1<c&&(b.effectTag|=64,e=!0,ri(d,!1),b.expirationTime=b.childExpirationTime=c-1);d.isBackwards?(f.sibling=b.child,b.child=f):(null!==(c=d.last)?c.sibling=f:b.child=f,d.last=f)}return null!==d.tail?(0===d.tailExpiration&&(d.tailExpiration=$f()+500),c=d.tail,d.rendering=c,d.tail=c.sibling,d.lastEffect=b.lastEffect,d.renderingStartTime=$f(),c.sibling=null,b=M.current,I(M,e?1&b|2:1&b),c):null}throw Error(u(156,b.tag))}function zi(a){switch(a.tag){case 1:L(a.type)&&Df();var b=a.effectTag;return 4096&b?(a.effectTag=-4097&b|64,a):null;case 3:if(eh(),H(K),H(J),0!=(64&(b=a.effectTag)))throw Error(u(285));return a.effectTag=-4097&b|64,a;case 5:return gh(a),null;case 13:return H(M),4096&(b=a.effectTag)?(a.effectTag=-4097&b|64,a):null;case 19:return H(M),null;case 4:return eh(),null;case 10:return og(a),null;default:return null}}function Ai(a,b){return{value:a,source:b,stack:qb(b)}}ni=function(a,b){for(var c=b.child;null!==c;){if(5===c.tag||6===c.tag)a.appendChild(c.stateNode);else if(4!==c.tag&&null!==c.child){c.child.return=c,c=c.child;continue}if(c===b)break;for(;null===c.sibling;){if(null===c.return||c.return===b)return;c=c.return}c.sibling.return=c.return,c=c.sibling}},pi=function(a,b,c,d,e){var f=a.memoizedProps;if(f!==d){var h,k,g=b.stateNode;switch(ch($g.current),a=null,c){case"input":f=zb(g,f),d=zb(g,d),a=[];break;case"option":f=Gb(g,f),d=Gb(g,d),a=[];break;case"select":f=n({},f,{value:void 0}),d=n({},d,{value:void 0}),a=[];break;case"textarea":f=Ib(g,f),d=Ib(g,d),a=[];break;default:"function"!=typeof f.onClick&&"function"==typeof d.onClick&&(g.onclick=sd)}for(h in od(c,d),c=null,f)if(!d.hasOwnProperty(h)&&f.hasOwnProperty(h)&&null!=f[h])if("style"===h)for(k in g=f[h])g.hasOwnProperty(k)&&(c||(c={}),c[k]="");else"dangerouslySetInnerHTML"!==h&&"children"!==h&&"suppressContentEditableWarning"!==h&&"suppressHydrationWarning"!==h&&"autoFocus"!==h&&(va.hasOwnProperty(h)?a||(a=[]):(a=a||[]).push(h,null));for(h in d){var l=d[h];if(g=null!=f?f[h]:void 0,d.hasOwnProperty(h)&&l!==g&&(null!=l||null!=g))if("style"===h)if(g){for(k in g)!g.hasOwnProperty(k)||l&&l.hasOwnProperty(k)||(c||(c={}),c[k]="");for(k in l)l.hasOwnProperty(k)&&g[k]!==l[k]&&(c||(c={}),c[k]=l[k])}else c||(a||(a=[]),a.push(h,c)),c=l;else"dangerouslySetInnerHTML"===h?(l=l?l.__html:void 0,g=g?g.__html:void 0,null!=l&&g!==l&&(a=a||[]).push(h,l)):"children"===h?g===l||"string"!=typeof l&&"number"!=typeof l||(a=a||[]).push(h,""+l):"suppressContentEditableWarning"!==h&&"suppressHydrationWarning"!==h&&(va.hasOwnProperty(h)?(null!=l&&rd(e,h),a||g===l||(a=[])):(a=a||[]).push(h,l))}c&&(a=a||[]).push("style",c),e=a,(b.updateQueue=e)&&(b.effectTag|=4)}},qi=function(a,b,c,d){c!==d&&(b.effectTag|=4)};var Bi="function"==typeof WeakSet?WeakSet:Set;function Ci(a,b){var c=b.source,d=b.stack;null===d&&null!==c&&(d=qb(c)),null!==c&&pb(c.type),b=b.value,null!==a&&1===a.tag&&pb(a.type);try{console.error(b)}catch(e){setTimeout((function(){throw e}))}}function Fi(a){var b=a.ref;if(null!==b)if("function"==typeof b)try{b(null)}catch(c){Ei(a,c)}else b.current=null}function Gi(a,b){switch(b.tag){case 0:case 11:case 15:case 22:return;case 1:if(256&b.effectTag&&null!==a){var c=a.memoizedProps,d=a.memoizedState;b=(a=b.stateNode).getSnapshotBeforeUpdate(b.elementType===b.type?c:ig(b.type,c),d),a.__reactInternalSnapshotBeforeUpdate=b}return;case 3:case 5:case 6:case 4:case 17:return}throw Error(u(163))}function Hi(a,b){if(null!==(b=null!==(b=b.updateQueue)?b.lastEffect:null)){var c=b=b.next;do{if((c.tag&a)===a){var d=c.destroy;c.destroy=void 0,void 0!==d&&d()}c=c.next}while(c!==b)}}function Ii(a,b){if(null!==(b=null!==(b=b.updateQueue)?b.lastEffect:null)){var c=b=b.next;do{if((c.tag&a)===a){var d=c.create;c.destroy=d()}c=c.next}while(c!==b)}}function Ji(a,b,c){switch(c.tag){case 0:case 11:case 15:case 22:return void Ii(3,c);case 1:if(a=c.stateNode,4&c.effectTag)if(null===b)a.componentDidMount();else{var d=c.elementType===c.type?b.memoizedProps:ig(c.type,b.memoizedProps);a.componentDidUpdate(d,b.memoizedState,a.__reactInternalSnapshotBeforeUpdate)}return void(null!==(b=c.updateQueue)&&Cg(c,b,a));case 3:if(null!==(b=c.updateQueue)){if(a=null,null!==c.child)switch(c.child.tag){case 5:a=c.child.stateNode;break;case 1:a=c.child.stateNode}Cg(c,b,a)}return;case 5:return a=c.stateNode,void(null===b&&4&c.effectTag&&Fd(c.type,c.memoizedProps)&&a.focus());case 6:case 4:case 12:return;case 13:return void(null===c.memoizedState&&(c=c.alternate,null!==c&&(c=c.memoizedState,null!==c&&(c=c.dehydrated,null!==c&&Vc(c)))));case 19:case 17:case 20:case 21:return}throw Error(u(163))}function Ki(a,b,c){switch("function"==typeof Li&&Li(b),b.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(a=b.updateQueue)&&null!==(a=a.lastEffect)){var d=a.next;cg(97<c?97:c,(function(){var a=d;do{var c=a.destroy;if(void 0!==c){var g=b;try{c()}catch(h){Ei(g,h)}}a=a.next}while(a!==d)}))}break;case 1:Fi(b),"function"==typeof(c=b.stateNode).componentWillUnmount&&function(a,b){try{b.props=a.memoizedProps,b.state=a.memoizedState,b.componentWillUnmount()}catch(c){Ei(a,c)}}(b,c);break;case 5:Fi(b);break;case 4:Mi(a,b,c)}}function Ni(a){var b=a.alternate;a.return=null,a.child=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.alternate=null,a.firstEffect=null,a.lastEffect=null,a.pendingProps=null,a.memoizedProps=null,a.stateNode=null,null!==b&&Ni(b)}function Oi(a){return 5===a.tag||3===a.tag||4===a.tag}function Pi(a){a:{for(var b=a.return;null!==b;){if(Oi(b)){var c=b;break a}b=b.return}throw Error(u(160))}switch(b=c.stateNode,c.tag){case 5:var d=!1;break;case 3:case 4:b=b.containerInfo,d=!0;break;default:throw Error(u(161))}16&c.effectTag&&(Rb(b,""),c.effectTag&=-17);a:b:for(c=a;;){for(;null===c.sibling;){if(null===c.return||Oi(c.return)){c=null;break a}c=c.return}for(c.sibling.return=c.return,c=c.sibling;5!==c.tag&&6!==c.tag&&18!==c.tag;){if(2&c.effectTag)continue b;if(null===c.child||4===c.tag)continue b;c.child.return=c,c=c.child}if(!(2&c.effectTag)){c=c.stateNode;break a}}d?function Qi(a,b,c){var d=a.tag,e=5===d||6===d;if(e)a=e?a.stateNode:a.stateNode.instance,b?8===c.nodeType?c.parentNode.insertBefore(a,b):c.insertBefore(a,b):(8===c.nodeType?(b=c.parentNode).insertBefore(a,c):(b=c).appendChild(a),null!==(c=c._reactRootContainer)&&void 0!==c||null!==b.onclick||(b.onclick=sd));else if(4!==d&&null!==(a=a.child))for(Qi(a,b,c),a=a.sibling;null!==a;)Qi(a,b,c),a=a.sibling}(a,c,b):function Ri(a,b,c){var d=a.tag,e=5===d||6===d;if(e)a=e?a.stateNode:a.stateNode.instance,b?c.insertBefore(a,b):c.appendChild(a);else if(4!==d&&null!==(a=a.child))for(Ri(a,b,c),a=a.sibling;null!==a;)Ri(a,b,c),a=a.sibling}(a,c,b)}function Mi(a,b,c){for(var f,g,d=b,e=!1;;){if(!e){e=d.return;a:for(;;){if(null===e)throw Error(u(160));switch(f=e.stateNode,e.tag){case 5:g=!1;break a;case 3:case 4:f=f.containerInfo,g=!0;break a}e=e.return}e=!0}if(5===d.tag||6===d.tag){a:for(var h=a,k=d,l=c,m=k;;)if(Ki(h,m,l),null!==m.child&&4!==m.tag)m.child.return=m,m=m.child;else{if(m===k)break a;for(;null===m.sibling;){if(null===m.return||m.return===k)break a;m=m.return}m.sibling.return=m.return,m=m.sibling}g?(h=f,k=d.stateNode,8===h.nodeType?h.parentNode.removeChild(k):h.removeChild(k)):f.removeChild(d.stateNode)}else if(4===d.tag){if(null!==d.child){f=d.stateNode.containerInfo,g=!0,d.child.return=d,d=d.child;continue}}else if(Ki(a,d,c),null!==d.child){d.child.return=d,d=d.child;continue}if(d===b)break;for(;null===d.sibling;){if(null===d.return||d.return===b)return;4===(d=d.return).tag&&(e=!1)}d.sibling.return=d.return,d=d.sibling}}function Si(a,b){switch(b.tag){case 0:case 11:case 14:case 15:case 22:return void Hi(3,b);case 1:return;case 5:var c=b.stateNode;if(null!=c){var d=b.memoizedProps,e=null!==a?a.memoizedProps:d;a=b.type;var f=b.updateQueue;if(b.updateQueue=null,null!==f){for(c[Nd]=d,"input"===a&&"radio"===d.type&&null!=d.name&&Bb(c,d),pd(a,e),b=pd(a,d),e=0;e<f.length;e+=2){var g=f[e],h=f[e+1];"style"===g?md(c,h):"dangerouslySetInnerHTML"===g?Qb(c,h):"children"===g?Rb(c,h):Xa(c,g,h,b)}switch(a){case"input":Cb(c,d);break;case"textarea":Kb(c,d);break;case"select":b=c._wrapperState.wasMultiple,c._wrapperState.wasMultiple=!!d.multiple,null!=(a=d.value)?Hb(c,!!d.multiple,a,!1):b!==!!d.multiple&&(null!=d.defaultValue?Hb(c,!!d.multiple,d.defaultValue,!0):Hb(c,!!d.multiple,d.multiple?[]:"",!1))}}}return;case 6:if(null===b.stateNode)throw Error(u(162));return void(b.stateNode.nodeValue=b.memoizedProps);case 3:return void((b=b.stateNode).hydrate&&(b.hydrate=!1,Vc(b.containerInfo)));case 12:return;case 13:if(c=b,null===b.memoizedState?d=!1:(d=!0,c=b.child,Ti=$f()),null!==c)a:for(a=c;;){if(5===a.tag)f=a.stateNode,d?"function"==typeof(f=f.style).setProperty?f.setProperty("display","none","important"):f.display="none":(f=a.stateNode,e=null!=(e=a.memoizedProps.style)&&e.hasOwnProperty("display")?e.display:null,f.style.display=ld("display",e));else if(6===a.tag)a.stateNode.nodeValue=d?"":a.memoizedProps;else{if(13===a.tag&&null!==a.memoizedState&&null===a.memoizedState.dehydrated){(f=a.child.sibling).return=a,a=f;continue}if(null!==a.child){a.child.return=a,a=a.child;continue}}if(a===c)break;for(;null===a.sibling;){if(null===a.return||a.return===c)break a;a=a.return}a.sibling.return=a.return,a=a.sibling}return void Ui(b);case 19:return void Ui(b);case 17:return}throw Error(u(163))}function Ui(a){var b=a.updateQueue;if(null!==b){a.updateQueue=null;var c=a.stateNode;null===c&&(c=a.stateNode=new Bi),b.forEach((function(b){var d=Vi.bind(null,a,b);c.has(b)||(c.add(b),b.then(d,d))}))}}var Wi="function"==typeof WeakMap?WeakMap:Map;function Xi(a,b,c){(c=wg(c,null)).tag=3,c.payload={element:null};var d=b.value;return c.callback=function(){Yi||(Yi=!0,Zi=d),Ci(a,b)},c}function $i(a,b,c){(c=wg(c,null)).tag=3;var d=a.type.getDerivedStateFromError;if("function"==typeof d){var e=b.value;c.payload=function(){return Ci(a,b),d(e)}}var f=a.stateNode;return null!==f&&"function"==typeof f.componentDidCatch&&(c.callback=function(){"function"!=typeof d&&(null===aj?aj=new Set([this]):aj.add(this),Ci(a,b));var c=b.stack;this.componentDidCatch(b.value,{componentStack:null!==c?c:""})}),c}var Rj,bj=Math.ceil,cj=Wa.ReactCurrentDispatcher,dj=Wa.ReactCurrentOwner,ti=0,ui=3,vi=4,W=0,T=null,X=null,U=0,S=ti,kj=null,lj=1073741823,mj=1073741823,nj=null,wi=0,oj=!1,Ti=0,Y=null,Yi=!1,Zi=null,aj=null,qj=!1,rj=null,sj=90,tj=null,uj=0,vj=null,wj=0;function Gg(){return 0!=(48&W)?1073741821-($f()/10|0):0!==wj?wj:wj=1073741821-($f()/10|0)}function Hg(a,b,c){if(0==(2&(b=b.mode)))return 1073741823;var d=ag();if(0==(4&b))return 99===d?1073741823:1073741822;if(0!=(16&W))return U;if(null!==c)a=hg(a,0|c.timeoutMs||5e3,250);else switch(d){case 99:a=1073741823;break;case 98:a=hg(a,150,100);break;case 97:case 96:a=hg(a,5e3,250);break;case 95:a=2;break;default:throw Error(u(326))}return null!==T&&a===U&&--a,a}function Ig(a,b){if(50<uj)throw uj=0,vj=null,Error(u(185));if(null!==(a=xj(a,b))){var c=ag();1073741823===b?0!=(8&W)&&0==(48&W)?yj(a):(Z(a),0===W&&gg()):Z(a),0==(4&W)||98!==c&&99!==c||(null===tj?tj=new Map([[a,b]]):(void 0===(c=tj.get(a))||c>b)&&tj.set(a,b))}}function xj(a,b){a.expirationTime<b&&(a.expirationTime=b);var c=a.alternate;null!==c&&c.expirationTime<b&&(c.expirationTime=b);var d=a.return,e=null;if(null===d&&3===a.tag)e=a.stateNode;else for(;null!==d;){if(c=d.alternate,d.childExpirationTime<b&&(d.childExpirationTime=b),null!==c&&c.childExpirationTime<b&&(c.childExpirationTime=b),null===d.return&&3===d.tag){e=d.stateNode;break}d=d.return}return null!==e&&(T===e&&(Bg(b),S===vi&&xi(e,U)),yi(e,b)),e}function zj(a){var b=a.lastExpiredTime;if(0!==b)return b;if(!Aj(a,b=a.firstPendingTime))return b;var c=a.lastPingedTime;return 2>=(a=c>(a=a.nextKnownPendingLevel)?c:a)&&b!==a?0:a}function Z(a){if(0!==a.lastExpiredTime)a.callbackExpirationTime=1073741823,a.callbackPriority=99,a.callbackNode=eg(yj.bind(null,a));else{var b=zj(a),c=a.callbackNode;if(0===b)null!==c&&(a.callbackNode=null,a.callbackExpirationTime=0,a.callbackPriority=90);else{var d=Gg();if(1073741823===b?d=99:1===b||2===b?d=95:d=0>=(d=10*(1073741821-b)-10*(1073741821-d))?99:250>=d?98:5250>=d?97:95,null!==c){var e=a.callbackPriority;if(a.callbackExpirationTime===b&&e>=d)return;c!==Tf&&Kf(c)}a.callbackExpirationTime=b,a.callbackPriority=d,b=1073741823===b?eg(yj.bind(null,a)):dg(d,Bj.bind(null,a),{timeout:10*(1073741821-b)-$f()}),a.callbackNode=b}}}function Bj(a,b){if(wj=0,b)return Cj(a,b=Gg()),Z(a),null;var c=zj(a);if(0!==c){if(b=a.callbackNode,0!=(48&W))throw Error(u(327));if(Dj(),a===T&&c===U||Ej(a,c),null!==X){var d=W;W|=16;for(var e=Fj();;)try{Gj();break}catch(h){Hj(a,h)}if(ng(),W=d,cj.current=e,1===S)throw b=kj,Ej(a,c),xi(a,c),Z(a),b;if(null===X)switch(e=a.finishedWork=a.current.alternate,a.finishedExpirationTime=c,d=S,T=null,d){case ti:case 1:throw Error(u(345));case 2:Cj(a,2<c?2:c);break;case ui:if(xi(a,c),c===(d=a.lastSuspendedTime)&&(a.nextKnownPendingLevel=Ij(e)),1073741823===lj&&10<(e=Ti+500-$f())){if(oj){var f=a.lastPingedTime;if(0===f||f>=c){a.lastPingedTime=c,Ej(a,c);break}}if(0!==(f=zj(a))&&f!==c)break;if(0!==d&&d!==c){a.lastPingedTime=d;break}a.timeoutHandle=Hd(Jj.bind(null,a),e);break}Jj(a);break;case vi:if(xi(a,c),c===(d=a.lastSuspendedTime)&&(a.nextKnownPendingLevel=Ij(e)),oj&&(0===(e=a.lastPingedTime)||e>=c)){a.lastPingedTime=c,Ej(a,c);break}if(0!==(e=zj(a))&&e!==c)break;if(0!==d&&d!==c){a.lastPingedTime=d;break}if(1073741823!==mj?d=10*(1073741821-mj)-$f():1073741823===lj?d=0:(d=10*(1073741821-lj)-5e3,0>(d=(e=$f())-d)&&(d=0),(c=10*(1073741821-c)-e)<(d=(120>d?120:480>d?480:1080>d?1080:1920>d?1920:3e3>d?3e3:4320>d?4320:1960*bj(d/1960))-d)&&(d=c)),10<d){a.timeoutHandle=Hd(Jj.bind(null,a),d);break}Jj(a);break;case 5:if(1073741823!==lj&&null!==nj){f=lj;var g=nj;if(0>=(d=0|g.busyMinDurationMs)?d=0:(e=0|g.busyDelayMs,d=(f=$f()-(10*(1073741821-f)-(0|g.timeoutMs||5e3)))<=e?0:e+d-f),10<d){xi(a,c),a.timeoutHandle=Hd(Jj.bind(null,a),d);break}}Jj(a);break;default:throw Error(u(329))}if(Z(a),a.callbackNode===b)return Bj.bind(null,a)}}return null}function yj(a){var b=a.lastExpiredTime;if(b=0!==b?b:1073741823,0!=(48&W))throw Error(u(327));if(Dj(),a===T&&b===U||Ej(a,b),null!==X){var c=W;W|=16;for(var d=Fj();;)try{Kj();break}catch(e){Hj(a,e)}if(ng(),W=c,cj.current=d,1===S)throw c=kj,Ej(a,b),xi(a,b),Z(a),c;if(null!==X)throw Error(u(261));a.finishedWork=a.current.alternate,a.finishedExpirationTime=b,T=null,Jj(a),Z(a)}return null}function Mj(a,b){var c=W;W|=1;try{return a(b)}finally{0===(W=c)&&gg()}}function Nj(a,b){var c=W;W&=-2,W|=8;try{return a(b)}finally{0===(W=c)&&gg()}}function Ej(a,b){a.finishedWork=null,a.finishedExpirationTime=0;var c=a.timeoutHandle;if(-1!==c&&(a.timeoutHandle=-1,Id(c)),null!==X)for(c=X.return;null!==c;){var d=c;switch(d.tag){case 1:null!=(d=d.type.childContextTypes)&&Df();break;case 3:eh(),H(K),H(J);break;case 5:gh(d);break;case 4:eh();break;case 13:case 19:H(M);break;case 10:og(d)}c=c.return}T=a,X=Sg(a.current,null),U=b,S=ti,kj=null,mj=lj=1073741823,nj=null,wi=0,oj=!1}function Hj(a,b){for(;;){try{if(ng(),jh.current=sh,mh)for(var c=N.memoizedState;null!==c;){var d=c.queue;null!==d&&(d.pending=null),c=c.next}if(lh=0,P=O=N=null,mh=!1,null===X||null===X.return)return S=1,kj=b,X=null;a:{var e=a,f=X.return,g=X,h=b;if(b=U,g.effectTag|=2048,g.firstEffect=g.lastEffect=null,null!==h&&"object"==typeof h&&"function"==typeof h.then){var k=h;if(0==(2&g.mode)){var l=g.alternate;l?(g.updateQueue=l.updateQueue,g.memoizedState=l.memoizedState,g.expirationTime=l.expirationTime):(g.updateQueue=null,g.memoizedState=null)}var m=0!=(1&M.current),p=f;do{var x;if(x=13===p.tag){var z=p.memoizedState;if(null!==z)x=null!==z.dehydrated;else{var ca=p.memoizedProps;x=void 0!==ca.fallback&&(!0!==ca.unstable_avoidThisFallback||!m)}}if(x){var D=p.updateQueue;if(null===D){var t=new Set;t.add(k),p.updateQueue=t}else D.add(k);if(0==(2&p.mode)){if(p.effectTag|=64,g.effectTag&=-2981,1===g.tag)if(null===g.alternate)g.tag=17;else{var y=wg(1073741823,null);y.tag=2,xg(g,y)}g.expirationTime=1073741823;break a}h=void 0,g=b;var A=e.pingCache;if(null===A?(A=e.pingCache=new Wi,h=new Set,A.set(k,h)):void 0===(h=A.get(k))&&(h=new Set,A.set(k,h)),!h.has(g)){h.add(g);var q=Oj.bind(null,e,k,g);k.then(q,q)}p.effectTag|=4096,p.expirationTime=b;break a}p=p.return}while(null!==p);h=Error((pb(g.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display."+qb(g))}5!==S&&(S=2),h=Ai(h,g),p=f;do{switch(p.tag){case 3:k=h,p.effectTag|=4096,p.expirationTime=b,yg(p,Xi(p,k,b));break a;case 1:k=h;var w=p.type,ub=p.stateNode;if(0==(64&p.effectTag)&&("function"==typeof w.getDerivedStateFromError||null!==ub&&"function"==typeof ub.componentDidCatch&&(null===aj||!aj.has(ub)))){p.effectTag|=4096,p.expirationTime=b,yg(p,$i(p,k,b));break a}}p=p.return}while(null!==p)}X=Pj(X)}catch(Xc){b=Xc;continue}break}}function Fj(){var a=cj.current;return cj.current=sh,null===a?sh:a}function Ag(a,b){a<lj&&2<a&&(lj=a),null!==b&&a<mj&&2<a&&(mj=a,nj=b)}function Bg(a){a>wi&&(wi=a)}function Kj(){for(;null!==X;)X=Qj(X)}function Gj(){for(;null!==X&&!Uf();)X=Qj(X)}function Qj(a){var b=Rj(a.alternate,a,U);return a.memoizedProps=a.pendingProps,null===b&&(b=Pj(a)),dj.current=null,b}function Pj(a){X=a;do{var b=X.alternate;if(a=X.return,0==(2048&X.effectTag)){if(b=si(b,X,U),1===U||1!==X.childExpirationTime){for(var c=0,d=X.child;null!==d;){var e=d.expirationTime,f=d.childExpirationTime;e>c&&(c=e),f>c&&(c=f),d=d.sibling}X.childExpirationTime=c}if(null!==b)return b;null!==a&&0==(2048&a.effectTag)&&(null===a.firstEffect&&(a.firstEffect=X.firstEffect),null!==X.lastEffect&&(null!==a.lastEffect&&(a.lastEffect.nextEffect=X.firstEffect),a.lastEffect=X.lastEffect),1<X.effectTag&&(null!==a.lastEffect?a.lastEffect.nextEffect=X:a.firstEffect=X,a.lastEffect=X))}else{if(null!==(b=zi(X)))return b.effectTag&=2047,b;null!==a&&(a.firstEffect=a.lastEffect=null,a.effectTag|=2048)}if(null!==(b=X.sibling))return b;X=a}while(null!==X);return S===ti&&(S=5),null}function Ij(a){var b=a.expirationTime;return b>(a=a.childExpirationTime)?b:a}function Jj(a){var b=ag();return cg(99,Sj.bind(null,a,b)),null}function Sj(a,b){do{Dj()}while(null!==rj);if(0!=(48&W))throw Error(u(327));var c=a.finishedWork,d=a.finishedExpirationTime;if(null===c)return null;if(a.finishedWork=null,a.finishedExpirationTime=0,c===a.current)throw Error(u(177));a.callbackNode=null,a.callbackExpirationTime=0,a.callbackPriority=90,a.nextKnownPendingLevel=0;var e=Ij(c);if(a.firstPendingTime=e,d<=a.lastSuspendedTime?a.firstSuspendedTime=a.lastSuspendedTime=a.nextKnownPendingLevel=0:d<=a.firstSuspendedTime&&(a.firstSuspendedTime=d-1),d<=a.lastPingedTime&&(a.lastPingedTime=0),d<=a.lastExpiredTime&&(a.lastExpiredTime=0),a===T&&(X=T=null,U=0),1<c.effectTag?null!==c.lastEffect?(c.lastEffect.nextEffect=c,e=c.firstEffect):e=c:e=c.firstEffect,null!==e){var f=W;W|=32,dj.current=null,Dd=fd;var g=xd();if(yd(g)){if("selectionStart"in g)var h={start:g.selectionStart,end:g.selectionEnd};else a:{var k=(h=(h=g.ownerDocument)&&h.defaultView||window).getSelection&&h.getSelection();if(k&&0!==k.rangeCount){h=k.anchorNode;var l=k.anchorOffset,m=k.focusNode;k=k.focusOffset;try{h.nodeType,m.nodeType}catch(wb){h=null;break a}var p=0,x=-1,z=-1,ca=0,D=0,t=g,y=null;b:for(;;){for(var A;t!==h||0!==l&&3!==t.nodeType||(x=p+l),t!==m||0!==k&&3!==t.nodeType||(z=p+k),3===t.nodeType&&(p+=t.nodeValue.length),null!==(A=t.firstChild);)y=t,t=A;for(;;){if(t===g)break b;if(y===h&&++ca===l&&(x=p),y===m&&++D===k&&(z=p),null!==(A=t.nextSibling))break;y=(t=y).parentNode}t=A}h=-1===x||-1===z?null:{start:x,end:z}}else h=null}h=h||{start:0,end:0}}else h=null;Ed={activeElementDetached:null,focusedElem:g,selectionRange:h},fd=!1,Y=e;do{try{Tj()}catch(wb){if(null===Y)throw Error(u(330));Ei(Y,wb),Y=Y.nextEffect}}while(null!==Y);Y=e;do{try{for(g=a,h=b;null!==Y;){var q=Y.effectTag;if(16&q&&Rb(Y.stateNode,""),128&q){var B=Y.alternate;if(null!==B){var w=B.ref;null!==w&&("function"==typeof w?w(null):w.current=null)}}switch(1038&q){case 2:Pi(Y),Y.effectTag&=-3;break;case 6:Pi(Y),Y.effectTag&=-3,Si(Y.alternate,Y);break;case 1024:Y.effectTag&=-1025;break;case 1028:Y.effectTag&=-1025,Si(Y.alternate,Y);break;case 4:Si(Y.alternate,Y);break;case 8:Mi(g,l=Y,h),Ni(l)}Y=Y.nextEffect}}catch(wb){if(null===Y)throw Error(u(330));Ei(Y,wb),Y=Y.nextEffect}}while(null!==Y);if(w=Ed,B=xd(),q=w.focusedElem,h=w.selectionRange,B!==q&&q&&q.ownerDocument&&function wd(a,b){return!(!a||!b)&&(a===b||(!a||3!==a.nodeType)&&(b&&3===b.nodeType?wd(a,b.parentNode):"contains"in a?a.contains(b):!!a.compareDocumentPosition&&!!(16&a.compareDocumentPosition(b))))}(q.ownerDocument.documentElement,q)){null!==h&&yd(q)&&(B=h.start,void 0===(w=h.end)&&(w=B),"selectionStart"in q?(q.selectionStart=B,q.selectionEnd=Math.min(w,q.value.length)):(w=(B=q.ownerDocument||document)&&B.defaultView||window).getSelection&&(w=w.getSelection(),l=q.textContent.length,g=Math.min(h.start,l),h=void 0===h.end?g:Math.min(h.end,l),!w.extend&&g>h&&(l=h,h=g,g=l),l=vd(q,g),m=vd(q,h),l&&m&&(1!==w.rangeCount||w.anchorNode!==l.node||w.anchorOffset!==l.offset||w.focusNode!==m.node||w.focusOffset!==m.offset)&&((B=B.createRange()).setStart(l.node,l.offset),w.removeAllRanges(),g>h?(w.addRange(B),w.extend(m.node,m.offset)):(B.setEnd(m.node,m.offset),w.addRange(B))))),B=[];for(w=q;w=w.parentNode;)1===w.nodeType&&B.push({element:w,left:w.scrollLeft,top:w.scrollTop});for("function"==typeof q.focus&&q.focus(),q=0;q<B.length;q++)(w=B[q]).element.scrollLeft=w.left,w.element.scrollTop=w.top}fd=!!Dd,Ed=Dd=null,a.current=c,Y=e;do{try{for(q=a;null!==Y;){var ub=Y.effectTag;if(36&ub&&Ji(q,Y.alternate,Y),128&ub){B=void 0;var vb=Y.ref;if(null!==vb){var Xc=Y.stateNode;switch(Y.tag){case 5:B=Xc;break;default:B=Xc}"function"==typeof vb?vb(B):vb.current=B}}Y=Y.nextEffect}}catch(wb){if(null===Y)throw Error(u(330));Ei(Y,wb),Y=Y.nextEffect}}while(null!==Y);Y=null,Vf(),W=f}else a.current=c;if(qj)qj=!1,rj=a,sj=b;else for(Y=e;null!==Y;)b=Y.nextEffect,Y.nextEffect=null,Y=b;if(0===(b=a.firstPendingTime)&&(aj=null),1073741823===b?a===vj?uj++:(uj=0,vj=a):uj=0,"function"==typeof Uj&&Uj(c.stateNode,d),Z(a),Yi)throw Yi=!1,a=Zi,Zi=null,a;return 0!=(8&W)||gg(),null}function Tj(){for(;null!==Y;){var a=Y.effectTag;0!=(256&a)&&Gi(Y.alternate,Y),0==(512&a)||qj||(qj=!0,dg(97,(function(){return Dj(),null}))),Y=Y.nextEffect}}function Dj(){if(90!==sj){var a=97<sj?97:sj;return sj=90,cg(a,Vj)}}function Vj(){if(null===rj)return!1;var a=rj;if(rj=null,0!=(48&W))throw Error(u(331));var b=W;for(W|=32,a=a.current.firstEffect;null!==a;){try{var c=a;if(0!=(512&c.effectTag))switch(c.tag){case 0:case 11:case 15:case 22:Hi(5,c),Ii(5,c)}}catch(d){if(null===a)throw Error(u(330));Ei(a,d)}c=a.nextEffect,a.nextEffect=null,a=c}return W=b,gg(),!0}function Wj(a,b,c){xg(a,b=Xi(a,b=Ai(c,b),1073741823)),null!==(a=xj(a,1073741823))&&Z(a)}function Ei(a,b){if(3===a.tag)Wj(a,a,b);else for(var c=a.return;null!==c;){if(3===c.tag){Wj(c,a,b);break}if(1===c.tag){var d=c.stateNode;if("function"==typeof c.type.getDerivedStateFromError||"function"==typeof d.componentDidCatch&&(null===aj||!aj.has(d))){xg(c,a=$i(c,a=Ai(b,a),1073741823)),null!==(c=xj(c,1073741823))&&Z(c);break}}c=c.return}}function Oj(a,b,c){var d=a.pingCache;null!==d&&d.delete(b),T===a&&U===c?S===vi||S===ui&&1073741823===lj&&$f()-Ti<500?Ej(a,U):oj=!0:Aj(a,c)&&(0!==(b=a.lastPingedTime)&&b<c||(a.lastPingedTime=c,Z(a)))}function Vi(a,b){var c=a.stateNode;null!==c&&c.delete(b),0===(b=0)&&(b=Hg(b=Gg(),a,null)),null!==(a=xj(a,b))&&Z(a)}Rj=function(a,b,c){var d=b.expirationTime;if(null!==a){var e=b.pendingProps;if(a.memoizedProps!==e||K.current)rg=!0;else{if(d<c){switch(rg=!1,b.tag){case 3:hi(b),Xh();break;case 5:if(fh(b),4&b.mode&&1!==c&&e.hidden)return b.expirationTime=b.childExpirationTime=1,null;break;case 1:L(b.type)&&Gf(b);break;case 4:dh(b,b.stateNode.containerInfo);break;case 10:d=b.memoizedProps.value,e=b.type._context,I(jg,e._currentValue),e._currentValue=d;break;case 13:if(null!==b.memoizedState)return 0!==(d=b.child.childExpirationTime)&&d>=c?ji(a,b,c):(I(M,1&M.current),null!==(b=$h(a,b,c))?b.sibling:null);I(M,1&M.current);break;case 19:if(d=b.childExpirationTime>=c,0!=(64&a.effectTag)){if(d)return mi(a,b,c);b.effectTag|=64}if(null!==(e=b.memoizedState)&&(e.rendering=null,e.tail=null),I(M,M.current),!d)return null}return $h(a,b,c)}rg=!1}}else rg=!1;switch(b.expirationTime=0,b.tag){case 2:if(d=b.type,null!==a&&(a.alternate=null,b.alternate=null,b.effectTag|=2),a=b.pendingProps,e=Cf(b,J.current),qg(b,c),e=oh(null,b,d,a,e,c),b.effectTag|=1,"object"==typeof e&&null!==e&&"function"==typeof e.render&&void 0===e.$$typeof){if(b.tag=1,b.memoizedState=null,b.updateQueue=null,L(d)){var f=!0;Gf(b)}else f=!1;b.memoizedState=null!==e.state&&void 0!==e.state?e.state:null,ug(b);var g=d.getDerivedStateFromProps;"function"==typeof g&&Fg(b,d,g,a),e.updater=Jg,b.stateNode=e,e._reactInternalFiber=b,Ng(b,d,a,c),b=gi(null,b,d,!0,f,c)}else b.tag=0,R(null,b,e,c),b=b.child;return b;case 16:a:{if(e=b.elementType,null!==a&&(a.alternate=null,b.alternate=null,b.effectTag|=2),a=b.pendingProps,function(a){if(-1===a._status){a._status=0;var b=a._ctor;b=b(),a._result=b,b.then((function(b){0===a._status&&(b=b.default,a._status=1,a._result=b)}),(function(b){0===a._status&&(a._status=2,a._result=b)}))}}(e),1!==e._status)throw e._result;switch(e=e._result,b.type=e,f=b.tag=function(a){if("function"==typeof a)return bi(a)?1:0;if(null!=a){if((a=a.$$typeof)===gb)return 11;if(a===jb)return 14}return 2}(e),a=ig(e,a),f){case 0:b=di(null,b,e,a,c);break a;case 1:b=fi(null,b,e,a,c);break a;case 11:b=Zh(null,b,e,a,c);break a;case 14:b=ai(null,b,e,ig(e.type,a),d,c);break a}throw Error(u(306,e,""))}return b;case 0:return d=b.type,e=b.pendingProps,di(a,b,d,e=b.elementType===d?e:ig(d,e),c);case 1:return d=b.type,e=b.pendingProps,fi(a,b,d,e=b.elementType===d?e:ig(d,e),c);case 3:if(hi(b),d=b.updateQueue,null===a||null===d)throw Error(u(282));if(d=b.pendingProps,e=null!==(e=b.memoizedState)?e.element:null,vg(a,b),zg(b,d,null,c),(d=b.memoizedState.element)===e)Xh(),b=$h(a,b,c);else{if((e=b.stateNode.hydrate)&&(Ph=Jd(b.stateNode.containerInfo.firstChild),Oh=b,e=Qh=!0),e)for(c=Yg(b,null,d,c),b.child=c;c;)c.effectTag=-3&c.effectTag|1024,c=c.sibling;else R(a,b,d,c),Xh();b=b.child}return b;case 5:return fh(b),null===a&&Uh(b),d=b.type,e=b.pendingProps,f=null!==a?a.memoizedProps:null,g=e.children,Gd(d,e)?g=null:null!==f&&Gd(d,f)&&(b.effectTag|=16),ei(a,b),4&b.mode&&1!==c&&e.hidden?(b.expirationTime=b.childExpirationTime=1,b=null):(R(a,b,g,c),b=b.child),b;case 6:return null===a&&Uh(b),null;case 13:return ji(a,b,c);case 4:return dh(b,b.stateNode.containerInfo),d=b.pendingProps,null===a?b.child=Xg(b,null,d,c):R(a,b,d,c),b.child;case 11:return d=b.type,e=b.pendingProps,Zh(a,b,d,e=b.elementType===d?e:ig(d,e),c);case 7:return R(a,b,b.pendingProps,c),b.child;case 8:case 12:return R(a,b,b.pendingProps.children,c),b.child;case 10:a:{d=b.type._context,e=b.pendingProps,g=b.memoizedProps,f=e.value;var h=b.type._context;if(I(jg,h._currentValue),h._currentValue=f,null!==g)if(h=g.value,0===(f=$e(h,f)?0:0|("function"==typeof d._calculateChangedBits?d._calculateChangedBits(h,f):1073741823))){if(g.children===e.children&&!K.current){b=$h(a,b,c);break a}}else for(null!==(h=b.child)&&(h.return=b);null!==h;){var k=h.dependencies;if(null!==k){g=h.child;for(var l=k.firstContext;null!==l;){if(l.context===d&&0!=(l.observedBits&f)){1===h.tag&&((l=wg(c,null)).tag=2,xg(h,l)),h.expirationTime<c&&(h.expirationTime=c),null!==(l=h.alternate)&&l.expirationTime<c&&(l.expirationTime=c),pg(h.return,c),k.expirationTime<c&&(k.expirationTime=c);break}l=l.next}}else g=10===h.tag&&h.type===b.type?null:h.child;if(null!==g)g.return=h;else for(g=h;null!==g;){if(g===b){g=null;break}if(null!==(h=g.sibling)){h.return=g.return,g=h;break}g=g.return}h=g}R(a,b,e.children,c),b=b.child}return b;case 9:return e=b.type,d=(f=b.pendingProps).children,qg(b,c),d=d(e=sg(e,f.unstable_observedBits)),b.effectTag|=1,R(a,b,d,c),b.child;case 14:return f=ig(e=b.type,b.pendingProps),ai(a,b,e,f=ig(e.type,f),d,c);case 15:return ci(a,b,b.type,b.pendingProps,d,c);case 17:return d=b.type,e=b.pendingProps,e=b.elementType===d?e:ig(d,e),null!==a&&(a.alternate=null,b.alternate=null,b.effectTag|=2),b.tag=1,L(d)?(a=!0,Gf(b)):a=!1,qg(b,c),Lg(b,d,e),Ng(b,d,e,c),gi(null,b,d,!0,a,c);case 19:return mi(a,b,c)}throw Error(u(156,b.tag))};var Uj=null,Li=null;function Zj(a,b,c,d){this.tag=a,this.key=c,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=b,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=d,this.effectTag=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childExpirationTime=this.expirationTime=0,this.alternate=null}function Sh(a,b,c,d){return new Zj(a,b,c,d)}function bi(a){return!(!(a=a.prototype)||!a.isReactComponent)}function Sg(a,b){var c=a.alternate;return null===c?((c=Sh(a.tag,b,a.key,a.mode)).elementType=a.elementType,c.type=a.type,c.stateNode=a.stateNode,c.alternate=a,a.alternate=c):(c.pendingProps=b,c.effectTag=0,c.nextEffect=null,c.firstEffect=null,c.lastEffect=null),c.childExpirationTime=a.childExpirationTime,c.expirationTime=a.expirationTime,c.child=a.child,c.memoizedProps=a.memoizedProps,c.memoizedState=a.memoizedState,c.updateQueue=a.updateQueue,b=a.dependencies,c.dependencies=null===b?null:{expirationTime:b.expirationTime,firstContext:b.firstContext,responders:b.responders},c.sibling=a.sibling,c.index=a.index,c.ref=a.ref,c}function Ug(a,b,c,d,e,f){var g=2;if(d=a,"function"==typeof a)bi(a)&&(g=1);else if("string"==typeof a)g=5;else a:switch(a){case ab:return Wg(c.children,e,f,b);case fb:g=8,e|=7;break;case bb:g=8,e|=1;break;case cb:return(a=Sh(12,c,b,8|e)).elementType=cb,a.type=cb,a.expirationTime=f,a;case hb:return(a=Sh(13,c,b,e)).type=hb,a.elementType=hb,a.expirationTime=f,a;case ib:return(a=Sh(19,c,b,e)).elementType=ib,a.expirationTime=f,a;default:if("object"==typeof a&&null!==a)switch(a.$$typeof){case db:g=10;break a;case eb:g=9;break a;case gb:g=11;break a;case jb:g=14;break a;case kb:g=16,d=null;break a;case lb:g=22;break a}throw Error(u(130,null==a?a:typeof a,""))}return(b=Sh(g,c,b,e)).elementType=a,b.type=d,b.expirationTime=f,b}function Wg(a,b,c,d){return(a=Sh(7,a,d,b)).expirationTime=c,a}function Tg(a,b,c){return(a=Sh(6,a,null,b)).expirationTime=c,a}function Vg(a,b,c){return(b=Sh(4,null!==a.children?a.children:[],a.key,b)).expirationTime=c,b.stateNode={containerInfo:a.containerInfo,pendingChildren:null,implementation:a.implementation},b}function ak(a,b,c){this.tag=b,this.current=null,this.containerInfo=a,this.pingCache=this.pendingChildren=null,this.finishedExpirationTime=0,this.finishedWork=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=c,this.callbackNode=null,this.callbackPriority=90,this.lastExpiredTime=this.lastPingedTime=this.nextKnownPendingLevel=this.lastSuspendedTime=this.firstSuspendedTime=this.firstPendingTime=0}function Aj(a,b){var c=a.firstSuspendedTime;return a=a.lastSuspendedTime,0!==c&&c>=b&&a<=b}function xi(a,b){var c=a.firstSuspendedTime,d=a.lastSuspendedTime;c<b&&(a.firstSuspendedTime=b),(d>b||0===c)&&(a.lastSuspendedTime=b),b<=a.lastPingedTime&&(a.lastPingedTime=0),b<=a.lastExpiredTime&&(a.lastExpiredTime=0)}function yi(a,b){b>a.firstPendingTime&&(a.firstPendingTime=b);var c=a.firstSuspendedTime;0!==c&&(b>=c?a.firstSuspendedTime=a.lastSuspendedTime=a.nextKnownPendingLevel=0:b>=a.lastSuspendedTime&&(a.lastSuspendedTime=b+1),b>a.nextKnownPendingLevel&&(a.nextKnownPendingLevel=b))}function Cj(a,b){var c=a.lastExpiredTime;(0===c||c>b)&&(a.lastExpiredTime=b)}function bk(a,b,c,d){var e=b.current,f=Gg(),g=Dg.suspense;f=Hg(f,e,g);a:if(c){b:{if(dc(c=c._reactInternalFiber)!==c||1!==c.tag)throw Error(u(170));var h=c;do{switch(h.tag){case 3:h=h.stateNode.context;break b;case 1:if(L(h.type)){h=h.stateNode.__reactInternalMemoizedMergedChildContext;break b}}h=h.return}while(null!==h);throw Error(u(171))}if(1===c.tag){var k=c.type;if(L(k)){c=Ff(c,k,h);break a}}c=h}else c=Af;return null===b.context?b.context=c:b.pendingContext=c,(b=wg(f,g)).payload={element:a},null!==(d=void 0===d?null:d)&&(b.callback=d),xg(e,b),Ig(e,f),f}function ck(a){if(!(a=a.current).child)return null;switch(a.child.tag){case 5:default:return a.child.stateNode}}function dk(a,b){null!==(a=a.memoizedState)&&null!==a.dehydrated&&a.retryTime<b&&(a.retryTime=b)}function ek(a,b){dk(a,b),(a=a.alternate)&&dk(a,b)}function fk(a,b,c){var d=new ak(a,b,c=null!=c&&!0===c.hydrate),e=Sh(3,null,null,2===b?7:1===b?3:0);d.current=e,e.stateNode=d,ug(e),a[Od]=d.current,c&&0!==b&&function(a,b){var c=cc(b);Hc.forEach((function(a){uc(a,b,c)})),Ic.forEach((function(a){uc(a,b,c)}))}(0,9===a.nodeType?a:a.ownerDocument),this._internalRoot=d}function gk(a){return!(!a||1!==a.nodeType&&9!==a.nodeType&&11!==a.nodeType&&(8!==a.nodeType||" react-mount-point-unstable "!==a.nodeValue))}function ik(a,b,c,d,e){var f=c._reactRootContainer;if(f){var g=f._internalRoot;if("function"==typeof e){var h=e;e=function(){var a=ck(g);h.call(a)}}bk(b,g,a,e)}else{if(f=c._reactRootContainer=function(a,b){if(b||(b=!(!(b=a?9===a.nodeType?a.documentElement:a.firstChild:null)||1!==b.nodeType||!b.hasAttribute("data-reactroot"))),!b)for(var c;c=a.lastChild;)a.removeChild(c);return new fk(a,0,b?{hydrate:!0}:void 0)}(c,d),g=f._internalRoot,"function"==typeof e){var k=e;e=function(){var a=ck(g);k.call(a)}}Nj((function(){bk(b,g,a,e)}))}return ck(g)}function jk(a,b,c){var d=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:$a,key:null==d?null:""+d,children:a,containerInfo:b,implementation:c}}function kk(a,b){var c=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!gk(b))throw Error(u(200));return jk(a,b,null,c)}fk.prototype.render=function(a){bk(a,this._internalRoot,null,null)},fk.prototype.unmount=function(){var a=this._internalRoot,b=a.containerInfo;bk(null,a,null,(function(){b[Od]=null}))},wc=function(a){if(13===a.tag){var b=hg(Gg(),150,100);Ig(a,b),ek(a,b)}},xc=function(a){13===a.tag&&(Ig(a,3),ek(a,3))},yc=function(a){if(13===a.tag){var b=Gg();Ig(a,b=Hg(b,a,null)),ek(a,b)}},za=function(a,b,c){switch(b){case"input":if(Cb(a,c),b=c.name,"radio"===c.type&&null!=b){for(c=a;c.parentNode;)c=c.parentNode;for(c=c.querySelectorAll("input[name="+JSON.stringify(""+b)+'][type="radio"]'),b=0;b<c.length;b++){var d=c[b];if(d!==a&&d.form===a.form){var e=Qd(d);if(!e)throw Error(u(90));yb(d),Cb(d,e)}}}break;case"textarea":Kb(a,c);break;case"select":null!=(b=c.value)&&Hb(a,!!c.multiple,b,!1)}},Fa=Mj,Ga=function(a,b,c,d,e){var f=W;W|=4;try{return cg(98,a.bind(null,b,c,d,e))}finally{0===(W=f)&&gg()}},Ha=function(){0==(49&W)&&(function(){if(null!==tj){var a=tj;tj=null,a.forEach((function(a,c){Cj(c,a),Z(c)})),gg()}}(),Dj())},Ia=function(a,b){var c=W;W|=2;try{return a(b)}finally{0===(W=c)&&gg()}};var a,b,lk={Events:[Nc,Pd,Qd,xa,ta,Xd,function(a){jc(a,Wd)},Da,Ea,id,mc,Dj,{current:!1}]};b=(a={findFiberByHostInstance:tc,bundleType:0,version:"16.14.0",rendererPackageName:"react-dom"}).findFiberByHostInstance,function(a){if("undefined"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var b=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(b.isDisabled||!b.supportsFiber)return!0;try{var c=b.inject(a);Uj=function(a){try{b.onCommitFiberRoot(c,a,void 0,64==(64&a.current.effectTag))}catch(e){}},Li=function(a){try{b.onCommitFiberUnmount(c,a)}catch(e){}}}catch(d){}}(n({},a,{overrideHookState:null,overrideProps:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Wa.ReactCurrentDispatcher,findHostInstanceByFiber:function(a){return null===(a=hc(a))?null:a.stateNode},findFiberByHostInstance:function(a){return b?b(a):null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null})),exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=lk,exports.createPortal=kk,exports.findDOMNode=function(a){if(null==a)return null;if(1===a.nodeType)return a;var b=a._reactInternalFiber;if(void 0===b){if("function"==typeof a.render)throw Error(u(188));throw Error(u(268,Object.keys(a)))}return a=null===(a=hc(b))?null:a.stateNode},exports.flushSync=function(a,b){if(0!=(48&W))throw Error(u(187));var c=W;W|=1;try{return cg(99,a.bind(null,b))}finally{W=c,gg()}},exports.hydrate=function(a,b,c){if(!gk(b))throw Error(u(200));return ik(null,a,b,!0,c)},exports.render=function(a,b,c){if(!gk(b))throw Error(u(200));return ik(null,a,b,!1,c)},exports.unmountComponentAtNode=function(a){if(!gk(a))throw Error(u(40));return!!a._reactRootContainer&&(Nj((function(){ik(null,null,a,!1,(function(){a._reactRootContainer=null,a[Od]=null}))})),!0)},exports.unstable_batchedUpdates=Mj,exports.unstable_createPortal=function(a,b){return kk(a,b,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},exports.unstable_renderSubtreeIntoContainer=function(a,b,c,d){if(!gk(c))throw Error(u(200));if(null==a||void 0===a._reactInternalFiber)throw Error(u(38));return ik(a,b,c,!1,d)},exports.version="16.14.0"},{"object-assign":103,react:146,scheduler:156}],112:[function(require,module,exports){"use strict";!function checkDCE(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE){0;try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE)}catch(err){console.error(err)}}}(),module.exports=require("./cjs/react-dom.production.min.js")},{"./cjs/react-dom.development.js":110,"./cjs/react-dom.production.min.js":111}],113:[function(require,module,exports){(function(process){(function(){/** @license React v16.13.1 * react-is.development.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */"use strict";"production"!==process.env.NODE_ENV&&function(){var hasSymbol="function"==typeof Symbol&&Symbol.for,REACT_ELEMENT_TYPE=hasSymbol?Symbol.for("react.element"):60103,REACT_PORTAL_TYPE=hasSymbol?Symbol.for("react.portal"):60106,REACT_FRAGMENT_TYPE=hasSymbol?Symbol.for("react.fragment"):60107,REACT_STRICT_MODE_TYPE=hasSymbol?Symbol.for("react.strict_mode"):60108,REACT_PROFILER_TYPE=hasSymbol?Symbol.for("react.profiler"):60114,REACT_PROVIDER_TYPE=hasSymbol?Symbol.for("react.provider"):60109,REACT_CONTEXT_TYPE=hasSymbol?Symbol.for("react.context"):60110,REACT_ASYNC_MODE_TYPE=hasSymbol?Symbol.for("react.async_mode"):60111,REACT_CONCURRENT_MODE_TYPE=hasSymbol?Symbol.for("react.concurrent_mode"):60111,REACT_FORWARD_REF_TYPE=hasSymbol?Symbol.for("react.forward_ref"):60112,REACT_SUSPENSE_TYPE=hasSymbol?Symbol.for("react.suspense"):60113,REACT_SUSPENSE_LIST_TYPE=hasSymbol?Symbol.for("react.suspense_list"):60120,REACT_MEMO_TYPE=hasSymbol?Symbol.for("react.memo"):60115,REACT_LAZY_TYPE=hasSymbol?Symbol.for("react.lazy"):60116,REACT_BLOCK_TYPE=hasSymbol?Symbol.for("react.block"):60121,REACT_FUNDAMENTAL_TYPE=hasSymbol?Symbol.for("react.fundamental"):60117,REACT_RESPONDER_TYPE=hasSymbol?Symbol.for("react.responder"):60118,REACT_SCOPE_TYPE=hasSymbol?Symbol.for("react.scope"):60119;function typeOf(object){if("object"==typeof object&&null!==object){var $$typeof=object.$$typeof;switch($$typeof){case REACT_ELEMENT_TYPE:var type=object.type;switch(type){case REACT_ASYNC_MODE_TYPE:case REACT_CONCURRENT_MODE_TYPE:case REACT_FRAGMENT_TYPE:case REACT_PROFILER_TYPE:case REACT_STRICT_MODE_TYPE:case REACT_SUSPENSE_TYPE:return type;default:var $$typeofType=type&&type.$$typeof;switch($$typeofType){case REACT_CONTEXT_TYPE:case REACT_FORWARD_REF_TYPE:case REACT_LAZY_TYPE:case REACT_MEMO_TYPE:case REACT_PROVIDER_TYPE:return $$typeofType;default:return $$typeof}}case REACT_PORTAL_TYPE:return $$typeof}}}var AsyncMode=REACT_ASYNC_MODE_TYPE,ConcurrentMode=REACT_CONCURRENT_MODE_TYPE,ContextConsumer=REACT_CONTEXT_TYPE,ContextProvider=REACT_PROVIDER_TYPE,Element=REACT_ELEMENT_TYPE,ForwardRef=REACT_FORWARD_REF_TYPE,Fragment=REACT_FRAGMENT_TYPE,Lazy=REACT_LAZY_TYPE,Memo=REACT_MEMO_TYPE,Portal=REACT_PORTAL_TYPE,Profiler=REACT_PROFILER_TYPE,StrictMode=REACT_STRICT_MODE_TYPE,Suspense=REACT_SUSPENSE_TYPE,hasWarnedAboutDeprecatedIsAsyncMode=!1;function isConcurrentMode(object){return typeOf(object)===REACT_CONCURRENT_MODE_TYPE}exports.AsyncMode=AsyncMode,exports.ConcurrentMode=ConcurrentMode,exports.ContextConsumer=ContextConsumer,exports.ContextProvider=ContextProvider,exports.Element=Element,exports.ForwardRef=ForwardRef,exports.Fragment=Fragment,exports.Lazy=Lazy,exports.Memo=Memo,exports.Portal=Portal,exports.Profiler=Profiler,exports.StrictMode=StrictMode,exports.Suspense=Suspense,exports.isAsyncMode=function(object){return hasWarnedAboutDeprecatedIsAsyncMode||(hasWarnedAboutDeprecatedIsAsyncMode=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),isConcurrentMode(object)||typeOf(object)===REACT_ASYNC_MODE_TYPE},exports.isConcurrentMode=isConcurrentMode,exports.isContextConsumer=function(object){return typeOf(object)===REACT_CONTEXT_TYPE},exports.isContextProvider=function(object){return typeOf(object)===REACT_PROVIDER_TYPE},exports.isElement=function(object){return"object"==typeof object&&null!==object&&object.$$typeof===REACT_ELEMENT_TYPE},exports.isForwardRef=function(object){return typeOf(object)===REACT_FORWARD_REF_TYPE},exports.isFragment=function(object){return typeOf(object)===REACT_FRAGMENT_TYPE},exports.isLazy=function(object){return typeOf(object)===REACT_LAZY_TYPE},exports.isMemo=function(object){return typeOf(object)===REACT_MEMO_TYPE},exports.isPortal=function(object){return typeOf(object)===REACT_PORTAL_TYPE},exports.isProfiler=function(object){return typeOf(object)===REACT_PROFILER_TYPE},exports.isStrictMode=function(object){return typeOf(object)===REACT_STRICT_MODE_TYPE},exports.isSuspense=function(object){return typeOf(object)===REACT_SUSPENSE_TYPE},exports.isValidElementType=function(type){return"string"==typeof type||"function"==typeof type||type===REACT_FRAGMENT_TYPE||type===REACT_CONCURRENT_MODE_TYPE||type===REACT_PROFILER_TYPE||type===REACT_STRICT_MODE_TYPE||type===REACT_SUSPENSE_TYPE||type===REACT_SUSPENSE_LIST_TYPE||"object"==typeof type&&null!==type&&(type.$$typeof===REACT_LAZY_TYPE||type.$$typeof===REACT_MEMO_TYPE||type.$$typeof===REACT_PROVIDER_TYPE||type.$$typeof===REACT_CONTEXT_TYPE||type.$$typeof===REACT_FORWARD_REF_TYPE||type.$$typeof===REACT_FUNDAMENTAL_TYPE||type.$$typeof===REACT_RESPONDER_TYPE||type.$$typeof===REACT_SCOPE_TYPE||type.$$typeof===REACT_BLOCK_TYPE)},exports.typeOf=typeOf}()}).call(this)}).call(this,require("_process"))},{_process:104}],114:[function(require,module,exports){/** @license React v16.13.1 * react-is.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */"use strict";var b="function"==typeof Symbol&&Symbol.for,c=b?Symbol.for("react.element"):60103,d=b?Symbol.for("react.portal"):60106,e=b?Symbol.for("react.fragment"):60107,f=b?Symbol.for("react.strict_mode"):60108,g=b?Symbol.for("react.profiler"):60114,h=b?Symbol.for("react.provider"):60109,k=b?Symbol.for("react.context"):60110,l=b?Symbol.for("react.async_mode"):60111,m=b?Symbol.for("react.concurrent_mode"):60111,n=b?Symbol.for("react.forward_ref"):60112,p=b?Symbol.for("react.suspense"):60113,q=b?Symbol.for("react.suspense_list"):60120,r=b?Symbol.for("react.memo"):60115,t=b?Symbol.for("react.lazy"):60116,v=b?Symbol.for("react.block"):60121,w=b?Symbol.for("react.fundamental"):60117,x=b?Symbol.for("react.responder"):60118,y=b?Symbol.for("react.scope"):60119;function z(a){if("object"==typeof a&&null!==a){var u=a.$$typeof;switch(u){case c:switch(a=a.type){case l:case m:case e:case g:case f:case p:return a;default:switch(a=a&&a.$$typeof){case k:case n:case t:case r:case h:return a;default:return u}}case d:return u}}}function A(a){return z(a)===m}exports.AsyncMode=l,exports.ConcurrentMode=m,exports.ContextConsumer=k,exports.ContextProvider=h,exports.Element=c,exports.ForwardRef=n,exports.Fragment=e,exports.Lazy=t,exports.Memo=r,exports.Portal=d,exports.Profiler=g,exports.StrictMode=f,exports.Suspense=p,exports.isAsyncMode=function(a){return A(a)||z(a)===l},exports.isConcurrentMode=A,exports.isContextConsumer=function(a){return z(a)===k},exports.isContextProvider=function(a){return z(a)===h},exports.isElement=function(a){return"object"==typeof a&&null!==a&&a.$$typeof===c},exports.isForwardRef=function(a){return z(a)===n},exports.isFragment=function(a){return z(a)===e},exports.isLazy=function(a){return z(a)===t},exports.isMemo=function(a){return z(a)===r},exports.isPortal=function(a){return z(a)===d},exports.isProfiler=function(a){return z(a)===g},exports.isStrictMode=function(a){return z(a)===f},exports.isSuspense=function(a){return z(a)===p},exports.isValidElementType=function(a){return"string"==typeof a||"function"==typeof a||a===e||a===m||a===g||a===f||a===p||a===q||"object"==typeof a&&null!==a&&(a.$$typeof===t||a.$$typeof===r||a.$$typeof===h||a.$$typeof===k||a.$$typeof===n||a.$$typeof===w||a.$$typeof===x||a.$$typeof===y||a.$$typeof===v)},exports.typeOf=z},{}],115:[function(require,module,exports){(function(process){(function(){"use strict";"production"===process.env.NODE_ENV?module.exports=require("./cjs/react-is.production.min.js"):module.exports=require("./cjs/react-is.development.js")}).call(this)}).call(this,require("_process"))},{"./cjs/react-is.development.js":113,"./cjs/react-is.production.min.js":114,_process:104}],116:[function(require,module,exports){"use strict";var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault").default;exports.__esModule=!0,exports.default=exports.ReactReduxContext=void 0;var ReactReduxContext=_interopRequireDefault(require("react")).default.createContext(null);exports.ReactReduxContext=ReactReduxContext;var _default=ReactReduxContext;exports.default=_default},{"@babel/runtime/helpers/interopRequireDefault":67,react:146}],117:[function(require,module,exports){"use strict";var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault").default,_interopRequireWildcard=require("@babel/runtime/helpers/interopRequireWildcard").default;exports.__esModule=!0,exports.default=void 0;var _react=_interopRequireWildcard(require("react")),_Context=(_interopRequireDefault(require("prop-types")),require("./Context")),_Subscription=require("../utils/Subscription"),_useIsomorphicLayoutEffect=require("../utils/useIsomorphicLayoutEffect");function Provider(_ref){var store=_ref.store,context=_ref.context,children=_ref.children,contextValue=(0,_react.useMemo)((function(){var subscription=(0,_Subscription.createSubscription)(store);return subscription.onStateChange=subscription.notifyNestedSubs,{store:store,subscription:subscription}}),[store]),previousState=(0,_react.useMemo)((function(){return store.getState()}),[store]);(0,_useIsomorphicLayoutEffect.useIsomorphicLayoutEffect)((function(){var subscription=contextValue.subscription;return subscription.trySubscribe(),previousState!==store.getState()&&subscription.notifyNestedSubs(),function(){subscription.tryUnsubscribe(),subscription.onStateChange=null}}),[contextValue,previousState]);var Context=context||_Context.ReactReduxContext;return _react.default.createElement(Context.Provider,{value:contextValue},children)}var _default=Provider;exports.default=_default},{"../utils/Subscription":132,"../utils/useIsomorphicLayoutEffect":138,"./Context":116,"@babel/runtime/helpers/interopRequireDefault":67,"@babel/runtime/helpers/interopRequireWildcard":68,"prop-types":108,react:146}],118:[function(require,module,exports){"use strict";var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault").default,_interopRequireWildcard=require("@babel/runtime/helpers/interopRequireWildcard").default;exports.__esModule=!0,exports.default=function(selectorFactory,_ref){void 0===_ref&&(_ref={});var _ref2=_ref,_ref2$getDisplayName=_ref2.getDisplayName,getDisplayName=void 0===_ref2$getDisplayName?function(name){return"ConnectAdvanced("+name+")"}:_ref2$getDisplayName,_ref2$methodName=_ref2.methodName,methodName=void 0===_ref2$methodName?"connectAdvanced":_ref2$methodName,_ref2$renderCountProp=_ref2.renderCountProp,renderCountProp=void 0===_ref2$renderCountProp?void 0:_ref2$renderCountProp,_ref2$shouldHandleSta=_ref2.shouldHandleStateChanges,shouldHandleStateChanges=void 0===_ref2$shouldHandleSta||_ref2$shouldHandleSta,_ref2$storeKey=_ref2.storeKey,storeKey=void 0===_ref2$storeKey?"store":_ref2$storeKey,_ref2$forwardRef=(_ref2.withRef,_ref2.forwardRef),forwardRef=void 0!==_ref2$forwardRef&&_ref2$forwardRef,_ref2$context=_ref2.context,context=void 0===_ref2$context?_Context.ReactReduxContext:_ref2$context,connectOptions=(0,_objectWithoutPropertiesLoose2.default)(_ref2,_excluded);var Context=context;return function(WrappedComponent){var wrappedComponentName=WrappedComponent.displayName||WrappedComponent.name||"Component",displayName=getDisplayName(wrappedComponentName),selectorFactoryOptions=(0,_extends2.default)({},connectOptions,{getDisplayName:getDisplayName,methodName:methodName,renderCountProp:renderCountProp,shouldHandleStateChanges:shouldHandleStateChanges,storeKey:storeKey,displayName:displayName,wrappedComponentName:wrappedComponentName,WrappedComponent:WrappedComponent}),pure=connectOptions.pure;var usePureOnlyMemo=pure?_react.useMemo:function(callback){return callback()};function ConnectFunction(props){var _useMemo=(0,_react.useMemo)((function(){var reactReduxForwardedRef=props.reactReduxForwardedRef,wrapperProps=(0,_objectWithoutPropertiesLoose2.default)(props,_excluded2);return[props.context,reactReduxForwardedRef,wrapperProps]}),[props]),propsContext=_useMemo[0],reactReduxForwardedRef=_useMemo[1],wrapperProps=_useMemo[2],ContextToUse=(0,_react.useMemo)((function(){return propsContext&&propsContext.Consumer&&(0,_reactIs.isContextConsumer)(_react.default.createElement(propsContext.Consumer,null))?propsContext:Context}),[propsContext,Context]),contextValue=(0,_react.useContext)(ContextToUse),didStoreComeFromProps=Boolean(props.store)&&Boolean(props.store.getState)&&Boolean(props.store.dispatch);Boolean(contextValue)&&Boolean(contextValue.store);var store=didStoreComeFromProps?props.store:contextValue.store,childPropsSelector=(0,_react.useMemo)((function(){return function(store){return selectorFactory(store.dispatch,selectorFactoryOptions)}(store)}),[store]),_useMemo2=(0,_react.useMemo)((function(){if(!shouldHandleStateChanges)return NO_SUBSCRIPTION_ARRAY;var subscription=(0,_Subscription.createSubscription)(store,didStoreComeFromProps?null:contextValue.subscription),notifyNestedSubs=subscription.notifyNestedSubs.bind(subscription);return[subscription,notifyNestedSubs]}),[store,didStoreComeFromProps,contextValue]),subscription=_useMemo2[0],notifyNestedSubs=_useMemo2[1],overriddenContextValue=(0,_react.useMemo)((function(){return didStoreComeFromProps?contextValue:(0,_extends2.default)({},contextValue,{subscription:subscription})}),[didStoreComeFromProps,contextValue,subscription]),_useReducer=(0,_react.useReducer)(storeStateUpdatesReducer,EMPTY_ARRAY,initStateUpdates),previousStateUpdateResult=_useReducer[0][0],forceComponentUpdateDispatch=_useReducer[1];if(previousStateUpdateResult&&previousStateUpdateResult.error)throw previousStateUpdateResult.error;var lastChildProps=(0,_react.useRef)(),lastWrapperProps=(0,_react.useRef)(wrapperProps),childPropsFromStoreUpdate=(0,_react.useRef)(),renderIsScheduled=(0,_react.useRef)(!1),actualChildProps=usePureOnlyMemo((function(){return childPropsFromStoreUpdate.current&&wrapperProps===lastWrapperProps.current?childPropsFromStoreUpdate.current:childPropsSelector(store.getState(),wrapperProps)}),[store,previousStateUpdateResult,wrapperProps]);useIsomorphicLayoutEffectWithArgs(captureWrapperProps,[lastWrapperProps,lastChildProps,renderIsScheduled,wrapperProps,actualChildProps,childPropsFromStoreUpdate,notifyNestedSubs]),useIsomorphicLayoutEffectWithArgs(subscribeUpdates,[shouldHandleStateChanges,store,subscription,childPropsSelector,lastWrapperProps,lastChildProps,renderIsScheduled,childPropsFromStoreUpdate,notifyNestedSubs,forceComponentUpdateDispatch],[store,subscription,childPropsSelector]);var renderedWrappedComponent=(0,_react.useMemo)((function(){return _react.default.createElement(WrappedComponent,(0,_extends2.default)({},actualChildProps,{ref:reactReduxForwardedRef}))}),[reactReduxForwardedRef,WrappedComponent,actualChildProps]);return(0,_react.useMemo)((function(){return shouldHandleStateChanges?_react.default.createElement(ContextToUse.Provider,{value:overriddenContextValue},renderedWrappedComponent):renderedWrappedComponent}),[ContextToUse,renderedWrappedComponent,overriddenContextValue])}var Connect=pure?_react.default.memo(ConnectFunction):ConnectFunction;if(Connect.WrappedComponent=WrappedComponent,Connect.displayName=ConnectFunction.displayName=displayName,forwardRef){var forwarded=_react.default.forwardRef((function(props,ref){return _react.default.createElement(Connect,(0,_extends2.default)({},props,{reactReduxForwardedRef:ref}))}));return forwarded.displayName=displayName,forwarded.WrappedComponent=WrappedComponent,(0,_hoistNonReactStatics.default)(forwarded,WrappedComponent)}return(0,_hoistNonReactStatics.default)(Connect,WrappedComponent)}};var _extends2=_interopRequireDefault(require("@babel/runtime/helpers/extends")),_objectWithoutPropertiesLoose2=_interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose")),_hoistNonReactStatics=_interopRequireDefault(require("hoist-non-react-statics")),_react=_interopRequireWildcard(require("react")),_reactIs=require("react-is"),_Subscription=require("../utils/Subscription"),_useIsomorphicLayoutEffect=require("../utils/useIsomorphicLayoutEffect"),_Context=require("./Context"),_excluded=["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"],_excluded2=["reactReduxForwardedRef"],EMPTY_ARRAY=[],NO_SUBSCRIPTION_ARRAY=[null,null];function storeStateUpdatesReducer(state,action){var updateCount=state[1];return[action.payload,updateCount+1]}function useIsomorphicLayoutEffectWithArgs(effectFunc,effectArgs,dependencies){(0,_useIsomorphicLayoutEffect.useIsomorphicLayoutEffect)((function(){return effectFunc.apply(void 0,effectArgs)}),dependencies)}function captureWrapperProps(lastWrapperProps,lastChildProps,renderIsScheduled,wrapperProps,actualChildProps,childPropsFromStoreUpdate,notifyNestedSubs){lastWrapperProps.current=wrapperProps,lastChildProps.current=actualChildProps,renderIsScheduled.current=!1,childPropsFromStoreUpdate.current&&(childPropsFromStoreUpdate.current=null,notifyNestedSubs())}function subscribeUpdates(shouldHandleStateChanges,store,subscription,childPropsSelector,lastWrapperProps,lastChildProps,renderIsScheduled,childPropsFromStoreUpdate,notifyNestedSubs,forceComponentUpdateDispatch){if(shouldHandleStateChanges){var didUnsubscribe=!1,lastThrownError=null,checkForUpdates=function(){if(!didUnsubscribe){var newChildProps,error,latestStoreState=store.getState();try{newChildProps=childPropsSelector(latestStoreState,lastWrapperProps.current)}catch(e){error=e,lastThrownError=e}error||(lastThrownError=null),newChildProps===lastChildProps.current?renderIsScheduled.current||notifyNestedSubs():(lastChildProps.current=newChildProps,childPropsFromStoreUpdate.current=newChildProps,renderIsScheduled.current=!0,forceComponentUpdateDispatch({type:"STORE_UPDATED",payload:{error:error}}))}};subscription.onStateChange=checkForUpdates,subscription.trySubscribe(),checkForUpdates();return function(){if(didUnsubscribe=!0,subscription.tryUnsubscribe(),subscription.onStateChange=null,lastThrownError)throw lastThrownError}}}var initStateUpdates=function(){return[null,0]}},{"../utils/Subscription":132,"../utils/useIsomorphicLayoutEffect":138,"./Context":116,"@babel/runtime/helpers/extends":66,"@babel/runtime/helpers/interopRequireDefault":67,"@babel/runtime/helpers/interopRequireWildcard":68,"@babel/runtime/helpers/objectWithoutPropertiesLoose":70,"hoist-non-react-statics":101,react:146,"react-is":143}],119:[function(require,module,exports){"use strict";var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault").default;exports.__esModule=!0,exports.createConnect=createConnect,exports.default=void 0;var _extends2=_interopRequireDefault(require("@babel/runtime/helpers/extends")),_objectWithoutPropertiesLoose2=_interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose")),_connectAdvanced=_interopRequireDefault(require("../components/connectAdvanced")),_shallowEqual=_interopRequireDefault(require("../utils/shallowEqual")),_mapDispatchToProps=_interopRequireDefault(require("./mapDispatchToProps")),_mapStateToProps=_interopRequireDefault(require("./mapStateToProps")),_mergeProps=_interopRequireDefault(require("./mergeProps")),_selectorFactory=_interopRequireDefault(require("./selectorFactory")),_excluded=["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"];function match(arg,factories,name){for(var i=factories.length-1;i>=0;i--){var result=factories[i](arg);if(result)return result}return function(dispatch,options){throw new Error("Invalid value of type "+typeof arg+" for "+name+" argument when connecting component "+options.wrappedComponentName+".")}}function strictEqual(a,b){return a===b}function createConnect(_temp){var _ref=void 0===_temp?{}:_temp,_ref$connectHOC=_ref.connectHOC,connectHOC=void 0===_ref$connectHOC?_connectAdvanced.default:_ref$connectHOC,_ref$mapStateToPropsF=_ref.mapStateToPropsFactories,mapStateToPropsFactories=void 0===_ref$mapStateToPropsF?_mapStateToProps.default:_ref$mapStateToPropsF,_ref$mapDispatchToPro=_ref.mapDispatchToPropsFactories,mapDispatchToPropsFactories=void 0===_ref$mapDispatchToPro?_mapDispatchToProps.default:_ref$mapDispatchToPro,_ref$mergePropsFactor=_ref.mergePropsFactories,mergePropsFactories=void 0===_ref$mergePropsFactor?_mergeProps.default:_ref$mergePropsFactor,_ref$selectorFactory=_ref.selectorFactory,selectorFactory=void 0===_ref$selectorFactory?_selectorFactory.default:_ref$selectorFactory;return function(mapStateToProps,mapDispatchToProps,mergeProps,_ref2){void 0===_ref2&&(_ref2={});var _ref3=_ref2,_ref3$pure=_ref3.pure,pure=void 0===_ref3$pure||_ref3$pure,_ref3$areStatesEqual=_ref3.areStatesEqual,areStatesEqual=void 0===_ref3$areStatesEqual?strictEqual:_ref3$areStatesEqual,_ref3$areOwnPropsEqua=_ref3.areOwnPropsEqual,areOwnPropsEqual=void 0===_ref3$areOwnPropsEqua?_shallowEqual.default:_ref3$areOwnPropsEqua,_ref3$areStatePropsEq=_ref3.areStatePropsEqual,areStatePropsEqual=void 0===_ref3$areStatePropsEq?_shallowEqual.default:_ref3$areStatePropsEq,_ref3$areMergedPropsE=_ref3.areMergedPropsEqual,areMergedPropsEqual=void 0===_ref3$areMergedPropsE?_shallowEqual.default:_ref3$areMergedPropsE,extraOptions=(0,_objectWithoutPropertiesLoose2.default)(_ref3,_excluded),initMapStateToProps=match(mapStateToProps,mapStateToPropsFactories,"mapStateToProps"),initMapDispatchToProps=match(mapDispatchToProps,mapDispatchToPropsFactories,"mapDispatchToProps"),initMergeProps=match(mergeProps,mergePropsFactories,"mergeProps");return connectHOC(selectorFactory,(0,_extends2.default)({methodName:"connect",getDisplayName:function(name){return"Connect("+name+")"},shouldHandleStateChanges:Boolean(mapStateToProps),initMapStateToProps:initMapStateToProps,initMapDispatchToProps:initMapDispatchToProps,initMergeProps:initMergeProps,pure:pure,areStatesEqual:areStatesEqual,areOwnPropsEqual:areOwnPropsEqual,areStatePropsEqual:areStatePropsEqual,areMergedPropsEqual:areMergedPropsEqual},extraOptions))}}var _default=createConnect();exports.default=_default},{"../components/connectAdvanced":118,"../utils/shallowEqual":137,"./mapDispatchToProps":120,"./mapStateToProps":121,"./mergeProps":122,"./selectorFactory":123,"@babel/runtime/helpers/extends":66,"@babel/runtime/helpers/interopRequireDefault":67,"@babel/runtime/helpers/objectWithoutPropertiesLoose":70}],120:[function(require,module,exports){"use strict";var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault").default;exports.__esModule=!0,exports.default=void 0,exports.whenMapDispatchToPropsIsFunction=whenMapDispatchToPropsIsFunction,exports.whenMapDispatchToPropsIsMissing=whenMapDispatchToPropsIsMissing,exports.whenMapDispatchToPropsIsObject=whenMapDispatchToPropsIsObject;var _bindActionCreators=_interopRequireDefault(require("../utils/bindActionCreators")),_wrapMapToProps=require("./wrapMapToProps");function whenMapDispatchToPropsIsFunction(mapDispatchToProps){return"function"==typeof mapDispatchToProps?(0,_wrapMapToProps.wrapMapToPropsFunc)(mapDispatchToProps,"mapDispatchToProps"):void 0}function whenMapDispatchToPropsIsMissing(mapDispatchToProps){return mapDispatchToProps?void 0:(0,_wrapMapToProps.wrapMapToPropsConstant)((function(dispatch){return{dispatch:dispatch}}))}function whenMapDispatchToPropsIsObject(mapDispatchToProps){return mapDispatchToProps&&"object"==typeof mapDispatchToProps?(0,_wrapMapToProps.wrapMapToPropsConstant)((function(dispatch){return(0,_bindActionCreators.default)(mapDispatchToProps,dispatch)})):void 0}var _default=[whenMapDispatchToPropsIsFunction,whenMapDispatchToPropsIsMissing,whenMapDispatchToPropsIsObject];exports.default=_default},{"../utils/bindActionCreators":134,"./wrapMapToProps":125,"@babel/runtime/helpers/interopRequireDefault":67}],121:[function(require,module,exports){"use strict";exports.__esModule=!0,exports.default=void 0,exports.whenMapStateToPropsIsFunction=whenMapStateToPropsIsFunction,exports.whenMapStateToPropsIsMissing=whenMapStateToPropsIsMissing;var _wrapMapToProps=require("./wrapMapToProps");function whenMapStateToPropsIsFunction(mapStateToProps){return"function"==typeof mapStateToProps?(0,_wrapMapToProps.wrapMapToPropsFunc)(mapStateToProps,"mapStateToProps"):void 0}function whenMapStateToPropsIsMissing(mapStateToProps){return mapStateToProps?void 0:(0,_wrapMapToProps.wrapMapToPropsConstant)((function(){return{}}))}var _default=[whenMapStateToPropsIsFunction,whenMapStateToPropsIsMissing];exports.default=_default},{"./wrapMapToProps":125}],122:[function(require,module,exports){"use strict";var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault").default;exports.__esModule=!0,exports.default=void 0,exports.defaultMergeProps=defaultMergeProps,exports.whenMergePropsIsFunction=whenMergePropsIsFunction,exports.whenMergePropsIsOmitted=whenMergePropsIsOmitted,exports.wrapMergePropsFunc=wrapMergePropsFunc;var _extends2=_interopRequireDefault(require("@babel/runtime/helpers/extends"));_interopRequireDefault(require("../utils/verifyPlainObject"));function defaultMergeProps(stateProps,dispatchProps,ownProps){return(0,_extends2.default)({},ownProps,stateProps,dispatchProps)}function wrapMergePropsFunc(mergeProps){return function(dispatch,_ref){_ref.displayName;var mergedProps,pure=_ref.pure,areMergedPropsEqual=_ref.areMergedPropsEqual,hasRunOnce=!1;return function(stateProps,dispatchProps,ownProps){var nextMergedProps=mergeProps(stateProps,dispatchProps,ownProps);return hasRunOnce?pure&&areMergedPropsEqual(nextMergedProps,mergedProps)||(mergedProps=nextMergedProps):(hasRunOnce=!0,mergedProps=nextMergedProps),mergedProps}}}function whenMergePropsIsFunction(mergeProps){return"function"==typeof mergeProps?wrapMergePropsFunc(mergeProps):void 0}function whenMergePropsIsOmitted(mergeProps){return mergeProps?void 0:function(){return defaultMergeProps}}var _default=[whenMergePropsIsFunction,whenMergePropsIsOmitted];exports.default=_default},{"../utils/verifyPlainObject":139,"@babel/runtime/helpers/extends":66,"@babel/runtime/helpers/interopRequireDefault":67}],123:[function(require,module,exports){"use strict";var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault").default;exports.__esModule=!0,exports.default=function(dispatch,_ref2){var initMapStateToProps=_ref2.initMapStateToProps,initMapDispatchToProps=_ref2.initMapDispatchToProps,initMergeProps=_ref2.initMergeProps,options=(0,_objectWithoutPropertiesLoose2.default)(_ref2,_excluded),mapStateToProps=initMapStateToProps(dispatch,options),mapDispatchToProps=initMapDispatchToProps(dispatch,options),mergeProps=initMergeProps(dispatch,options);0;return(options.pure?pureFinalPropsSelectorFactory:impureFinalPropsSelectorFactory)(mapStateToProps,mapDispatchToProps,mergeProps,dispatch,options)},exports.impureFinalPropsSelectorFactory=impureFinalPropsSelectorFactory,exports.pureFinalPropsSelectorFactory=pureFinalPropsSelectorFactory;var _objectWithoutPropertiesLoose2=_interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose")),_excluded=(_interopRequireDefault(require("./verifySubselectors")),["initMapStateToProps","initMapDispatchToProps","initMergeProps"]);function impureFinalPropsSelectorFactory(mapStateToProps,mapDispatchToProps,mergeProps,dispatch){return function(state,ownProps){return mergeProps(mapStateToProps(state,ownProps),mapDispatchToProps(dispatch,ownProps),ownProps)}}function pureFinalPropsSelectorFactory(mapStateToProps,mapDispatchToProps,mergeProps,dispatch,_ref){var state,ownProps,stateProps,dispatchProps,mergedProps,areStatesEqual=_ref.areStatesEqual,areOwnPropsEqual=_ref.areOwnPropsEqual,areStatePropsEqual=_ref.areStatePropsEqual,hasRunAtLeastOnce=!1;function handleSubsequentCalls(nextState,nextOwnProps){var nextStateProps,statePropsChanged,propsChanged=!areOwnPropsEqual(nextOwnProps,ownProps),stateChanged=!areStatesEqual(nextState,state);return state=nextState,ownProps=nextOwnProps,propsChanged&&stateChanged?(stateProps=mapStateToProps(state,ownProps),mapDispatchToProps.dependsOnOwnProps&&(dispatchProps=mapDispatchToProps(dispatch,ownProps)),mergedProps=mergeProps(stateProps,dispatchProps,ownProps)):propsChanged?(mapStateToProps.dependsOnOwnProps&&(stateProps=mapStateToProps(state,ownProps)),mapDispatchToProps.dependsOnOwnProps&&(dispatchProps=mapDispatchToProps(dispatch,ownProps)),mergedProps=mergeProps(stateProps,dispatchProps,ownProps)):stateChanged?(nextStateProps=mapStateToProps(state,ownProps),statePropsChanged=!areStatePropsEqual(nextStateProps,stateProps),stateProps=nextStateProps,statePropsChanged&&(mergedProps=mergeProps(stateProps,dispatchProps,ownProps)),mergedProps):mergedProps}return function(nextState,nextOwnProps){return hasRunAtLeastOnce?handleSubsequentCalls(nextState,nextOwnProps):(stateProps=mapStateToProps(state=nextState,ownProps=nextOwnProps),dispatchProps=mapDispatchToProps(dispatch,ownProps),mergedProps=mergeProps(stateProps,dispatchProps,ownProps),hasRunAtLeastOnce=!0,mergedProps)}}},{"./verifySubselectors":124,"@babel/runtime/helpers/interopRequireDefault":67,"@babel/runtime/helpers/objectWithoutPropertiesLoose":70}],124:[function(require,module,exports){"use strict";var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault").default;exports.__esModule=!0,exports.default=function(mapStateToProps,mapDispatchToProps,mergeProps,displayName){verify(mapStateToProps,"mapStateToProps",displayName),verify(mapDispatchToProps,"mapDispatchToProps",displayName),verify(mergeProps,"mergeProps",displayName)};var _warning=_interopRequireDefault(require("../utils/warning"));function verify(selector,methodName,displayName){if(!selector)throw new Error("Unexpected value for "+methodName+" in "+displayName+".");"mapStateToProps"!==methodName&&"mapDispatchToProps"!==methodName||Object.prototype.hasOwnProperty.call(selector,"dependsOnOwnProps")||(0,_warning.default)("The selector for "+methodName+" of "+displayName+" did not specify a value for dependsOnOwnProps.")}},{"../utils/warning":140,"@babel/runtime/helpers/interopRequireDefault":67}],125:[function(require,module,exports){"use strict";var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault").default;exports.__esModule=!0,exports.getDependsOnOwnProps=getDependsOnOwnProps,exports.wrapMapToPropsConstant=function(getConstant){return function(dispatch,options){var constant=getConstant(dispatch,options);function constantSelector(){return constant}return constantSelector.dependsOnOwnProps=!1,constantSelector}},exports.wrapMapToPropsFunc=function(mapToProps,methodName){return function(dispatch,_ref){_ref.displayName;var proxy=function(stateOrDispatch,ownProps){return proxy.dependsOnOwnProps?proxy.mapToProps(stateOrDispatch,ownProps):proxy.mapToProps(stateOrDispatch)};return proxy.dependsOnOwnProps=!0,proxy.mapToProps=function(stateOrDispatch,ownProps){proxy.mapToProps=mapToProps,proxy.dependsOnOwnProps=getDependsOnOwnProps(mapToProps);var props=proxy(stateOrDispatch,ownProps);return"function"==typeof props&&(proxy.mapToProps=props,proxy.dependsOnOwnProps=getDependsOnOwnProps(props),props=proxy(stateOrDispatch,ownProps)),props},proxy}};_interopRequireDefault(require("../utils/verifyPlainObject"));function getDependsOnOwnProps(mapToProps){return null!==mapToProps.dependsOnOwnProps&&void 0!==mapToProps.dependsOnOwnProps?Boolean(mapToProps.dependsOnOwnProps):1!==mapToProps.length}},{"../utils/verifyPlainObject":139,"@babel/runtime/helpers/interopRequireDefault":67}],126:[function(require,module,exports){"use strict";var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault").default;exports.__esModule=!0;var _Provider=_interopRequireDefault(require("./components/Provider"));exports.Provider=_Provider.default;var _connectAdvanced=_interopRequireDefault(require("./components/connectAdvanced"));exports.connectAdvanced=_connectAdvanced.default;var _Context=require("./components/Context");exports.ReactReduxContext=_Context.ReactReduxContext;var _connect=_interopRequireDefault(require("./connect/connect"));exports.connect=_connect.default;var _useDispatch=require("./hooks/useDispatch");exports.useDispatch=_useDispatch.useDispatch,exports.createDispatchHook=_useDispatch.createDispatchHook;var _useSelector=require("./hooks/useSelector");exports.useSelector=_useSelector.useSelector,exports.createSelectorHook=_useSelector.createSelectorHook;var _useStore=require("./hooks/useStore");exports.useStore=_useStore.useStore,exports.createStoreHook=_useStore.createStoreHook;var _shallowEqual=_interopRequireDefault(require("./utils/shallowEqual"));exports.shallowEqual=_shallowEqual.default},{"./components/Context":116,"./components/Provider":117,"./components/connectAdvanced":118,"./connect/connect":119,"./hooks/useDispatch":127,"./hooks/useSelector":129,"./hooks/useStore":130,"./utils/shallowEqual":137,"@babel/runtime/helpers/interopRequireDefault":67}],127:[function(require,module,exports){"use strict";exports.__esModule=!0,exports.createDispatchHook=createDispatchHook,exports.useDispatch=void 0;var _Context=require("../components/Context"),_useStore=require("./useStore");function createDispatchHook(context){void 0===context&&(context=_Context.ReactReduxContext);var useStore=context===_Context.ReactReduxContext?_useStore.useStore:(0,_useStore.createStoreHook)(context);return function(){return useStore().dispatch}}var useDispatch=createDispatchHook();exports.useDispatch=useDispatch},{"../components/Context":116,"./useStore":130}],128:[function(require,module,exports){"use strict";exports.__esModule=!0,exports.useReduxContext=function(){var contextValue=(0,_react.useContext)(_Context.ReactReduxContext);0;return contextValue};var _react=require("react"),_Context=require("../components/Context")},{"../components/Context":116,react:146}],129:[function(require,module,exports){"use strict";exports.__esModule=!0,exports.createSelectorHook=createSelectorHook,exports.useSelector=void 0;var _react=require("react"),_useReduxContext2=require("./useReduxContext"),_Subscription=require("../utils/Subscription"),_useIsomorphicLayoutEffect=require("../utils/useIsomorphicLayoutEffect"),_Context=require("../components/Context"),refEquality=function(a,b){return a===b};function createSelectorHook(context){void 0===context&&(context=_Context.ReactReduxContext);var useReduxContext=context===_Context.ReactReduxContext?_useReduxContext2.useReduxContext:function(){return(0,_react.useContext)(context)};return function(selector,equalityFn){void 0===equalityFn&&(equalityFn=refEquality);var _useReduxContext=useReduxContext(),selectedState=function(selector,equalityFn,store,contextSub){var selectedState,forceRender=(0,_react.useReducer)((function(s){return s+1}),0)[1],subscription=(0,_react.useMemo)((function(){return(0,_Subscription.createSubscription)(store,contextSub)}),[store,contextSub]),latestSubscriptionCallbackError=(0,_react.useRef)(),latestSelector=(0,_react.useRef)(),latestStoreState=(0,_react.useRef)(),latestSelectedState=(0,_react.useRef)(),storeState=store.getState();try{if(selector!==latestSelector.current||storeState!==latestStoreState.current||latestSubscriptionCallbackError.current){var newSelectedState=selector(storeState);selectedState=void 0!==latestSelectedState.current&&equalityFn(newSelectedState,latestSelectedState.current)?latestSelectedState.current:newSelectedState}else selectedState=latestSelectedState.current}catch(err){throw latestSubscriptionCallbackError.current&&(err.message+="\nThe error may be correlated with this previous error:\n"+latestSubscriptionCallbackError.current.stack+"\n\n"),err}return(0,_useIsomorphicLayoutEffect.useIsomorphicLayoutEffect)((function(){latestSelector.current=selector,latestStoreState.current=storeState,latestSelectedState.current=selectedState,latestSubscriptionCallbackError.current=void 0})),(0,_useIsomorphicLayoutEffect.useIsomorphicLayoutEffect)((function(){function checkForUpdates(){try{var newStoreState=store.getState();if(newStoreState===latestStoreState.current)return;var _newSelectedState=latestSelector.current(newStoreState);if(equalityFn(_newSelectedState,latestSelectedState.current))return;latestSelectedState.current=_newSelectedState,latestStoreState.current=newStoreState}catch(err){latestSubscriptionCallbackError.current=err}forceRender()}return subscription.onStateChange=checkForUpdates,subscription.trySubscribe(),checkForUpdates(),function(){return subscription.tryUnsubscribe()}}),[store,subscription]),selectedState}(selector,equalityFn,_useReduxContext.store,_useReduxContext.subscription);return(0,_react.useDebugValue)(selectedState),selectedState}}var useSelector=createSelectorHook();exports.useSelector=useSelector},{"../components/Context":116,"../utils/Subscription":132,"../utils/useIsomorphicLayoutEffect":138,"./useReduxContext":128,react:146}],130:[function(require,module,exports){"use strict";exports.__esModule=!0,exports.createStoreHook=createStoreHook,exports.useStore=void 0;var _react=require("react"),_Context=require("../components/Context"),_useReduxContext2=require("./useReduxContext");function createStoreHook(context){void 0===context&&(context=_Context.ReactReduxContext);var useReduxContext=context===_Context.ReactReduxContext?_useReduxContext2.useReduxContext:function(){return(0,_react.useContext)(context)};return function(){return useReduxContext().store}}var useStore=createStoreHook();exports.useStore=useStore},{"../components/Context":116,"./useReduxContext":128,react:146}],131:[function(require,module,exports){"use strict";exports.__esModule=!0;var _exportNames={batch:!0},_exports=require("./exports");Object.keys(_exports).forEach((function(key){"default"!==key&&"__esModule"!==key&&(Object.prototype.hasOwnProperty.call(_exportNames,key)||key in exports&&exports[key]===_exports[key]||(exports[key]=_exports[key]))}));var _reactBatchedUpdates=require("./utils/reactBatchedUpdates");exports.batch=_reactBatchedUpdates.unstable_batchedUpdates,(0,require("./utils/batch").setBatch)(_reactBatchedUpdates.unstable_batchedUpdates)},{"./exports":126,"./utils/batch":133,"./utils/reactBatchedUpdates":136}],132:[function(require,module,exports){"use strict";exports.__esModule=!0,exports.createSubscription=function(store,parentSub){var unsubscribe,listeners=nullListeners;function handleChangeWrapper(){subscription.onStateChange&&subscription.onStateChange()}function trySubscribe(){var batch,first,last;unsubscribe||(unsubscribe=parentSub?parentSub.addNestedSub(handleChangeWrapper):store.subscribe(handleChangeWrapper),batch=(0,_batch.getBatch)(),first=null,last=null,listeners={clear:function(){first=null,last=null},notify:function(){batch((function(){for(var listener=first;listener;)listener.callback(),listener=listener.next}))},get:function(){for(var listeners=[],listener=first;listener;)listeners.push(listener),listener=listener.next;return listeners},subscribe:function(callback){var isSubscribed=!0,listener=last={callback:callback,next:null,prev:last};return listener.prev?listener.prev.next=listener:first=listener,function(){isSubscribed&&null!==first&&(isSubscribed=!1,listener.next?listener.next.prev=listener.prev:last=listener.prev,listener.prev?listener.prev.next=listener.next:first=listener.next)}}})}var subscription={addNestedSub:function(listener){return trySubscribe(),listeners.subscribe(listener)},notifyNestedSubs:function(){listeners.notify()},handleChangeWrapper:handleChangeWrapper,isSubscribed:function(){return Boolean(unsubscribe)},trySubscribe:trySubscribe,tryUnsubscribe:function(){unsubscribe&&(unsubscribe(),unsubscribe=void 0,listeners.clear(),listeners=nullListeners)},getListeners:function(){return listeners}};return subscription};var _batch=require("./batch");var nullListeners={notify:function(){},get:function(){return[]}}},{"./batch":133}],133:[function(require,module,exports){"use strict";exports.__esModule=!0,exports.setBatch=exports.getBatch=void 0;var batch=function(callback){callback()};exports.setBatch=function(newBatch){return batch=newBatch};exports.getBatch=function(){return batch}},{}],134:[function(require,module,exports){"use strict";exports.__esModule=!0,exports.default=function(actionCreators,dispatch){var boundActionCreators={},_loop=function(key){var actionCreator=actionCreators[key];"function"==typeof actionCreator&&(boundActionCreators[key]=function(){return dispatch(actionCreator.apply(void 0,arguments))})};for(var key in actionCreators)_loop(key);return boundActionCreators}},{}],135:[function(require,module,exports){"use strict";exports.__esModule=!0,exports.default=function(obj){if("object"!=typeof obj||null===obj)return!1;var proto=Object.getPrototypeOf(obj);if(null===proto)return!0;var baseProto=proto;for(;null!==Object.getPrototypeOf(baseProto);)baseProto=Object.getPrototypeOf(baseProto);return proto===baseProto}},{}],136:[function(require,module,exports){"use strict";exports.__esModule=!0,exports.unstable_batchedUpdates=void 0;var _reactDom=require("react-dom");exports.unstable_batchedUpdates=_reactDom.unstable_batchedUpdates},{"react-dom":112}],137:[function(require,module,exports){"use strict";function is(x,y){return x===y?0!==x||0!==y||1/x==1/y:x!=x&&y!=y}exports.__esModule=!0,exports.default=function(objA,objB){if(is(objA,objB))return!0;if("object"!=typeof objA||null===objA||"object"!=typeof objB||null===objB)return!1;var keysA=Object.keys(objA),keysB=Object.keys(objB);if(keysA.length!==keysB.length)return!1;for(var i=0;i<keysA.length;i++)if(!Object.prototype.hasOwnProperty.call(objB,keysA[i])||!is(objA[keysA[i]],objB[keysA[i]]))return!1;return!0}},{}],138:[function(require,module,exports){"use strict";exports.__esModule=!0,exports.useIsomorphicLayoutEffect=void 0;var _react=require("react"),useIsomorphicLayoutEffect="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?_react.useLayoutEffect:_react.useEffect;exports.useIsomorphicLayoutEffect=useIsomorphicLayoutEffect},{react:146}],139:[function(require,module,exports){"use strict";var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault").default;exports.__esModule=!0,exports.default=function(value,displayName,methodName){(0,_isPlainObject.default)(value)||(0,_warning.default)(methodName+"() in "+displayName+" must return a plain object. Instead received "+value+".")};var _isPlainObject=_interopRequireDefault(require("./isPlainObject")),_warning=_interopRequireDefault(require("./warning"))},{"./isPlainObject":135,"./warning":140,"@babel/runtime/helpers/interopRequireDefault":67}],140:[function(require,module,exports){"use strict";exports.__esModule=!0,exports.default=function(message){"undefined"!=typeof console&&"function"==typeof console.error&&console.error(message);try{throw new Error(message)}catch(e){}}},{}],141:[function(require,module,exports){(function(process){(function(){/** @license React v17.0.2 * react-is.development.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */"use strict";"production"!==process.env.NODE_ENV&&function(){var REACT_ELEMENT_TYPE=60103,REACT_PORTAL_TYPE=60106,REACT_FRAGMENT_TYPE=60107,REACT_STRICT_MODE_TYPE=60108,REACT_PROFILER_TYPE=60114,REACT_PROVIDER_TYPE=60109,REACT_CONTEXT_TYPE=60110,REACT_FORWARD_REF_TYPE=60112,REACT_SUSPENSE_TYPE=60113,REACT_SUSPENSE_LIST_TYPE=60120,REACT_MEMO_TYPE=60115,REACT_LAZY_TYPE=60116,REACT_BLOCK_TYPE=60121,REACT_SERVER_BLOCK_TYPE=60122,REACT_FUNDAMENTAL_TYPE=60117,REACT_DEBUG_TRACING_MODE_TYPE=60129,REACT_LEGACY_HIDDEN_TYPE=60131;if("function"==typeof Symbol&&Symbol.for){var symbolFor=Symbol.for;REACT_ELEMENT_TYPE=symbolFor("react.element"),REACT_PORTAL_TYPE=symbolFor("react.portal"),REACT_FRAGMENT_TYPE=symbolFor("react.fragment"),REACT_STRICT_MODE_TYPE=symbolFor("react.strict_mode"),REACT_PROFILER_TYPE=symbolFor("react.profiler"),REACT_PROVIDER_TYPE=symbolFor("react.provider"),REACT_CONTEXT_TYPE=symbolFor("react.context"),REACT_FORWARD_REF_TYPE=symbolFor("react.forward_ref"),REACT_SUSPENSE_TYPE=symbolFor("react.suspense"),REACT_SUSPENSE_LIST_TYPE=symbolFor("react.suspense_list"),REACT_MEMO_TYPE=symbolFor("react.memo"),REACT_LAZY_TYPE=symbolFor("react.lazy"),REACT_BLOCK_TYPE=symbolFor("react.block"),REACT_SERVER_BLOCK_TYPE=symbolFor("react.server.block"),REACT_FUNDAMENTAL_TYPE=symbolFor("react.fundamental"),symbolFor("react.scope"),symbolFor("react.opaque.id"),REACT_DEBUG_TRACING_MODE_TYPE=symbolFor("react.debug_trace_mode"),symbolFor("react.offscreen"),REACT_LEGACY_HIDDEN_TYPE=symbolFor("react.legacy_hidden")}function typeOf(object){if("object"==typeof object&&null!==object){var $$typeof=object.$$typeof;switch($$typeof){case REACT_ELEMENT_TYPE:var type=object.type;switch(type){case REACT_FRAGMENT_TYPE:case REACT_PROFILER_TYPE:case REACT_STRICT_MODE_TYPE:case REACT_SUSPENSE_TYPE:case REACT_SUSPENSE_LIST_TYPE:return type;default:var $$typeofType=type&&type.$$typeof;switch($$typeofType){case REACT_CONTEXT_TYPE:case REACT_FORWARD_REF_TYPE:case REACT_LAZY_TYPE:case REACT_MEMO_TYPE:case REACT_PROVIDER_TYPE:return $$typeofType;default:return $$typeof}}case REACT_PORTAL_TYPE:return $$typeof}}}var ContextConsumer=REACT_CONTEXT_TYPE,ContextProvider=REACT_PROVIDER_TYPE,Element=REACT_ELEMENT_TYPE,ForwardRef=REACT_FORWARD_REF_TYPE,Fragment=REACT_FRAGMENT_TYPE,Lazy=REACT_LAZY_TYPE,Memo=REACT_MEMO_TYPE,Portal=REACT_PORTAL_TYPE,Profiler=REACT_PROFILER_TYPE,StrictMode=REACT_STRICT_MODE_TYPE,Suspense=REACT_SUSPENSE_TYPE,hasWarnedAboutDeprecatedIsAsyncMode=!1,hasWarnedAboutDeprecatedIsConcurrentMode=!1;exports.ContextConsumer=ContextConsumer,exports.ContextProvider=ContextProvider,exports.Element=Element,exports.ForwardRef=ForwardRef,exports.Fragment=Fragment,exports.Lazy=Lazy,exports.Memo=Memo,exports.Portal=Portal,exports.Profiler=Profiler,exports.StrictMode=StrictMode,exports.Suspense=Suspense,exports.isAsyncMode=function(object){return hasWarnedAboutDeprecatedIsAsyncMode||(hasWarnedAboutDeprecatedIsAsyncMode=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1},exports.isConcurrentMode=function(object){return hasWarnedAboutDeprecatedIsConcurrentMode||(hasWarnedAboutDeprecatedIsConcurrentMode=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1},exports.isContextConsumer=function(object){return typeOf(object)===REACT_CONTEXT_TYPE},exports.isContextProvider=function(object){return typeOf(object)===REACT_PROVIDER_TYPE},exports.isElement=function(object){return"object"==typeof object&&null!==object&&object.$$typeof===REACT_ELEMENT_TYPE},exports.isForwardRef=function(object){return typeOf(object)===REACT_FORWARD_REF_TYPE},exports.isFragment=function(object){return typeOf(object)===REACT_FRAGMENT_TYPE},exports.isLazy=function(object){return typeOf(object)===REACT_LAZY_TYPE},exports.isMemo=function(object){return typeOf(object)===REACT_MEMO_TYPE},exports.isPortal=function(object){return typeOf(object)===REACT_PORTAL_TYPE},exports.isProfiler=function(object){return typeOf(object)===REACT_PROFILER_TYPE},exports.isStrictMode=function(object){return typeOf(object)===REACT_STRICT_MODE_TYPE},exports.isSuspense=function(object){return typeOf(object)===REACT_SUSPENSE_TYPE},exports.isValidElementType=function(type){return"string"==typeof type||"function"==typeof type||(type===REACT_FRAGMENT_TYPE||type===REACT_PROFILER_TYPE||type===REACT_DEBUG_TRACING_MODE_TYPE||type===REACT_STRICT_MODE_TYPE||type===REACT_SUSPENSE_TYPE||type===REACT_SUSPENSE_LIST_TYPE||type===REACT_LEGACY_HIDDEN_TYPE||"object"==typeof type&&null!==type&&(type.$$typeof===REACT_LAZY_TYPE||type.$$typeof===REACT_MEMO_TYPE||type.$$typeof===REACT_PROVIDER_TYPE||type.$$typeof===REACT_CONTEXT_TYPE||type.$$typeof===REACT_FORWARD_REF_TYPE||type.$$typeof===REACT_FUNDAMENTAL_TYPE||type.$$typeof===REACT_BLOCK_TYPE||type[0]===REACT_SERVER_BLOCK_TYPE))},exports.typeOf=typeOf}()}).call(this)}).call(this,require("_process"))},{_process:104}],142:[function(require,module,exports){/** @license React v17.0.2 * react-is.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */"use strict";var b=60103,c=60106,d=60107,e=60108,f=60114,g=60109,h=60110,k=60112,l=60113,m=60120,n=60115,p=60116,q=60121,r=60122,u=60117,v=60129,w=60131;if("function"==typeof Symbol&&Symbol.for){var x=Symbol.for;b=x("react.element"),c=x("react.portal"),d=x("react.fragment"),e=x("react.strict_mode"),f=x("react.profiler"),g=x("react.provider"),h=x("react.context"),k=x("react.forward_ref"),l=x("react.suspense"),m=x("react.suspense_list"),n=x("react.memo"),p=x("react.lazy"),q=x("react.block"),r=x("react.server.block"),u=x("react.fundamental"),v=x("react.debug_trace_mode"),w=x("react.legacy_hidden")}function y(a){if("object"==typeof a&&null!==a){var t=a.$$typeof;switch(t){case b:switch(a=a.type){case d:case f:case e:case l:case m:return a;default:switch(a=a&&a.$$typeof){case h:case k:case p:case n:case g:return a;default:return t}}case c:return t}}}var z=g,A=b,B=k,C=d,D=p,E=n,F=c,G=f,H=e,I=l;exports.ContextConsumer=h,exports.ContextProvider=z,exports.Element=A,exports.ForwardRef=B,exports.Fragment=C,exports.Lazy=D,exports.Memo=E,exports.Portal=F,exports.Profiler=G,exports.StrictMode=H,exports.Suspense=I,exports.isAsyncMode=function(){return!1},exports.isConcurrentMode=function(){return!1},exports.isContextConsumer=function(a){return y(a)===h},exports.isContextProvider=function(a){return y(a)===g},exports.isElement=function(a){return"object"==typeof a&&null!==a&&a.$$typeof===b},exports.isForwardRef=function(a){return y(a)===k},exports.isFragment=function(a){return y(a)===d},exports.isLazy=function(a){return y(a)===p},exports.isMemo=function(a){return y(a)===n},exports.isPortal=function(a){return y(a)===c},exports.isProfiler=function(a){return y(a)===f},exports.isStrictMode=function(a){return y(a)===e},exports.isSuspense=function(a){return y(a)===l},exports.isValidElementType=function(a){return"string"==typeof a||"function"==typeof a||a===d||a===f||a===v||a===e||a===l||a===m||a===w||"object"==typeof a&&null!==a&&(a.$$typeof===p||a.$$typeof===n||a.$$typeof===g||a.$$typeof===h||a.$$typeof===k||a.$$typeof===u||a.$$typeof===q||a[0]===r)},exports.typeOf=y},{}],143:[function(require,module,exports){arguments[4][115][0].apply(exports,arguments)},{"./cjs/react-is.development.js":141,"./cjs/react-is.production.min.js":142,_process:104,dup:115}],144:[function(require,module,exports){/** @license React v16.14.0 * react.development.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */"use strict"},{"object-assign":103,"prop-types/checkPropTypes":105}],145:[function(require,module,exports){/** @license React v16.14.0 * react.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */"use strict";var l=require("object-assign"),n="function"==typeof Symbol&&Symbol.for,p=n?Symbol.for("react.element"):60103,q=n?Symbol.for("react.portal"):60106,r=n?Symbol.for("react.fragment"):60107,t=n?Symbol.for("react.strict_mode"):60108,u=n?Symbol.for("react.profiler"):60114,v=n?Symbol.for("react.provider"):60109,w=n?Symbol.for("react.context"):60110,x=n?Symbol.for("react.forward_ref"):60112,y=n?Symbol.for("react.suspense"):60113,z=n?Symbol.for("react.memo"):60115,A=n?Symbol.for("react.lazy"):60116,B="function"==typeof Symbol&&Symbol.iterator;function C(a){for(var b="https://reactjs.org/docs/error-decoder.html?invariant="+a,c=1;c<arguments.length;c++)b+="&args[]="+encodeURIComponent(arguments[c]);return"Minified React error #"+a+"; visit "+b+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var D={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},E={};function F(a,b,c){this.props=a,this.context=b,this.refs=E,this.updater=c||D}function G(){}function H(a,b,c){this.props=a,this.context=b,this.refs=E,this.updater=c||D}F.prototype.isReactComponent={},F.prototype.setState=function(a,b){if("object"!=typeof a&&"function"!=typeof a&&null!=a)throw Error(C(85));this.updater.enqueueSetState(this,a,b,"setState")},F.prototype.forceUpdate=function(a){this.updater.enqueueForceUpdate(this,a,"forceUpdate")},G.prototype=F.prototype;var I=H.prototype=new G;I.constructor=H,l(I,F.prototype),I.isPureReactComponent=!0;var J={current:null},K=Object.prototype.hasOwnProperty,L={key:!0,ref:!0,__self:!0,__source:!0};function M(a,b,c){var e,d={},g=null,k=null;if(null!=b)for(e in void 0!==b.ref&&(k=b.ref),void 0!==b.key&&(g=""+b.key),b)K.call(b,e)&&!L.hasOwnProperty(e)&&(d[e]=b[e]);var f=arguments.length-2;if(1===f)d.children=c;else if(1<f){for(var h=Array(f),m=0;m<f;m++)h[m]=arguments[m+2];d.children=h}if(a&&a.defaultProps)for(e in f=a.defaultProps)void 0===d[e]&&(d[e]=f[e]);return{$$typeof:p,type:a,key:g,ref:k,props:d,_owner:J.current}}function O(a){return"object"==typeof a&&null!==a&&a.$$typeof===p}var P=/\/+/g,Q=[];function R(a,b,c,e){if(Q.length){var d=Q.pop();return d.result=a,d.keyPrefix=b,d.func=c,d.context=e,d.count=0,d}return{result:a,keyPrefix:b,func:c,context:e,count:0}}function S(a){a.result=null,a.keyPrefix=null,a.func=null,a.context=null,a.count=0,10>Q.length&&Q.push(a)}function V(a,b,c){return null==a?0:function T(a,b,c,e){var d=typeof a;"undefined"!==d&&"boolean"!==d||(a=null);var g=!1;if(null===a)g=!0;else switch(d){case"string":case"number":g=!0;break;case"object":switch(a.$$typeof){case p:case q:g=!0}}if(g)return c(e,a,""===b?"."+U(a,0):b),1;if(g=0,b=""===b?".":b+":",Array.isArray(a))for(var k=0;k<a.length;k++){var f=b+U(d=a[k],k);g+=T(d,f,c,e)}else if(null===a||"object"!=typeof a?f=null:f="function"==typeof(f=B&&a[B]||a["@@iterator"])?f:null,"function"==typeof f)for(a=f.call(a),k=0;!(d=a.next()).done;)g+=T(d=d.value,f=b+U(d,k++),c,e);else if("object"===d)throw c=""+a,Error(C(31,"[object Object]"===c?"object with keys {"+Object.keys(a).join(", ")+"}":c,""));return g}(a,"",b,c)}function U(a,b){return"object"==typeof a&&null!==a&&null!=a.key?function(a){var b={"=":"=0",":":"=2"};return"$"+(""+a).replace(/[=:]/g,(function(a){return b[a]}))}(a.key):b.toString(36)}function W(a,b){a.func.call(a.context,b,a.count++)}function aa(a,b,c){var e=a.result,d=a.keyPrefix;a=a.func.call(a.context,b,a.count++),Array.isArray(a)?X(a,e,c,(function(a){return a})):null!=a&&(O(a)&&(a=function(a,b){return{$$typeof:p,type:a.type,key:b,ref:a.ref,props:a.props,_owner:a._owner}}(a,d+(!a.key||b&&b.key===a.key?"":(""+a.key).replace(P,"$&/")+"/")+c)),e.push(a))}function X(a,b,c,e,d){var g="";null!=c&&(g=(""+c).replace(P,"$&/")+"/"),V(a,aa,b=R(b,g,e,d)),S(b)}var Y={current:null};function Z(){var a=Y.current;if(null===a)throw Error(C(321));return a}var ba={ReactCurrentDispatcher:Y,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:J,IsSomeRendererActing:{current:!1},assign:l};exports.Children={map:function(a,b,c){if(null==a)return a;var e=[];return X(a,e,null,b,c),e},forEach:function(a,b,c){if(null==a)return a;V(a,W,b=R(null,null,b,c)),S(b)},count:function(a){return V(a,(function(){return null}),null)},toArray:function(a){var b=[];return X(a,b,null,(function(a){return a})),b},only:function(a){if(!O(a))throw Error(C(143));return a}},exports.Component=F,exports.Fragment=r,exports.Profiler=u,exports.PureComponent=H,exports.StrictMode=t,exports.Suspense=y,exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ba,exports.cloneElement=function(a,b,c){if(null==a)throw Error(C(267,a));var e=l({},a.props),d=a.key,g=a.ref,k=a._owner;if(null!=b){if(void 0!==b.ref&&(g=b.ref,k=J.current),void 0!==b.key&&(d=""+b.key),a.type&&a.type.defaultProps)var f=a.type.defaultProps;for(h in b)K.call(b,h)&&!L.hasOwnProperty(h)&&(e[h]=void 0===b[h]&&void 0!==f?f[h]:b[h])}var h=arguments.length-2;if(1===h)e.children=c;else if(1<h){f=Array(h);for(var m=0;m<h;m++)f[m]=arguments[m+2];e.children=f}return{$$typeof:p,type:a.type,key:d,ref:g,props:e,_owner:k}},exports.createContext=function(a,b){return void 0===b&&(b=null),(a={$$typeof:w,_calculateChangedBits:b,_currentValue:a,_currentValue2:a,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:v,_context:a},a.Consumer=a},exports.createElement=M,exports.createFactory=function(a){var b=M.bind(null,a);return b.type=a,b},exports.createRef=function(){return{current:null}},exports.forwardRef=function(a){return{$$typeof:x,render:a}},exports.isValidElement=O,exports.lazy=function(a){return{$$typeof:A,_ctor:a,_status:-1,_result:null}},exports.memo=function(a,b){return{$$typeof:z,type:a,compare:void 0===b?null:b}},exports.useCallback=function(a,b){return Z().useCallback(a,b)},exports.useContext=function(a,b){return Z().useContext(a,b)},exports.useDebugValue=function(){},exports.useEffect=function(a,b){return Z().useEffect(a,b)},exports.useImperativeHandle=function(a,b,c){return Z().useImperativeHandle(a,b,c)},exports.useLayoutEffect=function(a,b){return Z().useLayoutEffect(a,b)},exports.useMemo=function(a,b){return Z().useMemo(a,b)},exports.useReducer=function(a,b,c){return Z().useReducer(a,b,c)},exports.useRef=function(a){return Z().useRef(a)},exports.useState=function(a){return Z().useState(a)},exports.version="16.14.0"},{"object-assign":103}],146:[function(require,module,exports){"use strict";module.exports=require("./cjs/react.production.min.js")},{"./cjs/react.development.js":144,"./cjs/react.production.min.js":145}],147:[function(require,module,exports){(function(global){(function(){!function(e,t){"object"==typeof exports&&void 0!==module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t(e.reduxLogger=e.reduxLogger||{})}(this,(function(e){"use strict";function t(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}function r(e,t){Object.defineProperty(this,"kind",{value:e,enumerable:!0}),t&&t.length&&Object.defineProperty(this,"path",{value:t,enumerable:!0})}function n(e,t,r){n.super_.call(this,"E",e),Object.defineProperty(this,"lhs",{value:t,enumerable:!0}),Object.defineProperty(this,"rhs",{value:r,enumerable:!0})}function o(e,t){o.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 a(e,t,r){a.super_.call(this,"A",e),Object.defineProperty(this,"index",{value:t,enumerable:!0}),Object.defineProperty(this,"item",{value:r,enumerable:!0})}function f(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 u(e){var t=void 0===e?"undefined":N(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 l(e,t,r,c,s,d,p){p=p||[];var g=(s=s||[]).slice(0);if(void 0!==d){if(c){if("function"==typeof c&&c(g,d))return;if("object"===(void 0===c?"undefined":N(c))){if(c.prefilter&&c.prefilter(g,d))return;if(c.normalize){var h=c.normalize(g,d,e,t);h&&(e=h[0],t=h[1])}}}g.push(d)}"regexp"===u(e)&&"regexp"===u(t)&&(e=e.toString(),t=t.toString());var y=void 0===e?"undefined":N(e),v=void 0===t?"undefined":N(t),b="undefined"!==y||p&&p[p.length-1].lhs&&p[p.length-1].lhs.hasOwnProperty(d),m="undefined"!==v||p&&p[p.length-1].rhs&&p[p.length-1].rhs.hasOwnProperty(d);if(!b&&m)r(new o(g,t));else if(!m&&b)r(new i(g,e));else if(u(e)!==u(t))r(new n(g,e,t));else if("date"===u(e)&&e-t!=0)r(new n(g,e,t));else if("object"===y&&null!==e&&null!==t)if(p.filter((function(t){return t.lhs===e})).length)e!==t&&r(new n(g,e,t));else{if(p.push({lhs:e,rhs:t}),Array.isArray(e)){var w;for(e.length,w=0;w<e.length;w++)w>=t.length?r(new a(g,w,new i(void 0,e[w]))):l(e[w],t[w],r,c,g,w,p);for(;w<t.length;)r(new a(g,w,new o(void 0,t[w++])))}else{var x=Object.keys(e),S=Object.keys(t);x.forEach((function(n,o){var i=S.indexOf(n);i>=0?(l(e[n],t[n],r,c,g,n,p),S=f(S,i)):l(e[n],void 0,r,c,g,n,p)})),S.forEach((function(e){l(void 0,t[e],r,c,g,e,p)}))}p.length=p.length-1}else e!==t&&("number"===y&&isNaN(e)&&isNaN(t)||r(new n(g,e,t)))}function c(e,t,r,n){return n=n||[],l(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,o=-1,i=r.path?r.path.length-1:0;++o<i;)void 0===n[r.path[o]]&&(n[r.path[o]]="number"==typeof r.path[o]?[]:{}),n=n[r.path[o]];switch(r.kind){case"A":!function s(e,t,r){if(r.path&&r.path.length){var n,o=e[t],i=r.path.length-1;for(n=0;n<i;n++)o=o[r.path[n]];switch(r.kind){case"A":s(o[r.path[n]],r.index,r.item);break;case"D":delete o[r.path[n]];break;case"E":case"N":o[r.path[n]]=r.rhs}}else switch(r.kind){case"A":s(e[t],r.index,r.item);break;case"D":e=f(e,t);break;case"E":case"N":e[t]=r.rhs}return e}(r.path?n[r.path[o]]:n,r.index,r.item);break;case"D":delete n[r.path[o]];break;case"E":case"N":n[r.path[o]]=r.rhs}}}function y(e){return"color: "+F[e].color+"; font-weight: bold"}function b(e,t,r,n){var o=c(e,t);try{n?r.groupCollapsed("diff"):r.group("diff")}catch(e){r.log("diff")}o?o.forEach((function(e){var t=e.kind,n=function(e){var t=e.kind,r=e.path,n=e.lhs,o=e.rhs,i=e.index,a=e.item;switch(t){case"E":return[r.join("."),n,"→",o];case"N":return[r.join("."),o];case"D":return[r.join(".")];case"A":return[r.join(".")+"["+i+"]",a];default:return[]}}(e);r.log.apply(r,["%c "+F[t].text,y(t)].concat(P(n)))})):r.log("—— no diff ——");try{r.groupEnd()}catch(e){r.log("—— diff end —— ")}}function m(e,t,r,n){switch(void 0===e?"undefined":N(e)){case"object":return"function"==typeof e[n]?e[n].apply(e,P(r)):e[n];case"function":return e(t);default:return e}}function x(e,t){var r=t.logger,n=t.actionTransformer,o=t.titleFormatter,i=void 0===o?function(e){var t=e.timestamp,r=e.duration;return function(e,n,o){var i=["action"];return i.push("%c"+String(e.type)),t&&i.push("%c@ "+n),r&&i.push("%c(in "+o.toFixed(2)+" ms)"),i.join(" ")}}(t):o,a=t.collapsed,f=t.colors,u=t.level,l=t.diff,c=void 0===t.titleFormatter;e.forEach((function(o,s){var d=o.started,p=o.startedTime,g=o.action,h=o.prevState,y=o.error,v=o.took,w=o.nextState,x=e[s+1];x&&(w=x.prevState,v=x.started-d);var S=n(g),k="function"==typeof a?a((function(){return w}),g,o):a,j=D(p),E=f.title?"color: "+f.title(S)+";":"",A=["color: gray; font-weight: lighter;"];A.push(E),t.timestamp&&A.push("color: gray; font-weight: lighter;"),t.duration&&A.push("color: gray; font-weight: lighter;");var O=i(S,j,v);try{k?f.title&&c?r.groupCollapsed.apply(r,["%c "+O].concat(A)):r.groupCollapsed(O):f.title&&c?r.group.apply(r,["%c "+O].concat(A)):r.group(O)}catch(e){r.log(O)}var N=m(u,S,[h],"prevState"),P=m(u,S,[S],"action"),C=m(u,S,[y,h],"error"),F=m(u,S,[w],"nextState");if(N)if(f.prevState){var L="color: "+f.prevState(h)+"; font-weight: bold";r[N]("%c prev state",L,h)}else r[N]("prev state",h);if(P)if(f.action){var T="color: "+f.action(S)+"; font-weight: bold";r[P]("%c action    ",T,S)}else r[P]("action    ",S);if(y&&C)if(f.error){var M="color: "+f.error(y,h)+"; font-weight: bold;";r[C]("%c error     ",M,y)}else r[C]("error     ",y);if(F)if(f.nextState){var _="color: "+f.nextState(w)+"; font-weight: bold";r[F]("%c next state",_,w)}else r[F]("next state",w);l&&b(h,w,r,k);try{r.groupEnd()}catch(e){r.log("—— log end ——")}}))}function S(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Object.assign({},L,e),r=t.logger,n=t.stateTransformer,o=t.errorTransformer,i=t.predicate,a=t.logErrors,f=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 u=[];return function(e){var r=e.getState;return function(e){return function(l){if("function"==typeof i&&!i(r,l))return e(l);var c={};u.push(c),c.started=O.now(),c.startedTime=new Date,c.prevState=n(r()),c.action=l;var s=void 0;if(a)try{s=e(l)}catch(e){c.error=o(e)}else s=e(l);c.took=O.now()-c.started,c.nextState=n(r());var d=t.diff&&"function"==typeof f?f(r,l):t.diff;if(x(u,Object.assign({},t,{diff:d})),u.length=0,c.error)throw c.error;return s}}}}var k,j,A=function(e,t){return function(e,t){return new Array(t+1).join(e)}("0",t-e.toString().length)+e},D=function(e){return A(e.getHours(),2)+":"+A(e.getMinutes(),2)+":"+A(e.getSeconds(),2)+"."+A(e.getMilliseconds(),3)},O="undefined"!=typeof performance&&null!==performance&&"function"==typeof performance.now?performance:Date,N="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},P=function(e){if(Array.isArray(e)){for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}return Array.from(e)},C=[];k="object"===(void 0===global?"undefined":N(global))&&global?global:"undefined"!=typeof window?window:{},(j=k.DeepDiff)&&C.push((function(){void 0!==j&&k.DeepDiff===c&&(k.DeepDiff=j,j=void 0)})),t(n,r),t(o,r),t(i,r),t(a,r),Object.defineProperties(c,{diff:{value:c,enumerable:!0},observableDiff:{value:l,enumerable:!0},applyDiff:{value:function(e,t,r){if(e&&t){l(e,t,(function(n){r&&!r(e,t,n)||d(e,t,n)}))}},enumerable:!0},applyChange:{value:d,enumerable:!0},revertChange:{value:function(e,t,r){if(e&&t&&r&&r.kind){var n,o,i=e;for(o=r.path.length-1,n=0;n<o;n++)void 0===i[r.path[n]]&&(i[r.path[n]]={}),i=i[r.path[n]];switch(r.kind){case"A":!function p(e,t,r){if(r.path&&r.path.length){var n,o=e[t],i=r.path.length-1;for(n=0;n<i;n++)o=o[r.path[n]];switch(r.kind){case"A":p(o[r.path[n]],r.index,r.item);break;case"D":case"E":o[r.path[n]]=r.lhs;break;case"N":delete o[r.path[n]]}}else switch(r.kind){case"A":p(e[t],r.index,r.item);break;case"D":case"E":e[t]=r.lhs;break;case"N":e=f(e,t)}return e}(i[r.path[n]],r.index,r.item);break;case"D":case"E":i[r.path[n]]=r.lhs;break;case"N":delete i[r.path[n]]}}},enumerable:!0},isConflict:{value:function(){return void 0!==j},enumerable:!0},noConflict:{value:function(){return C&&(C.forEach((function(e){e()})),C=null),c},enumerable:!0}});var F={E:{color:"#2196F3",text:"CHANGED:"},N:{color:"#4CAF50",text:"ADDED:"},D:{color:"#F44336",text:"DELETED:"},A:{color:"#2196F3",text:"ARRAY:"}},L={level:"log",logger:console,logErrors:!0,collapsed:void 0,predicate:void 0,duration:!1,timestamp:!0,stateTransformer:function(e){return e},actionTransformer:function(e){return e},errorTransformer:function(e){return e},colors:{title:function(){return"inherit"},prevState:function(){return"#9E9E9E"},action:function(){return"#03A9F4"},nextState:function(){return"#4CAF50"},error:function(){return"#F20404"}},diff:!1,diffPredicate:void 0,transformer:void 0},T=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.dispatch,r=e.getState;return"function"==typeof t||"function"==typeof r?S()({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")};e.defaults=L,e.createLogger=S,e.logger=T,e.default=T,Object.defineProperty(e,"__esModule",{value:!0})}))}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],148:[function(require,module,exports){(function(process){(function(){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ActionType=void 0;var _slicedToArray=function(arr,i){if(Array.isArray(arr))return arr;if(Symbol.iterator in Object(arr))return function(arr,i){var _arr=[],_n=!0,_d=!1,_e=void 0;try{for(var _s,_i=arr[Symbol.iterator]();!(_n=(_s=_i.next()).done)&&(_arr.push(_s.value),!i||_arr.length!==i);_n=!0);}catch(err){_d=!0,_e=err}finally{try{!_n&&_i.return&&_i.return()}finally{if(_d)throw _e}}return _arr}(arr,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")},_extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source)Object.prototype.hasOwnProperty.call(source,key)&&(target[key]=source[key])}return target};exports.createPromise=createPromise,exports.default=function(){var _ref=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},dispatch=_ref.dispatch;if("function"==typeof dispatch)return createPromise()({dispatch:dispatch});process&&process.env&&"production"!==process.env.NODE_ENV&&console.warn("Redux Promise Middleware: As of version 6.0.0, the middleware library supports both preconfigured and custom configured middleware. To use a custom configuration, use the \"createPromise\" export and call this function with your configuration property. To use a preconfiguration, use the default export. For more help, check the upgrading guide: https://docs.psb.design/redux-promise-middleware/upgrade-guides/v6\n\nFor custom configuration:\nimport { createPromise } from 'redux-promise-middleware';\nconst promise = createPromise({ types: { fulfilled: 'success' } });\napplyMiddleware(promise);\n\nFor preconfiguration:\nimport promise from 'redux-promise-middleware';\napplyMiddleware(promise);\n    ");return null};var obj,_isPromise=require("./isPromise.js"),_isPromise2=(obj=_isPromise)&&obj.__esModule?obj:{default:obj};var ActionType=exports.ActionType={Pending:"PENDING",Fulfilled:"FULFILLED",Rejected:"REJECTED"};function createPromise(){var config=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},defaultTypes=[ActionType.Pending,ActionType.Fulfilled,ActionType.Rejected],PROMISE_TYPE_SUFFIXES=config.promiseTypeSuffixes||defaultTypes,PROMISE_TYPE_DELIMITER=config.promiseTypeDelimiter||"_";return function(ref){var dispatch=ref.dispatch;return function(next){return function(action){var promise=void 0,data=void 0;if(!action.payload)return next(action);var PAYLOAD=action.payload;if((0,_isPromise2.default)(PAYLOAD))promise=PAYLOAD;else if((0,_isPromise2.default)(PAYLOAD.promise))promise=PAYLOAD.promise,data=PAYLOAD.data;else{if("function"!=typeof PAYLOAD&&"function"!=typeof PAYLOAD.promise)return next(action);if(promise=PAYLOAD.promise?PAYLOAD.promise():PAYLOAD(),data=PAYLOAD.promise?PAYLOAD.data:void 0,!(0,_isPromise2.default)(promise))return next(_extends({},action,{payload:promise}))}var TYPE=action.type,META=action.meta,_PROMISE_TYPE_SUFFIXE=_slicedToArray(PROMISE_TYPE_SUFFIXES,3),PENDING=_PROMISE_TYPE_SUFFIXE[0],FULFILLED=_PROMISE_TYPE_SUFFIXE[1],REJECTED=_PROMISE_TYPE_SUFFIXE[2],getAction=function(newPayload,isRejected){return _extends({type:[TYPE,isRejected?REJECTED:FULFILLED].join(PROMISE_TYPE_DELIMITER)},null==newPayload?{}:{payload:newPayload},void 0!==META?{meta:META}:{},isRejected?{error:!0}:{})};return next(_extends({type:[TYPE,PENDING].join(PROMISE_TYPE_DELIMITER)},void 0!==data?{payload:data}:{},void 0!==META?{meta:META}:{})),promise.then((function(){var value=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,resolvedAction=getAction(value,!1);return dispatch(resolvedAction),{value:value,action:resolvedAction}}),(function(reason){var rejectedAction=getAction(reason,!0);throw dispatch(rejectedAction),reason}))}}}}}).call(this)}).call(this,require("_process"))},{"./isPromise.js":149,_process:104}],149:[function(require,module,exports){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj};exports.default=function(value){if(null!==value&&"object"===(void 0===value?"undefined":_typeof(value)))return value&&"function"==typeof value.then;return!1}},{}],150:[function(require,module,exports){"use strict";function createThunkMiddleware(extraArgument){return function(_ref){var dispatch=_ref.dispatch,getState=_ref.getState;return function(next){return function(action){return"function"==typeof action?action(dispatch,getState,extraArgument):next(action)}}}}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var thunk=createThunkMiddleware();thunk.withExtraArgument=createThunkMiddleware;var _default=thunk;exports.default=_default},{}],151:[function(require,module,exports){(function(process){(function(){"use strict";function _interopDefaultLegacy(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}Object.defineProperty(exports,"__esModule",{value:!0});var _objectSpread__default=_interopDefaultLegacy(require("@babel/runtime/helpers/objectSpread2"));function formatProdErrorMessage(code){return"Minified Redux error #"+code+"; visit https://redux.js.org/Errors?code="+code+" for the full message or use the non-minified dev environment for full errors. "}var $$observable="function"==typeof Symbol&&Symbol.observable||"@@observable",randomString=function(){return Math.random().toString(36).substring(7).split("").join(".")},ActionTypes={INIT:"@@redux/INIT"+randomString(),REPLACE:"@@redux/REPLACE"+randomString(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+randomString()}};function isPlainObject(obj){if("object"!=typeof obj||null===obj)return!1;for(var proto=obj;null!==Object.getPrototypeOf(proto);)proto=Object.getPrototypeOf(proto);return Object.getPrototypeOf(obj)===proto}function miniKindOf(val){if(void 0===val)return"undefined";if(null===val)return"null";var type=typeof val;switch(type){case"boolean":case"string":case"number":case"symbol":case"function":return type}if(Array.isArray(val))return"array";if(function(val){return val instanceof Date||"function"==typeof val.toDateString&&"function"==typeof val.getDate&&"function"==typeof val.setDate}(val))return"date";if(function(val){return val instanceof Error||"string"==typeof val.message&&val.constructor&&"number"==typeof val.constructor.stackTraceLimit}(val))return"error";var constructorName=function(val){return"function"==typeof val.constructor?val.constructor.name:null}(val);switch(constructorName){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return constructorName}return type.slice(8,-1).toLowerCase().replace(/\s/g,"")}function kindOf(val){var typeOfVal=typeof val;return"production"!==process.env.NODE_ENV&&(typeOfVal=miniKindOf(val)),typeOfVal}function warning(message){"undefined"!=typeof console&&"function"==typeof console.error&&console.error(message);try{throw new Error(message)}catch(e){}}function bindActionCreator(actionCreator,dispatch){return function(){return dispatch(actionCreator.apply(this,arguments))}}function compose(){for(var _len=arguments.length,funcs=new Array(_len),_key=0;_key<_len;_key++)funcs[_key]=arguments[_key];return 0===funcs.length?function(arg){return arg}:1===funcs.length?funcs[0]:funcs.reduce((function(a,b){return function(){return a(b.apply(void 0,arguments))}}))}function isCrushed(){}"production"!==process.env.NODE_ENV&&"string"==typeof isCrushed.name&&"isCrushed"!==isCrushed.name&&warning('You are currently using minified code outside of NODE_ENV === "production". This means that you are running a slower development build of Redux. You can use loose-envify (https://github.com/zertosh/loose-envify) for browserify or setting mode to production in webpack (https://webpack.js.org/concepts/mode/) to ensure you have the correct code for your production build.'),exports.__DO_NOT_USE__ActionTypes=ActionTypes,exports.applyMiddleware=function(){for(var _len=arguments.length,middlewares=new Array(_len),_key=0;_key<_len;_key++)middlewares[_key]=arguments[_key];return function(createStore){return function(){var store=createStore.apply(void 0,arguments),_dispatch=function(){throw new Error("production"===process.env.NODE_ENV?formatProdErrorMessage(15):"Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},middlewareAPI={getState:store.getState,dispatch:function(){return _dispatch.apply(void 0,arguments)}},chain=middlewares.map((function(middleware){return middleware(middlewareAPI)}));return _dispatch=compose.apply(void 0,chain)(store.dispatch),_objectSpread__default.default(_objectSpread__default.default({},store),{},{dispatch:_dispatch})}}},exports.bindActionCreators=function(actionCreators,dispatch){if("function"==typeof actionCreators)return bindActionCreator(actionCreators,dispatch);if("object"!=typeof actionCreators||null===actionCreators)throw new Error("production"===process.env.NODE_ENV?formatProdErrorMessage(16):"bindActionCreators expected an object or a function, but instead received: '"+kindOf(actionCreators)+'\'. Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?');var boundActionCreators={};for(var key in actionCreators){var actionCreator=actionCreators[key];"function"==typeof actionCreator&&(boundActionCreators[key]=bindActionCreator(actionCreator,dispatch))}return boundActionCreators},exports.combineReducers=function(reducers){for(var reducerKeys=Object.keys(reducers),finalReducers={},i=0;i<reducerKeys.length;i++){var key=reducerKeys[i];"production"!==process.env.NODE_ENV&&void 0===reducers[key]&&warning('No reducer provided for key "'+key+'"'),"function"==typeof reducers[key]&&(finalReducers[key]=reducers[key])}var unexpectedKeyCache,shapeAssertionError,finalReducerKeys=Object.keys(finalReducers);"production"!==process.env.NODE_ENV&&(unexpectedKeyCache={});try{!function(reducers){Object.keys(reducers).forEach((function(key){var reducer=reducers[key];if(void 0===reducer(void 0,{type:ActionTypes.INIT}))throw new Error("production"===process.env.NODE_ENV?formatProdErrorMessage(12):'The slice reducer for key "'+key+"\" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.");if(void 0===reducer(void 0,{type:ActionTypes.PROBE_UNKNOWN_ACTION()}))throw new Error("production"===process.env.NODE_ENV?formatProdErrorMessage(13):'The slice reducer for key "'+key+"\" returned undefined when probed with a random type. Don't try to handle '"+ActionTypes.INIT+'\' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.')}))}(finalReducers)}catch(e){shapeAssertionError=e}return function(state,action){if(void 0===state&&(state={}),shapeAssertionError)throw shapeAssertionError;if("production"!==process.env.NODE_ENV){var warningMessage=function(inputState,reducers,action,unexpectedKeyCache){var reducerKeys=Object.keys(reducers),argumentName=action&&action.type===ActionTypes.INIT?"preloadedState argument passed to createStore":"previous state received by the reducer";if(0===reducerKeys.length)return"Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.";if(!isPlainObject(inputState))return"The "+argumentName+' has unexpected type of "'+kindOf(inputState)+'". Expected argument to be an object with the following keys: "'+reducerKeys.join('", "')+'"';var unexpectedKeys=Object.keys(inputState).filter((function(key){return!reducers.hasOwnProperty(key)&&!unexpectedKeyCache[key]}));return unexpectedKeys.forEach((function(key){unexpectedKeyCache[key]=!0})),action&&action.type===ActionTypes.REPLACE?void 0:unexpectedKeys.length>0?"Unexpected "+(unexpectedKeys.length>1?"keys":"key")+' "'+unexpectedKeys.join('", "')+'" found in '+argumentName+'. Expected to find one of the known reducer keys instead: "'+reducerKeys.join('", "')+'". Unexpected keys will be ignored.':void 0}(state,finalReducers,action,unexpectedKeyCache);warningMessage&&warning(warningMessage)}for(var hasChanged=!1,nextState={},_i=0;_i<finalReducerKeys.length;_i++){var _key=finalReducerKeys[_i],reducer=finalReducers[_key],previousStateForKey=state[_key],nextStateForKey=reducer(previousStateForKey,action);if(void 0===nextStateForKey){var actionType=action&&action.type;throw new Error("production"===process.env.NODE_ENV?formatProdErrorMessage(14):"When called with an action of type "+(actionType?'"'+String(actionType)+'"':"(unknown type)")+', the slice reducer for key "'+_key+'" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.')}nextState[_key]=nextStateForKey,hasChanged=hasChanged||nextStateForKey!==previousStateForKey}return(hasChanged=hasChanged||finalReducerKeys.length!==Object.keys(state).length)?nextState:state}},exports.compose=compose,exports.createStore=function createStore(reducer,preloadedState,enhancer){var _ref2;if("function"==typeof preloadedState&&"function"==typeof enhancer||"function"==typeof enhancer&&"function"==typeof arguments[3])throw new Error("production"===process.env.NODE_ENV?formatProdErrorMessage(0):"It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");if("function"==typeof preloadedState&&void 0===enhancer&&(enhancer=preloadedState,preloadedState=void 0),void 0!==enhancer){if("function"!=typeof enhancer)throw new Error("production"===process.env.NODE_ENV?formatProdErrorMessage(1):"Expected the enhancer to be a function. Instead, received: '"+kindOf(enhancer)+"'");return enhancer(createStore)(reducer,preloadedState)}if("function"!=typeof reducer)throw new Error("production"===process.env.NODE_ENV?formatProdErrorMessage(2):"Expected the root reducer to be a function. Instead, received: '"+kindOf(reducer)+"'");var currentReducer=reducer,currentState=preloadedState,currentListeners=[],nextListeners=currentListeners,isDispatching=!1;function ensureCanMutateNextListeners(){nextListeners===currentListeners&&(nextListeners=currentListeners.slice())}function getState(){if(isDispatching)throw new Error("production"===process.env.NODE_ENV?formatProdErrorMessage(3):"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 currentState}function subscribe(listener){if("function"!=typeof listener)throw new Error("production"===process.env.NODE_ENV?formatProdErrorMessage(4):"Expected the listener to be a function. Instead, received: '"+kindOf(listener)+"'");if(isDispatching)throw new Error("production"===process.env.NODE_ENV?formatProdErrorMessage(5):"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/store#subscribelistener for more details.");var isSubscribed=!0;return ensureCanMutateNextListeners(),nextListeners.push(listener),function(){if(isSubscribed){if(isDispatching)throw new Error("production"===process.env.NODE_ENV?formatProdErrorMessage(6):"You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");isSubscribed=!1,ensureCanMutateNextListeners();var index=nextListeners.indexOf(listener);nextListeners.splice(index,1),currentListeners=null}}}function dispatch(action){if(!isPlainObject(action))throw new Error("production"===process.env.NODE_ENV?formatProdErrorMessage(7):"Actions must be plain objects. Instead, the actual type was: '"+kindOf(action)+"'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.");if(void 0===action.type)throw new Error("production"===process.env.NODE_ENV?formatProdErrorMessage(8):'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(isDispatching)throw new Error("production"===process.env.NODE_ENV?formatProdErrorMessage(9):"Reducers may not dispatch actions.");try{isDispatching=!0,currentState=currentReducer(currentState,action)}finally{isDispatching=!1}for(var listeners=currentListeners=nextListeners,i=0;i<listeners.length;i++){(0,listeners[i])()}return action}function replaceReducer(nextReducer){if("function"!=typeof nextReducer)throw new Error("production"===process.env.NODE_ENV?formatProdErrorMessage(10):"Expected the nextReducer to be a function. Instead, received: '"+kindOf(nextReducer));currentReducer=nextReducer,dispatch({type:ActionTypes.REPLACE})}function observable(){var _ref,outerSubscribe=subscribe;return(_ref={subscribe:function(observer){if("object"!=typeof observer||null===observer)throw new Error("production"===process.env.NODE_ENV?formatProdErrorMessage(11):"Expected the observer to be an object. Instead, received: '"+kindOf(observer)+"'");function observeState(){observer.next&&observer.next(getState())}return observeState(),{unsubscribe:outerSubscribe(observeState)}}})[$$observable]=function(){return this},_ref}return dispatch({type:ActionTypes.INIT}),(_ref2={dispatch:dispatch,subscribe:subscribe,getState:getState,replaceReducer:replaceReducer})[$$observable]=observable,_ref2}}).call(this)}).call(this,require("_process"))},{"@babel/runtime/helpers/objectSpread2":69,_process:104}],152:[function(require,module,exports){/** @license React v0.19.1 * scheduler-tracing.development.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */"use strict"},{}],153:[function(require,module,exports){/** @license React v0.19.1 * scheduler-tracing.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */"use strict";var b=0;exports.__interactionsRef=null,exports.__subscriberRef=null,exports.unstable_clear=function(a){return a()},exports.unstable_getCurrent=function(){return null},exports.unstable_getThreadID=function(){return++b},exports.unstable_subscribe=function(){},exports.unstable_trace=function(a,d,c){return c()},exports.unstable_unsubscribe=function(){},exports.unstable_wrap=function(a){return a}},{}],154:[function(require,module,exports){/** @license React v0.19.1 * scheduler.development.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */"use strict"},{}],155:[function(require,module,exports){/** @license React v0.19.1 * scheduler.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */"use strict";var f,g,h,k,l;if("undefined"==typeof window||"function"!=typeof MessageChannel){var p=null,q=null,t=function(){if(null!==p)try{var a=exports.unstable_now();p(!0,a),p=null}catch(b){throw setTimeout(t,0),b}},u=Date.now();exports.unstable_now=function(){return Date.now()-u},f=function(a){null!==p?setTimeout(f,0,a):(p=a,setTimeout(t,0))},g=function(a,b){q=setTimeout(a,b)},h=function(){clearTimeout(q)},k=function(){return!1},l=exports.unstable_forceFrameRate=function(){}}else{var w=window.performance,x=window.Date,y=window.setTimeout,z=window.clearTimeout;if("undefined"!=typeof console){var A=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!=typeof A&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills")}if("object"==typeof w&&"function"==typeof w.now)exports.unstable_now=function(){return w.now()};else{var B=x.now();exports.unstable_now=function(){return x.now()-B}}var C=!1,D=null,E=-1,F=5,G=0;k=function(){return exports.unstable_now()>=G},l=function(){},exports.unstable_forceFrameRate=function(a){0>a||125<a?console.error("forceFrameRate takes a positive int between 0 and 125, forcing framerates higher than 125 fps is not unsupported"):F=0<a?Math.floor(1e3/a):5};var H=new MessageChannel,I=H.port2;H.port1.onmessage=function(){if(null!==D){var a=exports.unstable_now();G=a+F;try{D(!0,a)?I.postMessage(null):(C=!1,D=null)}catch(b){throw I.postMessage(null),b}}else C=!1},f=function(a){D=a,C||(C=!0,I.postMessage(null))},g=function(a,b){E=y((function(){a(exports.unstable_now())}),b)},h=function(){z(E),E=-1}}function J(a,b){var c=a.length;a.push(b);a:for(;;){var d=c-1>>>1,e=a[d];if(!(void 0!==e&&0<K(e,b)))break a;a[d]=b,a[c]=e,c=d}}function L(a){return void 0===(a=a[0])?null:a}function M(a){var b=a[0];if(void 0!==b){var c=a.pop();if(c!==b){a[0]=c;a:for(var d=0,e=a.length;d<e;){var m=2*(d+1)-1,n=a[m],v=m+1,r=a[v];if(void 0!==n&&0>K(n,c))void 0!==r&&0>K(r,n)?(a[d]=r,a[v]=c,d=v):(a[d]=n,a[m]=c,d=m);else{if(!(void 0!==r&&0>K(r,c)))break a;a[d]=r,a[v]=c,d=v}}}return b}return null}function K(a,b){var c=a.sortIndex-b.sortIndex;return 0!==c?c:a.id-b.id}var N=[],O=[],P=1,Q=null,R=3,S=!1,T=!1,U=!1;function V(a){for(var b=L(O);null!==b;){if(null===b.callback)M(O);else{if(!(b.startTime<=a))break;M(O),b.sortIndex=b.expirationTime,J(N,b)}b=L(O)}}function W(a){if(U=!1,V(a),!T)if(null!==L(N))T=!0,f(X);else{var b=L(O);null!==b&&g(W,b.startTime-a)}}function X(a,b){T=!1,U&&(U=!1,h()),S=!0;var c=R;try{for(V(b),Q=L(N);null!==Q&&(!(Q.expirationTime>b)||a&&!k());){var d=Q.callback;if(null!==d){Q.callback=null,R=Q.priorityLevel;var e=d(Q.expirationTime<=b);b=exports.unstable_now(),"function"==typeof e?Q.callback=e:Q===L(N)&&M(N),V(b)}else M(N);Q=L(N)}if(null!==Q)var m=!0;else{var n=L(O);null!==n&&g(W,n.startTime-b),m=!1}return m}finally{Q=null,R=c,S=!1}}function Y(a){switch(a){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1e4;default:return 5e3}}var Z=l;exports.unstable_IdlePriority=5,exports.unstable_ImmediatePriority=1,exports.unstable_LowPriority=4,exports.unstable_NormalPriority=3,exports.unstable_Profiling=null,exports.unstable_UserBlockingPriority=2,exports.unstable_cancelCallback=function(a){a.callback=null},exports.unstable_continueExecution=function(){T||S||(T=!0,f(X))},exports.unstable_getCurrentPriorityLevel=function(){return R},exports.unstable_getFirstCallbackNode=function(){return L(N)},exports.unstable_next=function(a){switch(R){case 1:case 2:case 3:var b=3;break;default:b=R}var c=R;R=b;try{return a()}finally{R=c}},exports.unstable_pauseExecution=function(){},exports.unstable_requestPaint=Z,exports.unstable_runWithPriority=function(a,b){switch(a){case 1:case 2:case 3:case 4:case 5:break;default:a=3}var c=R;R=a;try{return b()}finally{R=c}},exports.unstable_scheduleCallback=function(a,b,c){var d=exports.unstable_now();if("object"==typeof c&&null!==c){var e=c.delay;e="number"==typeof e&&0<e?d+e:d,c="number"==typeof c.timeout?c.timeout:Y(a)}else c=Y(a),e=d;return a={id:P++,callback:b,priorityLevel:a,startTime:e,expirationTime:c=e+c,sortIndex:-1},e>d?(a.sortIndex=e,J(O,a),null===L(N)&&a===L(O)&&(U?h():U=!0,g(W,e-d))):(a.sortIndex=c,J(N,a),T||S||(T=!0,f(X))),a},exports.unstable_shouldYield=function(){var a=exports.unstable_now();V(a);var b=L(N);return b!==Q&&null!==Q&&null!==b&&null!==b.callback&&b.startTime<=a&&b.expirationTime<Q.expirationTime||k()},exports.unstable_wrapCallback=function(a){var b=R;return function(){var c=R;R=b;try{return a.apply(this,arguments)}finally{R=c}}}},{}],156:[function(require,module,exports){"use strict";module.exports=require("./cjs/scheduler.production.min.js")},{"./cjs/scheduler.development.js":154,"./cjs/scheduler.production.min.js":155}],157:[function(require,module,exports){"use strict";module.exports=require("./cjs/scheduler-tracing.production.min.js")},{"./cjs/scheduler-tracing.development.js":152,"./cjs/scheduler-tracing.production.min.js":153}],158:[function(require,module,exports){"use strict";module.exports=require("./lib/index")},{"./lib/index":162}],159:[function(require,module,exports){"use strict";var alphabet,previousSeed,shuffled,randomFromSeed=require("./random/random-from-seed"),ORIGINAL="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_-";function reset(){shuffled=!1}function setCharacters(_alphabet_){if(_alphabet_){if(_alphabet_!==alphabet){if(_alphabet_.length!==ORIGINAL.length)throw new Error("Custom alphabet for shortid must be "+ORIGINAL.length+" unique characters. You submitted "+_alphabet_.length+" characters: "+_alphabet_);var unique=_alphabet_.split("").filter((function(item,ind,arr){return ind!==arr.lastIndexOf(item)}));if(unique.length)throw new Error("Custom alphabet for shortid must be "+ORIGINAL.length+" unique characters. These characters were not unique: "+unique.join(", "));alphabet=_alphabet_,reset()}}else alphabet!==ORIGINAL&&(alphabet=ORIGINAL,reset())}function getShuffled(){return shuffled||(shuffled=function(){alphabet||setCharacters(ORIGINAL);for(var characterIndex,sourceArray=alphabet.split(""),targetArray=[],r=randomFromSeed.nextValue();sourceArray.length>0;)r=randomFromSeed.nextValue(),characterIndex=Math.floor(r*sourceArray.length),targetArray.push(sourceArray.splice(characterIndex,1)[0]);return targetArray.join("")}())}module.exports={get:function(){return alphabet||ORIGINAL},characters:function(_alphabet_){return setCharacters(_alphabet_),alphabet},seed:function(seed){randomFromSeed.seed(seed),previousSeed!==seed&&(reset(),previousSeed=seed)},lookup:function(index){return getShuffled()[index]},shuffled:getShuffled}},{"./random/random-from-seed":165}],160:[function(require,module,exports){"use strict";var counter,previousSeconds,generate=require("./generate");require("./alphabet");module.exports=function(clusterWorkerId){var str="",seconds=Math.floor(.001*(Date.now()-1567752802062));return seconds===previousSeconds?counter++:(counter=0,previousSeconds=seconds),str+=generate(7),str+=generate(clusterWorkerId),counter>0&&(str+=generate(counter)),str+=generate(seconds)}},{"./alphabet":159,"./generate":161}],161:[function(require,module,exports){"use strict";var alphabet=require("./alphabet"),random=require("./random/random-byte"),format=require("nanoid/format");module.exports=function(number){for(var done,loopCounter=0,str="";!done;)str+=format(random,alphabet.get(),1),done=number<Math.pow(16,loopCounter+1),loopCounter++;return str}},{"./alphabet":159,"./random/random-byte":164,"nanoid/format":167}],162:[function(require,module,exports){"use strict";var alphabet=require("./alphabet"),build=require("./build"),isValid=require("./is-valid"),clusterWorkerId=require("./util/cluster-worker-id")||0;function generate(){return build(clusterWorkerId)}module.exports=generate,module.exports.generate=generate,module.exports.seed=function(seedValue){return alphabet.seed(seedValue),module.exports},module.exports.worker=function(workerId){return clusterWorkerId=workerId,module.exports},module.exports.characters=function(newCharacters){return void 0!==newCharacters&&alphabet.characters(newCharacters),alphabet.shuffled()},module.exports.isValid=isValid},{"./alphabet":159,"./build":160,"./is-valid":163,"./util/cluster-worker-id":166}],163:[function(require,module,exports){"use strict";var alphabet=require("./alphabet");module.exports=function(id){return!(!id||"string"!=typeof id||id.length<6)&&!new RegExp("[^"+alphabet.get().replace(/[|\\{}()[\]^$+*?.-]/g,"\\$&")+"]").test(id)}},{"./alphabet":159}],164:[function(require,module,exports){"use strict";var randomByte,crypto="object"==typeof window&&(window.crypto||window.msCrypto);randomByte=crypto&&crypto.getRandomValues?function(size){return crypto.getRandomValues(new Uint8Array(size))}:function(size){for(var bytes=[],i=0;i<size;i++)bytes.push(Math.floor(256*Math.random()));return bytes},module.exports=randomByte},{}],165:[function(require,module,exports){"use strict";var seed=1;module.exports={nextValue:function(){return(seed=(9301*seed+49297)%233280)/233280},seed:function(_seed_){seed=_seed_}}},{}],166:[function(require,module,exports){"use strict";module.exports=0},{}],167:[function(require,module,exports){module.exports=function(random,alphabet,size){for(var mask=(2<<Math.log(alphabet.length-1)/Math.LN2)-1,step=-~(1.6*mask*size/alphabet.length),id="";;)for(var bytes=random(step),i=step;i--;)if((id+=alphabet[bytes[i]&mask]||"").length===+size)return id}},{}]},{},[59]);