!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=80)}([function(e,t,n){"use strict";e.exports=n(53)},function(e,t,n){e.exports=n(44)()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:"store",n=arguments[1]||t+"Subscription",o=function(e){function o(n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,n,r));return i[t]=n.store,i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(o,e),o.prototype.getChildContext=function(){var e;return(e={})[t]=this[t],e[n]=null,e},o.prototype.render=function(){return r.Children.only(this.props.children)},o}(r.Component);return o.propTypes={store:u.isRequired,children:i.a.element.isRequired},o.childContextTypes=((e={})[t]=u.isRequired,e[n]=a,e),o}var s=l(),c=n(19),f=n.n(c),d=n(5),p=n.n(d);var h=null,v={notify:function(){}};var y=function(){function e(t,n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.store=t,this.parentSub=n,this.onStateChange=r,this.unsubscribe=null,this.listeners=v}return e.prototype.addNestedSub=function(e){return this.trySubscribe(),this.listeners.subscribe(e)},e.prototype.notifyNestedSubs=function(){this.listeners.notify()},e.prototype.isSubscribed=function(){return Boolean(this.unsubscribe)},e.prototype.trySubscribe=function(){var e,t;this.unsubscribe||(this.unsubscribe=this.parentSub?this.parentSub.addNestedSub(this.onStateChange):this.store.subscribe(this.onStateChange),this.listeners=(e=[],t=[],{clear:function(){t=h,e=h},notify:function(){for(var n=e=t,r=0;r1&&void 0!==arguments[1]?arguments[1]:{},i=o.getDisplayName,l=void 0===i?function(e){return"ConnectAdvanced("+e+")"}:i,s=o.methodName,c=void 0===s?"connectAdvanced":s,d=o.renderCountProp,h=void 0===d?void 0:d,v=o.shouldHandleStateChanges,_=void 0===v||v,k=o.storeKey,E=void 0===k?"store":k,S=o.withRef,P=void 0!==S&&S,O=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(o,["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef"]),T=E+"Subscription",C=m++,x=((t={})[E]=u,t[T]=a,t),j=((n={})[T]=a,n);return function(t){p()("function"==typeof t,"You must pass a component to the function returned by "+c+". Instead received "+JSON.stringify(t));var n=t.displayName||t.name||"Component",o=l(n),i=g({},O,{getDisplayName:l,methodName:c,renderCountProp:h,shouldHandleStateChanges:_,storeKey:E,withRef:P,displayName:o,wrappedComponentName:n,WrappedComponent:t}),a=function(n){function a(e,t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,n.call(this,e,t));return r.version=C,r.state={},r.renderCount=0,r.store=e[E]||t[E],r.propsMode=Boolean(e[E]),r.setWrappedInstance=r.setWrappedInstance.bind(r),p()(r.store,'Could not find "'+E+'" in either the context or props of "'+o+'". Either wrap the root component in a , or explicitly pass "'+E+'" as a prop to "'+o+'".'),r.initSelector(),r.initSubscription(),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(a,n),a.prototype.getChildContext=function(){var e,t=this.propsMode?null:this.subscription;return(e={})[T]=t||this.context[T],e},a.prototype.componentDidMount=function(){_&&(this.subscription.trySubscribe(),this.selector.run(this.props),this.selector.shouldComponentUpdate&&this.forceUpdate())},a.prototype.componentWillReceiveProps=function(e){this.selector.run(e)},a.prototype.shouldComponentUpdate=function(){return this.selector.shouldComponentUpdate},a.prototype.componentWillUnmount=function(){this.subscription&&this.subscription.tryUnsubscribe(),this.subscription=null,this.notifyNestedSubs=w,this.store=null,this.selector.run=w,this.selector.shouldComponentUpdate=!1},a.prototype.getWrappedInstance=function(){return p()(P,"To access the wrapped instance, you need to specify { withRef: true } in the options argument of the "+c+"() call."),this.wrappedInstance},a.prototype.setWrappedInstance=function(e){this.wrappedInstance=e},a.prototype.initSelector=function(){var t=e(this.store.dispatch,i);this.selector=function(e,t){var n={run:function(r){try{var o=e(t.getState(),r);(o!==n.props||n.error)&&(n.shouldComponentUpdate=!0,n.props=o,n.error=null)}catch(e){n.shouldComponentUpdate=!0,n.error=e}}};return n}(t,this.store),this.selector.run(this.props)},a.prototype.initSubscription=function(){if(_){var e=(this.propsMode?this.props:this.context)[T];this.subscription=new y(this.store,e,this.onStateChange.bind(this)),this.notifyNestedSubs=this.subscription.notifyNestedSubs.bind(this.subscription)}},a.prototype.onStateChange=function(){this.selector.run(this.props),this.selector.shouldComponentUpdate?(this.componentDidUpdate=this.notifyNestedSubsOnComponentDidUpdate,this.setState(b)):this.notifyNestedSubs()},a.prototype.notifyNestedSubsOnComponentDidUpdate=function(){this.componentDidUpdate=void 0,this.notifyNestedSubs()},a.prototype.isSubscribed=function(){return Boolean(this.subscription)&&this.subscription.isSubscribed()},a.prototype.addExtraProps=function(e){if(!(P||h||this.propsMode&&this.subscription))return e;var t=g({},e);return P&&(t.ref=this.setWrappedInstance),h&&(t[h]=this.renderCount++),this.propsMode&&this.subscription&&(t[T]=this.subscription),t},a.prototype.render=function(){var e=this.selector;if(e.shouldComponentUpdate=!1,e.error)throw e.error;return Object(r.createElement)(t,this.addExtraProps(e.props))},a}(r.Component);return a.WrappedComponent=t,a.displayName=o,a.childContextTypes=j,a.contextTypes=x,a.propTypes=x,f()(a,t)}}var k=Object.prototype.hasOwnProperty;function E(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function S(e,t){if(E(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var o=0;o=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(t,["initMapStateToProps","initMapDispatchToProps","initMergeProps"]),a=n(e,i),u=r(e,i),l=o(e,i);return(i.pure?W:B)(a,u,l,e,i)}var V=Object.assign||function(e){for(var t=1;t=0;r--){var o=t[r](e);if(o)return o}return function(t,r){throw new Error("Invalid value of type "+typeof e+" for "+n+" argument when connecting component "+r.wrappedComponentName+".")}}function $(e,t){return e===t}var K=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.connectHOC,n=void 0===t?_:t,r=e.mapStateToPropsFactories,o=void 0===r?U:r,i=e.mapDispatchToPropsFactories,a=void 0===i?R:i,u=e.mergePropsFactories,l=void 0===u?z:u,s=e.selectorFactory,c=void 0===s?H:s;return function(e,t,r){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},u=i.pure,s=void 0===u||u,f=i.areStatesEqual,d=void 0===f?$:f,p=i.areOwnPropsEqual,h=void 0===p?S:p,v=i.areStatePropsEqual,y=void 0===v?S:v,g=i.areMergedPropsEqual,m=void 0===g?S:g,b=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(i,["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"]),w=q(e,o,"mapStateToProps"),_=q(t,a,"mapDispatchToProps"),k=q(r,l,"mergeProps");return n(c,V({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:w,initMapDispatchToProps:_,initMergeProps:k,pure:s,areStatesEqual:d,areOwnPropsEqual:h,areStatePropsEqual:y,areMergedPropsEqual:m},b))}}();n.d(t,"Provider",function(){return s}),n.d(t,"createProvider",function(){return l}),n.d(t,"connectAdvanced",function(){return _}),n.d(t,"connect",function(){return K})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.initPagination=function(e){return{type:"INIT_PAGINATION",totalItems:e}},t.firstPage=function(){return{type:"FIRST_PAGE"}},t.lastPage=function(){return{type:"LAST_PAGE"}},t.nextPage=function(){return{type:"NEXT_PAGE"}},t.previousPage=function(){return{type:"PREVIOUS_PAGE"}},t.setPage=function(e){return{type:"SET_PAGE",page:e}}},function(e,t,n){"use strict";e.exports=function(e,t,n,r,o,i,a,u){if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var s=[n,r,o,i,a,u],c=0;(l=new Error(t.replace(/%s/g,function(){return s[c++]}))).name="Invariant Violation"}throw l.framesToPop=1,l}}},function(e,t,n){"use strict";(function(e,r){var o,i=n(17);o="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==e?e:r;var a=Object(i.a)(o);t.a=a}).call(this,n(8),n(42)(e))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t$&"))});var n,o,i}))}},function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";function r(e){return function(){return e}}var o=function(){};o.thatReturns=r,o.thatReturnsFalse=r(!1),o.thatReturnsTrue=r(!0),o.thatReturnsNull=r(null),o.thatReturnsThis=function(){return this},o.thatReturnsArgument=function(e){return e},e.exports=o},function(e,t,n){"use strict";var r=function(e){};e.exports=function(e,t,n,o,i,a,u,l){if(r(t),!e){var s;if(void 0===t)s=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,o,i,a,u,l],f=0;(s=new Error(t.replace(/%s/g,function(){return c[f++]}))).name="Invariant Violation"}throw s.framesToPop=1,s}}},function(e,t,n){"use strict";e.exports={}},function(e,t,n){"use strict"; /* object-assign (c) Sindre Sorhus @license MIT */var r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(e){r[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,a,u=function(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),l=1;l0&&void 0!==arguments[0]?arguments[0]:null;this.copyTemplateUI(),this.setLanguages(e)}},{key:"copyTemplateUI",value:function(){var e=this;this.UI=this.content.find(".js-select-languages:last").clone().show(),this.UI.appendTo(this.pairsUI),this.fromLanguageSelect=this.UI.find(".js-from-language-select"),this.fromLanguageSelect.on("change",function(t){return e.fromLanguageChanged()}),this.toLanguageCheckboxes=this.UI.find(":checkbox"),this.toLanguageCheckboxes.on("change",function(t){e.toLangChangeCallback()}),this.trashIcon=this.UI.find(".js-delete-language-pair")}},{key:"setLanguages",value:function(e){var t=this;this.fromLang&&this.fromLanguageSelect.val(this.fromLang),this.disableFromLanguages(e),this.UI.find(".js-to-languages").show(),this.toLangs.forEach(function(e){return t.UI.find(":checkbox[value="+e+"]").prop("checked",!0)}),this.hideToLanguage(this.fromLang)}},{key:"disableFromLanguages",value:function(e){var t=this;this.fromLanguageSelect.find("option").prop("disabled",!1),e&&e.forEach(function(e){return t.fromLanguageSelect.find("option[value="+e+"]").prop("disabled",e!==t.fromLang)})}},{key:"disableFromLanguageSelect",value:function(e){this.fromLanguageSelect.prop("disabled",e)}},{key:"hideToLanguage",value:function(e){this.toLanguageCheckboxes.closest("label").show(),this.UI.find(":checkbox[value="+e+"]").prop("checked",!1).closest("label").hide()}},{key:"getFromLanguage",value:function(){return this.fromLanguageSelect.val()}},{key:"getToLanguages",value:function(){var e=[];return this.UI.find(":checkbox:checked").each(function(t,n){return e.push(n.value)}),e}},{key:"fromLanguageChanged",value:function(){this.fromLang=this.getFromLanguage(),this.hideToLanguage(this.getFromLanguage()),this.fromLangChangeCallback()}},{key:"hideTrashIcon",value:function(e){e?this.trashIcon.hide():this.trashIcon.show()}},{key:"addTrashHook",value:function(e){var t=this;this.trashIcon.off("click").on("click",function(n){return t.onTrash(e)})}},{key:"onTrash",value:function(e){e(this),this.UI.remove()}}]),e}();t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=function(){function e(e,t){for(var n=0;n0)}},{key:"toLanguageChanged",value:function(){this.isAnyLanguagePairOKCallback(Object.keys(this.getLanguagePairs()).length>0)}}]),e}();t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(u)throw u;for(var r=!1,o={},i=0;i components with a ");var r=e,o=t.map(function(e){var t=void 0;return"object"===(void 0===e?"undefined":P(e))&&e instanceof x?t=e:(t=r.get(e))||(t=new e,r.set(e,t)),t.unsubscribe(n.onUpdate),t.subscribe(n.onUpdate),t});return this.instances=o,o},t.prototype.render=function(){var e=this;return n.createElement(C.Consumer,null,function(t){return e.props.children.apply(null,e._createInstances(t,e.props.to))})},t}(n.Component);function M(e){return n.createElement(C.Consumer,null,function(t){var r=new Map(t);return e.inject&&e.inject.forEach(function(e){r.set(e.constructor,e)}),n.createElement(C.Provider,{value:r},e.children)})}var I=[],A=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.setAccordion=function(e){return e!==n.state.accordion?n.setState({accordion:e}):null},n.setOnChange=function(e){return e!==n.state.onChange?n.setState({onChange:e}):null},n.addItem=function(e){n.setState(function(t){return t.items.some(function(t){return t.uuid===e.uuid})&&console.error('AccordionItem error: One item already has the uuid "'+e.uuid+'". Uuid property must be unique. See: https://github.com/springload/react-accessible-accordion#accordionitem'),{items:t.accordion&&e.expanded?[].concat(L(t.items.map(function(e){return A({},e,{expanded:!1})})),[e]):[].concat(L(t.items),[e])}})},n.removeItem=function(e){return n.setState(function(t){return{items:t.items.filter(function(t){return t.uuid!==e})}})},n.setExpanded=function(e,t){return n.setState(function(n){return{items:n.items.map(function(r){return r.uuid===e?A({},r,{expanded:t}):n.accordion&&t?A({},r,{expanded:!1}):r})}}).then(function(){n.state.accordion?n.state.onChange(e):n.state.onChange(n.state.items.filter(function(e){return e.expanded}).map(function(e){return e.uuid}))})},n.state=A({items:[],accordion:!0,onChange:function(){}},e),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(x),U=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["accordion"]);return n.createElement("div",U({role:t?"tablist":null},r))};F.defaultProps={accordion:!0};var D=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["accordion","onChange"]));return n.createElement(M,{inject:[this.accordionStore]},n.createElement(N,{to:[R]},function(e){return n.createElement(F,D({accordion:e.state.accordion},t))}))}}]),t}(t.Component);W.defaultProps={accordion:!0,onChange:function(){},className:"accordion",children:null}; /*! * consecutive * Get consecutive numbers * Copyright(c) 2017 ivanoff .$ curl -A cv ivanoff.org.ua * MIT Licensed */ var H=function(e,t,n){var r=e||0;return"number"!=typeof t&&(t=10),"number"!=typeof n&&(n=1),function(){var e;return void 0===t||10===t?(e=r,r+=n):(e=r.toString(),r=(parseInt(r,t)+n).toString(t)),e}},V=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.state=V({},e),void 0===n.state.uuid&&(n.state.uuid=$()),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),q(t,[{key:"setUuid",value:function(e){return this.setState({uuid:e})}}]),t}(x),G=r(function(e){var t="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}; /*! Copyright (c) 2016 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames */ /*! Copyright (c) 2016 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames */ !function(){var n={}.hasOwnProperty;function r(){for(var e=[],o=0;o=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(o,["uuid","className","hideBodyClassName","accordionStore","disabled","expanded"])),c=l.state.items.filter(function(e){return e.uuid===i})[0];return c?n.createElement("div",Q({className:G(a,(e={},t=u,r=!c.expanded&&u,t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e))},s)):null}}]),t}(t.Component),J=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(o,["className","hideBodyClassName","accordionStore","item","accordion","setExpanded","expanded","uuid","disabled"]),d="accordion__title-"+s,p="accordion__body-"+s,h=u?"tab":"button",v=G(i,(e={},t=a,r=a&&!l,t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e));return"tab"===h?n.createElement("div",re({id:d,"aria-selected":l,"aria-controls":p,className:v,onClick:c?void 0:this.handleClick,role:h,tabIndex:"0",onKeyPress:this.handleKeyPress,disabled:c},f)):n.createElement("div",re({id:d,"aria-expanded":l,"aria-controls":p,className:v,onClick:c?void 0:this.handleClick,role:h,tabIndex:"0",onKeyPress:this.handleKeyPress,disabled:c},f))}}]),t}(t.Component);ae.accordionElementName="AccordionItemTitle";var ue=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["className","hideBodyClassName","uuid","expanded","disabled","accordion"]);return n.createElement("div",se({id:"accordion__body-"+u,className:G(i,(t={},r=a,o=!l,r in t?Object.defineProperty(t,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[r]=o,t)),"aria-hidden":!l,"aria-labelledby":"accordion__title-"+u,role:s?"tabpanel":null},c))},fe=Object.assign||function(e){for(var t=1;t1}),o.default.createElement(a.default,{className:"previous-page",label:h.previous_page,onClick:n,isActive:c>1}),o.default.createElement(u.default,{onChange:l}),o.default.createElement(a.default,{className:"next-page",label:h.next_page,onClick:r,isActive:cd&&v))}}]),t}();t.default=(0,i.connect)(function(e){return{strings:e.strings.pagination,pagination:e.pagination}},function(e){return{setPage:function(t){return e((0,l.setPage)(t))},firstPage:function(){return e((0,l.firstPage)())},lastPage:function(){return e((0,l.lastPage)())},previousPage:function(){return e((0,l.previousPage)())},nextPage:function(){return e((0,l.nextPage)())}}})(c)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.setSearch=function(e){return{type:"SET_SEARCH",search:e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SearchForm=void 0;var r=function(){function e(e,t){for(var n=0;n2?e:"";var t=(0,u.default)(this.props.services,e).length;this.props.initPagination(t),this.props.setSearch(e)}},{key:"render",value:function(){var e=this;return o.default.createElement("div",{className:"ts-admin-section-search alignright"},o.default.createElement("label",{className:"screen-reader-text"},this.props.strings.search),o.default.createElement("input",{className:"search-string",type:"search",placeholder:this.props.strings.search,value:this.state.phrase,onChange:function(t){return e.search(t.target.value)}}))}}]),t}();t.default=(0,i.connect)(function(e){return{phrase:e.search,services:e.services,strings:e.strings.filter}},function(e){return{initPagination:function(t){return e((0,l.initPagination)(t))},setSearch:function(t){return e((0,a.setSearch)(t))}}})(c)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.sort=function(e,t){return{type:"SORT",column:e,order:t}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TableHeader=void 0;var r,o=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:"",t=arguments[1];switch(t.type){case"SET_SEARCH":return t.search;default:return e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];switch(t.type){case"SORT":return{column:t.column,order:t.order};default:return e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1],n=void 0;switch(t.type){case"INIT_PAGINATION":return{totalItems:t.totalItems,itemsPerPage:10,totalPages:Math.ceil(t.totalItems/10),currentPage:1};case"FIRST_PAGE":return r({},e,{currentPage:1});case"LAST_PAGE":return r({},e,{currentPage:e.totalPages});case"PREVIOUS_PAGE":return n=o(e),r({},e,{currentPage:n=n>1?n-1:1});case"NEXT_PAGE":return n=(n=o(e))0&&t.page<=e.totalPages?r({},e,{currentPage:t.page}):e;default:return e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1];switch(t.type){case"LOAD_STRINGS":return t.strings;default:return e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1];switch(t.type){case"SET_SERVICES":return t.services;default:return e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(18),o=s(n(38)),i=s(n(37)),a=s(n(36)),u=s(n(35)),l=s(n(34));function s(e){return e&&e.__esModule?e:{default:e}}t.default=function(){return(0,r.createStore)((0,r.combineReducers)({services:o.default,strings:i.default,pagination:a.default,sort:u.default,search:l.default}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.loadStrings=function(e){return{type:"LOAD_STRINGS",strings:e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.setServices=function(e){return{type:"SET_SERVICES",services:e}}},function(e,t){e.exports=function(e){if(!e.webpackPolyfill){var t=Object.create(e);t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),Object.defineProperty(t,"exports",{enumerable:!0}),t.webpackPolyfill=1}return t}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";var r=n(43);function o(){}e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var u=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 u.name="Invariant Violation",u}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return n.checkPropTypes=o,n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports=function(e){var t=(e?e.ownerDocument||e:document).defaultView||window;return!(!e||!("function"==typeof t.Node?e instanceof t.Node:"object"==typeof e&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName))}},function(e,t,n){"use strict";var r=n(45);e.exports=function(e){return r(e)&&3==e.nodeType}},function(e,t,n){"use strict";var r=n(46);e.exports=function e(t,n){return!(!t||!n)&&(t===n||!r(t)&&(r(n)?e(t,n.parentNode):"contains"in t?t.contains(n):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(n))))}},function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty;function o(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}e.exports=function(e,t){if(o(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),i=Object.keys(t);if(n.length!==i.length)return!1;for(var a=0;athis.eventPool.length&&this.eventPool.push(e)}function Ee(e){e.eventPool=[],e.getPooled=_e,e.release=ke}a(we.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=u.thatReturnsTrue)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=u.thatReturnsTrue)},persist:function(){this.isPersistent=u.thatReturnsTrue},isPersistent:u.thatReturnsFalse,destructor:function(){var e,t=this.constructor.Interface;for(e in t)this[e]=null;for(t=0;t=Ce),Ne=String.fromCharCode(32),Me={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(" ")}},Ie=!1;function Ae(e,t){switch(e){case"keyup":return-1!==Oe.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function Le(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Re=!1;var Ue={eventTypes:Me,extractEvents:function(e,t,n,r){var o=void 0,i=void 0;if(Te)e:{switch(e){case"compositionstart":o=Me.compositionStart;break e;case"compositionend":o=Me.compositionEnd;break e;case"compositionupdate":o=Me.compositionUpdate;break e}o=void 0}else Re?Ae(e,n)&&(o=Me.compositionEnd):"keydown"===e&&229===n.keyCode&&(o=Me.compositionStart);return o?(je&&(Re||o!==Me.compositionStart?o===Me.compositionEnd&&Re&&(i=ye()):(ve._root=r,ve._startText=ge(),Re=!0)),o=Se.getPooled(o,t,n,r),i?o.data=i:null!==(i=Le(n))&&(o.data=i),ee(o),i=o):i=null,(e=xe?function(e,t){switch(e){case"compositionend":return Le(t);case"keypress":return 32!==t.which?null:(Ie=!0,Ne);case"textInput":return(e=t.data)===Ne&&Ie?null:e;default:return null}}(e,n):function(e,t){if(Re)return"compositionend"===e||!Te&&Ae(e,t)?(e=ye(),ve._root=null,ve._startText=null,ve._fallbackText=null,Re=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1