diff --git a/dist/bundle.css b/dist/bundle.css index f983ade4..02593faa 100644 --- a/dist/bundle.css +++ b/dist/bundle.css @@ -1 +1 @@ -.Select{position:relative}.Select,.Select div,.Select input,.Select span{box-sizing:border-box}.Select.is-disabled>.Select-control{background-color:#f9f9f9}.Select.is-disabled>.Select-control:hover{box-shadow:none}.Select.is-disabled .Select-arrow-zone{cursor:default;pointer-events:none;opacity:.35}.Select-control{background-color:#fff;border-color:#d9d9d9 #ccc #b3b3b3;border-radius:4px;border:1px solid #ccc;color:#333;cursor:default;display:table;border-spacing:0;border-collapse:separate;height:36px;outline:none;overflow:hidden;position:relative;width:100%}.Select-control:hover{box-shadow:0 1px 0 rgba(0,0,0,.06)}.Select-control .Select-input:focus{outline:none}.is-searchable.is-open>.Select-control{cursor:text}.is-open>.Select-control{border-bottom-right-radius:0;border-bottom-left-radius:0;background:#fff;border-color:#b3b3b3 #ccc #d9d9d9}.is-open>.Select-control .Select-arrow{top:-2px;border-color:transparent transparent #999;border-width:0 5px 5px}.is-searchable.is-focused:not(.is-open)>.Select-control{cursor:text}.is-focused:not(.is-open)>.Select-control{border-color:#007eff;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 0 3px rgba(0,126,255,.1)}.Select--single>.Select-control .Select-value,.Select-placeholder{bottom:0;color:#aaa;left:0;line-height:34px;padding-left:10px;padding-right:10px;position:absolute;right:0;top:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.has-value.is-pseudo-focused.Select--single>.Select-control .Select-value .Select-value-label,.has-value.Select--single>.Select-control .Select-value .Select-value-label{color:#333}.has-value.is-pseudo-focused.Select--single>.Select-control .Select-value a.Select-value-label,.has-value.Select--single>.Select-control .Select-value a.Select-value-label{cursor:pointer;text-decoration:none}.has-value.is-pseudo-focused.Select--single>.Select-control .Select-value a.Select-value-label:focus,.has-value.is-pseudo-focused.Select--single>.Select-control .Select-value a.Select-value-label:hover,.has-value.Select--single>.Select-control .Select-value a.Select-value-label:focus,.has-value.Select--single>.Select-control .Select-value a.Select-value-label:hover{color:#007eff;outline:none;text-decoration:underline}.Select-input{height:34px;padding-left:10px;padding-right:10px;vertical-align:middle}.Select-input>input{width:100%;background:none transparent;border:0 none;box-shadow:none;cursor:default;display:inline-block;font-family:inherit;font-size:inherit;margin:0;outline:none;line-height:14px;padding:8px 0 12px;-webkit-appearance:none}.is-focused .Select-input>input{cursor:text}.has-value.is-pseudo-focused .Select-input{opacity:0}.Select-control:not(.is-searchable)>.Select-input{outline:none}.Select-loading-zone{cursor:pointer;display:table-cell;text-align:center}.Select-loading,.Select-loading-zone{position:relative;vertical-align:middle;width:16px}.Select-loading{-webkit-animation:Select-animation-spin .4s infinite linear;animation:Select-animation-spin .4s infinite linear;height:16px;box-sizing:border-box;border-radius:50%;border:2px solid #ccc;border-right-color:#333;display:inline-block}.Select-clear-zone{-webkit-animation:Select-animation-fadeIn .2s;animation:Select-animation-fadeIn .2s;color:#999;cursor:pointer;display:table-cell;position:relative;text-align:center;vertical-align:middle;width:17px}.Select-clear-zone:hover{color:#d0021b}.Select-clear{display:inline-block;font-size:18px;line-height:1}.Select--multi .Select-clear-zone{width:17px}.Select-arrow-zone{cursor:pointer;display:table-cell;position:relative;text-align:center;vertical-align:middle;width:25px;padding-right:5px}.Select-arrow{border-color:#999 transparent transparent;border-style:solid;border-width:5px 5px 2.5px;display:inline-block;height:0;width:0;position:relative}.is-open .Select-arrow,.Select-arrow-zone:hover>.Select-arrow{border-top-color:#666}.Select--multi .Select-multi-value-wrapper{display:inline-block}.Select .Select-aria-only{display:inline-block;height:1px;width:1px;margin:-1px;clip:rect(0,0,0,0);overflow:hidden;float:left}@-webkit-keyframes Select-animation-fadeIn{0%{opacity:0}to{opacity:1}}@keyframes Select-animation-fadeIn{0%{opacity:0}to{opacity:1}}.Select-menu-outer{border-bottom-right-radius:4px;border-bottom-left-radius:4px;background-color:#fff;border:1px solid #ccc;border-top-color:#e6e6e6;box-shadow:0 1px 0 rgba(0,0,0,.06);box-sizing:border-box;margin-top:-1px;max-height:200px;position:absolute;top:100%;width:100%;z-index:1;-webkit-overflow-scrolling:touch}.Select-menu{max-height:198px;overflow-y:auto}.Select-option{box-sizing:border-box;background-color:#fff;color:#666;cursor:pointer;display:block;padding:8px 10px}.Select-option:last-child{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.Select-option.is-selected{background-color:#f5faff;background-color:rgba(0,126,255,.04);color:#333}.Select-option.is-focused{background-color:#ebf5ff;background-color:rgba(0,126,255,.08);color:#333}.Select-option.is-disabled{color:#ccc;cursor:default}.Select-noresults{box-sizing:border-box;color:#999;cursor:default;display:block;padding:8px 10px}.Select--multi .Select-input{vertical-align:middle;margin-left:10px;padding:0}.Select--multi.has-value .Select-input{margin-left:5px}.Select--multi .Select-value{background-color:#ebf5ff;background-color:rgba(0,126,255,.08);border-radius:2px;border:1px solid #c2e0ff;border:1px solid rgba(0,126,255,.24);color:#007eff;display:inline-block;font-size:.9em;line-height:1.4;margin-left:5px;margin-top:5px;vertical-align:top}.Select--multi .Select-value-icon,.Select--multi .Select-value-label{display:inline-block;vertical-align:middle}.Select--multi .Select-value-label{border-bottom-right-radius:2px;border-top-right-radius:2px;cursor:default;padding:2px 5px}.Select--multi a.Select-value-label{color:#007eff;cursor:pointer;text-decoration:none}.Select--multi a.Select-value-label:hover{text-decoration:underline}.Select--multi .Select-value-icon{cursor:pointer;border-bottom-left-radius:2px;border-top-left-radius:2px;border-right:1px solid #c2e0ff;border-right:1px solid rgba(0,126,255,.24);padding:1px 5px 3px}.Select--multi .Select-value-icon:focus,.Select--multi .Select-value-icon:hover{background-color:#d8eafd;background-color:rgba(0,113,230,.08);color:#0071e6}.Select--multi .Select-value-icon:active{background-color:#c2e0ff;background-color:rgba(0,126,255,.24)}.Select--multi.is-disabled .Select-value{background-color:#fcfcfc;border:1px solid #e3e3e3;color:#333}.Select--multi.is-disabled .Select-value-icon{cursor:not-allowed;border-right:1px solid #e3e3e3}.Select--multi.is-disabled .Select-value-icon:active,.Select--multi.is-disabled .Select-value-icon:focus,.Select--multi.is-disabled .Select-value-icon:hover{background-color:#fcfcfc}@keyframes Select-animation-spin{to{transform:rotate(1turn)}}@-webkit-keyframes Select-animation-spin{to{-webkit-transform:rotate(1turn)}}/*! normalize.css v6.0.0 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}article,aside,footer,header,nav,section{display:block}h1{font-size:2em;margin:.67em 0}figcaption,figure,main{display:block}figure{margin:1em 40px}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace,monospace;font-size:1em}a{background-color:transparent;-webkit-text-decoration-skip:objects}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted}b,strong{font-weight:inherit;font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}dfn{font-style:italic}mark{background-color:#ff0;color:#000}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}audio,video{display:inline-block}audio:not([controls]){display:none;height:0}img{border-style:none}svg:not(:root){overflow:hidden}button,input,optgroup,select,textarea{margin:0}button,input{overflow:visible}button,select{text-transform:none}[type=reset],[type=submit],button,html [type=button]{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring,button:-moz-focusring{outline:1px dotted ButtonText}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{display:inline-block;vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-cancel-button,[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details,menu{display:block}summary{display:list-item}canvas{display:inline-block}[hidden],template{display:none}.cron-builder{display:inline-block;min-height:200px;background-color:#3caed6;padding:15px;color:#818181}.cron-builder__fieldset{border-color:#289cc7;border-style:solid}.cron-builder__legend{padding:0 5px}.cron-builder__tab{height:36px;font-weight:700;color:inherit;border:none;margin:.5px;background-image:linear-gradient(180deg,#fff,#e6e6e6);cursor:pointer;padding:5px 7px}.cron-builder__tab:hover:not(.cron-builder__tab--active){background-image:linear-gradient(180deg,#fff,#d3d3d3)}.cron-builder__tab--active{background-color:#cecece;background-image:none;cursor:default}.cron-builder__preset{min-height:100px;display:flex;align-items:flex-end;margin-bottom:40px;margin-top:20px}.cron-builder__input{margin-right:5px;max-width:400px}.cron-builder__row{display:flex}.cron-builder__row--main{margin-top:5px}.cron-builder__row--hours-range{width:300px;justify-content:center}.cron-builder__row--inline{display:inline-flex}.cron-builder__row--items-end{align-items:flex-end}.cron-builder__label{color:#fff;margin-bottom:3px;display:block}.cron-builder__link{color:#fff;cursor:pointer;right:0;margin-top:3px;margin-right:5px}.cron-builder__link:hover{text-decoration:underline}.cron-builder__action{margin:15px auto;height:40px;background-image:linear-gradient(180deg,#fff,#e6e6e6);border:none}.cron-builder__result{background-color:#303741;color:#fff;height:40px;display:flex;align-items:center;justify-content:center;font-weight:700}.cron-builder__hr{border:none;border-top:1px dashed #fff}.cron-builder__pretty-expression{color:#fff;margin-top:20px;margin-bottom:5px;font-weight:700;font-size:14px;max-width:550px} \ No newline at end of file +.Select{position:relative}.Select,.Select div,.Select input,.Select span{box-sizing:border-box}.Select.is-disabled>.Select-control{background-color:#f9f9f9}.Select.is-disabled>.Select-control:hover{box-shadow:none}.Select.is-disabled .Select-arrow-zone{cursor:default;pointer-events:none;opacity:.35}.Select-control{background-color:#fff;border-color:#d9d9d9 #ccc #b3b3b3;border-radius:4px;border:1px solid #ccc;color:#333;cursor:default;display:table;border-spacing:0;border-collapse:separate;height:36px;outline:none;overflow:hidden;position:relative;width:100%}.Select-control:hover{box-shadow:0 1px 0 rgba(0,0,0,.06)}.Select-control .Select-input:focus{outline:none}.is-searchable.is-open>.Select-control{cursor:text}.is-open>.Select-control{border-bottom-right-radius:0;border-bottom-left-radius:0;background:#fff;border-color:#b3b3b3 #ccc #d9d9d9}.is-open>.Select-control .Select-arrow{top:-2px;border-color:transparent transparent #999;border-width:0 5px 5px}.is-searchable.is-focused:not(.is-open)>.Select-control{cursor:text}.is-focused:not(.is-open)>.Select-control{border-color:#007eff;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 0 3px rgba(0,126,255,.1)}.Select--single>.Select-control .Select-value,.Select-placeholder{bottom:0;color:#aaa;left:0;line-height:34px;padding-left:10px;padding-right:10px;position:absolute;right:0;top:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.has-value.is-pseudo-focused.Select--single>.Select-control .Select-value .Select-value-label,.has-value.Select--single>.Select-control .Select-value .Select-value-label{color:#333}.has-value.is-pseudo-focused.Select--single>.Select-control .Select-value a.Select-value-label,.has-value.Select--single>.Select-control .Select-value a.Select-value-label{cursor:pointer;text-decoration:none}.has-value.is-pseudo-focused.Select--single>.Select-control .Select-value a.Select-value-label:focus,.has-value.is-pseudo-focused.Select--single>.Select-control .Select-value a.Select-value-label:hover,.has-value.Select--single>.Select-control .Select-value a.Select-value-label:focus,.has-value.Select--single>.Select-control .Select-value a.Select-value-label:hover{color:#007eff;outline:none;text-decoration:underline}.Select-input{height:34px;padding-left:10px;padding-right:10px;vertical-align:middle}.Select-input>input{width:100%;background:none transparent;border:0 none;box-shadow:none;cursor:default;display:inline-block;font-family:inherit;font-size:inherit;margin:0;outline:none;line-height:14px;padding:8px 0 12px;-webkit-appearance:none}.is-focused .Select-input>input{cursor:text}.has-value.is-pseudo-focused .Select-input{opacity:0}.Select-control:not(.is-searchable)>.Select-input{outline:none}.Select-loading-zone{cursor:pointer;display:table-cell;text-align:center}.Select-loading,.Select-loading-zone{position:relative;vertical-align:middle;width:16px}.Select-loading{-webkit-animation:Select-animation-spin .4s infinite linear;animation:Select-animation-spin .4s infinite linear;height:16px;box-sizing:border-box;border-radius:50%;border:2px solid #ccc;border-right-color:#333;display:inline-block}.Select-clear-zone{-webkit-animation:Select-animation-fadeIn .2s;animation:Select-animation-fadeIn .2s;color:#999;cursor:pointer;display:table-cell;position:relative;text-align:center;vertical-align:middle;width:17px}.Select-clear-zone:hover{color:#d0021b}.Select-clear{display:inline-block;font-size:18px;line-height:1}.Select--multi .Select-clear-zone{width:17px}.Select-arrow-zone{cursor:pointer;display:table-cell;position:relative;text-align:center;vertical-align:middle;width:25px;padding-right:5px}.Select-arrow{border-color:#999 transparent transparent;border-style:solid;border-width:5px 5px 2.5px;display:inline-block;height:0;width:0;position:relative}.is-open .Select-arrow,.Select-arrow-zone:hover>.Select-arrow{border-top-color:#666}.Select--multi .Select-multi-value-wrapper{display:inline-block}.Select .Select-aria-only{display:inline-block;height:1px;width:1px;margin:-1px;clip:rect(0,0,0,0);overflow:hidden;float:left}@-webkit-keyframes Select-animation-fadeIn{0%{opacity:0}to{opacity:1}}@keyframes Select-animation-fadeIn{0%{opacity:0}to{opacity:1}}.Select-menu-outer{border-bottom-right-radius:4px;border-bottom-left-radius:4px;background-color:#fff;border:1px solid #ccc;border-top-color:#e6e6e6;box-shadow:0 1px 0 rgba(0,0,0,.06);box-sizing:border-box;margin-top:-1px;max-height:200px;position:absolute;top:100%;width:100%;z-index:1;-webkit-overflow-scrolling:touch}.Select-menu{max-height:198px;overflow-y:auto}.Select-option{box-sizing:border-box;background-color:#fff;color:#666;cursor:pointer;display:block;padding:8px 10px}.Select-option:last-child{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.Select-option.is-selected{background-color:#f5faff;background-color:rgba(0,126,255,.04);color:#333}.Select-option.is-focused{background-color:#ebf5ff;background-color:rgba(0,126,255,.08);color:#333}.Select-option.is-disabled{color:#ccc;cursor:default}.Select-noresults{box-sizing:border-box;color:#999;cursor:default;display:block;padding:8px 10px}.Select--multi .Select-input{vertical-align:middle;margin-left:10px;padding:0}.Select--multi.has-value .Select-input{margin-left:5px}.Select--multi .Select-value{background-color:#ebf5ff;background-color:rgba(0,126,255,.08);border-radius:2px;border:1px solid #c2e0ff;border:1px solid rgba(0,126,255,.24);color:#007eff;display:inline-block;font-size:.9em;line-height:1.4;margin-left:5px;margin-top:5px;vertical-align:top}.Select--multi .Select-value-icon,.Select--multi .Select-value-label{display:inline-block;vertical-align:middle}.Select--multi .Select-value-label{border-bottom-right-radius:2px;border-top-right-radius:2px;cursor:default;padding:2px 5px}.Select--multi a.Select-value-label{color:#007eff;cursor:pointer;text-decoration:none}.Select--multi a.Select-value-label:hover{text-decoration:underline}.Select--multi .Select-value-icon{cursor:pointer;border-bottom-left-radius:2px;border-top-left-radius:2px;border-right:1px solid #c2e0ff;border-right:1px solid rgba(0,126,255,.24);padding:1px 5px 3px}.Select--multi .Select-value-icon:focus,.Select--multi .Select-value-icon:hover{background-color:#d8eafd;background-color:rgba(0,113,230,.08);color:#0071e6}.Select--multi .Select-value-icon:active{background-color:#c2e0ff;background-color:rgba(0,126,255,.24)}.Select--multi.is-disabled .Select-value{background-color:#fcfcfc;border:1px solid #e3e3e3;color:#333}.Select--multi.is-disabled .Select-value-icon{cursor:not-allowed;border-right:1px solid #e3e3e3}.Select--multi.is-disabled .Select-value-icon:active,.Select--multi.is-disabled .Select-value-icon:focus,.Select--multi.is-disabled .Select-value-icon:hover{background-color:#fcfcfc}@keyframes Select-animation-spin{to{transform:rotate(1turn)}}@-webkit-keyframes Select-animation-spin{to{-webkit-transform:rotate(1turn)}}.cron-builder{display:inline-block;min-height:200px;background-color:#3caed6;padding:15px;color:#818181}.cron-builder__fieldset{border-color:#289cc7;border-style:solid}.cron-builder__legend{padding:0 5px}.cron-builder__tab{height:36px;font-weight:700;color:inherit;border:none;margin:.5px;background-image:linear-gradient(180deg,#fff,#e6e6e6);cursor:pointer;padding:5px 7px}.cron-builder__tab:hover:not(.cron-builder__tab--active){background-image:linear-gradient(180deg,#fff,#d3d3d3)}.cron-builder__tab--active{background-color:#cecece;background-image:none;cursor:default}.cron-builder__preset{min-height:100px;display:flex;align-items:flex-end;margin-bottom:40px;margin-top:20px}.cron-builder__input{margin-right:5px;max-width:400px}.cron-builder__row{display:flex}.cron-builder__row--main{margin-top:5px}.cron-builder__row--hours-range{width:300px;justify-content:center}.cron-builder__row--inline{display:inline-flex}.cron-builder__row--items-end{align-items:flex-end}.cron-builder__label{color:#fff;margin-bottom:3px;display:block}.cron-builder__link{color:#fff;cursor:pointer;right:0;margin-top:3px;margin-right:5px}.cron-builder__link:hover{text-decoration:underline}.cron-builder__action{margin:15px auto;height:40px;background-image:linear-gradient(180deg,#fff,#e6e6e6);border:none}.cron-builder__result{background-color:#303741;color:#fff;height:40px;display:flex;align-items:center;justify-content:center;font-weight:700}.cron-builder__hr{border:none;border-top:1px dashed #fff}.cron-builder__pretty-expression{color:#fff;margin-top:20px;margin-bottom:5px;font-weight:700;font-size:14px;max-width:550px} \ No newline at end of file diff --git a/dist/bundle.js b/dist/bundle.js index 3aea5c88..57b5e492 100644 --- a/dist/bundle.js +++ b/dist/bundle.js @@ -1,16 +1,16 @@ -!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["react","react-dom"],t):"object"==typeof exports?exports["react-cron-builder"]=t(require("react"),require("react-dom")):e["react-cron-builder"]=t(e.React,e.ReactDom)}(this,function(e,t){return function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};return t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="/dist/",t(t.s=49)}([function(t,n){t.exports=e},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.defaultTo=t.addLeadingZeroToOption=t.addLeadingZero=t.parseCronExpression=t.replaceEvery=t.splitMultiple=t.generateCronExpression=t.getValue=t.getValues=t.ensureMultiple=t.isMultiple=t.parseTimeValue=t.toggleDateType=t.toOptions=t.toggleMultiple=void 0;var o=function(){function e(e,t){var n=[],r=!0,o=!1,u=void 0;try{for(var i,a=e[Symbol.iterator]();!(r=(i=a.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,u=e}finally{try{!r&&a.return&&a.return()}finally{if(o)throw u}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),u="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},i=n(33),a=r(i),s=n(129),l=r(s),c=n(3),p=n(3),f=t.toggleMultiple=function(e){return e instanceof Array?(0,a.default)(e):[e]},h=(t.toOptions=function(e){return e.map(String).map(function(e){return{value:e,label:e}})},t.toggleDateType=function(e){return e===c.MINUTES?c.HOURS:c.MINUTES},t.parseTimeValue=function e(t){if(t instanceof Array)return t.map(e);switch(t){case"*":return"1";default:return t}},t.isMultiple=function(e){return e instanceof Array}),d=(t.ensureMultiple=function(e,t){return t&&!h(e)?f(e):!t&&h(e)?f(e):e},t.getValues=function(e){return e.map(function(e){return e.value})},t.getValue=function(e){return"object"===(void 0===e?"undefined":u(e))?e.value:e},t.generateCronExpression=function(e){return(0,l.default)(e).join(" ")},t.splitMultiple=function(e){return e.includes(",")?e.split(","):e}),y=t.replaceEvery=function(e){return e.replace("*/","")},v=(t.parseCronExpression=function(e){var t=e.split(" "),n=o(t,5),r=n[0],u=n[1],i=n[2],a=n[3],s=n[4];return{minutes:d(y(r)),hours:d(y(u)),dayOfMonth:d(i),month:d(a),dayOfWeek:d(s)}},t.addLeadingZero=function(e){return("0"+e).slice(-2)});t.addLeadingZeroToOption=function(e){var t=e.value,n=e.label;return{label:v(n),value:t}},t.defaultTo=function(e,t){return e===p.EVERY?t:e}},function(e,t){var n=Array.isArray;e.exports=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.MINUTES="MINUTES",t.HOURS="HOURS",t.EVERY="*"},function(e,t){function n(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}e.exports=n},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(45);Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r(o).default}});var u=n(47);Object.defineProperty(t,"DayOfWeek",{enumerable:!0,get:function(){return r(u).default}});var i=n(46);Object.defineProperty(t,"DayOfMonth",{enumerable:!0,get:function(){return r(i).default}});var a=n(48);Object.defineProperty(t,"Month",{enumerable:!0,get:function(){return r(a).default}})},function(e,t,n){var r,o;/*! +!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["react","react-dom"],t):"object"==typeof exports?exports["react-cron-builder"]=t(require("react"),require("react-dom")):e["react-cron-builder"]=t(e.React,e.ReactDom)}(this,function(e,t){return function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};return t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="/dist/",t(t.s=49)}([function(t,n){t.exports=e},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.rangeHoursToSingle=t.defaultTo=t.addLeadingZeroToOption=t.addLeadingZero=t.parseCronExpression=t.replaceEvery=t.splitMultiple=t.generateCronExpression=t.getValue=t.getValues=t.ensureMultiple=t.isMultiple=t.parseTimeValue=t.toggleDateType=t.toOptions=t.toggleMultiple=void 0;var o=function(){function e(e,t){var n=[],r=!0,o=!1,u=void 0;try{for(var i,s=e[Symbol.iterator]();!(r=(i=s.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,u=e}finally{try{!r&&s.return&&s.return()}finally{if(o)throw u}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),u="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},i=n(33),s=r(i),a=n(128),l=r(a),c=n(5),p=t.toggleMultiple=function(e){return e instanceof Array?(0,s.default)(e):[e]},f=(t.toOptions=function(e){return e.map(String).map(function(e){return{value:e,label:e}})},t.toggleDateType=function(e){return e===c.MINUTES?c.HOURS:c.MINUTES},t.parseTimeValue=function e(t){if(t instanceof Array)return t.map(e);switch(t){case"*":return"1";default:return t}},t.isMultiple=function(e){return e instanceof Array}),h=(t.ensureMultiple=function(e,t){return t&&!f(e)?p(e):!t&&f(e)?p(e):e},t.getValues=function(e){return e.map(function(e){return e.value})},t.getValue=function(e){return"object"===(void 0===e?"undefined":u(e))?e.value:e},t.generateCronExpression=function(e){return(0,l.default)(e).join(" ")},t.splitMultiple=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;return e.includes(",")?e.split(","):e.includes("/")?e:e.includes("-")&&t===c.HOURS?e:e===c.EVERY?e:[e]}),d=t.replaceEvery=function(e){return"string"==typeof e?e.replace("*/",""):e},y=(t.parseCronExpression=function(e){var t=e.split(" "),n=o(t,5),r=n[0],u=n[1],i=n[2],s=n[3],a=n[4],l={minutes:c.EVERY,hours:c.EVERY,dayOfMonth:c.EVERY,month:c.EVERY,dayOfWeek:c.EVERY};return Object.assign(l,{minutes:d(h(r)),hours:d(h(u,c.HOURS)),dayOfMonth:h(i),month:h(s),dayOfWeek:h(a)})},t.addLeadingZero=function(e){return("0"+e).slice(-2)});t.addLeadingZeroToOption=function(e){var t=e.value,n=e.label;return{label:y(n),value:t}},t.defaultTo=function(e,t){return e!==c.EVERY&&e?e:t},t.rangeHoursToSingle=function(e){return e instanceof Array?e:e.split("-")[0]}},function(e,t){var n=Array.isArray;e.exports=n},function(e,t){function n(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}e.exports=n},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(45);Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r(o).default}});var u=n(47);Object.defineProperty(t,"DayOfWeek",{enumerable:!0,get:function(){return r(u).default}});var i=n(46);Object.defineProperty(t,"DayOfMonth",{enumerable:!0,get:function(){return r(i).default}});var s=n(48);Object.defineProperty(t,"Month",{enumerable:!0,get:function(){return r(s).default}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.MINUTES="MINUTES",t.HOURS="HOURS",t.EVERY="*"},function(e,t,n){var r,o;/*! Copyright (c) 2016 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames */ -!function(){"use strict";function n(){for(var e=[],t=0;t-1&&e%1==0&&e=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e){var t=typeof e;return"string"===t?e:"object"===t?JSON.stringify(e):"number"===t||"boolean"===t?String(e):""}/*! +!function(){"use strict";function n(){for(var e=[],t=0;t-1&&e%1==0&&e=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e){var t=typeof e;return"string"===t?e:"object"===t?JSON.stringify(e):"number"===t||"boolean"===t?String(e):""}/*! Copyright (c) 2016 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/react-select */ -Object.defineProperty(t,"__esModule",{value:!0});var a=Object.assign||function(e){for(var t=1;ti.bottom||u.topt.offsetHeight&&!(t.scrollHeight-t.offsetHeight-t.scrollTop)&&this.props.onMenuScrollToBottom()}},handleRequired:function(e,t){return!e||(t?0===e.length:0===Object.keys(e).length)},getOptionLabel:function(e){return e[this.props.labelKey]},getValueArray:function(e,t){var n=this,r="object"==typeof t?t:this.props;if(r.multi){if("string"==typeof e&&(e=e.split(r.delimiter)),!Array.isArray(e)){if(null===e||void 0===e)return[];e=[e]}return e.map(function(e){return n.expandValue(e,r)}).filter(function(e){return e})}var o=this.expandValue(e,r);return o?[o]:[]},expandValue:function(e,t){var n=typeof e;if("string"!==n&&"number"!==n&&"boolean"!==n)return e;var r=t.options,o=t.valueKey;if(r)for(var u=0;ur&&this.focusOption(n[r+1])},popValue:function(){var e=this.getValueArray(this.props.value);e.length&&!1!==e[e.length-1].clearableValue&&this.setValue(e.slice(0,e.length-1))},removeValue:function(e){var t=this.getValueArray(this.props.value);this.setValue(t.filter(function(t){return t!==e})),this.focus()},clearValue:function(e){e&&"mousedown"===e.type&&0!==e.button||(e.stopPropagation(),e.preventDefault(),this.setValue(this.getResetValue()),this.setState({isOpen:!1,inputValue:""},this.focus))},getResetValue:function(){return void 0!==this.props.resetValue?this.props.resetValue:this.props.multi?[]:null},focusOption:function(e){this.setState({focusedOption:e})},focusNextOption:function(){this.focusAdjacentOption("next")},focusPreviousOption:function(){this.focusAdjacentOption("previous")},focusPageUpOption:function(){this.focusAdjacentOption("page_up")},focusPageDownOption:function(){this.focusAdjacentOption("page_down")},focusStartOption:function(){this.focusAdjacentOption("start")},focusEndOption:function(){this.focusAdjacentOption("end")},focusAdjacentOption:function(e){var t=this._visibleOptions.map(function(e,t){return{option:e,index:t}}).filter(function(e){return!e.option.disabled});if(this._scrollToFocusedOptionOnUpdate=!0,!this.state.isOpen)return void this.setState({isOpen:!0,inputValue:"",focusedOption:this._focusedOption||(t.length?t["next"===e?0:t.length-1].option:null)});if(t.length){for(var n=-1,r=0;r0?n-=1:n=t.length-1;else if("start"===e)n=0;else if("end"===e)n=t.length-1;else if("page_up"===e){var o=n-this.props.pageSize;n=o<0?0:o}else if("page_down"===e){var o=n+this.props.pageSize;n=o>t.length-1?t.length-1:o}-1===n&&(n=0),this.setState({focusedIndex:t[n].index,focusedOption:t[n].option})}},getFocusedOption:function(){return this._focusedOption},getInputValue:function(){return this.state.inputValue},selectFocusedOption:function(){if(this._focusedOption)return this.selectValue(this._focusedOption)},renderLoading:function(){if(this.props.isLoading)return l.default.createElement("span",{className:"Select-loading-zone","aria-hidden":"true"},l.default.createElement("span",{className:"Select-loading"}))},renderValue:function(e,t){var n=this,r=this.props.valueRenderer||this.getOptionLabel,o=this.props.valueComponent;if(!e.length)return this.state.inputValue?null:l.default.createElement("div",{className:"Select-placeholder"},this.props.placeholder);var u=this.props.onValueClick?this.handleValueClick:null;return this.props.multi?e.map(function(e,t){return l.default.createElement(o,{id:n._instancePrefix+"-value-"+t,instancePrefix:n._instancePrefix,disabled:n.props.disabled||!1===e.clearableValue,key:"value-"+t+"-"+e[n.props.valueKey],onClick:u,onRemove:n.removeValue,value:e},r(e,t),l.default.createElement("span",{className:"Select-aria-only"}," "))}):this.state.inputValue?void 0:(t&&(u=null),l.default.createElement(o,{id:this._instancePrefix+"-value-item",disabled:this.props.disabled,instancePrefix:this._instancePrefix,onClick:u,value:e[0]},r(e[0])))},renderInput:function(e,t){var n,r=this,i=(0,y.default)("Select-input",this.props.inputProps.className),s=!!this.state.isOpen,c=(0,y.default)((n={},u(n,this._instancePrefix+"-list",s),u(n,this._instancePrefix+"-backspace-remove-message",this.props.multi&&!this.props.disabled&&this.state.isFocused&&!this.state.inputValue),n)),p=a({},this.props.inputProps,{role:"combobox","aria-expanded":""+s,"aria-owns":c,"aria-haspopup":""+s,"aria-activedescendant":s?this._instancePrefix+"-option-"+t:this._instancePrefix+"-value","aria-labelledby":this.props["aria-labelledby"],"aria-label":this.props["aria-label"],className:i,tabIndex:this.props.tabIndex,onBlur:this.handleInputBlur,onChange:this.handleInputChange,onFocus:this.handleInputFocus,ref:function(e){return r.input=e},required:this.state.required,value:this.state.inputValue});if(this.props.inputRenderer)return this.props.inputRenderer(p);if(this.props.disabled||!this.props.searchable){var f=this.props.inputProps,d=(f.inputClassName,o(f,["inputClassName"]));return l.default.createElement("div",a({},d,{role:"combobox","aria-expanded":s,"aria-owns":s?this._instancePrefix+"-list":this._instancePrefix+"-value","aria-activedescendant":s?this._instancePrefix+"-option-"+t:this._instancePrefix+"-value",className:i,tabIndex:this.props.tabIndex||0,onBlur:this.handleInputBlur,onFocus:this.handleInputFocus,ref:function(e){return r.input=e},"aria-readonly":""+!!this.props.disabled,style:{border:0,width:1,display:"inline-block"}}))}return this.props.autosize?l.default.createElement(h.default,a({},p,{minWidth:"5"})):l.default.createElement("div",{className:i},l.default.createElement("input",p))},renderClear:function(){if(this.props.clearable&&this.props.value&&0!==this.props.value&&(!this.props.multi||this.props.value.length)&&!this.props.disabled&&!this.props.isLoading){var e=this.props.clearRenderer();return l.default.createElement("span",{className:"Select-clear-zone",title:this.props.multi?this.props.clearAllText:this.props.clearValueText,"aria-label":this.props.multi?this.props.clearAllText:this.props.clearValueText,onMouseDown:this.clearValue,onTouchStart:this.handleTouchStart,onTouchMove:this.handleTouchMove,onTouchEnd:this.handleTouchEndClearValue},e)}},renderArrow:function(){var e=this.handleMouseDownOnArrow,t=this.state.isOpen,n=this.props.arrowRenderer({onMouseDown:e,isOpen:t});return l.default.createElement("span",{className:"Select-arrow-zone",onMouseDown:e},n)},filterOptions:function(e){var t=this.state.inputValue,n=this.props.options||[];if(this.props.filterOptions){return("function"==typeof this.props.filterOptions?this.props.filterOptions:g.default)(n,t,e,{filterOption:this.props.filterOption,ignoreAccents:this.props.ignoreAccents,ignoreCase:this.props.ignoreCase,labelKey:this.props.labelKey,matchPos:this.props.matchPos,matchProp:this.props.matchProp,valueKey:this.props.valueKey})}return n},onOptionRef:function(e,t){t&&(this.focused=e)},renderMenu:function(e,t,n){return e&&e.length?this.props.menuRenderer({focusedOption:n,focusOption:this.focusOption,instancePrefix:this._instancePrefix,labelKey:this.props.labelKey,onFocus:this.focusOption,onSelect:this.selectValue,optionClassName:this.props.optionClassName,optionComponent:this.props.optionComponent,optionRenderer:this.props.optionRenderer||this.getOptionLabel,options:e,selectValue:this.selectValue,valueArray:t,valueKey:this.props.valueKey,onOptionRef:this.onOptionRef}):this.props.noResultsText?l.default.createElement("div",{className:"Select-noresults"},this.props.noResultsText):null},renderHiddenField:function(e){var t=this;if(this.props.name){if(this.props.joinValues){var n=e.map(function(e){return i(e[t.props.valueKey])}).join(this.props.delimiter);return l.default.createElement("input",{type:"hidden",ref:function(e){return t.value=e},name:this.props.name,value:n,disabled:this.props.disabled})}return e.map(function(e,n){return l.default.createElement("input",{key:"hidden."+n,type:"hidden",ref:"value"+n,name:t.props.name,value:i(e[t.props.valueKey]),disabled:t.props.disabled})})}},getFocusableOptionIndex:function(e){var t=this._visibleOptions;if(!t.length)return null;var n=this.state.focusedOption||e;if(n&&!n.disabled){var r=t.indexOf(n);if(-1!==r)return r}for(var o=0;o-1&&e%1==0&&e<=r}var r=9007199254740991;e.exports=n},function(e,t,n){var r,o,u;!function(i,a){o=[t,n(0)],r=a,void 0!==(u="function"==typeof r?r.apply(t,o):r)&&(e.exports=u)}(0,function(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.If=e.Else=e.Then=void 0;var n=function(e){return e&&e.__esModule?e:{default:e}}(t),r=function(e){return"[object Array]"===Object.prototype.toString.call(e)},o=Array.isArray||r,u=function(e){var t=n.default.createClass({displayName:e,propTypes:{children:n.default.PropTypes.oneOfType([n.default.PropTypes.func,n.default.PropTypes.string,n.default.PropTypes.number,n.default.PropTypes.object])},render:function(){return"function"==typeof this.props.children?this.props.children():this.props.children||null}});return t.isInstance=function(e){return e.type===t},t},i=e.Then=u("Then"),a=e.Else=u("Else"),s=n.default.PropTypes,l=s.oneOfType([s.object,s.instanceOf(i),s.instanceOf(a)]),c=e.If=n.default.createClass({displayName:"If",propTypes:{condition:s.bool.isRequired,children:s.oneOfType([s.arrayOf(l),l])},render:function(){return this.props.condition?this.renderChildOfType(i):this.renderChildOfType(a)},renderChildOfType:function(e){if(null==this.props.children)return null;var t=this.props.children;return t=o(t)?t:[t],t=e===a?t.filter(e.isInstance):t.filter(function(e){return e.type!==a}),t.length>0?t[0]:null}});c.Then=i,c.Else=a,e.default=c})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(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}function i(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)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a,s,l=Object.assign||function(e){for(var t=1;t-1)return!1;if(r.filterOption)return r.filterOption.call(o,e,t);if(!t)return!0;var i=String(e[r.valueKey]),a=String(e[r.labelKey]);return r.ignoreAccents&&("label"!==r.matchProp&&(i=(0,u.default)(i)),"value"!==r.matchProp&&(a=(0,u.default)(a))),r.ignoreCase&&("label"!==r.matchProp&&(i=i.toLowerCase()),"value"!==r.matchProp&&(a=a.toLowerCase())),"start"===r.matchPos?"label"!==r.matchProp&&i.substr(0,t.length)===t||"value"!==r.matchProp&&a.substr(0,t.length)===t:"label"!==r.matchProp&&i.indexOf(t)>=0||"value"!==r.matchProp&&a.indexOf(t)>=0})}var o=n(39),u=function(e){return e&&e.__esModule?e:{default:e}}(o);e.exports=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){var t=e.focusedOption,n=e.instancePrefix,r=(e.labelKey,e.onFocus),o=e.onSelect,u=e.optionClassName,a=e.optionComponent,l=e.optionRenderer,c=e.options,p=e.valueArray,f=e.valueKey,h=e.onOptionRef,d=a;return c.map(function(e,a){var c=p&&p.indexOf(e)>-1,y=e===t,v=(0,i.default)(u,{"Select-option":!0,"is-selected":c,"is-focused":y,"is-disabled":e.disabled});return s.default.createElement(d,{className:v,instancePrefix:n,isDisabled:e.disabled,isFocused:y,isSelected:c,key:"option-"+a+"-"+e[f],onFocus:r,onSelect:o,option:e,optionIndex:a,ref:function(e){h(e,y)}},l(e,a))})}var u=n(6),i=r(u),a=n(0),s=r(a);e.exports=o},function(e,t,n){"use strict";var r=[{base:"A",letters:/[\u0041\u24B6\uFF21\u00C0\u00C1\u00C2\u1EA6\u1EA4\u1EAA\u1EA8\u00C3\u0100\u0102\u1EB0\u1EAE\u1EB4\u1EB2\u0226\u01E0\u00C4\u01DE\u1EA2\u00C5\u01FA\u01CD\u0200\u0202\u1EA0\u1EAC\u1EB6\u1E00\u0104\u023A\u2C6F]/g},{base:"AA",letters:/[\uA732]/g},{base:"AE",letters:/[\u00C6\u01FC\u01E2]/g},{base:"AO",letters:/[\uA734]/g},{base:"AU",letters:/[\uA736]/g},{base:"AV",letters:/[\uA738\uA73A]/g},{base:"AY",letters:/[\uA73C]/g},{base:"B",letters:/[\u0042\u24B7\uFF22\u1E02\u1E04\u1E06\u0243\u0182\u0181]/g},{base:"C",letters:/[\u0043\u24B8\uFF23\u0106\u0108\u010A\u010C\u00C7\u1E08\u0187\u023B\uA73E]/g},{base:"D",letters:/[\u0044\u24B9\uFF24\u1E0A\u010E\u1E0C\u1E10\u1E12\u1E0E\u0110\u018B\u018A\u0189\uA779]/g},{base:"DZ",letters:/[\u01F1\u01C4]/g},{base:"Dz",letters:/[\u01F2\u01C5]/g},{base:"E",letters:/[\u0045\u24BA\uFF25\u00C8\u00C9\u00CA\u1EC0\u1EBE\u1EC4\u1EC2\u1EBC\u0112\u1E14\u1E16\u0114\u0116\u00CB\u1EBA\u011A\u0204\u0206\u1EB8\u1EC6\u0228\u1E1C\u0118\u1E18\u1E1A\u0190\u018E]/g},{base:"F",letters:/[\u0046\u24BB\uFF26\u1E1E\u0191\uA77B]/g},{base:"G",letters:/[\u0047\u24BC\uFF27\u01F4\u011C\u1E20\u011E\u0120\u01E6\u0122\u01E4\u0193\uA7A0\uA77D\uA77E]/g},{base:"H",letters:/[\u0048\u24BD\uFF28\u0124\u1E22\u1E26\u021E\u1E24\u1E28\u1E2A\u0126\u2C67\u2C75\uA78D]/g},{base:"I",letters:/[\u0049\u24BE\uFF29\u00CC\u00CD\u00CE\u0128\u012A\u012C\u0130\u00CF\u1E2E\u1EC8\u01CF\u0208\u020A\u1ECA\u012E\u1E2C\u0197]/g},{base:"J",letters:/[\u004A\u24BF\uFF2A\u0134\u0248]/g},{base:"K",letters:/[\u004B\u24C0\uFF2B\u1E30\u01E8\u1E32\u0136\u1E34\u0198\u2C69\uA740\uA742\uA744\uA7A2]/g},{base:"L",letters:/[\u004C\u24C1\uFF2C\u013F\u0139\u013D\u1E36\u1E38\u013B\u1E3C\u1E3A\u0141\u023D\u2C62\u2C60\uA748\uA746\uA780]/g},{base:"LJ",letters:/[\u01C7]/g},{base:"Lj",letters:/[\u01C8]/g},{base:"M",letters:/[\u004D\u24C2\uFF2D\u1E3E\u1E40\u1E42\u2C6E\u019C]/g},{base:"N",letters:/[\u004E\u24C3\uFF2E\u01F8\u0143\u00D1\u1E44\u0147\u1E46\u0145\u1E4A\u1E48\u0220\u019D\uA790\uA7A4]/g},{base:"NJ",letters:/[\u01CA]/g},{base:"Nj",letters:/[\u01CB]/g},{base:"O",letters:/[\u004F\u24C4\uFF2F\u00D2\u00D3\u00D4\u1ED2\u1ED0\u1ED6\u1ED4\u00D5\u1E4C\u022C\u1E4E\u014C\u1E50\u1E52\u014E\u022E\u0230\u00D6\u022A\u1ECE\u0150\u01D1\u020C\u020E\u01A0\u1EDC\u1EDA\u1EE0\u1EDE\u1EE2\u1ECC\u1ED8\u01EA\u01EC\u00D8\u01FE\u0186\u019F\uA74A\uA74C]/g},{base:"OI",letters:/[\u01A2]/g},{base:"OO",letters:/[\uA74E]/g},{base:"OU",letters:/[\u0222]/g},{base:"P",letters:/[\u0050\u24C5\uFF30\u1E54\u1E56\u01A4\u2C63\uA750\uA752\uA754]/g},{base:"Q",letters:/[\u0051\u24C6\uFF31\uA756\uA758\u024A]/g},{base:"R",letters:/[\u0052\u24C7\uFF32\u0154\u1E58\u0158\u0210\u0212\u1E5A\u1E5C\u0156\u1E5E\u024C\u2C64\uA75A\uA7A6\uA782]/g},{base:"S",letters:/[\u0053\u24C8\uFF33\u1E9E\u015A\u1E64\u015C\u1E60\u0160\u1E66\u1E62\u1E68\u0218\u015E\u2C7E\uA7A8\uA784]/g},{base:"T",letters:/[\u0054\u24C9\uFF34\u1E6A\u0164\u1E6C\u021A\u0162\u1E70\u1E6E\u0166\u01AC\u01AE\u023E\uA786]/g},{base:"TZ",letters:/[\uA728]/g},{base:"U",letters:/[\u0055\u24CA\uFF35\u00D9\u00DA\u00DB\u0168\u1E78\u016A\u1E7A\u016C\u00DC\u01DB\u01D7\u01D5\u01D9\u1EE6\u016E\u0170\u01D3\u0214\u0216\u01AF\u1EEA\u1EE8\u1EEE\u1EEC\u1EF0\u1EE4\u1E72\u0172\u1E76\u1E74\u0244]/g},{base:"V",letters:/[\u0056\u24CB\uFF36\u1E7C\u1E7E\u01B2\uA75E\u0245]/g},{base:"VY",letters:/[\uA760]/g},{base:"W",letters:/[\u0057\u24CC\uFF37\u1E80\u1E82\u0174\u1E86\u1E84\u1E88\u2C72]/g},{base:"X",letters:/[\u0058\u24CD\uFF38\u1E8A\u1E8C]/g},{base:"Y",letters:/[\u0059\u24CE\uFF39\u1EF2\u00DD\u0176\u1EF8\u0232\u1E8E\u0178\u1EF6\u1EF4\u01B3\u024E\u1EFE]/g},{base:"Z",letters:/[\u005A\u24CF\uFF3A\u0179\u1E90\u017B\u017D\u1E92\u1E94\u01B5\u0224\u2C7F\u2C6B\uA762]/g},{base:"a",letters:/[\u0061\u24D0\uFF41\u1E9A\u00E0\u00E1\u00E2\u1EA7\u1EA5\u1EAB\u1EA9\u00E3\u0101\u0103\u1EB1\u1EAF\u1EB5\u1EB3\u0227\u01E1\u00E4\u01DF\u1EA3\u00E5\u01FB\u01CE\u0201\u0203\u1EA1\u1EAD\u1EB7\u1E01\u0105\u2C65\u0250]/g},{base:"aa",letters:/[\uA733]/g},{base:"ae",letters:/[\u00E6\u01FD\u01E3]/g},{base:"ao",letters:/[\uA735]/g},{base:"au",letters:/[\uA737]/g},{base:"av",letters:/[\uA739\uA73B]/g},{base:"ay",letters:/[\uA73D]/g},{base:"b",letters:/[\u0062\u24D1\uFF42\u1E03\u1E05\u1E07\u0180\u0183\u0253]/g},{base:"c",letters:/[\u0063\u24D2\uFF43\u0107\u0109\u010B\u010D\u00E7\u1E09\u0188\u023C\uA73F\u2184]/g},{base:"d",letters:/[\u0064\u24D3\uFF44\u1E0B\u010F\u1E0D\u1E11\u1E13\u1E0F\u0111\u018C\u0256\u0257\uA77A]/g},{base:"dz",letters:/[\u01F3\u01C6]/g},{base:"e",letters:/[\u0065\u24D4\uFF45\u00E8\u00E9\u00EA\u1EC1\u1EBF\u1EC5\u1EC3\u1EBD\u0113\u1E15\u1E17\u0115\u0117\u00EB\u1EBB\u011B\u0205\u0207\u1EB9\u1EC7\u0229\u1E1D\u0119\u1E19\u1E1B\u0247\u025B\u01DD]/g},{base:"f",letters:/[\u0066\u24D5\uFF46\u1E1F\u0192\uA77C]/g},{base:"g",letters:/[\u0067\u24D6\uFF47\u01F5\u011D\u1E21\u011F\u0121\u01E7\u0123\u01E5\u0260\uA7A1\u1D79\uA77F]/g},{base:"h",letters:/[\u0068\u24D7\uFF48\u0125\u1E23\u1E27\u021F\u1E25\u1E29\u1E2B\u1E96\u0127\u2C68\u2C76\u0265]/g},{base:"hv",letters:/[\u0195]/g},{base:"i",letters:/[\u0069\u24D8\uFF49\u00EC\u00ED\u00EE\u0129\u012B\u012D\u00EF\u1E2F\u1EC9\u01D0\u0209\u020B\u1ECB\u012F\u1E2D\u0268\u0131]/g},{base:"j",letters:/[\u006A\u24D9\uFF4A\u0135\u01F0\u0249]/g},{base:"k",letters:/[\u006B\u24DA\uFF4B\u1E31\u01E9\u1E33\u0137\u1E35\u0199\u2C6A\uA741\uA743\uA745\uA7A3]/g},{base:"l",letters:/[\u006C\u24DB\uFF4C\u0140\u013A\u013E\u1E37\u1E39\u013C\u1E3D\u1E3B\u017F\u0142\u019A\u026B\u2C61\uA749\uA781\uA747]/g},{base:"lj",letters:/[\u01C9]/g},{base:"m",letters:/[\u006D\u24DC\uFF4D\u1E3F\u1E41\u1E43\u0271\u026F]/g},{base:"n",letters:/[\u006E\u24DD\uFF4E\u01F9\u0144\u00F1\u1E45\u0148\u1E47\u0146\u1E4B\u1E49\u019E\u0272\u0149\uA791\uA7A5]/g},{base:"nj",letters:/[\u01CC]/g},{base:"o",letters:/[\u006F\u24DE\uFF4F\u00F2\u00F3\u00F4\u1ED3\u1ED1\u1ED7\u1ED5\u00F5\u1E4D\u022D\u1E4F\u014D\u1E51\u1E53\u014F\u022F\u0231\u00F6\u022B\u1ECF\u0151\u01D2\u020D\u020F\u01A1\u1EDD\u1EDB\u1EE1\u1EDF\u1EE3\u1ECD\u1ED9\u01EB\u01ED\u00F8\u01FF\u0254\uA74B\uA74D\u0275]/g},{base:"oi",letters:/[\u01A3]/g},{base:"ou",letters:/[\u0223]/g},{base:"oo",letters:/[\uA74F]/g},{base:"p",letters:/[\u0070\u24DF\uFF50\u1E55\u1E57\u01A5\u1D7D\uA751\uA753\uA755]/g},{base:"q",letters:/[\u0071\u24E0\uFF51\u024B\uA757\uA759]/g},{base:"r",letters:/[\u0072\u24E1\uFF52\u0155\u1E59\u0159\u0211\u0213\u1E5B\u1E5D\u0157\u1E5F\u024D\u027D\uA75B\uA7A7\uA783]/g},{base:"s",letters:/[\u0073\u24E2\uFF53\u00DF\u015B\u1E65\u015D\u1E61\u0161\u1E67\u1E63\u1E69\u0219\u015F\u023F\uA7A9\uA785\u1E9B]/g},{base:"t",letters:/[\u0074\u24E3\uFF54\u1E6B\u1E97\u0165\u1E6D\u021B\u0163\u1E71\u1E6F\u0167\u01AD\u0288\u2C66\uA787]/g},{base:"tz",letters:/[\uA729]/g},{base:"u",letters:/[\u0075\u24E4\uFF55\u00F9\u00FA\u00FB\u0169\u1E79\u016B\u1E7B\u016D\u00FC\u01DC\u01D8\u01D6\u01DA\u1EE7\u016F\u0171\u01D4\u0215\u0217\u01B0\u1EEB\u1EE9\u1EEF\u1EED\u1EF1\u1EE5\u1E73\u0173\u1E77\u1E75\u0289]/g},{base:"v",letters:/[\u0076\u24E5\uFF56\u1E7D\u1E7F\u028B\uA75F\u028C]/g},{base:"vy",letters:/[\uA761]/g},{base:"w",letters:/[\u0077\u24E6\uFF57\u1E81\u1E83\u0175\u1E87\u1E85\u1E98\u1E89\u2C73]/g},{base:"x",letters:/[\u0078\u24E7\uFF58\u1E8B\u1E8D]/g},{base:"y",letters:/[\u0079\u24E8\uFF59\u1EF3\u00FD\u0177\u1EF9\u0233\u1E8F\u00FF\u1EF7\u1E99\u1EF5\u01B4\u024F\u1EFF]/g},{base:"z",letters:/[\u007A\u24E9\uFF5A\u017A\u1E91\u017C\u017E\u1E93\u1E95\u01B6\u0225\u0240\u2C6C\uA763]/g}];e.exports=function(e){for(var t=0;t1)e(n.filter(function(e){return e!==d.EVERY}));else{var r=n.indexOf(d.EVERY);e(-1!==r?[d.EVERY]:n)}}},i=n,u(r,i)}return i(t,e),c(t,[{key:"render",value:function(){var e=this,t=this.props,n=t.styleNameFactory,r=t.children,o=this.state.activeComponent;return f.default.createElement("div",{style:{position:"relative"}},f.default.createElement("label",n("label"),"On:"),f.default.createElement("div",n("row","items-end"),p.Children.map(r,function(t){var r=t.props,u=r.value,i=r.onChange,a=t.type.getOptions;return f.default.createElement(h.If,{condition:t.type.className===o},f.default.createElement(h.Then,null,f.default.createElement("div",n("input"),f.default.createElement(g.default,{style:{minWidth:120},value:u,options:a(),multi:!0,autosize:!0,onChange:e.onChange(i)}))))})),f.default.createElement("div",l({style:{position:"absolute"}},n("link")),f.default.createElement("select",{onChange:this.setActiveComponent},f.default.createElement("option",{value:E.DayOfWeek.className},"day of week"),f.default.createElement("option",{value:E.DayOfMonth.className},"day of month"),f.default.createElement("option",{value:E.Month.className},"month"))))}}]),t}(p.PureComponent),a.defaultProps={children:null},s);t.default=O},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(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}function u(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)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i,a,s=function(){function e(e,t){for(var n=0;n-1)||n.indexOf(",")>-1||r.StringUtilities.containsAny(o,e.specialCharacters))if(o.indexOf(",")>-1&&-1==o.indexOf("-")&&!r.StringUtilities.containsAny(n,e.specialCharacters)){var i=o.split(",");u+=this.i18n.at();for(var a=0;a0&&(u+=", "),u+=l,u.length>0&&(u+=", "),u+=c}else{var p=n.split("-");u+=r.StringUtilities.format(this.i18n.everyMinutebetweenX0AndX1(),this.formatTime(o,p[0],""),this.formatTime(o,p[1],""))}else u+=this.i18n.atSpace()+this.formatTime(o,n,t);return u},e.prototype.getSecondsDescription=function(){var e=this;return this.getSegmentDescription(this.expressionParts[0],this.i18n.everysecond(),function(e){return e},function(t){return r.StringUtilities.format(e.i18n.everyX0Seconds(),t)},function(t){return e.i18n.secondsX0ThroughX1PastTheMinute()},function(t){return"0"==t?"":parseInt(t)<20?e.i18n.atX0SecondsPastTheMinute():e.i18n.atX0SecondsPastTheMinuteGt20()||e.i18n.atX0SecondsPastTheMinute()})},e.prototype.getMinutesDescription=function(){var e=this;return this.getSegmentDescription(this.expressionParts[1],this.i18n.everyMinute(),function(e){return e},function(t){return r.StringUtilities.format(e.i18n.everyX0Minutes(),t)},function(t){return e.i18n.minutesX0ThroughX1PastTheHour()},function(t){try{return"0"==t?"":parseInt(t)<20?e.i18n.atX0MinutesPastTheHour():e.i18n.atX0MinutesPastTheHourGt20()||e.i18n.atX0MinutesPastTheHour()}catch(t){return e.i18n.atX0MinutesPastTheHour()}})},e.prototype.getHoursDescription=function(){var e=this,t=this.expressionParts[2];return this.getSegmentDescription(t,this.i18n.everyHour(),function(t){return e.formatTime(t,"0","")},function(t){return r.StringUtilities.format(e.i18n.everyX0Hours(),t)},function(t){return e.i18n.betweenX0AndX1()},function(t){return e.i18n.atX0()})},e.prototype.getDayOfWeekDescription=function(){var e=this,t=this.i18n.daysOfTheWeek();return"*"==this.expressionParts[5]&&"*"!=this.expressionParts[3]?"":this.getSegmentDescription(this.expressionParts[5],this.i18n.commaEveryDay(),function(e){var n=e;return e.indexOf("#")>-1?n=e.substr(0,e.indexOf("#")):e.indexOf("L")>-1&&(n=n.replace("L","")),t[parseInt(n)]},function(t){return r.StringUtilities.format(e.i18n.commaEveryX0daysOfTheWeek(),t)},function(t){return e.i18n.commaX0ThroughX1()},function(t){var n=null;if(t.indexOf("#")>-1){var r=t.substring(t.indexOf("#")+1),o=null;switch(r){case"1":o=e.i18n.first();break;case"2":o=e.i18n.second();break;case"3":o=e.i18n.third();break;case"4":o=e.i18n.forth();break;case"5":o=e.i18n.fifth()}n=e.i18n.commaOnThe()+o+e.i18n.spaceX0OfTheMonth()}else n=t.indexOf("L")>-1?e.i18n.commaOnTheLastX0OfTheMonth():e.i18n.commaOnlyOnX0();return n})},e.prototype.getMonthDescription=function(){var e=this,t=this.i18n.monthsOfTheYear();return this.getSegmentDescription(this.expressionParts[4],"",function(e){return t[parseInt(e)-1]},function(t){return r.StringUtilities.format(e.i18n.commaEveryX0Months(),t)},function(t){return e.i18n.commaMonthX0ThroughMonthX1()||e.i18n.commaX0ThroughX1()},function(t){return e.i18n.commaOnlyInX0()})},e.prototype.getDayOfMonthDescription=function(){var e=this,t=null,n=this.expressionParts[3];switch(n){case"L":t=this.i18n.commaOnTheLastDayOfTheMonth();break;case"WL":case"LW":t=this.i18n.commaOnTheLastWeekdayOfTheMonth();break;default:var o=n.match(/(\d{1,2}W)|(W\d{1,2})/);if(o){var u=parseInt(o[0].replace("W","")),i=1==u?this.i18n.firstWeekday():r.StringUtilities.format(this.i18n.weekdayNearestDayX0(),u.toString());t=r.StringUtilities.format(this.i18n.commaOnTheX0OfTheMonth(),i);break}t=this.getSegmentDescription(n,this.i18n.commaEveryDay(),function(e){return e},function(t){return"1"==t?e.i18n.commaEveryDay():e.i18n.commaEveryX0Days()},function(t){return e.i18n.commaBetweenDayX0AndX1OfTheMonth()},function(t){return e.i18n.commaOnDayX0OfTheMonth()})}return t},e.prototype.getYearDescription=function(){var e=this;return this.getSegmentDescription(this.expressionParts[6],"",function(e){return/^\d+$/.test(e)?new Date(parseInt(e),1).getFullYear().toString():e},function(t){return r.StringUtilities.format(e.i18n.commaEveryX0Years(),t)},function(t){return e.i18n.commaYearX0ThroughYearX1()||e.i18n.commaX0ThroughX1()},function(t){return e.i18n.commaOnlyInX0()})},e.prototype.getSegmentDescription=function(e,t,n,o,u,i){var a=this,s=null;if(e)if("*"===e)s=t;else if(r.StringUtilities.containsAny(e,["/","-",","]))if(e.indexOf("/")>-1){var l=e.split("/");if(s=r.StringUtilities.format(o(l[1]),n(l[1])),l[0].indexOf("-")>-1){var c=this.generateBetweenSegmentDescription(l[0],u,n);0!=c.indexOf(", ")&&(s+=", "),s+=c}else if(!r.StringUtilities.containsAny(l[0],["*",","])){var p=r.StringUtilities.format(i(l[0]),n(l[0]));p=p.replace(", ",""),s+=r.StringUtilities.format(this.i18n.commaStartingX0(),p)}}else if(e.indexOf(",")>-1){for(var l=e.split(","),f="",h=0;h0&&l.length>2&&(f+=",",h0&&l.length>1&&(h==l.length-1||2==l.length)&&(f+=this.i18n.spaceAndSpace()),l[h].indexOf("-")>-1){var c=this.generateBetweenSegmentDescription(l[h],function(e){return a.i18n.commaX0ThroughX1()},n);c=c.replace(", ",""),f+=c}else f+=n(l[h]);s=r.StringUtilities.format(i(e),f)}else e.indexOf("-")>-1&&(s=this.generateBetweenSegmentDescription(e,u,n));else s=r.StringUtilities.format(i(e),n(e));else s="";return s},e.prototype.generateBetweenSegmentDescription=function(e,t,n){var o="",u=e.split("-"),i=n(u[0]),a=n(u[1]);a=a.replace(":00",":59");var s=t(e);return o+=r.StringUtilities.format(s,i,a)},e.prototype.formatTime=function(e,t,n){var r=parseInt(e),o="";this.options.use24HourTimeFormat||(o=r>=12?" PM":" AM",r>12&&(r-=12));var u=t,i="";return n&&(i=":"+("00"+n).substring(n.length)),("00"+r.toString()).substring(r.toString().length)+":"+("00"+u.toString()).substring(u.toString().length)+i+o},e.prototype.transformVerbosity=function(e,t){return t||(e=e.replace(new RegExp(this.i18n.commaEveryMinute(),"g"),""),e=e.replace(new RegExp(this.i18n.commaEveryHour(),"g"),""),e=e.replace(new RegExp(this.i18n.commaEveryDay(),"g"),"")),e},e}();u.locales={},t.ExpressionDescriptor=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){void 0===t&&(t=!0),this.expression=e,this.dayOfWeekStartIndexZero=t}return e.prototype.parse=function(){if(!this.expression)throw new Error("Expression is empty");var e=this.expression.trim().split(" ");if(e.length<5)throw new Error("Expression only has "+e.length+" parts. At least 5 part are required.");if(5==e.length)e.unshift(""),e.push("");else if(6==e.length)/\d{4}$/.test(e[5])?e.unshift(""):e.push("");else if(e.length>7)throw new Error("Expression has "+e.length+" parts; too many!");return this.normalizeExpression(e),e},e.prototype.normalizeExpression=function(e){var t=this;if(e[3]=e[3].replace("?","*"),e[5]=e[5].replace("?","*"),0==e[0].indexOf("0/")&&(e[0]=e[0].replace("0/","*/")),0==e[1].indexOf("0/")&&(e[1]=e[1].replace("0/","*/")),0==e[2].indexOf("0/")&&(e[2]=e[2].replace("0/","*/")),0==e[3].indexOf("1/")&&(e[3]=e[3].replace("1/","*/")),0==e[4].indexOf("1/")&&(e[4]=e[4].replace("1/","*/")),0==e[5].indexOf("1/")&&(e[5]=e[5].replace("1/","*/")),0==e[6].indexOf("1/")&&(e[6]=e[6].replace("1/","*/")),e[5]=e[5].replace(/(^\d)|([^#\/\s]\d)/g,function(e){var n=e.replace(/\D/,""),r=n;return t.dayOfWeekStartIndexZero?"7"==n&&(r="0"):r=(parseInt(n)-1).toString(),e.replace(n,r)}),"?"==e[3]&&(e[3]="*"),e[3].indexOf("W")>-1&&(e[3].indexOf(",")>-1||e[3].indexOf("-")>-1))throw new Error("The 'W' character can be specified only when the day-of-month is a single day, not a range or list of days.");var n={SUN:0,MON:1,TUE:2,WED:3,THU:4,FRI:5,SAT:6};for(var r in n)e[5]=e[5].replace(new RegExp(r,"g"),n[r].toString());var o={JAN:1,FEB:2,MAR:3,APR:4,MAY:5,JUN:6,JUL:7,AUG:8,SEP:9,OCT:10,NOV:11,DEC:12};for(var u in o)e[4]=e[4].replace(new RegExp(u,"g"),o[u].toString());"0"==e[0]&&(e[0]="");for(var i=0;i-1&&!/^\*|\-|\,/.test(e[i])){var a=null;switch(i){case 4:a="12";break;case 5:a="6";break;case 6:a="9999";break;default:a=null}if(null!=a){var s=e[i].split("/");e[i]=s[0]+"-"+a+"/"+s[1]}}},e}();t.CronParser=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(){}return e.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},e.prototype.atX0MinutesPastTheHourGt20=function(){return null},e.prototype.commaMonthX0ThroughMonthX1=function(){return null},e.prototype.commaYearX0ThroughYearX1=function(){return null},e.prototype.use24HourTimeFormatByDefault=function(){return!1},e.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"An error occured when generating the expression description. Check the cron expression syntax."},e.prototype.everyMinute=function(){return"every minute"},e.prototype.everyHour=function(){return"every hour"},e.prototype.atSpace=function(){return"At "},e.prototype.everyMinutebetweenX0AndX1=function(){return"Every minute between %s and %s"},e.prototype.at=function(){return"At"},e.prototype.spaceAnd=function(){return" and"},e.prototype.everysecond=function(){return"every second"},e.prototype.everyX0Seconds=function(){return"every %s seconds"},e.prototype.secondsX0ThroughX1PastTheMinute=function(){return"seconds %s through %s past the minute"},e.prototype.atX0SecondsPastTheMinute=function(){return"at %s seconds past the minute"},e.prototype.everyX0Minutes=function(){return"every %s minutes"},e.prototype.minutesX0ThroughX1PastTheHour=function(){return"minutes %s through %s past the hour"},e.prototype.atX0MinutesPastTheHour=function(){return"at %s minutes past the hour"},e.prototype.everyX0Hours=function(){return"every %s hours"},e.prototype.betweenX0AndX1=function(){return"between %s and %s"},e.prototype.atX0=function(){return"at %s"},e.prototype.commaEveryDay=function(){return", every day"},e.prototype.commaEveryX0daysOfTheWeek=function(){return", every %s days of the week"},e.prototype.commaX0ThroughX1=function(){return", %s through %s"},e.prototype.first=function(){return"first"},e.prototype.second=function(){return"second"},e.prototype.third=function(){return"third"},e.prototype.forth=function(){return"forth"},e.prototype.fifth=function(){return"fifth"},e.prototype.commaOnThe=function(){return", on the "},e.prototype.spaceX0OfTheMonth=function(){return" %s of the month"},e.prototype.commaOnTheLastX0OfTheMonth=function(){return", on the last %s of the month"},e.prototype.commaOnlyOnX0=function(){return", only on %s"},e.prototype.commaEveryX0Months=function(){return", every %s months"},e.prototype.commaOnlyInX0=function(){return", only in %s"},e.prototype.commaOnTheLastDayOfTheMonth=function(){return", on the last day of the month"},e.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", on the last weekday of the month"},e.prototype.firstWeekday=function(){return"first weekday"},e.prototype.weekdayNearestDayX0=function(){return"weekday nearest day %s"},e.prototype.commaOnTheX0OfTheMonth=function(){return", on the %s of the month"},e.prototype.commaEveryX0Days=function(){return", every %s days"},e.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", between day %s and %s of the month"},e.prototype.commaOnDayX0OfTheMonth=function(){return", on day %s of the month"},e.prototype.spaceAndSpace=function(){return" and "},e.prototype.commaEveryMinute=function(){return", every minute"},e.prototype.commaEveryHour=function(){return", every hour"},e.prototype.commaEveryX0Years=function(){return", every %s years"},e.prototype.commaStartingX0=function(){return", starting %s"},e.prototype.daysOfTheWeek=function(){return["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},e.prototype.monthsOfTheYear=function(){return["January","February","March","April","May","June","July","August","September","October","November","December"]},e}();t.en=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(){}return e.format=function(e){for(var t=[],n=1;n-1})},e}();t.StringUtilities=r},,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(2),o=function(){function e(){}return e.prototype.load=function(e){e.en=new r.en},e}();t.enLocaleLoader=o},,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),o=n(5);r.ExpressionDescriptor.initialize(new o.enLocaleLoader),t.default=r.ExpressionDescriptor;var u=r.ExpressionDescriptor.toString;t.toString=u}])})},function(e,t){},function(e,t){},function(e,t){},function(e,t,n){function r(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t0&&n(c)?t>1?r(c,t-1,n,i,a):o(a,c):i||(a[a.length]=c)}return a}var o=n(60),u=n(90);e.exports=r},function(e,t,n){function r(e,t){t=o(t,e);for(var n=0,r=t.length;null!=e&&n-1}var o=n(8);e.exports=r},function(e,t,n){function r(e,t){var n=this.__data__,r=o(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var o=n(8);e.exports=r},function(e,t,n){function r(){this.size=0,this.__data__={hash:new o,map:new(i||u),string:new o}}var o=n(54),u=n(55),i=n(56);e.exports=r},function(e,t,n){function r(e){var t=o(this,e).delete(e);return this.size-=t?1:0,t}var o=n(11);e.exports=r},function(e,t,n){function r(e){return o(this,e).get(e)}var o=n(11);e.exports=r},function(e,t,n){function r(e){return o(this,e).has(e)}var o=n(11);e.exports=r},function(e,t,n){function r(e,t){var n=o(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var o=n(11);e.exports=r},function(e,t,n){function r(e){var t=o(e,function(e){return n.size===u&&n.clear(),e}),n=t.cache;return t}var o=n(123),u=500;e.exports=r},function(e,t,n){var r=n(110),o=r(Object.keys,Object);e.exports=o},function(e,t,n){(function(e){var r=n(32),o="object"==typeof t&&t&&!t.nodeType&&t,u=o&&"object"==typeof e&&e&&!e.nodeType&&e,i=u&&u.exports===o,a=i&&r.process,s=function(){try{return a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=s}).call(t,n(40)(e))},function(e,t){function n(e){return o.call(e)}var r=Object.prototype,o=r.toString;e.exports=n},function(e,t){function n(e,t){return function(n){return e(t(n))}}e.exports=n},function(e,t,n){function r(e,t,n){return t=u(void 0===t?e.length-1:t,0),function(){for(var r=arguments,i=-1,a=u(r.length-t,0),s=Array(a);++i0){if(++t>=r)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var r=800,o=16,u=Date.now;e.exports=n},function(e,t,n){var r=n(106),o=/^\./,u=r(function(e){var t=[];return o.test(e)&&t.push(""),e.replace(/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,function(e,n,r,o){t.push(r?o.replace(/\\(\\)?/g,"$1"):n||e)}),t});e.exports=u},function(e,t){function n(e){if(null!=e){try{return o.call(e)}catch(e){}try{return e+""}catch(e){}}return""}var r=Function.prototype,o=r.toString;e.exports=n},function(e,t){function n(e){return function(){return e}}e.exports=n},function(e,t,n){function r(e){return(null==e?0:e.length)?o(e,1):[]}var o=n(63);e.exports=r},function(e,t,n){function r(e,t){return null!=e&&u(e,t,o)}var o=n(65),u=n(84);e.exports=r},function(e,t){function n(e){return e}e.exports=n},function(e,t,n){(function(e){var r=n(14),o=n(125),u="object"==typeof t&&t&&!t.nodeType&&t,i=u&&"object"==typeof e&&e&&!e.nodeType&&e,a=i&&i.exports===u,s=a?r.Buffer:void 0,l=s?s.isBuffer:void 0,c=l||o;e.exports=c}).call(t,n(40)(e))},function(e,t,n){var r=n(68),o=n(77),u=n(108),i=u&&u.isTypedArray,a=i?o(i):r;e.exports=a},function(e,t,n){function r(e){return i(e)?o(e):u(e)}var o=n(59),u=n(69),i=n(34);e.exports=r},function(e,t,n){function r(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError(u);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],u=n.cache;if(u.has(o))return u.get(o);var i=e.apply(this,r);return n.cache=u.set(o,i)||u,i};return n.cache=new(r.Cache||o),n}var o=n(57),u="Expected a function";r.Cache=o,e.exports=r},function(e,t,n){var r=n(70),o=n(81),u=o(function(e,t){return null==e?{}:r(e,t)});e.exports=u},function(e,t){function n(){return!1}e.exports=n},function(e,t,n){function r(e){if(!e)return 0===e?e:0;if((e=o(e))===u||e===-u){return(e<0?-1:1)*i}return e===e?e:0}var o=n(127),u=1/0,i=1.7976931348623157e308;e.exports=r},function(e,t,n){function r(e){if("number"==typeof e)return e;if(u(e))return i;if(o(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=o(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(a,"");var n=l.test(e);return n||c.test(e)?p(e.slice(2),n?2:8):s.test(e)?i:+e}var o=n(4),u=n(16),i=NaN,a=/^\s+|\s+$/g,s=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,c=/^0o[0-7]+$/i,p=parseInt;e.exports=r},function(e,t,n){function r(e){return null==e?"":o(e)}var o=n(76);e.exports=r},function(e,t,n){function r(e){return null==e?[]:o(e,u(e))}var o=n(78),u=n(122);e.exports=r},function(e,t,n){"use strict";function r(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}/* +Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;ti.bottom||u.topt.offsetHeight&&!(t.scrollHeight-t.offsetHeight-t.scrollTop)&&this.props.onMenuScrollToBottom()}},handleRequired:function(e,t){return!e||(t?0===e.length:0===Object.keys(e).length)},getOptionLabel:function(e){return e[this.props.labelKey]},getValueArray:function(e,t){var n=this,r="object"==typeof t?t:this.props;if(r.multi){if("string"==typeof e&&(e=e.split(r.delimiter)),!Array.isArray(e)){if(null===e||void 0===e)return[];e=[e]}return e.map(function(e){return n.expandValue(e,r)}).filter(function(e){return e})}var o=this.expandValue(e,r);return o?[o]:[]},expandValue:function(e,t){var n=typeof e;if("string"!==n&&"number"!==n&&"boolean"!==n)return e;var r=t.options,o=t.valueKey;if(r)for(var u=0;ur&&this.focusOption(n[r+1])},popValue:function(){var e=this.getValueArray(this.props.value);e.length&&!1!==e[e.length-1].clearableValue&&this.setValue(e.slice(0,e.length-1))},removeValue:function(e){var t=this.getValueArray(this.props.value);this.setValue(t.filter(function(t){return t!==e})),this.focus()},clearValue:function(e){e&&"mousedown"===e.type&&0!==e.button||(e.stopPropagation(),e.preventDefault(),this.setValue(this.getResetValue()),this.setState({isOpen:!1,inputValue:""},this.focus))},getResetValue:function(){return void 0!==this.props.resetValue?this.props.resetValue:this.props.multi?[]:null},focusOption:function(e){this.setState({focusedOption:e})},focusNextOption:function(){this.focusAdjacentOption("next")},focusPreviousOption:function(){this.focusAdjacentOption("previous")},focusPageUpOption:function(){this.focusAdjacentOption("page_up")},focusPageDownOption:function(){this.focusAdjacentOption("page_down")},focusStartOption:function(){this.focusAdjacentOption("start")},focusEndOption:function(){this.focusAdjacentOption("end")},focusAdjacentOption:function(e){var t=this._visibleOptions.map(function(e,t){return{option:e,index:t}}).filter(function(e){return!e.option.disabled});if(this._scrollToFocusedOptionOnUpdate=!0,!this.state.isOpen)return void this.setState({isOpen:!0,inputValue:"",focusedOption:this._focusedOption||(t.length?t["next"===e?0:t.length-1].option:null)});if(t.length){for(var n=-1,r=0;r0?n-=1:n=t.length-1;else if("start"===e)n=0;else if("end"===e)n=t.length-1;else if("page_up"===e){var o=n-this.props.pageSize;n=o<0?0:o}else if("page_down"===e){var o=n+this.props.pageSize;n=o>t.length-1?t.length-1:o}-1===n&&(n=0),this.setState({focusedIndex:t[n].index,focusedOption:t[n].option})}},getFocusedOption:function(){return this._focusedOption},getInputValue:function(){return this.state.inputValue},selectFocusedOption:function(){if(this._focusedOption)return this.selectValue(this._focusedOption)},renderLoading:function(){if(this.props.isLoading)return l.default.createElement("span",{className:"Select-loading-zone","aria-hidden":"true"},l.default.createElement("span",{className:"Select-loading"}))},renderValue:function(e,t){var n=this,r=this.props.valueRenderer||this.getOptionLabel,o=this.props.valueComponent;if(!e.length)return this.state.inputValue?null:l.default.createElement("div",{className:"Select-placeholder"},this.props.placeholder);var u=this.props.onValueClick?this.handleValueClick:null;return this.props.multi?e.map(function(e,t){return l.default.createElement(o,{id:n._instancePrefix+"-value-"+t,instancePrefix:n._instancePrefix,disabled:n.props.disabled||!1===e.clearableValue,key:"value-"+t+"-"+e[n.props.valueKey],onClick:u,onRemove:n.removeValue,value:e},r(e,t),l.default.createElement("span",{className:"Select-aria-only"}," "))}):this.state.inputValue?void 0:(t&&(u=null),l.default.createElement(o,{id:this._instancePrefix+"-value-item",disabled:this.props.disabled,instancePrefix:this._instancePrefix,onClick:u,value:e[0]},r(e[0])))},renderInput:function(e,t){var n,r=this,i=(0,y.default)("Select-input",this.props.inputProps.className),a=!!this.state.isOpen,c=(0,y.default)((n={},u(n,this._instancePrefix+"-list",a),u(n,this._instancePrefix+"-backspace-remove-message",this.props.multi&&!this.props.disabled&&this.state.isFocused&&!this.state.inputValue),n)),p=s({},this.props.inputProps,{role:"combobox","aria-expanded":""+a,"aria-owns":c,"aria-haspopup":""+a,"aria-activedescendant":a?this._instancePrefix+"-option-"+t:this._instancePrefix+"-value","aria-labelledby":this.props["aria-labelledby"],"aria-label":this.props["aria-label"],className:i,tabIndex:this.props.tabIndex,onBlur:this.handleInputBlur,onChange:this.handleInputChange,onFocus:this.handleInputFocus,ref:function(e){return r.input=e},required:this.state.required,value:this.state.inputValue});if(this.props.inputRenderer)return this.props.inputRenderer(p);if(this.props.disabled||!this.props.searchable){var f=this.props.inputProps,d=(f.inputClassName,o(f,["inputClassName"]));return l.default.createElement("div",s({},d,{role:"combobox","aria-expanded":a,"aria-owns":a?this._instancePrefix+"-list":this._instancePrefix+"-value","aria-activedescendant":a?this._instancePrefix+"-option-"+t:this._instancePrefix+"-value",className:i,tabIndex:this.props.tabIndex||0,onBlur:this.handleInputBlur,onFocus:this.handleInputFocus,ref:function(e){return r.input=e},"aria-readonly":""+!!this.props.disabled,style:{border:0,width:1,display:"inline-block"}}))}return this.props.autosize?l.default.createElement(h.default,s({},p,{minWidth:"5"})):l.default.createElement("div",{className:i},l.default.createElement("input",p))},renderClear:function(){if(this.props.clearable&&this.props.value&&0!==this.props.value&&(!this.props.multi||this.props.value.length)&&!this.props.disabled&&!this.props.isLoading){var e=this.props.clearRenderer();return l.default.createElement("span",{className:"Select-clear-zone",title:this.props.multi?this.props.clearAllText:this.props.clearValueText,"aria-label":this.props.multi?this.props.clearAllText:this.props.clearValueText,onMouseDown:this.clearValue,onTouchStart:this.handleTouchStart,onTouchMove:this.handleTouchMove,onTouchEnd:this.handleTouchEndClearValue},e)}},renderArrow:function(){var e=this.handleMouseDownOnArrow,t=this.state.isOpen,n=this.props.arrowRenderer({onMouseDown:e,isOpen:t});return l.default.createElement("span",{className:"Select-arrow-zone",onMouseDown:e},n)},filterOptions:function(e){var t=this.state.inputValue,n=this.props.options||[];if(this.props.filterOptions){return("function"==typeof this.props.filterOptions?this.props.filterOptions:g.default)(n,t,e,{filterOption:this.props.filterOption,ignoreAccents:this.props.ignoreAccents,ignoreCase:this.props.ignoreCase,labelKey:this.props.labelKey,matchPos:this.props.matchPos,matchProp:this.props.matchProp,valueKey:this.props.valueKey})}return n},onOptionRef:function(e,t){t&&(this.focused=e)},renderMenu:function(e,t,n){return e&&e.length?this.props.menuRenderer({focusedOption:n,focusOption:this.focusOption,instancePrefix:this._instancePrefix,labelKey:this.props.labelKey,onFocus:this.focusOption,onSelect:this.selectValue,optionClassName:this.props.optionClassName,optionComponent:this.props.optionComponent,optionRenderer:this.props.optionRenderer||this.getOptionLabel,options:e,selectValue:this.selectValue,valueArray:t,valueKey:this.props.valueKey,onOptionRef:this.onOptionRef}):this.props.noResultsText?l.default.createElement("div",{className:"Select-noresults"},this.props.noResultsText):null},renderHiddenField:function(e){var t=this;if(this.props.name){if(this.props.joinValues){var n=e.map(function(e){return i(e[t.props.valueKey])}).join(this.props.delimiter);return l.default.createElement("input",{type:"hidden",ref:function(e){return t.value=e},name:this.props.name,value:n,disabled:this.props.disabled})}return e.map(function(e,n){return l.default.createElement("input",{key:"hidden."+n,type:"hidden",ref:"value"+n,name:t.props.name,value:i(e[t.props.valueKey]),disabled:t.props.disabled})})}},getFocusableOptionIndex:function(e){var t=this._visibleOptions;if(!t.length)return null;var n=this.state.focusedOption||e;if(n&&!n.disabled){var r=t.indexOf(n);if(-1!==r)return r}for(var o=0;o-1&&e%1==0&&e<=r}var r=9007199254740991;e.exports=n},function(e,t,n){var r,o,u;!function(i,s){o=[t,n(0)],r=s,void 0!==(u="function"==typeof r?r.apply(t,o):r)&&(e.exports=u)}(0,function(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.If=e.Else=e.Then=void 0;var n=function(e){return e&&e.__esModule?e:{default:e}}(t),r=function(e){return"[object Array]"===Object.prototype.toString.call(e)},o=Array.isArray||r,u=function(e){var t=n.default.createClass({displayName:e,propTypes:{children:n.default.PropTypes.oneOfType([n.default.PropTypes.func,n.default.PropTypes.string,n.default.PropTypes.number,n.default.PropTypes.object])},render:function(){return"function"==typeof this.props.children?this.props.children():this.props.children||null}});return t.isInstance=function(e){return e.type===t},t},i=e.Then=u("Then"),s=e.Else=u("Else"),a=n.default.PropTypes,l=a.oneOfType([a.object,a.instanceOf(i),a.instanceOf(s)]),c=e.If=n.default.createClass({displayName:"If",propTypes:{condition:a.bool.isRequired,children:a.oneOfType([a.arrayOf(l),l])},render:function(){return this.props.condition?this.renderChildOfType(i):this.renderChildOfType(s)},renderChildOfType:function(e){if(null==this.props.children)return null;var t=this.props.children;return t=o(t)?t:[t],t=e===s?t.filter(e.isInstance):t.filter(function(e){return e.type!==s}),t.length>0?t[0]:null}});c.Then=i,c.Else=s,e.default=c})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(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}function i(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)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s,a,l=Object.assign||function(e){for(var t=1;t-1)return!1;if(r.filterOption)return r.filterOption.call(o,e,t);if(!t)return!0;var i=String(e[r.valueKey]),s=String(e[r.labelKey]);return r.ignoreAccents&&("label"!==r.matchProp&&(i=(0,u.default)(i)),"value"!==r.matchProp&&(s=(0,u.default)(s))),r.ignoreCase&&("label"!==r.matchProp&&(i=i.toLowerCase()),"value"!==r.matchProp&&(s=s.toLowerCase())),"start"===r.matchPos?"label"!==r.matchProp&&i.substr(0,t.length)===t||"value"!==r.matchProp&&s.substr(0,t.length)===t:"label"!==r.matchProp&&i.indexOf(t)>=0||"value"!==r.matchProp&&s.indexOf(t)>=0})}var o=n(39),u=function(e){return e&&e.__esModule?e:{default:e}}(o);e.exports=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){var t=e.focusedOption,n=e.instancePrefix,r=(e.labelKey,e.onFocus),o=e.onSelect,u=e.optionClassName,s=e.optionComponent,l=e.optionRenderer,c=e.options,p=e.valueArray,f=e.valueKey,h=e.onOptionRef,d=s;return c.map(function(e,s){var c=p&&p.indexOf(e)>-1,y=e===t,v=(0,i.default)(u,{"Select-option":!0,"is-selected":c,"is-focused":y,"is-disabled":e.disabled});return a.default.createElement(d,{className:v,instancePrefix:n,isDisabled:e.disabled,isFocused:y,isSelected:c,key:"option-"+s+"-"+e[f],onFocus:r,onSelect:o,option:e,optionIndex:s,ref:function(e){h(e,y)}},l(e,s))})}var u=n(6),i=r(u),s=n(0),a=r(s);e.exports=o},function(e,t,n){"use strict";var r=[{base:"A",letters:/[\u0041\u24B6\uFF21\u00C0\u00C1\u00C2\u1EA6\u1EA4\u1EAA\u1EA8\u00C3\u0100\u0102\u1EB0\u1EAE\u1EB4\u1EB2\u0226\u01E0\u00C4\u01DE\u1EA2\u00C5\u01FA\u01CD\u0200\u0202\u1EA0\u1EAC\u1EB6\u1E00\u0104\u023A\u2C6F]/g},{base:"AA",letters:/[\uA732]/g},{base:"AE",letters:/[\u00C6\u01FC\u01E2]/g},{base:"AO",letters:/[\uA734]/g},{base:"AU",letters:/[\uA736]/g},{base:"AV",letters:/[\uA738\uA73A]/g},{base:"AY",letters:/[\uA73C]/g},{base:"B",letters:/[\u0042\u24B7\uFF22\u1E02\u1E04\u1E06\u0243\u0182\u0181]/g},{base:"C",letters:/[\u0043\u24B8\uFF23\u0106\u0108\u010A\u010C\u00C7\u1E08\u0187\u023B\uA73E]/g},{base:"D",letters:/[\u0044\u24B9\uFF24\u1E0A\u010E\u1E0C\u1E10\u1E12\u1E0E\u0110\u018B\u018A\u0189\uA779]/g},{base:"DZ",letters:/[\u01F1\u01C4]/g},{base:"Dz",letters:/[\u01F2\u01C5]/g},{base:"E",letters:/[\u0045\u24BA\uFF25\u00C8\u00C9\u00CA\u1EC0\u1EBE\u1EC4\u1EC2\u1EBC\u0112\u1E14\u1E16\u0114\u0116\u00CB\u1EBA\u011A\u0204\u0206\u1EB8\u1EC6\u0228\u1E1C\u0118\u1E18\u1E1A\u0190\u018E]/g},{base:"F",letters:/[\u0046\u24BB\uFF26\u1E1E\u0191\uA77B]/g},{base:"G",letters:/[\u0047\u24BC\uFF27\u01F4\u011C\u1E20\u011E\u0120\u01E6\u0122\u01E4\u0193\uA7A0\uA77D\uA77E]/g},{base:"H",letters:/[\u0048\u24BD\uFF28\u0124\u1E22\u1E26\u021E\u1E24\u1E28\u1E2A\u0126\u2C67\u2C75\uA78D]/g},{base:"I",letters:/[\u0049\u24BE\uFF29\u00CC\u00CD\u00CE\u0128\u012A\u012C\u0130\u00CF\u1E2E\u1EC8\u01CF\u0208\u020A\u1ECA\u012E\u1E2C\u0197]/g},{base:"J",letters:/[\u004A\u24BF\uFF2A\u0134\u0248]/g},{base:"K",letters:/[\u004B\u24C0\uFF2B\u1E30\u01E8\u1E32\u0136\u1E34\u0198\u2C69\uA740\uA742\uA744\uA7A2]/g},{base:"L",letters:/[\u004C\u24C1\uFF2C\u013F\u0139\u013D\u1E36\u1E38\u013B\u1E3C\u1E3A\u0141\u023D\u2C62\u2C60\uA748\uA746\uA780]/g},{base:"LJ",letters:/[\u01C7]/g},{base:"Lj",letters:/[\u01C8]/g},{base:"M",letters:/[\u004D\u24C2\uFF2D\u1E3E\u1E40\u1E42\u2C6E\u019C]/g},{base:"N",letters:/[\u004E\u24C3\uFF2E\u01F8\u0143\u00D1\u1E44\u0147\u1E46\u0145\u1E4A\u1E48\u0220\u019D\uA790\uA7A4]/g},{base:"NJ",letters:/[\u01CA]/g},{base:"Nj",letters:/[\u01CB]/g},{base:"O",letters:/[\u004F\u24C4\uFF2F\u00D2\u00D3\u00D4\u1ED2\u1ED0\u1ED6\u1ED4\u00D5\u1E4C\u022C\u1E4E\u014C\u1E50\u1E52\u014E\u022E\u0230\u00D6\u022A\u1ECE\u0150\u01D1\u020C\u020E\u01A0\u1EDC\u1EDA\u1EE0\u1EDE\u1EE2\u1ECC\u1ED8\u01EA\u01EC\u00D8\u01FE\u0186\u019F\uA74A\uA74C]/g},{base:"OI",letters:/[\u01A2]/g},{base:"OO",letters:/[\uA74E]/g},{base:"OU",letters:/[\u0222]/g},{base:"P",letters:/[\u0050\u24C5\uFF30\u1E54\u1E56\u01A4\u2C63\uA750\uA752\uA754]/g},{base:"Q",letters:/[\u0051\u24C6\uFF31\uA756\uA758\u024A]/g},{base:"R",letters:/[\u0052\u24C7\uFF32\u0154\u1E58\u0158\u0210\u0212\u1E5A\u1E5C\u0156\u1E5E\u024C\u2C64\uA75A\uA7A6\uA782]/g},{base:"S",letters:/[\u0053\u24C8\uFF33\u1E9E\u015A\u1E64\u015C\u1E60\u0160\u1E66\u1E62\u1E68\u0218\u015E\u2C7E\uA7A8\uA784]/g},{base:"T",letters:/[\u0054\u24C9\uFF34\u1E6A\u0164\u1E6C\u021A\u0162\u1E70\u1E6E\u0166\u01AC\u01AE\u023E\uA786]/g},{base:"TZ",letters:/[\uA728]/g},{base:"U",letters:/[\u0055\u24CA\uFF35\u00D9\u00DA\u00DB\u0168\u1E78\u016A\u1E7A\u016C\u00DC\u01DB\u01D7\u01D5\u01D9\u1EE6\u016E\u0170\u01D3\u0214\u0216\u01AF\u1EEA\u1EE8\u1EEE\u1EEC\u1EF0\u1EE4\u1E72\u0172\u1E76\u1E74\u0244]/g},{base:"V",letters:/[\u0056\u24CB\uFF36\u1E7C\u1E7E\u01B2\uA75E\u0245]/g},{base:"VY",letters:/[\uA760]/g},{base:"W",letters:/[\u0057\u24CC\uFF37\u1E80\u1E82\u0174\u1E86\u1E84\u1E88\u2C72]/g},{base:"X",letters:/[\u0058\u24CD\uFF38\u1E8A\u1E8C]/g},{base:"Y",letters:/[\u0059\u24CE\uFF39\u1EF2\u00DD\u0176\u1EF8\u0232\u1E8E\u0178\u1EF6\u1EF4\u01B3\u024E\u1EFE]/g},{base:"Z",letters:/[\u005A\u24CF\uFF3A\u0179\u1E90\u017B\u017D\u1E92\u1E94\u01B5\u0224\u2C7F\u2C6B\uA762]/g},{base:"a",letters:/[\u0061\u24D0\uFF41\u1E9A\u00E0\u00E1\u00E2\u1EA7\u1EA5\u1EAB\u1EA9\u00E3\u0101\u0103\u1EB1\u1EAF\u1EB5\u1EB3\u0227\u01E1\u00E4\u01DF\u1EA3\u00E5\u01FB\u01CE\u0201\u0203\u1EA1\u1EAD\u1EB7\u1E01\u0105\u2C65\u0250]/g},{base:"aa",letters:/[\uA733]/g},{base:"ae",letters:/[\u00E6\u01FD\u01E3]/g},{base:"ao",letters:/[\uA735]/g},{base:"au",letters:/[\uA737]/g},{base:"av",letters:/[\uA739\uA73B]/g},{base:"ay",letters:/[\uA73D]/g},{base:"b",letters:/[\u0062\u24D1\uFF42\u1E03\u1E05\u1E07\u0180\u0183\u0253]/g},{base:"c",letters:/[\u0063\u24D2\uFF43\u0107\u0109\u010B\u010D\u00E7\u1E09\u0188\u023C\uA73F\u2184]/g},{base:"d",letters:/[\u0064\u24D3\uFF44\u1E0B\u010F\u1E0D\u1E11\u1E13\u1E0F\u0111\u018C\u0256\u0257\uA77A]/g},{base:"dz",letters:/[\u01F3\u01C6]/g},{base:"e",letters:/[\u0065\u24D4\uFF45\u00E8\u00E9\u00EA\u1EC1\u1EBF\u1EC5\u1EC3\u1EBD\u0113\u1E15\u1E17\u0115\u0117\u00EB\u1EBB\u011B\u0205\u0207\u1EB9\u1EC7\u0229\u1E1D\u0119\u1E19\u1E1B\u0247\u025B\u01DD]/g},{base:"f",letters:/[\u0066\u24D5\uFF46\u1E1F\u0192\uA77C]/g},{base:"g",letters:/[\u0067\u24D6\uFF47\u01F5\u011D\u1E21\u011F\u0121\u01E7\u0123\u01E5\u0260\uA7A1\u1D79\uA77F]/g},{base:"h",letters:/[\u0068\u24D7\uFF48\u0125\u1E23\u1E27\u021F\u1E25\u1E29\u1E2B\u1E96\u0127\u2C68\u2C76\u0265]/g},{base:"hv",letters:/[\u0195]/g},{base:"i",letters:/[\u0069\u24D8\uFF49\u00EC\u00ED\u00EE\u0129\u012B\u012D\u00EF\u1E2F\u1EC9\u01D0\u0209\u020B\u1ECB\u012F\u1E2D\u0268\u0131]/g},{base:"j",letters:/[\u006A\u24D9\uFF4A\u0135\u01F0\u0249]/g},{base:"k",letters:/[\u006B\u24DA\uFF4B\u1E31\u01E9\u1E33\u0137\u1E35\u0199\u2C6A\uA741\uA743\uA745\uA7A3]/g},{base:"l",letters:/[\u006C\u24DB\uFF4C\u0140\u013A\u013E\u1E37\u1E39\u013C\u1E3D\u1E3B\u017F\u0142\u019A\u026B\u2C61\uA749\uA781\uA747]/g},{base:"lj",letters:/[\u01C9]/g},{base:"m",letters:/[\u006D\u24DC\uFF4D\u1E3F\u1E41\u1E43\u0271\u026F]/g},{base:"n",letters:/[\u006E\u24DD\uFF4E\u01F9\u0144\u00F1\u1E45\u0148\u1E47\u0146\u1E4B\u1E49\u019E\u0272\u0149\uA791\uA7A5]/g},{base:"nj",letters:/[\u01CC]/g},{base:"o",letters:/[\u006F\u24DE\uFF4F\u00F2\u00F3\u00F4\u1ED3\u1ED1\u1ED7\u1ED5\u00F5\u1E4D\u022D\u1E4F\u014D\u1E51\u1E53\u014F\u022F\u0231\u00F6\u022B\u1ECF\u0151\u01D2\u020D\u020F\u01A1\u1EDD\u1EDB\u1EE1\u1EDF\u1EE3\u1ECD\u1ED9\u01EB\u01ED\u00F8\u01FF\u0254\uA74B\uA74D\u0275]/g},{base:"oi",letters:/[\u01A3]/g},{base:"ou",letters:/[\u0223]/g},{base:"oo",letters:/[\uA74F]/g},{base:"p",letters:/[\u0070\u24DF\uFF50\u1E55\u1E57\u01A5\u1D7D\uA751\uA753\uA755]/g},{base:"q",letters:/[\u0071\u24E0\uFF51\u024B\uA757\uA759]/g},{base:"r",letters:/[\u0072\u24E1\uFF52\u0155\u1E59\u0159\u0211\u0213\u1E5B\u1E5D\u0157\u1E5F\u024D\u027D\uA75B\uA7A7\uA783]/g},{base:"s",letters:/[\u0073\u24E2\uFF53\u00DF\u015B\u1E65\u015D\u1E61\u0161\u1E67\u1E63\u1E69\u0219\u015F\u023F\uA7A9\uA785\u1E9B]/g},{base:"t",letters:/[\u0074\u24E3\uFF54\u1E6B\u1E97\u0165\u1E6D\u021B\u0163\u1E71\u1E6F\u0167\u01AD\u0288\u2C66\uA787]/g},{base:"tz",letters:/[\uA729]/g},{base:"u",letters:/[\u0075\u24E4\uFF55\u00F9\u00FA\u00FB\u0169\u1E79\u016B\u1E7B\u016D\u00FC\u01DC\u01D8\u01D6\u01DA\u1EE7\u016F\u0171\u01D4\u0215\u0217\u01B0\u1EEB\u1EE9\u1EEF\u1EED\u1EF1\u1EE5\u1E73\u0173\u1E77\u1E75\u0289]/g},{base:"v",letters:/[\u0076\u24E5\uFF56\u1E7D\u1E7F\u028B\uA75F\u028C]/g},{base:"vy",letters:/[\uA761]/g},{base:"w",letters:/[\u0077\u24E6\uFF57\u1E81\u1E83\u0175\u1E87\u1E85\u1E98\u1E89\u2C73]/g},{base:"x",letters:/[\u0078\u24E7\uFF58\u1E8B\u1E8D]/g},{base:"y",letters:/[\u0079\u24E8\uFF59\u1EF3\u00FD\u0177\u1EF9\u0233\u1E8F\u00FF\u1EF7\u1E99\u1EF5\u01B4\u024F\u1EFF]/g},{base:"z",letters:/[\u007A\u24E9\uFF5A\u017A\u1E91\u017C\u017E\u1E93\u1E95\u01B6\u0225\u0240\u2C6C\uA763]/g}];e.exports=function(e){for(var t=0;t1)e(n.filter(function(e){return e!==d.EVERY}));else{var r=n.indexOf(d.EVERY);e(-1!==r?[d.EVERY]:n)}}},i=n,u(r,i)}return i(t,e),c(t,[{key:"render",value:function(){var e=this,t=this.props,n=t.styleNameFactory,r=t.children,o=this.state.activeComponent;return f.default.createElement("div",{style:{position:"relative"}},f.default.createElement("label",n("label"),"On:"),f.default.createElement("div",n("row","items-end"),p.Children.map(r,function(t){var r=t.props,u=r.value,i=r.onChange,s=t.type.getOptions;return f.default.createElement(h.If,{condition:t.type.className===o},f.default.createElement(h.Then,null,f.default.createElement("div",n("input"),f.default.createElement(g.default,{style:{minWidth:120},value:u,options:s(),multi:!0,autosize:!0,onChange:e.onChange(i)}))))})),f.default.createElement("div",l({style:{position:"absolute"}},n("link")),f.default.createElement("select",{onChange:this.setActiveComponent},f.default.createElement("option",{value:E.DayOfWeek.className},"day of week"),f.default.createElement("option",{value:E.DayOfMonth.className},"day of month"),f.default.createElement("option",{value:E.Month.className},"month"))))}}]),t}(p.PureComponent),s.defaultProps={children:null},a);t.default=O},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(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}function u(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)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i,s,a=function(){function e(e,t){for(var n=0;n-1)||n.indexOf(",")>-1||r.StringUtilities.containsAny(o,e.specialCharacters))if(o.indexOf(",")>-1&&-1==o.indexOf("-")&&!r.StringUtilities.containsAny(n,e.specialCharacters)){var i=o.split(",");u+=this.i18n.at();for(var s=0;s0&&(u+=", "),u+=l,u.length>0&&(u+=", "),u+=c}else{var p=n.split("-");u+=r.StringUtilities.format(this.i18n.everyMinutebetweenX0AndX1(),this.formatTime(o,p[0],""),this.formatTime(o,p[1],""))}else u+=this.i18n.atSpace()+this.formatTime(o,n,t);return u},e.prototype.getSecondsDescription=function(){var e=this;return this.getSegmentDescription(this.expressionParts[0],this.i18n.everysecond(),function(e){return e},function(t){return r.StringUtilities.format(e.i18n.everyX0Seconds(),t)},function(t){return e.i18n.secondsX0ThroughX1PastTheMinute()},function(t){return"0"==t?"":parseInt(t)<20?e.i18n.atX0SecondsPastTheMinute():e.i18n.atX0SecondsPastTheMinuteGt20()||e.i18n.atX0SecondsPastTheMinute()})},e.prototype.getMinutesDescription=function(){var e=this;return this.getSegmentDescription(this.expressionParts[1],this.i18n.everyMinute(),function(e){return e},function(t){return r.StringUtilities.format(e.i18n.everyX0Minutes(),t)},function(t){return e.i18n.minutesX0ThroughX1PastTheHour()},function(t){try{return"0"==t?"":parseInt(t)<20?e.i18n.atX0MinutesPastTheHour():e.i18n.atX0MinutesPastTheHourGt20()||e.i18n.atX0MinutesPastTheHour()}catch(t){return e.i18n.atX0MinutesPastTheHour()}})},e.prototype.getHoursDescription=function(){var e=this,t=this.expressionParts[2];return this.getSegmentDescription(t,this.i18n.everyHour(),function(t){return e.formatTime(t,"0","")},function(t){return r.StringUtilities.format(e.i18n.everyX0Hours(),t)},function(t){return e.i18n.betweenX0AndX1()},function(t){return e.i18n.atX0()})},e.prototype.getDayOfWeekDescription=function(){var e=this,t=this.i18n.daysOfTheWeek();return"*"==this.expressionParts[5]&&"*"!=this.expressionParts[3]?"":this.getSegmentDescription(this.expressionParts[5],this.i18n.commaEveryDay(),function(e){var n=e;return e.indexOf("#")>-1?n=e.substr(0,e.indexOf("#")):e.indexOf("L")>-1&&(n=n.replace("L","")),t[parseInt(n)]},function(t){return r.StringUtilities.format(e.i18n.commaEveryX0daysOfTheWeek(),t)},function(t){return e.i18n.commaX0ThroughX1()},function(t){var n=null;if(t.indexOf("#")>-1){var r=t.substring(t.indexOf("#")+1),o=null;switch(r){case"1":o=e.i18n.first();break;case"2":o=e.i18n.second();break;case"3":o=e.i18n.third();break;case"4":o=e.i18n.forth();break;case"5":o=e.i18n.fifth()}n=e.i18n.commaOnThe()+o+e.i18n.spaceX0OfTheMonth()}else n=t.indexOf("L")>-1?e.i18n.commaOnTheLastX0OfTheMonth():e.i18n.commaOnlyOnX0();return n})},e.prototype.getMonthDescription=function(){var e=this,t=this.i18n.monthsOfTheYear();return this.getSegmentDescription(this.expressionParts[4],"",function(e){return t[parseInt(e)-1]},function(t){return r.StringUtilities.format(e.i18n.commaEveryX0Months(),t)},function(t){return e.i18n.commaMonthX0ThroughMonthX1()||e.i18n.commaX0ThroughX1()},function(t){return e.i18n.commaOnlyInX0()})},e.prototype.getDayOfMonthDescription=function(){var e=this,t=null,n=this.expressionParts[3];switch(n){case"L":t=this.i18n.commaOnTheLastDayOfTheMonth();break;case"WL":case"LW":t=this.i18n.commaOnTheLastWeekdayOfTheMonth();break;default:var o=n.match(/(\d{1,2}W)|(W\d{1,2})/);if(o){var u=parseInt(o[0].replace("W","")),i=1==u?this.i18n.firstWeekday():r.StringUtilities.format(this.i18n.weekdayNearestDayX0(),u.toString());t=r.StringUtilities.format(this.i18n.commaOnTheX0OfTheMonth(),i);break}t=this.getSegmentDescription(n,this.i18n.commaEveryDay(),function(e){return e},function(t){return"1"==t?e.i18n.commaEveryDay():e.i18n.commaEveryX0Days()},function(t){return e.i18n.commaBetweenDayX0AndX1OfTheMonth()},function(t){return e.i18n.commaOnDayX0OfTheMonth()})}return t},e.prototype.getYearDescription=function(){var e=this;return this.getSegmentDescription(this.expressionParts[6],"",function(e){return/^\d+$/.test(e)?new Date(parseInt(e),1).getFullYear().toString():e},function(t){return r.StringUtilities.format(e.i18n.commaEveryX0Years(),t)},function(t){return e.i18n.commaYearX0ThroughYearX1()||e.i18n.commaX0ThroughX1()},function(t){return e.i18n.commaOnlyInX0()})},e.prototype.getSegmentDescription=function(e,t,n,o,u,i){var s=this,a=null;if(e)if("*"===e)a=t;else if(r.StringUtilities.containsAny(e,["/","-",","]))if(e.indexOf("/")>-1){var l=e.split("/");if(a=r.StringUtilities.format(o(l[1]),n(l[1])),l[0].indexOf("-")>-1){var c=this.generateBetweenSegmentDescription(l[0],u,n);0!=c.indexOf(", ")&&(a+=", "),a+=c}else if(!r.StringUtilities.containsAny(l[0],["*",","])){var p=r.StringUtilities.format(i(l[0]),n(l[0]));p=p.replace(", ",""),a+=r.StringUtilities.format(this.i18n.commaStartingX0(),p)}}else if(e.indexOf(",")>-1){for(var l=e.split(","),f="",h=0;h0&&l.length>2&&(f+=",",h0&&l.length>1&&(h==l.length-1||2==l.length)&&(f+=this.i18n.spaceAndSpace()),l[h].indexOf("-")>-1){var c=this.generateBetweenSegmentDescription(l[h],function(e){return s.i18n.commaX0ThroughX1()},n);c=c.replace(", ",""),f+=c}else f+=n(l[h]);a=r.StringUtilities.format(i(e),f)}else e.indexOf("-")>-1&&(a=this.generateBetweenSegmentDescription(e,u,n));else a=r.StringUtilities.format(i(e),n(e));else a="";return a},e.prototype.generateBetweenSegmentDescription=function(e,t,n){var o="",u=e.split("-"),i=n(u[0]),s=n(u[1]);s=s.replace(":00",":59");var a=t(e);return o+=r.StringUtilities.format(a,i,s)},e.prototype.formatTime=function(e,t,n){var r=parseInt(e),o="";this.options.use24HourTimeFormat||(o=r>=12?" PM":" AM",r>12&&(r-=12));var u=t,i="";return n&&(i=":"+("00"+n).substring(n.length)),("00"+r.toString()).substring(r.toString().length)+":"+("00"+u.toString()).substring(u.toString().length)+i+o},e.prototype.transformVerbosity=function(e,t){return t||(e=e.replace(new RegExp(this.i18n.commaEveryMinute(),"g"),""),e=e.replace(new RegExp(this.i18n.commaEveryHour(),"g"),""),e=e.replace(new RegExp(this.i18n.commaEveryDay(),"g"),"")),e},e}();u.locales={},t.ExpressionDescriptor=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){void 0===t&&(t=!0),this.expression=e,this.dayOfWeekStartIndexZero=t}return e.prototype.parse=function(){if(!this.expression)throw new Error("Expression is empty");var e=this.expression.trim().split(" ");if(e.length<5)throw new Error("Expression only has "+e.length+" parts. At least 5 part are required.");if(5==e.length)e.unshift(""),e.push("");else if(6==e.length)/\d{4}$/.test(e[5])?e.unshift(""):e.push("");else if(e.length>7)throw new Error("Expression has "+e.length+" parts; too many!");return this.normalizeExpression(e),e},e.prototype.normalizeExpression=function(e){var t=this;if(e[3]=e[3].replace("?","*"),e[5]=e[5].replace("?","*"),0==e[0].indexOf("0/")&&(e[0]=e[0].replace("0/","*/")),0==e[1].indexOf("0/")&&(e[1]=e[1].replace("0/","*/")),0==e[2].indexOf("0/")&&(e[2]=e[2].replace("0/","*/")),0==e[3].indexOf("1/")&&(e[3]=e[3].replace("1/","*/")),0==e[4].indexOf("1/")&&(e[4]=e[4].replace("1/","*/")),0==e[5].indexOf("1/")&&(e[5]=e[5].replace("1/","*/")),0==e[6].indexOf("1/")&&(e[6]=e[6].replace("1/","*/")),e[5]=e[5].replace(/(^\d)|([^#\/\s]\d)/g,function(e){var n=e.replace(/\D/,""),r=n;return t.dayOfWeekStartIndexZero?"7"==n&&(r="0"):r=(parseInt(n)-1).toString(),e.replace(n,r)}),"?"==e[3]&&(e[3]="*"),e[3].indexOf("W")>-1&&(e[3].indexOf(",")>-1||e[3].indexOf("-")>-1))throw new Error("The 'W' character can be specified only when the day-of-month is a single day, not a range or list of days.");var n={SUN:0,MON:1,TUE:2,WED:3,THU:4,FRI:5,SAT:6};for(var r in n)e[5]=e[5].replace(new RegExp(r,"g"),n[r].toString());var o={JAN:1,FEB:2,MAR:3,APR:4,MAY:5,JUN:6,JUL:7,AUG:8,SEP:9,OCT:10,NOV:11,DEC:12};for(var u in o)e[4]=e[4].replace(new RegExp(u,"g"),o[u].toString());"0"==e[0]&&(e[0]="");for(var i=0;i-1&&!/^\*|\-|\,/.test(e[i])){var s=null;switch(i){case 4:s="12";break;case 5:s="6";break;case 6:s="9999";break;default:s=null}if(null!=s){var a=e[i].split("/");e[i]=a[0]+"-"+s+"/"+a[1]}}},e}();t.CronParser=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(){}return e.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},e.prototype.atX0MinutesPastTheHourGt20=function(){return null},e.prototype.commaMonthX0ThroughMonthX1=function(){return null},e.prototype.commaYearX0ThroughYearX1=function(){return null},e.prototype.use24HourTimeFormatByDefault=function(){return!1},e.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"An error occured when generating the expression description. Check the cron expression syntax."},e.prototype.everyMinute=function(){return"every minute"},e.prototype.everyHour=function(){return"every hour"},e.prototype.atSpace=function(){return"At "},e.prototype.everyMinutebetweenX0AndX1=function(){return"Every minute between %s and %s"},e.prototype.at=function(){return"At"},e.prototype.spaceAnd=function(){return" and"},e.prototype.everysecond=function(){return"every second"},e.prototype.everyX0Seconds=function(){return"every %s seconds"},e.prototype.secondsX0ThroughX1PastTheMinute=function(){return"seconds %s through %s past the minute"},e.prototype.atX0SecondsPastTheMinute=function(){return"at %s seconds past the minute"},e.prototype.everyX0Minutes=function(){return"every %s minutes"},e.prototype.minutesX0ThroughX1PastTheHour=function(){return"minutes %s through %s past the hour"},e.prototype.atX0MinutesPastTheHour=function(){return"at %s minutes past the hour"},e.prototype.everyX0Hours=function(){return"every %s hours"},e.prototype.betweenX0AndX1=function(){return"between %s and %s"},e.prototype.atX0=function(){return"at %s"},e.prototype.commaEveryDay=function(){return", every day"},e.prototype.commaEveryX0daysOfTheWeek=function(){return", every %s days of the week"},e.prototype.commaX0ThroughX1=function(){return", %s through %s"},e.prototype.first=function(){return"first"},e.prototype.second=function(){return"second"},e.prototype.third=function(){return"third"},e.prototype.forth=function(){return"forth"},e.prototype.fifth=function(){return"fifth"},e.prototype.commaOnThe=function(){return", on the "},e.prototype.spaceX0OfTheMonth=function(){return" %s of the month"},e.prototype.commaOnTheLastX0OfTheMonth=function(){return", on the last %s of the month"},e.prototype.commaOnlyOnX0=function(){return", only on %s"},e.prototype.commaEveryX0Months=function(){return", every %s months"},e.prototype.commaOnlyInX0=function(){return", only in %s"},e.prototype.commaOnTheLastDayOfTheMonth=function(){return", on the last day of the month"},e.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", on the last weekday of the month"},e.prototype.firstWeekday=function(){return"first weekday"},e.prototype.weekdayNearestDayX0=function(){return"weekday nearest day %s"},e.prototype.commaOnTheX0OfTheMonth=function(){return", on the %s of the month"},e.prototype.commaEveryX0Days=function(){return", every %s days"},e.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", between day %s and %s of the month"},e.prototype.commaOnDayX0OfTheMonth=function(){return", on day %s of the month"},e.prototype.spaceAndSpace=function(){return" and "},e.prototype.commaEveryMinute=function(){return", every minute"},e.prototype.commaEveryHour=function(){return", every hour"},e.prototype.commaEveryX0Years=function(){return", every %s years"},e.prototype.commaStartingX0=function(){return", starting %s"},e.prototype.daysOfTheWeek=function(){return["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},e.prototype.monthsOfTheYear=function(){return["January","February","March","April","May","June","July","August","September","October","November","December"]},e}();t.en=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(){}return e.format=function(e){for(var t=[],n=1;n-1})},e}();t.StringUtilities=r},,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(2),o=function(){function e(){}return e.prototype.load=function(e){e.en=new r.en},e}();t.enLocaleLoader=o},,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),o=n(5);r.ExpressionDescriptor.initialize(new o.enLocaleLoader),t.default=r.ExpressionDescriptor;var u=r.ExpressionDescriptor.toString;t.toString=u}])})},function(e,t){},function(e,t){},function(e,t,n){function r(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t0&&n(c)?t>1?r(c,t-1,n,i,s):o(s,c):i||(s[s.length]=c)}return s}var o=n(59),u=n(89);e.exports=r},function(e,t,n){function r(e,t){t=o(t,e);for(var n=0,r=t.length;null!=e&&n-1}var o=n(8);e.exports=r},function(e,t,n){function r(e,t){var n=this.__data__,r=o(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var o=n(8);e.exports=r},function(e,t,n){function r(){this.size=0,this.__data__={hash:new o,map:new(i||u),string:new o}}var o=n(53),u=n(54),i=n(55);e.exports=r},function(e,t,n){function r(e){var t=o(this,e).delete(e);return this.size-=t?1:0,t}var o=n(11);e.exports=r},function(e,t,n){function r(e){return o(this,e).get(e)}var o=n(11);e.exports=r},function(e,t,n){function r(e){return o(this,e).has(e)}var o=n(11);e.exports=r},function(e,t,n){function r(e,t){var n=o(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var o=n(11);e.exports=r},function(e,t,n){function r(e){var t=o(e,function(e){return n.size===u&&n.clear(),e}),n=t.cache;return t}var o=n(122),u=500;e.exports=r},function(e,t,n){var r=n(109),o=r(Object.keys,Object);e.exports=o},function(e,t,n){(function(e){var r=n(32),o="object"==typeof t&&t&&!t.nodeType&&t,u=o&&"object"==typeof e&&e&&!e.nodeType&&e,i=u&&u.exports===o,s=i&&r.process,a=function(){try{return s&&s.binding&&s.binding("util")}catch(e){}}();e.exports=a}).call(t,n(40)(e))},function(e,t){function n(e){return o.call(e)}var r=Object.prototype,o=r.toString;e.exports=n},function(e,t){function n(e,t){return function(n){return e(t(n))}}e.exports=n},function(e,t,n){function r(e,t,n){return t=u(void 0===t?e.length-1:t,0),function(){for(var r=arguments,i=-1,s=u(r.length-t,0),a=Array(s);++i0){if(++t>=r)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var r=800,o=16,u=Date.now;e.exports=n},function(e,t,n){var r=n(105),o=/^\./,u=r(function(e){var t=[];return o.test(e)&&t.push(""),e.replace(/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,function(e,n,r,o){t.push(r?o.replace(/\\(\\)?/g,"$1"):n||e)}),t});e.exports=u},function(e,t){function n(e){if(null!=e){try{return o.call(e)}catch(e){}try{return e+""}catch(e){}}return""}var r=Function.prototype,o=r.toString;e.exports=n},function(e,t){function n(e){return function(){return e}}e.exports=n},function(e,t,n){function r(e){return(null==e?0:e.length)?o(e,1):[]}var o=n(62);e.exports=r},function(e,t,n){function r(e,t){return null!=e&&u(e,t,o)}var o=n(64),u=n(83);e.exports=r},function(e,t){function n(e){return e}e.exports=n},function(e,t,n){(function(e){var r=n(14),o=n(124),u="object"==typeof t&&t&&!t.nodeType&&t,i=u&&"object"==typeof e&&e&&!e.nodeType&&e,s=i&&i.exports===u,a=s?r.Buffer:void 0,l=a?a.isBuffer:void 0,c=l||o;e.exports=c}).call(t,n(40)(e))},function(e,t,n){var r=n(67),o=n(76),u=n(107),i=u&&u.isTypedArray,s=i?o(i):r;e.exports=s},function(e,t,n){function r(e){return i(e)?o(e):u(e)}var o=n(58),u=n(68),i=n(34);e.exports=r},function(e,t,n){function r(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError(u);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],u=n.cache;if(u.has(o))return u.get(o);var i=e.apply(this,r);return n.cache=u.set(o,i)||u,i};return n.cache=new(r.Cache||o),n}var o=n(56),u="Expected a function";r.Cache=o,e.exports=r},function(e,t,n){var r=n(69),o=n(80),u=o(function(e,t){return null==e?{}:r(e,t)});e.exports=u},function(e,t){function n(){return!1}e.exports=n},function(e,t,n){function r(e){if(!e)return 0===e?e:0;if((e=o(e))===u||e===-u){return(e<0?-1:1)*i}return e===e?e:0}var o=n(126),u=1/0,i=1.7976931348623157e308;e.exports=r},function(e,t,n){function r(e){if("number"==typeof e)return e;if(u(e))return i;if(o(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=o(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(s,"");var n=l.test(e);return n||c.test(e)?p(e.slice(2),n?2:8):a.test(e)?i:+e}var o=n(3),u=n(16),i=NaN,s=/^\s+|\s+$/g,a=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,c=/^0o[0-7]+$/i,p=parseInt;e.exports=r},function(e,t,n){function r(e){return null==e?"":o(e)}var o=n(75);e.exports=r},function(e,t,n){function r(e){return null==e?[]:o(e,u(e))}var o=n(77),u=n(121);e.exports=r},function(e,t,n){"use strict";function r(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}/* object-assign (c) Sindre Sorhus @license MIT */ -var o=Object.getOwnPropertySymbols,u=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,s=r(e),l=1;le.props.value.length&&e.clearOptions(),e.props.onChange(t)}};return n(s({},this.props,l,{isLoading:i,onInputChange:this._onInputChange}))}}]),t}(p.Component);t.default=E,E.propTypes=b,E.defaultProps=g,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){var t=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];return Object.keys(e).reduce(function(t,n){var r=e[n];return void 0!==r&&(t[n]=r),t},t)}var u=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function u(e){return h.default.createElement(y.default,e)}function i(e){var t=e.option,n=e.options,r=e.labelKey,o=e.valueKey;return 0===n.filter(function(e){return e[r]===t[r]||e[o]===t[o]}).length}function a(e){return!!e.label}function s(e){var t=e.label,n=e.labelKey,r=e.valueKey,o={};return o[r]=t,o[n]=t,o.className="Select-create-option-placeholder",o}function l(e){return'Create option "'+e+'"'}function c(e){switch(e.keyCode){case 9:case 13:case 188:return!0}return!1}var p=Object.assign||function(e){for(var t=1;te.props.value.length&&e.clearOptions(),e.props.onChange(t)}};return n(a({},this.props,l,{isLoading:i,onInputChange:this._onInputChange}))}}]),t}(p.Component);t.default=E,E.propTypes=b,E.defaultProps=g,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){var t=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];return Object.keys(e).reduce(function(t,n){var r=e[n];return void 0!==r&&(t[n]=r),t},t)}var u=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function u(e){return h.default.createElement(y.default,e)}function i(e){var t=e.option,n=e.options,r=e.labelKey,o=e.valueKey;return 0===n.filter(function(e){return e[r]===t[r]||e[o]===t[o]}).length}function s(e){return!!e.label}function a(e){var t=e.label,n=e.labelKey,r=e.valueKey,o={};return o[r]=t,o[n]=t,o.className="Select-create-option-placeholder",o}function l(e){return'Create option "'+e+'"'}function c(e){switch(e.keyCode){case 9:case 13:case 188:return!0}return!1}var p=Object.assign||function(e){for(var t=1;t { expect(wrapper.instance().presetComponent.state).toEqual({ minutes: ['5', '15', '25'], hours: '2', - dayOfWeek: '1-5', + dayOfWeek: ['1-5'], dayOfMonth: EVERY, month: EVERY, activeTime: MINUTES, @@ -48,15 +48,15 @@ describe('CronBuilder', () => { cronExpression={'25 17-21 4 2 6-7'} />); expect(wrapper.instance().presetComponent.state).toEqual({ - minutes: '25', + minutes: ['25'], hours: '17-21', hoursFrom: '17', hoursTo: '21', - dayOfWeek: '6-7', - dayOfMonth: '4', - month: '2', + dayOfWeek: ['6-7'], + dayOfMonth: ['4'], + month: ['2'], activeTime: MINUTES, - minutesMultiple: false, + minutesMultiple: true, hoursMultiple: false }); expect(wrapper.state().activeIndex).toEqual(1); @@ -78,9 +78,9 @@ describe('CronBuilder', () => { expect(wrapper.instance().presetComponent.state).toEqual({ minutes: '48', hours: '6', - dayOfWeek: '2', - dayOfMonth: '24', - month: '6', + dayOfWeek: ['2'], + dayOfMonth: ['24'], + month: ['6'], activeTime: MINUTES, minutesMultiple: true, hoursMultiple: true @@ -94,5 +94,98 @@ describe('CronBuilder', () => { />); wrapper.find('[data-action]').simulate('click'); expect(wrapper.find('[data-result]')).toHaveLength(0) + }); + + it('should should correctly parse single value when it is not every', () => { + const wrapper = mount(); + expect(wrapper.instance().presetComponent.state).toEqual({ + minutes: ['48'], + hours: ['6'], + dayOfWeek: ['2'], + dayOfMonth: ['24'], + month: ['6'], + activeTime: MINUTES, + minutesMultiple: true, + hoursMultiple: true + }); + }); + + it('frame tab should correctly parse multiple hours', () => { + const wrapper = mount(); + wrapper.find(Tab).at(1).simulate('click'); + expect(wrapper.instance().presetComponent.state).toEqual({ + minutes: ['48'], + hours: '6-18', + hoursFrom: '6', + hoursTo: '18', + dayOfWeek: ['2'], + dayOfMonth: ['24'], + month: ['6'], + activeTime: MINUTES, + minutesMultiple: true, + hoursMultiple: true + }); + }); + + it('frame tab should correctly parse single hours', () => { + const wrapper = mount(); + wrapper.find(Tab).at(1).simulate('click'); + expect(wrapper.instance().presetComponent.state).toEqual({ + minutes: ['48'], + hours: '6-18', + hoursFrom: '6', + hoursTo: '18', + dayOfWeek: ['2'], + dayOfMonth: ['24'], + month: ['6'], + activeTime: MINUTES, + minutesMultiple: true, + hoursMultiple: false + }); + }); + + it('periodically tab should parse range hours to single', () => { + const wrapper = mount(); + wrapper.find(Tab).at(0).simulate('click'); + expect(wrapper.instance().presetComponent.state).toEqual({ + minutes: ['48'], + hours: '12', + dayOfWeek: ['2'], + dayOfMonth: ['24'], + month: ['6'], + activeTime: MINUTES, + minutesMultiple: true, + hoursMultiple: false + }); + }); + + it('fixed time tab should parse range hours to single', () => { + const wrapper = mount(); + wrapper.find(Tab).at(2).simulate('click'); + expect(wrapper.instance().presetComponent.state).toEqual({ + minutes: '48', + hours: '12', + dayOfWeek: ['2'], + dayOfMonth: ['24'], + month: ['6'], + activeTime: MINUTES, + minutesMultiple: true, + hoursMultiple: true + }); }) }); diff --git a/src/components/FixedTimeTab.js b/src/components/FixedTimeTab.js index 19a74849..636deced 100644 --- a/src/components/FixedTimeTab.js +++ b/src/components/FixedTimeTab.js @@ -1,7 +1,7 @@ // @flow import React from 'react' -import {toOptions, addLeadingZeroToOption, defaultTo} from 'utils' +import {toOptions, addLeadingZeroToOption, defaultTo, ensureMultiple, rangeHoursToSingle} from 'utils' import range from 'lodash/range' import PresetTab from './PresetTab' import TimeInput from './components/TimeInput' @@ -14,9 +14,12 @@ const minutesOptions = toOptions(range(0, 60)).map(addLeadingZeroToOption); export default class FixedTimeTab extends PresetTab { constructor(props: PresetTabProps, ctx: Object) { super(props, ctx); - const {hours, minutes} = this.state; - this.state.hours = defaultTo(hours, '8'); - this.state.minutes = defaultTo(minutes, '45'); + let {hours, minutes} = this.state; + hours = ensureMultiple(hours, false); + hours = rangeHoursToSingle(hours); + minutes = ensureMultiple(minutes, false); + this.state.hours = defaultTo(String(hours), '8'); + this.state.minutes = defaultTo(String(minutes), '45'); this.state.minutesMultiple = true; this.state.hoursMultiple = true; } diff --git a/src/components/PeriodicallyFrameTab.js b/src/components/PeriodicallyFrameTab.js index cb9fd460..47a595d2 100644 --- a/src/components/PeriodicallyFrameTab.js +++ b/src/components/PeriodicallyFrameTab.js @@ -2,7 +2,7 @@ import React from 'react' import range from 'lodash/range' -import {toOptions, defaultTo} from 'utils' +import {toOptions, defaultTo, ensureMultiple} from 'utils' import type {Option} from 'types/Option' import PresetTab from './PresetTab' import MultipleSwitcher from './MultipleSwitcher' @@ -39,13 +39,21 @@ const timeInputProps = { } }; +const defaultHours = (hours: string, defaultValue: string) => { + const [fromDefault, toDefault] = defaultValue.split('-'); + const value = defaultTo(hours, defaultValue); + const [from, to] = value.split('-'); + return `${defaultTo(from, fromDefault)}-${defaultTo(to, toDefault)}` +}; + export default class PeriodicallyFrameTab extends PresetTab { constructor(props: PresetTabProps, ctx: Object) { super(props, ctx); const {state} = this; let {hours, minutes} = state; minutes = defaultTo(minutes, '6'); - hours = defaultTo(hours, '9-18'); + hours = ensureMultiple(hours, false); + hours = defaultHours(String(hours), '9-18'); const [hoursFrom, hoursTo] = hours.split('-'); this.state = { ...state, diff --git a/src/components/PeriodicallyTab.js b/src/components/PeriodicallyTab.js index 072ddcbc..444c28c6 100644 --- a/src/components/PeriodicallyTab.js +++ b/src/components/PeriodicallyTab.js @@ -3,13 +3,14 @@ import React from 'react' import {If, Then, Else} from 'react-if' import {MINUTES} from 'data/constants' -import {isMultiple, toggleDateType, toOptions} from 'utils' +import {isMultiple, toggleDateType, toOptions, rangeHoursToSingle} from 'utils' import range from 'lodash/range' import MultipleSwitcher from './MultipleSwitcher' import TimeInput from './components/TimeInput' import DateComponent, {DayOfWeek, DayOfMonth, Month} from './components/DateComponent' import PresetTab from './PresetTab' import type {PresetTabState} from './types/PresetTabState' +import type {PresetTabProps} from './types/PresetTabProps' const minutesOptions = toOptions(range(1, 60)); const hoursOptions = toOptions(range(0, 24)); @@ -19,6 +20,12 @@ const isMinutes = (activeTime: string) => activeTime === MINUTES; const timeInputProps = {style: {minWidth: 75}}; export default class PeriodicallyTab extends PresetTab { + constructor(props: PresetTabProps, ctx: Object) { + super(props, ctx); + const {hours} = this.state; + this.state.hours = rangeHoursToSingle(hours) + } + toggleActiveTime = () => { this.setState(({activeTime}: PresetTabState) => ({ diff --git a/src/stories/CronBuilder.stories.js b/src/stories/CronBuilder.stories.js index 0e6d69ad..feaff6c9 100644 --- a/src/stories/CronBuilder.stories.js +++ b/src/stories/CronBuilder.stories.js @@ -1,6 +1,20 @@ -import {storiesOf} from '@kadira/storybook' +import {storiesOf, action} from '@kadira/storybook' import React from 'react' import CronBuilder from '../CronBuilder' storiesOf('CronBuilder', module) - .add('default', () => ); \ No newline at end of file + .add('default', () => ) + .add('do not show result', () => ) + .add('with predefined expression', () => ) + .add('with predefined expression time frame', () => ); diff --git a/src/utils/index.js b/src/utils/index.js index 999593df..24730e8d 100644 --- a/src/utils/index.js +++ b/src/utils/index.js @@ -5,8 +5,7 @@ import type {CronExpression} from 'types/CronExpression' import head from 'lodash/head' import values from 'lodash/values' -import {MINUTES, HOURS} from 'data/constants' -import {EVERY} from "../data/constants"; +import {MINUTES, HOURS, EVERY} from 'data/constants' export const toggleMultiple = (value: any) => { if(value instanceof Array) { @@ -61,24 +60,45 @@ export const generateCronExpression = (expression: CronExpression) => { return values(expression).join(' ') }; -export const splitMultiple = (value: string) => { +export const splitMultiple = (value: string, field: ?string = undefined) => { if(value.includes(',')) { return value.split(',') } - return value + if(value.includes('/')) { + return value + } + if(value.includes('-') && field === HOURS) { + return value + } + if(value === EVERY) { + return value + } + return [value] }; -export const replaceEvery = (value: string) => value.replace('*/', ''); +export const replaceEvery = (value: any) => { + if(typeof value === 'string') { + return value.replace('*/', '') + } + return value +}; export const parseCronExpression = (expression: string) => { const [minutes, hours, dayOfMonth, month, dayOfWeek] = expression.split(' '); - return { - minutes: splitMultiple(replaceEvery(minutes)), - hours: splitMultiple(replaceEvery(hours)), + const defaultExpression = { + minutes: EVERY, + hours: EVERY, + dayOfMonth: EVERY, + month: EVERY, + dayOfWeek: EVERY + }; + return Object.assign(defaultExpression, { + minutes: replaceEvery(splitMultiple(minutes)), + hours: replaceEvery(splitMultiple(hours, HOURS)), dayOfMonth: splitMultiple(dayOfMonth), month: splitMultiple(month), dayOfWeek: splitMultiple(dayOfWeek) - } + }) }; export const addLeadingZero = (el: any) => `0${el}`.slice(-2); @@ -92,5 +112,13 @@ export const addLeadingZeroToOption = (option: Option) => { }; export const defaultTo = (item: string, defaultItem: string) => { - return item === EVERY ? defaultItem : item + return (item === EVERY || !item) ? defaultItem : item +}; + +export const rangeHoursToSingle = (hours: any) => { + if(hours instanceof Array) { + return hours + } + return hours.split('-')[0] }; +