/**
 * Minified by jsDelivr using Terser v5.39.0.
 * Original file: /npm/sdc-pomodoro@2.0.2/lib/index.js
 *
 * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
 */
"use strict";function _interopDefault(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(exports,"__esModule",{value:!0});var React=_interopDefault(require("react")),mobxReact=require("mobx-react"),sdcI18nReact=require("sdc-i18n-react"),mobx=require("mobx"),sdcReactBasics=require("sdc-react-basics");function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _extends(){return _extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},_extends.apply(this,arguments)}function _objectDestructuringEmpty(e){if(null==e)throw new TypeError("Cannot destructure undefined")}function _objectWithoutPropertiesLoose(e,t){if(null==e)return{};var o,r,n={},i=Object.keys(e);for(r=0;r<i.length;r++)o=i[r],t.indexOf(o)>=0||(n[o]=e[o]);return n}function _objectWithoutProperties(e,t){if(null==e)return{};var o,r,n=_objectWithoutPropertiesLoose(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)o=i[r],t.indexOf(o)>=0||Object.prototype.propertyIsEnumerable.call(e,o)&&(n[o]=e[o])}return n}function _initializerDefineProperty(e,t,o,r){o&&Object.defineProperty(e,t,{enumerable:o.enumerable,configurable:o.configurable,writable:o.writable,value:o.initializer?o.initializer.call(r):void 0})}function _applyDecoratedDescriptor(e,t,o,r,n){var i={};return Object.keys(r).forEach((function(e){i[e]=r[e]})),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=o.slice().reverse().reduce((function(o,r){return r(e,t,o)||o}),i),n&&void 0!==i.initializer&&(i.value=i.initializer?i.initializer.call(n):void 0,i.initializer=void 0),void 0===i.initializer&&(Object.defineProperty(e,t,i),i=null),i}var _class,_descriptor,_descriptor2,_descriptor3,_descriptor4,_descriptor5,_descriptor6,_descriptor7,_descriptor8,_descriptor9,_descriptor10,_descriptor11,_descriptor12,_descriptor13,_descriptor14,_descriptor15,_descriptor16,_temp,PomodoroControls=mobxReact.inject("pomodoroState")(mobxReact.observer((function(e){var t=e.pomodoroState;return React.createElement("div",{className:"pomodoro-controls"},React.createElement("i",{className:"fa fa-play"+(t.running||t.current.timeLeft<=0?" disabled":""),onClick:t.start}),React.createElement("i",{className:"fa fa-pause"+(t.running?"":" disabled"),onClick:t.pause}),React.createElement("i",{className:"fa fa-step-forward"+(t.running?"":" disabled"),onClick:t.advance}),"  ",React.createElement("i",{className:"fa fa-stop"+(t.running?"":" disabled"),onClick:t.stop}),React.createElement("i",{className:"fa fa-refresh"+(t.running?" disabled":""),onClick:t.reset({hard:!0})}),"  ",React.createElement("i",{className:"fa fa-cog"+(t.running?" disabled":""),onClick:t.toggleSettings}))}))),PomodoroState=(_temp=function e(){var t=this;_classCallCheck(this,e),_initializerDefineProperty(this,"durations",_descriptor,this),_initializerDefineProperty(this,"current",_descriptor2,this),_initializerDefineProperty(this,"settings",_descriptor3,this),_initializerDefineProperty(this,"planning",_descriptor4,this),_initializerDefineProperty(this,"running",_descriptor5,this),_initializerDefineProperty(this,"reference",_descriptor6,this),_initializerDefineProperty(this,"autoCycle",_descriptor7,this),_initializerDefineProperty(this,"mode",_descriptor8,this),_initializerDefineProperty(this,"update",_descriptor9,this),_initializerDefineProperty(this,"advance",_descriptor10,this),_initializerDefineProperty(this,"cycle",_descriptor11,this),_initializerDefineProperty(this,"start",_descriptor12,this),_initializerDefineProperty(this,"stop",_descriptor13,this),this.adjust=function(e,o){return mobx.action((function(){t.durations[e]=t.durations[e]+o}))},_initializerDefineProperty(this,"toggleSettings",_descriptor14,this),this.reset=function(e){var o=e.mode,r=e.hard;return mobx.action((function(){t.running||(t.mode=o||(t.planning?"plan":"work"),t.current={timeLeft:t.durations[t.mode],ticks:0,elapsed:0},r&&(t.durations.count=0),t.reference=(new Date).valueOf())}))},_initializerDefineProperty(this,"pause",_descriptor15,this),_initializerDefineProperty(this,"cont",_descriptor16,this),this.reset({hard:!0})()},_descriptor=_applyDecoratedDescriptor((_class=_temp).prototype,"durations",[mobx.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{plan:300,work:1200,short:300,pattern:4,count:0,long:900}}}),_descriptor2=_applyDecoratedDescriptor(_class.prototype,"current",[mobx.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),_descriptor3=_applyDecoratedDescriptor(_class.prototype,"settings",[mobx.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),_descriptor4=_applyDecoratedDescriptor(_class.prototype,"planning",[mobx.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),_descriptor5=_applyDecoratedDescriptor(_class.prototype,"running",[mobx.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),_descriptor6=_applyDecoratedDescriptor(_class.prototype,"reference",[mobx.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),_descriptor7=_applyDecoratedDescriptor(_class.prototype,"autoCycle",[mobx.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),_descriptor8=_applyDecoratedDescriptor(_class.prototype,"mode",[mobx.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),_descriptor9=_applyDecoratedDescriptor(_class.prototype,"update",[mobx.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(){var t=(new Date).valueOf()-e.reference,o=Math.floor(e.durations[e.mode]-t/1e3);e.current={timeLeft:o,ticks:9-Math.floor(t/100)%10,elapsed:t},o<=0&&0===e.current.ticks&&e.advance()}}}),_descriptor10=_applyDecoratedDescriptor(_class.prototype,"advance",[mobx.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(){e.pause(),e.autoCycle&&(e.cycle(),e.cont())}}}),_descriptor11=_applyDecoratedDescriptor(_class.prototype,"cycle",[mobx.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(){"plan"===e.mode?e.reset({mode:"work"})():"work"===e.mode?(e.durations.count=e.durations.count+1,e.durations.count<e.durations.pattern?e.reset({mode:"short"})():(e.durations.count=0,e.reset({mode:"long"})())):e.planning?e.reset({mode:"plan"})():e.reset({mode:"work"})()}}}),_descriptor12=_applyDecoratedDescriptor(_class.prototype,"start",[mobx.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(){!e.running&&e.current.timeLeft>0&&e.cont()}}}),_descriptor13=_applyDecoratedDescriptor(_class.prototype,"stop",[mobx.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(){e.running&&(e.pause(),e.reset({hard:!0})())}}}),_descriptor14=_applyDecoratedDescriptor(_class.prototype,"toggleSettings",[mobx.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(){e.settings=!e.settings}}}),_descriptor15=_applyDecoratedDescriptor(_class.prototype,"pause",[mobx.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(){e.running&&(e.running=!1,e.timer&&(clearInterval(e.timer),e.timer=null))}}}),_descriptor16=_applyDecoratedDescriptor(_class.prototype,"cont",[mobx.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(){e.running||(e.reference=(new Date).valueOf()-e.current.elapsed,e.timer=setInterval(e.update,100),e.running=!0,e.settings=!1)}}}),_class),pomodoroState=new PomodoroState,PomodoroPhase=mobxReact.observer((function(){return React.createElement("div",{className:"pomodoro-phase"},React.createElement(sdcI18nReact.Label,{value:"pomodoro.phase."+pomodoroState.mode}))})),PomodoroSequence=mobxReact.observer((function(e){_objectDestructuringEmpty(e);var t=pomodoroState.durations,o=t.plan,r=t.work,n=t.short,i=t.long,c=t.pattern,a=t.count,s=pomodoroState.planning?o:0,l=c*r+(c-1)*n+i+c*s,d=100*s/l+"%",p=100*r/l+"%",b=100*n/l+"%",m=100*i/l+"%";return React.createElement("div",{className:"pomodoro-sequence"},Array.apply(null,{length:c-1}).map(Number.call,Number).map((function(e){return React.createElement(React.Fragment,{key:e},React.createElement("span",{className:"plan"+(e===a&&"plan"===pomodoroState.mode?" active":""),style:{width:d}}),React.createElement("span",{className:"work"+(e===a&&"work"===pomodoroState.mode?" active":""),style:{width:p}}),React.createElement("span",{className:"short"+(e+1===a&&"short"===pomodoroState.mode?" active":""),style:{width:b}}))})),React.createElement("span",{className:"plan"+(c===a+1&&"plan"===pomodoroState.mode?" active":""),style:{width:d}}),React.createElement("span",{className:"work"+(c===a+1&&"work"===pomodoroState.mode?" active":""),style:{width:p}}),React.createElement("span",{className:"long"+("long"===pomodoroState.mode?" active":""),style:{width:m}}))})),PomodoroConfig=mobxReact.inject("pomodoroState")(mobxReact.observer((function(e){var t=e.pomodoroState,o=e.field,r=e.step,n=void 0===r?300:r;return t.settings?React.createElement("div",{className:"time-settings"},React.createElement("span",{className:"settings-label"},React.createElement(sdcI18nReact.Label,{value:"pomodoro.config."+o})),React.createElement("span",{className:"settings-input"},React.createElement("i",{className:"fa fa-plus",onClick:t.adjust(o,n)}),React.createElement("i",{className:"fa fa-minus",onClick:t.adjust(o,-n)}),React.createElement(sdcReactBasics.TimeFormatter,{time:t.durations[o]}))):null}))),PomodoroPattern=mobxReact.inject("pomodoroState")(mobxReact.observer((function(e){var t=e.pomodoroState,o=e.field,r=e.step,n=void 0===r?1:r;return t.settings?React.createElement("div",{className:"time-settings"},React.createElement("span",{className:"settings-label"},React.createElement(sdcI18nReact.Label,{value:"pomodoro.config."+o})),React.createElement("span",{className:"settings-input"},React.createElement("i",{className:"fa fa-plus",onClick:t.adjust(o,n)}),React.createElement("i",{className:"fa fa-minus",onClick:t.adjust(o,-n)}),React.createElement("div",null,t.durations[o]))):null}))),PomodoroSettings=mobxReact.observer((function(){return pomodoroState.settings?React.createElement("div",{className:"pomodoro-settings"},React.createElement(PomodoroConfig,{field:"plan",step:60}),React.createElement(PomodoroConfig,{field:"work"}),React.createElement(PomodoroConfig,{field:"short",step:60}),React.createElement(PomodoroConfig,{field:"long"}),React.createElement(PomodoroPattern,{field:"pattern"})):null}));function styleInject(e,t){void 0===t&&(t={});var o=t.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css","top"===o&&r.firstChild?r.insertBefore(n,r.firstChild):r.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}}var css='.sdc-pomodoro-panel {\n  border: solid 1px #ccc;\n  width: 250px;\n  font-family: "Arial Rounded MT Bold", "Helvetica Rounded", Arial, sans-serif; }\n  .sdc-pomodoro-panel .pomodoro-sequence {\n    border-bottom: solid 1px #ccc;\n    line-height: 0; }\n    .sdc-pomodoro-panel .pomodoro-sequence span {\n      display: inline-block;\n      height: 12px; }\n    .sdc-pomodoro-panel .pomodoro-sequence .plan {\n      background-color: #ccf; }\n      .sdc-pomodoro-panel .pomodoro-sequence .plan.active {\n        background-color: #99c; }\n    .sdc-pomodoro-panel .pomodoro-sequence .work {\n      background-color: #cfc; }\n      .sdc-pomodoro-panel .pomodoro-sequence .work.active {\n        background-color: #9c9; }\n    .sdc-pomodoro-panel .pomodoro-sequence .short {\n      background-color: #fec; }\n      .sdc-pomodoro-panel .pomodoro-sequence .short.active {\n        background-color: #cb9; }\n    .sdc-pomodoro-panel .pomodoro-sequence .long {\n      background-color: #fcc; }\n      .sdc-pomodoro-panel .pomodoro-sequence .long.active {\n        background-color: #c99; }\n  .sdc-pomodoro-panel .pomodoro-phase {\n    width: 100%;\n    text-align: center;\n    border-bottom: solid 1px #ccc; }\n  .sdc-pomodoro-panel .pomodoro-settings {\n    box-shadow: 0 0 4px 1px #999;\n    background-color: #fffaf5;\n    z-index: 100; }\n  .sdc-pomodoro-panel .pomodoro-controls {\n    font-size: 24px;\n    width: 100%;\n    text-align: center;\n    margin-top: 4px;\n    margin-bottom: 8px; }\n    .sdc-pomodoro-panel .pomodoro-controls i {\n      padding: 0 4px;\n      color: #666;\n      opacity: 0.5; }\n      .sdc-pomodoro-panel .pomodoro-controls i.disabled {\n        opacity: 0.25; }\n        .sdc-pomodoro-panel .pomodoro-controls i.disabled:hover {\n          opacity: 0.25; }\n      .sdc-pomodoro-panel .pomodoro-controls i.fa-play {\n        color: #090; }\n      .sdc-pomodoro-panel .pomodoro-controls i.fa-step-forward {\n        color: #900; }\n      .sdc-pomodoro-panel .pomodoro-controls i.fa-pause {\n        color: #880; }\n      .sdc-pomodoro-panel .pomodoro-controls i.fa-stop {\n        color: #900; }\n      .sdc-pomodoro-panel .pomodoro-controls i.fa-refresh {\n        color: #900; }\n      .sdc-pomodoro-panel .pomodoro-controls i:hover {\n        opacity: 1.0; }\n  .sdc-pomodoro-panel .time-settings {\n    text-align: center; }\n    .sdc-pomodoro-panel .time-settings .settings-label {\n      display: inline-block;\n      width: 40%; }\n    .sdc-pomodoro-panel .time-settings .settings-input {\n      display: inline-block;\n      width: 50%;\n      border: solid 1px #ccc;\n      margin-bottom: 2px;\n      padding: 2px 4px; }\n      .sdc-pomodoro-panel .time-settings .settings-input div {\n        margin-top: 2px; }\n      .sdc-pomodoro-panel .time-settings .settings-input .fa {\n        margin: 4px; }\n      .sdc-pomodoro-panel .time-settings .settings-input .fa-plus {\n        float: right;\n        color: #090; }\n      .sdc-pomodoro-panel .time-settings .settings-input .fa-minus {\n        float: left;\n        color: #900; }\n  .sdc-pomodoro-panel .time-display {\n    display: inline-block;\n    width: 3rem;\n    padding: 4px 8px; }\n    .sdc-pomodoro-panel .time-display.pomodoro-time {\n      font-size: 72px;\n      text-align: center;\n      width: 100%;\n      padding: 0;\n      border-bottom: solid 3px #ccc; }\n      .sdc-pomodoro-panel .time-display.pomodoro-time .dimmed {\n        opacity: 0.25; }\n      .sdc-pomodoro-panel .time-display.pomodoro-time .ticks {\n        font-size: 18px; }\n      .sdc-pomodoro-panel .time-display.pomodoro-time.plan {\n        background-color: #eef;\n        border-color: #99c; }\n      .sdc-pomodoro-panel .time-display.pomodoro-time.work {\n        background-color: #efe;\n        border-color: #9c9; }\n      .sdc-pomodoro-panel .time-display.pomodoro-time.short {\n        background-color: #ffe;\n        border-color: #cc9; }\n      .sdc-pomodoro-panel .time-display.pomodoro-time.long {\n        background-color: #fee;\n        border-color: #c99; }\n\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInBhbmVsLnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7RUFDRSxzQkFBc0I7RUFDdEIsWUFBWTtFQUNaLDRFQUE0RSxFQUFFO0VBQzlFO0lBQ0UsNkJBQTZCO0lBQzdCLGNBQWMsRUFBRTtJQUNoQjtNQUNFLHFCQUFxQjtNQUNyQixZQUFZLEVBQUU7SUFDaEI7TUFDRSxzQkFBc0IsRUFBRTtNQUN4QjtRQUNFLHNCQUFzQixFQUFFO0lBQzVCO01BQ0Usc0JBQXNCLEVBQUU7TUFDeEI7UUFDRSxzQkFBc0IsRUFBRTtJQUM1QjtNQUNFLHNCQUFzQixFQUFFO01BQ3hCO1FBQ0Usc0JBQXNCLEVBQUU7SUFDNUI7TUFDRSxzQkFBc0IsRUFBRTtNQUN4QjtRQUNFLHNCQUFzQixFQUFFO0VBQzlCO0lBQ0UsV0FBVztJQUNYLGtCQUFrQjtJQUNsQiw2QkFBNkIsRUFBRTtFQUNqQztJQUNFLDRCQUE0QjtJQUM1Qix5QkFBeUI7SUFDekIsWUFBWSxFQUFFO0VBQ2hCO0lBQ0UsZUFBZTtJQUNmLFdBQVc7SUFDWCxrQkFBa0I7SUFDbEIsZUFBZTtJQUNmLGtCQUFrQixFQUFFO0lBQ3BCO01BQ0UsY0FBYztNQUNkLFdBQVc7TUFDWCxZQUFZLEVBQUU7TUFDZDtRQUNFLGFBQWEsRUFBRTtRQUNmO1VBQ0UsYUFBYSxFQUFFO01BQ25C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aW1lLWRpc3BsYXkucG9tb2Rvcm8tdGltZSAuZGltbWVkIHtcbiAgICAgICAgb3BhY2l0eTogMC4yNTsgfVxuICAgICAgLnNkYy1wb21vZG9yby1wYW5lbCAudGltZS1kaXNwbGF5LnBvbW9kb3JvLXRpbWUgLnRpY2tzIHtcbiAgICAgICAgZm9udC1zaXplOiAxOHB4OyB9XG4gICAgICAuc2RjLXBvbW9kb3JvLXBhbmVsIC50aW1lLWRpc3BsYXkucG9tb2Rvcm8tdGltZS5wbGFuIHtcbiAgICAgICAgYmFja2dyb3VuZC1jb2xvcjogI2VlZjtcbiAgICAgICAgYm9yZGVyLWNvbG9yOiAjOTljOyB9XG4gICAgICAuc2RjLXBvbW9kb3JvLXBhbmVsIC50aW1lLWRpc3BsYXkucG9tb2Rvcm8tdGltZS53b3JrIHtcbiAgICAgICAgYmFja2dyb3VuZC1jb2xvcjogI2VmZTtcbiAgICAgICAgYm9yZGVyLWNvbG9yOiAjOWM5OyB9XG4gICAgICAuc2RjLXBvbW9kb3JvLXBhbmVsIC50aW1lLWRpc3BsYXkucG9tb2Rvcm8tdGltZS5zaG9ydCB7XG4gICAgICAgIGJhY2tncm91bmQtY29sb3I6ICNmZmU7XG4gICAgICAgIGJvcmRlci1jb2xvcjogI2NjOTsgfVxuICAgICAgLnNkYy1wb21vZG9yby1wYW5lbCAudGltZS1kaXNwbGF5LnBvbW9kb3JvLXRpbWUubG9uZyB7XG4gICAgICAgIGJhY2tncm91bmQtY29sb3I6ICNmZWU7XG4gICAgICAgIGJvcmRlci1jb2xvcjogI2M5OTsgfVxuIl19 */';styleInject(css);var PomodoroTime=mobxReact.observer((function(e){var t=e.value,o=e.className,r=void 0===o?"":o,n=e.blink,i=e.ticks,c=_objectWithoutProperties(e,["value","className","blink","ticks"]),a=Math.floor(t/60),s=("0"+t%60).slice(-2);return React.createElement("span",_extends({className:"time-display "+r},c),a,React.createElement("span",{className:n&&i>0&&i<6?"dimmed":""},":"),s,void 0!==i&&React.createElement("span",{className:"ticks"},".",i))})),PomodoroPanel=mobxReact.inject("pomodoroState")(mobxReact.observer((function(e){var t=e.pomodoroState,o=_objectWithoutProperties(e,["pomodoroState"]);return React.createElement("div",_extends({className:"sdc-pomodoro-panel"},o),React.createElement(PomodoroTime,{value:t.current.timeLeft,ticks:t.current.ticks,className:"pomodoro-time "+t.mode,blink:!0}),React.createElement(PomodoroSequence,null),React.createElement(PomodoroPhase,null),React.createElement(PomodoroControls,null),React.createElement(PomodoroSettings,null))})));exports.PomodoroPanel=PomodoroPanel,exports.PomodoroTime=PomodoroTime,exports.pomodoroState=pomodoroState;
//# sourceMappingURL=/sm/2992064b7b76effefeb491675bed29f1adc753f4b9fda624469b4e122364103c.map