Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

update

  • Loading branch information...
commit 4217dfe62a59ee0fa6de8cbd78de0489e9bb8da6 1 parent 2fe0eab
iron9light authored
Showing with 40 additions and 35 deletions.
  1. +1 −1  app.js
  2. +1 −1  app.json
  3. +1 −1  deltas/app.js/17a055231cc2d70293a8a89e98322b2a8c0f2d15.json
  4. +1 −1  deltas/app.js/1fb5963bd066af1a1398c5aeb9652a95921c1d93.json
  5. +1 −1  deltas/app.js/239c763aa522e84d8f65e01565d02ebe41c3a34c.json
  6. +1 −1  deltas/app.js/4ff4d23271811d68bf033a10c6b2ef3aefa3de6c.json
  7. +1 −1  deltas/app.js/5d6500b653586891f03a6c358a61408db0474f5e.json
  8. +1 −1  deltas/app.js/5e5d0d548e6e35b0853a405e624ad9147b440f71.json
  9. +1 −1  deltas/app.js/5fe6fd9dc669b16898e058fc4a41809da683bf69.json
  10. +1 −1  deltas/app.js/63eaf38d6640250935df4a76258c4a80ff2c30fa.json
  11. +1 −1  deltas/app.js/7877d92804daaf556a510c999b28bb9cd83099bb.json
  12. +1 −1  deltas/app.js/86012c11d656787b98b88a7b56886b6d70dd5e4d.json
  13. +1 −1  deltas/app.js/9d76666783a55435f84d63a609b3fafe9f25ab31.json
  14. +1 −1  deltas/app.js/9ed731ee96cfc2bc490f0c26482d7a210ebc1de0.json
  15. +1 −1  deltas/app.js/aa2f669328035769cb448ec2451244eb324cba90.json
  16. +1 −1  deltas/app.js/c77c04dad5aa5ea05e3d9f1bb9ed38b76b430695.json
  17. +1 −1  deltas/app.js/d0e9cac21a672b6a5fd85b29dd998fb14831a01f.json
  18. +1 −1  deltas/app.js/d5c4fa6bcf7acfd5142566284c46dc1c17be6e04.json
  19. +1 −1  deltas/app.js/d82183866b6411ef7182d7debbac9f0916d90d85.json
  20. +1 −1  deltas/app.js/da039f46544ee1d86f92d6f57d0f00158485c9ad.json
  21. +1 −1  deltas/app.js/db576e4e02c889e459f17e516b998b9e348ae9ec.json
  22. +1 −1  deltas/app.js/de2eeed4482a0a8f04fa1457185648914a500259.json
  23. +1 −0  deltas/app.js/e98e3e743a2813f1f95750e291a0b5256828bd6a.json
  24. +1 −0  deltas/resources/css/default-theme.css/52791223848ac76f5c8eab57f040c86d70cd0872.json
  25. +1 −1  deltas/resources/css/default-theme.css/6e1d69f44d24ba69f0e9204e023329a4a017a984.json
  26. +1 −1  deltas/resources/css/default-theme.css/7cc4a551289ad4fb38188666d7bfc5a54f273799.json
  27. +1 −1  deltas/resources/css/default-theme.css/bf1e162b2e6c1b8f4e5a5e4e7230345e9a8eb548.json
  28. +1 −1  deltas/resources/css/history.css/b99396369cbba96811b180954a615b17780e9f56.json
  29. +1 −0  deltas/resources/css/history.css/ea1e8b2fc9c44bc72397501d7b5ddc086415b702.json
  30. +1 −1  deltas/resources/css/preselected.css/53565c9047a6c5eaa2764a0f2c29b8afdd224ee9.json
  31. +1 −0  deltas/resources/css/preselected.css/7fc9cddbc44c0f1377f74dc607ddc0f83ac5c5d8.json
  32. +1 −1  deltas/resources/css/preselected.css/a34e5fef8ceec7d1f9d00bbfdab165368cd761b2.json
  33. +1 −1  deltas/resources/css/preselected.css/abead518025d2f577af36134dd74e34f4100acfa.json
  34. +1 −1  deltas/resources/css/running.css/691fcf127d7389903a64eeb39b194144f3c1f3be.json
  35. +1 −0  deltas/resources/css/running.css/aff5fcfddedfbd20603da1b5de677a2d4ec37a4a.json
  36. +1 −1  deltas/resources/css/running.css/e4e18c9ca8f850de27f74b60b91664a9a390763e.json
  37. +1 −1  resources/css/default-theme.css
  38. +1 −1  resources/css/history.css
  39. +1 −1  resources/css/preselected.css
  40. +1 −1  resources/css/running.css
2  app.js
View
1 addition, 1 deletion not shown
2  app.json
View
@@ -1 +1 @@
-{"id":"47f97ee0-81e6-11e1-bad9-9144860c3827","js":[{"path":"sdk/sencha-touch.js","type":"js","version":"b7c17f59b485ecb04dc388b2591ea79344917451"},{"path":"app.js","bundle":true,"update":"delta","type":"js","version":"e98e3e743a2813f1f95750e291a0b5256828bd6a"}],"css":[{"path":"resources/css/preselected.css","update":"delta","type":"css","version":"7fc9cddbc44c0f1377f74dc607ddc0f83ac5c5d8"},{"path":"resources/css/running.css","update":"delta","type":"css","version":"aff5fcfddedfbd20603da1b5de677a2d4ec37a4a"},{"path":"resources/css/history.css","update":"delta","type":"css","version":"ea1e8b2fc9c44bc72397501d7b5ddc086415b702"},{"path":"resources/css/default-theme.css","update":"delta","type":"css","version":"52791223848ac76f5c8eab57f040c86d70cd0872"}]}
+{"id":"47f97ee0-81e6-11e1-bad9-9144860c3827","js":[{"path":"sdk/sencha-touch.js","type":"js","version":"b7c17f59b485ecb04dc388b2591ea79344917451"},{"path":"app.js","bundle":true,"update":"delta","type":"js","version":"022eda3a66e9071b0bedd0435d39bd8357e275fd"}],"css":[{"path":"resources/css/preselected.css","update":"delta","type":"css","version":"816ef061972c4c7180cacba4f918fefbf8b4010d"},{"path":"resources/css/running.css","update":"delta","type":"css","version":"7d4828e336162376a8d0ec3c4fa4ce88634ada40"},{"path":"resources/css/history.css","update":"delta","type":"css","version":"a92c52fa066ff6e526a20b4f0b8b3ce6c4225375"},{"path":"resources/css/default-theme.css","update":"delta","type":"css","version":"f57c39cbfa8a610e069e27bdbb125378892001c1"}]}
2  deltas/app.js/17a055231cc2d70293a8a89e98322b2a8c0f2d15.json
View
@@ -1 +1 @@
-["/*e98e3e743a2813f1f95750e291a0b5256828bd6a",42,239650,"e){var a,d,c,b;if(e){",240362,48,"if(c){b=Ext.clone(c.getData())}}",239700,59,"if(b){a.setValues(b",239757,1283,242070,753,278168,73,"TitleBar",298272,34,"itle",221963,52,242921,3059,"Media",278173,33,"media\",config:{url:\"\",enableControls:Ext.os.is.Android?false:true,autoResume:false,autoPause:true,preload:true,loop:false,media:null,volume:1,muted:false",258925,52,"on({scope:a,activate:a.onActivate,deactivate:a.onDeactivate});a.addMediaListener({canplay:\"onCanPlay\",play:\"onPlay\",pause:\"onPause\",ended:\"onEnd\",volumechange:\"onVolumeChange\",timeupdate:\"onTimeUpdate\"})},addMediaListener:function(d,b){var c=this,e=c.media.dom,f=Ext.Function.bind;if(!Ext.isObject(d)){var a=d;d={};d[a]=b}Ext.Object.each(d,function(h,g){if(typeof g!==\"function\"){g=c[g]}if(typeof g==\"function\"){g=f(g,c);e.addEventListener(h,g)}})},onPlay:function(){this.fireEvent(\"play\",this)},onCanPlay:function(){this.fireEvent(\"canplay\",this)},onPause:function(){this.fireEvent(\"pause\",this,this.getCurrentTime())},onEnd:function(){this.fireEvent(\"ended\",this,this.getCurrentTime())},onVolum",193887,35,"volumechange\",this,this.media.dom.volume)},onTimeUpdate:function(){this.fireEvent(\"timeupdate\",this,this.getCurrentTime())},isPlaying:function(){return !Boolean(this.media.dom.paused)},onActivate:function(){var a=this;if(a.getAutoResume()&&!a.isPlaying()){a.play()}},onDeactivate:function(){var a=this;if(a.getAutoResume()&&a.isPlaying()){a.pause()}},updateUrl:function(a){var b=this.media.dom;b.src=a;if(\"load\" in b){b.load()}if(this.isPlaying()){this.play()}},updateEnableControls:function(a){this.media.dom.controls=a?\"controls\":false},updateLoop:function(a){this.media.dom.loop=a?\"loop\":false},play:function(){var a=this.media.dom;if(\"play\" in a){a.play();setTimeout(function(){a.play()},10)}},pause:function(){var a=this.media.dom;if(\"pause\" in a){a.pause()}},toggle:function(){if(this.isPlaying()){this.pause()}else{this.play()}},stop:function(){var a=this;a.setCurrentTime(0);a.fireEvent(\"stop\",a);a.pause()},updateVolume:function(a){this.media.dom.volume=a},updateMuted:function(a){this.fireEvent(\"mutedchange\",this,a);this.media.dom.muted=a},getCurrentTime:function(){return this.media.dom.currentTime},setCurrentTime:function(a){this.media.dom.currentTime=a;return a},getDuration:function(){return this.media.dom.duration",362008,32,"Ext.Object.each(event,function(c,b){if(typeof b!==\"function\"){b=a[b]}if(typeof b==\"function\"){b=bind(b,a);dom.removeEventListener(c,b)}})",245960,32204,321421,36,241068,994,"Ext.dataview.element.List\",{extend:",274367,33,"updateBaseCls:function(a){var b=this;b.itemClsShortCache=a+\"-item\";b.headerClsShortCache=a+\"-header\";b.headerClsCache=\".\"+b.headerClsShortCache;b.headerItemClsShortCache=a+\"-header-item\";b.footerClsShortCache=a+\"-footer-item\";b.footerClsCache=\".\"+b.footerClsShortCache;b.labelClsShortCache=a+\"-item-label\";b.labelClsCache=\".\"+b.labelClsShortCache;b.disclosureClsShortCache=a+\"-disclosure\";b.disclosureClsCache=\".\"+b.disclosureClsShortCache;b.iconClsShortCache=a+\"-icon\";b.iconClsCache=\".\"+b.iconClsShortCache;this.callParent(arguments)},hiddenDisplayCache:Ext.baseCSSPrefix+\"hidden-display\",getItemElementConfig:function(e,h){var f=this,c=f.dataview,g=c.getItemCls(),b=f.itemClsShortCache,d,a;if(g){b+=\" \"+g}d={cls:b,children:[{cls:f.labelClsShortCache,html:c.getItemTpl().apply(h)}]};if(c.getIcon()){a=h.iconSrc;d.children.push({cls:f.iconClsShortCache,style:\"background-image: \"+a?'url(\"'+newSrc+'\")':\"\"})}if(c.getOnItemDisclosure()){d.children.push({cls:f.disclosureClsShortCache+\" \"+((h[c.getDisclosureProperty()]===false)?f.hiddenDisplayCache:\"\")})}return d},updateListItem:function(d,k){var h=this,e=h.dataview,j=Ext.fly(k),g=j.down(h.labelClsCache,true),c=d.data,b=e.getDisclosureProperty(),a=c&&c.hasOwnProperty(b),l=c&&c.hasOwnProperty(\"iconSrc\"),f,i;g.innerHTML=e.getItemTpl().apply(c);if(a){f=j.down(h.disclosureClsCache);f[c[b]===false?\"removeCls\":\"addCls\"](h.hiddenDisplayCache)}if(e.getIcon()){i=j.down(h.iconClsCache,true);i.style.backgroundImage=l?'url(\"'+l+'\")':\"\"}},doRemoveHeaders:function(){var e=this,a=e.headerItemClsShortCache,b=e.element.query(e.headerClsCache),f=b.length,c=0,d;for(;c<f;c++){d=b[c];Ext.fly(d.parentNode).removeCls(a);Ext.removeNode(d)}},doRemoveFooterCls:function(){var d=this,c=d.footerClsShortCache,a=d.element.query(d.footerClsCache),e=a.length,b=0;for(;b<e;b++){Ext.fly(a[b]).removeCls(c)}},doAddHeader:function(b,a){b=Ext.fly(b);if(a){b.insertFirst(Ext.Element.create({cls:this.headerClsShortCache,html:a}))}b.addCls(this.headerItemClsShortCache)},destroy:function(){this.doRemoveHeaders();",277440,33,"FvTouch.dataview.element.List\",{override:\"Ext.dataview.element.List\",updateListItem:function(d,k){var h=this,e=h.dataview,j=Ext.fly(k),g=j.down(h.labelClsCache,true),c=e.prepareData(d.getData(true),e.getStore().indexOf(d),d),b=e.getDisclosureProperty(),a=c&&c.hasOwnProperty(b),l=c&&c.hasOwnProperty(\"iconSrc\"),f,i;g.innerHTML=e.getItemTpl().apply(c);if(a){f=j.down(h.disclosureClsCache);f[c[b]===false?\"removeCls\":\"addCls\"](h.hiddenDisplayCache)}if(e.getIcon()){i=j.down(h.iconClsCache,true);i.style.backgroundImage=l?'url(\"'+l+'\")':\"\"}}});Ext.define(\"Ext.dataview.IndexBa",168110,51,"IndexBar\"",242960,36,"indexbar\",direction:\"vertical\",letters:[\"A\",\"B\",\"C\",\"D\",\"E\",\"F\",\"G\",\"H\",\"I\",\"J\",\"K\",\"L\",\"M\",\"N\",\"O\",\"P\",\"Q\",\"R\",\"S\",\"T\",\"U\",\"V\",\"W\",\"X\",\"Y\",\"Z\"],ui:\"alphabet\",listPrefix:null},itemCls:Ext.baseCSSPrefix+\"\",updateDirection:function(a,c){var b=this.getBaseCls();this.element.replaceCls(b+\"-\"+c,b+\"-\"+a",168795,49,"wrapper\",classList:[\"x-centered\",\"x-indexbar-wrapper\"]",129959,32,"updateLetters:function(c){this.innerElement.setHtml(\"\");if(c){var b=c.length,a;for(a=0;a<b;a++){this.innerElement.createChild({html:c[a]})}}},updateListPrefix:function(a){if(a&&a.length){this.innerElement.createChild({html:a},0)",322416,43,326006,33,"this.onTouchStart,touchend:this.onTouchEnd,touchmove:this.onTouchMove,scope:this})},onTouchStart:function(b,a){b.stopPropagation();this.innerElement.addCls(this.getBaseCls()+\"-pressed\");this.pageBox=this.innerElement.getPageBox();this.onTouchMove(b)},onTouchEnd:function(b,a){this.innerElement.removeCls(this.getBaseCls()+\"-pressed\")},onTouchMove:function(c){var a=Ext.util.Point.fromEvent(c),b,d=this.pageBox;if(!d){d=this.pageBox=this.el.getPageBox()}if(this.getDirection()===\"vertical\"){if(a.y>d.bottom||a.y<d.top){return}b=Ext.Element.fromPoint(d.left+(d.width/2),a.y)}else{if(a.x>d.right||a.x<d.left){return}b=Ext.Element.fromPoint(a.x,d.top+(d.height/2))}if(b){this.fireEvent(\"index\",this,b.dom.innerHTML,b)}},destroy:function(){var c=this,d=Array.prototype.slice.call(c.innerElement.dom.childNodes),b=d",277393,41,"d[a])}",94954,33,";Ext.define(\"Ext.dataview.ListItemHeader",278173,34,"istitemheader\"",242960,36,"list-header\",docked:\"top\"",278221,2597,"b.id===\"historyview\"?\"history",280816,236,"3],preselected:a[0],running:a[1],history:a[2",281083,2025,",pullup:\"onPullup",283107,1973,",onPullup",238906,56,"Main\").gotoPreselectedView",239040,37,285114,584,"timeout:\"onTimeout",285696,70,283219,36,283262,40,285826,1172,"b,c){var a,g,f,e,d;d=b.get(\"uid\");e=Ext.getStore(\"Timers\");g=e.findRecord(\"uid\",d);if(g){f=g",287088,38,"e.add({uid:d,time:b.get(\"starttime\"),type:\"go\"});f=\"break\"}e.add({uid:d,time:Date.now(),type:f});if(!c.getTimeout()){a=",238925,37,"Sounds\");if(f===\"go\"){a.play(\"starttask\")}else{a.play(\"break\")}}return c.updateTimer(b)},onTimeout:function(b,c){var a,d;d=c.getTimerType();a=",238925,37,"Sounds\");if(d===\"go\"){return a.play(\"break\")}else{return a.play(\"starttask\")}",284271,94,287340,1321,"FvTouch.controller.HistoryList",238719,65,"Manager\"],config:{refs:{historyview:\"historyview\"},control:{historyview:{add:\"showAddPanel\"}}",281344,65,286730,124,"a===\"taskdone\"||a===\"postponetask\"",286893,66,"History\").refresh()},showAddPanel:function(a){var b,c;c=a.data.cdata.task.uid;b=Ext.getStore(\"Tasks\").findRecord(\"uid\",c);if(!b){return}",284830,44,"AddTask\").show(c)}});Ext.define(\"Ext.Audio\",{extend:\"Ext.Media\",xtype:\"audio\"",76282,32,"audio\"},onActivat",230367,39,"if(Ext.os.is.Phone){a.element.show()}},onDeactivat",230367,39,"if(Ext.os.is.Phone){a.element.hide()}},template:[{reference:\"media\",preload:\"auto\",tag:\"audio\",cls:Ext.baseCSSPrefix+\"component\"}]",239872,34,"Sounds",238719,42,"Ext.Audio\",",285472,32,"],sounds:{",281344,65,"\"playIfRelated\",undo:function(){return this.play(\"undo\")},scope:this})},createTryPlayFun:function(a,d,c){var b;if(c==null){c=3000}b=new RegExp(\"^\"+a+\"[1-\"+d+\"]$\");return function(g,e){var f;if(e<c&&b.test(g)){f=parseInt(g.substr(a.length));if(f<d){f=f+1}return a+f}else{return a+\"1\"}}},createPreselectTryPlayFun:function(c){var a,b;b=/^preselect[1-8]$/;a=\"preselect\";return function(f,d){var e;if(d<3000&&b.test(f)){e=parseInt(f.substr(9));if(c&&e>1){e=e-1}else{if(e<8){e=e+1}}return a+e}else{return a+\"1\"}}},play",286809,45,"a===\"taskdone\"){if(!this._taskdoneTryPlayFun){this._taskdoneTryPlayFun=this.createTryPlayFun(\"taskdone\",8)}return this.tryPlay(this._taskdoneTryPlayFun)}else{if(a===\"postponetask\"){return this.play(\"postponetask\")}else{if(a===\"starttask\"){return this.play(\"starttask\")}else{if(a===\"deletetask\"){return this.play(\"deletetask\")}else{if(a===\"addtask\"){return this.play(\"addtask\")}else{if(a===\"edittask\"){return this.play(\"edittask\")}else{if(a===\"preselect\"){return this.tryPlay(this.createPreselectTryPlayFun(b.getCdata().preselected))}}}}}}}},tryPlay:function(a){var b;b=a(this.prename,Date.now()-this.pretime);if(b){return this.play(b)}},play:function(a){var b;b=this.sounds[a];if(!b){b=this.createSound(a);this.sounds[a]=b}if(this.prename){this.sounds[this.prename].stop()}b.play();this.prename=a;return this.pretime=Date.now()},createSound:function(b){var a;a=\"resources/sounds/\"+b+\".m4a\";return Ext.Viewport.add({xtype:\"audio\",hidden:true,url:a}",288644,32825,",\"Ext.Date\"],xtype:\"runningitem\",config:{timerType:\"go\",time:null,timeout:null,",321499,858,322380,245,"Timeout",311471,35,"timeout",322597,298,"b){var e,a,g,f,d,c;if(b==null){b=this.getRecord()",323093,42,"a=b.get(\"status\");if(a===\"open\"){this.setTimerType(\"ready\");this.setTime(0);return}c=b",287018,37,"g=d.findRecord(\"uid\",c);if(g){f=g.get(\"time\");this.setTimerType(g.get(\"type\"))}else{f=b",323055,32,"this.setTimerType(\"go\")}e",323136,47,"e.refreshAll(",323198,33,323233,118,"updateTime:function(d){var b,a,c",323389,61,"a.setText(this.timeText(d));if(this.getTimerType()===\"ready\"){this.setTimeout(false);if(a){a.hide()}b.setIconCls(\"play1",323584,34,"if(this.getTimerType()===\"go\"){c=d",323513,32,"c>100){this.setTimeout(true);",323552,66,"this.setTimeout(false);a.setValue(c",323630,47,"c=100-d",323684,50,"c<0){this.setTimeout(true);",323739,45,"this.setTimeout(false);a.setValue(c);return b.setUi(\"normal\")}}}},updateTimeout:function(b,a){if(b&&Ext.isBoolean(a)&&b!==a){return this.onTimeout()}},refreshAll:function(c){var a,b;a=Date.now();b=a-c;return this.setTime(b)",323824,13008,",\"break\"",382114,39,"reak\",a,b)},timeout",382114,38,"timeout\",a,b",336830,49,",\"break\",\"timeou",336877,33,"eady",336299,90,"eady\",config:{store:\"Ready",336424,408,",\"break\"",336735,36,337644,59,"star",336877,101,",\"FvTouch.view.Ready",336977,72,",{xtype:\"ready\"}],control:{runninglist:{refresh:\"onDataviewRefresh\"},ready:{refresh:\"onDataviewRefresh\"}}",311274,34,"this.onDataviewRefresh(this.child(\"runninglist\"));return this.onDataviewRefresh(this.child(\"ready\"))}}},onDataviewRefresh:function(a){if(a.getStore().getCount()){return a.show()}else{return a.hide()}",337050,1191,",\"Ext.Label",338240,72,",initialize:function(){var a;this.callParent();a=this.child(\"todolist\");a.insert(1,{xtype:\"label\",html:\"pull up to preselected view\",cls:\"pullup\",action:\"pullup\",hidden:true});return a.getScrollable().getScroller().on({maxpositionchange:function(b,c){return this.scrollerY=c.y},scroll:function(c,b,d){if(d>(80+this.scrollerY)){this.onPullUp()}},scrollstart",311296,32,"odolist label[action=pullup]\").show()},scrollend",311296,32,"odolist label[action=pullup]\").hide()},scope:this})},onPullU",325584,36,"pullup\")",338698,40,338351,549,"Ext.dataview.List\",{alternateClassName:\"Ext.List\",extend:\"Ext.dataview.DataView\",xtype:\"list\",requires:[\"Ext.dataview.element.List\",\"Ext.dataview.IndexBar\",\"Ext.dataview.ListItemHeader\"],config:{indexBar:false,icon:null,preventSelectionOnDisclose:true,baseCls:Ext.baseCSSPrefix+\"list\",pinHeaders:true,grouped:false,onItemDisclosure:null,disclosureProperty:\"disclosure\",ui:\"normal\"},constructor:function(){this.translateHeader=(Ext.os.is.Android2)?this.translateHeaderCssPosition:this.translateHeaderTransform;",124762,34,"Trigger:function(c,b,f,a,d){if(!(this.getPreventSelectionOnDisclose()&&Ext.fly(d.target).hasCls(this.getBaseCls()+\"-disclosure\"))){this.callParent(arguments)}},initialize:function(){",329886,103,".element.List",330043,90,"element.on({delegate:\".\"+this.getBaseCls()+\"-disclosure\",tap:\"handleItemDisclosure\",scope:b}",330129,287,"updateInline",132399,40,"if(a){this.setOnItemDisclosure(false);this.setIndexBar(false);this.setGrouped(false)}},applyIndexBa",201552,39,"dataview.IndexBar,this.getIndexBar())},updateIndexBar:function(a){if(a&&this.getScrollable()){this.indexBarElement=",177286,44,".getElement().appendChild(a.renderElement);a.on({index:\"onIndex\",scope:this});",130336,37,"+\"-indexed\")}},updateGrouped:function(c){var b=this.getBaseCls(),a=b+\"-grouped\",d=b+\"-ungrouped\";if(c){this.addCls(a);this.removeCls(d);this.doRefreshHeaders();this.updatePinHeaders(this.getPinHeaders())}else{this.addCls(d);this.removeCls(a);if(this.container){this.container.doRemoveHeaders()}this.updatePinHeaders(null)}},updatePinHeaders:function(b){var c=this.getScrollable(),a;if(c){a=c.getScroller()}if(!c){return}if(b&&this.getGrouped()){a.on({refresh:\"doRefreshHeaders\",scroll:\"onScroll\",scope:this});if(!this.header||!this.header.renderElement.dom){this.createHeader()}}else{a.un({refresh:\"doRefreshHeaders\",scroll:\"onScroll\",scope:this});if(this.header){this.header.destroy()}}},createHeader:function(){var e,d=this.getScrollable(),a,b,c;if(d){a=d.getScroller();b=",177286,44,";c=b.getElement()}else{return}this.header=e=Ext.create(\"Ext.dataview.ListItemHeader\",{html:\" \",cls:\"x-list-header-swap\"});c.dom.insertBefore(e.element.dom,a.getContainer().dom.nextSibling);this.translateHeader(1000)},refresh",203037,35,"doRefreshHeaders()},onStoreAdd",100382,44,"doRefreshHeaders()},onStoreRemove",100382,44,"doRefreshHeaders()},onStoreUpdate",100382,44,"doRefreshHeaders()},onStoreClear:function(){this.callParent();if(this.header){this.header.destroy()}this.doRefreshHeaders()},getClosestGroups:function(){var a=this.pinHeaderInfo.offsets,e=this.getScrollable(),d=a.length,b=0,h,g,f,c;if(e){h=e.getScroller().position}else{return{current:0,next:0}}for(;b<d;b++){g=a[b];if(g.offset>h.y){c=g;break}f=g}return{current:f,next:c}},doRefreshHeaders:function(){if(!this.getGrouped()||!this.container){return false}var l=this.findGroupHeaderIndices(),f=l.length,g=this.container.getViewItems(),j=this.pinHeaderInfo={offsets:[]},a=j.offsets,h=this.getScrollable(),e,k,b,d,c;if(f){for(b=0;b<f;b++){d=g[l[b]];if(d){c=this.getItemHeader(d);a.push({header:c,offset:d.offsetTop})}}j.closest=this.getClosestGroups();this.setActiveGroup(j.closest.current);if(c){j.headerHeight=Ext.fly(c).getHeight()}if(h){e=h.getScroller();k=e.position;this.onScroll(e,k.x,k.y)}}},getItemHeader:function(b){var a=Ext.fly(b).down(this.container.headerClsCache);return a?a.dom:null},onScroll:function(e,j,h){var g=this,i=g.pinHeaderInfo,a=i.closest,b=g.activeGroup,c=i.headerHeight,d,f;if(!a){return}d=a.next;f=a.current;if(!this.header||!this.header.renderElement.dom){this.createHeader()}if(h<=0){if(b){g.setActiveGroup(false);a.next=f}this.translateHeader(1000);return}else{if((d&&h>d.offset)||(f&&h<f.offset)){a=i.closest=this.getClosestGroups();d=a.next;f=a.current;this.setActiveGroup(f)}}if(d&&h>0&&d.offset-h<=c){var k=c-(d.offset-h);this.translateHeader(k)}else{this.translateHeader(null)}},translateHeaderTransform:function(a){this.header.renderElement.dom.style.webkitTransform=(a===null)?null:\"translate3d(0px, -\"+a+\"px, 0px)\"},translateHeaderCssPosition:function(a){this.header.renderElement.dom.style.top=(a===null)?null:\"-\"+Math.round(a)+\"px\"},setActiveGroup:function(b){var a=this,c=a.header;if(c){if(b&&b.header){if(!a.activeGroup||a.activeGroup.header!=b.header){c.show();if(c.element){c.setHtml(b.header.innerHTML)}}}else{if(c&&c.element){c.hide()}}}this.activeGroup=b},onIndex:function(o,c){var r=this,s=c.toLowerCase(),b=r.getStore(),q=b.getGroups(),f=q.length,h=r.getScrollable(),n,e,m,g,k,p;if(h){n=r.getScrollable().getScroller()}else{return}for(m=0;m<f;m++){e=q[m];k=e.name.toLowerCase();if(k==s||k>s){g=e;break}else{g=e}}if(h&&g){p=r.container.getViewItems()[b.indexOf(g.children[0])];n.stopAnimation();var l=n.getContainerSize().y,j=n.getSize().y,d=j-l,a=(p.offsetTop>d)?d:p.offsetTop;n.scrollTo(0,a)}},applyOnItemDisclosure:function(a){if(Ext.isFunction(a)){return{scope:this,handler:a}}return a},handleItemDisclosure:function(f){var d=this,c=f.getTarget().parentNode,b=d.container.getViewItems().indexOf(c),a=d.getStore().getAt(b);d.fireAction(\"disclose\",[d,a,c,b,f],\"doDisclose\")},doDisclose:function(f,a,d,c,g){var b=f.getOnItemDisclosure();if(b&&b.handler){b.handler.call(b.scope||f,a,d,c,g)}},findGroupHeaderIndices:function(){if(!this.getGrouped()){return[]}var h=this,k=h.getStore();if(!k){return[]}var b=h.container,d=k.getGroups(),m=d.length,g=b.getViewItems(),c=[],l=b.footerClsShortCache,e,a,f,n,j;b.doRemoveHeaders();b.doRemoveFooterCls();if(g.length){for(e=0;e<m;e++){a=d[e].children[0];f=k.indexOf(a);n=g[f];b.doAddHeader(n,k.getGroupString(a));if(e){Ext.fly(n.previousSibling).addCls(l)}c.push(f)}j=d[--e].children;Ext.fly(g[k.indexOf(j[j.length-1])]).addCls(l)}return c",208944,41,"IndexBar(),this.indexBarElement,this.header);",277440,33,"FvTouch.view.HistoryList\",{extend:\"Ext.dataview.List\",requires:[\"Ext.Date\",\"FvTouch.dataview.element.List\"],xtype:\"historylist\",config:{store:\"History\",grouped:true,itemCls:\"historyitem\",itemTpl:\"<div class=\\\"x-docking-horizontal\\\">\\n <div class='x-docked-left cmdtype {type}'></div>\\n <div class=\\\"x-body tasktitle\\\">{title}</div>\\n <div class='x-docked-right taskendtime'>{endtime:date('H:i:s')}</div>\\n</div>\",listeners:{itemdoubletap",337242,40,"dd\",a)}},bubbleEvents:[\"add\"]},prepareData:function(g,c,a){var b,f,e;try{f=Ext.getStore(\"Tasks\");e=g.cdata.task.uid;b=f.findRecord(\"uid\",e);return{title:b.get(\"title\"),status:b.get(\"status\"),type:g.type,createtime:new Date(b.get(\"createtime\")),endtime:new Date(g.ctime)}}catch(d){console.info(d);return{title:\"[error]\",type:\"\",createtime:new Data(),endtime:new Date(",338142,32,"HistoryView",310798,33,"FvTouch.view.HistoryList\"],xtype:\"history",338824,42,"history",338304,36,"Main",277504,33,338950,159,"HistoryView",339130,334,",{id:\"historyview\",title:\"History\",xtype:\"historyview",339462,42080,"this.initConfig(a);return this.init()},init:Ext.emptyFn",381568,4216,"FvTouch.store.Histor",385684,32,"requires:[\"Ext.Date\"],config:{store:\"Commands\",sorters:[{property:\"ctime\"}],filters:[{filterFn:function(d){var a,c,b;c=d.get(\"type\");if(c===\"taskdone\"||c===\"postponetask\"){b=d.get(\"cdata\").task.uid;a=Ext.getStore(\"Tasks\").findRecord(\"uid\",b);if(!a){return false}if(c===\"postponetask\"){return d.get(\"cdata\").task.status===\"running\"}else{return true}}else{return false}}}],grouper:{groupFn:function(a){var b;b=new Date(a.get(\"ctime\"));return Ext.Date.format(Ext.Date.clearTime(b),\"D M j Y\")},sortProperty:\"ctime\"}",385614,61,"Ready",385466,53,385569,35,"open",385611,35,",init:function(){var a;a=Ext.getStore(\"Preselecteds\");a.on({refresh:\"refreshData\",scope:this});return this.refreshData(a)},addOn",241708,32,"setData([a])}else{return this.clearData()}},refreshData:function(b){var c,a;c=b.first();if(c){a=Ext.getStore(\"Tasks\").getById(c.get(\"task_id\"));return this.addOne(a)}else{return this.addOne(null)}",385768,6373,",\"HistoryList\",\"Sounds",392140,126,",\"History\",\"Read",392264,577]
+["/*022eda3a66e9071b0bedd0435d39bd8357e275fd",42,214314,"if(!b",220795,68,"b.data.uid,title:b.data.title,info:b.data.info",214438,1144,"c){var e,h,f,a,d,i,b,g;g=Ext.getStore(\"Tasks\");b=g.findRecord(\"uid\",c.uid);a=c.title;if(Ext.isEmpty(a)){return false}f=c.info;i=b.get(\"title\");d=b.get(\"info\");if(a===i&&this.isEquals(f,d)){return false}h=this.getDelta(f,d);e={uid:c.uid,\"new\":{},old:{}};if(a!==i){e[\"new\"].title=a;e.old.title=i}if(h.xDelta){e[\"new\"].info=h.xDelta}if(h.yDelta){e.old.info=h.yDelta}return e},doImpl:function(){var c,f,d,a,b,e",215775,71,"e=c[\"new\"].title;if(e!==void 0){a.set(\"title\",e)}f=c[\"new\"].info;if(f){d=this.apply(a.get(\"info\"),f);a.set(\"info\",d)}",215876,43,"f,d,a,b,e",215775,71,"e=c.old.title;if(e!==void 0){a.set(\"title\",e)}f=c.old.info;if(f){d=this.apply(a.get(\"info\"),f);a.set(\"info\",d)}return a.save()},isEquals:function(a,b){if(a===b){return true}else{if(Ext.isPrimitive(a)){return false}else{if(Ext.isArray(a)){return Ext.isArray(b)&&this.isArrayEquals(a,b)}else{if(Ext.isEmpty(a)){return false}else{if(Ext.isDate(a)){return Ext.isDate(b)&&a.getTime()===b.getTime()}else{if(Ext.isFunction(a)){return Ext.isFunction(b)&&a.toString()===b.toString()}else{return Ext.isObject(b)&&this.isObjectEquals(a,b)}}}}}}},isArrayEquals:function(a,d){var b,c;if(a.length===d.length){for(b=0,c=length-1;0<=c?b<c:b>c;0<=c?b++:b--){if(!this.isEquals(a[b],d[b])){return false}}return true}else{return false}},isObjectEquals:function(a,h){var d,e,g,c,f,b;g=Ext.Object.getKeys(a);c=Ext.Object.getKeys(h);e=Ext.Array.merge(g,c);for(f=0,b=e.length;f<b;f++){d=e[f];if(!this.isEquals(a[d],h[d])){return false}}return true},getDelta:function(g,c){var k,i,j,b,h,d,f,a,e;if(!Ext.isObject(g)){g={}}if(!Ext.isObject(c)){c={}}h=Ext.Object.getKeys(g);f=Ext.Object.getKeys(c);j=Ext.Array.merge(h,f);b={};d={};k=false;for(a=0,e=j.length;a<e;a++){i=j[a];if(!this.isEquals(g[i],c[i])){b[i]=g[i];d[i]=c[i];k=true}}if(k){return{xDelta:b,yDelta:d}}else{return{}}},apply:function(c,d){var b,a;c||(c={});for(b in d){a=d[b];if(a===void 0){delete c[b]}else{c[b]=d[b]}}if(Ext.Object.getSize(c)){return c}else{return}",242046,32,"Postpon",214159,57,216131,144,"if(!b",220795,51,"if(!a){return false}",216311,97,"if(",216345,48,"&&Ext.getStore(\"TodosProxy\").last().getId()===a.getId()",216393,1776,"e){var d,b,g,a,f,c;c=Ext.getStore(\"Todos\");g=Ext.getStore(\"Tasks\");b=g.findRecord(\"uid\",e.uid);if(!b",220795,51,"if(!a||",218299,59,"f=Ext.getStore(\"TodosProxy\");d=f.first();if(d&&a.getId()===d.getId()){return false}return{uid:e",218370,195,"getId()",218572,369,"getId()",218572,71,"===e",217520,39,219062,321,"if(!b",220795,51,219419,1352,"!b",218317,41,221134,36,220846,3610,"var b,c;if(Ext.isEmpty(a.title)){return false}b=",224488,69,";c=this.normalize(a.info);if(c){b.info=c}return b",224557,166,"info:e.info",224722,331,",normalize:function(c){var b,a;for(b in c){a=c[b];if(a===void 0){delete c[b]}}if(Ext.Object.getSize(c)){return c}else{return}",225052,13786,",tagsButton:\"mytoolbar #tags",238837,53,",tags:\"onTags",238889,154,",onTags",238906,56,"Tags\").show()},launch:function(){var a;a=",238925,37,"Tags\");a.on({scope:this,change:\"changeTagsBadgeText\"});return this.changeTagsBadgeText(a.getTag())},changeTagsBadgeText:function(a){return this.getTagsButton().setBadgeText(a",239870,36,"AddTask",238719,66,239150,542,"f){var b,e,a,d,c;if(f){e=Ext.getStore(\"Tasks\");d=e.findRecord(\"uid\",f);if(d){c=Ext.clone(d.getData())}}else{a=",238925,37,"Tags\").getTag();if(a){c={info:{tags:[a]}}}}b=this.getPanel();if(!b",284220,33,"b)}if(c){b.setValues(c)}return b",239767,880,"controller.Tags",238719,41,"],config:{tag:window.localStorage.getItem(\"tag\"),views:[\"Tags\"],refs:{panel:{selector:\"tagspanel\",xtype:\"tags",240041,42,"hange:\"onChange\"}}},onChange:function(a,b){return this.setTag(b.tag)},show:function(){var a,b;b=this.getTags();if(Ext.Object.getSize(b)<=1){return}",239592,69,"if(!a.getParent()){Ext.Viewport.add(a)}a.setTags(this.getTags());a.setValue({tag:this.getTag()});return a.show()},getTags:function(){var a,b,c;c=Ext.getStore(\"Tasks\");b={\"\":0};a=this.getTag();if(!Ext.isEmpty(a)){b[a]=0}c.each(function(g){var h,d,j,f,i,e;if(g.data.info&&Ext.isArray(g.data.info.tags)&&g.data.info.tags.length){i=g.data.info.tags;e=[];for(j=0,f=i.length;j<f;j++){d=i[j];h=b[d];e.push(b[d]=h?h+1:1)}return e}else{return b[\"\"]=b[\"\"]+1}});return b",281714,32,"updateTag(this.getTag())},updateTag:function(a){var b;if(Ext.isEmpty(a)){window.localStorage.removeItem(\"tag\")}else{window.localStorage.setItem(\"tag\",a)}b=",238925,37,"TaskFilter\");if(b){b.setFilterFn(this.generateFilterFn(a))}return this.fireEvent(\"change\",a)},generateFilterFn:function(a){if(Ext.isEmpty(a)){return function(){return true}}else{return function(b){return b.data.info&&Ext.isArray(b.data.info.tags)&&Ext.Array.contains(b.data.info.tags,a",338142,34,240654,142,"itemId:\"add\"},{iconCls:\"tags\",itemId:\"tags\"},{iconCls:\"reply\",itemId",240833,58,"#add\":{",325582,38,"add\")}},\"#undo\":{",325582,38,"undo\")}},\"#tags\":{",325582,38,"tags\")}}}",242046,777,278168,73,"TitleBar",298272,34,"itle",221963,52,242921,3055,"FvTouch.field.Tags",233524,35,"agsfield\",applyValue:function(a){if(Ext.isArray(a)){return a}else{if(Ext.isEmpty(a)){return[]}else{return[a.toString()]}",230815,32,";if(!Ext.isArray(b)){Ext.Logger.error(\"value of tagsfield should be an array\")}a=b.join(\", \");return this.callParent([a])},getValue:function(){var a,b;b=this.callParent();a=Ext.Array.map(b.split(\",\"),function(c){return c.trim()});a=Ext.Array.filter(a,function(c){return !Ext.isEmpty(c)});a=Ext.Array.unique(a);if(a.length){return a}else{return}}});Ext.define(\"Ext.Media",278173,33,"media\",config:{url:\"\",enableControls:Ext.os.is.Android?false:true,autoResume:false,autoPause:true,preload:true,loop:false,media:null,volume:1,muted:false",258925,52,"on({scope:a,activate:a.onActivate,deactivate:a.onDeactivate});a.addMediaListener({canplay:\"onCanPlay\",play:\"onPlay\",pause:\"onPause\",ended:\"onEnd\",volumechange:\"onVolumeChange\",timeupdate:\"onTimeUpdate\"})},addMediaListener:function(d,b){var c=this,e=c.media.dom,f=Ext.Function.bind;if(!Ext.isObject(d)){var a=d;d={};d[a]=b}Ext.Object.each(d,function(h,g){if(typeof g!==\"function\"){g=c[g]}if(typeof g==\"function\"){g=f(g,c);e.addEventListener(h,g)}})},onPlay:function(){this.fireEvent(\"play\",this)},onCanPlay:function(){this.fireEvent(\"canplay\",this)},onPause:function(){this.fireEvent(\"pause\",this,this.getCurrentTime())},onEnd:function(){this.fireEvent(\"ended\",this,this.getCurrentTime())},onVolum",193887,35,"volumechange\",this,this.media.dom.volume)},onTimeUpdate:function(){this.fireEvent(\"timeupdate\",this,this.getCurrentTime())},isPlaying:function(){return !Boolean(this.media.dom.paused)},onActivate:function(){var a=this;if(a.getAutoResume()&&!a.isPlaying()){a.play()}},onDeactivate:function(){var a=this;if(a.getAutoResume()&&a.isPlaying()){a.pause()}},updateUrl:function(a){var b=this.media.dom;b.src=a;if(\"load\" in b){b.load()}if(this.isPlaying()){this.play()}},updateEnableControls:function(a){this.media.dom.controls=a?\"controls\":false},updateLoop:function(a){this.media.dom.loop=a?\"loop\":false},play:function(){var a=this.media.dom;if(\"play\" in a){a.play();setTimeout(function(){a.play()},10)}},pause:function(){var a=this.media.dom;if(\"pause\" in a){a.pause()}},toggle:function(){if(this.isPlaying()){this.pause()}else{this.play()}},stop:function(){var a=this;a.setCurrentTime(0);a.fireEvent(\"stop\",a);a.pause()},updateVolume:function(a){this.media.dom.volume=a},updateMuted:function(a){this.fireEvent(\"mutedchange\",this,a);this.media.dom.muted=a},getCurrentTime:function(){return this.media.dom.currentTime},setCurrentTime:function(a){this.media.dom.currentTime=a;return a},getDuration:function(){return this.media.dom.duration",362008,32,"Ext.Object.each(event,function(c,b){if(typeof b!==\"function\"){b=a[b]}if(typeof b==\"function\"){b=bind(b,a);dom.removeEventListener(c,b)}})",245960,32204,321421,36,241068,994,"Ext.dataview.element.List\",{extend:",274367,33,"updateBaseCls:function(a){var b=this;b.itemClsShortCache=a+\"-item\";b.headerClsShortCache=a+\"-header\";b.headerClsCache=\".\"+b.headerClsShortCache;b.headerItemClsShortCache=a+\"-header-item\";b.footerClsShortCache=a+\"-footer-item\";b.footerClsCache=\".\"+b.footerClsShortCache;b.labelClsShortCache=a+\"-item-label\";b.labelClsCache=\".\"+b.labelClsShortCache;b.disclosureClsShortCache=a+\"-disclosure\";b.disclosureClsCache=\".\"+b.disclosureClsShortCache;b.iconClsShortCache=a+\"-icon\";b.iconClsCache=\".\"+b.iconClsShortCache;this.callParent(arguments)},hiddenDisplayCache:Ext.baseCSSPrefix+\"hidden-display\",getItemElementConfig:function(e,h){var f=this,c=f.dataview,g=c.getItemCls(),b=f.itemClsShortCache,d,a;if(g){b+=\" \"+g}d={cls:b,children:[{cls:f.labelClsShortCache,html:c.getItemTpl().apply(h)}]};if(c.getIcon()){a=h.iconSrc;d.children.push({cls:f.iconClsShortCache,style:\"background-image: \"+a?'url(\"'+newSrc+'\")':\"\"})}if(c.getOnItemDisclosure()){d.children.push({cls:f.disclosureClsShortCache+\" \"+((h[c.getDisclosureProperty()]===false)?f.hiddenDisplayCache:\"\")})}return d},updateListItem:function(d,k){var h=this,e=h.dataview,j=Ext.fly(k),g=j.down(h.labelClsCache,true),c=d.data,b=e.getDisclosureProperty(),a=c&&c.hasOwnProperty(b),l=c&&c.hasOwnProperty(\"iconSrc\"),f,i;g.innerHTML=e.getItemTpl().apply(c);if(a){f=j.down(h.disclosureClsCache);f[c[b]===false?\"removeCls\":\"addCls\"](h.hiddenDisplayCache)}if(e.getIcon()){i=j.down(h.iconClsCache,true);i.style.backgroundImage=l?'url(\"'+l+'\")':\"\"}},doRemoveHeaders:function(){var e=this,a=e.headerItemClsShortCache,b=e.element.query(e.headerClsCache),f=b.length,c=0,d;for(;c<f;c++){d=b[c];Ext.fly(d.parentNode).removeCls(a);Ext.removeNode(d)}},doRemoveFooterCls:function(){var d=this,c=d.footerClsShortCache,a=d.element.query(d.footerClsCache),e=a.length,b=0;for(;b<e;b++){Ext.fly(a[b]).removeCls(c)}},doAddHeader:function(b,a){b=Ext.fly(b);if(a){b.insertFirst(Ext.Element.create({cls:this.headerClsShortCache,html:a}))}b.addCls(this.headerItemClsShortCache)},destroy:function(){this.doRemoveHeaders();",277440,33,"FvTouch.dataview.element.List\",{override:\"Ext.dataview.element.List\",updateListItem:function(d,k){var h=this,e=h.dataview,j=Ext.fly(k),g=j.down(h.labelClsCache,true),c=e.prepareData(d.getData(true),e.getStore().indexOf(d),d),b=e.getDisclosureProperty(),a=c&&c.hasOwnProperty(b),l=c&&c.hasOwnProperty(\"iconSrc\"),f,i;g.innerHTML=e.getItemTpl().apply(c);if(a){f=j.down(h.disclosureClsCache);f[c[b]===false?\"removeCls\":\"addCls\"](h.hiddenDisplayCache)}if(e.getIcon()){i=j.down(h.iconClsCache,true);i.style.backgroundImage=l?'url(\"'+l+'\")':\"\"}}});Ext.define(\"Ext.dataview.IndexBa",168110,51,"IndexBar\"",242960,36,"indexbar\",direction:\"vertical\",letters:[\"A\",\"B\",\"C\",\"D\",\"E\",\"F\",\"G\",\"H\",\"I\",\"J\",\"K\",\"L\",\"M\",\"N\",\"O\",\"P\",\"Q\",\"R\",\"S\",\"T\",\"U\",\"V\",\"W\",\"X\",\"Y\",\"Z\"],ui:\"alphabet\",listPrefix:null},itemCls:Ext.baseCSSPrefix+\"\",updateDirection:function(a,c){var b=this.getBaseCls();this.element.replaceCls(b+\"-\"+c,b+\"-\"+a",168795,49,"wrapper\",classList:[\"x-centered\",\"x-indexbar-wrapper\"]",129959,32,"updateLetters:function(c){this.innerElement.setHtml(\"\");if(c){var b=c.length,a;for(a=0;a<b;a++){this.innerElement.createChild({html:c[a]})}}},updateListPrefix:function(a){if(a&&a.length){this.innerElement.createChild({html:a},0)",322416,43,326006,33,"this.onTouchStart,touchend:this.onTouchEnd,touchmove:this.onTouchMove,scope:this})},onTouchStart:function(b,a){b.stopPropagation();this.innerElement.addCls(this.getBaseCls()+\"-pressed\");this.pageBox=this.innerElement.getPageBox();this.onTouchMove(b)},onTouchEnd:function(b,a){this.innerElement.removeCls(this.getBaseCls()+\"-pressed\")},onTouchMove:function(c){var a=Ext.util.Point.fromEvent(c),b,d=this.pageBox;if(!d){d=this.pageBox=this.el.getPageBox()}if(this.getDirection()===\"vertical\"){if(a.y>d.bottom||a.y<d.top){return}b=Ext.Element.fromPoint(d.left+(d.width/2),a.y)}else{if(a.x>d.right||a.x<d.left){return}b=Ext.Element.fromPoint(a.x,d.top+(d.height/2))}if(b){this.fireEvent(\"index\",this,b.dom.innerHTML,b)}},destroy:function(){var c=this,d=Array.prototype.slice.call(c.innerElement.dom.childNodes),b=d",277393,41,"d[a])}",94954,33,";Ext.define(\"Ext.dataview.ListItemHeader",278173,34,"istitemheader\"",242960,36,"list-header\",docked:\"top\"",278221,2597,"b.id===\"historyview\"?\"history",280816,236,"3],preselected:a[0],running:a[1],history:a[2",281083,2025,",pullup:\"onPullup",283107,268,"Ext.getStore(\"TasksProxy\").refresh();",283375,1705,",onPullup",238906,56,"Main\").gotoPreselectedView",239040,37,285114,106,283262,92,";",284830,44,"TaskFilter\").on({update:\"refresh\",scope:this",283352,44,285361,337,"timeout:\"onTimeout",285696,70,283219,36,283262,40,285826,857,283262,48,286738,62,";",284830,44,"TaskFilter\").on({update:\"refresh\",scope:this",286798,200,"b,c){var a,g,f,e,d;d=b.get(\"uid\");e=Ext.getStore(\"Timers\");g=e.findRecord(\"uid\",d);if(g){f=g",287088,38,"e.add({uid:d,time:b.get(\"starttime\"),type:\"go\"});f=\"break\"}e.add({uid:d,time:Date.now(),type:f});if(!c.getTimeout()){a=",238925,37,"Sounds\");if(f===\"go\"){a.play(\"starttask\")}else{a.play(\"break\")}}return c.updateTimer(b)},onTimeout:function(b,c){var a,d;d=c.getTimerType();a=",238925,37,"Sounds\");if(d===\"go\"){return a.play(\"break\")}else{return a.play(\"starttask\")}",284271,94,287340,1321,"FvTouch.controller.HistoryList",238719,65,"Manager\"],config:{refs:{historyview:\"historyview\"},control:{historyview:{add:\"showAddPanel",285765,61,286730,70,";",284830,44,"TaskFilter\").on({update:\"refresh\",scope:this",286798,56,"a===\"taskdone\"||a===\"postponetask\"",286893,66,"History\").refresh()},showAddPanel:function(a){var b,c;c=a.data.cdata.task.uid;b=Ext.getStore(\"Tasks\").findRecord(\"uid\",c);if(!b){return}",284830,44,"AddTask\").show(c)}});Ext.define(\"Ext.Audio\",{extend:\"Ext.Media\",xtype:\"audio\"",76282,32,"audio\"},onActivat",230367,39,"if(Ext.os.is.Phone){a.element.show()}},onDeactivat",230367,39,"if(Ext.os.is.Phone){a.element.hide()}},template:[{reference:\"media\",preload:\"auto\",tag:\"audio\",cls:Ext.baseCSSPrefix+\"component\"}]",239872,34,"Sounds",238719,42,"Ext.Audio\",",285472,32,"],sounds:{",281344,65,"\"playIfRelated\",undo:function(){return this.play(\"undo\")},scope:this})},createTryPlayFun:function(a,d,c){var b;if(c==null){c=3000}b=new RegExp(\"^\"+a+\"[1-\"+d+\"]$\");return function(g,e){var f;if(e<c&&b.test(g)){f=parseInt(g.substr(a.length));if(f<d){f=f+1}return a+f}else{return a+\"1\"}}},createPreselectTryPlayFun:function(c){var a,b;b=/^preselect[1-8]$/;a=\"preselect\";return function(f,d){var e;if(d<3000&&b.test(f)){e=parseInt(f.substr(9));if(c&&e>1){e=e-1}else{if(e<8){e=e+1}}return a+e}else{return a+\"1\"}}},play",286809,45,"a===\"taskdone\"){if(!this._taskdoneTryPlayFun){this._taskdoneTryPlayFun=this.createTryPlayFun(\"taskdone\",8)}return this.tryPlay(this._taskdoneTryPlayFun)}else{if(a===\"postponetask\"){return this.play(\"postponetask\")}else{if(a===\"starttask\"){return this.play(\"starttask\")}else{if(a===\"deletetask\"){return this.play(\"deletetask\")}else{if(a===\"addtask\"){return this.play(\"addtask\")}else{if(a===\"edittask\"){return this.play(\"edittask\")}else{if(a===\"preselect\"){return this.tryPlay(this.createPreselectTryPlayFun(b.getCdata().preselected))}}}}}}}},tryPlay:function(a){var b;b=a(this.prename,Date.now()-this.pretime);if(b){return this.play(b)}},play:function(a){var b;b=this.sounds[a];if(!b){b=this.createSound(a);this.sounds[a]=b}if(this.prename){this.sounds[this.prename].stop()}b.play();this.prename=a;return this.pretime=Date.now()},createSound:function(b){var a;a=\"resources/sounds/\"+b+\".m4a\";return Ext.Viewport.add({xtype:\"audio\",hidden:true,url:a}",288644,22280,",\"FvTouch.field.Tags\"],config:{values:void 0,showA",298446,34,310973,298,",",311212,34,"agsfield\",name:\"tags\",label:\"Tags",311267,267,"applyValues:function(a){if(a===void 0||a===null){return a}else{return Ext.apply(a.info||{},{title:a.title})}},getValues:function(){var b,a;a=",311562,35,";b=a.title;delete a.title;return{title:b,info:a}},update",311602,820,"if(a){this.setUid(a.uid",107504,55,312494,8975,",\"Ext.Date\"],xtype:\"runningitem\",config:{timerType:\"go\",time:null,timeout:null,",321499,858,322380,245,"Timeout",311471,35,"timeout",322597,298,"b){var e,a,g,f,d,c;if(b==null){b=this.getRecord()",323093,42,"a=b.get(\"status\");if(a===\"open\"){this.setTimerType(\"ready\");this.setTime(0);return}c=b",287018,37,"g=d.findRecord(\"uid\",c);if(g){f=g.get(\"time\");this.setTimerType(g.get(\"type\"))}else{f=b",323055,32,"this.setTimerType(\"go\")}e",323136,47,"e.refreshAll(",323198,33,323233,118,"updateTime:function(d){var b,a,c",323389,61,"a.setText(this.timeText(d));if(this.getTimerType()===\"ready\"){this.setTimeout(false);if(a){a.hide()}b.setIconCls(\"play1",323584,34,"if(this.getTimerType()===\"go\"){c=d",323513,32,"c>100){this.setTimeout(true);",323552,66,"this.setTimeout(false);a.setValue(c",323630,47,"c=100-d",323684,50,"c<0){this.setTimeout(true);",323739,45,"this.setTimeout(false);a.setValue(c);return b.setUi(\"normal\")}}}},updateTimeout:function(b,a){if(b&&Ext.isBoolean(a)&&b!==a){return this.onTimeout()}},refreshAll:function(c){var a,b;a=Date.now();b=a-c;return this.setTime(b)",323824,13008,",\"break\"",382114,39,"reak\",a,b)},timeout",382114,38,"timeout\",a,b",336830,49,",\"break\",\"timeou",336877,33,"eady",336299,90,"eady\",config:{store:\"Ready",336424,408,",\"break\"",336735,36,337644,59,"star",336877,101,",\"FvTouch.view.Ready",336977,72,",{xtype:\"ready\"}],control:{runninglist:{refresh:\"onDataviewRefresh\"},ready:{refresh:\"onDataviewRefresh\"}}",311274,34,"this.onDataviewRefresh(this.child(\"runninglist\"));return this.onDataviewRefresh(this.child(\"ready\"))}}},onDataviewRefresh:function(a){if(a.getStore().getCount()){return a.show()}else{return a.hide()}",337050,1191,",\"Ext.Label",338240,72,",initialize:function(){var a;this.callParent();a=this.child(\"todolist\");a.insert(1,{xtype:\"label\",html:\"pull up to preselected view\",cls:\"pullup\",action:\"pullup\",hidden:true});return a.getScrollable().getScroller().on({maxpositionchange:function(b,c){return this.scrollerY=c.y},scroll:function(c,b,d){if(d>(80+this.scrollerY)){this.onPullUp()}},scrollstart",311296,32,"odolist label[action=pullup]\").show()},scrollend",311296,32,"odolist label[action=pullup]\").hide()},scope:this})},onPullU",325584,36,"pullup\")",338698,40,338351,549,"Ext.dataview.List\",{alternateClassName:\"Ext.List\",extend:\"Ext.dataview.DataView\",xtype:\"list\",requires:[\"Ext.dataview.element.List\",\"Ext.dataview.IndexBar\",\"Ext.dataview.ListItemHeader\"],config:{indexBar:false,icon:null,preventSelectionOnDisclose:true,baseCls:Ext.baseCSSPrefix+\"list\",pinHeaders:true,grouped:false,onItemDisclosure:null,disclosureProperty:\"disclosure\",ui:\"normal\"},constructor:function(){this.translateHeader=(Ext.os.is.Android2)?this.translateHeaderCssPosition:this.translateHeaderTransform;",124762,34,"Trigger:function(c,b,f,a,d){if(!(this.getPreventSelectionOnDisclose()&&Ext.fly(d.target).hasCls(this.getBaseCls()+\"-disclosure\"))){this.callParent(arguments)}},initialize:function(){",329886,103,".element.List",330043,90,"element.on({delegate:\".\"+this.getBaseCls()+\"-disclosure\",tap:\"handleItemDisclosure\",scope:b}",330129,287,"updateInline",132399,40,"if(a){this.setOnItemDisclosure(false);this.setIndexBar(false);this.setGrouped(false)}},applyIndexBa",201552,39,"dataview.IndexBar,this.getIndexBar())},updateIndexBar:function(a){if(a&&this.getScrollable()){this.indexBarElement=",177286,44,".getElement().appendChild(a.renderElement);a.on({index:\"onIndex\",scope:this});",130336,37,"+\"-indexed\")}},updateGrouped:function(c){var b=this.getBaseCls(),a=b+\"-grouped\",d=b+\"-ungrouped\";if(c){this.addCls(a);this.removeCls(d);this.doRefreshHeaders();this.updatePinHeaders(this.getPinHeaders())}else{this.addCls(d);this.removeCls(a);if(this.container){this.container.doRemoveHeaders()}this.updatePinHeaders(null)}},updatePinHeaders:function(b){var c=this.getScrollable(),a;if(c){a=c.getScroller()}if(!c){return}if(b&&this.getGrouped()){a.on({refresh:\"doRefreshHeaders\",scroll:\"onScroll\",scope:this});if(!this.header||!this.header.renderElement.dom){this.createHeader()}}else{a.un({refresh:\"doRefreshHeaders\",scroll:\"onScroll\",scope:this});if(this.header){this.header.destroy()}}},createHeader:function(){var e,d=this.getScrollable(),a,b,c;if(d){a=d.getScroller();b=",177286,44,";c=b.getElement()}else{return}this.header=e=Ext.create(\"Ext.dataview.ListItemHeader\",{html:\" \",cls:\"x-list-header-swap\"});c.dom.insertBefore(e.element.dom,a.getContainer().dom.nextSibling);this.translateHeader(1000)},refresh",203037,35,"doRefreshHeaders()},onStoreAdd",100382,44,"doRefreshHeaders()},onStoreRemove",100382,44,"doRefreshHeaders()},onStoreUpdate",100382,44,"doRefreshHeaders()},onStoreClear:function(){this.callParent();if(this.header){this.header.destroy()}this.doRefreshHeaders()},getClosestGroups:function(){var a=this.pinHeaderInfo.offsets,e=this.getScrollable(),d=a.length,b=0,h,g,f,c;if(e){h=e.getScroller().position}else{return{current:0,next:0}}for(;b<d;b++){g=a[b];if(g.offset>h.y){c=g;break}f=g}return{current:f,next:c}},doRefreshHeaders:function(){if(!this.getGrouped()||!this.container){return false}var l=this.findGroupHeaderIndices(),f=l.length,g=this.container.getViewItems(),j=this.pinHeaderInfo={offsets:[]},a=j.offsets,h=this.getScrollable(),e,k,b,d,c;if(f){for(b=0;b<f;b++){d=g[l[b]];if(d){c=this.getItemHeader(d);a.push({header:c,offset:d.offsetTop})}}j.closest=this.getClosestGroups();this.setActiveGroup(j.closest.current);if(c){j.headerHeight=Ext.fly(c).getHeight()}if(h){e=h.getScroller();k=e.position;this.onScroll(e,k.x,k.y)}}},getItemHeader:function(b){var a=Ext.fly(b).down(this.container.headerClsCache);return a?a.dom:null},onScroll:function(e,j,h){var g=this,i=g.pinHeaderInfo,a=i.closest,b=g.activeGroup,c=i.headerHeight,d,f;if(!a){return}d=a.next;f=a.current;if(!this.header||!this.header.renderElement.dom){this.createHeader()}if(h<=0){if(b){g.setActiveGroup(false);a.next=f}this.translateHeader(1000);return}else{if((d&&h>d.offset)||(f&&h<f.offset)){a=i.closest=this.getClosestGroups();d=a.next;f=a.current;this.setActiveGroup(f)}}if(d&&h>0&&d.offset-h<=c){var k=c-(d.offset-h);this.translateHeader(k)}else{this.translateHeader(null)}},translateHeaderTransform:function(a){this.header.renderElement.dom.style.webkitTransform=(a===null)?null:\"translate3d(0px, -\"+a+\"px, 0px)\"},translateHeaderCssPosition:function(a){this.header.renderElement.dom.style.top=(a===null)?null:\"-\"+Math.round(a)+\"px\"},setActiveGroup:function(b){var a=this,c=a.header;if(c){if(b&&b.header){if(!a.activeGroup||a.activeGroup.header!=b.header){c.show();if(c.element){c.setHtml(b.header.innerHTML)}}}else{if(c&&c.element){c.hide()}}}this.activeGroup=b},onIndex:function(o,c){var r=this,s=c.toLowerCase(),b=r.getStore(),q=b.getGroups(),f=q.length,h=r.getScrollable(),n,e,m,g,k,p;if(h){n=r.getScrollable().getScroller()}else{return}for(m=0;m<f;m++){e=q[m];k=e.name.toLowerCase();if(k==s||k>s){g=e;break}else{g=e}}if(h&&g){p=r.container.getViewItems()[b.indexOf(g.children[0])];n.stopAnimation();var l=n.getContainerSize().y,j=n.getSize().y,d=j-l,a=(p.offsetTop>d)?d:p.offsetTop;n.scrollTo(0,a)}},applyOnItemDisclosure:function(a){if(Ext.isFunction(a)){return{scope:this,handler:a}}return a},handleItemDisclosure:function(f){var d=this,c=f.getTarget().parentNode,b=d.container.getViewItems().indexOf(c),a=d.getStore().getAt(b);d.fireAction(\"disclose\",[d,a,c,b,f],\"doDisclose\")},doDisclose:function(f,a,d,c,g){var b=f.getOnItemDisclosure();if(b&&b.handler){b.handler.call(b.scope||f,a,d,c,g)}},findGroupHeaderIndices:function(){if(!this.getGrouped()){return[]}var h=this,k=h.getStore();if(!k){return[]}var b=h.container,d=k.getGroups(),m=d.length,g=b.getViewItems(),c=[],l=b.footerClsShortCache,e,a,f,n,j;b.doRemoveHeaders();b.doRemoveFooterCls();if(g.length){for(e=0;e<m;e++){a=d[e].children[0];f=k.indexOf(a);n=g[f];b.doAddHeader(n,k.getGroupString(a));if(e){Ext.fly(n.previousSibling).addCls(l)}c.push(f)}j=d[--e].children;Ext.fly(g[k.indexOf(j[j.length-1])]).addCls(l)}return c",208944,41,"IndexBar(),this.indexBarElement,this.header);",277440,33,"FvTouch.view.HistoryList\",{extend:\"Ext.dataview.List\",requires:[\"Ext.Date\",\"FvTouch.dataview.element.List\"],xtype:\"historylist\",config:{store:\"History\",grouped:true,itemCls:\"historyitem\",itemTpl:\"<div class=\\\"x-docking-horizontal\\\">\\n <div class='x-docked-left cmdtype {type}'></div>\\n <div class=\\\"x-body tasktitle\\\">{title}</div>\\n <div class='x-docked-right taskendtime'>{endtime:date('H:i:s')}</div>\\n</div>\",listeners:{itemdoubletap",337242,40,"dd\",a)}},bubbleEvents:[\"add\"]},prepareData:function(g,c,a){var b,f,e;try{f=Ext.getStore(\"Tasks\");e=g.cdata.task.uid;b=f.findRecord(\"uid\",e);return{title:b.get(\"title\"),status:b.get(\"status\"),type:g.type,createtime:new Date(b.get(\"createtime\")),endtime:new Date(g.ctime)}}catch(d){console.info(d);return{title:\"[error]\",type:\"\",createtime:new Data(),endtime:new Date(",338142,32,"HistoryView",310798,33,"FvTouch.view.HistoryList\"],xtype:\"history",338824,42,"history",338304,36,"Main",277504,33,338950,159,"HistoryView",339130,334,",{id:\"historyview\",title:\"History\",xtype:\"historyview",339462,42080,"this.initConfig(a);return this.init()},init:Ext.emptyFn",381568,3269,"Task",385679,53,"ask",385735,49,"FvTouch.controller.TaskFilte",238718,51,"store.TasksProxy\"],config:{filterFn:function(){return true}},updateFilterFn:function(a){var b;b=Ext.getStore(\"TasksProxy\");if(b){b.clearFilter(true);b.setFilters([{filterFn:a}]);",283382,37,"return this.fireEvent(\"update\",a)",385645,93,"filters:[{filterFn:function(b){var a,c;c=Ext.getStore(\"TasksProxy\");a=c.getById(b.get(\"task_id\"));return !Ext.isEmpty(a)}}]",385737,47,384823,525,"d){var a,c,b;b=Ext.getStore(\"TodosProxy\");if(b.getCount()&&b.getById(d.getId())&&(d.data.preselected||d.getId()===b.first().getId())){return true}else{c=Ext.getStore(\"Tasks\");a=c.getById(d.get(\"task_id\"));return a&&a.get(\"status\")===\"running\"}}}]",385737,47,385444,231,"Histor",385684,32,"requires:[\"Ext.Date\"],config:{store:\"Commands\",sorters:[{property:\"ctime\"}],filters:[{filterFn:function(d){var a,c,b;c=d.get(\"type\");if(c===\"taskdone\"||c===\"postponetask\"){b=d.get(\"cdata\").task.uid;a=Ext.getStore(\"TasksProxy\").findRecord(\"uid\",b);if(!a){return false}if(c===\"postponetask\"){return d.get(\"cdata\").task.status===\"running\"}else{return true}}else{return false}}}],grouper:{groupFn:function(a){var b;b=new Date(a.get(\"ctime\"));return Ext.Date.format(Ext.Date.clearTime(b),\"D M j Y\")},sortProperty:\"ctime\"}",385614,61,"Ready",385466,53,385569,35,"open",385611,35,",init:function(){var a;a=Ext.getStore(\"Preselecteds\");a.on({refresh:\"refreshData\",scope:this});return this.refreshData(a)},addOn",241708,32,"setData([a])}else{return this.clearData()}},refreshData:function(b){var c,a;c=b.first();if(c){a=Ext.getStore(\"Tasks\").getById(c.get(\"task_id\"));return this.addOne(a)}else{return this.addOne(null)}",385768,4244,"info",390002,1056,"picker.Slo",336298,35,"xtype:\"pickerslot\",alternateClassName:\"Ext.Picker.Slot",306030,33,"data.Store\",\"Ext.Component\",\"Ext.data.StoreManager\"],isSlot:true,config:{title:null,showTitle:true,cls:Ext.baseCSSPrefix+\"picker-slot\",name:null,value:null,flex:1,align:\"left\",displayField:\"text\",valueField:\"value\",scrollable:{direction:\"vertical\",indicators:false,momentumEasing:{minVelocity:2},slotSnapEasing:{duration:100}}",270915,38,"Index=0",270984,34,"Title:function(a){if(a){a=Ext.create(\"Ext.Component\",{cls:Ext.baseCSSPrefix+\"picker-slot-title\",docked:\"top\",html:a})}return a",222407,51,"setupBar()}if(a){this.remove(a)}},updateShowTitle:function(a){var b=this.getTitle();if(b){b[a?\"show\":\"hide\"]();this.setupBar()}},updateDisplayField:function(a){this.setItemTpl('<div class=\"'+Ext.baseCSSPrefix+'picker-item {cls} <tpl if=\"extra\">'+Ext.baseCSSPrefix+'picker-invalid</tpl>\">{'+a+\"}</div>\")},updateAlign:function(a,c){var b=this.element;b.addCls(Ext.baseCSSPrefix+\"picker-\"+a);b.removeCls(Ext.baseCSSPrefix+\"picker-\"+c)},applyData:function(d){var f=[],c=d&&d.length,a,b,e;if(d&&Ext.isArray(d)&&c){for(a=0;a<c;a++){b=d[a];e={};if(Ext.isArray(b)){e[this.valueField]=b[0];e[this.displayField]=b[1]}else{if(Ext.isString(b)){e[this.valueField]=b;e[this.displayField]=b}else{if(Ext.isObject(b)){e=b}}}f.push(e)}}return d},updateData:function(",333244,46,"fields:[\"text\",\"value\"],data:a}))",325072,42,"var a=this.getScrollable().getScroller();this.on({scope:this,painted:\"onPainted\",itemtap:\"doItemTap\"});a.on({scope:this,scrollend:\"onScrollEn",119325,32,"setupBar()},getPicker:function(){if(!this.picker){this.picker=this.getParent()}return this.picker},setupBa",179886,32,"return}var a=this.element,e=this.innerElement,f=this.getPicker(),g=f.bar,k=this.getValue(),b=this.getShowTitle(),j=this.getTitle(),h=this.getScrollable(),d=h.getScroller(),c=0,l,i;l=g.getHeight();if(b&&j){c=j.element.getHeight()}i=Math.ceil((a.getHeight()-c-l)/2);e.setStyle({padding:i+\"px 0 \"+(i)+\"px\"});d.refresh();d.setSlotSnapSize(l);this.setValue(k)},doItemTap:function(d,a,c,f){var b=this;b.selectedIndex=a;b.selectedNode=c;b.scrollToItem(c,true);b.fireEvent(\"slotpick\",b,b.getValue(true),b.selectedNode)},scrollToItem:function(e,d){var h=e.getY(),c=e.parent(),f=c.getY(),b=this.getScrollable(),a=b.getScroller(),g;g=h-f;a.scrollTo(0,g,d)},onScrollEnd:function(b,a,g){var f=this,d=Math.round(g/f.picker.bar.getHeight()),c=f.getViewItems(),e=c[d];if(e){f.selectedIndex=d;f.selectedNode=e;f.fireEvent(\"slotpick\",f,f.getValue(),f.selectedNode)}},getValue:function(c){var b=this.getStore(),a,d;if(!b){return}if(!this.rendered||!c){return this._value}if(this._value===false){return null}a=b.getAt(this.selectedIndex);d=a?a.get(this.getValueField()):null;return d},setValue:function(f){if(!Ext.isDefined(f)){return}if(!this.rendered||!f){this._value=f;return}var b=this.getStore(),a=this.getViewItems(),d=this.getValueField(),c,e;c=b.find(d,f);if(c!=-1){e=Ext.get(a[c]);this.selectedIndex=c;this.scrollToItem(e);this._value=f}},setValueAnimated:function(f){if(!f){return}if(!this.rendered){this._value=f;return}var b=this.getStore(),a=this.getViewItems(),d=this.getValueField(),c,e;c=b.find(d,f);if(c!=-1){e=Ext.get(a[c]);this.selectedIndex=c;this.scrollToItem(e,{duration:100});this._value=f}}});Ext.define(\"Ext.picker.Picker",242608,36,"picker\",alternateClassName:\"Ext.Picker\",requires:[\"Ext.picker.Slot\",\"Ext.Toolbar\",\"Ext.data.Model\"],isPicker:true",76282,32,"picker\",doneButton:true,cancelButton:true,useTitles:false,slots:null,value:null,height:220,layout:{type:\"hbox\",align:\"stretch\"},centered:false,left:0,right:0,bottom:0,defaultType:\"pickerslot\",toolbar:true},initElement",389326,43,"b=this,a=Ext.baseCSSPrefix,c=this.innerElement;this.mask=c.createChild({cls:a+\"picker-mask\"});this.bar=this.mask.createChild({cls:a+\"picker-bar\"});b.on({scope:this,delegate:\"pickerslot\",slotpick:\"onSlotPick\"});b.on({scope:this,show:\"onShow\"})},applyToolb",299470,33,"Ext.applyIf(a,{docked:\"top\"});return Ext.factory(a,\"Ext.TitleBar\",this.getToolbar())},updateToolbar",237153,56,"applyDoneButton:function(a){if(a){if(Ext.isBoolean(a)){a={}}if(typeof a==\"string\"){a={text:a}}Ext.applyIf(a,{ui:\"action\",align:\"right\",text:\"Done\"})}return Ext.factory(a,\"Ext.Button\",this.getDoneButton())},updateDoneButton:function(c,a){var b=this.getToolbar();if(c){b.add(c);c.on(\"tap\",this.onDoneButtonTap,this)}else{if(a){b.remove(a)}}},applyCancelButton:function(a){if(a){if(Ext.isBoolean(a)){a={}}if(typeof a==\"string\"){a={text:a}}Ext.applyIf(a,{align:\"left\",text:\"Cancel\"})}return Ext.factory(a,\"Ext.Button\",this.getCancelButton())},updateCancelButton:function(b,a){var c=this.getToolbar();if(b){c.add(b);b.on(\"tap\",this.onCancelButtonTap,this)}else{if(a){c.remove(a)}}},updateUseTitles:function(d){var f=this.getInnerItems(),e=f.length,a=Ext.baseCSSPrefix+\"use-titles\",c,b;if(d",229600,40,"for(c=0;c<e;c++){b=f[c];if(b.isSlot){b.setShowTitle(d)}}},applySlots:function(b){if(b){var c=b.length,a;for(a=0;a<c;a++){b[a].picker=this}}return b},updateSlots:function(a){var b=Ext.baseCSSPrefix,c;this.removeAll();if(a){this.add(a)}c=this.getInnerItems();if(c.length>0){c[0].addCls(b+\"first\");c[c.length-1].addCls(b+\"last\")}this.updateUseTitles(this.getUseTitles())},onDoneButtonTap:function(){var a=this._value,b=this.getValue(true);if(b!=a){this.fireEvent(\"change\",this,b)}this.hide()},onCancelButtonTap:function(){this.fireEvent(\"cancel\",this);this.hide()},onSlotP",213693,32,"pick\",this,this.getValue(true),a)},onShow:function(){if(!this.isHidden()){this.setValue(this._value)}},setValue:function(k,a){var f=this,d=f.getInnerItems(),e=d.length,j,h,c,b,g;if(!k){k={};for(b=0;b<e;b++){k[d[b].config.name]=null}}for(j in k){g=k[j];for(b=0;b<d.length;b++){c=d[b];if(c.config.name==j){h=c;break}}if(h){if(a){h.setValueAnimated(g)}else{h.setValue(g)}}}f._values=f._value=k;return f},setValueAnimated:function(a){this.setValue(a,true)},getValue:function(c){var b={},a=this.getItems().items,f=a.length,e,d;if(c){for(d=0;d<f;d++){e=a[d];if(e&&e.isSlot){b[e.getName()]=e.getValue(c)}}this._values=b}return this._values",262208,38,"Value(",69768,38,");Ext.destroy(this.mask,this.bar)",310744,42,"Tags\",{extend:\"Ext.picker.Picker\",xtype:\"tagspanel\",config:{tags:{},hideOnMaskTap:true},updateTags:function(c){var d,b,a;d=(function(){var e;e=[];for(b in c){a=c[b];e.push({text:b,value:a})}return e})();d=Ext.Array.sort(d,function(e,f){if(Ext.isEmpty(e.text)){return -1}else{if(Ext.isEmpty(f.text)){return 1}else{return f.value-e.value}}});return this.setSlots({name:\"tag\",data:Ext.Array.map(d,function(e){return{text:e.text,value:e.text}})})",391038,1032,"askFilter",392066,75,",\"HistoryList\",\"Sounds\",\"Tags",392140,80,"TasksProxy\",\"TodosProxy",392217,38,"History\",\"Read",392264,577]
2  deltas/app.js/1fb5963bd066af1a1398c5aeb9652a95921c1d93.json
View
@@ -1 +1 @@
-["/*e98e3e743a2813f1f95750e291a0b5256828bd6a",42,239650,"e){var a,d,c,b;if(e){",240362,48,"if(c){b=Ext.clone(c.getData())}}",239700,59,"if(b){a.setValues(b",239757,5266,"Media",277241,33,"media\",config:{url:\"\",enableControls:Ext.os.is.Android?false:true,autoResume:false,autoPause:true,preload:true,loop:false,media:null,volume:1,muted:false",257968,52,"on({scope:a,activate:a.onActivate,deactivate:a.onDeactivate});a.addMediaListener({canplay:\"onCanPlay\",play:\"onPlay\",pause:\"onPause\",ended:\"onEnd\",volumechange:\"onVolumeChange\",timeupdate:\"onTimeUpdate\"})},addMediaListener:function(d,b){var c=this,e=c.media.dom,f=Ext.Function.bind;if(!Ext.isObject(d)){var a=d;d={};d[a]=b}Ext.Object.each(d,function(h,g){if(typeof g!==\"function\"){g=c[g]}if(typeof g==\"function\"){g=f(g,c);e.addEventListener(h,g)}})},onPlay:function(){this.fireEvent(\"play\",this)},onCanPlay:function(){this.fireEvent(\"canplay\",this)},onPause:function(){this.fireEvent(\"pause\",this,this.getCurrentTime())},onEnd:function(){this.fireEvent(\"ended\",this,this.getCurrentTime())},onVolum",193887,35,"volumechange\",this,this.media.dom.volume)},onTimeUpdate:function(){this.fireEvent(\"timeupdate\",this,this.getCurrentTime())},isPlaying:function(){return !Boolean(this.media.dom.paused)},onActivate:function(){var a=this;if(a.getAutoResume()&&!a.isPlaying()){a.play()}},onDeactivate:function(){var a=this;if(a.getAutoResume()&&a.isPlaying()){a.pause()}},updateUrl:function(a){var b=this.media.dom;b.src=a;if(\"load\" in b){b.load()}if(this.isPlaying()){this.play()}},updateEnableControls:function(a){this.media.dom.controls=a?\"controls\":false},updateLoop:function(a){this.media.dom.loop=a?\"loop\":false},play:function(){var a=this.media.dom;if(\"play\" in a){a.play();setTimeout(function(){a.play()},10)}},pause:function(){var a=this.media.dom;if(\"pause\" in a){a.pause()}},toggle:function(){if(this.isPlaying()){this.pause()}else{this.play()}},stop:function(){var a=this;a.setCurrentTime(0);a.fireEvent(\"stop\",a);a.pause()},updateVolume:function(a){this.media.dom.volume=a},updateMuted:function(a){this.fireEvent(\"mutedchange\",this,a);this.media.dom.muted=a},getCurrentTime:function(){return this.media.dom.currentTime},setCurrentTime:function(a){this.media.dom.currentTime=a;return a},getDuration:function(){return this.media.dom.duration",375130,32,"Ext.Object.each(event,function(c,b){if(typeof b!==\"function\"){b=a[b]}if(typeof b==\"function\"){b=bind(b,a);dom.removeEventListener(c,b)}})",245003,45449,"timeout:\"onTimeou",287808,107,289981,40,290580,1172,"b,c){var a,g,f,e,d;d=b.get(\"uid\");e=Ext.getStore(\"Timers\");g=e.findRecord(\"uid\",d);if(g){f=g",291842,38,"e.add({uid:d,time:b.get(\"starttime\"),type:\"go\"});f=\"break\"}e.add({uid:d,time:Date.now(),type:f});if(!c.getTimeout()){a=",238925,37,"Sounds\");if(f===\"go\"){a.play(\"starttask\")}else{a.play(\"break\")}}return c.updateTimer(b)},onTimeout:function(b,c){var a,d;d=c.getTimerType();a=",238925,37,"Sounds\");if(d===\"go\"){return a.play(\"break\")}else{return a.play(\"starttask\")}",292000,1520,"config:{refs:{historyview:\"historyview\"},control:{historyview:{add:\"showAddPanel\"}}}",293519,162,"b){var a;a=b.getType();if(a===\"taskdone\"||a===\"postponetask",293710,87,",showAddPanel:function(a){var b,c;c=a.data.cdata.task.uid;b",399135,40,"c);if(!b){return}",292544,44,"AddTask\").show(c)}});Ext.define(\"Ext.Audio\",{extend:\"Ext.Media\",xtype:\"audio\"",76282,32,"audio\"},onActivat",230367,39,"if(Ext.os.is.Phone){a.element.show()}},onDeactivat",230367,39,"if(Ext.os.is.Phone){a.element.hide()}},template:[{reference:\"media\",preload:\"auto\",tag:\"audio\",cls:Ext.baseCSSPrefix+\"component\"}]",239872,34,"Sounds",238719,42,"Ext.Audio\",",293486,34,"sounds:{}",293519,65,"playIfRelated\",undo:function(){return this.play(\"undo\")},scope:this})},createTryPlayFun:function(a,d,c){var b;if(c==null){c=3000}b=new RegExp(\"^\"+a+\"[1-\"+d+\"]$\");return function(g,e){var f;if(e<c&&b.test(g)){f=parseInt(g.substr(a.length));if(f<d){f=f+1}return a+f}else{return a+\"1\"}}},createPreselectTryPlayFun:function(c){var a,b;b=/^preselect[1-8]$/;a=\"preselect\";return function(f,d){var e;if(d<3000&&b.test(f)){e=parseInt(f.substr(9));if(c&&e>1){e=e-1}else{if(e<8){e=e+1}}return a+e}else{return a+\"1\"}}},play",291563,45,"a===\"taskdone\"){if(!this._taskdoneTryPlayFun){this._taskdoneTryPlayFun=this.createTryPlayFun(\"taskdone\",8)}return this.tryPlay(this._taskdoneTryPlayFun)}else{if(a===\"postponetask\"){return this.play(\"postponetask\")}else{if(a===\"starttask\"){return this.play(\"starttask\")}else{if(a===\"deletetask\"){return this.play(\"deletetask\")}else{if(a===\"addtask\"){return this.play(\"addtask\")}else{if(a===\"edittask\"){return this.play(\"edittask\")}else{if(a===\"preselect\"){return this.tryPlay(this.createPreselectTryPlayFun(b.getCdata().preselected))}}}}}}}},tryPlay:function(a){var b;b=a(this.prename,Date.now()-this.pretime);if(b){return this.play(b)}},play:function(a){var b;b=this.sounds[a];if(!b){b=this.createSound(a);this.sounds[a]=b}if(this.prename){this.sounds[this.prename].stop()}b.play();this.prename=a;return this.pretime=Date.now()},createSound:function(b){var a;a=\"resources/sounds/\"+b+\".m4a\";return Ext.Viewport.add({xtype:\"audio\",hidden:true,url:a}",293795,32866,"timerType:\"go\",time:null,timeout:null,",326661,858,327542,245,"Timeout",344015,35,"timeout",327759,298,"b){var e,a,g,f,d,c;if(b==null){b=this.getRecord()",328255,42,"a=b.get(\"status\");if(a===\"open\"){this.setTimerType(\"ready\");this.setTime(0);return}c=b",291772,37,"g=d.findRecord(\"uid\",c);if(g){f=g.get(\"time\");this.setTimerType(g.get(\"type\"))}else{f=b",328217,32,"this.setTimerType(\"go\")}e",328298,47,"e.refreshAll(",328360,33,328395,118,"updateTime:function(d){var b,a,c",328551,61,"a.setText(this.timeText(d));if(this.getTimerType()===\"ready\"){this.setTimeout(false);if(a){a.hide()}b.setIconCls(\"play1",328746,34,"if(this.getTimerType()===\"go\"){c=d",328675,32,"c>100){this.setTimeout(true);",328714,66,"this.setTimeout(false);a.setValue(c",328792,47,"c=100-d",328846,50,"c<0){this.setTimeout(true);",328901,45,"this.setTimeout(false);a.setValue(c);return b.setUi(\"normal\")}}}},updateTimeout:function(b,a){if(b&&Ext.isBoolean(a)&&b!==a){return this.onTimeout()}},refreshAll:function(c){var a,b;a=Date.now();b=a-c;return this.setTime(b)",328986,13008,",\"break\"",395236,39,"reak\",a,b)},timeout",395236,38,"timeout\",a,b",342814,51,"break\",\"timeou",342039,33,"eady",342253,68,"RunningItem\"],xtype:\"ready\",config:{store:\"Ready",341586,408,",\"break\"",341950,36,342806,59,"start\"]",341421,36,343344,50,"RunningList\",\"FvTouch.view.Ready",342139,72,",{xtype:\"ready\"}],control:{runninglist:{refresh:\"onDataviewRefresh\"},ready:{refresh:\"onDataviewRefresh\"}}",316425,34,"this.onDataviewRefresh(this.child(\"runninglist\"));return this.onDataviewRefresh(this.child(\"ready\"))}}},onDataviewRefresh:function(a){if(a.getStore().getCount()){return a.show()}else{return a.hide()}",342212,9156,"div class=\\\"x-docking-horizontal\\\">\\n <div class='x-docked-left cmdtype {type}'></div>\\n <div class=\\\"x-body tasktitle\\\">{title}</div>\\n <div class='x-docked-right taskendtime'>{endtime:date('H:i:s')}</div>\\n</div>\",listeners:{itemdoubletap",341692,40,"dd\",a)}},bubbleEvents:[\"add\"]",351462,162,"type:g.type",351623,59,"g.ctime",351698,51,"type:\"",351747,42917,"this.initConfig(a);return this.init()},init:Ext.emptyFn",394690,4354,"filterFn:function(d){var a,c,b;c=d.get(\"type\");if(c===\"taskdone\"||c===\"postponetask\"){b=d",399111,70,"!a){return false}if(c===\"postponetask\"){return d.get(\"cdata\").task.status===\"running\"}else{return true}",399195,210,"FvTouch.store.Read",398926,32,"config:{store:\"Tasks\"",398690,36,"open",398733,35,",init:function(){var a;a=Ext.getStore(\"Preselecteds\");a.on({refresh:\"refreshData\",scope:this});return this.refreshData(a)},addOn",277883,32,"setData([a])}else{return this.clearData()}},refreshData:function(b){var c,a;c=b.first();if(c){a=Ext.getStore(\"Tasks\").getById(c.get(\"task_id\"));return this.addOne(a)}else{return this.addOne(null)}",399389,6387,",\"Sounds",405775,136,",\"Read",405909,577]
+["/*022eda3a66e9071b0bedd0435d39bd8357e275fd",42,214314,"if(!b",220795,68,"b.data.uid,title:b.data.title,info:b.data.info",214438,1144,"c){var e,h,f,a,d,i,b,g;g=Ext.getStore(\"Tasks\");b=g.findRecord(\"uid\",c.uid);a=c.title;if(Ext.isEmpty(a)){return false}f=c.info;i=b.get(\"title\");d=b.get(\"info\");if(a===i&&this.isEquals(f,d)){return false}h=this.getDelta(f,d);e={uid:c.uid,\"new\":{},old:{}};if(a!==i){e[\"new\"].title=a;e.old.title=i}if(h.xDelta){e[\"new\"].info=h.xDelta}if(h.yDelta){e.old.info=h.yDelta}return e},doImpl:function(){var c,f,d,a,b,e",215775,71,"e=c[\"new\"].title;if(e!==void 0){a.set(\"title\",e)}f=c[\"new\"].info;if(f){d=this.apply(a.get(\"info\"),f);a.set(\"info\",d)}",215876,43,"f,d,a,b,e",215775,71,"e=c.old.title;if(e!==void 0){a.set(\"title\",e)}f=c.old.info;if(f){d=this.apply(a.get(\"info\"),f);a.set(\"info\",d)}return a.save()},isEquals:function(a,b){if(a===b){return true}else{if(Ext.isPrimitive(a)){return false}else{if(Ext.isArray(a)){return Ext.isArray(b)&&this.isArrayEquals(a,b)}else{if(Ext.isEmpty(a)){return false}else{if(Ext.isDate(a)){return Ext.isDate(b)&&a.getTime()===b.getTime()}else{if(Ext.isFunction(a)){return Ext.isFunction(b)&&a.toString()===b.toString()}else{return Ext.isObject(b)&&this.isObjectEquals(a,b)}}}}}}},isArrayEquals:function(a,d){var b,c;if(a.length===d.length){for(b=0,c=length-1;0<=c?b<c:b>c;0<=c?b++:b--){if(!this.isEquals(a[b],d[b])){return false}}return true}else{return false}},isObjectEquals:function(a,h){var d,e,g,c,f,b;g=Ext.Object.getKeys(a);c=Ext.Object.getKeys(h);e=Ext.Array.merge(g,c);for(f=0,b=e.length;f<b;f++){d=e[f];if(!this.isEquals(a[d],h[d])){return false}}return true},getDelta:function(g,c){var k,i,j,b,h,d,f,a,e;if(!Ext.isObject(g)){g={}}if(!Ext.isObject(c)){c={}}h=Ext.Object.getKeys(g);f=Ext.Object.getKeys(c);j=Ext.Array.merge(h,f);b={};d={};k=false;for(a=0,e=j.length;a<e;a++){i=j[a];if(!this.isEquals(g[i],c[i])){b[i]=g[i];d[i]=c[i];k=true}}if(k){return{xDelta:b,yDelta:d}}else{return{}}},apply:function(c,d){var b,a;c||(c={});for(b in d){a=d[b];if(a===void 0){delete c[b]}else{c[b]=d[b]}}if(Ext.Object.getSize(c)){return c}else{return}",218029,33,"ostpon",214159,57,216131,144,"if(!b",220795,51,"if(!a){return false}",216311,97,"if(",216345,48,"&&Ext.getStore(\"TodosProxy\").last().getId()===a.getId()",216393,1776,"e){var d,b,g,a,f,c;c=Ext.getStore(\"Todos\");g=Ext.getStore(\"Tasks\");b=g.findRecord(\"uid\",e.uid);if(!b",220795,51,"if(!a||",218299,59,"f=Ext.getStore(\"TodosProxy\");d=f.first();if(d&&a.getId()===d.getId()){return false}return{uid:e",218370,195,"getId()",218572,369,"getId()",218572,71,"===e",217520,39,219062,321,"if(!b",220795,51,219419,1352,"!b",218317,41,221134,36,220846,3610,"var b,c;if(Ext.isEmpty(a.title)){return false}b=",224488,69,";c=this.normalize(a.info);if(c){b.info=c}return b",224557,166,"info:e.info",224722,331,",normalize:function(c){var b,a;for(b in c){a=c[b];if(a===void 0){delete c[b]}}if(Ext.Object.getSize(c)){return c}else{return}",225052,13786,",tagsButton:\"mytoolbar #tags",238837,53,",tags:\"onTags",238889,154,",onTags",238906,56,"Tags\").show()},launch:function(){var a;a=",238925,37,"Tags\");a.on({scope:this,change:\"changeTagsBadgeText\"});return this.changeTagsBadgeText(a.getTag())},changeTagsBadgeText:function(a){return this.getTagsButton().setBadgeText(a",239870,36,"AddTask",238719,66,239150,542,"f){var b,e,a,d,c;if(f){e=Ext.getStore(\"Tasks\");d=e.findRecord(\"uid\",f);if(d){c=Ext.clone(d.getData())}}else{a=",238925,37,"Tags\").getTag();if(a){c={info:{tags:[a]}}}}b=this.getPanel();if(!b",288880,33,"b)}if(c){b.setValues(c)}return b",239767,880,"controller.Tags",238719,41,"],config:{tag:window.localStorage.getItem(\"tag\"),views:[\"Tags\"],refs:{panel:{selector:\"tagspanel\",xtype:\"tags",240041,42,"hange:\"onChange\"}}},onChange:function(a,b){return this.setTag(b.tag)},show:function(){var a,b;b=this.getTags();if(Ext.Object.getSize(b)<=1){return}",239592,69,"if(!a.getParent()){Ext.Viewport.add(a)}a.setTags(this.getTags());a.setValue({tag:this.getTag()});return a.show()},getTags:function(){var a,b,c;c=Ext.getStore(\"Tasks\");b={\"\":0};a=this.getTag();if(!Ext.isEmpty(a)){b[a]=0}c.each(function(g){var h,d,j,f,i,e;if(g.data.info&&Ext.isArray(g.data.info.tags)&&g.data.info.tags.length){i=g.data.info.tags;e=[];for(j=0,f=i.length;j<f;j++){d=i[j];h=b[d];e.push(b[d]=h?h+1:1)}return e}else{return b[\"\"]=b[\"\"]+1}});return b",286356,32,"updateTag(this.getTag())},updateTag:function(a){var b;if(Ext.isEmpty(a)){window.localStorage.removeItem(\"tag\")}else{window.localStorage.setItem(\"tag\",a)}b=",238925,37,"TaskFilter\");if(b){b.setFilterFn(this.generateFilterFn(a))}return this.fireEvent(\"change\",a)},generateFilterFn:function(a){if(Ext.isEmpty(a)){return function(){return true}}else{return function(b){return b.data.info&&Ext.isArray(b.data.info.tags)&&Ext.Array.contains(b.data.info.tags,a)}}",240623,173,"itemId:\"add\"},{iconCls:\"tags\",itemId:\"tags\"},{iconCls:\"reply\",itemId",240833,58,"#add\":{ta",344014,36,"add\")}},\"#undo\":{ta",344014,36,"undo\")}},\"#tags\":{ta",344014,36,"tags\")}}}",218029,32,241048,3971,"FvTouch.field.Tags",233524,35,"agsfield\",applyValue:function(a){if(Ext.isArray(a)){return a}else{if(Ext.isEmpty(a)){return[]}else{return[a.toString()]}",230815,32,";if(!Ext.isArray(b)){Ext.Logger.error(\"value of tagsfield should be an array\")}a=b.join(\", \");return this.callParent([a])},getValue:function(){var a,b;b=this.callParent();a=Ext.Array.map(b.split(\",\"),function(c){return c.trim()});a=Ext.Array.filter(a,function(c){return !Ext.isEmpty(c)});a=Ext.Array.unique(a);if(a.length){return a}else{return}}});Ext.define(\"Ext.Media",277241,33,"media\",config:{url:\"\",enableControls:Ext.os.is.Android?false:true,autoResume:false,autoPause:true,preload:true,loop:false,media:null,volume:1,muted:false",257968,52,"on({scope:a,activate:a.onActivate,deactivate:a.onDeactivate});a.addMediaListener({canplay:\"onCanPlay\",play:\"onPlay\",pause:\"onPause\",ended:\"onEnd\",volumechange:\"onVolumeChange\",timeupdate:\"onTimeUpdate\"})},addMediaListener:function(d,b){var c=this,e=c.media.dom,f=Ext.Function.bind;if(!Ext.isObject(d)){var a=d;d={};d[a]=b}Ext.Object.each(d,function(h,g){if(typeof g!==\"function\"){g=c[g]}if(typeof g==\"function\"){g=f(g,c);e.addEventListener(h,g)}})},onPlay:function(){this.fireEvent(\"play\",this)},onCanPlay:function(){this.fireEvent(\"canplay\",this)},onPause:function(){this.fireEvent(\"pause\",this,this.getCurrentTime())},onEnd:function(){this.fireEvent(\"ended\",this,this.getCurrentTime())},onVolum",193887,35,"volumechange\",this,this.media.dom.volume)},onTimeUpdate:function(){this.fireEvent(\"timeupdate\",this,this.getCurrentTime())},isPlaying:function(){return !Boolean(this.media.dom.paused)},onActivate:function(){var a=this;if(a.getAutoResume()&&!a.isPlaying()){a.play()}},onDeactivate:function(){var a=this;if(a.getAutoResume()&&a.isPlaying()){a.pause()}},updateUrl:function(a){var b=this.media.dom;b.src=a;if(\"load\" in b){b.load()}if(this.isPlaying()){this.play()}},updateEnableControls:function(a){this.media.dom.controls=a?\"controls\":false},updateLoop:function(a){this.media.dom.loop=a?\"loop\":false},play:function(){var a=this.media.dom;if(\"play\" in a){a.play();setTimeout(function(){a.play()},10)}},pause:function(){var a=this.media.dom;if(\"pause\" in a){a.pause()}},toggle:function(){if(this.isPlaying()){this.pause()}else{this.play()}},stop:function(){var a=this;a.setCurrentTime(0);a.fireEvent(\"stop\",a);a.pause()},updateVolume:function(a){this.media.dom.volume=a},updateMuted:function(a){this.fireEvent(\"mutedchange\",this,a);this.media.dom.muted=a},getCurrentTime:function(){return this.media.dom.currentTime},setCurrentTime:function(a){this.media.dom.currentTime=a;return a},getDuration:function(){return this.media.dom.duration",375130,32,"Ext.Object.each(event,function(c,b){if(typeof b!==\"function\"){b=a[b]}if(typeof b==\"function\"){b=bind(b,a);dom.removeEventListener(c,b)}})",245003,43032,"Ext.getStore(\"TasksProxy\").refresh();",288035,1939,289981,92,";",292544,44,"TaskFilter\").on({update:\"refresh\",scope:this",288012,44,290115,337,"timeout:\"onTimeou",287808,107,289981,40,290580,857,289981,48,293591,62,";",292544,44,"TaskFilter\").on({update:\"refresh\",scope:this",291552,200,"b,c){var a,g,f,e,d;d=b.get(\"uid\");e=Ext.getStore(\"Timers\");g=e.findRecord(\"uid\",d);if(g){f=g",291842,38,"e.add({uid:d,time:b.get(\"starttime\"),type:\"go\"});f=\"break\"}e.add({uid:d,time:Date.now(),type:f});if(!c.getTimeout()){a=",238925,37,"Sounds\");if(f===\"go\"){a.play(\"starttask\")}else{a.play(\"break\")}}return c.updateTimer(b)},onTimeout:function(b,c){var a,d;d=c.getTimerType();a=",238925,37,"Sounds\");if(d===\"go\"){return a.play(\"break\")}else{return a.play(\"starttask\")}",292000,1520,"config:{refs:{historyview:\"historyview\"},control:{historyview:{add:\"showAddPanel",290519,61,293583,70,";",292544,44,"TaskFilter\").on({update:\"refresh\",scope:this",291552,56,"a===\"taskdone\"||a===\"postponetask",293710,87,",showAddPanel:function(a){var b,c;c=a.data.cdata.task.uid;b",399135,40,"c);if(!b){return}",292544,44,"AddTask\").show(c)}});Ext.define(\"Ext.Audio\",{extend:\"Ext.Media\",xtype:\"audio\"",76282,32,"audio\"},onActivat",230367,39,"if(Ext.os.is.Phone){a.element.show()}},onDeactivat",230367,39,"if(Ext.os.is.Phone){a.element.hide()}},template:[{reference:\"media\",preload:\"auto\",tag:\"audio\",cls:Ext.baseCSSPrefix+\"component\"}]",239872,34,"Sounds",238719,42,"Ext.Audio\",",293486,34,"sounds:{}",293519,65,"playIfRelated\",undo:function(){return this.play(\"undo\")},scope:this})},createTryPlayFun:function(a,d,c){var b;if(c==null){c=3000}b=new RegExp(\"^\"+a+\"[1-\"+d+\"]$\");return function(g,e){var f;if(e<c&&b.test(g)){f=parseInt(g.substr(a.length));if(f<d){f=f+1}return a+f}else{return a+\"1\"}}},createPreselectTryPlayFun:function(c){var a,b;b=/^preselect[1-8]$/;a=\"preselect\";return function(f,d){var e;if(d<3000&&b.test(f)){e=parseInt(f.substr(9));if(c&&e>1){e=e-1}else{if(e<8){e=e+1}}return a+e}else{return a+\"1\"}}},play",291563,45,"a===\"taskdone\"){if(!this._taskdoneTryPlayFun){this._taskdoneTryPlayFun=this.createTryPlayFun(\"taskdone\",8)}return this.tryPlay(this._taskdoneTryPlayFun)}else{if(a===\"postponetask\"){return this.play(\"postponetask\")}else{if(a===\"starttask\"){return this.play(\"starttask\")}else{if(a===\"deletetask\"){return this.play(\"deletetask\")}else{if(a===\"addtask\"){return this.play(\"addtask\")}else{if(a===\"edittask\"){return this.play(\"edittask\")}else{if(a===\"preselect\"){return this.tryPlay(this.createPreselectTryPlayFun(b.getCdata().preselected))}}}}}}}},tryPlay:function(a){var b;b=a(this.prename,Date.now()-this.pretime);if(b){return this.play(b)}},play:function(a){var b;b=this.sounds[a];if(!b){b=this.createSound(a);this.sounds[a]=b}if(this.prename){this.sounds[this.prename].stop()}b.play();this.prename=a;return this.pretime=Date.now()},createSound:function(b){var a;a=\"resources/sounds/\"+b+\".m4a\";return Ext.Viewport.add({xtype:\"audio\",hidden:true,url:a}",293795,22280,",\"FvTouch.field.Tags\"],config:{values:void 0,showA",303597,34,316124,298,",",316363,34,"agsfield\",name:\"tags\",label:\"Tags",316418,267,"applyValues:function(a){if(a===void 0||a===null){return a}else{return Ext.apply(a.info||{},{title:a.title})}},getValues:function(){var b,a;a=",316713,35,";b=a.title;delete a.title;return{title:b,info:a}},update",316753,820,"if(a){this.setUid(a.uid",107504,55,317645,9016,"timerType:\"go\",time:null,timeout:null,",326661,858,327542,245,"Timeout",344015,35,"timeout",327759,298,"b){var e,a,g,f,d,c;if(b==null){b=this.getRecord()",328255,42,"a=b.get(\"status\");if(a===\"open\"){this.setTimerType(\"ready\");this.setTime(0);return}c=b",291772,37,"g=d.findRecord(\"uid\",c);if(g){f=g.get(\"time\");this.setTimerType(g.get(\"type\"))}else{f=b",328217,32,"this.setTimerType(\"go\")}e",328298,47,"e.refreshAll(",328360,33,328395,118,"updateTime:function(d){var b,a,c",328551,61,"a.setText(this.timeText(d));if(this.getTimerType()===\"ready\"){this.setTimeout(false);if(a){a.hide()}b.setIconCls(\"play1",328746,34,"if(this.getTimerType()===\"go\"){c=d",328675,32,"c>100){this.setTimeout(true);",328714,66,"this.setTimeout(false);a.setValue(c",328792,47,"c=100-d",328846,50,"c<0){this.setTimeout(true);",328901,45,"this.setTimeout(false);a.setValue(c);return b.setUi(\"normal\")}}}},updateTimeout:function(b,a){if(b&&Ext.isBoolean(a)&&b!==a){return this.onTimeout()}},refreshAll:function(c){var a,b;a=Date.now();b=a-c;return this.setTime(b)",328986,13008,",\"break\"",395236,39,"reak\",a,b)},timeout",395236,38,"timeout\",a,b",342814,51,"break\",\"timeou",342039,33,"eady",342253,68,"RunningItem\"],xtype:\"ready\",config:{store:\"Ready",341586,408,",\"break\"",341950,36,342806,59,"start\"]",341421,36,343344,50,"RunningList\",\"FvTouch.view.Ready",342139,72,",{xtype:\"ready\"}],control:{runninglist:{refresh:\"onDataviewRefresh\"},ready:{refresh:\"onDataviewRefresh\"}}",316425,34,"this.onDataviewRefresh(this.child(\"runninglist\"));return this.onDataviewRefresh(this.child(\"ready\"))}}},onDataviewRefresh:function(a){if(a.getStore().getCount()){return a.show()}else{return a.hide()}",342212,9156,"div class=\\\"x-docking-horizontal\\\">\\n <div class='x-docked-left cmdtype {type}'></div>\\n <div class=\\\"x-body tasktitle\\\">{title}</div>\\n <div class='x-docked-right taskendtime'>{endtime:date('H:i:s')}</div>\\n</div>\",listeners:{itemdoubletap",341692,40,"dd\",a)}},bubbleEvents:[\"add\"]",351462,162,"type:g.type",351623,59,"g.ctime",351698,51,"type:\"",351747,42917,"this.initConfig(a);return this.init()},init:Ext.emptyFn",394690,3269,"TasksProx",398926,32,"config:{store:\"Task",398857,57,"controller.TaskFilte",238718,51,"store.TasksProxy\"],config:{filterFn:function(){return true}},updateFilterFn:function(a){var b;b=Ext.getStore(\"TasksProxy\");if(b){b.clearFilter(true);b.setFilters([{filterFn:a}]);",288042,37,"return this.fireEvent(\"update\",a)",398767,93,"filters:[{filterFn:function(b){var a,c;c=Ext.getStore(\"TasksProxy\");a=c.getById(b.get(\"task_id\"));return !Ext.isEmpty(a)}}]",398859,61,397959,511,"d){var a,c,b;b=Ext.getStore(\"TodosProxy\");if(b.getCount()&&b.getById(d.getId())&&(d.data.preselected||d.getId()===b.first().getId())){return true}else{c=Ext.getStore(\"Tasks\");a=c.getById(d.get(\"task_id\"));return a&&a.get(\"status\")===\"running\"}}}]",398859,61,398580,217,398920,124,"filterFn:function(d){var a,c,b;c=d.get(\"type\");if(c===\"taskdone\"||c===\"postponetask\"){b=d",399111,44,"Proxy\").findRecord(\"uid\",b);if(!a){return false}if(c===\"postponetask\"){return d.get(\"cdata\").task.status===\"running\"}else{return true}",399195,210,"FvTouch.store.Read",398926,32,"config:{store:\"Tasks\"",398690,36,"open",398733,35,",init:function(){var a;a=Ext.getStore(\"Preselecteds\");a.on({refresh:\"refreshData\",scope:this});return this.refreshData(a)},addOn",277883,32,"setData([a])}else{return this.clearData()}},refreshData:function(b){var c,a;c=b.first();if(c){a=Ext.getStore(\"Tasks\").getById(c.get(\"task_id\"));return this.addOne(a)}else{return this.addOne(null)}",399389,4244,"info",403623,1056,"picker.Slot",342253,34,"xtype:\"pickerslot\",alternateClassName:\"Ext.Picker.Slot",311181,33,"data.Store\",\"Ext.Component\",\"Ext.data.StoreManager\"],isSlot:true,config:{title:null,showTitle:true,cls:Ext.baseCSSPrefix+\"picker-slot\",name:null,value:null,flex:1,align:\"left\",displayField:\"text\",valueField:\"value\",scrollable:{direction:\"vertical\",indicators:false,momentumEasing:{minVelocity:2},slotSnapEasing:{duration:100}}",269958,38,"Index=0",270027,34,"Title:function(a){if(a){a=Ext.create(\"Ext.Component\",{cls:Ext.baseCSSPrefix+\"picker-slot-title\",docked:\"top\",html:a})}return a",244666,45,";this.setupBar()}if(a){this.remove(a)}},updateShowTitle:function(a){var b=this.getTitle();if(b){b[a?\"show\":\"hide\"]();this.setupBar()}},updateDisplayField:function(a){this.setItemTpl('<div class=\"'+Ext.baseCSSPrefix+'picker-item {cls} <tpl if=\"extra\">'+Ext.baseCSSPrefix+'picker-invalid</tpl>\">{'+a+\"}</div>\")},updateAlign:function(a,c){var b=this.element;b.addCls(Ext.baseCSSPrefix+\"picker-\"+a);b.removeCls(Ext.baseCSSPrefix+\"picker-\"+c)},applyData:function(d){var f=[],c=d&&d.length,a,b,e;if(d&&Ext.isArray(d)&&c){for(a=0;a<c;a++){b=d[a];e={};if(Ext.isArray(b)){e[this.valueField]=b[0];e[this.displayField]=b[1]}else{if(Ext.isString(b)){e[this.valueField]=b;e[this.displayField]=b}else{if(Ext.isObject(b)){e=b}}}f.push(e)}}return d},updateData:function(",338406,46,"fields:[\"text\",\"value\"],data:a})",331422,43,"var a=this.getScrollable().getScroller();this.on({scope:this,painted:\"onPainted\",itemtap:\"doItemTap\"});a.on({scope:this,scrollend:\"onScrollEn",119325,32,"setupBar()},getPicker:function(){if(!this.picker){this.picker=this.getParent()}return this.picker},setupBa",179886,32,"return}var a=this.element,e=this.innerElement,f=this.getPicker(),g=f.bar,k=this.getValue(),b=this.getShowTitle(),j=this.getTitle(),h=this.getScrollable(),d=h.getScroller(),c=0,l,i;l=g.getHeight();if(b&&j){c=j.element.getHeight()}i=Math.ceil((a.getHeight()-c-l)/2);e.setStyle({padding:i+\"px 0 \"+(i)+\"px\"});d.refresh();d.setSlotSnapSize(l);this.setValue(k)},doItemTap:function(d,a,c,f){var b=this;b.selectedIndex=a;b.selectedNode=c;b.scrollToItem(c,true);b.fireEvent(\"slotpick\",b,b.getValue(true),b.selectedNode)},scrollToItem:function(e,d){var h=e.getY(),c=e.parent(),f=c.getY(),b=this.getScrollable(),a=b.getScroller(),g;g=h-f;a.scrollTo(0,g,d)},onScrollEnd:function(b,a,g){var f=this,d=Math.round(g/f.picker.bar.getHeight()),c=f.getViewItems(),e=c[d];if(e){f.selectedIndex=d;f.selectedNode=e;f.fireEvent(\"slotpick\",f,f.getValue(),f.selectedNode)}},getValue:function(c){var b=this.getStore(),a,d;if(!b){return}if(!this.rendered||!c){return this._value}if(this._value===false){return null}a=b.getAt(this.selectedIndex);d=a?a.get(this.getValueField()):null;return d},setValue:function(f){if(!Ext.isDefined(f)){return}if(!this.rendered||!f){this._value=f;return}var b=this.getStore(),a=this.getViewItems(),d=this.getValueField(),c,e;c=b.find(d,f);if(c!=-1){e=Ext.get(a[c]);this.selectedIndex=c;this.scrollToItem(e);this._value=f}},setValueAnimated:function(f){if(!f){return}if(!this.rendered){this._value=f;return}var b=this.getStore(),a=this.getViewItems(),d=this.getValueField(),c,e;c=b.find(d,f);if(c!=-1){e=Ext.get(a[c]);this.selectedIndex=c;this.scrollToItem(e,{duration:100});this._value=f}}});Ext.define(\"Ext.picker.Picker",241578,36,"picker\",alternateClassName:\"Ext.Picker\",requires:[\"Ext.picker.Slot\",\"Ext.Toolbar\",\"Ext.data.Model\"],isPicker:true",76282,32,"picker\",doneButton:true,cancelButton:true,useTitles:false,slots:null,value:null,height:220,layout:{type:\"hbox\",align:\"stretch\"},centered:false,left:0,right:0,bottom:0,defaultType:\"pickerslot\",toolbar:true},initElement",100382,39,"var b=this,a=Ext.baseCSSPrefix,c=this.innerElement;this.mask=c.createChild({cls:a+\"picker-mask\"});this.bar=this.mask.createChild({cls:a+\"picker-bar\"});b.on({scope:this,delegate:\"pickerslot\",slotpick:\"onSlotPick\"});b.on({scope:this,show:\"onShow\"})},applyToolb",304621,33,"Ext.applyIf(a,{docked:\"top\"});return Ext.factory(a,\"Ext.TitleBar\",this.getToolbar())},updateToolbar",237153,56,"applyDoneButton:function(a){if(a){if(Ext.isBoolean(a)){a={}}if(typeof a==\"string\"){a={text:a}}Ext.applyIf(a,{ui:\"action\",align:\"right\",text:\"Done\"})}return Ext.factory(a,\"Ext.Button\",this.getDoneButton())},updateDoneButton:function(c,a){var b=this.getToolbar();if(c){b.add(c);c.on(\"tap\",this.onDoneButtonTap,this)}else{if(a){b.remove(a)}}},applyCancelButton:function(a){if(a){if(Ext.isBoolean(a)){a={}}if(typeof a==\"string\"){a={text:a}}Ext.applyIf(a,{align:\"left\",text:\"Cancel\"})}return Ext.factory(a,\"Ext.Button\",this.getCancelButton())},updateCancelButton:function(b,a){var c=this.getToolbar();if(b){c.add(b);b.on(\"tap\",this.onCancelButtonTap,this)}else{if(a){c.remove(a)}}},updateUseTitles:function(d){var f=this.getInnerItems(),e=f.length,a=Ext.baseCSSPrefix+\"use-titles\",c,b;if(d",229600,40,"for(c=0;c<e;c++){b=f[c];if(b.isSlot){b.setShowTitle(d)}}},applySlots:function(b){if(b){var c=b.length,a;for(a=0;a<c;a++){b[a].picker=this}}return b},updateSlots:function(a){var b=Ext.baseCSSPrefix,c;this.removeAll();if(a){this.add(a)}c=this.getInnerItems();if(c.length>0){c[0].addCls(b+\"first\");c[c.length-1].addCls(b+\"last\")}this.updateUseTitles(this.getUseTitles())},onDoneButtonTap:function(){var a=this._value,b=this.getValue(true);if(b!=a){this.fireEvent(\"change\",this,b)}this.hide()},onCancelButtonTap:function(){this.fireEvent(\"cancel\",this);this.hide()},onSlotP",213693,32,"pick\",this,this.getValue(true),a)},onShow:function(){if(!this.isHidden()){this.setValue(this._value)}},setValue:function(k,a){var f=this,d=f.getInnerItems(),e=d.length,j,h,c,b,g;if(!k){k={};for(b=0;b<e;b++){k[d[b].config.name]=null}}for(j in k){g=k[j];for(b=0;b<d.length;b++){c=d[b];if(c.config.name==j){h=c;break}}if(h){if(a){h.setValueAnimated(g)}else{h.setValue(g)}}}f._values=f._value=k;return f},setValueAnimated:function(a){this.setValue(a,true)},getValue:function(c){var b={},a=this.getItems().items,f=a.length,e,d;if(c){for(d=0;d<f;d++){e=a[d];if(e&&e.isSlot){b[e.getName()]=e.getValue(c)}}this._values=b}return this._values",316683,35,"getValue(",69768,38,");Ext.destroy(this.mask,this.bar)",315895,42,"Tags\",{extend:\"Ext.picker.Picker\",xtype:\"tagspanel\",config:{tags:{},hideOnMaskTap:true},updateTags:function(c){var d,b,a;d=(function(){var e;e=[];for(b in c){a=c[b];e.push({text:b,value:a})}return e})();d=Ext.Array.sort(d,function(e,f){if(Ext.isEmpty(e.text)){return -1}else{if(Ext.isEmpty(f.text)){return 1}else{return f.value-e.value}}});return this.setSlots({name:\"tag\",data:Ext.Array.map(d,function(e){return{text:e.text,value:e.text}})})",404659,1032,"askFilter",405687,89,",\"Sounds\",\"Tags",405775,80,"TasksProxy\",\"TodosProxy",405852,38,"History\",\"Read",405909,577]
2  deltas/app.js/239c763aa522e84d8f65e01565d02ebe41c3a34c.json
View
@@ -1 +1 @@
-["/*e98e3e743a2813f1f95750e291a0b5256828bd6a",42,293006,290387,36,290430,40,293108,5825,"Ext.Viewport.add({xtype:\"audio\",hidden:true,",298948,33768,332749,592,"b){var e,a,g,f,d,c;if(b==null){b=this.getRecord(",333570,43,"a=b.get(\"status\");if(a===\"open\"){this.setTimerType(\"ready\");this.setTime(0);return}c=b.get(\"uid\");d=Ext.getStore(\"Timers\");g=d.findRecord(\"uid\",c);if(g){f=g.get(\"time\");this.setTimerType(g.get(\"type\"))}else{f=b.get(\"starttime\");if(!f",333539,33,"e",333614,47,"e.refreshAll(f",333675,32,"f",333708,264,"ready\"){this.setTimeout(false);if(a){a.hide()}b.setIconCls(\"play1\"",334285,33,333946,436,334381,13167,",\"break\"",401019,39,"reak\",a,b)},timeout",401019,38,"timeout\",a,b",348368,51,"break\",\"timeou",347593,33,"eady",347807,68,"RunningItem\"],xtype:\"ready\",config:{store:\"Ready",347140,408,",\"break\"",347504,36,348360,59,"start\"]",346975,36,347632,62,",\"FvTouch.view.Ready",347693,72,",{xtype:\"ready\"}],control:{runninglist:{refresh:\"onDataviewRefresh\"},ready:{refresh:\"onDataviewRefresh\"}}",321584,34,"this.onDataviewRefresh(this.child(\"runninglist\"));return this.onDataviewRefresh(this.child(\"ready\"))}}},onDataviewRefresh:function(a){if(a.getStore().getCount()){return a.show()}else{return a.hide()}",347766,52681,"this.initConfig(a);return this.init()},init:Ext.emptyFn",400473,4826,"FvTouch.store.Read",404589,48,"asks\"",404473,36,"open",404516,35,",init:function(){var a;a=Ext.getStore(\"Preselecteds\");a.on({refresh:\"refreshData\",scope:this});return this.refreshData(a)},addOn",280391,32,"setData([a])}else{return this.clearData()}},refreshData:function(b){var c,a;c=b.first();if(c){a=Ext.getStore(\"Tasks\").getById(c.get(\"task_id\"));return this.addOne(a)}else{return this.addOne(null)}",405283,6531,",\"Read",411812,577]
+["/*022eda3a66e9071b0bedd0435d39bd8357e275fd",42,214314,"if(!b",220795,68,"b.data.uid,title:b.data.title,info:b.data.info",214438,1144,"c){var e,h,f,a,d,i,b,g;g=Ext.getStore(\"Tasks\");b=g.findRecord(\"uid\",c.uid);a=c.title;if(Ext.isEmpty(a)){return false}f=c.info;i=b.get(\"title\");d=b.get(\"info\");if(a===i&&this.isEquals(f,d)){return false}h=this.getDelta(f,d);e={uid:c.uid,\"new\":{},old:{}};if(a!==i){e[\"new\"].title=a;e.old.title=i}if(h.xDelta){e[\"new\"].info=h.xDelta}if(h.yDelta){e.old.info=h.yDelta}return e},doImpl:function(){var c,f,d,a,b,e",215775,71,"e=c[\"new\"].title;if(e!==void 0){a.set(\"title\",e)}f=c[\"new\"].info;if(f){d=this.apply(a.get(\"info\"),f);a.set(\"info\",d)}",215876,43,"f,d,a,b,e",215775,71,"e=c.old.title;if(e!==void 0){a.set(\"title\",e)}f=c.old.info;if(f){d=this.apply(a.get(\"info\"),f);a.set(\"info\",d)}return a.save()},isEquals:function(a,b){if(a===b){return true}else{if(Ext.isPrimitive(a)){return false}else{if(Ext.isArray(a)){return Ext.isArray(b)&&this.isArrayEquals(a,b)}else{if(Ext.isEmpty(a)){return false}else{if(Ext.isDate(a)){return Ext.isDate(b)&&a.getTime()===b.getTime()}else{if(Ext.isFunction(a)){return Ext.isFunction(b)&&a.toString()===b.toString()}else{return Ext.isObject(b)&&this.isObjectEquals(a,b)}}}}}}},isArrayEquals:function(a,d){var b,c;if(a.length===d.length){for(b=0,c=length-1;0<=c?b<c:b>c;0<=c?b++:b--){if(!this.isEquals(a[b],d[b])){return false}}return true}else{return false}},isObjectEquals:function(a,h){var d,e,g,c,f,b;g=Ext.Object.getKeys(a);c=Ext.Object.getKeys(h);e=Ext.Array.merge(g,c);for(f=0,b=e.length;f<b;f++){d=e[f];if(!this.isEquals(a[d],h[d])){return false}}return true},getDelta:function(g,c){var k,i,j,b,h,d,f,a,e;if(!Ext.isObject(g)){g={}}if(!Ext.isObject(c)){c={}}h=Ext.Object.getKeys(g);f=Ext.Object.getKeys(c);j=Ext.Array.merge(h,f);b={};d={};k=false;for(a=0,e=j.length;a<e;a++){i=j[a];if(!this.isEquals(g[i],c[i])){b[i]=g[i];d[i]=c[i];k=true}}if(k){return{xDelta:b,yDelta:d}}else{return{}}},apply:function(c,d){var b,a;c||(c={});for(b in d){a=d[b];if(a===void 0){delete c[b]}else{c[b]=d[b]}}if(Ext.Object.getSize(c)){return c}else{return}",218029,33,"ostpon",214159,57,216131,144,"if(!b",220795,51,"if(!a){return false}",216311,97,"if(",216345,48,"&&Ext.getStore(\"TodosProxy\").last().getId()===a.getId()",216393,1776,"e){var d,b,g,a,f,c;c=Ext.getStore(\"Todos\");g=Ext.getStore(\"Tasks\");b=g.findRecord(\"uid\",e.uid);if(!b",220795,51,"if(!a||",218299,59,"f=Ext.getStore(\"TodosProxy\");d=f.first();if(d&&a.getId()===d.getId()){return false}return{uid:e",218370,195,"getId()",218572,369,"getId()",218572,71,"===e",217520,39,219062,321,"if(!b",220795,51,219419,1352,"!b",218317,41,221134,36,220846,3610,"var b,c;if(Ext.isEmpty(a.title)){return false}b=",224488,69,";c=this.normalize(a.info);if(c){b.info=c}return b",224557,166,"info:e.info",224722,331,",normalize:function(c){var b,a;for(b in c){a=c[b];if(a===void 0){delete c[b]}}if(Ext.Object.getSize(c)){return c}else{return}",225052,13786,",tagsButton:\"mytoolbar #tags",238837,53,",tags:\"onTags",238889,154,",onTags",238906,56,"Tags\").show()},launch:function(){var a;",294527,39,"Tags\");a.on({scope:this,change:\"changeTagsBadgeText\"});return this.changeTagsBadgeText(a.getTag())},changeTagsBadgeText:function(a){return this.getTagsButton().setBadgeText(a",239984,36,"AddTask",238719,66,239150,542,"f){var b,e,a,d,c;if(f){e=Ext.getStore(\"Tasks\");d=e.findRecord(\"uid\",f);if(d){c=Ext.clone(d.getData())}}else",294526,40,"Tags\").getTag();if(a){c={info:{tags:[a]}}}}b=this.getPanel();if(!b",240572,33,"b)}if(c){b.setValues(c)}return b",239881,880,"controller.Tags",238719,41,"],config:{tag:window.localStorage.getItem(\"tag\"),views:[\"Tags\"],refs:{panel:{selector:\"tagspanel\",xtype:\"tags",240155,42,"hange:\"onChange\"}}},onChange:function(a,b){return this.setTag(b.tag)},show:function(){var a,b;b=this.getTags();if(Ext.Object.getSize(b)<=1){return}",240361,69,"if(!a.getParent()){Ext.Viewport.add(a)}a.setTags(this.getTags());a.setValue({tag:this.getTag()});return a.show()},getTags:function(){var a,b,c;c=Ext.getStore(\"Tasks\");b={\"\":0};a=this.getTag();if(!Ext.isEmpty(a)){b[a]=0}c.each(function(g){var h,d,j,f,i,e;if(g.data.info&&Ext.isArray(g.data.info.tags)&&g.data.info.tags.length){i=g.data.info.tags;e=[];for(j=0,f=i.length;j<f;j++){d=i[j];h=b[d];e.push(b[d]=h?h+1:1)}return e}else{return b[\"\"]=b[\"\"]+1}});return b",288864,32,"updateTag(this.getTag())},updateTag:function(a){var b;if(Ext.isEmpty(a)){window.localStorage.removeItem(\"tag\")}else{window.localStorage.setItem(\"tag\",a)}b",294528,38,"TaskFilter\");if(b){b.setFilterFn(this.generateFilterFn(a))}return this.fireEvent(\"change\",a)},generateFilterFn:function(a){if(Ext.isEmpty(a)){return function(){return true}}else{return function(b){return b.data.info&&Ext.isArray(b.data.info.tags)&&Ext.Array.contains(b.data.info.tags,a",349996,32,240766,144,"itemId:\"add\"},{iconCls:\"tags\",itemId:\"tags\"},{iconCls:\"reply\",itemId",240947,58,"#add",321775,41,"add\")}},\"#undo",321775,41,"undo\")}},\"#tags",321775,41,"tags\")}}}",218029,32,241162,3971,"FvTouch.field.Tags",233524,35,"agsfield\",applyValue:function(a){if(Ext.isArray(a)){return a}else{if(Ext.isEmpty(a)){return[]}else{return[a.toString()]}",230815,32,";if(!Ext.isArray(b)){Ext.Logger.error(\"value of tagsfield should be an array\")}a=b.join(\", \");return this.callParent([a])},getValue:function(){var a,b;b=this.callParent();a=Ext.Array.map(b.split(\",\"),function(c){return c.trim()});a=Ext.Array.filter(a,function(c){return !Ext.isEmpty(c)});a=Ext.Array.unique(a);if(a.length){return a}else{return",245116,45427,"Ext.getStore(\"TasksProxy\").refresh();",290543,1939,290430,92,";",291998,44,"TaskFilter\").on({update:\"refresh\",scope:this})",296672,42,292623,425,290387,36,290430,40,293108,857,290430,48,294020,62,";",291998,44,"TaskFilter\").on({update:\"refresh\",scope:this",294080,2363,290430,48,294020,62,";",291998,44,"TaskFilter\").on({update:\"refresh\",scope:this",294080,56,296614,2319,"Ext.Viewport.add({xtype:\"audio\",hidden:true,",298948,22286,",\"FvTouch.field.Tags\"],config:{values:void 0,",321244,337,",",321522,34,"agsfield\",name:\"tags\",label:\"Tags",321577,267,"applyValues:function(a){if(a===void 0||a===null){return a}else{return Ext.apply(a.info||{},{title:a.title})}},getValues:function(){var b,a;a=",321872,35,";b=a.title;delete a.title;return{title:b,info:a}},update",321912,820,"if(a){this.setUid(a.uid",107504,55,322804,9912,332749,592,"b){var e,a,g,f,d,c;if(b==null){b=this.getRecord(",333570,43,"a=b.get(\"status\");if(a===\"open\"){this.setTimerType(\"ready\");this.setTime(0);return}c=b.get(\"uid\");d=Ext.getStore(\"Timers\");g=d.findRecord(\"uid\",c);if(g){f=g.get(\"time\");this.setTimerType(g.get(\"type\"))}else{f=b.get(\"starttime\");if(!f",333539,33,"e",333614,47,"e.refreshAll(f",333675,32,"f",333708,264,"ready\"){this.setTimeout(false);if(a){a.hide()}b.setIconCls(\"play1\"",334285,33,333946,436,334381,13167,",\"break\"",401019,39,"reak\",a,b)},timeout",401019,38,"timeout\",a,b",348368,51,"break\",\"timeou",347593,33,"eady",347807,68,"RunningItem\"],xtype:\"ready\",config:{store:\"Ready",347140,408,",\"break\"",347504,36,348360,59,"start\"]",346975,36,347632,62,",\"FvTouch.view.Ready",347693,72,",{xtype:\"ready\"}],control:{runninglist:{refresh:\"onDataviewRefresh\"},ready:{refresh:\"onDataviewRefresh\"}}",321584,34,"this.onDataviewRefresh(this.child(\"runninglist\"));return this.onDataviewRefresh(this.child(\"ready\"))}}},onDataviewRefresh:function(a){if(a.getStore().getCount()){return a.show()}else{return a.hide()}",347766,52681,"this.initConfig(a);return this.init()},init:Ext.emptyFn",400473,3269,"Task",404584,53,"ask",404640,57,"controller.TaskFilte",238718,51,"store.TasksProxy\"],config:{filterFn:function(){return true}},updateFilterFn:function(a){var b;b=Ext.getStore(\"TasksProxy\");if(b){b.clearFilter(true);b.setFilters([{filterFn:a}]);",290550,37,"return this.fireEvent(\"update\"",398606,34,404581,62,"filters:[{filterFn:function(b){var a,c;c=Ext.getStore(\"TasksProxy\");a=c.getById(b.get(\"task_id\"));return !Ext.isEmpty(a)",404299,64,403742,511,"d){var a,c,b;b=Ext.getStore(\"TodosProxy\");if(b.getCount()&&b.getById(d.getId())&&(d.data.preselected||d.getId()===b.first().getId())){return true}else{c=Ext.getStore(\"Tasks\");a=c.getById(d.get(\"task_id\"));return a&&a.get(\"status\")===\"running\"}",404299,281,404703,257,"Proxy",404960,339,"FvTouch.store.Read",404589,48,"asks\"",404473,36,"open",404516,35,",init:function(){var a;a=Ext.getStore(\"Preselecteds\");a.on({refresh:\"refreshData\",scope:this});return this.refreshData(a)},addOn",280391,32,"setData([a])}else{return this.clearData()}},refreshData:function(b){var c,a;c=b.first();if(c){a=Ext.getStore(\"Tasks\").getById(c.get(\"task_id\"));return this.addOne(a)}else{return this.addOne(null)}",405283,4244,"info",409517,1056,"picker.Slot",347807,34,"xtype:\"pickerslot\",alternateClassName:\"Ext.Picker.Slot",316340,33,"data.Store\",\"Ext.Component\",\"Ext.data.StoreManager\"],isSlot:true,config:{title:null,showTitle:true,cls:Ext.baseCSSPrefix+\"picker-slot\",name:null,value:null,flex:1,align:\"left\",displayField:\"text\",valueField:\"value\",scrollable:{direction:\"vertical\",indicators:false,momentumEasing:{minVelocity:2},slotSnapEasing:{duration:100}}",272466,38,"Index=0",272535,34,"Title:function(a){if(a){a=Ext.create(\"Ext.Component\",{cls:Ext.baseCSSPrefix+\"picker-slot-title\",docked:\"top\",html:a})}return a",244780,45,";this.setupBar()}if(a){this.remove(a)}},updateShowTitle:function(a){var b=this.getTitle();if(b){b[a?\"show\":\"hide\"]();this.setupBar()}},updateDisplayField:function(a){this.setItemTpl('<div class=\"'+Ext.baseCSSPrefix+'picker-item {cls} <tpl if=\"extra\">'+Ext.baseCSSPrefix+'picker-invalid</tpl>\">{'+a+\"}</div>\")},updateAlign:function(a,c){var b=this.element;b.addCls(Ext.baseCSSPrefix+\"picker-\"+a);b.removeCls(Ext.baseCSSPrefix+\"picker-\"+c)},applyData:function(d){var f=[],c=d&&d.length,a,b,e;if(d&&Ext.isArray(d)&&c){for(a=0;a<c;a++){b=d[a];e={};if(Ext.isArray(b)){e[this.valueField]=b[0];e[this.displayField]=b[1]}else{if(Ext.isString(b)){e[this.valueField]=b;e[this.displayField]=b}else{if(Ext.isObject(b)){e=b}}}f.push(e)}}return d},updateData:function(",343960,46,"fields:[\"text\",\"value\"],data:a})",336976,43,"var a=this.getScrollable().getScroller();this.on({scope:this,painted:\"onPainted\",itemtap:\"doItemTap\"});a.on({scope:this,scrollend:\"onScrollEn",119325,32,"setupBar()},getPicker:function(){if(!this.picker){this.picker=this.getParent()}return this.picker},setupBa",179886,32,"return}var a=this.element,e=this.innerElement,f=this.getPicker(),g=f.bar,k=this.getValue(),b=this.getShowTitle(),j=this.getTitle(),h=this.getScrollable(),d=h.getScroller(),c=0,l,i;l=g.getHeight();if(b&&j){c=j.element.getHeight()}i=Math.ceil((a.getHeight()-c-l)/2);e.setStyle({padding:i+\"px 0 \"+(i)+\"px\"});d.refresh();d.setSlotSnapSize(l);this.setValue(k)},doItemTap:function(d,a,c,f){var b=this;b.selectedIndex=a;b.selectedNode=c;b.scrollToItem(c,true);b.fireEvent(\"slotpick\",b,b.getValue(true),b.selectedNode)},scrollToItem:function(e,d){var h=e.getY(),c=e.parent(),f=c.getY(),b=this.getScrollable(),a=b.getScroller(),g;g=h-f;a.scrollTo(0,g,d)},onScrollEnd:function(b,a,g){var f=this,d=Math.round(g/f.picker.bar.getHeight()),c=f.getViewItems(),e=c[d];if(e){f.selectedIndex=d;f.selectedNode=e;f.fireEvent(\"slotpick\",f,f.getValue(),f.selectedNode)}},getValue:function(c){var b=this.getStore(),a,d;if(!b){return}if(!this.rendered||!c){return this._value}if(this._value===false){return null}a=b.getAt(this.selectedIndex);d=a?a.get(this.getValueField()):null;return d},setValue:function(f){if(!Ext.isDefined(f)){return}if(!this.rendered||!f){this._value=f;return}var b=this.getStore(),a=this.getViewItems(),d=this.getValueField(),c,e;c=b.find(d,f);if(c!=-1){e=Ext.get(a[c]);this.selectedIndex=c;this.scrollToItem(e);this._value=f}},setValueAnimated:function(f){if(!f){return}if(!this.rendered){this._value=f;return}var b=this.getStore(),a=this.getViewItems(),d=this.getValueField(),c,e;c=b.find(d,f);if(c!=-1){e=Ext.get(a[c]);this.selectedIndex=c;this.scrollToItem(e,{duration:100});this._value=f}}});Ext.define(\"Ext.picker.Picker",241692,36,"picker\",alternateClassName:\"Ext.Picker\",requires:[\"Ext.picker.Slot\",\"Ext.Toolbar\",\"Ext.data.Model\"],isPicker:true",296971,32,"picker\",doneButton:true,cancelButton:true,useTitles:false,slots:null,value:null,height:220,layout:{type:\"hbox\",align:\"stretch\"},centered:false,left:0,right:0,bottom:0,defaultType:\"pickerslot\",toolbar:true},initElement",100382,39,"var b=this,a=Ext.baseCSSPrefix,c=this.innerElement;this.mask=c.createChild({cls:a+\"picker-mask\"});this.bar=this.mask.createChild({cls:a+\"picker-bar\"});b.on({scope:this,delegate:\"pickerslot\",slotpick:\"onSlotPick\"});b.on({scope:this,show:\"onShow\"})},applyToolb",309780,33,"Ext.applyIf(a,{docked:\"top\"});return Ext.factory(a,\"Ext.TitleBar\",this.getToolbar())},updateToolbar",237153,56,"applyDoneButton:function(a){if(a){if(Ext.isBoolean(a)){a={}}if(typeof a==\"string\"){a={text:a}}Ext.applyIf(a,{ui:\"action\",align:\"right\",text:\"Done\"})}return Ext.factory(a,\"Ext.Button\",this.getDoneButton())},updateDoneButton:function(c,a){var b=this.getToolbar();if(c){b.add(c);c.on(\"tap\",this.onDoneButtonTap,this)}else{if(a){b.remove(a)}}},applyCancelButton:function(a){if(a){if(Ext.isBoolean(a)){a={}}if(typeof a==\"string\"){a={text:a}}Ext.applyIf(a,{align:\"left\",text:\"Cancel\"})}return Ext.factory(a,\"Ext.Button\",this.getCancelButton())},updateCancelButton:function(b,a){var c=this.getToolbar();if(b){c.add(b);b.on(\"tap\",this.onCancelButtonTap,this)}else{if(a){c.remove(a)}}},updateUseTitles:function(d){var f=this.getInnerItems(),e=f.length,a=Ext.baseCSSPrefix+\"use-titles\",c,b;if(d",229600,40,"for(c=0;c<e;c++){b=f[c];if(b.isSlot){b.setShowTitle(d)}}},applySlots:function(b){if(b){var c=b.length,a;for(a=0;a<c;a++){b[a].picker=this}}return b},updateSlots:function(a){var b=Ext.baseCSSPrefix,c;this.removeAll();if(a){this.add(a)}c=this.getInnerItems();if(c.length>0){c[0].addCls(b+\"first\");c[c.length-1].addCls(b+\"last\")}this.updateUseTitles(this.getUseTitles())},onDoneButtonTap:function(){var a=this._value,b=this.getValue(true);if(b!=a){this.fireEvent(\"change\",this,b)}this.hide()},onCancelButtonTap:function(){this.fireEvent(\"cancel\",this);this.hide()},onSlotP",213693,32,"pick\",this,this.getValue(true),a)},onShow:function(){if(!this.isHidden()){this.setValue(this._value)}},setValue:function(k,a){var f=this,d=f.getInnerItems(),e=d.length,j,h,c,b,g;if(!k){k={};for(b=0;b<e;b++){k[d[b].config.name]=null}}for(j in k){g=k[j];for(b=0;b<d.length;b++){c=d[b];if(c.config.name==j){h=c;break}}if(h){if(a){h.setValueAnimated(g)}else{h.setValue(g)}}}f._values=f._value=k;return f},setValueAnimated:function(a){this.setValue(a,true)},getValue:function(c){var b={},a=this.getItems().items,f=a.length,e,d;if(c){for(d=0;d<f;d++){e=a[d];if(e&&e.isSlot){b[e.getName()]=e.getValue(c)}}this._values=b}return this._values",263759,38,"Value(",69768,38,");Ext.destroy(this.mask,this.bar)",321054,42,"Tags\",{extend:\"Ext.picker.Picker\",xtype:\"tagspanel\",config:{tags:{},hideOnMaskTap:true},updateTags:function(c){var d,b,a;d=(function(){var e;e=[];for(b in c){a=c[b];e.push({text:b,value:a})}return e})();d=Ext.Array.sort(d,function(e,f){if(Ext.isEmpty(e.text)){return -1}else{if(Ext.isEmpty(f.text)){return 1}else{return f.value-e.value}}});return this.setSlots({name:\"tag\",data:Ext.Array.map(d,function(e){return{text:e.text,value:e.text}})})",410553,1032,"askFilter",411581,98,",\"Tag",411677,81,"TasksProxy\",\"TodosProxy",411755,38,"History\",\"Read",411812,577]
2  deltas/app.js/4ff4d23271811d68bf033a10c6b2ef3aefa3de6c.json
View
@@ -1 +1 @@
-["/*e98e3e743a2813f1f95750e291a0b5256828bd6a",42,239650,"e){var a,d,c,b;if(e){",240362,48,"if(c){b=Ext.clone(c.getData())}}",239700,59,"if(b){a.setValues(b",239757,5266,"Media",282207,33,"media\",config:{url:\"\",enableControls:Ext.os.is.Android?false:true,autoResume:false,autoPause:true,preload:true,loop:false,media:null,volume:1,muted:false",257968,52,"on({scope:a,activate:a.onActivate,deactivate:a.onDeactivate});a.addMediaListener({canplay:\"onCanPlay\",play:\"onPlay\",pause:\"onPause\",ended:\"onEnd\",volumechange:\"onVolumeChange\",timeupdate:\"onTimeUpdate\"})},addMediaListener:function(d,b){var c=this,e=c.media.dom,f=Ext.Function.bind;if(!Ext.isObject(d)){var a=d;d={};d[a]=b}Ext.Object.each(d,function(h,g){if(typeof g!==\"function\"){g=c[g]}if(typeof g==\"function\"){g=f(g,c);e.addEventListener(h,g)}})},onPlay:function(){this.fireEvent(\"play\",this)},onCanPlay:function(){this.fireEvent(\"canplay\",this)},onPause:function(){this.fireEvent(\"pause\",this,this.getCurrentTime())},onEnd:function(){this.fireEvent(\"ended\",this,this.getCurrentTime())},onVolum",193887,35,"volumechange\",this,this.media.dom.volume)},onTimeUpdate:function(){this.fireEvent(\"timeupdate\",this,this.getCurrentTime())},isPlaying:function(){return !Boolean(this.media.dom.paused)},onActivate:function(){var a=this;if(a.getAutoResume()&&!a.isPlaying()){a.play()}},onDeactivate:function(){var a=this;if(a.getAutoResume()&&a.isPlaying()){a.pause()}},updateUrl:function(a){var b=this.media.dom;b.src=a;if(\"load\" in b){b.load()}if(this.isPlaying()){this.play()}},updateEnableControls:function(a){this.media.dom.controls=a?\"controls\":false},updateLoop:function(a){this.media.dom.loop=a?\"loop\":false},play:function(){var a=this.media.dom;if(\"play\" in a){a.play();setTimeout(function(){a.play()},10)}},pause:function(){var a=this.media.dom;if(\"pause\" in a){a.pause()}},toggle:function(){if(this.isPlaying()){this.pause()}else{this.play()}},stop:function(){var a=this;a.setCurrentTime(0);a.fireEvent(\"stop\",a);a.pause()},updateVolume:function(a){this.media.dom.volume=a},updateMuted:function(a){this.fireEvent(\"mutedchange\",this,a);this.media.dom.muted=a},getCurrentTime:function(){return this.media.dom.currentTime},setCurrentTime:function(a){this.media.dom.currentTime=a;return a},getDuration:function(){return this.media.dom.duration",374500,32,"Ext.Object.each(event,function(c,b){if(typeof b!==\"function\"){b=a[b]}if(typeof b==\"function\"){b=bind(b,a);dom.removeEventListener(c,b)}})",245003,34465,"d.data",279524,901,"FvTouch.dataview.element.List\",{override:\"Ext.dataview.element.List\"",279368,470,280410,9539,"timeout:\"onTimeout",289947,70,287376,36,293040,40,290077,1172,"b,c){var a,g,f,e,d;d=b.get(\"uid\");e=Ext.getStore(\"Timers\");g=e.findRecord(\"uid\",d);if(g){f=g",291339,38,"e.add({uid:d,time:b.get(\"starttime\"),type:\"go\"});f=\"break\"}e.add({uid:d,time:Date.now(),type:f});if(!c.getTimeout()){a=",292048,37,"Sounds\");if(f===\"go\"){a.play(\"starttask\")}else{a.play(\"break\")}}return c.updateTimer(b)},onTimeout:function(b,c){var a,d;d=c.getTimerType();a=",292048,37,"Sounds\");if(d===\"go\"){return a.play(\"break\")}else{return a.play(\"starttask\")}",288428,94,288527,168,291759,1258,"config:{refs:{historyview:\"historyview\"},control:{historyview:{add:\"showAddPanel",287391,76,293088,90,"b){var a;a=b.getType();if(a===\"taskdone\"||a===\"postponetask",293207,87,",showAddPanel:function(a){var b,c;c=a.data.cdata.task.uid;b=Ext.getStore(\"Tasks\").findRecord(\"uid\",c);if(!b){return}",288987,44,"AddTask\").show(c)}});Ext.define(\"Ext.Audio\",{extend:\"Ext.Media\",xtype:\"audio\"",76282,32,"audio\"},onActivat",230367,39,"if(Ext.os.is.Phone){a.element.show()}},onDeactivat",230367,39,"if(Ext.os.is.Phone){a.element.hide()}},template:[{reference:\"media\",preload:\"auto\",tag:\"audio\",cls:Ext.baseCSSPrefix+\"component\"}]",239872,34,"Sounds",238719,42,"Ext.Audio\",",289421,34,"sounds:{}",289454,65,"playIfRelated\",undo:function(){return this.play(\"undo\")},scope:this})},createTryPlayFun:function(a,d,c){var b;if(c==null){c=3000}b=new RegExp(\"^\"+a+\"[1-\"+d+\"]$\");return function(g,e){var f;if(e<c&&b.test(g)){f=parseInt(g.substr(a.length));if(f<d){f=f+1}return a+f}else{return a+\"1\"}}},createPreselectTryPlayFun:function(c){var a,b;b=/^preselect[1-8]$/;a=\"preselect\";return function(f,d){var e;if(d<3000&&b.test(f)){e=parseInt(f.substr(9));if(c&&e>1){e=e-1}else{if(e<8){e=e+1}}return a+e}else{return a+\"1\"}}},play",291060,45,"a===\"taskdone\"){if(!this._taskdoneTryPlayFun){this._taskdoneTryPlayFun=this.createTryPlayFun(\"taskdone\",8)}return this.tryPlay(this._taskdoneTryPlayFun)}else{if(a===\"postponetask\"){return this.play(\"postponetask\")}else{if(a===\"starttask\"){return this.play(\"starttask\")}else{if(a===\"deletetask\"){return this.play(\"deletetask\")}else{if(a===\"addtask\"){return this.play(\"addtask\")}else{if(a===\"edittask\"){return this.play(\"edittask\")}else{if(a===\"preselect\"){return this.tryPlay(this.createPreselectTryPlayFun(b.getCdata().preselected))}}}}}}}},tryPlay:function(a){var b;b=a(this.prename,Date.now()-this.pretime);if(b){return this.play(b)}},play:function(a){var b;b=this.sounds[a];if(!b){b=this.createSound(a);this.sounds[a]=b}if(this.prename){this.sounds[this.prename].stop()}b.play();this.prename=a;return this.pretime=Date.now()},createSound:function(b){var a;a=\"resources/sounds/\"+b+\".m4a\";return Ext.Viewport.add({xtype:\"audio\",hidden:true,url:a}",293292,32866,"timerType:\"go\",time:null,timeout:null,",326158,858,327039,245,"Timeout",327216,35,"timeout",327256,298,"b){var e,a,g,f,d,c;if(b==null){b=this.getRecord()",327752,42,"a=b.get(\"status\");if(a===\"open\"){this.setTimerType(\"ready\");this.setTime(0);return}c=b",291269,37,"g=d.findRecord(\"uid\",c);if(g){f=g.get(\"time\");this.setTimerType(g.get(\"type\"))}else{f=b",327714,32,"this.setTimerType(\"go\")}e",327795,47,"e.refreshAll(",327857,33,327892,118,"updateTime:function(d){var b,a,c",328048,61,"a.setText(this.timeText(d));if(this.getTimerType()===\"ready\"){this.setTimeout(false);if(a){a.hide()}b.setIconCls(\"play1\"",328410,33,"if(this.getTimerType()===\"go\"){c=d",328172,32,"c>100){this.setTimeout(true);",328211,66,"this.setTimeout(false);a.setValue(c",328289,47,"c=100-d",328343,50,"c<0){this.setTimeout(true);",328398,45,"this.setTimeout(false);a.setValue(c);return b.setUi(\"normal\")}}}},updateTimeout:function(b,a){if(b&&Ext.isBoolean(a)&&b!==a){return this.onTimeout()}},refreshAll:function(c){var a,b;a=Date.now();b=a-c;return this.setTime(b)",328483,13008,",\"break\"",394606,39,"reak\",a,b)},timeout",394606,38,"timeout\",a,b",342311,51,"break\",\"timeou",341536,33,"eady",340958,90,"eady\",config:{store:\"Ready",341083,408,",\"break\"",342208,36,342303,59,"star",341536,101,",\"FvTouch.view.Ready",341636,72,",{xtype:\"ready\"}],control:{runninglist:{refresh:\"onDataviewRefresh\"},ready:{refresh:\"onDataviewRefresh\"}}",315922,34,"this.onDataviewRefresh(this.child(\"runninglist\"));return this.onDataviewRefresh(this.child(\"ready\"))}}},onDataviewRefresh:function(a){if(a.getStore().getCount()){return a.show()}else{return a.hide()}",341709,9033,",\"FvTouch.dataview.element.List",350741,92,"div class=\\\"x-docking-horizontal\\\">\\n <div class='x-docked-left cmdtype {type}'></div>\\n <div class=\\\"x-body tasktitle\\\">{title}</div>\\n <div class='x-docked-right taskendtime'>{endtime:date('H:i:s')}</div>\\n</div>\",listeners:{itemdoubletap",341901,40,"dd\",a)}},bubbleEvents:[\"add\"]},prepareData:function(g,c,a){var b,f,e;try{f=Ext.getStore(\"Tasks\");e=g.cdata.task.uid;b=f.findRecord(\"uid\",e",351032,53,"type:g.type",351084,59,"g.ctime)}}catch(d){console.info(d);return{title:\"[error]\",type:\"\",createtime:new Data(),endtime:new Date()}}",350652,36,343982,50,351247,42787,"this.initConfig(a);return this.init()},init:Ext.emptyFn",394060,4354,"filterFn:function(d){var a,c,b;c=d.get(\"type\");if(c===\"taskdone\"||c===\"postponetask\"){b=d.get(\"cdata\").task.uid;a=Ext.getStore(\"Tasks\").findRecord(\"uid\",b);if(!a){return false}if(c===\"postponetask\"){return d.get(\"cdata\").task.status===\"running\"}else{return true}}else{return false}}",398446,190,"FvTouch.store.Read",398176,48,"asks\"",398060,36,"open\"}]",398589,32,",init:function(){var a;a=Ext.getStore(\"Preselecteds\");a.on({refresh:\"refreshData\",scope:this});return this.refreshData(a)},addOn",277883,32,"setData([a])}else{return this.clearData()}},refreshData:function(b){var c,a;c=b.first();if(c){a=Ext.getStore(\"Tasks\").getById(c.get(\"task_id\"));return this.addOne(a)}else{return this.addOne(null)}",398620,6387,",\"Sounds",405006,136,",\"Read",405140,577]
+["/*022eda3a66e9071b0bedd0435d39bd8357e275fd",42,214314,"if(!b",220795,68,"b.data.uid,title:b.data.title,info:b.data.info",214438,1144,"c){var e,h,f,a,d,i,b,g;g=Ext.getStore(\"Tasks\");b=g.findRecord(\"uid\",c.uid);a=c.title;if(Ext.isEmpty(a)){return false}f=c.info;i=b.get(\"title\");d=b.get(\"info\");if(a===i&&this.isEquals(f,d)){return false}h=this.getDelta(f,d);e={uid:c.uid,\"new\":{},old:{}};if(a!==i){e[\"new\"].title=a;e.old.title=i}if(h.xDelta){e[\"new\"].info=h.xDelta}if(h.yDelta){e.old.info=h.yDelta}return e},doImpl:function(){var c,f,d,a,b,e",215775,71,"e=c[\"new\"].title;if(e!==void 0){a.set(\"title\",e)}f=c[\"new\"].info;if(f){d=this.apply(a.get(\"info\"),f);a.set(\"info\",d)}",215876,43,"f,d,a,b,e",215775,71,"e=c.old.title;if(e!==void 0){a.set(\"title\",e)}f=c.old.info;if(f){d=this.apply(a.get(\"info\"),f);a.set(\"info\",d)}return a.save()},isEquals:function(a,b){if(a===b){return true}else{if(Ext.isPrimitive(a)){return false}else{if(Ext.isArray(a)){return Ext.isArray(b)&&this.isArrayEquals(a,b)}else{if(Ext.isEmpty(a)){return false}else{if(Ext.isDate(a)){return Ext.isDate(b)&&a.getTime()===b.getTime()}else{if(Ext.isFunction(a)){return Ext.isFunction(b)&&a.toString()===b.toString()}else{return Ext.isObject(b)&&this.isObjectEquals(a,b)}}}}}}},isArrayEquals:function(a,d){var b,c;if(a.length===d.length){for(b=0,c=length-1;0<=c?b<c:b>c;0<=c?b++:b--){if(!this.isEquals(a[b],d[b])){return false}}return true}else{return false}},isObjectEquals:function(a,h){var d,e,g,c,f,b;g=Ext.Object.getKeys(a);c=Ext.Object.getKeys(h);e=Ext.Array.merge(g,c);for(f=0,b=e.length;f<b;f++){d=e[f];if(!this.isEquals(a[d],h[d])){return false}}return true},getDelta:function(g,c){var k,i,j,b,h,d,f,a,e;if(!Ext.isObject(g)){g={}}if(!Ext.isObject(c)){c={}}h=Ext.Object.getKeys(g);f=Ext.Object.getKeys(c);j=Ext.Array.merge(h,f);b={};d={};k=false;for(a=0,e=j.length;a<e;a++){i=j[a];if(!this.isEquals(g[i],c[i])){b[i]=g[i];d[i]=c[i];k=true}}if(k){return{xDelta:b,yDelta:d}}else{return{}}},apply:function(c,d){var b,a;c||(c={});for(b in d){a=d[b];if(a===void 0){delete c[b]}else{c[b]=d[b]}}if(Ext.Object.getSize(c)){return c}else{return}",218029,33,"ostpon",214159,57,216131,144,"if(!b",220795,51,"if(!a){return false}",216311,97,"if(",216345,48,"&&Ext.getStore(\"TodosProxy\").last().getId()===a.getId()",216393,1776,"e){var d,b,g,a,f,c;c=Ext.getStore(\"Todos\");g=Ext.getStore(\"Tasks\");b=g.findRecord(\"uid\",e.uid);if(!b",220795,51,"if(!a||",218299,59,"f=Ext.getStore(\"TodosProxy\");d=f.first();if(d&&a.getId()===d.getId()){return false}return{uid:e",218370,195,"getId()",218572,369,"getId()",218572,71,"===e",217520,39,219062,321,"if(!b",220795,51,219419,1352,"!b",218317,41,221134,36,220846,3610,"var b,c;if(Ext.isEmpty(a.title)){return false}b=",224488,69,";c=this.normalize(a.info);if(c){b.info=c}return b",224557,166,"info:e.info",224722,331,",normalize:function(c){var b,a;for(b in c){a=c[b];if(a===void 0){delete c[b]}}if(Ext.Object.getSize(c)){return c}else{return}",225052,13786,",tagsButton:\"mytoolbar #tags",238837,53,",tags:\"onTags",238889,154,",onTags",289246,56,"Tags\").show()},launch:function(){var a;a=",292048,37,"Tags\");a.on({scope:this,change:\"changeTagsBadgeText\"});return this.changeTagsBadgeText(a.getTag())},changeTagsBadgeText:function(a){return this.getTagsButton().setBadgeText(a",292895,36,"AddTask",238719,66,239150,542,"f){var b,e,a,d,c;if(f){e=Ext.getStore(\"Tasks\");d=e.findRecord(\"uid\",f);if(d){c=Ext.clone(d.getData())}}else{a=",292048,37,"Tags\").getTag();if(a){c={info:{tags:[a]}}}}b=this.getPanel();if(!b",292845,33,"b)}if(c){b.setValues(c)}return b",239767,880,"controller.Tags",238719,41,"],config:{tag:window.localStorage.getItem(\"tag\"),views:[\"Tags\"],refs:{panel:{selector:\"tagspanel\",xtype:\"tags",240041,42,"hange:\"onChange\"}}},onChange:function(a,b){return this.setTag(b.tag)},show:function(){var a,b;b=this.getTags();if(Ext.Object.getSize(b)<=1){return}",239592,69,"if(!a.getParent()){Ext.Viewport.add(a)}a.setTags(this.getTags());a.setValue({tag:this.getTag()});return a.show()},getTags:function(){var a,b,c;c=Ext.getStore(\"Tasks\");b={\"\":0};a=this.getTag();if(!Ext.isEmpty(a)){b[a]=0}c.each(function(g){var h,d,j,f,i,e;if(g.data.info&&Ext.isArray(g.data.info.tags)&&g.data.info.tags.length){i=g.data.info.tags;e=[];for(j=0,f=i.length;j<f;j++){d=i[j];h=b[d];e.push(b[d]=h?h+1:1)}return e}else{return b[\"\"]=b[\"\"]+1}});return b",285853,32,"updateTag(this.getTag())},updateTag:function(a){var b;if(Ext.isEmpty(a)){window.localStorage.removeItem(\"tag\")}else{window.localStorage.setItem(\"tag\",a)}b=",292048,37,"TaskFilter\");if(b){b.setFilterFn(this.generateFilterFn(a))}return this.fireEvent(\"change\",a)},generateFilterFn:function(a){if(Ext.isEmpty(a)){return function(){return true}}else{return function(b){return b.data.info&&Ext.isArray(b.data.info.tags)&&Ext.Array.contains(b.data.info.tags,a)}}",240623,173,"itemId:\"add\"},{iconCls:\"tags\",itemId:\"tags\"},{iconCls:\"reply\",itemId",240833,58,"#add",316047,41,"add\")}},\"#undo",316047,41,"undo\")}},\"#tags",316047,41,"tags\")}}}",218029,32,241048,3971,"FvTouch.field.Tags",233524,35,"agsfield\",applyValue:function(a){if(Ext.isArray(a)){return a}else{if(Ext.isEmpty(a)){return[]}else{return[a.toString()]}",230815,32,";if(!Ext.isArray(b)){Ext.Logger.error(\"value of tagsfield should be an array\")}a=b.join(\", \");return this.callParent([a])},getValue:function(){var a,b;b=this.callParent();a=Ext.Array.map(b.split(\",\"),function(c){return c.trim()});a=Ext.Array.filter(a,function(c){return !Ext.isEmpty(c)});a=Ext.Array.unique(a);if(a.length){return a}else{return}}});Ext.define(\"Ext.Media",282207,33,"media\",config:{url:\"\",enableControls:Ext.os.is.Android?false:true,autoResume:false,autoPause:true,preload:true,loop:false,media:null,volume:1,muted:false",257968,52,"on({scope:a,activate:a.onActivate,deactivate:a.onDeactivate});a.addMediaListener({canplay:\"onCanPlay\",play:\"onPlay\",pause:\"onPause\",ended:\"onEnd\",volumechange:\"onVolumeChange\",timeupdate:\"onTimeUpdate\"})},addMediaListener:function(d,b){var c=this,e=c.media.dom,f=Ext.Function.bind;if(!Ext.isObject(d)){var a=d;d={};d[a]=b}Ext.Object.each(d,function(h,g){if(typeof g!==\"function\"){g=c[g]}if(typeof g==\"function\"){g=f(g,c);e.addEventListener(h,g)}})},onPlay:function(){this.fireEvent(\"play\",this)},onCanPlay:function(){this.fireEvent(\"canplay\",this)},onPause:function(){this.fireEvent(\"pause\",this,this.getCurrentTime())},onEnd:function(){this.fireEvent(\"ended\",this,this.getCurrentTime())},onVolum",193887,35,"volumechange\",this,this.media.dom.volume)},onTimeUpdate:function(){this.fireEvent(\"timeupdate\",this,this.getCurrentTime())},isPlaying:function(){return !Boolean(this.media.dom.paused)},onActivate:function(){var a=this;if(a.getAutoResume()&&!a.isPlaying()){a.play()}},onDeactivate:function(){var a=this;if(a.getAutoResume()&&a.isPlaying()){a.pause()}},updateUrl:function(a){var b=this.media.dom;b.src=a;if(\"load\" in b){b.load()}if(this.isPlaying()){this.play()}},updateEnableControls:function(a){this.media.dom.controls=a?\"controls\":false},updateLoop:function(a){this.media.dom.loop=a?\"loop\":false},play:function(){var a=this.media.dom;if(\"play\" in a){a.play();setTimeout(function(){a.play()},10)}},pause:function(){var a=this.media.dom;if(\"pause\" in a){a.pause()}},toggle:function(){if(this.isPlaying()){this.pause()}else{this.play()}},stop:function(){var a=this;a.setCurrentTime(0);a.fireEvent(\"stop\",a);a.pause()},updateVolume:function(a){this.media.dom.volume=a},updateMuted:function(a){this.fireEvent(\"mutedchange\",this,a);this.media.dom.muted=a},getCurrentTime:function(){return this.media.dom.currentTime},setCurrentTime:function(a){this.media.dom.currentTime=a;return a},getDuration:function(){return this.media.dom.duration",374500,32,"Ext.Object.each(event,function(c,b){if(typeof b!==\"function\"){b=a[b]}if(typeof b==\"function\"){b=bind(b,a);dom.removeEventListener(c,b)}})",245003,34465,"d.data",279524,901,"FvTouch.dataview.element.List\",{override:\"Ext.dataview.element.List\"",279368,470,280410,7122,"Ext.getStore(\"TasksProxy\").refresh();",287532,1939,293040,48,287467,44,";",288987,44,"TaskFilter\").on({update:\"refresh\",scope:this",289568,381,"timeout:\"onTimeout",289947,70,287376,36,293040,40,290077,857,293040,110,";",288987,44,"TaskFilter\").on({update:\"refresh\",scope:this",291049,200,"b,c){var a,g,f,e,d;d=b.get(\"uid\");e=Ext.getStore(\"Timers\");g=e.findRecord(\"uid\",d);if(g){f=g",291339,38,"e.add({uid:d,time:b.get(\"starttime\"),type:\"go\"});f=\"break\"}e.add({uid:d,time:Date.now(),type:f});if(!c.getTimeout()){a=",292048,37,"Sounds\");if(f===\"go\"){a.play(\"starttask\")}else{a.play(\"break\")}}return c.updateTimer(b)},onTimeout:function(b,c){var a,d;d=c.getTimerType();a=",292048,37,"Sounds\");if(d===\"go\"){return a.play(\"break\")}else{return a.play(\"starttask\")}",288428,94,288527,168,291759,1258,"config:{refs:{historyview:\"historyview\"},control:{historyview:{add:\"showAddPanel",290016,61,293080,70,";",288987,44,"TaskFilter\").on({update:\"refresh\",scope:this",291049,56,"a===\"taskdone\"||a===\"postponetask",293207,87,",showAddPanel:function(a){var b,c;c=a.data.cdata.task.uid;b=Ext.getStore(\"Tasks\").findRecord(\"uid\",c);if(!b){return}",288987,44,"AddTask\").show(c)}});Ext.define(\"Ext.Audio\",{extend:\"Ext.Media\",xtype:\"audio\"",76282,32,"audio\"},onActivat",230367,39,"if(Ext.os.is.Phone){a.element.show()}},onDeactivat",230367,39,"if(Ext.os.is.Phone){a.element.hide()}},template:[{reference:\"media\",preload:\"auto\",tag:\"audio\",cls:Ext.baseCSSPrefix+\"component\"}]",239872,34,"Sounds",238719,42,"Ext.Audio\",",289421,34,"sounds:{}",289454,65,"playIfRelated\",undo:function(){return this.play(\"undo\")},scope:this})},createTryPlayFun:function(a,d,c){var b;if(c==null){c=3000}b=new RegExp(\"^\"+a+\"[1-\"+d+\"]$\");return function(g,e){var f;if(e<c&&b.test(g)){f=parseInt(g.substr(a.length));if(f<d){f=f+1}return a+f}else{return a+\"1\"}}},createPreselectTryPlayFun:function(c){var a,b;b=/^preselect[1-8]$/;a=\"preselect\";return function(f,d){var e;if(d<3000&&b.test(f)){e=parseInt(f.substr(9));if(c&&e>1){e=e-1}else{if(e<8){e=e+1}}return a+e}else{return a+\"1\"}}},play",291060,45,"a===\"taskdone\"){if(!this._taskdoneTryPlayFun){this._taskdoneTryPlayFun=this.createTryPlayFun(\"taskdone\",8)}return this.tryPlay(this._taskdoneTryPlayFun)}else{if(a===\"postponetask\"){return this.play(\"postponetask\")}else{if(a===\"starttask\"){return this.play(\"starttask\")}else{if(a===\"deletetask\"){return this.play(\"deletetask\")}else{if(a===\"addtask\"){return this.play(\"addtask\")}else{if(a===\"edittask\"){return this.play(\"edittask\")}else{if(a===\"preselect\"){return this.tryPlay(this.createPreselectTryPlayFun(b.getCdata().preselected))}}}}}}}},tryPlay:function(a){var b;b=a(this.prename,Date.now()-this.pretime);if(b){return this.play(b)}},play:function(a){var b;b=this.sounds[a];if(!b){b=this.createSound(a);this.sounds[a]=b}if(this.prename){this.sounds[this.prename].stop()}b.play();this.prename=a;return this.pretime=Date.now()},createSound:function(b){var a;a=\"resources/sounds/\"+b+\".m4a\";return Ext.Viewport.add({xtype:\"audio\",hidden:true,url:a}",293292,22280,",\"FvTouch.field.Tags\"],config:{values:void 0,",315582,337,",",315860,34,"agsfield\",name:\"tags\",label:\"Tags",315915,267,"applyValues:function(a){if(a===void 0||a===null){return a}else{return Ext.apply(a.info||{},{title:a.title})}},getValues:function(){var b,a;a=",316210,35,";b=a.title;delete a.title;return{title:b,info:a}},update",316250,820,"if(a){this.setUid(a.uid",107504,55,317142,9016,"timerType:\"go\",time:null,timeout:null,",326158,858,327039,245,"Timeout",327216,35,"timeout",327256,298,"b){var e,a,g,f,d,c;if(b==null){b=this.getRecord()",327752,42,"a=b.get(\"status\");if(a===\"open\"){this.setTimerType(\"ready\");this.setTime(0);return}c=b",291269,37,"g=d.findRecord(\"uid\",c);if(g){f=g.get(\"time\");this.setTimerType(g.get(\"type\"))}else{f=b",327714,32,"this.setTimerType(\"go\")}e",327795,47,"e.refreshAll(",327857,33,327892,118,"updateTime:function(d){var b,a,c",328048,61,"a.setText(this.timeText(d));if(this.getTimerType()===\"ready\"){this.setTimeout(false);if(a){a.hide()}b.setIconCls(\"play1\"",328410,33,"if(this.getTimerType()===\"go\"){c=d",328172,32,"c>100){this.setTimeout(true);",328211,66,"this.setTimeout(false);a.setValue(c",328289,47,"c=100-d",328343,50,"c<0){this.setTimeout(true);",328398,45,"this.setTimeout(false);a.setValue(c);return b.setUi(\"normal\")}}}},updateTimeout:function(b,a){if(b&&Ext.isBoolean(a)&&b!==a){return this.onTimeout()}},refreshAll:function(c){var a,b;a=Date.now();b=a-c;return this.setTime(b)",328483,13008,",\"break\"",394606,39,"reak\",a,b)},timeout",394606,38,"timeout\",a,b",342311,51,"break\",\"timeou",341536,33,"eady",340958,90,"eady\",config:{store:\"Ready",341083,408,",\"break\"",342208,36,342303,59,"star",341536,101,",\"FvTouch.view.Ready",341636,72,",{xtype:\"ready\"}],control:{runninglist:{refresh:\"onDataviewRefresh\"},ready:{refresh:\"onDataviewRefresh\"}}",315922,34,"this.onDataviewRefresh(this.child(\"runninglist\"));return this.onDataviewRefresh(this.child(\"ready\"))}}},onDataviewRefresh:function(a){if(a.getStore().getCount()){return a.show()}else{return a.hide()}",341709,9033,",\"FvTouch.dataview.element.List",350741,92,"div class=\\\"x-docking-horizontal\\\">\\n <div class='x-docked-left cmdtype {type}'></div>\\n <div class=\\\"x-body tasktitle\\\">{title}</div>\\n <div class='x-docked-right taskendtime'>{endtime:date('H:i:s')}</div>\\n</div>\",listeners:{itemdoubletap",341901,40,"dd\",a)}},bubbleEvents:[\"add\"]},prepareData:function(g,c,a){var b,f,e;try{f=Ext.getStore(\"Tasks\");e=g.cdata.task.uid;b=f.findRecord(\"uid\",e",351032,53,"type:g.type",351084,59,"g.ctime)}}catch(d){console.info(d);return{title:\"[error]\",type:\"\",createtime:new Data(),endtime:new Date()}}",350652,36,343982,50,351247,42787,"this.initConfig(a);return this.init()},init:Ext.emptyFn",394060,3269,"Task",398171,53,"ask",398227,57,"controller.TaskFilte",238718,51,"store.TasksProxy\"],config:{filterFn:function(){return true}},updateFilterFn:function(a){var b;b=Ext.getStore(\"TasksProxy\");if(b){b.clearFilter(true);b.setFilters([{filterFn:a}]);",287539,37,"return this.fireEvent(\"update\",a)",392320,35,398172,58,"filters:[{filterFn:function(b){var a,c;c=Ext.getStore(\"TasksProxy\");a=c.getById(b.get(\"task_id\"));return !Ext.isEmpty(a)",397886,64,397329,511,"d){var a,c,b;b=Ext.getStore(\"TodosProxy\");if(b.getCount()&&b.getById(d.getId())&&(d.data.preselected||d.getId()===b.first().getId())){return true}else{c=Ext.getStore(\"Tasks\");a=c.getById(d.get(\"task_id\"));return a&&a.get(\"status\")===\"running\"}",397886,281,"Histor",398176,32,398328,86,"filterFn:function(d){var a,c,b;c=d.get(\"type\");if(c===\"taskdone\"||c===\"postponetask\"){b=d.get(\"cdata\").task.uid;a=Ext.getStore(\"TasksProxy\").findRecord(\"uid\",b);if(!a){return false}if(c===\"postponetask\"){return d.get(\"cdata\").task.status===\"running\"}else{return true}}else{return false}}",398446,190,"FvTouch.store.Read",398176,48,"asks\"",398060,36,"open\"}]",398589,32,",init:function(){var a;a=Ext.getStore(\"Preselecteds\");a.on({refresh:\"refreshData\",scope:this});return this.refreshData(a)},addOn",277883,32,"setData([a])}else{return this.clearData()}},refreshData:function(b){var c,a;c=b.first();if(c){a=Ext.getStore(\"Tasks\").getById(c.get(\"task_id\"));return this.addOne(a)}else{return this.addOne(null)}",398620,4244,"info",402854,1056,"picker.Slo",340957,35,"xtype:\"pickerslot\",alternateClassName:\"Ext.Picker.Slot",310678,33,"data.Store\",\"Ext.Component\",\"Ext.data.StoreManager\"],isSlot:true,config:{title:null,showTitle:true,cls:Ext.baseCSSPrefix+\"picker-slot\",name:null,value:null,flex:1,align:\"left\",displayField:\"text\",valueField:\"value\",scrollable:{direction:\"vertical\",indicators:false,momentumEasing:{minVelocity:2},slotSnapEasing:{duration:100}}",269958,38,"Index=0",270027,34,"Title:function(a){if(a){a=Ext.create(\"Ext.Component\",{cls:Ext.baseCSSPrefix+\"picker-slot-title\",docked:\"top\",html:a})}return a",244666,45,";this.setupBar()}if(a){this.remove(a)}},updateShowTitle:function(a){var b=this.getTitle();if(b){b[a?\"show\":\"hide\"]();this.setupBar()}},updateDisplayField:function(a){this.setItemTpl('<div class=\"'+Ext.baseCSSPrefix+'picker-item {cls} <tpl if=\"extra\">'+Ext.baseCSSPrefix+'picker-invalid</tpl>\">{'+a+\"}</div>\")},updateAlign:function(a,c){var b=this.element;b.addCls(Ext.baseCSSPrefix+\"picker-\"+a);b.removeCls(Ext.baseCSSPrefix+\"picker-\"+c)},applyData:function(d){var f=[],c=d&&d.length,a,b,e;if(d&&Ext.isArray(d)&&c){for(a=0;a<c;a++){b=d[a];e={};if(Ext.isArray(b)){e[this.valueField]=b[0];e[this.displayField]=b[1]}else{if(Ext.isString(b)){e[this.valueField]=b;e[this.displayField]=b}else{if(Ext.isObject(b)){e=b}}}f.push(e)}}return d},updateData:function(",337903,46,"fields:[\"text\",\"value\"],data:a}))",303359,42,"var a=this.getScrollable().getScroller();this.on({scope:this,painted:\"onPainted\",itemtap:\"doItemTap\"});a.on({scope:this,scrollend:\"onScrollEn",119325,32,"setupBar()},getPicker:function(){if(!this.picker){this.picker=this.getParent()}return this.picker},setupBa",179886,32,"return}var a=this.element,e=this.innerElement,f=this.getPicker(),g=f.bar,k=this.getValue(),b=this.getShowTitle(),j=this.getTitle(),h=this.getScrollable(),d=h.getScroller(),c=0,l,i;l=g.getHeight();if(b&&j){c=j.element.getHeight()}i=Math.ceil((a.getHeight()-c-l)/2);e.setStyle({padding:i+\"px 0 \"+(i)+\"px\"});d.refresh();d.setSlotSnapSize(l);this.setValue(k)},doItemTap:function(d,a,c,f){var b=this;b.selectedIndex=a;b.selectedNode=c;b.scrollToItem(c,true);b.fireEvent(\"slotpick\",b,b.getValue(true),b.selectedNode)},scrollToItem:function(e,d){var h=e.getY(),c=e.parent(),f=c.getY(),b=this.getScrollable(),a=b.getScroller(),g;g=h-f;a.scrollTo(0,g,d)},onScrollEnd:function(b,a,g){var f=this,d=Math.round(g/f.picker.bar.getHeight()),c=f.getViewItems(),e=c[d];if(e){f.selectedIndex=d;f.selectedNode=e;f.fireEvent(\"slotpick\",f,f.getValue(),f.selectedNode)}},getValue:function(c){var b=this.getStore(),a,d;if(!b){return}if(!this.rendered||!c){return this._value}if(this._value===false){return null}a=b.getAt(this.selectedIndex);d=a?a.get(this.getValueField()):null;return d},setValue:function(f){if(!Ext.isDefined(f)){return}if(!this.rendered||!f){this._value=f;return}var b=this.getStore(),a=this.getViewItems(),d=this.getValueField(),c,e;c=b.find(d,f);if(c!=-1){e=Ext.get(a[c]);this.selectedIndex=c;this.scrollToItem(e);this._value=f}},setValueAnimated:function(f){if(!f){return}if(!this.rendered){this._value=f;return}var b=this.getStore(),a=this.getViewItems(),d=this.getValueField(),c,e;c=b.find(d,f);if(c!=-1){e=Ext.get(a[c]);this.selectedIndex=c;this.scrollToItem(e,{duration:100});this._value=f}}});Ext.define(\"Ext.picker.Picker",241578,36,"picker\",alternateClassName:\"Ext.Picker\",requires:[\"Ext.picker.Slot\",\"Ext.Toolbar\",\"Ext.data.Model\"],isPicker:true",76282,32,"picker\",doneButton:true,cancelButton:true,useTitles:false,slots:null,value:null,height:220,layout:{type:\"hbox\",align:\"stretch\"},centered:false,left:0,right:0,bottom:0,defaultType:\"pickerslot\",toolbar:true},initElement",100382,39,"var b=this,a=Ext.baseCSSPrefix,c=this.innerElement;this.mask=c.createChild({cls:a+\"picker-mask\"});this.bar=this.mask.createChild({cls:a+\"picker-bar\"});b.on({scope:this,delegate:\"pickerslot\",slotpick:\"onSlotPick\"});b.on({scope:this,show:\"onShow\"})},applyToolb",304118,33,"Ext.applyIf(a,{docked:\"top\"});return Ext.factory(a,\"Ext.TitleBar\",this.getToolbar())},updateToolbar",237153,56,"applyDoneButton:function(a){if(a){if(Ext.isBoolean(a)){a={}}if(typeof a==\"string\"){a={text:a}}Ext.applyIf(a,{ui:\"action\",align:\"right\",text:\"Done\"})}return Ext.factory(a,\"Ext.Button\",this.getDoneButton())},updateDoneButton:function(c,a){var b=this.getToolbar();if(c){b.add(c);c.on(\"tap\",this.onDoneButtonTap,this)}else{if(a){b.remove(a)}}},applyCancelButton:function(a){if(a){if(Ext.isBoolean(a)){a={}}if(typeof a==\"string\"){a={text:a}}Ext.applyIf(a,{align:\"left\",text:\"Cancel\"})}return Ext.factory(a,\"Ext.Button\",this.getCancelButton())},updateCancelButton:function(b,a){var c=this.getToolbar();if(b){c.add(b);b.on(\"tap\",this.onCancelButtonTap,this)}else{if(a){c.remove(a)}}},updateUseTitles:function(d){var f=this.getInnerItems(),e=f.length,a=Ext.baseCSSPrefix+\"use-titles\",c,b;if(d",229600,40,"for(c=0;c<e;c++){b=f[c];if(b.isSlot){b.setShowTitle(d)}}},applySlots:function(b){if(b){var c=b.length,a;for(a=0;a<c;a++){b[a].picker=this}}return b},updateSlots:function(a){var b=Ext.baseCSSPrefix,c;this.removeAll();if(a){this.add(a)}c=this.getInnerItems();if(c.length>0){c[0].addCls(b+\"first\");c[c.length-1].addCls(b+\"last\")}this.updateUseTitles(this.getUseTitles())},onDoneButtonTap:function(){var a=this._value,b=this.getValue(true);if(b!=a){this.fireEvent(\"change\",this,b)}this.hide()},onCancelButtonTap:function(){this.fireEvent(\"cancel\",this);this.hide()},onSlotP",213693,32,"pick\",this,this.getValue(true),a)},onShow:function(){if(!this.isHidden()){this.setValue(this._value)}},setValue:function(k,a){var f=this,d=f.getInnerItems(),e=d.length,j,h,c,b,g;if(!k){k={};for(b=0;b<e;b++){k[d[b].config.name]=null}}for(j in k){g=k[j];for(b=0;b<d.length;b++){c=d[b];if(c.config.name==j){h=c;break}}if(h){if(a){h.setValueAnimated(g)}else{h.setValue(g)}}}f._values=f._value=k;return f},setValueAnimated:function(a){this.setValue(a,true)},getValue:function(c){var b={},a=this.getItems().items,f=a.length,e,d;if(c){for(d=0;d<f;d++){e=a[d];if(e&&e.isSlot){b[e.getName()]=e.getValue(c)}}this._values=b}return this._values",316180,35,"getValue(",69768,38,");Ext.destroy(this.mask,this.bar)",315392,42,"Tags\",{extend:\"Ext.picker.Picker\",xtype:\"tagspanel\",config:{tags:{},hideOnMaskTap:true},updateTags:function(c){var d,b,a;d=(function(){var e;e=[];for(b in c){a=c[b];e.push({text:b,value:a})}return e})();d=Ext.Array.sort(d,function(e,f){if(Ext.isEmpty(e.text)){return -1}else{if(Ext.isEmpty(f.text)){return 1}else{return f.value-e.value}}});return this.setSlots({name:\"tag\",data:Ext.Array.map(d,function(e){return{text:e.text,value:e.text}})})",403890,1032,"askFilter",404918,89,",\"Sounds\",\"Tags",405006,80,"TasksProxy\",\"TodosProxy",405083,38,"History\",\"Read",405140,577]
2  deltas/app.js/5d6500b653586891f03a6c358a61408db0474f5e.json
View
@@ -1 +1 @@
-["/*e98e3e743a2813f1f95750e291a0b5256828bd6a",42,239650,"e){var a,d,c,b;if(e){",240362,48,"if(c){b=Ext.clone(c.getData())}}",239700,59,"if(b){a.setValues(b",239757,5266,"Media",282157,33,"media\",config:{url:\"\",enableControls:Ext.os.is.Android?false:true,autoResume:false,autoPause:true,preload:true,loop:false,media:null,volume:1,muted:false",257968,52,"on({scope:a,activate:a.onActivate,deactivate:a.onDeactivate});a.addMediaListener({canplay:\"onCanPlay\",play:\"onPlay\",pause:\"onPause\",ended:\"onEnd\",volumechange:\"onVolumeChange\",timeupdate:\"onTimeUpdate\"})},addMediaListener:function(d,b){var c=this,e=c.media.dom,f=Ext.Function.bind;if(!Ext.isObject(d)){var a=d;d={};d[a]=b}Ext.Object.each(d,function(h,g){if(typeof g!==\"function\"){g=c[g]}if(typeof g==\"function\"){g=f(g,c);e.addEventListener(h,g)}})},onPlay:function(){this.fireEvent(\"play\",this)},onCanPlay:function(){this.fireEvent(\"canplay\",this)},onPause:function(){this.fireEvent(\"pause\",this,this.getCurrentTime())},onEnd:function(){this.fireEvent(\"ended\",this,this.getCurrentTime())},onVolum",193887,35,"volumechange\",this,this.media.dom.volume)},onTimeUpdate:function(){this.fireEvent(\"timeupdate\",this,this.getCurrentTime())},isPlaying:function(){return !Boolean(this.media.dom.paused)},onActivate:function(){var a=this;if(a.getAutoResume()&&!a.isPlaying()){a.play()}},onDeactivate:function(){var a=this;if(a.getAutoResume()&&a.isPlaying()){a.pause()}},updateUrl:function(a){var b=this.media.dom;b.src=a;if(\"load\" in b){b.load()}if(this.isPlaying()){this.play()}},updateEnableControls:function(a){this.media.dom.controls=a?\"controls\":false},updateLoop:function(a){this.media.dom.loop=a?\"loop\":false},play:function(){var a=this.media.dom;if(\"play\" in a){a.play();setTimeout(function(){a.play()},10)}},pause:function(){var a=this.media.dom;if(\"pause\" in a){a.pause()}},toggle:function(){if(this.isPlaying()){this.pause()}else{this.play()}},stop:function(){var a=this;a.setCurrentTime(0);a.fireEvent(\"stop\",a);a.pause()},updateVolume:function(a){this.media.dom.volume=a},updateMuted:function(a){this.fireEvent(\"mutedchange\",this,a);this.media.dom.muted=a},getCurrentTime:function(){return this.media.dom.currentTime},setCurrentTime:function(a){this.media.dom.currentTime=a;return a},getDuration:function(){return this.media.dom.duration",374450,32,"Ext.Object.each(event,function(c,b){if(typeof b!==\"function\"){b=a[b]}if(typeof b==\"function\"){b=bind(b,a);dom.removeEventListener(c,b)}})",245003,35372,"FvTouch.dataview.element.List\",{override:\"Ext.dataview.element.List\"",279368,100,"e.prepareData(d.getData(true),e.getStore().indexOf(d),d)",279474,314,280360,9539,"timeout:\"onTimeout",289897,70,287326,36,292990,40,290027,1172,"b,c){var a,g,f,e,d;d=b.get(\"uid\");e=Ext.getStore(\"Timers\");g=e.findRecord(\"uid\",d);if(g){f=g",291289,38,"e.add({uid:d,time:b.get(\"starttime\"),type:\"go\"});f=\"break\"}e.add({uid:d,time:Date.now(),type:f});if(!c.getTimeout()){a=",288944,37,"Sounds\");if(f===\"go\"){a.play(\"starttask\")}else{a.play(\"break\")}}return c.updateTimer(b)},onTimeout:function(b,c){var a,d;d=c.getTimerType();a=",288944,37,"Sounds\");if(d===\"go\"){return a.play(\"break\")}else{return a.play(\"starttask\")}",288378,94,288477,168,291709,1258,"config:{refs:{historyview:\"historyview\"},control:{historyview:{add:\"showAddPanel",287341,76,293038,90,"b){var a;a=b.getType();if(a===\"taskdone\"||a===\"postponetask",293157,87,",showAddPanel:function(a){var b,c;c=a.data.cdata.task.uid;b=Ext.getStore(\"Tasks\").findRecord(\"uid\",c);if(!b){return}",288937,44,"AddTask\").show(c)}});Ext.define(\"Ext.Audio\",{extend:\"Ext.Media\",xtype:\"audio\"",76282,32,"audio\"},onActivat",230367,39,"if(Ext.os.is.Phone){a.element.show()}},onDeactivat",230367,39,"if(Ext.os.is.Phone){a.element.hide()}},template:[{reference:\"media\",preload:\"auto\",tag:\"audio\",cls:Ext.baseCSSPrefix+\"component\"}]",239872,34,"Sounds",289632,42,"Ext.Audio\",",284656,32,"],sounds:{",287344,66,"playIfRelated\",undo:function(){return this.play(\"undo\")},scope:this})},createTryPlayFun:function(a,d,c){var b;if(c==null){c=3000}b=new RegExp(\"^\"+a+\"[1-\"+d+\"]$\");return function(g,e){var f;if(e<c&&b.test(g)){f=parseInt(g.substr(a.length));if(f<d){f=f+1}return a+f}else{return a+\"1\"}}},createPreselectTryPlayFun:function(c){var a,b;b=/^preselect[1-8]$/;a=\"preselect\";return function(f,d){var e;if(d<3000&&b.test(f)){e=parseInt(f.substr(9));if(c&&e>1){e=e-1}else{if(e<8){e=e+1}}return a+e}else{return a+\"1\"}}},play",291010,45,"a===\"taskdone\"){if(!this._taskdoneTryPlayFun){this._taskdoneTryPlayFun=this.createTryPlayFun(\"taskdone\",8)}return this.tryPlay(this._taskdoneTryPlayFun)}else{if(a===\"postponetask\"){return this.play(\"postponetask\")}else{if(a===\"starttask\"){return this.play(\"starttask\")}else{if(a===\"deletetask\"){return this.play(\"deletetask\")}else{if(a===\"addtask\"){return this.play(\"addtask\")}else{if(a===\"edittask\"){return this.play(\"edittask\")}else{if(a===\"preselect\"){return this.tryPlay(this.createPreselectTryPlayFun(b.getCdata().preselected))}}}}}}}},tryPlay:function(a){var b;b=a(this.prename,Date.now()-this.pretime);if(b){return this.play(b)}},play:function(a){var b;b=this.sounds[a];if(!b){b=this.createSound(a);this.sounds[a]=b}if(this.prename){this.sounds[this.prename].stop()}b.play();this.prename=a;return this.pretime=Date.now()},createSound:function(b){var a;a=\"resources/sounds/\"+b+\".m4a\";return Ext.Viewport.add({xtype:\"audio\",hidden:true,url:a}",293242,32866,"timerType:\"go\",time:null,timeout:null,",326108,858,326989,245,"Timeout",327166,35,"timeout",327206,298,"b){var e,a,g,f,d,c;if(b==null){b=this.getRecord()",327702,42,"a=b.get(\"status\");if(a===\"open\"){this.setTimerType(\"ready\");this.setTime(0);return}c=b",291219,37,"g=d.findRecord(\"uid\",c);if(g){f=g.get(\"time\");this.setTimerType(g.get(\"type\"))}else{f=b",327664,32,"this.setTimerType(\"go\")}e",327745,47,"e.refreshAll(",327807,33,327842,118,"updateTime:function(d){var b,a,c",327998,61,"a.setText(this.timeText(d));if(this.getTimerType()===\"ready\"){this.setTimeout(false);if(a){a.hide()}b.setIconCls(\"play1\"",328360,33,"if(this.getTimerType()===\"go\"){c=d",328122,32,"c>100){this.setTimeout(true);",328161,66,"this.setTimeout(false);a.setValue(c",328239,47,"c=100-d",328293,50,"c<0){this.setTimeout(true);",328348,45,"this.setTimeout(false);a.setValue(c);return b.setUi(\"normal\")}}}},updateTimeout:function(b,a){if(b&&Ext.isBoolean(a)&&b!==a){return this.onTimeout()}},refreshAll:function(c){var a,b;a=Date.now();b=a-c;return this.setTime(b)",328433,13008,",\"break\"",394556,39,"reak\",a,b)},timeout",394556,38,"timeout\",a,b",341439,49,",\"break\",\"timeou",341486,33,"eady",340908,90,"eady\",config:{store:\"Ready",341033,408,",\"break\"",341344,36,342253,59,"star",341486,101,",\"FvTouch.view.Ready",341586,72,",{xtype:\"ready\"}],control:{runninglist:{refresh:\"onDataviewRefresh\"},ready:{refresh:\"onDataviewRefresh\"}}",315872,34,"this.onDataviewRefresh(this.child(\"runninglist\"));return this.onDataviewRefresh(this.child(\"ready\"))}}},onDataviewRefresh:function(a){if(a.getStore().getCount()){return a.show()}else{return a.hide()}",341659,9033,",\"FvTouch.dataview.element.List",350691,92,"div class=\\\"x-docking-horizontal\\\">\\n <div class='x-docked-left cmdtype {type}'></div>\\n <div class=\\\"x-body tasktitle\\\">{title}</div>\\n <div class='x-docked-right taskendtime'>{endtime:date('H:i:s')}</div>\\n</div>\",listeners:{itemdoubletap",341851,40,"dd\",a)}},bubbleEvents:[\"add\"]},prepareData:function(g,c,a){var b,f,e;try{f=Ext.getStore(\"Tasks\");e=g.cdata.task.uid;b=f.findRecord(\"uid\",e",350982,53,"type:g.type",351034,59,"g.ctime)}}catch(d){console.info(d);return{title:\"[error]\",type:\"\",createtime:new Data(),endtime:new Date(",342751,32,"History",343932,50,351197,42787,"this.initConfig(a);return this.init()},init:Ext.emptyFn",394010,4354,"filterFn:function(d){var a,c,b;c=d.get(\"type\");if(c===\"taskdone\"||c===\"postponetask\"){b=d.get(\"cdata\").task.uid;a=Ext.getStore(\"Tasks\").findRecord(\"uid\",b);if(!a){return false}if(c===\"postponetask\"){return d.get(\"cdata\").task.status===\"running\"}else{return true}}else{return false}}",398396,190,"FvTouch.store.Read",398126,48,"asks\"",398010,36,"open\"}]",398539,32,",init:function(){var a;a=Ext.getStore(\"Preselecteds\");a.on({refresh:\"refreshData\",scope:this});return this.refreshData(a)},addOn",277883,32,"setData([a])}else{return this.clearData()}},refreshData:function(b){var c,a;c=b.first();if(c){a=Ext.getStore(\"Tasks\").getById(c.get(\"task_id\"));return this.addOne(a)}else{return this.addOne(null)}",398570,6387,",\"Sounds",404956,136,",\"Read",405090,577]
+["/*022eda3a66e9071b0bedd0435d39bd8357e275fd",42,214314,"if(!b",220795,68,"b.data.uid,title:b.data.title,info:b.data.info",214438,1144,"c){var e,h,f,a,d,i,b,g;g=Ext.getStore(\"Tasks\");b=g.findRecord(\"uid\",c.uid);a=c.title;if(Ext.isEmpty(a)){return false}f=c.info;i=b.get(\"title\");d=b.get(\"info\");if(a===i&&this.isEquals(f,d)){return false}h=this.getDelta(f,d);e={uid:c.uid,\"new\":{},old:{}};if(a!==i){e[\"new\"].title=a;e.old.title=i}if(h.xDelta){e[\"new\"].info=h.xDelta}if(h.yDelta){e.old.info=h.yDelta}return e},doImpl:function(){var c,f,d,a,b,e",215775,71,"e=c[\"new\"].title;if(e!==void 0){a.set(\"title\",e)}f=c[\"new\"].info;if(f){d=this.apply(a.get(\"info\"),f);a.set(\"info\",d)}",215876,43,"f,d,a,b,e",215775,71,"e=c.old.title;if(e!==void 0){a.set(\"title\",e)}f=c.old.info;if(f){d=this.apply(a.get(\"info\"),f);a.set(\"info\",d)}return a.save()},isEquals:function(a,b){if(a===b){return true}else{if(Ext.isPrimitive(a)){return false}else{if(Ext.isArray(a)){return Ext.isArray(b)&&this.isArrayEquals(a,b)}else{if(Ext.isEmpty(a)){return false}else{if(Ext.isDate(a)){return Ext.isDate(b)&&a.getTime()===b.getTime()}else{if(Ext.isFunction(a)){return Ext.isFunction(b)&&a.toString()===b.toString()}else{return Ext.isObject(b)&&this.isObjectEquals(a,b)}}}}}}},isArrayEquals:function(a,d){var b,c;if(a.length===d.length){for(b=0,c=length-1;0<=c?b<c:b>c;0<=c?b++:b--){if(!this.isEquals(a[b],d[b])){return false}}return true}else{return false}},isObjectEquals:function(a,h){var d,e,g,c,f,b;g=Ext.Object.getKeys(a);c=Ext.Object.getKeys(h);e=Ext.Array.merge(g,c);for(f=0,b=e.length;f<b;f++){d=e[f];if(!this.isEquals(a[d],h[d])){return false}}return true},getDelta:function(g,c){var k,i,j,b,h,d,f,a,e;if(!Ext.isObject(g)){g={}}if(!Ext.isObject(c)){c={}}h=Ext.Object.getKeys(g);f=Ext.Object.getKeys(c);j=Ext.Array.merge(h,f);b={};d={};k=false;for(a=0,e=j.length;a<e;a++){i=j[a];if(!this.isEquals(g[i],c[i])){b[i]=g[i];d[i]=c[i];k=true}}if(k){return{xDelta:b,yDelta:d}}else{return{}}},apply:function(c,d){var b,a;c||(c={});for(b in d){a=d[b];if(a===void 0){delete c[b]}else{c[b]=d[b]}}if(Ext.Object.getSize(c)){return c}else{return}",218029,33,"ostpon",214159,57,216131,144,"if(!b",220795,51,"if(!a){return false}",216311,97,"if(",216345,48,"&&Ext.getStore(\"TodosProxy\").last().getId()===a.getId()",216393,1776,"e){var d,b,g,a,f,c;c=Ext.getStore(\"Todos\");g=Ext.getStore(\"Tasks\");b=g.findRecord(\"uid\",e.uid);if(!b",220795,51,"if(!a||",218299,59,"f=Ext.getStore(\"TodosProxy\");d=f.first();if(d&&a.getId()===d.getId()){return false}return{uid:e",218370,195,"getId()",218572,369,"getId()",218572,71,"===e",217520,39,219062,321,"if(!b",220795,51,219419,1352,"!b",218317,41,221134,36,220846,3610,"var b,c;if(Ext.isEmpty(a.title)){return false}b=",224488,69,";c=this.normalize(a.info);if(c){b.info=c}return b",224557,166,"info:e.info",224722,331,",normalize:function(c){var b,a;for(b in c){a=c[b];if(a===void 0){delete c[b]}}if(Ext.Object.getSize(c)){return c}else{return}",225052,13786,",tagsButton:\"mytoolbar #tags",238837,53,",tags:\"onTags",238889,154,",onTags",289196,56,"Tags\").show()},launch:function(){var a;a=",288944,37,"Tags\");a.on({scope:this,change:\"changeTagsBadgeText\"});return this.changeTagsBadgeText(a.getTag())},changeTagsBadgeText:function(a){return this.getTagsButton().setBadgeText(a",284576,36,"AddTask",289632,65,239149,543,"f){var b,e,a,d,c;if(f){e=Ext.getStore(\"Tasks\");d=e.findRecord(\"uid\",f);if(d){c=Ext.clone(d.getData())}}else{a=",288944,37,"Tags\").getTag();if(a){c={info:{tags:[a]}}}}b=this.getPanel();if(!b",239723,33,"b)}if(c){b.setValues(c)}return b",239767,880,"controller.Tags",289632,41,"],config:{tag:window.localStorage.getItem(\"tag\"),views:[\"Tags\"],refs:{panel:{selector:\"tagspanel\",xtype:\"tags",240041,42,"hange:\"onChange\"}}},onChange:function(a,b){return this.setTag(b.tag)},show:function(){var a,b;b=this.getTags();if(Ext.Object.getSize(b)<=1){return}",239592,69,"if(!a.getParent()){Ext.Viewport.add(a)}a.setTags(this.getTags());a.setValue({tag:this.getTag()});return a.show()},getTags:function(){var a,b,c;c=Ext.getStore(\"Tasks\");b={\"\":0};a=this.getTag();if(!Ext.isEmpty(a)){b[a]=0}c.each(function(g){var h,d,j,f,i,e;if(g.data.info&&Ext.isArray(g.data.info.tags)&&g.data.info.tags.length){i=g.data.info.tags;e=[];for(j=0,f=i.length;j<f;j++){d=i[j];h=b[d];e.push(b[d]=h?h+1:1)}return e}else{return b[\"\"]=b[\"\"]+1}});return b",285803,32,"updateTag(this.getTag())},updateTag:function(a){var b;if(Ext.isEmpty(a)){window.localStorage.removeItem(\"tag\")}else{window.localStorage.setItem(\"tag\",a)}b=",288944,37,"TaskFilter\");if(b){b.setFilterFn(this.generateFilterFn(a))}return this.fireEvent(\"change\",a)},generateFilterFn:function(a){if(Ext.isEmpty(a)){return function(){return true}}else{return function(b){return b.data.info&&Ext.isArray(b.data.info.tags)&&Ext.Array.contains(b.data.info.tags,a",342751,34,240654,142,"itemId:\"add\"},{iconCls:\"tags\",itemId:\"tags\"},{iconCls:\"reply\",itemId",240833,58,"#add",316063,41,"add\")}},\"#undo",316063,41,"undo\")}},\"#tags",316063,41,"tags\")}}}",218029,32,241048,3971,"FvTouch.field.Tags",233524,35,"agsfield\",applyValue:function(a){if(Ext.isArray(a)){return a}else{if(Ext.isEmpty(a)){return[]}else{return[a.toString()]}",230815,32,";if(!Ext.isArray(b)){Ext.Logger.error(\"value of tagsfield should be an array\")}a=b.join(\", \");return this.callParent([a])},getValue:function(){var a,b;b=this.callParent();a=Ext.Array.map(b.split(\",\"),function(c){return c.trim()});a=Ext.Array.filter(a,function(c){return !Ext.isEmpty(c)});a=Ext.Array.unique(a);if(a.length){return a}else{return}}});Ext.define(\"Ext.Media",282157,33,"media\",config:{url:\"\",enableControls:Ext.os.is.Android?false:true,autoResume:false,autoPause:true,preload:true,loop:false,media:null,volume:1,muted:false",257968,52,"on({scope:a,activate:a.onActivate,deactivate:a.onDeactivate});a.addMediaListener({canplay:\"onCanPlay\",play:\"onPlay\",pause:\"onPause\",ended:\"onEnd\",volumechange:\"onVolumeChange\",timeupdate:\"onTimeUpdate\"})},addMediaListener:function(d,b){var c=this,e=c.media.dom,f=Ext.Function.bind;if(!Ext.isObject(d)){var a=d;d={};d[a]=b}Ext.Object.each(d,function(h,g){if(typeof g!==\"function\"){g=c[g]}if(typeof g==\"function\"){g=f(g,c);e.addEventListener(h,g)}})},onPlay:function(){this.fireEvent(\"play\",this)},onCanPlay:function(){this.fireEvent(\"canplay\",this)},onPause:function(){this.fireEvent(\"pause\",this,this.getCurrentTime())},onEnd:function(){this.fireEvent(\"ended\",this,this.getCurrentTime())},onVolum",193887,35,"volumechange\",this,this.media.dom.volume)},onTimeUpdate:function(){this.fireEvent(\"timeupdate\",this,this.getCurrentTime())},isPlaying:function(){return !Boolean(this.media.dom.paused)},onActivate:function(){var a=this;if(a.getAutoResume()&&!a.isPlaying()){a.play()}},onDeactivate:function(){var a=this;if(a.getAutoResume()&&a.isPlaying()){a.pause()}},updateUrl:function(a){var b=this.media.dom;b.src=a;if(\"load\" in b){b.load()}if(this.isPlaying()){this.play()}},updateEnableControls:function(a){this.media.dom.controls=a?\"controls\":false},updateLoop:function(a){this.media.dom.loop=a?\"loop\":false},play:function(){var a=this.media.dom;if(\"play\" in a){a.play();setTimeout(function(){a.play()},10)}},pause:function(){var a=this.media.dom;if(\"pause\" in a){a.pause()}},toggle:function(){if(this.isPlaying()){this.pause()}else{this.play()}},stop:function(){var a=this;a.setCurrentTime(0);a.fireEvent(\"stop\",a);a.pause()},updateVolume:function(a){this.media.dom.volume=a},updateMuted:function(a){this.fireEvent(\"mutedchange\",this,a);this.media.dom.muted=a},getCurrentTime:function(){return this.media.dom.currentTime},setCurrentTime:function(a){this.media.dom.currentTime=a;return a},getDuration:function(){return this.media.dom.duration",374450,32,"Ext.Object.each(event,function(c,b){if(typeof b!==\"function\"){b=a[b]}if(typeof b==\"function\"){b=bind(b,a);dom.removeEventListener(c,b)}})",245003,35372,"FvTouch.dataview.element.List\",{override:\"Ext.dataview.element.List\"",279368,100,"e.prepareData(d.getData(true),e.getStore().indexOf(d),d)",279474,314,280360,7122,"Ext.getStore(\"TasksProxy\").refresh();",287482,1939,292990,48,287417,44,";",288937,44,"TaskFilter\").on({update:\"refresh\",scope:this",289518,381,"timeout:\"onTimeout",289897,70,287326,36,292990,40,290027,857,292990,110,";",288937,44,"TaskFilter\").on({update:\"refresh\",scope:this",290999,200,"b,c){var a,g,f,e,d;d=b.get(\"uid\");e=Ext.getStore(\"Timers\");g=e.findRecord(\"uid\",d);if(g){f=g",291289,38,"e.add({uid:d,time:b.get(\"starttime\"),type:\"go\"});f=\"break\"}e.add({uid:d,time:Date.now(),type:f});if(!c.getTimeout()){a=",288944,37,"Sounds\");if(f===\"go\"){a.play(\"starttask\")}else{a.play(\"break\")}}return c.updateTimer(b)},onTimeout:function(b,c){var a,d;d=c.getTimerType();a=",288944,37,"Sounds\");if(d===\"go\"){return a.play(\"break\")}else{return a.play(\"starttask\")}",288378,94,288477,168,291709,1258,"config:{refs:{historyview:\"historyview\"},control:{historyview:{add:\"showAddPanel",289966,61,293030,70,";",288937,44,"TaskFilter\").on({update:\"refresh\",scope:this",290999,56,"a===\"taskdone\"||a===\"postponetask",293157,87,",showAddPanel:function(a){var b,c;c=a.data.cdata.task.uid;b=Ext.getStore(\"Tasks\").findRecord(\"uid\",c);if(!b){return}",288937,44,"AddTask\").show(c)}});Ext.define(\"Ext.Audio\",{extend:\"Ext.Media\",xtype:\"audio\"",76282,32,"audio\"},onActivat",230367,39,"if(Ext.os.is.Phone){a.element.show()}},onDeactivat",230367,39,"if(Ext.os.is.Phone){a.element.hide()}},template:[{reference:\"media\",preload:\"auto\",tag:\"audio\",cls:Ext.baseCSSPrefix+\"component\"}]",239872,34,"Sounds",289632,42,"Ext.Audio\",",284656,32,"],sounds:{",287344,66,"playIfRelated\",undo:function(){return this.play(\"undo\")},scope:this})},createTryPlayFun:function(a,d,c){var b;if(c==null){c=3000}b=new RegExp(\"^\"+a+\"[1-\"+d+\"]$\");return function(g,e){var f;if(e<c&&b.test(g)){f=parseInt(g.substr(a.length));if(f<d){f=f+1}return a+f}else{return a+\"1\"}}},createPreselectTryPlayFun:function(c){var a,b;b=/^preselect[1-8]$/;a=\"preselect\";return function(f,d){var e;if(d<3000&&b.test(f)){e=parseInt(f.substr(9));if(c&&e>1){e=e-1}else{if(e<8){e=e+1}}return a+e}else{return a+\"1\"}}},play",291010,45,"a===\"taskdone\"){if(!this._taskdoneTryPlayFun){this._taskdoneTryPlayFun=this.createTryPlayFun(\"taskdone\",8)}return this.tryPlay(this._taskdoneTryPlayFun)}else{if(a===\"postponetask\"){return this.play(\"postponetask\")}else{if(a===\"starttask\"){return this.play(\"starttask\")}else{if(a===\"deletetask\"){return this.play(\"deletetask\")}else{if(a===\"addtask\"){return this.play(\"addtask\")}else{if(a===\"edittask\"){return this.play(\"edittask\")}else{if(a===\"preselect\"){return this.tryPlay(this.createPreselectTryPlayFun(b.getCdata().preselected))}}}}}}}},tryPlay:function(a){var b;b=a(this.prename,Date.now()-this.pretime);if(b){return this.play(b)}},play:function(a){var b;b=this.sounds[a];if(!b){b=this.createSound(a);this.sounds[a]=b}if(this.prename){this.sounds[this.prename].stop()}b.play();this.prename=a;return this.pretime=Date.now()},createSound:function(b){var a;a=\"resources/sounds/\"+b+\".m4a\";return Ext.Viewport.add({xtype:\"audio\",hidden:true,url:a}",293242,22280,",\"FvTouch.field.Tags\"],config:{values:void 0,",315532,337,",",315810,34,"agsfield\",name:\"tags\",label:\"Tags",315865,267,"applyValues:function(a){if(a===void 0||a===null){return a}else{return Ext.apply(a.info||{},{title:a.title})}},getValues:function(){var b,a;a=",316160,35,";b=a.title;delete a.title;return{title:b,info:a}},update",316200,820,"if(a){this.setUid(a.uid",107504,55,317092,9016,"timerType:\"go\",time:null,timeout:null,",326108,858,326989,245,"Timeout",327166,35,"timeout",327206,298,"b){var e,a,g,f,d,c;if(b==null){b=this.getRecord()",327702,42,"a=b.get(\"status\");if(a===\"open\"){this.setTimerType(\"ready\");this.setTime(0);return}c=b",291219,37,"g=d.findRecord(\"uid\",c);if(g){f=g.get(\"time\");this.setTimerType(g.get(\"type\"))}else{f=b",327664,32,"this.setTimerType(\"go\")}e",327745,47,"e.refreshAll(",327807,33,327842,118,"updateTime:function(d){var b,a,c",327998,61,"a.setText(this.timeText(d));if(this.getTimerType()===\"ready\"){this.setTimeout(false);if(a){a.hide()}b.setIconCls(\"play1\"",328360,33,"if(this.getTimerType()===\"go\"){c=d",328122,32,"c>100){this.setTimeout(true);",328161,66,"this.setTimeout(false);a.setValue(c",328239,47,"c=100-d",328293,50,"c<0){this.setTimeout(true);",328348,45,"this.setTimeout(false);a.setValue(c);return b.setUi(\"normal\")}}}},updateTimeout:function(b,a){if(b&&Ext.isBoolean(a)&&b!==a){return this.onTimeout()}},refreshAll:function(c){var a,b;a=Date.now();b=a-c;return this.setTime(b)",328433,13008,",\"break\"",394556,39,"reak\",a,b)},timeout",394556,38,"timeout\",a,b",341439,49,",\"break\",\"timeou",341486,33,"eady",340908,90,"eady\",config:{store:\"Ready",341033,408,",\"break\"",341344,36,342253,59,"star",341486,101,",\"FvTouch.view.Ready",341586,72,",{xtype:\"ready\"}],control:{runninglist:{refresh:\"onDataviewRefresh\"},ready:{refresh:\"onDataviewRefresh\"}}",315872,34,"this.onDataviewRefresh(this.child(\"runninglist\"));return this.onDataviewRefresh(this.child(\"ready\"))}}},onDataviewRefresh:function(a){if(a.getStore().getCount()){return a.show()}else{return a.hide()}",341659,9033,",\"FvTouch.dataview.element.List",350691,92,"div class=\\\"x-docking-horizontal\\\">\\n <div class='x-docked-left cmdtype {type}'></div>\\n <div class=\\\"x-body tasktitle\\\">{title}</div>\\n <div class='x-docked-right taskendtime'>{endtime:date('H:i:s')}</div>\\n</div>\",listeners:{itemdoubletap",341851,40,"dd\",a)}},bubbleEvents:[\"add\"]},prepareData:function(g,c,a){var b,f,e;try{f=Ext.getStore(\"Tasks\");e=g.cdata.task.uid;b=f.findRecord(\"uid\",e",350982,53,"type:g.type",351034,59,"g.ctime)}}catch(d){console.info(d);return{title:\"[error]\",type:\"\",createtime:new Data(),endtime:new Date(",342751,32,"History",343932,50,351197,42787,"this.initConfig(a);return this.init()},init:Ext.emptyFn",394010,3269,"Task",398121,53,"asks\"",397839,55,"controller.TaskFilter",289632,50,"store.TasksProxy\"],config:{filterFn:function(){return true}},updateFilterFn:function(a){var b;b=Ext.getStore(\"TasksProxy\");if(b){b.clearFilter(true);b.setFilters([{filterFn:a}]);",287489,37,"return this.fireEvent(\"update\"",392143,34,398118,62,"filters:[{filterFn:function(b){var a,c;c=Ext.getStore(\"TasksProxy\");a=c.getById(b.get(\"task_id\"));return !Ext.isEmpty(a)",397836,64,397279,511,"d){var a,c,b;b=Ext.getStore(\"TodosProxy\");if(b.getCount()&&b.getById(d.getId())&&(d.data.preselected||d.getId()===b.first().getId())){return true}else{c=Ext.getStore(\"Tasks\");a=c.getById(d.get(\"task_id\"));return a&&a.get(\"status\")===\"running\"}",397836,281,398240,124,"filterFn:function(d){var a,c,b;c=d.get(\"type\");if(c===\"taskdone\"||c===\"postponetask\"){b=d.get(\"cdata\").task.uid;a=Ext.getStore(\"TasksProxy\").findRecord(\"uid\",b);if(!a){return false}if(c===\"postponetask\"){return d.get(\"cdata\").task.status===\"running\"}else{return true}}else{return false}}",398396,190,"FvTouch.store.Read",398126,48,"asks\"",398010,36,"open\"}]",398539,32,",init:function(){var a;a=Ext.getStore(\"Preselecteds\");a.on({refresh:\"refreshData\",scope:this});return this.refreshData(a)},addOn",277883,32,"setData([a])}else{return this.clearData()}},refreshData:function(b){var c,a;c=b.first();if(c){a=Ext.getStore(\"Tasks\").getById(c.get(\"task_id\"));return this.addOne(a)}else{return this.addOne(null)}",398570,4244,"info",402804,1056,"picker.Slot\",{",344144,38,"pickerslot\",alternateClassName:\"Ext.Picker.Slot",310628,33,"data.Store\",\"Ext.Component\",\"Ext.data.StoreManager\"],isSlot:true,config:{title:null,showTitle:true,cls:Ext.baseCSSPrefix+\"picker-slot\",name:null,value:null,flex:1,align:\"left\",displayField:\"text\",valueField:\"value\",scrollable:{direction:\"vertical\",indicators:false,momentumEasing:{minVelocity:2},slotSnapEasing:{duration:100}}",269958,38,"Index=0",270027,34,"Title:function(a){if(a){a=Ext.create(\"Ext.Component\",{cls:Ext.baseCSSPrefix+\"picker-slot-title\",docked:\"top\",html:a})}return a",244666,45,";this.setupBar()}if(a){this.remove(a)}},updateShowTitle:function(a){var b=this.getTitle();if(b){b[a?\"show\":\"hide\"]();this.setupBar()}},updateDisplayField:function(a){this.setItemTpl('<div class=\"'+Ext.baseCSSPrefix+'picker-item {cls} <tpl if=\"extra\">'+Ext.baseCSSPrefix+'picker-invalid</tpl>\">{'+a+\"}</div>\")},updateAlign:function(a,c){var b=this.element;b.addCls(Ext.baseCSSPrefix+\"picker-\"+a);b.removeCls(Ext.baseCSSPrefix+\"picker-\"+c)},applyData:function(d){var f=[],c=d&&d.length,a,b,e;if(d&&Ext.isArray(d)&&c){for(a=0;a<c;a++){b=d[a];e={};if(Ext.isArray(b)){e[this.valueField]=b[0];e[this.displayField]=b[1]}else{if(Ext.isString(b)){e[this.valueField]=b;e[this.displayField]=b}else{if(Ext.isObject(b)){e=b}}}f.push(e)}}return d},updateData:function(",337853,46,"fields:[\"text\",\"value\"],data:a}))",303309,42,"var a=this.getScrollable().getScroller();this.on({scope:this,painted:\"onPainted\",itemtap:\"doItemTap\"});a.on({scope:this,scrollend:\"onScrollEn",119325,32,"setupBar()},getPicker:function(){if(!this.picker){this.picker=this.getParent()}return this.picker},setupBa",179886,32,"return}var a=this.element,e=this.innerElement,f=this.getPicker(),g=f.bar,k=this.getValue(),b=this.getShowTitle(),j=this.getTitle(),h=this.getScrollable(),d=h.getScroller(),c=0,l,i;l=g.getHeight();if(b&&j){c=j.element.getHeight()}i=Math.ceil((a.getHeight()-c-l)/2);e.setStyle({padding:i+\"px 0 \"+(i)+\"px\"});d.refresh();d.setSlotSnapSize(l);this.setValue(k)},doItemTap:function(d,a,c,f){var b=this;b.selectedIndex=a;b.selectedNode=c;b.scrollToItem(c,true);b.fireEvent(\"slotpick\",b,b.getValue(true),b.selectedNode)},scrollToItem:function(e,d){var h=e.getY(),c=e.parent(),f=c.getY(),b=this.getScrollable(),a=b.getScroller(),g;g=h-f;a.scrollTo(0,g,d)},onScrollEnd:function(b,a,g){var f=this,d=Math.round(g/f.picker.bar.getHeight()),c=f.getViewItems(),e=c[d];if(e){f.selectedIndex=d;f.selectedNode=e;f.fireEvent(\"slotpick\",f,f.getValue(),f.selectedNode)}},getValue:function(c){var b=this.getStore(),a,d;if(!b){return}if(!this.rendered||!c){return this._value}if(this._value===false){return null}a=b.getAt(this.selectedIndex);d=a?a.get(this.getValueField()):null;return d},setValue:function(f){if(!Ext.isDefined(f)){return}if(!this.rendered||!f){this._value=f;return}var b=this.getStore(),a=this.getViewItems(),d=this.getValueField(),c,e;c=b.find(d,f);if(c!=-1){e=Ext.get(a[c]);this.selectedIndex=c;this.scrollToItem(e);this._value=f}},setValueAnimated:function(f){if(!f){return}if(!this.rendered){this._value=f;return}var b=this.getStore(),a=this.getViewItems(),d=this.getValueField(),c,e;c=b.find(d,f);if(c!=-1){e=Ext.get(a[c]);this.selectedIndex=c;this.scrollToItem(e,{duration:100});this._value=f}}});Ext.define(\"Ext.picker.Picker",241578,36,"picker\",alternateClassName:\"Ext.Picker\",requires:[\"Ext.picker.Slot\",\"Ext.Toolbar\",\"Ext.data.Model\"],isPicker:true",76282,32,"picker\",doneButton:true,cancelButton:true,useTitles:false,slots:null,value:null,height:220,layout:{type:\"hbox\",align:\"stretch\"},centered:false,left:0,right:0,bottom:0,defaultType:\"pickerslot\",toolbar:true},initElement",402128,43,"b=this,a=Ext.baseCSSPrefix,c=this.innerElement;this.mask=c.createChild({cls:a+\"picker-mask\"});this.bar=this.mask.createChild({cls:a+\"picker-bar\"});b.on({scope:this,delegate:\"pickerslot\",slotpick:\"onSlotPick\"});b.on({scope:this,show:\"onShow\"})},applyToolb",304068,33,"Ext.applyIf(a,{docked:\"top\"});return Ext.factory(a,\"Ext.TitleBar\",this.getToolbar())},updateToolbar",237153,56,"applyDoneButton:function(a){if(a){if(Ext.isBoolean(a)){a={}}if(typeof a==\"string\"){a={text:a}}Ext.applyIf(a,{ui:\"action\",align:\"right\",text:\"Done\"})}return Ext.factory(a,\"Ext.Button\",this.getDoneButton())},updateDoneButton:function(c,a){var b=this.getToolbar();if(c){b.add(c);c.on(\"tap\",this.onDoneButtonTap,this)}else{if(a){b.remove(a)}}},applyCancelButton:function(a){if(a){if(Ext.isBoolean(a)){a={}}if(typeof a==\"string\"){a={text:a}}Ext.applyIf(a,{align:\"left\",text:\"Cancel\"})}return Ext.factory(a,\"Ext.Button\",this.getCancelButton())},updateCancelButton:function(b,a){var c=this.getToolbar();if(b){c.add(b);b.on(\"tap\",this.onCancelButtonTap,this)}else{if(a){c.remove(a)}}},updateUseTitles:function(d){var f=this.getInnerItems(),e=f.length,a=Ext.baseCSSPrefix+\"use-titles\",c,b;if(d",229600,40,"for(c=0;c<e;c++){b=f[c];if(b.isSlot){b.setShowTitle(d)}}},applySlots:function(b){if(b){var c=b.length,a;for(a=0;a<c;a++){b[a].picker=this}}return b},updateSlots:function(a){var b=Ext.baseCSSPrefix,c;this.removeAll();if(a){this.add(a)}c=this.getInnerItems();if(c.length>0){c[0].addCls(b+\"first\");c[c.length-1].addCls(b+\"last\")}this.updateUseTitles(this.getUseTitles())},onDoneButtonTap:function(){var a=this._value,b=this.getValue(true);if(b!=a){this.fireEvent(\"change\",this,b)}this.hide()},onCancelButtonTap:function(){this.fireEvent(\"cancel\",this);this.hide()},onSlotP",213693,32,"pick\",this,this.getValue(true),a)},onShow:function(){if(!this.isHidden()){this.setValue(this._value)}},setValue:function(k,a){var f=this,d=f.getInnerItems(),e=d.length,j,h,c,b,g;if(!k){k={};for(b=0;b<e;b++){k[d[b].config.name]=null}}for(j in k){g=k[j];for(b=0;b<d.length;b++){c=d[b];if(c.config.name==j){h=c;break}}if(h){if(a){h.setValueAnimated(g)}else{h.setValue(g)}}}f._values=f._value=k;return f},setValueAnimated:function(a){this.setValue(a,true)},getValue:function(c){var b={},a=this.getItems().items,f=a.length,e,d;if(c){for(d=0;d<f;d++){e=a[d];if(e&&e.isSlot){b[e.getName()]=e.getValue(c)}}this._values=b}return this._values",261251,38,"Value(",69768,38,");Ext.destroy(this.mask,this.bar)",315342,42,"Tags\",{extend:\"Ext.picker.Picker\",xtype:\"tagspanel\",config:{tags:{},hideOnMaskTap:true},updateTags:function(c){var d,b,a;d=(function(){var e;e=[];for(b in c){a=c[b];e.push({text:b,value:a})}return e})();d=Ext.Array.sort(d,function(e,f){if(Ext.isEmpty(e.text)){return -1}else{if(Ext.isEmpty(f.text)){return 1}else{return f.value-e.value}}});return this.setSlots({name:\"tag\",data:Ext.Array.map(d,function(e){return{text:e.text,value:e.text}})})",403840,1032,"askFilter",404868,89,",\"Sounds\",\"Tags",404956,80,"TasksProxy\",\"TodosProxy",405033,38,"History\",\"Read",405090,577]
2  deltas/app.js/5e5d0d548e6e35b0853a405e624ad9147b440f71.json
View
@@ -1 +1 @@
-["/*e98e3e743a2813f1f95750e291a0b5256828bd6a",42,239650,"e){var a,d,c,b;if(e){",240362,48,"if(c){b=Ext.clone(c.getData())}}",239700,59,"if(b){a.setValues(b",239757,5266,"Media",277241,33,"media\",config:{url:\"\",enableControls:Ext.os.is.Android?false:true,autoResume:false,autoPause:true,preload:true,loop:false,media:null,volume:1,muted:false",257968,52,"on({scope:a,activate:a.onActivate,deactivate:a.onDeactivate});a.addMediaListener({canplay:\"onCanPlay\",play:\"onPlay\",pause:\"onPause\",ended:\"onEnd\",volumechange:\"onVolumeChange\",timeupdate:\"onTimeUpdate\"})},addMediaListener:function(d,b){var c=this,e=c.media.dom,f=Ext.Function.bind;if(!Ext.isObject(d)){var a=d;d={};d[a]=b}Ext.Object.each(d,function(h,g){if(typeof g!==\"function\"){g=c[g]}if(typeof g==\"function\"){g=f(g,c);e.addEventListener(h,g)}})},onPlay:function(){this.fireEvent(\"play\",this)},onCanPlay:function(){this.fireEvent(\"canplay\",this)},onPause:function(){this.fireEvent(\"pause\",this,this.getCurrentTime())},onEnd:function(){this.fireEvent(\"ended\",this,this.getCurrentTime())},onVolum",193887,35,"volumechange\",this,this.media.dom.volume)},onTimeUpdate:function(){this.fireEvent(\"timeupdate\",this,this.getCurrentTime())},isPlaying:function(){return !Boolean(this.media.dom.paused)},onActivate:function(){var a=this;if(a.getAutoResume()&&!a.isPlaying()){a.play()}},onDeactivate:function(){var a=this;if(a.getAutoResume()&&a.isPlaying()){a.pause()}},updateUrl:function(a){var b=this.media.dom;b.src=a;if(\"load\" in b){b.load()}if(this.isPlaying()){this.play()}},updateEnableControls:function(a){this.media.dom.controls=a?\"controls\":false},updateLoop:function(a){this.media.dom.loop=a?\"loop\":false},play:function(){var a=this.media.dom;if(\"play\" in a){a.play();setTimeout(function(){a.play()},10)}},pause:function(){var a=this.media.dom;if(\"pause\" in a){a.pause()}},toggle:function(){if(this.isPlaying()){this.pause()}else{this.play()}},stop:function(){var a=this;a.setCurrentTime(0);a.fireEvent(\"stop\",a);a.pause()},updateVolume:function(a){this.media.dom.volume=a},updateMuted:function(a){this.fireEvent(\"mutedchange\",this,a);this.media.dom.muted=a},getCurrentTime:function(){return this.media.dom.currentTime},setCurrentTime:function(a){this.media.dom.currentTime=a;return a},getDuration:function(){return this.media.dom.duration",363120,32,"Ext.Object.each(event,function(c,b){if(typeof b!==\"function\"){b=a[b]}if(typeof b==\"function\"){b=bind(b,a);dom.removeEventListener(c,b)}})",245003,33242,"view.element.List\",{extend:",329541,32,",updateBaseCls:function(a){var b=this;b.itemClsShortCache=a+\"-item\";b.headerClsShortCache=a+\"-header\";b.headerClsCache=\".\"+b.headerClsShortCache;b.headerItemClsShortCache=a+\"-header-item\";b.footerClsShortCache=a+\"-footer-item\";b.footerClsCache=\".\"+b.footerClsShortCache;b.labelClsShortCache=a+\"-item-label\";b.labelClsCache=\".\"+b.labelClsShortCache;b.disclosureClsShortCache=a+\"-disclosure\";b.disclosureClsCache=\".\"+b.disclosureClsShortCache;b.iconClsShortCache=a+\"-icon\";b.iconClsCache=\".\"+b.iconClsShortCache;this.callParent(arguments)},hiddenDisplayCache:Ext.baseCSSPrefix+\"hidden-display\",getItemElementConfig:function(e,h){var f=this,c=f.dataview,g=c.getItemCls(),b=f.itemClsShortCache,d,a;if(g){b+=\" \"+g}d={cls:b,children:[{cls:f.labelClsShortCache,html:c.getItemTpl().apply(h)}]};if(c.getIcon()){a=h.iconSrc;d.children.push({cls:f.iconClsShortCache,style:\"background-image: \"+a?'url(\"'+newSrc+'\")':\"\"})}if(c.getOnItemDisclosure()){d.children.push({cls:f.disclosureClsShortCache+\" \"+((h[c.getDisclosureProperty()]===false)?f.hiddenDisplayCache:\"\")})}return d},updateListItem:function(d,k){var h=this,e=h.dataview,j=Ext.fly(k),g=j.down(h.labelClsCache,true),c=d.data,b=e.getDisclosureProperty(),a=c&&c.hasOwnProperty(b),l=c&&c.hasOwnProperty(\"iconSrc\"),f,i;g.innerHTML=e.getItemTpl().apply(c);if(a){f=j.down(h.disclosureClsCache);f[c[b]===false?\"removeCls\":\"addCls\"](h.hiddenDisplayCache)}if(e.getIcon()){i=j.down(h.iconClsCache,true);i.style.backgroundImage=l?'url(\"'+l+'\")':\"\"}},doRemoveHeaders:function(){var e=this,a=e.headerItemClsShortCache,b=e.element.query(e.headerClsCache),f=b.length,c=0,d;for(;c<f;c++){d=b[c];Ext.fly(d.parentNode).removeCls(a);Ext.removeNode(d)}},doRemoveFooterCls:function(){var d=this,c=d.footerClsShortCache,a=d.element.query(d.footerClsCache),e=a.length,b=0;for(;b<e;b++){Ext.fly(a[b]).removeCls(c)}},doAddHeader:function(b,a){b=Ext.fly(b);if(a){b.insertFirst(Ext.Element.create({cls:this.headerClsShortCache,html:a}))}b.addCls(this.headerItemClsShortCache)},destroy:function(){this.doRemoveHeaders();",329294,33,"FvTouch.dataview.element.List\",{override:\"Ext.dataview.element.List\",updateListItem:function(d,k){var h=this,e=h.dataview,j=Ext.fly(k),g=j.down(h.labelClsCache,true),c=e.prepareData(d.getData(true),e.getStore().indexOf(d),d),b=e.getDisclosureProperty(),a=c&&c.hasOwnProperty(b),l=c&&c.hasOwnProperty(\"iconSrc\"),f,i;g.innerHTML=e.getItemTpl().apply(c);if(a){f=j.down(h.disclosureClsCache);f[c[b]===false?\"removeCls\":\"addCls\"](h.hiddenDisplayCache)}if(e.getIcon()){i=j.down(h.iconClsCache,true);i.style.backgroundImage=l?'url(\"'+l+'\")':\"\"}}});Ext.define(\"Ext.dataview.IndexBa",168110,51,"IndexBar\"",222031,36,"indexbar\",direction:\"vertical\",letters:[\"A\",\"B\",\"C\",\"D\",\"E\",\"F\",\"G\",\"H\",\"I\",\"J\",\"K\",\"L\",\"M\",\"N\",\"O\",\"P\",\"Q\",\"R\",\"S\",\"T\",\"U\",\"V\",\"W\",\"X\",\"Y\",\"Z\"],ui:\"alphabet\",listPrefix:null},itemCls:Ext.baseCSSPrefix+\"\",updateDirection:function(a,c){var b=this.getBaseCls();this.element.replaceCls(b+\"-\"+c,b+\"-\"+a",168795,49,"wrapper\",classList:[\"x-centered\",\"x-indexbar-wrapper\"]",129959,32,"updateLetters:function(c){this.innerElement.setHtml(\"\");if(c){var b=c.length,a;for(a=0;a<b;a++){this.innerElement.createChild({html:c[a]})}}},updateListPrefix:function(a){if(a&&a.length){this.innerElement.createChild({html:a},0)}",299264,47,"innerElement.on(",16597,35,"end:this.onTouchEnd,touchmove:this.onTouchMove,scope:this})},onTouchStart:function(b,a){b.stopPropagation();this.innerElement.addCls(this.getBaseCls()+\"-pressed\");this.pageBox=this.innerElement.getPageBox();this.onTouchMove(b)},onTouchEnd:function(b,a){this.innerElement.removeCls(this.getBaseCls()+\"-pressed\")},onTouchMove:function(c){var a=Ext.util.Point.fromEvent(c),b,d=this.pageBox;if(!d){d=this.pageBox=this.el.getPageBox()}if(this.getDirection()===\"vertical\"){if(a.y>d.bottom||a.y<d.top){return}b=Ext.Element.fromPoint(d.left+(d.width/2),a.y)}else{if(a.x>d.right||a.x<d.left){return}b=Ext.Element.fromPoint(a.x,d.top+(d.height/2))}if(b){this.fireEvent(\"index\",this,b.dom.innerHTML,b)}},destroy:function(){var c=this,d=Array.prototype.slice.call(c.innerElement.dom.childNodes),b=d",276436,41,"d[a])}",94954,33,";Ext.define(\"Ext.dataview.ListItemHeade",277240,34,"listitemheader\"",222031,36,"list-header\",docked:\"top\"",278221,7633,"timeout:\"onTimeout",285852,70,283281,36,286846,40,285982,1172,"b,c){var a,g,f,e,d;d=b.get(\"uid\");e=Ext.getStore(\"Timers\");g=e.findRecord(\"uid\",d);if(g){f=g",287244,38,"e.add({uid:d,time:b.get(\"starttime\"),type:\"go\"});f=\"break\"}e.add({uid:d,time:Date.now(),type:f});if(!c.getTimeout()){a=",238925,37,"Sounds\");if(f===\"go\"){a.play(\"starttask\")}else{a.play(\"break\")}}return c.updateTimer(b)},onTimeout:function(b,c){var a,d;d=c.getTimerType();a=",238925,37,"Sounds\");if(d===\"go\"){return a.play(\"break\")}else{return a.play(\"starttask\")}",284333,94,284432,168,287664,1258,"config:{refs:{historyview:\"historyview\"},control:{historyview:{add:\"showAddPanel",283296,76,286894,116,"a===\"taskdone\"||a===\"postponetask",289112,87,",showAddPanel:function(a){var b,c;c=a.data.cdata.task.uid;b=Ext.getStore(\"Tasks\").findRecord(\"uid\",c);if(!b){return}",284892,44,"AddTask\").show(c)}});Ext.define(\"Ext.Audio\",{extend:\"Ext.Media\",xtype:\"audio\"",76282,32,"audio\"},onActivat",298208,39,"if(Ext.os.is.Phone){a.element.show()}},onDeactivat",298208,39,"if(Ext.os.is.Phone){a.element.hide()}},template:[{reference:\"media\",preload:\"auto\",tag:\"audio\",cls:Ext.baseCSSPrefix+\"component\"}]",239872,34,"Sounds",238719,42,"Ext.Audio\",",285326,34,"sounds:{}",285359,65,"playIfRelated\",undo:function(){return this.play(\"undo\")},scope:this})},createTryPlayFun:function(a,d,c){var b;if(c==null){c=3000}b=new RegExp(\"^\"+a+\"[1-\"+d+\"]$\");return function(g,e){var f;if(e<c&&b.test(g)){f=parseInt(g.substr(a.length));if(f<d){f=f+1}return a+f}else{return a+\"1\"}}},createPreselectTryPlayFun:function(c){var a,b;b=/^preselect[1-8]$/;a=\"preselect\";return function(f,d){var e;if(d<3000&&b.test(f)){e=parseInt(f.substr(9));if(c&&e>1){e=e-1}else{if(e<8){e=e+1}}return a+e}else{return a+\"1\"}}},play",286965,45,"a===\"taskdone\"){if(!this._taskdoneTryPlayFun){this._taskdoneTryPlayFun=this.createTryPlayFun(\"taskdone\",8)}return this.tryPlay(this._taskdoneTryPlayFun)}else{if(a===\"postponetask\"){return this.play(\"postponetask\")}else{if(a===\"starttask\"){return this.play(\"starttask\")}else{if(a===\"deletetask\"){return this.play(\"deletetask\")}else{if(a===\"addtask\"){return this.play(\"addtask\")}else{if(a===\"edittask\"){return this.play(\"edittask\")}else{if(a===\"preselect\"){return this.tryPlay(this.createPreselectTryPlayFun(b.getCdata().preselected))}}}}}}}},tryPlay:function(a){var b;b=a(this.prename,Date.now()-this.pretime);if(b){return this.play(b)}},play:function(a){var b;b=this.sounds[a];if(!b){b=this.createSound(a);this.sounds[a]=b}if(this.prename){this.sounds[this.prename].stop()}b.play();this.prename=a;return this.pretime=Date.now()},createSound:function(b){var a;a=\"resources/sounds/\"+b+\".m4a\";return Ext.Viewport.add({xtype:\"audio\",hidden:true,url:a}",289197,32866,"timerType:\"go\",time:null,timeout:null,",322063,858,322944,245,"Timeout",312671,35,"timeout",323161,298,"b){var e,a,g,f,d,c;if(b==null){b=this.getRecord()",323657,42,"a=b.get(\"status\");if(a===\"open\"){this.setTimerType(\"ready\");this.setTime(0);return}c=b",287174,37,"g=d.findRecord(\"uid\",c);if(g){f=g.get(\"time\");this.setTimerType(g.get(\"type\"))}else{f=b",323619,32,"this.setTimerType(\"go\")}e",323700,47,"e.refreshAll(",323762,33,323797,118,"updateTime:function(d){var b,a,c",323953,61,"a.setText(this.timeText(d));if(this.getTimerType()===\"ready\"){this.setTimeout(false);if(a){a.hide()}b.setIconCls(\"play1\"",324315,33,"if(this.getTimerType()===\"go\"){c=d",324077,32,"c>100){this.setTimeout(true);",324116,66,"this.setTimeout(false);a.setValue(c",324194,47,"c=100-d",324248,50,"c<0){this.setTimeout(true);",324303,45,"this.setTimeout(false);a.setValue(c);return b.setUi(\"normal\")}}}},updateTimeout:function(b,a){if(b&&Ext.isBoolean(a)&&b!==a){return this.onTimeout()}},refreshAll:function(c){var a,b;a=Date.now();b=a-c;return this.setTime(b)",324388,13008,",\"break\"",383226,39,"reak\",a,b)},timeout",383226,38,"timeout\",a,b",338216,51,"break\",\"timeou",337441,33,"eady",336863,90,"eady\",config:{store:\"Ready",336988,408,",\"break\"",338061,36,338208,59,"start\"]",336823,36,339887,50,"RunningList\",\"FvTouch.view.Ready",337541,72,",{xtype:\"ready\"}],control:{runninglist:{refresh:\"onDataviewRefresh\"},ready:{refresh:\"onDataviewRefresh\"}}",311827,34,"this.onDataviewRefresh(this.child(\"runninglist\"));return this.onDataviewRefresh(this.child(\"ready\"))}}},onDataviewRefresh:function(a){if(a.getStore().getCount()){return a.show()}else{return a.hide()}",337614,2435,"Ext.dataview.List\",{alternateClassName:\"Ext.List\",extend:\"Ext.dataview.DataView\",xtype:\"list\",requires:[\"Ext.dataview.element.List\",\"Ext.dataview.IndexBar\",\"Ext.dataview.ListItemHeader\"],config:{indexBar:false,icon:null,preventSelectionOnDisclose:true,baseCls:Ext.baseCSSPrefix+\"list\",pinHeaders:true,grouped:false,onItemDisclosure:null,disclosureProperty:\"disclosure\",ui:\"normal\"},constructor:function(){this.translateHeader=(Ext.os.is.Android2)?this.translateHeaderCssPosition:this.translateHeaderTransform;",124762,34,"Trigger:function(c,b,f,a,d){if(!(this.getPreventSelectionOnDisclose()&&Ext.fly(d.target).hasCls(this.getBaseCls()+\"-disclosure\"))){this.callParent(arguments)}},initialize:function(){",330450,103,".element.List",330607,90,"element.on({delegate:\".\"+this.getBaseCls()+\"-disclosure\",tap:\"handleItemDisclosure\",scope:b}",330693,287,"updateInline",132399,40,"if(a){this.setOnItemDisclosure(false);this.setIndexBar(false);this.setGrouped(false)}},applyIndexBa",201552,39,"dataview.IndexBar,this.getIndexBar())},updateIndexBar:function(a){if(a&&this.getScrollable()){this.indexBarElement=",177286,44,".getElement().appendChild(a.renderElement);a.on({index:\"onIndex\",scope:this});",130336,37,"+\"-indexed\")}},updateGrouped:function(c){var b=this.getBaseCls(),a=b+\"-grouped\",d=b+\"-ungrouped\";if(c){this.addCls(a);this.removeCls(d);this.doRefreshHeaders();this.updatePinHeaders(this.getPinHeaders())}else{this.addCls(d);this.removeCls(a);if(this.container){this.container.doRemoveHeaders()}this.updatePinHeaders(null)}},updatePinHeaders:function(b){var c=this.getScrollable(),a;if(c){a=c.getScroller()}if(!c){return}if(b&&this.getGrouped()){a.on({refresh:\"doRefreshHeaders\",scroll:\"onScroll\",scope:this});if(!this.header||!this.header.renderElement.dom){this.createHeader()}}else{a.un({refresh:\"doRefreshHeaders\",scroll:\"onScroll\",scope:this});if(this.header){this.header.destroy()}}},createHeader:function(){var e,d=this.getScrollable(),a,b,c;if(d){a=d.getScroller();b=",177286,44,";c=b.getElement()}else{return}this.header=e=Ext.create(\"Ext.dataview.ListItemHeader\",{html:\" \",cls:\"x-list-header-swap\"});c.dom.insertBefore(e.element.dom,a.getContainer().dom.nextSibling);this.translateHeader(1000)},refresh",203037,35,"doRefreshHeaders()},onStoreAdd",100382,44,"doRefreshHeaders()},onStoreRemove",100382,44,"doRefreshHeaders()},onStoreUpdate",100382,44,"doRefreshHeaders()},onStoreClear:function(){this.callParent();if(this.header){this.header.destroy()}this.doRefreshHeaders()},getClosestGroups:function(){var a=this.pinHeaderInfo.offsets,e=this.getScrollable(),d=a.length,b=0,h,g,f,c;if(e){h=e.getScroller().position}else{return{current:0,next:0}}for(;b<d;b++){g=a[b];if(g.offset>h.y){c=g;break}f=g}return{current:f,next:c}},doRefreshHeaders:function(){if(!this.getGrouped()||!this.container){return false}var l=this.findGroupHeaderIndices(),f=l.length,g=this.container.getViewItems(),j=this.pinHeaderInfo={offsets:[]},a=j.offsets,h=this.getScrollable(),e,k,b,d,c;if(f){for(b=0;b<f;b++){d=g[l[b]];if(d){c=this.getItemHeader(d);a.push({header:c,offset:d.offsetTop})}}j.closest=this.getClosestGroups();this.setActiveGroup(j.closest.current);if(c){j.headerHeight=Ext.fly(c).getHeight()}if(h){e=h.getScroller();k=e.position;this.onScroll(e,k.x,k.y)}}},getItemHeader:function(b){var a=Ext.fly(b).down(this.container.headerClsCache);return a?a.dom:null},onScroll:function(e,j,h){var g=this,i=g.pinHeaderInfo,a=i.closest,b=g.activeGroup,c=i.headerHeight,d,f;if(!a){return}d=a.next;f=a.current;if(!this.header||!this.header.renderElement.dom){this.createHeader()}if(h<=0){if(b){g.setActiveGroup(false);a.next=f}this.translateHeader(1000);return}else{if((d&&h>d.offset)||(f&&h<f.offset)){a=i.closest=this.getClosestGroups();d=a.next;f=a.current;this.setActiveGroup(f)}}if(d&&h>0&&d.offset-h<=c){var k=c-(d.offset-h);this.translateHeader(k)}else{this.translateHeader(null)}},translateHeaderTransform:function(a){this.header.renderElement.dom.style.webkitTransform=(a===null)?null:\"translate3d(0px, -\"+a+\"px, 0px)\"},translateHeaderCssPosition:function(a){this.header.renderElement.dom.style.top=(a===null)?null:\"-\"+Math.round(a)+\"px\"},setActiveGroup:function(b){var a=this,c=a.header;if(c){if(b&&b.header){if(!a.activeGroup||a.activeGroup.header!=b.header){c.show();if(c.element){c.setHtml(b.header.innerHTML)}}}else{if(c&&c.element){c.hide()}}}this.activeGroup=b},onIndex:function(o,c){var r=this,s=c.toLowerCase(),b=r.getStore(),q=b.getGroups(),f=q.length,h=r.getScrollable(),n,e,m,g,k,p;if(h){n=r.getScrollable().getScroller()}else{return}for(m=0;m<f;m++){e=q[m];k=e.name.toLowerCase();if(k==s||k>s){g=e;break}else{g=e}}if(h&&g){p=r.container.getViewItems()[b.indexOf(g.children[0])];n.stopAnimation();var l=n.getContainerSize().y,j=n.getSize().y,d=j-l,a=(p.offsetTop>d)?d:p.offsetTop;n.scrollTo(0,a)}},applyOnItemDisclosure:function(a){if(Ext.isFunction(a)){return{scope:this,handler:a}}return a},handleItemDisclosure:function(f){var d=this,c=f.getTarget().parentNode,b=d.container.getViewItems().indexOf(c),a=d.getStore().getAt(b);d.fireAction(\"disclose\",[d,a,c,b,f],\"doDisclose\")},doDisclose:function(f,a,d,c,g){var b=f.getOnItemDisclosure();if(b&&b.handler){b.handler.call(b.scope||f,a,d,c,g)}},findGroupHeaderIndices:function(){if(!this.getGrouped()){return[]}var h=this,k=h.getStore();if(!k){return[]}var b=h.container,d=k.getGroups(),m=d.length,g=b.getViewItems(),c=[],l=b.footerClsShortCache,e,a,f,n,j;b.doRemoveHeaders();b.doRemoveFooterCls();if(g.length){for(e=0;e<m;e++){a=d[e].children[0];f=k.indexOf(a);n=g[f];b.doAddHeader(n,k.getGroupString(a));if(e){Ext.fly(n.previousSibling).addCls(l)}c.push(f)}j=d[--e].children;Ext.fly(g[k.indexOf(j[j.length-1])]).addCls(l)}return c",208944,41,"IndexBar(),this.indexBarElement,this.header);",329294,33,"FvTouch.view.HistoryList\",{extend:\"Ext.dataview.List\",requires:[\"Ext.Date\",\"FvTouch.dataview.element.List\"],xtype:\"historylist\",config:{store:\"History\",grouped:true,itemCls:\"historyitem\",itemTpl:\"<div class=\\\"x-docking-horizontal\\\">\\n <div class='x-docked-left cmdtype {type}'></div>\\n <div class=\\\"x-body tasktitle\\\">{title}</div>\\n <div class='x-docked-right taskendtime'>{endtime:date('H:i:s')}</div>\\n</div>\",listeners:{itemdoubletap",337806,40,"dd\",a)}},bubbleEvents:[\"add\"]},prepareData:function(g,c,a){var b,f,e;try{f=Ext.getStore(\"Tasks\");e=g.cdata.task.uid;b=f.findRecord(\"uid\",e);return{title:b.get(\"title\"),status:b.get(\"status\"),type:g.type,createtime:new Date(b.get(\"createtime\")),endtime:new Date(g.ctime)}}catch(d){console.info(d);return{title:\"[error]\",type:\"\",createtime:new Data(),endtime:new Date(",339844,32,"History",339887,50,"HistoryList\"],xtype:\"history",337558,42,"history",340026,217,",\"FvTouch.view.History",340238,338,",{id:\"historyview\",title:\"History\",xtype:\"historyview",340574,42080,"this.initConfig(a);return this.init()},init:Ext.emptyFn",382680,4354,"filterFn:function(d){var a,c,b;c=d.get(\"type\");if(c===\"taskdone\"||c===\"postponetask\"){b=d.get(\"cdata\").task.uid;a=Ext.getStore(\"Tasks\").findRecord(\"uid\",b);if(!a){return false}if(c===\"postponetask\"){return d.get(\"cdata\").task.status===\"running\"}else{return true}}else{return false}}",387066,190,"FvTouch.store.Read",386796,48,"asks\"",386680,36,"open\"}]",387209,32,",init:function(){var a;a=Ext.getStore(\"Preselecteds\");a.on({refresh:\"refreshData\",scope:this});return this.refreshData(a)},addOn",277883,32,"setData([a])}else{return this.clearData()}},refreshData:function(b){var c,a;c=b.first();if(c){a=Ext.getStore(\"Tasks\").getById(c.get(\"task_id\"));return this.addOne(a)}else{return this.addOne(null)}",387240,6387,",\"Sounds",393626,136,",\"Read",393760,577]
+["/*022eda3a66e9071b0bedd0435d39bd8357e275fd",42,214314,"if(!b",220795,68,"b.data.uid,title:b.data.title,info:b.data.info",214438,1144,"c){var e,h,f,a,d,i,b,g;g=Ext.getStore(\"Tasks\");b=g.findRecord(\"uid\",c.uid);a=c.title;if(Ext.isEmpty(a)){return false}f=c.info;i=b.get(\"title\");d=b.get(\"info\");if(a===i&&this.isEquals(f,d)){return false}h=this.getDelta(f,d);e={uid:c.uid,\"new\":{},old:{}};if(a!==i){e[\"new\"].title=a;e.old.title=i}if(h.xDelta){e[\"new\"].info=h.xDelta}if(h.yDelta){e.old.info=h.yDelta}return e},doImpl:function(){var c,f,d,a,b,e",215775,71,"e=c[\"new\"].title;if(e!==void 0){a.set(\"title\",e)}f=c[\"new\"].info;if(f){d=this.apply(a.get(\"info\"),f);a.set(\"info\",d)}",215876,43,"f,d,a,b,e",215775,71,"e=c.old.title;if(e!==void 0){a.set(\"title\",e)}f=c.old.info;if(f){d=this.apply(a.get(\"info\"),f);a.set(\"info\",d)}return a.save()},isEquals:function(a,b){if(a===b){return true}else{if(Ext.isPrimitive(a)){return false}else{if(Ext.isArray(a)){return Ext.isArray(b)&&this.isArrayEquals(a,b)}else{if(Ext.isEmpty(a)){return false}else{if(Ext.isDate(a)){return Ext.isDate(b)&&a.getTime()===b.getTime()}else{if(Ext.isFunction(a)){return Ext.isFunction(b)&&a.toString()===b.toString()}else{return Ext.isObject(b)&&this.isObjectEquals(a,b)}}}}}}},isArrayEquals:function(a,d){var b,c;if(a.length===d.length){for(b=0,c=length-1;0<=c?b<c:b>c;0<=c?b++:b--){if(!this.isEquals(a[b],d[b])){return false}}return true}else{return false}},isObjectEquals:function(a,h){var d,e,g,c,f,b;g=Ext.Object.getKeys(a);c=Ext.Object.getKeys(h);e=Ext.Array.merge(g,c);for(f=0,b=e.length;f<b;f++){d=e[f];if(!this.isEquals(a[d],h[d])){return false}}return true},getDelta:function(g,c){var k,i,j,b,h,d,f,a,e;if(!Ext.isObject(g)){g={}}if(!Ext.isObject(c)){c={}}h=Ext.Object.getKeys(g);f=Ext.Object.getKeys(c);j=Ext.Array.merge(h,f);b={};d={};k=false;for(a=0,e=j.length;a<e;a++){i=j[a];if(!this.isEquals(g[i],c[i])){b[i]=g[i];d[i]=c[i];k=true}}if(k){return{xDelta:b,yDelta:d}}else{return{}}},apply:function(c,d){var b,a;c||(c={});for(b in d){a=d[b];if(a===void 0){delete c[b]}else{c[b]=d[b]}}if(Ext.Object.getSize(c)){return c}else{return}",218029,33,"ostpon",214159,57,216131,144,"if(!b",220795,51,"if(!a){return false}",216311,97,"if(",216345,48,"&&Ext.getStore(\"TodosProxy\").last().getId()===a.getId()",216393,1776,"e){var d,b,g,a,f,c;c=Ext.getStore(\"Todos\");g=Ext.getStore(\"Tasks\");b=g.findRecord(\"uid\",e.uid);if(!b",220795,51,"if(!a||",218299,59,"f=Ext.getStore(\"TodosProxy\");d=f.first();if(d&&a.getId()===d.getId()){return false}return{uid:e",218370,195,"getId()",218572,369,"getId()",218572,71,"===e",217520,39,219062,321,"if(!b",220795,51,219419,1352,"!b",218317,41,221134,36,220846,3610,"var b,c;if(Ext.isEmpty(a.title)){return false}b=",224488,69,";c=this.normalize(a.info);if(c){b.info=c}return b",224557,166,"info:e.info",224722,331,",normalize:function(c){var b,a;for(b in c){a=c[b];if(a===void 0){delete c[b]}}if(Ext.Object.getSize(c)){return c}else{return}",225052,13786,",tagsButton:\"mytoolbar #tags",238837,53,",tags:\"onTags",238889,154,",onTags",285151,56,"Tags\").show()},launch:function(){var a;a=",238925,37,"Tags\");a.on({scope:this,change:\"changeTagsBadgeText\"});return this.changeTagsBadgeText(a.getTag())},changeTagsBadgeText:function(a){return this.getTagsButton().setBadgeText(a",288800,36,"AddTask",238719,66,239150,542,"f){var b,e,a,d,c;if(f){e=Ext.getStore(\"Tasks\");d=e.findRecord(\"uid\",f);if(d){c=Ext.clone(d.getData())}}else{a=",238925,37,"Tags\").getTag();if(a){c={info:{tags:[a]}}}}b=this.getPanel();if(!b",288750,33,"b)}if(c){b.setValues(c)}return b",239767,880,"controller.Tags",238719,41,"],config:{tag:window.localStorage.getItem(\"tag\"),views:[\"Tags\"],refs:{panel:{selector:\"tagspanel\",xtype:\"tags",240041,42,"hange:\"onChange\"}}},onChange:function(a,b){return this.setTag(b.tag)},show:function(){var a,b;b=this.getTags();if(Ext.Object.getSize(b)<=1){return}",239592,69,"if(!a.getParent()){Ext.Viewport.add(a)}a.setTags(this.getTags());a.setValue({tag:this.getTag()});return a.show()},getTags:function(){var a,b,c;c=Ext.getStore(\"Tasks\");b={\"\":0};a=this.getTag();if(!Ext.isEmpty(a)){b[a]=0}c.each(function(g){var h,d,j,f,i,e;if(g.data.info&&Ext.isArray(g.data.info.tags)&&g.data.info.tags.length){i=g.data.info.tags;e=[];for(j=0,f=i.length;j<f;j++){d=i[j];h=b[d];e.push(b[d]=h?h+1:1)}return e}else{return b[\"\"]=b[\"\"]+1}});return b",281758,32,"updateTag(this.getTag())},updateTag:function(a){var b;if(Ext.isEmpty(a)){window.localStorage.removeItem(\"tag\")}else{window.localStorage.setItem(\"tag\",a)}b=",238925,37,"TaskFilter\");if(b){b.setFilterFn(this.generateFilterFn(a))}return this.fireEvent(\"change\",a)},generateFilterFn:function(a){if(Ext.isEmpty(a)){return function(){return true}}else{return function(b){return b.data.info&&Ext.isArray(b.data.info.tags)&&Ext.Array.contains(b.data.info.tags,a)}}",240623,173,"itemId:\"add\"},{iconCls:\"tags\",itemId:\"tags\"},{iconCls:\"reply\",itemId",240833,58,"#add",311952,41,"add\")}},\"#undo",311952,41,"undo\")}},\"#tags",311952,41,"tags\")}}}",218029,32,241048,3971,"FvTouch.field.Tags",233524,35,"agsfield\",applyValue:function(a){if(Ext.isArray(a)){return a}else{if(Ext.isEmpty(a)){return[]}else{return[a.toString()]}",230815,32,";if(!Ext.isArray(b)){Ext.Logger.error(\"value of tagsfield should be an array\")}a=b.join(\", \");return this.callParent([a])},getValue:function(){var a,b;b=this.callParent();a=Ext.Array.map(b.split(\",\"),function(c){return c.trim()});a=Ext.Array.filter(a,function(c){return !Ext.isEmpty(c)});a=Ext.Array.unique(a);if(a.length){return a}else{return}}});Ext.define(\"Ext.Media",277241,33,"media\",config:{url:\"\",enableControls:Ext.os.is.Android?false:true,autoResume:false,autoPause:true,preload:true,loop:false,media:null,volume:1,muted:false",257968,52,"on({scope:a,activate:a.onActivate,deactivate:a.onDeactivate});a.addMediaListener({canplay:\"onCanPlay\",play:\"onPlay\",pause:\"onPause\",ended:\"onEnd\",volumechange:\"onVolumeChange\",timeupdate:\"onTimeUpdate\"})},addMediaListener:function(d,b){var c=this,e=c.media.dom,f=Ext.Function.bind;if(!Ext.isObject(d)){var a=d;d={};d[a]=b}Ext.Object.each(d,function(h,g){if(typeof g!==\"function\"){g=c[g]}if(typeof g==\"function\"){g=f(g,c);e.addEventListener(h,g)}})},onPlay:function(){this.fireEvent(\"play\",this)},onCanPlay:function(){this.fireEvent(\"canplay\",this)},onPause:function(){this.fireEvent(\"pause\",this,this.getCurrentTime())},onEnd:function(){this.fireEvent(\"ended\",this,this.getCurrentTime())},onVolum",193887,35,"volumechange\",this,this.media.dom.volume)},onTimeUpdate:function(){this.fireEvent(\"timeupdate\",this,this.getCurrentTime())},isPlaying:function(){return !Boolean(this.media.dom.paused)},onActivate:function(){var a=this;if(a.getAutoResume()&&!a.isPlaying()){a.play()}},onDeactivate:function(){var a=this;if(a.getAutoResume()&&a.isPlaying()){a.pause()}},updateUrl:function(a){var b=this.media.dom;b.src=a;if(\"load\" in b){b.load()}if(this.isPlaying()){this.play()}},updateEnableControls:function(a){this.media.dom.controls=a?\"controls\":false},updateLoop:function(a){this.media.dom.loop=a?\"loop\":false},play:function(){var a=this.media.dom;if(\"play\" in a){a.play();setTimeout(function(){a.play()},10)}},pause:function(){var a=this.media.dom;if(\"pause\" in a){a.pause()}},toggle:function(){if(this.isPlaying()){this.pause()}else{this.play()}},stop:function(){var a=this;a.setCurrentTime(0);a.fireEvent(\"stop\",a);a.pause()},updateVolume:function(a){this.media.dom.volume=a},updateMuted:function(a){this.fireEvent(\"mutedchange\",this,a);this.media.dom.muted=a},getCurrentTime:function(){return this.media.dom.currentTime},setCurrentTime:function(a){this.media.dom.currentTime=a;return a},getDuration:function(){return this.media.dom.duration",363120,32,"Ext.Object.each(event,function(c,b){if(typeof b!==\"function\"){b=a[b]}if(typeof b==\"function\"){b=bind(b,a);dom.removeEventListener(c,b)}})",245003,33242,"view.element.List\",{extend:",329541,32,",updateBaseCls:function(a){var b=this;b.itemClsShortCache=a+\"-item\";b.headerClsShortCache=a+\"-header\";b.headerClsCache=\".\"+b.headerClsShortCache;b.headerItemClsShortCache=a+\"-header-item\";b.footerClsShortCache=a+\"-footer-item\";b.footerClsCache=\".\"+b.footerClsShortCache;b.labelClsShortCache=a+\"-item-label\";b.labelClsCache=\".\"+b.labelClsShortCache;b.disclosureClsShortCache=a+\"-disclosure\";b.disclosureClsCache=\".\"+b.disclosureClsShortCache;b.iconClsShortCache=a+\"-icon\";b.iconClsCache=\".\"+b.iconClsShortCache;this.callParent(arguments)},hiddenDisplayCache:Ext.baseCSSPrefix+\"hidden-display\",getItemElementConfig:function(e,h){var f=this,c=f.dataview,g=c.getItemCls(),b=f.itemClsShortCache,d,a;if(g){b+=\" \"+g}d={cls:b,children:[{cls:f.labelClsShortCache,html:c.getItemTpl().apply(h)}]};if(c.getIcon()){a=h.iconSrc;d.children.push({cls:f.iconClsShortCache,style:\"background-image: \"+a?'url(\"'+newSrc+'\")':\"\"})}if(c.getOnItemDisclosure()){d.children.push({cls:f.disclosureClsShortCache+\" \"+((h[c.getDisclosureProperty()]===false)?f.hiddenDisplayCache:\"\")})}return d},updateListItem:function(d,k){var h=this,e=h.dataview,j=Ext.fly(k),g=j.down(h.labelClsCache,true),c=d.data,b=e.getDisclosureProperty(),a=c&&c.hasOwnProperty(b),l=c&&c.hasOwnProperty(\"iconSrc\"),f,i;g.innerHTML=e.getItemTpl().apply(c);if(a){f=j.down(h.disclosureClsCache);f[c[b]===false?\"removeCls\":\"addCls\"](h.hiddenDisplayCache)}if(e.getIcon()){i=j.down(h.iconClsCache,true);i.style.backgroundImage=l?'url(\"'+l+'\")':\"\"}},doRemoveHeaders:function(){var e=this,a=e.headerItemClsShortCache,b=e.element.query(e.headerClsCache),f=b.length,c=0,d;for(;c<f;c++){d=b[c];Ext.fly(d.parentNode).removeCls(a);Ext.removeNode(d)}},doRemoveFooterCls:function(){var d=this,c=d.footerClsShortCache,a=d.element.query(d.footerClsCache),e=a.length,b=0;for(;b<e;b++){Ext.fly(a[b]).removeCls(c)}},doAddHeader:function(b,a){b=Ext.fly(b);if(a){b.insertFirst(Ext.Element.create({cls:this.headerClsShortCache,html:a}))}b.addCls(this.headerItemClsShortCache)},destroy:function(){this.doRemoveHeaders();",329294,33,"FvTouch.dataview.element.List\",{override:\"Ext.dataview.element.List\",updateListItem:function(d,k){var h=this,e=h.dataview,j=Ext.fly(k),g=j.down(h.labelClsCache,true),c=e.prepareData(d.getData(true),e.getStore().indexOf(d),d),b=e.getDisclosureProperty(),a=c&&c.hasOwnProperty(b),l=c&&c.hasOwnProperty(\"iconSrc\"),f,i;g.innerHTML=e.getItemTpl().apply(c);if(a){f=j.down(h.disclosureClsCache);f[c[b]===false?\"removeCls\":\"addCls\"](h.hiddenDisplayCache)}if(e.getIcon()){i=j.down(h.iconClsCache,true);i.style.backgroundImage=l?'url(\"'+l+'\")':\"\"}}});Ext.define(\"Ext.dataview.IndexBa",168110,51,"IndexBar\"",222031,36,"indexbar\",direction:\"vertical\",letters:[\"A\",\"B\",\"C\",\"D\",\"E\",\"F\",\"G\",\"H\",\"I\",\"J\",\"K\",\"L\",\"M\",\"N\",\"O\",\"P\",\"Q\",\"R\",\"S\",\"T\",\"U\",\"V\",\"W\",\"X\",\"Y\",\"Z\"],ui:\"alphabet\",listPrefix:null},itemCls:Ext.baseCSSPrefix+\"\",updateDirection:function(a,c){var b=this.getBaseCls();this.element.replaceCls(b+\"-\"+c,b+\"-\"+a",168795,49,"wrapper\",classList:[\"x-centered\",\"x-indexbar-wrapper\"]",129959,32,"updateLetters:function(c){this.innerElement.setHtml(\"\");if(c){var b=c.length,a;for(a=0;a<b;a++){this.innerElement.createChild({html:c[a]})}}},updateListPrefix:function(a){if(a&&a.length){this.innerElement.createChild({html:a},0)}",299264,47,"innerElement.on(",16597,35,"end:this.onTouchEnd,touchmove:this.onTouchMove,scope:this})},onTouchStart:function(b,a){b.stopPropagation();this.innerElement.addCls(this.getBaseCls()+\"-pressed\");this.pageBox=this.innerElement.getPageBox();this.onTouchMove(b)},onTouchEnd:function(b,a){this.innerElement.removeCls(this.getBaseCls()+\"-pressed\")},onTouchMove:function(c){var a=Ext.util.Point.fromEvent(c),b,d=this.pageBox;if(!d){d=this.pageBox=this.el.getPageBox()}if(this.getDirection()===\"vertical\"){if(a.y>d.bottom||a.y<d.top){return}b=Ext.Element.fromPoint(d.left+(d.width/2),a.y)}else{if(a.x>d.right||a.x<d.left){return}b=Ext.Element.fromPoint(a.x,d.top+(d.height/2))}if(b){this.fireEvent(\"index\",this,b.dom.innerHTML,b)}},destroy:function(){var c=this,d=Array.prototype.slice.call(c.innerElement.dom.childNodes),b=d",276436,41,"d[a])}",94954,33,";Ext.define(\"Ext.dataview.ListItemHeade",277240,34,"listitemheader\"",222031,36,"list-header\",docked:\"top\"",278221,5216,"Ext.getStore(\"TasksProxy\").refresh();",283437,1939,286846,48,283372,44,";",284892,44,"TaskFilter\").on({update:\"refresh\",scope:this",283414,44,285517,337,"timeout:\"onTimeout",285852,70,283281,36,286846,40,285982,857,286846,110,";",284892,44,"TaskFilter\").on({update:\"refresh\",scope:this",286954,200,"b,c){var a,g,f,e,d;d=b.get(\"uid\");e=Ext.getStore(\"Timers\");g=e.findRecord(\"uid\",d);if(g){f=g",287244,38,"e.add({uid:d,time:b.get(\"starttime\"),type:\"go\"});f=\"break\"}e.add({uid:d,time:Date.now(),type:f});if(!c.getTimeout()){a=",238925,37,"Sounds\");if(f===\"go\"){a.play(\"starttask\")}else{a.play(\"break\")}}return c.updateTimer(b)},onTimeout:function(b,c){var a,d;d=c.getTimerType();a=",238925,37,"Sounds\");if(d===\"go\"){return a.play(\"break\")}else{return a.play(\"starttask\")}",284333,94,284432,168,287664,1258,"config:{refs:{historyview:\"historyview\"},control:{historyview:{add:\"showAddPanel",285921,61,288985,70,";",284892,44,"TaskFilter\").on({update:\"refresh\",scope:this",286954,56,"a===\"taskdone\"||a===\"postponetask",289112,87,",showAddPanel:function(a){var b,c;c=a.data.cdata.task.uid;b=Ext.getStore(\"Tasks\").findRecord(\"uid\",c);if(!b){return}",284892,44,"AddTask\").show(c)}});Ext.define(\"Ext.Audio\",{extend:\"Ext.Media\",xtype:\"audio\"",76282,32,"audio\"},onActivat",298208,39,"if(Ext.os.is.Phone){a.element.show()}},onDeactivat",298208,39,"if(Ext.os.is.Phone){a.element.hide()}},template:[{reference:\"media\",preload:\"auto\",tag:\"audio\",cls:Ext.baseCSSPrefix+\"component\"}]",239872,34,"Sounds",238719,42,"Ext.Audio\",",285326,34,"sounds:{}",285359,65,"playIfRelated\",undo:function(){return this.play(\"undo\")},scope:this})},createTryPlayFun:function(a,d,c){var b;if(c==null){c=3000}b=new RegExp(\"^\"+a+\"[1-\"+d+\"]$\");return function(g,e){var f;if(e<c&&b.test(g)){f=parseInt(g.substr(a.length));if(f<d){f=f+1}return a+f}else{return a+\"1\"}}},createPreselectTryPlayFun:function(c){var a,b;b=/^preselect[1-8]$/;a=\"preselect\";return function(f,d){var e;if(d<3000&&b.test(f)){e=parseInt(f.substr(9));if(c&&e>1){e=e-1}else{if(e<8){e=e+1}}return a+e}else{return a+\"1\"}}},play",286965,45,"a===\"taskdone\"){if(!this._taskdoneTryPlayFun){this._taskdoneTryPlayFun=this.createTryPlayFun(\"taskdone\",8)}return this.tryPlay(this._taskdoneTryPlayFun)}else{if(a===\"postponetask\"){return this.play(\"postponetask\")}else{if(a===\"starttask\"){return this.play(\"starttask\")}else{if(a===\"deletetask\"){return this.play(\"deletetask\")}else{if(a===\"addtask\"){return this.play(\"addtask\")}else{if(a===\"edittask\"){return this.play(\"edittask\")}else{if(a===\"preselect\"){return this.tryPlay(this.createPreselectTryPlayFun(b.getCdata().preselected))}}}}}}}},tryPlay:function(a){var b;b=a(this.prename,Date.now()-this.pretime);if(b){return this.play(b)}},play:function(a){var b;b=this.sounds[a];if(!b){b=this.createSound(a);this.sounds[a]=b}if(this.prename){this.sounds[this.prename].stop()}b.play();this.prename=a;return this.pretime=Date.now()},createSound:function(b){var a;a=\"resources/sounds/\"+b+\".m4a\";return Ext.Viewport.add({xtype:\"audio\",hidden:true,url:a}",289197,22280,",\"FvTouch.field.Tags\"],config:{values:void 0,",311487,337,",",311765,34,"agsfield\",name:\"tags\",label:\"Tags",311820,267,"applyValues:function(a){if(a===void 0||a===null){return a}else{return Ext.apply(a.info||{},{title:a.title})}},getValues:function(){var b,a;a=",312115,35,";b=a.title;delete a.title;return{title:b,info:a}},update",312155,820,"if(a){this.setUid(a.uid",107504,55,313047,9016,"timerType:\"go\",time:null,timeout:null,",322063,858,322944,245,"Timeout",312671,35,"timeout",323161,298,"b){var e,a,g,f,d,c;if(b==null){b=this.getRecord()",323657,42,"a=b.get(\"status\");if(a===\"open\"){this.setTimerType(\"ready\");this.setTime(0);return}c=b",287174,37,"g=d.findRecord(\"uid\",c);if(g){f=g.get(\"time\");this.setTimerType(g.get(\"type\"))}else{f=b",323619,32,"this.setTimerType(\"go\")}e",323700,47,"e.refreshAll(",323762,33,323797,118,"updateTime:function(d){var b,a,c",323953,61,"a.setText(this.timeText(d));if(this.getTimerType()===\"ready\"){this.setTimeout(false);if(a){a.hide()}b.setIconCls(\"play1\"",324315,33,"if(this.getTimerType()===\"go\"){c=d",324077,32,"c>100){this.setTimeout(true);",324116,66,"this.setTimeout(false);a.setValue(c",324194,47,"c=100-d",324248,50,"c<0){this.setTimeout(true);",324303,45,"this.setTimeout(false);a.setValue(c);return b.setUi(\"normal\")}}}},updateTimeout:function(b,a){if(b&&Ext.isBoolean(a)&&b!==a){return this.onTimeout()}},refreshAll:function(c){var a,b;a=Date.now();b=a-c;return this.setTime(b)",324388,13008,",\"break\"",383226,39,"reak\",a,b)},timeout",383226,38,"timeout\",a,b",338216,51,"break\",\"timeou",337441,33,"eady",336863,90,"eady\",config:{store:\"Ready",336988,408,",\"break\"",338061,36,338208,59,"start\"]",336823,36,339887,50,"RunningList\",\"FvTouch.view.Ready",337541,72,",{xtype:\"ready\"}],control:{runninglist:{refresh:\"onDataviewRefresh\"},ready:{refresh:\"onDataviewRefresh\"}}",311827,34,"this.onDataviewRefresh(this.child(\"runninglist\"));return this.onDataviewRefresh(this.child(\"ready\"))}}},onDataviewRefresh:function(a){if(a.getStore().getCount()){return a.show()}else{return a.hide()}",337614,2435,"Ext.dataview.List\",{alternateClassName:\"Ext.List\",extend:\"Ext.dataview.DataView\",xtype:\"list\",requires:[\"Ext.dataview.element.List\",\"Ext.dataview.IndexBar\",\"Ext.dataview.ListItemHeader\"],config:{indexBar:false,icon:null,preventSelectionOnDisclose:true,baseCls:Ext.baseCSSPrefix+\"list\",pinHeaders:true,grouped:false,onItemDisclosure:null,disclosureProperty:\"disclosure\",ui:\"normal\"},constructor:function(){this.translateHeader=(Ext.os.is.Android2)?this.translateHeaderCssPosition:this.translateHeaderTransform;",124762,34,"Trigger:function(c,b,f,a,d){if(!(this.getPreventSelectionOnDisclose()&&Ext.fly(d.target).hasCls(this.getBaseCls()+\"-disclosure\"))){this.callParent(arguments)}},initialize:function(){",330450,103,".element.List",330607,90,"element.on({delegate:\".\"+this.getBaseCls()+\"-disclosure\",tap:\"handleItemDisclosure\",scope:b}",330693,287,"updateInline",132399,40,"if(a){this.setOnItemDisclosure(false);this.setIndexBar(false);this.setGrouped(false)}},applyIndexBa",201552,39,"dataview.IndexBar,this.getIndexBar())},updateIndexBar:function(a){if(a&&this.getScrollable()){this.indexBarElement=",177286,44,".getElement().appendChild(a.renderElement);a.on({index:\"onIndex\",scope:this});",130336,37,"+\"-indexed\")}},updateGrouped:function(c){var b=this.getBaseCls(),a=b+\"-grouped\",d=b+\"-ungrouped\";if(c){this.addCls(a);this.removeCls(d);this.doRefreshHeaders();this.updatePinHeaders(this.getPinHeaders())}else{this.addCls(d);this.removeCls(a);if(this.container){this.container.doRemoveHeaders()}this.updatePinHeaders(null)}},updatePinHeaders:function(b){var c=this.getScrollable(),a;if(c){a=c.getScroller()}if(!c){return}if(b&&this.getGrouped()){a.on({refresh:\"doRefreshHeaders\",scroll:\"onScroll\",scope:this});if(!this.header||!this.header.renderElement.dom){this.createHeader()}}else{a.un({refresh:\"doRefreshHeaders\",scroll:\"onScroll\",scope:this});if(this.header){this.header.destroy()}}},createHeader:function(){var e,d=this.getScrollable(),a,b,c;if(d){a=d.getScroller();b=",177286,44,";c=b.getElement()}else{return}this.header=e=Ext.create(\"Ext.dataview.ListItemHeader\",{html:\" \",cls:\"x-list-header-swap\"});c.dom.insertBefore(e.element.dom,a.getContainer().dom.nextSibling);this.translateHeader(1000)},refresh",203037,35,"doRefreshHeaders()},onStoreAdd",100382,44,"doRefreshHeaders()},onStoreRemove",100382,44,"doRefreshHeaders()},onStoreUpdate",100382,44,"doRefreshHeaders()},onStoreClear:function(){this.callParent();if(this.header){this.header.destroy()}this.doRefreshHeaders()},getClosestGroups:function(){var a=this.pinHeaderInfo.offsets,e=this.getScrollable(),d=a.length,b=0,h,g,f,c;if(e){h=e.getScroller().position}else{return{current:0,next:0}}for(;b<d;b++){g=a[b];if(g.offset>h.y){c=g;break}f=g}return{current:f,next:c}},doRefreshHeaders:function(){if(!this.getGrouped()||!this.container){return false}var l=this.findGroupHeaderIndices(),f=l.length,g=this.container.getViewItems(),j=this.pinHeaderInfo={offsets:[]},a=j.offsets,h=this.getScrollable(),e,k,b,d,c;if(f){for(b=0;b<f;b++){d=g[l[b]];if(d){c=this.getItemHeader(d);a.push({header:c,offset:d.offsetTop})}}j.closest=this.getClosestGroups();this.setActiveGroup(j.closest.current);if(c){j.headerHeight=Ext.fly(c).getHeight()}if(h){e=h.getScroller();k=e.position;this.onScroll(e,k.x,k.y)}}},getItemHeader:function(b){var a=Ext.fly(b).down(this.container.headerClsCache);return a?a.dom:null},onScroll:function(e,j,h){var g=this,i=g.pinHeaderInfo,a=i.closest,b=g.activeGroup,c=i.headerHeight,d,f;if(!a){return}d=a.next;f=a.current;if(!this.header||!this.header.renderElement.dom){this.createHeader()}if(h<=0){if(b){g.setActiveGroup(false);a.next=f}this.translateHeader(1000);return}else{if((d&&h>d.offset)||(f&&h<f.offset)){a=i.closest=this.getClosestGroups();d=a.next;f=a.current;this.setActiveGroup(f)}}if(d&&h>0&&d.offset-h<=c){var k=c-(d.offset-h);this.translateHeader(k)}else{this.translateHeader(null)}},translateHeaderTransform:function(a){this.header.renderElement.dom.style.webkitTransform=(a===null)?null:\"translate3d(0px, -\"+a+\"px, 0px)\"},translateHeaderCssPosition:function(a){this.header.renderElement.dom.style.top=(a===null)?null:\"-\"+Math.round(a)+\"px\"},setActiveGroup:function(b){var a=this,c=a.header;if(c){if(b&&b.header){if(!a.activeGroup||a.activeGroup.header!=b.header){c.show();if(c.element){c.setHtml(b.header.innerHTML)}}}else{if(c&&c.element){c.hide()}}}this.activeGroup=b},onIndex:function(o,c){var r=this,s=c.toLowerCase(),b=r.getStore(),q=b.getGroups(),f=q.length,h=r.getScrollable(),n,e,m,g,k,p;if(h){n=r.getScrollable().getScroller()}else{return}for(m=0;m<f;m++){e=q[m];k=e.name.toLowerCase();if(k==s||k>s){g=e;break}else{g=e}}if(h&&g){p=r.container.getViewItems()[b.indexOf(g.children[0])];n.stopAnimation();var l=n.getContainerSize().y,j=n.getSize().y,d=j-l,a=(p.offsetTop>d)?d:p.offsetTop;n.scrollTo(0,a)}},applyOnItemDisclosure:function(a){if(Ext.isFunction(a)){return{scope:this,handler:a}}return a},handleItemDisclosure:function(f){var d=this,c=f.getTarget().parentNode,b=d.container.getViewItems().indexOf(c),a=d.getStore().getAt(b);d.fireAction(\"disclose\",[d,a,c,b,f],\"doDisclose\")},doDisclose:function(f,a,d,c,g){var b=f.getOnItemDisclosure();if(b&&b.handler){b.handler.call(b.scope||f,a,d,c,g)}},findGroupHeaderIndices:function(){if(!this.getGrouped()){return[]}var h=this,k=h.getStore();if(!k){return[]}var b=h.container,d=k.getGroups(),m=d.length,g=b.getViewItems(),c=[],l=b.footerClsShortCache,e,a,f,n,j;b.doRemoveHeaders();b.doRemoveFooterCls();if(g.length){for(e=0;e<m;e++){a=d[e].children[0];f=k.indexOf(a);n=g[f];b.doAddHeader(n,k.getGroupString(a));if(e){Ext.fly(n.previousSibling).addCls(l)}c.push(f)}j=d[--e].children;Ext.fly(g[k.indexOf(j[j.length-1])]).addCls(l)}return c",208944,41,"IndexBar(),this.indexBarElement,this.header);",329294,33,"FvTouch.view.HistoryList\",{extend:\"Ext.dataview.List\",requires:[\"Ext.Date\",\"FvTouch.dataview.element.List\"],xtype:\"historylist\",config:{store:\"History\",grouped:true,itemCls:\"historyitem\",itemTpl:\"<div class=\\\"x-docking-horizontal\\\">\\n <div class='x-docked-left cmdtype {type}'></div>\\n <div class=\\\"x-body tasktitle\\\">{title}</div>\\n <div class='x-docked-right taskendtime'>{endtime:date('H:i:s')}</div>\\n</div>\",listeners:{itemdoubletap",337806,40,"dd\",a)}},bubbleEvents:[\"add\"]},prepareData:function(g,c,a){var b,f,e;try{f=Ext.getStore(\"Tasks\");e=g.cdata.task.uid;b=f.findRecord(\"uid\",e);return{title:b.get(\"title\"),status:b.get(\"status\"),type:g.type,createtime:new Date(b.get(\"createtime\")),endtime:new Date(g.ctime)}}catch(d){console.info(d);return{title:\"[error]\",type:\"\",createtime:new Data(),endtime:new Date(",339844,32,"History",339887,50,"HistoryList\"],xtype:\"history",337558,42,"history",340026,217,",\"FvTouch.view.History",340238,338,",{id:\"historyview\",title:\"History\",xtype:\"historyview",340574,42080,"this.initConfig(a);return this.init()},init:Ext.emptyFn",382680,3269,"Task",386791,53,"ask",386847,57,"controller.TaskFilte",238718,51,"store.TasksProxy\"],config:{filterFn:function(){return true}},updateFilterFn:function(a){var b;b=Ext.getStore(\"TasksProxy\");if(b){b.clearFilter(true);b.setFilters([{filterFn:a}]);",283444,37,"return this.fireEvent(\"update\"",380813,34,386788,62,"filters:[{filterFn:function(b){var a,c;c=Ext.getStore(\"TasksProxy\");a=c.getById(b.get(\"task_id\"));return !Ext.isEmpty(a)",386506,64,385949,511,"d){var a,c,b;b=Ext.getStore(\"TodosProxy\");if(b.getCount()&&b.getById(d.getId())&&(d.data.preselected||d.getId()===b.first().getId())){return true}else{c=Ext.getStore(\"Tasks\");a=c.getById(d.get(\"task_id\"));return a&&a.get(\"status\")===\"running\"}",386506,281,386910,124,"filterFn:function(d){var a,c,b;c=d.get(\"type\");if(c===\"taskdone\"||c===\"postponetask\"){b=d.get(\"cdata\").task.uid;a=Ext.getStore(\"TasksProxy\").findRecord(\"uid\",b);if(!a){return false}if(c===\"postponetask\"){return d.get(\"cdata\").task.status===\"running\"}else{return true}}else{return false}}",387066,190,"FvTouch.store.Read",386796,48,"asks\"",386680,36,"open\"}]",387209,32,",init:function(){var a;a=Ext.getStore(\"Preselecteds\");a.on({refresh:\"refreshData\",scope:this});return this.refreshData(a)},addOn",277883,32,"setData([a])}else{return this.clearData()}},refreshData:function(b){var c,a;c=b.first();if(c){a=Ext.getStore(\"Tasks\").getById(c.get(\"task_id\"));return this.addOne(a)}else{return this.addOne(null)}",387240,4244,"info",391474,1056,"picker.Slo",336862,35,"xtype:\"pickerslot\",alternateClassName:\"Ext.Picker.Slot",306583,33,"data.Store\",\"Ext.Component\",\"Ext.data.StoreManager\"],isSlot:true,config:{title:null,showTitle:true,cls:Ext.baseCSSPrefix+\"picker-slot\",name:null,value:null,flex:1,align:\"left\",displayField:\"text\",valueField:\"value\",scrollable:{direction:\"vertical\",indicators:false,momentumEasing:{minVelocity:2},slotSnapEasing:{duration:100}}",269958,38,"Index=0",270027,34,"Title:function(a){if(a){a=Ext.create(\"Ext.Component\",{cls:Ext.baseCSSPrefix+\"picker-slot-title\",docked:\"top\",html:a})}return a",244666,45,";this.setupBar()}if(a){this.remove(a)}},updateShowTitle:function(a){var b=this.getTitle();if(b){b[a?\"show\":\"hide\"]();this.setupBar()}},updateDisplayField:function(a){this.setItemTpl('<div class=\"'+Ext.baseCSSPrefix+'picker-item {cls} <tpl if=\"extra\">'+Ext.baseCSSPrefix+'picker-invalid</tpl>\">{'+a+\"}</div>\")},updateAlign:function(a,c){var b=this.element;b.addCls(Ext.baseCSSPrefix+\"picker-\"+a);b.removeCls(Ext.baseCSSPrefix+\"picker-\"+c)},applyData:function(d){var f=[],c=d&&d.length,a,b,e;if(d&&Ext.isArray(d)&&c){for(a=0;a<c;a++){b=d[a];e={};if(Ext.isArray(b)){e[this.valueField]=b[0];e[this.displayField]=b[1]}else{if(Ext.isString(b)){e[this.valueField]=b;e[this.displayField]=b}else{if(Ext.isObject(b)){e=b}}}f.push(e)}}return d},updateData:function(",333808,46,"fields:[\"text\",\"value\"],data:a}))",299264,42,"var a=this.getScrollable().getScroller();this.on({scope:this,painted:\"onPainted\",itemtap:\"doItemTap\"});a.on({scope:this,scrollend:\"onScrollEn",119325,32,"setupBar()},getPicker:function(){if(!this.picker){this.picker=this.getParent()}return this.picker},setupBa",179886,32,"return}var a=this.element,e=this.innerElement,f=this.getPicker(),g=f.bar,k=this.getValue(),b=this.getShowTitle(),j=this.getTitle(),h=this.getScrollable(),d=h.getScroller(),c=0,l,i;l=g.getHeight();if(b&&j){c=j.element.getHeight()}i=Math.ceil((a.getHeight()-c-l)/2);e.setStyle({padding:i+\"px 0 \"+(i)+\"px\"});d.refresh();d.setSlotSnapSize(l);this.setValue(k)},doItemTap:function(d,a,c,f){var b=this;b.selectedIndex=a;b.selectedNode=c;b.scrollToItem(c,true);b.fireEvent(\"slotpick\",b,b.getValue(true),b.selectedNode)},scrollToItem:function(e,d){var h=e.getY(),c=e.parent(),f=c.getY(),b=this.getScrollable(),a=b.getScroller(),g;g=h-f;a.scrollTo(0,g,d)},onScrollEnd:function(b,a,g){var f=this,d=Math.round(g/f.picker.bar.getHeight()),c=f.getViewItems(),e=c[d];if(e){f.selectedIndex=d;f.selectedNode=e;f.fireEvent(\"slotpick\",f,f.getValue(),f.selectedNode)}},getValue:function(c){var b=this.getStore(),a,d;if(!b){return}if(!this.rendered||!c){return this._value}if(this._value===false){return null}a=b.getAt(this.selectedIndex);d=a?a.get(this.getValueField()):null;return d},setValue:function(f){if(!Ext.isDefined(f)){return}if(!this.rendered||!f){this._value=f;return}var b=this.getStore(),a=this.getViewItems(),d=this.getValueField(),c,e;c=b.find(d,f);if(c!=-1){e=Ext.get(a[c]);this.selectedIndex=c;this.scrollToItem(e);this._value=f}},setValueAnimated:function(f){if(!f){return}if(!this.rendered){this._value=f;return}var b=this.getStore(),a=this.getViewItems(),d=this.getValueField(),c,e;c=b.find(d,f);if(c!=-1){e=Ext.get(a[c]);this.selectedIndex=c;this.scrollToItem(e,{duration:100});this._value=f}}});Ext.define(\"Ext.picker.Picker",241578,36,"picker\",alternateClassName:\"Ext.Picker\",requires:[\"Ext.picker.Slot\",\"Ext.Toolbar\",\"Ext.data.Model\"],isPicker:true",76282,32,"picker\",doneButton:true,cancelButton:true,useTitles:false,slots:null,value:null,height:220,layout:{type:\"hbox\",align:\"stretch\"},centered:false,left:0,right:0,bottom:0,defaultType:\"pickerslot\",toolbar:true},initElement",390798,43,"b=this,a=Ext.baseCSSPrefix,c=this.innerElement;this.mask=c.createChild({cls:a+\"picker-mask\"});this.bar=this.mask.createChild({cls:a+\"picker-bar\"});b.on({scope:this,delegate:\"pickerslot\",slotpick:\"onSlotPick\"});b.on({scope:this,show:\"onShow\"})},applyToolb",300023,33,"Ext.applyIf(a,{docked:\"top\"});return Ext.factory(a,\"Ext.TitleBar\",this.getToolbar())},updateToolbar",237153,56,"applyDoneButton:function(a){if(a){if(Ext.isBoolean(a)){a={}}if(typeof a==\"string\"){a={text:a}}Ext.applyIf(a,{ui:\"action\",align:\"right\",text:\"Done\"})}return Ext.factory(a,\"Ext.Button\",this.getDoneButton())},updateDoneButton:function(c,a){var b=this.getToolbar();if(c){b.add(c);c.on(\"tap\",this.onDoneButtonTap,this)}else{if(a){b.remove(a)}}},applyCancelButton:function(a){if(a){if(Ext.isBoolean(a)){a={}}if(typeof a==\"string\"){a={text:a}}Ext.applyIf(a,{align:\"left\",text:\"Cancel\"})}return Ext.factory(a,\"Ext.Button\",this.getCancelButton())},updateCancelButton:function(b,a){var c=this.getToolbar();if(b){c.add(b);b.on(\"tap\",this.onCancelButtonTap,this)}else{if(a){c.remove(a)}}},updateUseTitles:function(d){var f=this.getInnerItems(),e=f.length,a=Ext.baseCSSPrefix+\"use-titles\",c,b;if(d",229600,40,"for(c=0;c<e;c++){b=f[c];if(b.isSlot){b.setShowTitle(d)}}},applySlots:function(b){if(b){var c=b.length,a;for(a=0;a<c;a++){b[a].picker=this}}return b},updateSlots:function(a){var b=Ext.baseCSSPrefix,c;this.removeAll();if(a){this.add(a)}c=this.getInnerItems();if(c.length>0){c[0].addCls(b+\"first\");c[c.length-1].addCls(b+\"last\")}this.updateUseTitles(this.getUseTitles())},onDoneButtonTap:function(){var a=this._value,b=this.getValue(true);if(b!=a){this.fireEvent(\"change\",this,b)}this.hide()},onCancelButtonTap:function(){this.fireEvent(\"cancel\",this);this.hide()},onSlotP",213693,32,"pick\",this,this.getValue(true),a)},onShow:function(){if(!this.isHidden()){this.setValue(this._value)}},setValue:function(k,a){var f=this,d=f.getInnerItems(),e=d.length,j,h,c,b,g;if(!k){k={};for(b=0;b<e;b++){k[d[b].config.name]=null}}for(j in k){g=k[j];for(b=0;b<d.length;b++){c=d[b];if(c.config.name==j){h=c;break}}if(h){if(a){h.setValueAnimated(g)}else{h.setValue(g)}}}f._values=f._value=k;return f},setValueAnimated:function(a){this.setValue(a,true)},getValue:function(c){var b={},a=this.getItems().items,f=a.length,e,d;if(c){for(d=0;d<f;d++){e=a[d];if(e&&e.isSlot){b[e.getName()]=e.getValue(c)}}this._values=b}return this._values",312085,35,"getValue(",69768,38,");Ext.destroy(this.mask,this.bar",201829,38,"view.Tags\",{extend:\"Ext.picker.Picker\",xtype:\"tagspanel\",config:{tags:{},hideOnMaskTap:true},updateTags:function(c){var d,b,a;d=(function(){var e;e=[];for(b in c){a=c[b];e.push({text:b,value:a})}return e})();d=Ext.Array.sort(d,function(e,f){if(Ext.isEmpty(e.text)){return -1}else{if(Ext.isEmpty(f.text)){return 1}else{return f.value-e.value}}});return this.setSlots({name:\"tag\",data:Ext.Array.map(d,function(e){return{text:e.text,value:e.text}})})",392510,1032,"askFilter",393538,89,",\"Sounds\",\"Tags",393626,80,"TasksProxy\",\"TodosProxy",393703,38,"History\",\"Read",393760,577]
2  deltas/app.js/5fe6fd9dc669b16898e058fc4a41809da683bf69.json
View
@@ -1 +1 @@
-["/*e98e3e743a2813f1f95750e291a0b5256828bd6a",42,239650,"e){var a,d,c,b;if(e){",240362,48,"if(c){b=Ext.clone(c.getData())}}",239700,59,"if(b){a.setValues(b",239757,1283,242070,3983,"Media",242828,33,"media\",config:{url:\"\",enableControls:Ext.os.is.Android?false:true,autoResume:false,autoPause:true,preload:true,loop:false,media:null,volume:1,muted:false",297756,56,"scope:a,activate:a.onActivate,deactivate:a.onDeactivate});a.addMediaListener({canplay:\"onCanPlay\",play:\"onPlay\",pause:\"onPause\",ended:\"onEnd\",volumechange:\"onVolumeChange\",timeupdate:\"onTimeUpdate\"})},addMediaListener:function(d,b){var c=this,e=c.media.dom,f=Ext.Function.bind;if(!Ext.isObject(d)){var a=d;d={};d[a]=b}Ext.Object.each(d,function(h,g){if(typeof g!==\"function\"){g=c[g]}if(typeof g==\"function\"){g=f(g,c);e.addEventListener(h,g)}})},onPlay:function(){this.fireEvent(\"play\",this)},onCanPlay:function(){this.fireEvent(\"canplay\",this)},onPause:function(){this.fireEvent(\"pause\",this,this.getCurrentTime())},onEnd:function(){this.fireEvent(\"ended\",this,this.getCurrentTime())},onVolum",193887,35,"volumechange\",this,this.media.dom.volume)},onTimeUpdate:function(){this.fireEvent(\"timeupdate\",this,this.getCurrentTime())},isPlaying:function(){return !Boolean(this.media.dom.paused)},onActivate:function(){var a=this;if(a.getAutoResume()&&!a.isPlaying()){a.play()}},onDeactivate:function(){var a=this;if(a.getAutoResume()&&a.isPlaying()){a.pause()}},updateUrl:function(a){var b=this.media.dom;b.src=a;if(\"load\" in b){b.load()}if(this.isPlaying()){this.play()}},updateEnableControls:function(a){this.media.dom.controls=a?\"controls\":false},updateLoop:function(a){this.media.dom.loop=a?\"loop\":false},play:function(){var a=this.media.dom;if(\"play\" in a){a.play();setTimeout(function(){a.play()},10)}},pause:function(){var a=this.media.dom;if(\"pause\" in a){a.pause()}},toggle:function(){if(this.isPlaying()){this.pause()}else{this.play()}},stop:function(){var a=this;a.setCurrentTime(0);a.fireEvent(\"stop\",a);a.pause()},updateVolume:function(a){this.media.dom.volume=a},updateMuted:function(a){this.fireEvent(\"mutedchange\",this,a);this.media.dom.muted=a},getCurrentTime:function(){return this.media.dom.currentTime},setCurrentTime:function(a){this.media.dom.currentTime=a;return a},getDuration:function(){return this.media.dom.duration",362705,32,"Ext.Object.each(event,function(c,b){if(typeof b!==\"function\"){b=a[b]}if(typeof b==\"function\"){b=bind(b,a);dom.removeEventListener(c,b)}})",246033,32204,321533,36,241068,994,"Ext.dataview.element.List\",{extend:",274440,33,"updateBaseCls:function(a){var b=this;b.itemClsShortCache=a+\"-item\";b.headerClsShortCache=a+\"-header\";b.headerClsCache=\".\"+b.headerClsShortCache;b.headerItemClsShortCache=a+\"-header-item\";b.footerClsShortCache=a+\"-footer-item\";b.footerClsCache=\".\"+b.footerClsShortCache;b.labelClsShortCache=a+\"-item-label\";b.labelClsCache=\".\"+b.labelClsShortCache;b.disclosureClsShortCache=a+\"-disclosure\";b.disclosureClsCache=\".\"+b.disclosureClsShortCache;b.iconClsShortCache=a+\"-icon\";b.iconClsCache=\".\"+b.iconClsShortCache;this.callParent(arguments)},hiddenDisplayCache:Ext.baseCSSPrefix+\"hidden-display\",getItemElementConfig:function(e,h){var f=this,c=f.dataview,g=c.getItemCls(),b=f.itemClsShortCache,d,a;if(g){b+=\" \"+g}d={cls:b,children:[{cls:f.labelClsShortCache,html:c.getItemTpl().apply(h)}]};if(c.getIcon()){a=h.iconSrc;d.children.push({cls:f.iconClsShortCache,style:\"background-image: \"+a?'url(\"'+newSrc+'\")':\"\"})}if(c.getOnItemDisclosure()){d.children.push({cls:f.disclosureClsShortCache+\" \"+((h[c.getDisclosureProperty()]===false)?f.hiddenDisplayCache:\"\")})}return d},updateListItem:function(d,k){var h=this,e=h.dataview,j=Ext.fly(k),g=j.down(h.labelClsCache,true),c=d.data,b=e.getDisclosureProperty(),a=c&&c.hasOwnProperty(b),l=c&&c.hasOwnProperty(\"iconSrc\"),f,i;g.innerHTML=e.getItemTpl().apply(c);if(a){f=j.down(h.disclosureClsCache);f[c[b]===false?\"removeCls\":\"addCls\"](h.hiddenDisplayCache)}if(e.getIcon()){i=j.down(h.iconClsCache,true);i.style.backgroundImage=l?'url(\"'+l+'\")':\"\"}},doRemoveHeaders:function(){var e=this,a=e.headerItemClsShortCache,b=e.element.query(e.headerClsCache),f=b.length,c=0,d;for(;c<f;c++){d=b[c];Ext.fly(d.parentNode).removeCls(a);Ext.removeNode(d)}},doRemoveFooterCls:function(){var d=this,c=d.footerClsShortCache,a=d.element.query(d.footerClsCache),e=a.length,b=0;for(;b<e;b++){Ext.fly(a[b]).removeCls(c)}},doAddHeader:function(b,a){b=Ext.fly(b);if(a){b.insertFirst(Ext.Element.create({cls:this.headerClsShortCache,html:a}))}b.addCls(this.headerItemClsShortCache)},destroy:function(){this.doRemoveHeaders();",328842,33,"FvTouch.dataview.element.List\",{override:\"Ext.dataview.element.List\",updateListItem:function(d,k){var h=this,e=h.dataview,j=Ext.fly(k),g=j.down(h.labelClsCache,true),c=e.prepareData(d.getData(true),e.getStore().indexOf(d),d),b=e.getDisclosureProperty(),a=c&&c.hasOwnProperty(b),l=c&&c.hasOwnProperty(\"iconSrc\"),f,i;g.innerHTML=e.getItemTpl().apply(c);if(a){f=j.down(h.disclosureClsCache);f[c[b]===false?\"removeCls\":\"addCls\"](h.hiddenDisplayCache)}if(e.getIcon()){i=j.down(h.iconClsCache,true);i.style.backgroundImage=l?'url(\"'+l+'\")':\"\"}}});Ext.define(\"Ext.dataview.IndexBa",168110,51,"IndexBar\"",222031,36,"indexbar\",direction:\"vertical\",letters:[\"A\",\"B\",\"C\",\"D\",\"E\",\"F\",\"G\",\"H\",\"I\",\"J\",\"K\",\"L\",\"M\",\"N\",\"O\",\"P\",\"Q\",\"R\",\"S\",\"T\",\"U\",\"V\",\"W\",\"X\",\"Y\",\"Z\"],ui:\"alphabet\",listPrefix:null},itemCls:Ext.baseCSSPrefix+\"\",updateDirection:function(a,c){var b=this.getBaseCls();this.element.replaceCls(b+\"-\"+c,b+\"-\"+a",168795,49,"wrapper\",classList:[\"x-centered\",\"x-indexbar-wrapper\"]",129959,32,"updateLetters:function(c){this.innerElement.setHtml(\"\");if(c){var b=c.length,a;for(a=0;a<b;a++){this.innerElement.createChild({html:c[a]})}}},updateListPrefix:function(a){if(a&&a.length){this.innerElement.createChild({html:a},0)",322528,43,326118,33,"this.onTouchStart,touchend:this.onTouchEnd,touchmove:this.onTouchMove,scope:this})},onTouchStart:function(b,a){b.stopPropagation();this.innerElement.addCls(this.getBaseCls()+\"-pressed\");this.pageBox=this.innerElement.getPageBox();this.onTouchMove(b)},onTouchEnd:function(b,a){this.innerElement.removeCls(this.getBaseCls()+\"-pressed\")},onTouchMove:function(c){var a=Ext.util.Point.fromEvent(c),b,d=this.pageBox;if(!d){d=this.pageBox=this.el.getPageBox()}if(this.getDirection()===\"vertical\"){if(a.y>d.bottom||a.y<d.top){return}b=Ext.Element.fromPoint(d.left+(d.width/2),a.y)}else{if(a.x>d.right||a.x<d.left){return}b=Ext.Element.fromPoint(a.x,d.top+(d.height/2))}if(b){this.fireEvent(\"index\",this,b.dom.innerHTML,b)}},destroy:function(){var c=this,d=Array.prototype.slice.call(c.innerElement.dom.childNodes),b=d",277466,41,"d[a])}",94954,33,";Ext.define(\"Ext.dataview.ListItemHeader",242828,34,"istitemheader\"",222031,36,"list-header\",docked:\"top\"",278221,2597,"b.id===\"historyview\"?\"history",280816,236,"3],preselected:a[0],running:a[1],history:a[2",281083,4727,"timeout:\"onTimeout",285808,70,283237,36,283280,40,285938,1172,"b,c){var a,g,f,e,d;d=b.get(\"uid\");e=Ext.getStore(\"Timers\");g=e.findRecord(\"uid\",d);if(g){f=g",287200,38,"e.add({uid:d,time:b.get(\"starttime\"),type:\"go\"});f=\"break\"}e.add({uid:d,time:Date.now(),type:f});if(!c.getTimeout()){a=",238925,37,"Sounds\");if(f===\"go\"){a.play(\"starttask\")}else{a.play(\"break\")}}return c.updateTimer(b)},onTimeout:function(b,c){var a,d;d=c.getTimerType();a=",238925,37,"Sounds\");if(d===\"go\"){return a.play(\"break\")}else{return a.play(\"starttask\")}",287358,1415,"FvTouch.controller.HistoryList",238719,65,"Manager\"],config:{refs:{historyview:\"historyview\"},control:{historyview:{add:\"showAddPanel\"}}",281344,65,286842,124,"a===\"taskdone\"||a===\"postponetask\"",287005,66,"History\").refresh()},showAddPanel:function(a){var b,c;c=a.data.cdata.task.uid;b=Ext.getStore(\"Tasks\").findRecord(\"uid\",c);if(!b){return}",284848,44,"AddTask\").show(c)}});Ext.define(\"Ext.Audio\",{extend:\"Ext.Media\",xtype:\"audio\"",76282,32,"audio\"},onActivat",230367,39,"if(Ext.os.is.Phone){a.element.show()}},onDeactivat",230367,39,"if(Ext.os.is.Phone){a.element.hide()}},template:[{reference:\"media\",preload:\"auto\",tag:\"audio\",cls:Ext.baseCSSPrefix+\"component\"}]",239872,34,"Sounds",238719,42,"Ext.Audio\",",285584,32,"],sounds:{",281344,65,"\"playIfRelated\",undo:function(){return this.play(\"undo\")},scope:this})},createTryPlayFun:function(a,d,c){var b;if(c==null){c=3000}b=new RegExp(\"^\"+a+\"[1-\"+d+\"]$\");return function(g,e){var f;if(e<c&&b.test(g)){f=parseInt(g.substr(a.length));if(f<d){f=f+1}return a+f}else{return a+\"1\"}}},createPreselectTryPlayFun:function(c){var a,b;b=/^preselect[1-8]$/;a=\"preselect\";return function(f,d){var e;if(d<3000&&b.test(f)){e=parseInt(f.substr(9));if(c&&e>1){e=e-1}else{if(e<8){e=e+1}}return a+e}else{return a+\"1\"}}},play",286921,45,"a===\"taskdone\"){if(!this._taskdoneTryPlayFun){this._taskdoneTryPlayFun=this.createTryPlayFun(\"taskdone\",8)}return this.tryPlay(this._taskdoneTryPlayFun)}else{if(a===\"postponetask\"){return this.play(\"postponetask\")}else{if(a===\"starttask\"){return this.play(\"starttask\")}else{if(a===\"deletetask\"){return this.play(\"deletetask\")}else{if(a===\"addtask\"){return this.play(\"addtask\")}else{if(a===\"edittask\"){return this.play(\"edittask\")}else{if(a===\"preselect\"){return this.tryPlay(this.createPreselectTryPlayFun(b.getCdata().preselected))}}}}}}}},tryPlay:function(a){var b;b=a(this.prename,Date.now()-this.pretime);if(b){return this.play(b)}},play:function(a){var b;b=this.sounds[a];if(!b){b=this.createSound(a);this.sounds[a]=b}if(this.prename){this.sounds[this.prename].stop()}b.play();this.prename=a;return this.pretime=Date.now()},createSound:function(b){var a;a=\"resources/sounds/\"+b+\".m4a\";return Ext.Viewport.add({xtype:\"audio\",hidden:true,url:a}",288756,32825,",\"Ext.Date\"],xtype:\"runningitem\",config:{timerType:\"go\",time:null,timeout:null,",321611,858,322492,245,"Timeout",311583,35,"timeout",322709,298,"b){var e,a,g,f,d,c;if(b==null){b=this.getRecord()",323205,42,"a=b.get(\"status\");if(a===\"open\"){this.setTimerType(\"ready\");this.setTime(0);return}c=b",287130,37,"g=d.findRecord(\"uid\",c);if(g){f=g.get(\"time\");this.setTimerType(g.get(\"type\"))}else{f=b",323167,32,"this.setTimerType(\"go\")}e",323248,47,"e.refreshAll(",323310,33,323345,118,"updateTime:function(d){var b,a,c",323501,61,"a.setText(this.timeText(d));if(this.getTimerType()===\"ready\"){this.setTimeout(false);if(a){a.hide()}b.setIconCls(\"play1",323696,34,"if(this.getTimerType()===\"go\"){c=d",323625,32,"c>100){this.setTimeout(true);",323664,66,"this.setTimeout(false);a.setValue(c",323742,47,"c=100-d",323796,50,"c<0){this.setTimeout(true);",323851,45,"this.setTimeout(false);a.setValue(c);return b.setUi(\"normal\")}}}},updateTimeout:function(b,a){if(b&&Ext.isBoolean(a)&&b!==a){return this.onTimeout()}},refreshAll:function(c){var a,b;a=Date.now();b=a-c;return this.setTime(b)",323936,13008,",\"break\"",382811,39,"reak\",a,b)},timeout",382811,38,"timeout\",a,b",336942,49,",\"break\",\"timeou",336989,33,"eady",336411,90,"eady\",config:{store:\"Ready",336536,408,",\"break\"",336847,36,337756,59,"star",336989,101,",\"FvTouch.view.Ready",337089,72,",{xtype:\"ready\"}],control:{runninglist:{refresh:\"onDataviewRefresh\"},ready:{refresh:\"onDataviewRefresh\"}}",311386,34,"this.onDataviewRefresh(this.child(\"runninglist\"));return this.onDataviewRefresh(this.child(\"ready\"))}}},onDataviewRefresh:function(a){if(a.getStore().getCount()){return a.show()}else{return a.hide()}",337162,2435,"Ext.dataview.List\",{alternateClassName:\"Ext.List\",extend:\"Ext.dataview.DataView\",xtype:\"list\",requires:[\"Ext.dataview.element.List\",\"Ext.dataview.IndexBar\",\"Ext.dataview.ListItemHeader\"],config:{indexBar:false,icon:null,preventSelectionOnDisclose:true,baseCls:Ext.baseCSSPrefix+\"list\",pinHeaders:true,grouped:false,onItemDisclosure:null,disclosureProperty:\"disclosure\",ui:\"normal\"},constructor:function(){this.translateHeader=(Ext.os.is.Android2)?this.translateHeaderCssPosition:this.translateHeaderTransform;",124762,34,"Trigger:function(c,b,f,a,d){if(!(this.getPreventSelectionOnDisclose()&&Ext.fly(d.target).hasCls(this.getBaseCls()+\"-disclosure\"))){this.callParent(arguments)}},initialize:function(){",329998,103,".element.List",330155,90,"element.on({delegate:\".\"+this.getBaseCls()+\"-disclosure\",tap:\"handleItemDisclosure\",scope:b}",330241,287,"updateInline",132399,40,"if(a){this.setOnItemDisclosure(false);this.setIndexBar(false);this.setGrouped(false)}},applyIndexBa",201552,39,"dataview.IndexBar,this.getIndexBar())},updateIndexBar:function(a){if(a&&this.getScrollable()){this.indexBarElement=",177286,44,".getElement().appendChild(a.renderElement);a.on({index:\"onIndex\",scope:this});",130336,37,"+\"-indexed\")}},updateGrouped:function(c){var b=this.getBaseCls(),a=b+\"-grouped\",d=b+\"-ungrouped\";if(c){this.addCls(a);this.removeCls(d);this.doRefreshHeaders();this.updatePinHeaders(this.getPinHeaders())}else{this.addCls(d);this.removeCls(a);if(this.container){this.container.doRemoveHeaders()}this.updatePinHeaders(null)}},updatePinHeaders:function(b){var c=this.getScrollable(),a;if(c){a=c.getScroller()}if(!c){return}if(b&&this.getGrouped()){a.on({refresh:\"doRefreshHeaders\",scroll:\"onScroll\",scope:this});if(!this.header||!this.header.renderElement.dom){this.createHeader()}}else{a.un({refresh:\"doRefreshHeaders\",scroll:\"onScroll\",scope:this});if(this.header){this.header.destroy()}}},createHeader:function(){var e,d=this.getScrollable(),a,b,c;if(d){a=d.getScroller();b=",177286,44,";c=b.getElement()}else{return}this.header=e=Ext.create(\"Ext.dataview.ListItemHeader\",{html:\" \",cls:\"x-list-header-swap\"});c.dom.insertBefore(e.element.dom,a.getContainer().dom.nextSibling);this.translateHeader(1000)},refresh",203037,35,"doRefreshHeaders()},onStoreAdd",100382,44,"doRefreshHeaders()},onStoreRemove",100382,44,"doRefreshHeaders()},onStoreUpdate",100382,44,"doRefreshHeaders()},onStoreClear:function(){this.callParent();if(this.header){this.header.destroy()}this.doRefreshHeaders()},getClosestGroups:function(){var a=this.pinHeaderInfo.offsets,e=this.getScrollable(),d=a.length,b=0,h,g,f,c;if(e){h=e.getScroller().position}else{return{current:0,next:0}}for(;b<d;b++){g=a[b];if(g.offset>h.y){c=g;break}f=g}return{current:f,next:c}},doRefreshHeaders:function(){if(!this.getGrouped()||!this.container){return false}var l=this.findGroupHeaderIndices(),f=l.length,g=this.container.getViewItems(),j=this.pinHeaderInfo={offsets:[]},a=j.offsets,h=this.getScrollable(),e,k,b,d,c;if(f){for(b=0;b<f;b++){d=g[l[b]];if(d){c=this.getItemHeader(d);a.push({header:c,offset:d.offsetTop})}}j.closest=this.getClosestGroups();this.setActiveGroup(j.closest.current);if(c){j.headerHeight=Ext.fly(c).getHeight()}if(h){e=h.getScroller();k=e.position;this.onScroll(e,k.x,k.y)}}},getItemHeader:function(b){var a=Ext.fly(b).down(this.container.headerClsCache);return a?a.dom:null},onScroll:function(e,j,h){var g=this,i=g.pinHeaderInfo,a=i.closest,b=g.activeGroup,c=i.headerHeight,d,f;if(!a){return}d=a.next;f=a.current;if(!this.header||!this.header.renderElement.dom){this.createHeader()}if(h<=0){if(b){g.setActiveGroup(false);a.next=f}this.translateHeader(1000);return}else{if((d&&h>d.offset)||(f&&h<f.offset)){a=i.closest=this.getClosestGroups();d=a.next;f=a.current;this.setActiveGroup(f)}}if(d&&h>0&&d.offset-h<=c){var k=c-(d.offset-h);this.translateHeader(k)}else{this.translateHeader(null)}},translateHeaderTransform:function(a){this.header.renderElement.dom.style.webkitTransform=(a===null)?null:\"translate3d(0px, -\"+a+\"px, 0px)\"},translateHeaderCssPosition:function(a){this.header.renderElement.dom.style.top=(a===null)?null:\"-\"+Math.round(a)+\"px\"},setActiveGroup:function(b){var a=this,c=a.header;if(c){if(b&&b.header){if(!a.activeGroup||a.activeGroup.header!=b.header){c.show();if(c.element){c.setHtml(b.header.innerHTML)}}}else{if(c&&c.element){c.hide()}}}this.activeGroup=b},onIndex:function(o,c){var r=this,s=c.toLowerCase(),b=r.getStore(),q=b.getGroups(),f=q.length,h=r.getScrollable(),n,e,m,g,k,p;if(h){n=r.getScrollable().getScroller()}else{return}for(m=0;m<f;m++){e=q[m];k=e.name.toLowerCase();if(k==s||k>s){g=e;break}else{g=e}}if(h&&g){p=r.container.getViewItems()[b.indexOf(g.children[0])];n.stopAnimation();var l=n.getContainerSize().y,j=n.getSize().y,d=j-l,a=(p.offsetTop>d)?d:p.offsetTop;n.scrollTo(0,a)}},applyOnItemDisclosure:function(a){if(Ext.isFunction(a)){return{scope:this,handler:a}}return a},handleItemDisclosure:function(f){var d=this,c=f.getTarget().parentNode,b=d.container.getViewItems().indexOf(c),a=d.getStore().getAt(b);d.fireAction(\"disclose\",[d,a,c,b,f],\"doDisclose\")},doDisclose:function(f,a,d,c,g){var b=f.getOnItemDisclosure();if(b&&b.handler){b.handler.call(b.scope||f,a,d,c,g)}},findGroupHeaderIndices:function(){if(!this.getGrouped()){return[]}var h=this,k=h.getStore();if(!k){return[]}var b=h.container,d=k.getGroups(),m=d.length,g=b.getViewItems(),c=[],l=b.footerClsShortCache,e,a,f,n,j;b.doRemoveHeaders();b.doRemoveFooterCls();if(g.length){for(e=0;e<m;e++){a=d[e].children[0];f=k.indexOf(a);n=g[f];b.doAddHeader(n,k.getGroupString(a));if(e){Ext.fly(n.previousSibling).addCls(l)}c.push(f)}j=d[--e].children;Ext.fly(g[k.indexOf(j[j.length-1])]).addCls(l)}return c",208944,41,"IndexBar(),this.indexBarElement,this.header);",328842,33,"FvTouch.view.HistoryList\",{extend:\"Ext.dataview.List\",requires:[\"Ext.Date\",\"FvTouch.dataview.element.List\"],xtype:\"historylist\",config:{store:\"History\",grouped:true,itemCls:\"historyitem\",itemTpl:\"<div class=\\\"x-docking-horizontal\\\">\\n <div class='x-docked-left cmdtype {type}'></div>\\n <div class=\\\"x-body tasktitle\\\">{title}</div>\\n <div class='x-docked-right taskendtime'>{endtime:date('H:i:s')}</div>\\n</div>\",listeners:{itemdoubletap",337354,40,"dd\",a)}},bubbleEvents:[\"add\"]},prepareData:function(g,c,a){var b,f,e;try{f=Ext.getStore(\"Tasks\");e=g.cdata.task.uid;b=f.findRecord(\"uid\",e);return{title:b.get(\"title\"),status:b.get(\"status\"),type:g.type,createtime:new Date(b.get(\"createtime\")),endtime:new Date(g.ctime)}}catch(d){console.info(d);return{title:\"[error]\",type:\"\",createtime:new Data(),endtime:new Date(",339392,32,"History",339435,50,"HistoryList\"],xtype:\"history",338382,42,"history",339574,232,"HistoryView",339827,334,",{id:\"historyview\",title:\"History\",xtype:\"historyview",340159,42080,"this.initConfig(a);return this.init()},init:Ext.emptyFn",382265,4216,"FvTouch.store.Histor",386381,32,"requires:[\"Ext.Date\"],config:{store:\"Commands\",sorters:[{property:\"ctime\"}],filters:[{filterFn:function(d){var a,c,b;c=d.get(\"type\");if(c===\"taskdone\"||c===\"postponetask\"){b=d.get(\"cdata\").task.uid;a=Ext.getStore(\"Tasks\").findRecord(\"uid\",b);if(!a){return false}if(c===\"postponetask\"){return d.get(\"cdata\").task.status===\"running\"}else{return true}}else{return false}}}],grouper:{groupFn:function(a){var b;b=new Date(a.get(\"ctime\"));return Ext.Date.format(Ext.Date.clearTime(b),\"D M j Y\")},sortProperty:\"ctime\"}",386311,61,"Read",386381,48,"asks\"",386265,36,"open",386308,35,",init:function(){var a;a=Ext.getStore(\"Preselecteds\");a.on({refresh:\"refreshData\",scope:this});return this.refreshData(a)},addOn",241708,32,"setData([a])}else{return this.clearData()}},refreshData:function(b){var c,a;c=b.first();if(c){a=Ext.getStore(\"Tasks\").getById(c.get(\"task_id\"));return this.addOne(a)}else{return this.addOne(null)}",386465,6373,",\"HistoryList\",\"Sounds",392837,126,",\"History\",\"Read",392961,577]
+["/*022eda3a66e9071b0bedd0435d39bd8357e275fd",42,214314,"if(!b",220795,68,"b.data.uid,title:b.data.title,info:b.data.info",214438,1144,"c){var e,h,f,a,d,i,b,g;g=Ext.getStore(\"Tasks\");b=g.findRecord(\"uid\",c.uid);a=c.title;if(Ext.isEmpty(a)){return false}f=c.info;i=b.get(\"title\");d=b.get(\"info\");if(a===i&&this.isEquals(f,d)){return false}h=this.getDelta(f,d);e={uid:c.uid,\"new\":{},old:{}};if(a!==i){e[\"new\"].title=a;e.old.title=i}if(h.xDelta){e[\"new\"].info=h.xDelta}if(h.yDelta){e.old.info=h.yDelta}return e},doImpl:function(){var c,f,d,a,b,e",215775,71,"e=c[\"new\"].title;if(e!==void 0){a.set(\"title\",e)}f=c[\"new\"].info;if(f){d=this.apply(a.get(\"info\"),f);a.set(\"info\",d)}",215876,43,"f,d,a,b,e",215775,71,"e=c.old.title;if(e!==void 0){a.set(\"title\",e)}f=c.old.info;if(f){d=this.apply(a.get(\"info\"),f);a.set(\"info\",d)}return a.save()},isEquals:function(a,b){if(a===b){return true}else{if(Ext.isPrimitive(a)){return false}else{if(Ext.isArray(a)){return Ext.isArray(b)&&this.isArrayEquals(a,b)}else{if(Ext.isEmpty(a)){return false}else{if(Ext.isDate(a)){return Ext.isDate(b)&&a.getTime()===b.getTime()}else{if(Ext.isFunction(a)){return Ext.isFunction(b)&&a.toString()===b.toString()}else{return Ext.isObject(b)&&this.isObjectEquals(a,b)}}}}}}},isArrayEquals:function(a,d){var b,c;if(a.length===d.length){for(b=0,c=length-1;0<=c?b<c:b>c;0<=c?b++:b--){if(!this.isEquals(a[b],d[b])){return false}}return true}else{return false}},isObjectEquals:function(a,h){var d,e,g,c,f,b;g=Ext.Object.getKeys(a);c=Ext.Object.getKeys(h);e=Ext.Array.merge(g,c);for(f=0,b=e.length;f<b;f++){d=e[f];if(!this.isEquals(a[d],h[d])){return false}}return true},getDelta:function(g,c){var k,i,j,b,h,d,f,a,e;if(!Ext.isObject(g)){g={}}if(!Ext.isObject(c)){c={}}h=Ext.Object.getKeys(g);f=Ext.Object.getKeys(c);j=Ext.Array.merge(h,f);b={};d={};k=false;for(a=0,e=j.length;a<e;a++){i=j[a];if(!this.isEquals(g[i],c[i])){b[i]=g[i];d[i]=c[i];k=true}}if(k){return{xDelta:b,yDelta:d}}else{return{}}},apply:function(c,d){var b,a;c||(c={});for(b in d){a=d[b];if(a===void 0){delete c[b]}else{c[b]=d[b]}}if(Ext.Object.getSize(c)){return c}else{return}",242046,32,"Postpon",214159,57,216131,144,"if(!b",220795,51,"if(!a){return false}",216311,97,"if(",216345,48,"&&Ext.getStore(\"TodosProxy\").last().getId()===a.getId()",216393,1776,"e){var d,b,g,a,f,c;c=Ext.getStore(\"Todos\");g=Ext.getStore(\"Tasks\");b=g.findRecord(\"uid\",e.uid);if(!b",220795,51,"if(!a||",218299,59,"f=Ext.getStore(\"TodosProxy\");d=f.first();if(d&&a.getId()===d.getId()){return false}return{uid:e",218370,195,"getId()",218572,369,"getId()",218572,71,"===e",217520,39,219062,321,"if(!b",220795,51,219419,1352,"!b",218317,41,221134,36,220846,3610,"var b,c;if(Ext.isEmpty(a.title)){return false}b=",224488,69,";c=this.normalize(a.info);if(c){b.info=c}return b",224557,166,"info:e.info",224722,331,",normalize:function(c){var b,a;for(b in c){a=c[b];if(a===void 0){delete c[b]}}if(Ext.Object.getSize(c)){return c}else{return}",225052,13786,",tagsButton:\"mytoolbar #tags",238837,53,",tags:\"onTags",238889,154,",onTags",238906,56,"Tags\").show()},launch:function(){var a;a=",238925,37,"Tags\");a.on({scope:this,change:\"changeTagsBadgeText\"});return this.changeTagsBadgeText(a.getTag())},changeTagsBadgeText:function(a){return this.getTagsButton().setBadgeText(a",239870,36,"AddTask",238719,66,239150,542,"f){var b,e,a,d,c;if(f){e=Ext.getStore(\"Tasks\");d=e.findRecord(\"uid\",f);if(d){c=Ext.clone(d.getData())}}else{a=",238925,37,"Tags\").getTag();if(a){c={info:{tags:[a]}}}}b=this.getPanel();if(!b",284238,33,"b)}if(c){b.setValues(c)}return b",239767,880,"controller.Tags",238719,41,"],config:{tag:window.localStorage.getItem(\"tag\"),views:[\"Tags\"],refs:{panel:{selector:\"tagspanel\",xtype:\"tags",240041,42,"hange:\"onChange\"}}},onChange:function(a,b){return this.setTag(b.tag)},show:function(){var a,b;b=this.getTags();if(Ext.Object.getSize(b)<=1){return}",239592,69,"if(!a.getParent()){Ext.Viewport.add(a)}a.setTags(this.getTags());a.setValue({tag:this.getTag()});return a.show()},getTags:function(){var a,b,c;c=Ext.getStore(\"Tasks\");b={\"\":0};a=this.getTag();if(!Ext.isEmpty(a)){b[a]=0}c.each(function(g){var h,d,j,f,i,e;if(g.data.info&&Ext.isArray(g.data.info.tags)&&g.data.info.tags.length){i=g.data.info.tags;e=[];for(j=0,f=i.length;j<f;j++){d=i[j];h=b[d];e.push(b[d]=h?h+1:1)}return e}else{return b[\"\"]=b[\"\"]+1}});return b",281714,32,"updateTag(this.getTag())},updateTag:function(a){var b;if(Ext.isEmpty(a)){window.localStorage.removeItem(\"tag\")}else{window.localStorage.setItem(\"tag\",a)}b=",238925,37,"TaskFilter\");if(b){b.setFilterFn(this.generateFilterFn(a))}return this.fireEvent(\"change\",a)},generateFilterFn:function(a){if(Ext.isEmpty(a)){return function(){return true}}else{return function(b){return b.data.info&&Ext.isArray(b.data.info.tags)&&Ext.Array.contains(b.data.info.tags,a",339392,32,240652,144,"itemId:\"add\"},{iconCls:\"tags\",itemId:\"tags\"},{iconCls:\"reply\",itemId",240833,58,"#add\":{",325694,38,"add\")}},\"#undo\":{",325694,38,"undo\")}},\"#tags\":{",325694,38,"tags\")}}}",242046,4003,"FvTouch.field.Tags",233524,35,"agsfield\",applyValue:function(a){if(Ext.isArray(a)){return a}else{if(Ext.isEmpty(a)){return[]}else{return[a.toString()]}",230815,32,";if(!Ext.isArray(b)){Ext.Logger.error(\"value of tagsfield should be an array\")}a=b.join(\", \");return this.callParent([a])},getValue:function(){var a,b;b=this.callParent();a=Ext.Array.map(b.split(\",\"),function(c){return c.trim()});a=Ext.Array.filter(a,function(c){return !Ext.isEmpty(c)});a=Ext.Array.unique(a);if(a.length){return a}else{return}}});Ext.define(\"Ext.Media",242828,33,"media\",config:{url:\"\",enableControls:Ext.os.is.Android?false:true,autoResume:false,autoPause:true,preload:true,loop:false,media:null,volume:1,muted:false",297756,56,"scope:a,activate:a.onActivate,deactivate:a.onDeactivate});a.addMediaListener({canplay:\"onCanPlay\",play:\"onPlay\",pause:\"onPause\",ended:\"onEnd\",volumechange:\"onVolumeChange\",timeupdate:\"onTimeUpdate\"})},addMediaListener:function(d,b){var c=this,e=c.media.dom,f=Ext.Function.bind;if(!Ext.isObject(d)){var a=d;d={};d[a]=b}Ext.Object.each(d,function(h,g){if(typeof g!==\"function\"){g=c[g]}if(typeof g==\"function\"){g=f(g,c);e.addEventListener(h,g)}})},onPlay:function(){this.fireEvent(\"play\",this)},onCanPlay:function(){this.fireEvent(\"canplay\",this)},onPause:function(){this.fireEvent(\"pause\",this,this.getCurrentTime())},onEnd:function(){this.fireEvent(\"ended\",this,this.getCurrentTime())},onVolum",193887,35,"volumechange\",this,this.media.dom.volume)},onTimeUpdate:function(){this.fireEvent(\"timeupdate\",this,this.getCurrentTime())},isPlaying:function(){return !Boolean(this.media.dom.paused)},onActivate:function(){var a=this;if(a.getAutoResume()&&!a.isPlaying()){a.play()}},onDeactivate:function(){var a=this;if(a.getAutoResume()&&a.isPlaying()){a.pause()}},updateUrl:function(a){var b=this.media.dom;b.src=a;if(\"load\" in b){b.load()}if(this.isPlaying()){this.play()}},updateEnableControls:function(a){this.media.dom.controls=a?\"controls\":false},updateLoop:function(a){this.media.dom.loop=a?\"loop\":false},play:function(){var a=this.media.dom;if(\"play\" in a){a.play();setTimeout(function(){a.play()},10)}},pause:function(){var a=this.media.dom;if(\"pause\" in a){a.pause()}},toggle:function(){if(this.isPlaying()){this.pause()}else{this.play()}},stop:function(){var a=this;a.setCurrentTime(0);a.fireEvent(\"stop\",a);a.pause()},updateVolume:function(a){this.media.dom.volume=a},updateMuted:function(a){this.fireEvent(\"mutedchange\",this,a);this.media.dom.muted=a},getCurrentTime:function(){return this.media.dom.currentTime},setCurrentTime:function(a){this.media.dom.currentTime=a;return a},getDuration:function(){return this.media.dom.duration",362705,32,"Ext.Object.each(event,function(c,b){if(typeof b!==\"function\"){b=a[b]}if(typeof b==\"function\"){b=bind(b,a);dom.removeEventListener(c,b)}})",246033,32204,321533,36,241068,994,"Ext.dataview.element.List\",{extend:",274440,33,"updateBaseCls:function(a){var b=this;b.itemClsShortCache=a+\"-item\";b.headerClsShortCache=a+\"-header\";b.headerClsCache=\".\"+b.headerClsShortCache;b.headerItemClsShortCache=a+\"-header-item\";b.footerClsShortCache=a+\"-footer-item\";b.footerClsCache=\".\"+b.footerClsShortCache;b.labelClsShortCache=a+\"-item-label\";b.labelClsCache=\".\"+b.labelClsShortCache;b.disclosureClsShortCache=a+\"-disclosure\";b.disclosureClsCache=\".\"+b.disclosureClsShortCache;b.iconClsShortCache=a+\"-icon\";b.iconClsCache=\".\"+b.iconClsShortCache;this.callParent(arguments)},hiddenDisplayCache:Ext.baseCSSPrefix+\"hidden-display\",getItemElementConfig:function(e,h){var f=this,c=f.dataview,g=c.getItemCls(),b=f.itemClsShortCache,d,a;if(g){b+=\" \"+g}d={cls:b,children:[{cls:f.labelClsShortCache,html:c.getItemTpl().apply(h)}]};if(c.getIcon()){a=h.iconSrc;d.children.push({cls:f.iconClsShortCache,style:\"background-image: \"+a?'url(\"'+newSrc+'\")':\"\"})}if(c.getOnItemDisclosure()){d.children.push({cls:f.disclosureClsShortCache+\" \"+((h[c.getDisclosureProperty()]===false)?f.hiddenDisplayCache:\"\")})}return d},updateListItem:function(d,k){var h=this,e=h.dataview,j=Ext.fly(k),g=j.down(h.labelClsCache,true),c=d.data,b=e.getDisclosureProperty(),a=c&&c.hasOwnProperty(b),l=c&&c.hasOwnProperty(\"iconSrc\"),f,i;g.innerHTML=e.getItemTpl().apply(c);if(a){f=j.down(h.disclosureClsCache);f[c[b]===false?\"removeCls\":\"addCls\"](h.hiddenDisplayCache)}if(e.getIcon()){i=j.down(h.iconClsCache,true);i.style.backgroundImage=l?'url(\"'+l+'\")':\"\"}},doRemoveHeaders:function(){var e=this,a=e.headerItemClsShortCache,b=e.element.query(e.headerClsCache),f=b.length,c=0,d;for(;c<f;c++){d=b[c];Ext.fly(d.parentNode).removeCls(a);Ext.removeNode(d)}},doRemoveFooterCls:function(){var d=this,c=d.footerClsShortCache,a=d.element.query(d.footerClsCache),e=a.length,b=0;for(;b<e;b++){Ext.fly(a[b]).removeCls(c)}},doAddHeader:function(b,a){b=Ext.fly(b);if(a){b.insertFirst(Ext.Element.create({cls:this.headerClsShortCache,html:a}))}b.addCls(this.headerItemClsShortCache)},destroy:function(){this.doRemoveHeaders();",328842,33,"FvTouch.dataview.element.List\",{override:\"Ext.dataview.element.List\",updateListItem:function(d,k){var h=this,e=h.dataview,j=Ext.fly(k),g=j.down(h.labelClsCache,true),c=e.prepareData(d.getData(true),e.getStore().indexOf(d),d),b=e.getDisclosureProperty(),a=c&&c.hasOwnProperty(b),l=c&&c.hasOwnProperty(\"iconSrc\"),f,i;g.innerHTML=e.getItemTpl().apply(c);if(a){f=j.down(h.disclosureClsCache);f[c[b]===false?\"removeCls\":\"addCls\"](h.hiddenDisplayCache)}if(e.getIcon()){i=j.down(h.iconClsCache,true);i.style.backgroundImage=l?'url(\"'+l+'\")':\"\"}}});Ext.define(\"Ext.dataview.IndexBa",168110,51,"IndexBar\"",222031,36,"indexbar\",direction:\"vertical\",letters:[\"A\",\"B\",\"C\",\"D\",\"E\",\"F\",\"G\",\"H\",\"I\",\"J\",\"K\",\"L\",\"M\",\"N\",\"O\",\"P\",\"Q\",\"R\",\"S\",\"T\",\"U\",\"V\",\"W\",\"X\",\"Y\",\"Z\"],ui:\"alphabet\",listPrefix:null},itemCls:Ext.baseCSSPrefix+\"\",updateDirection:function(a,c){var b=this.getBaseCls();this.element.replaceCls(b+\"-\"+c,b+\"-\"+a",168795,49,"wrapper\",classList:[\"x-centered\",\"x-indexbar-wrapper\"]",129959,32,"updateLetters:function(c){this.innerElement.setHtml(\"\");if(c){var b=c.length,a;for(a=0;a<b;a++){this.innerElement.createChild({html:c[a]})}}},updateListPrefix:function(a){if(a&&a.length){this.innerElement.createChild({html:a},0)",322528,43,326118,33,"this.onTouchStart,touchend:this.onTouchEnd,touchmove:this.onTouchMove,scope:this})},onTouchStart:function(b,a){b.stopPropagation();this.innerElement.addCls(this.getBaseCls()+\"-pressed\");this.pageBox=this.innerElement.getPageBox();this.onTouchMove(b)},onTouchEnd:function(b,a){this.innerElement.removeCls(this.getBaseCls()+\"-pressed\")},onTouchMove:function(c){var a=Ext.util.Point.fromEvent(c),b,d=this.pageBox;if(!d){d=this.pageBox=this.el.getPageBox()}if(this.getDirection()===\"vertical\"){if(a.y>d.bottom||a.y<d.top){return}b=Ext.Element.fromPoint(d.left+(d.width/2),a.y)}else{if(a.x>d.right||a.x<d.left){return}b=Ext.Element.fromPoint(a.x,d.top+(d.height/2))}if(b){this.fireEvent(\"index\",this,b.dom.innerHTML,b)}},destroy:function(){var c=this,d=Array.prototype.slice.call(c.innerElement.dom.childNodes),b=d",277466,41,"d[a])}",94954,33,";Ext.define(\"Ext.dataview.ListItemHeader",242828,34,"istitemheader\"",222031,36,"list-header\",docked:\"top\"",278221,2597,"b.id===\"historyview\"?\"history",280816,236,"3],preselected:a[0],running:a[1],history:a[2",281083,2310,"Ext.getStore(\"TasksProxy\").refresh();",283393,1939,283280,92,";",284848,44,"TaskFilter\").on({update:\"refresh\",scope:this",283370,44,285473,337,"timeout:\"onTimeout",285808,70,283237,36,283280,40,285938,857,283280,48,286850,62,";",284848,44,"TaskFilter\").on({update:\"refresh\",scope:this",286910,200,"b,c){var a,g,f,e,d;d=b.get(\"uid\");e=Ext.getStore(\"Timers\");g=e.findRecord(\"uid\",d);if(g){f=g",287200,38,"e.add({uid:d,time:b.get(\"starttime\"),type:\"go\"});f=\"break\"}e.add({uid:d,time:Date.now(),type:f});if(!c.getTimeout()){a=",238925,37,"Sounds\");if(f===\"go\"){a.play(\"starttask\")}else{a.play(\"break\")}}return c.updateTimer(b)},onTimeout:function(b,c){var a,d;d=c.getTimerType();a=",238925,37,"Sounds\");if(d===\"go\"){return a.play(\"break\")}else{return a.play(\"starttask\")}",287358,1415,"FvTouch.controller.HistoryList",238719,65,"Manager\"],config:{refs:{historyview:\"historyview\"},control:{historyview:{add:\"showAddPanel",285877,61,286842,70,";",284848,44,"TaskFilter\").on({update:\"refresh\",scope:this",286910,56,"a===\"taskdone\"||a===\"postponetask\"",287005,66,"History\").refresh()},showAddPanel:function(a){var b,c;c=a.data.cdata.task.uid;b=Ext.getStore(\"Tasks\").findRecord(\"uid\",c);if(!b){return}",284848,44,"AddTask\").show(c)}});Ext.define(\"Ext.Audio\",{extend:\"Ext.Media\",xtype:\"audio\"",76282,32,"audio\"},onActivat",230367,39,"if(Ext.os.is.Phone){a.element.show()}},onDeactivat",230367,39,"if(Ext.os.is.Phone){a.element.hide()}},template:[{reference:\"media\",preload:\"auto\",tag:\"audio\",cls:Ext.baseCSSPrefix+\"component\"}]",239872,34,"Sounds",238719,42,"Ext.Audio\",",285584,32,"],sounds:{",281344,65,"\"playIfRelated\",undo:function(){return this.play(\"undo\")},scope:this})},createTryPlayFun:function(a,d,c){var b;if(c==null){c=3000}b=new RegExp(\"^\"+a+\"[1-\"+d+\"]$\");return function(g,e){var f;if(e<c&&b.test(g)){f=parseInt(g.substr(a.length));if(f<d){f=f+1}return a+f}else{return a+\"1\"}}},createPreselectTryPlayFun:function(c){var a,b;b=/^preselect[1-8]$/;a=\"preselect\";return function(f,d){var e;if(d<3000&&b.test(f)){e=parseInt(f.substr(9));if(c&&e>1){e=e-1}else{if(e<8){e=e+1}}return a+e}else{return a+\"1\"}}},play",286921,45,"a===\"taskdone\"){if(!this._taskdoneTryPlayFun){this._taskdoneTryPlayFun=this.createTryPlayFun(\"taskdone\",8)}return this.tryPlay(this._taskdoneTryPlayFun)}else{if(a===\"postponetask\"){return this.play(\"postponetask\")}else{if(a===\"starttask\"){return this.play(\"starttask\")}else{if(a===\"deletetask\"){return this.play(\"deletetask\")}else{if(a===\"addtask\"){return this.play(\"addtask\")}else{if(a===\"edittask\"){return this.play(\"edittask\")}else{if(a===\"preselect\"){return this.tryPlay(this.createPreselectTryPlayFun(b.getCdata().preselected))}}}}}}}},tryPlay:function(a){var b;b=a(this.prename,Date.now()-this.pretime);if(b){return this.play(b)}},play:function(a){var b;b=this.sounds[a];if(!b){b=this.createSound(a);this.sounds[a]=b}if(this.prename){this.sounds[this.prename].stop()}b.play();this.prename=a;return this.pretime=Date.now()},createSound:function(b){var a;a=\"resources/sounds/\"+b+\".m4a\";return Ext.Viewport.add({xtype:\"audio\",hidden:true,url:a}",288756,22280,",\"FvTouch.field.Tags\"],config:{values:void 0,showA",298558,34,311085,298,",",311324,34,"agsfield\",name:\"tags\",label:\"Tags",311379,267,"applyValues:function(a){if(a===void 0||a===null){return a}else{return Ext.apply(a.info||{},{title:a.title})}},getValues:function(){var b,a;a=",311674,35,";b=a.title;delete a.title;return{title:b,info:a}},update",311714,820,"if(a){this.setUid(a.uid",107504,55,312606,8975,",\"Ext.Date\"],xtype:\"runningitem\",config:{timerType:\"go\",time:null,timeout:null,",321611,858,322492,245,"Timeout",311583,35,"timeout",322709,298,"b){var e,a,g,f,d,c;if(b==null){b=this.getRecord()",323205,42,"a=b.get(\"status\");if(a===\"open\"){this.setTimerType(\"ready\");this.setTime(0);return}c=b",287130,37,"g=d.findRecord(\"uid\",c);if(g){f=g.get(\"time\");this.setTimerType(g.get(\"type\"))}else{f=b",323167,32,"this.setTimerType(\"go\")}e",323248,47,"e.refreshAll(",323310,33,323345,118,"updateTime:function(d){var b,a,c",323501,61,"a.setText(this.timeText(d));if(this.getTimerType()===\"ready\"){this.setTimeout(false);if(a){a.hide()}b.setIconCls(\"play1",323696,34,"if(this.getTimerType()===\"go\"){c=d",323625,32,"c>100){this.setTimeout(true);",323664,66,"this.setTimeout(false);a.setValue(c",323742,47,"c=100-d",323796,50,"c<0){this.setTimeout(true);",323851,45,"this.setTimeout(false);a.setValue(c);return b.setUi(\"normal\")}}}},updateTimeout:function(b,a){if(b&&Ext.isBoolean(a)&&b!==a){return this.onTimeout()}},refreshAll:function(c){var a,b;a=Date.now();b=a-c;return this.setTime(b)",323936,13008,",\"break\"",382811,39,"reak\",a,b)},timeout",382811,38,"timeout\",a,b",336942,49,",\"break\",\"timeou",336989,33,"eady",336411,90,"eady\",config:{store:\"Ready",336536,408,",\"break\"",336847,36,337756,59,"star",336989,101,",\"FvTouch.view.Ready",337089,72,",{xtype:\"ready\"}],control:{runninglist:{refresh:\"onDataviewRefresh\"},ready:{refresh:\"onDataviewRefresh\"}}",311386,34,"this.onDataviewRefresh(this.child(\"runninglist\"));return this.onDataviewRefresh(this.child(\"ready\"))}}},onDataviewRefresh:function(a){if(a.getStore().getCount()){return a.show()}else{return a.hide()}",337162,2435,"Ext.dataview.List\",{alternateClassName:\"Ext.List\",extend:\"Ext.dataview.DataView\",xtype:\"list\",requires:[\"Ext.dataview.element.List\",\"Ext.dataview.IndexBar\",\"Ext.dataview.ListItemHeader\"],config:{indexBar:false,icon:null,preventSelectionOnDisclose:true,baseCls:Ext.baseCSSPrefix+\"list\",pinHeaders:true,grouped:false,onItemDisclosure:null,disclosureProperty:\"disclosure\",ui:\"normal\"},constructor:function(){this.translateHeader=(Ext.os.is.Android2)?this.translateHeaderCssPosition:this.translateHeaderTransform;",124762,34,"Trigger:function(c,b,f,a,d){if(!(this.getPreventSelectionOnDisclose()&&Ext.fly(d.target).hasCls(this.getBaseCls()+\"-disclosure\"))){this.callParent(arguments)}},initialize:function(){",329998,103,".element.List",330155,90,"element.on({delegate:\".\"+this.getBaseCls()+\"-disclosure\",tap:\"handleItemDisclosure\",scope:b}",330241,287,"updateInline",132399,40,"if(a){this.setOnItemDisclosure(false);this.setIndexBar(false);this.setGrouped(false)}},applyIndexBa",201552,39,"dataview.IndexBar,this.getIndexBar())},updateIndexBar:function(a){if(a&&this.getScrollable()){this.indexBarElement=",177286,44,".getElement().appendChild(a.renderElement);a.on({index:\"onIndex\",scope:this});",130336,37,"+\"-indexed\")}},updateGrouped:function(c){var b=this.getBaseCls(),a=b+\"-grouped\",d=b+\"-ungrouped\";if(c){this.addCls(a);this.removeCls(d);this.doRefreshHeaders();this.updatePinHeaders(this.getPinHeaders())}else{this.addCls(d);this.removeCls(a);if(this.container){this.container.doRemoveHeaders()}this.updatePinHeaders(null)}},updatePinHeaders:function(b){var c=this.getScrollable(),a;if(c){a=c.getScroller()}if(!c){return}if(b&&this.getGrouped()){a.on({refresh:\"doRefreshHeaders\",scroll:\"onScroll\",scope:this});if(!this.header||!this.header.renderElement.dom){this.createHeader()}}else{a.un({refresh:\"doRefreshHeaders\",scroll:\"onScroll\",scope:this});if(this.header){this.header.destroy()}}},createHeader:function(){var e,d=this.getScrollable(),a,b,c;if(d){a=d.getScroller();b=",177286,44,";c=b.getElement()}else{return}this.header=e=Ext.create(\"Ext.dataview.ListItemHeader\",{html:\" \",cls:\"x-list-header-swap\"});c.dom.insertBefore(e.element.dom,a.getContainer().dom.nextSibling);this.translateHeader(1000)},refresh",203037,35,"doRefreshHeaders()},onStoreAdd",100382,44,"doRefreshHeaders()},onStoreRemove",100382,44,"doRefreshHeaders()},onStoreUpdate",100382,44,"doRefreshHeaders()},onStoreClear:function(){this.callParent();if(this.header){this.header.destroy()}this.doRefreshHeaders()},getClosestGroups:function(){var a=this.pinHeaderInfo.offsets,e=this.getScrollable(),d=a.length,b=0,h,g,f,c;if(e){h=e.getScroller().position}else{return{current:0,next:0}}for(;b<d;b++){g=a[b];if(g.offset>h.y){c=g;break}f=g}return{current:f,next:c}},doRefreshHeaders:function(){if(!this.getGrouped()||!this.container){return false}var l=this.findGroupHeaderIndices(),f=l.length,g=this.container.getViewItems(),j=this.pinHeaderInfo={offsets:[]},a=j.offsets,h=this.getScrollable(),e,k,b,d,c;if(f){for(b=0;b<f;b++){d=g[l[b]];if(d){c=this.getItemHeader(d);a.push({header:c,offset:d.offsetTop})}}j.closest=this.getClosestGroups();this.setActiveGroup(j.closest.current);if(c){j.headerHeight=Ext.fly(c).getHeight()}if(h){e=h.getScroller();k=e.position;this.onScroll(e,k.x,k.y)}}},getItemHeader:function(b){var a=Ext.fly(b).down(this.container.headerClsCache);return a?a.dom:null},onScroll:function(e,j,h){var g=this,i=g.pinHeaderInfo,a=i.closest,b=g.activeGroup,c=i.headerHeight,d,f;if(!a){return}d=a.next;f=a.current;if(!this.header||!this.header.renderElement.dom){this.createHeader()}if(h<=0){if(b){g.setActiveGroup(false);a.next=f}this.translateHeader(1000);return}else{if((d&&h>d.offset)||(f&&h<f.offset)){a=i.closest=this.getClosestGroups();d=a.next;f=a.current;this.setActiveGroup(f)}}if(d&&h>0&&d.offset-h<=c){var k=c-(d.offset-h);this.translateHeader(k)}else{this.translateHeader(null)}},translateHeaderTransform:function(a){this.header.renderElement.dom.style.webkitTransform=(a===null)?null:\"translate3d(0px, -\"+a+\"px, 0px)\"},translateHeaderCssPosition:function(a){this.header.renderElement.dom.style.top=(a===null)?null:\"-\"+Math.round(a)+\"px\"},setActiveGroup:function(b){var a=this,c=a.header;if(c){if(b&&b.header){if(!a.activeGroup||a.activeGroup.header!=b.header){c.show();if(c.element){c.setHtml(b.header.innerHTML)}}}else{if(c&&c.element){c.hide()}}}this.activeGroup=b},onIndex:function(o,c){var r=this,s=c.toLowerCase(),b=r.getStore(),q=b.getGroups(),f=q.length,h=r.getScrollable(),n,e,m,g,k,p;if(h){n=r.getScrollable().getScroller()}else{return}for(m=0;m<f;m++){e=q[m];k=e.name.toLowerCase();if(k==s||k>s){g=e;break}else{g=e}}if(h&&g){p=r.container.getViewItems()[b.indexOf(g.children[0])];n.stopAnimation();var l=n.getContainerSize().y,j=n.getSize().y,d=j-l,a=(p.offsetTop>d)?d:p.offsetTop;n.scrollTo(0,a)}},applyOnItemDisclosure:function(a){if(Ext.isFunction(a)){return{scope:this,handler:a}}return a},handleItemDisclosure:function(f){var d=this,c=f.getTarget().parentNode,b=d.container.getViewItems().indexOf(c),a=d.getStore().getAt(b);d.fireAction(\"disclose\",[d,a,c,b,f],\"doDisclose\")},doDisclose:function(f,a,d,c,g){var b=f.getOnItemDisclosure();if(b&&b.handler){b.handler.call(b.scope||f,a,d,c,g)}},findGroupHeaderIndices:function(){if(!this.getGrouped()){return[]}var h=this,k=h.getStore();if(!k){return[]}var b=h.container,d=k.getGroups(),m=d.length,g=b.getViewItems(),c=[],l=b.footerClsShortCache,e,a,f,n,j;b.doRemoveHeaders();b.doRemoveFooterCls();if(g.length){for(e=0;e<m;e++){a=d[e].children[0];f=k.indexOf(a);n=g[f];b.doAddHeader(n,k.getGroupString(a));if(e){Ext.fly(n.previousSibling).addCls(l)}c.push(f)}j=d[--e].children;Ext.fly(g[k.indexOf(j[j.length-1])]).addCls(l)}return c",208944,41,"IndexBar(),this.indexBarElement,this.header);",328842,33,"FvTouch.view.HistoryList\",{extend:\"Ext.dataview.List\",requires:[\"Ext.Date\",\"FvTouch.dataview.element.List\"],xtype:\"historylist\",config:{store:\"History\",grouped:true,itemCls:\"historyitem\",itemTpl:\"<div class=\\\"x-docking-horizontal\\\">\\n <div class='x-docked-left cmdtype {type}'></div>\\n <div class=\\\"x-body tasktitle\\\">{title}</div>\\n <div class='x-docked-right taskendtime'>{endtime:date('H:i:s')}</div>\\n</div>\",listeners:{itemdoubletap",337354,40,"dd\",a)}},bubbleEvents:[\"add\"]},prepareData:function(g,c,a){var b,f,e;try{f=Ext.getStore(\"Tasks\");e=g.cdata.task.uid;b=f.findRecord(\"uid\",e);return{title:b.get(\"title\"),status:b.get(\"status\"),type:g.type,createtime:new Date(b.get(\"createtime\")),endtime:new Date(g.ctime)}}catch(d){console.info(d);return{title:\"[error]\",type:\"\",createtime:new Data(),endtime:new Date(",339392,32,"History",339435,50,"HistoryList\"],xtype:\"history",338382,42,"history",339574,232,"HistoryView",339827,334,",{id:\"historyview\",title:\"History\",xtype:\"historyview",340159,42080,"this.initConfig(a);return this.init()},init:Ext.emptyFn",382265,3269,"Task",386376,53,"ask",386432,49,"FvTouch.controller.TaskFilte",238718,51,"store.TasksProxy\"],config:{filterFn:function(){return true}},updateFilterFn:function(a){var b;b=Ext.getStore(\"TasksProxy\");if(b){b.clearFilter(true);b.setFilters([{filterFn:a}]);",283400,37,"return this.fireEvent(\"update\"",380398,34,386373,62,"filters:[{filterFn:function(b){var a,c;c=Ext.getStore(\"TasksProxy\");a=c.getById(b.get(\"task_id\"));return !Ext.isEmpty(a)",386091,64,385534,511,"d){var a,c,b;b=Ext.getStore(\"TodosProxy\");if(b.getCount()&&b.getById(d.getId())&&(d.data.preselected||d.getId()===b.first().getId())){return true}else{c=Ext.getStore(\"Tasks\");a=c.getById(d.get(\"task_id\"));return a&&a.get(\"status\")===\"running\"}",386091,281,"Histor",386381,32,"requires:[\"Ext.Date\"],config:{store:\"Commands\",sorters:[{property:\"ctime\"}],filters:[{filterFn:function(d){var a,c,b;c=d.get(\"type\");if(c===\"taskdone\"||c===\"postponetask\"){b=d.get(\"cdata\").task.uid;a=Ext.getStore(\"TasksProxy\").findRecord(\"uid\",b);if(!a){return false}if(c===\"postponetask\"){return d.get(\"cdata\").task.status===\"running\"}else{return true}}else{return false}}}],grouper:{groupFn:function(a){var b;b=new Date(a.get(\"ctime\"));return Ext.Date.format(Ext.Date.clearTime(b),\"D M j Y\")},sortProperty:\"ctime\"}",386311,61,"Read",386381,48,"asks\"",386265,36,"open",386308,35,",init:function(){var a;a=Ext.getStore(\"Preselecteds\");a.on({refresh:\"refreshData\",scope:this});return this.refreshData(a)},addOn",241708,32,"setData([a])}else{return this.clearData()}},refreshData:function(b){var c,a;c=b.first();if(c){a=Ext.getStore(\"Tasks\").getById(c.get(\"task_id\"));return this.addOne(a)}else{return this.addOne(null)}",386465,4244,"info",390699,1056,"picker.Slo",336410,35,"xtype:\"pickerslot\",alternateClassName:\"Ext.Picker.Slot",306142,33,"data.Store\",\"Ext.Component\",\"Ext.data.StoreManager\"],isSlot:true,config:{title:null,showTitle:true,cls:Ext.baseCSSPrefix+\"picker-slot\",name:null,value:null,flex:1,align:\"left\",displayField:\"text\",valueField:\"value\",scrollable:{direction:\"vertical\",indicators:false,momentumEasing:{minVelocity:2},slotSnapEasing:{duration:100}}",270988,38,"Index=0",271057,34,"Title:function(a){if(a){a=Ext.create(\"Ext.Component\",{cls:Ext.baseCSSPrefix+\"picker-slot-title\",docked:\"top\",html:a})}return a",245696,45,";this.setupBar()}if(a){this.remove(a)}},updateShowTitle:function(a){var b=this.getTitle();if(b){b[a?\"show\":\"hide\"]();this.setupBar()}},updateDisplayField:function(a){this.setItemTpl('<div class=\"'+Ext.baseCSSPrefix+'picker-item {cls} <tpl if=\"extra\">'+Ext.baseCSSPrefix+'picker-invalid</tpl>\">{'+a+\"}</div>\")},updateAlign:function(a,c){var b=this.element;b.addCls(Ext.baseCSSPrefix+\"picker-\"+a);b.removeCls(Ext.baseCSSPrefix+\"picker-\"+c)},applyData:function(d){var f=[],c=d&&d.length,a,b,e;if(d&&Ext.isArray(d)&&c){for(a=0;a<c;a++){b=d[a];e={};if(Ext.isArray(b)){e[this.valueField]=b[0];e[this.displayField]=b[1]}else{if(Ext.isString(b)){e[this.valueField]=b;e[this.displayField]=b}else{if(Ext.isObject(b)){e=b}}}f.push(e)}}return d},updateData:function(",333356,46,"fields:[\"text\",\"value\"],data:a}))",325184,42,"var a=this.getScrollable().getScroller();this.on({scope:this,painted:\"onPainted\",itemtap:\"doItemTap\"});a.on({scope:this,scrollend:\"onScrollEn",119325,32,"setupBar()},getPicker:function(){if(!this.picker){this.picker=this.getParent()}return this.picker},setupBa",179886,32,"return}var a=this.element,e=this.innerElement,f=this.getPicker(),g=f.bar,k=this.getValue(),b=this.getShowTitle(),j=this.getTitle(),h=this.getScrollable(),d=h.getScroller(),c=0,l,i;l=g.getHeight();if(b&&j){c=j.element.getHeight()}i=Math.ceil((a.getHeight()-c-l)/2);e.setStyle({padding:i+\"px 0 \"+(i)+\"px\"});d.refresh();d.setSlotSnapSize(l);this.setValue(k)},doItemTap:function(d,a,c,f){var b=this;b.selectedIndex=a;b.selectedNode=c;b.scrollToItem(c,true);b.fireEvent(\"slotpick\",b,b.getValue(true),b.selectedNode)},scrollToItem:function(e,d){var h=e.getY(),c=e.parent(),f=c.getY(),b=this.getScrollable(),a=b.getScroller(),g;g=h-f;a.scrollTo(0,g,d)},onScrollEnd:function(b,a,g){var f=this,d=Math.round(g/f.picker.bar.getHeight()),c=f.getViewItems(),e=c[d];if(e){f.selectedIndex=d;f.selectedNode=e;f.fireEvent(\"slotpick\",f,f.getValue(),f.selectedNode)}},getValue:function(c){var b=this.getStore(),a,d;if(!b){return}if(!this.rendered||!c){return this._value}if(this._value===false){return null}a=b.getAt(this.selectedIndex);d=a?a.get(this.getValueField()):null;return d},setValue:function(f){if(!Ext.isDefined(f)){return}if(!this.rendered||!f){this._value=f;return}var b=this.getStore(),a=this.getViewItems(),d=this.getValueField(),c,e;c=b.find(d,f);if(c!=-1){e=Ext.get(a[c]);this.selectedIndex=c;this.scrollToItem(e);this._value=f}},setValueAnimated:function(f){if(!f){return}if(!this.rendered){this._value=f;return}var b=this.getStore(),a=this.getViewItems(),d=this.getValueField(),c,e;c=b.find(d,f);if(c!=-1){e=Ext.get(a[c]);this.selectedIndex=c;this.scrollToItem(e,{duration:100});this._value=f}}});Ext.define(\"Ext.picker.Picker",242608,36,"picker\",alternateClassName:\"Ext.Picker\",requires:[\"Ext.picker.Slot\",\"Ext.Toolbar\",\"Ext.data.Model\"],isPicker:true",76282,32,"picker\",doneButton:true,cancelButton:true,useTitles:false,slots:null,value:null,height:220,layout:{type:\"hbox\",align:\"stretch\"},centered:false,left:0,right:0,bottom:0,defaultType:\"pickerslot\",toolbar:true},initElement",100382,39,"var b=this,a=Ext.baseCSSPrefix,c=this.innerElement;this.mask=c.createChild({cls:a+\"picker-mask\"});this.bar=this.mask.createChild({cls:a+\"picker-bar\"});b.on({scope:this,delegate:\"pickerslot\",slotpick:\"onSlotPick\"});b.on({scope:this,show:\"onShow\"})},applyToolb",299582,33,"Ext.applyIf(a,{docked:\"top\"});return Ext.factory(a,\"Ext.TitleBar\",this.getToolbar())},updateToolbar",237153,56,"applyDoneButton:function(a){if(a){if(Ext.isBoolean(a)){a={}}if(typeof a==\"string\"){a={text:a}}Ext.applyIf(a,{ui:\"action\",align:\"right\",text:\"Done\"})}return Ext.factory(a,\"Ext.Button\",this.getDoneButton())},updateDoneButton:function(c,a){var b=this.getToolbar();if(c){b.add(c);c.on(\"tap\",this.onDoneButtonTap,this)}else{if(a){b.remove(a)}}},applyCancelButton:function(a){if(a){if(Ext.isBoolean(a)){a={}}if(typeof a==\"string\"){a={text:a}}Ext.applyIf(a,{align:\"left\",text:\"Cancel\"})}return Ext.factory(a,\"Ext.Button\",this.getCancelButton())},updateCancelButton:function(b,a){var c=this.getToolbar();if(b){c.add(b);b.on(\"tap\",this.onCancelButtonTap,this)}else{if(a){c.remove(a)}}},updateUseTitles:function(d){var f=this.getInnerItems(),e=f.length,a=Ext.baseCSSPrefix+\"use-titles\",c,b;if(d",229600,40,"for(c=0;c<e;c++){b=f[c];if(b.isSlot){b.setShowTitle(d)}}},applySlots:function(b){if(b){var c=b.length,a;for(a=0;a<c;a++){b[a].picker=this}}return b},updateSlots:function(a){var b=Ext.baseCSSPrefix,c;this.removeAll();if(a){this.add(a)}c=this.getInnerItems();if(c.length>0){c[0].addCls(b+\"first\");c[c.length-1].addCls(b+\"last\")}this.updateUseTitles(this.getUseTitles())},onDoneButtonTap:function(){var a=this._value,b=this.getValue(true);if(b!=a){this.fireEvent(\"change\",this,b)}this.hide()},onCancelButtonTap:function(){this.fireEvent(\"cancel\",this);this.hide()},onSlotP",213693,32,"pick\",this,this.getValue(true),a)},onShow:function(){if(!this.isHidden()){this.setValue(this._value)}},setValue:function(k,a){var f=this,d=f.getInnerItems(),e=d.length,j,h,c,b,g;if(!k){k={};for(b=0;b<e;b++){k[d[b].config.name]=null}}for(j in k){g=k[j];for(b=0;b<d.length;b++){c=d[b];if(c.config.name==j){h=c;break}}if(h){if(a){h.setValueAnimated(g)}else{h.setValue(g)}}}f._values=f._value=k;return f},setValueAnimated:function(a){this.setValue(a,true)},getValue:function(c){var b={},a=this.getItems().items,f=a.length,e,d;if(c){for(d=0;d<f;d++){e=a[d];if(e&&e.isSlot){b[e.getName()]=e.getValue(c)}}this._values=b}return this._values",311644,35,"getValue(",69768,38,");Ext.destroy(this.mask,this.bar)",310856,42,"Tags\",{extend:\"Ext.picker.Picker\",xtype:\"tagspanel\",config:{tags:{},hideOnMaskTap:true},updateTags:function(c){var d,b,a;d=(function(){var e;e=[];for(b in c){a=c[b];e.push({text:b,value:a})}return e})();d=Ext.Array.sort(d,function(e,f){if(Ext.isEmpty(e.text)){return -1}else{if(Ext.isEmpty(f.text)){return 1}else{return f.value-e.value}}});return this.setSlots({name:\"tag\",data:Ext.Array.map(d,function(e){return{text:e.text,value:e.text}})})",391735,1032,"askFilter",392763,75,",\"HistoryList\",\"Sounds\",\"Tags",392837,80,"TasksProxy\",\"TodosProxy",392914,38,"History\",\"Read",392961,577]
2  deltas/app.js/63eaf38d6640250935df4a76258c4a80ff2c30fa.json
View
@@ -1 +1 @@
-["/*e98e3e743a2813f1f95750e291a0b5256828bd6",41,239651,"e){var a,d,c,b;if(e){",240362,48,"if(c){b=Ext.clone(c.getData())}}",239700,59,"if(b){a.setValues(b",239757,5266,"Media",277241,33,"media\",config:{url:\"\",enableControls:Ext.os.is.Android?false:true,autoResume:false,autoPause:true,preload:true,loop:false,media:null,volume:1,muted:false",257968,52,"on({scope:a,activate:a.onActivate,deactivate:a.onDeactivate});a.addMediaListener({canplay:\"onCanPlay\",play:\"onPlay\",pause:\"onPause\",ended:\"onEnd\",volumechange:\"onVolumeChange\",timeupdate:\"onTimeUpdate\"})},addMediaListener:function(d,b){var c=this,e=c.media.dom,f=Ext.Function.bind;if(!Ext.isObject(d)){var a=d;d={};d[a]=b}Ext.Object.each(d,function(h,g){if(typeof g!==\"function\"){g=c[g]}if(typeof g==\"function\"){g=f(g,c);e.addEventListener(h,g)}})},onPlay:function(){this.fireEvent(\"play\",this)},onCanPlay:function(){this.fireEvent(\"canplay\",this)},onPause:function(){this.fireEvent(\"pause\",this,this.getCurrentTime())},onEnd:function(){this.fireEvent(\"ended\",this,this.getCurrentTime())},onVolum",193887,35,"volumechange\",this,this.media.dom.volume)},onTimeUpdate:function(){this.fireEvent(\"timeupdate\",this,this.getCurrentTime())},isPlaying:function(){return !Boolean(this.media.dom.paused)},onActivate:function(){var a=this;if(a.getAutoResume()&&!a.isPlaying()){a.play()}},onDeactivate:function(){var a=this;if(a.getAutoResume()&&a.isPlaying()){a.pause()}},updateUrl:function(a){var b=this.media.dom;b.src=a;if(\"load\" in b){b.load()}if(this.isPlaying()){this.play()}},updateEnableControls:function(a){this.media.dom.controls=a?\"controls\":false},updateLoop:function(a){this.media.dom.loop=a?\"loop\":false},play:function(){var a=this.media.dom;if(\"play\" in a){a.play();setTimeout(function(){a.play()},10)}},pause:function(){var a=this.media.dom;if(\"pause\" in a){a.pause()}},toggle:function(){if(this.isPlaying()){this.pause()}else{this.play()}},stop:function(){var a=this;a.setCurrentTime(0);a.fireEvent(\"stop\",a);a.pause()},updateVolume:function(a){this.media.dom.volume=a},updateMuted:function(a){this.fireEvent(\"mutedchange\",this,a);this.media.dom.muted=a},getCurrentTime:function(){return this.media.dom.currentTime},setCurrentTime:function(a){this.media.dom.currentTime=a;return a},getDuration:function(){return this.media.dom.duration",375035,32,"Ext.Object.each(event,function(c,b){if(typeof b!==\"function\"){b=a[b]}if(typeof b==\"function\"){b=bind(b,a);dom.removeEventListener(c,b)}})",245003,45449,"timeout:\"onTimeou",287808,107,289981,40,290580,1172,"b,c){var a,g,f,e,d;d=b.get(\"uid\");e=Ext.getStore(\"Timers\");g=e.findRecord(\"uid\",d);if(g){f=g",291842,38,"e.add({uid:d,time:b.get(\"starttime\"),type:\"go\"});f=\"break\"}e.add({uid:d,time:Date.now(),type:f});if(!c.getTimeout()){a=",238925,37,"Sounds\");if(f===\"go\"){a.play(\"starttask\")}else{a.play(\"break\")}}return c.updateTimer(b)},onTimeout:function(b,c){var a,d;d=c.getTimerType();a=",238925,37,"Sounds\");if(d===\"go\"){return a.play(\"break\")}else{return a.play(\"starttask\")}",292000,1520,"config:{refs:{historyview:\"historyview\"},control:{historyview:{add:\"showAddPanel\"}}}",293519,162,"b){var a;a=b.getType();if(a===\"taskdone\"||a===\"postponetask",293710,87,",showAddPanel:function(a){var b,c;c=a.data.cdata.task.uid;b=Ext.getStore(\"Tasks\").findRecord(\"uid\",c);if(!b){return}",292544,44,"AddTask\").show(c)}});Ext.define(\"Ext.Audio\",{extend:\"Ext.Media\",xtype:\"audio\"",76282,32,"audio\"},onActivat",230367,39,"if(Ext.os.is.Phone){a.element.show()}},onDeactivat",230367,39,"if(Ext.os.is.Phone){a.element.hide()}},template:[{reference:\"media\",preload:\"auto\",tag:\"audio\",cls:Ext.baseCSSPrefix+\"component\"}]",239872,34,"Sounds",238719,42,"Ext.Audio\",",293486,34,"sounds:{}",293519,65,"playIfRelated\",undo:function(){return this.play(\"undo\")},scope:this})},createTryPlayFun:function(a,d,c){var b;if(c==null){c=3000}b=new RegExp(\"^\"+a+\"[1-\"+d+\"]$\");return function(g,e){var f;if(e<c&&b.test(g)){f=parseInt(g.substr(a.length));if(f<d){f=f+1}return a+f}else{return a+\"1\"}}},createPreselectTryPlayFun:function(c){var a,b;b=/^preselect[1-8]$/;a=\"preselect\";return function(f,d){var e;if(d<3000&&b.test(f)){e=parseInt(f.substr(9));if(c&&e>1){e=e-1}else{if(e<8){e=e+1}}return a+e}else{return a+\"1\"}}},play",291563,45,"a===\"taskdone\"){if(!this._taskdoneTryPlayFun){this._taskdoneTryPlayFun=this.createTryPlayFun(\"taskdone\",8)}return this.tryPlay(this._taskdoneTryPlayFun)}else{if(a===\"postponetask\"){return this.play(\"postponetask\")}else{if(a===\"starttask\"){return this.play(\"starttask\")}else{if(a===\"deletetask\"){return this.play(\"deletetask\")}else{if(a===\"addtask\"){return this.play(\"addtask\")}else{if(a===\"edittask\"){return this.play(\"edittask\")}else{if(a===\"preselect\"){return this.tryPlay(this.createPreselectTryPlayFun(b.getCdata().preselected))}}}}}}}},tryPlay:function(a){var b;b=a(this.prename,Date.now()-this.pretime);if(b){return this.play(b)}},play:function(a){var b;b=this.sounds[a];if(!b){b=this.createSound(a);this.sounds[a]=b}if(this.prename){this.sounds[this.prename].stop()}b.play();this.prename=a;return this.pretime=Date.now()},createSound:function(b){var a;a=\"resources/sounds/\"+b+\".m4a\";return Ext.Viewport.add({xtype:\"audio\",hidden:true,url:a}",293795,32866,"timerType:\"go\",time:null,timeout:null,",326661,858,327542,245,"Timeout",344015,35,"timeout",327759,298,"b){var e,a,g,f,d,c;if(b==null){b=this.getRecord()",328255,42,"a=b.get(\"status\");if(a===\"open\"){this.setTimerType(\"ready\");this.setTime(0);return}c=b",291772,37,"g=d.findRecord(\"uid\",c);if(g){f=g.get(\"time\");this.setTimerType(g.get(\"type\"))}else{f=b",328217,32,"this.setTimerType(\"go\")}e",328298,47,"e.refreshAll(",328360,33,328395,118,"updateTime:function(d){var b,a,c",328551,61,"a.setText(this.timeText(d));if(this.getTimerType()===\"ready\"){this.setTimeout(false);if(a){a.hide()}b.setIconCls(\"play1",328746,34,"if(this.getTimerType()===\"go\"){c=d",328675,32,"c>100){this.setTimeout(true);",328714,66,"this.setTimeout(false);a.setValue(c",328792,47,"c=100-d",328846,50,"c<0){this.setTimeout(true);",328901,45,"this.setTimeout(false);a.setValue(c);return b.setUi(\"normal\")}}}},updateTimeout:function(b,a){if(b&&Ext.isBoolean(a)&&b!==a){return this.onTimeout()}},refreshAll:function(c){var a,b;a=Date.now();b=a-c;return this.setTime(b)",328986,13008,",\"break\"",395141,39,"reak\",a,b)},timeout",395141,38,"timeout\",a,b",342814,51,"break\",\"timeou",342039,33,"eady",342253,68,"RunningItem\"],xtype:\"ready\",config:{store:\"Ready",341586,408,",\"break\"",341950,36,342806,59,"start\"]",341421,36,343344,50,"RunningList\",\"FvTouch.view.Ready",342139,72,",{xtype:\"ready\"}],control:{runninglist:{refresh:\"onDataviewRefresh\"},ready:{refresh:\"onDataviewRefresh\"}}",316425,34,"this.onDataviewRefresh(this.child(\"runninglist\"));return this.onDataviewRefresh(this.child(\"ready\"))}}},onDataviewRefresh:function(a){if(a.getStore().getCount()){return a.show()}else{return a.hide()}",342212,9156,"div class=\\\"x-docking-horizontal\\\">\\n <div class='x-docked-left cmdtype {type}'></div>\\n <div class=\\\"x-body tasktitle\\\">{title}</div>\\n <div class='x-docked-right taskendtime'>{endtime:date('H:i:s')}</div>\\n</div>\",listeners:{itemdoubletap",341692,40,"dd\",a)}},bubbleEvents:[\"add\"]},prepareData:function(g,c,a){var b,f,e;try{f=Ext.getStore(\"Tasks\");e=g.cdata.task.uid;b=f.findRecord(\"uid\",e",351567,53,"type:g.type",351619,59,"g.ctime)}}catch(d){console.info(d);return{title:\"[error]\",type:\"\",createtime:new Data(),endtime:new Date()}",351695,42874,"this.initConfig(a);return this.init()},init:Ext.emptyFn",394595,4354,"filterFn:function(d){var a,c,b;c=d.get(\"type\");if(c===\"taskdone\"||c===\"postponetask\"){b=d.get(\"cdata\").task.uid;a=Ext.getStore(\"Tasks\").findRecord(\"uid\",b);if(!a){return false}if(c===\"postponetask\"){return d.get(\"cdata\").task.status===\"running\"}else{return true}}else{return false}}",398981,190,"FvTouch.store.Read",398831,32,"config:{store:\"Tasks\"",398595,36,"open",398638,35,",init:function(){var a;a=Ext.getStore(\"Preselecteds\");a.on({refresh:\"refreshData\",scope:this});return this.refreshData(a)},addOn",277883,32,"setData([a])}else{return this.clearData()}},refreshData:function(b){var c,a;c=b.first();if(c){a=Ext.getStore(\"Tasks\").getById(c.get(\"task_id\"));return this.addOne(a)}else{return this.addOne(null)}",399155,6387,",\"Sounds",405541,136,",\"Read",405675,577]
+["/*022eda3a66e9071b0bedd0435d39bd8357e275fd",42,214314,"if(!b",220795,68,"b.data.uid,title:b.data.title,info:b.data.info",214438,1144,"c){var e,h,f,a,d,i,b,g;g=Ext.getStore(\"Tasks\");b=g.findRecord(\"uid\",c.uid);a=c.title;if(Ext.isEmpty(a)){return false}f=c.info;i=b.get(\"title\");d=b.get(\"info\");if(a===i&&this.isEquals(f,d)){return false}h=this.getDelta(f,d);e={uid:c.uid,\"new\":{},old:{}};if(a!==i){e[\"new\"].title=a;e.old.title=i}if(h.xDelta){e[\"new\"].info=h.xDelta}if(h.yDelta){e.old.info=h.yDelta}return e},doImpl:function(){var c,f,d,a,b,e",215775,71,"e=c[\"new\"].title;if(e!==void 0){a.set(\"title\",e)}f=c[\"new\"].info;if(f){d=this.apply(a.get(\"info\"),f);a.set(\"info\",d)}",215876,43,"f,d,a,b,e",215775,71,"e=c.old.title;if(e!==void 0){a.set(\"title\",e)}f=c.old.info;if(f){d=this.apply(a.get(\"info\"),f);a.set(\"info\",d)}return a.save()},isEquals:function(a,b){if(a===b){return true}else{if(Ext.isPrimitive(a)){return false}else{if(Ext.isArray(a)){return Ext.isArray(b)&&this.isArrayEquals(a,b)}else{if(Ext.isEmpty(a)){return false}else{if(Ext.isDate(a)){return Ext.isDate(b)&&a.getTime()===b.getTime()}else{if(Ext.isFunction(a)){return Ext.isFunction(b)&&a.toString()===b.toString()}else{return Ext.isObject(b)&&this.isObjectEquals(a,b)}}}}}}},isArrayEquals:function(a,d){var b,c;if(a.length===d.length){for(b=0,c=length-1;0<=c?b<c:b>c;0<=c?b++:b--){if(!this.isEquals(a[b],d[b])){return false}}return true}else{return false}},isObjectEquals:function(a,h){var d,e,g,c,f,b;g=Ext.Object.getKeys(a);c=Ext.Object.getKeys(h);e=Ext.Array.merge(g,c);for(f=0,b=e.length;f<b;f++){d=e[f];if(!this.isEquals(a[d],h[d])){return false}}return true},getDelta:function(g,c){var k,i,j,b,h,d,f,a,e;if(!Ext.isObject(g)){g={}}if(!Ext.isObject(c)){c={}}h=Ext.Object.getKeys(g);f=Ext.Object.getKeys(c);j=Ext.Array.merge(h,f);b={};d={};k=false;for(a=0,e=j.length;a<e;a++){i=j[a];if(!this.isEquals(g[i],c[i])){b[i]=g[i];d[i]=c[i];k=true}}if(k){return{xDelta:b,yDelta:d}}else{return{}}},apply:function(c,d){var b,a;c||(c={});for(b in d){a=d[b];if(a===void 0){delete c[b]}else{c[b]=d[b]}}if(Ext.Object.getSize(c)){return c}else{return}",218029,33,"ostpon",214159,57,216131,144,"if(!b",220795,51,"if(!a){return false}",216311,97,"if(",216345,48,"&&Ext.getStore(\"TodosProxy\").last().getId()===a.getId()",216393,1776,"e){var d,b,g,a,f,c;c=Ext.getStore(\"Todos\");g=Ext.getStore(\"Tasks\");b=g.findRecord(\"uid\",e.uid);if(!b",220795,51,"if(!a||",218299,59,"f=Ext.getStore(\"TodosProxy\");d=f.first();if(d&&a.getId()===d.getId()){return false}return{uid:e",218370,195,"getId()",218572,369,"getId()",218572,71,"===e",217520,39,219062,321,"if(!b",220795,51,219419,1352,"!b",218317,41,221134,36,220846,3610,"var b,c;if(Ext.isEmpty(a.title)){return false}b=",224488,69,";c=this.normalize(a.info);if(c){b.info=c}return b",224557,166,"info:e.info",224722,331,",normalize:function(c){var b,a;for(b in c){a=c[b];if(a===void 0){delete c[b]}}if(Ext.Object.getSize(c)){return c}else{return}",225052,13786,",tagsButton:\"mytoolbar #tags",238837,53,",tags:\"onTags",238889,154,",onTags",238906,56,"Tags\").show()},launch:function(){var a;a=",238925,37,"Tags\");a.on({scope:this,change:\"changeTagsBadgeText\"});return this.changeTagsBadgeText(a.getTag())},changeTagsBadgeText:function(a){return this.getTagsButton().setBadgeText(a",239870,36,"AddTask",238719,66,239150,542,"f){var b,e,a,d,c;if(f){e=Ext.getStore(\"Tasks\");d=e.findRecord(\"uid\",f);if(d){c=Ext.clone(d.getData())}}else{a=",238925,37,"Tags\").getTag();if(a){c={info:{tags:[a]}}}}b=this.getPanel();if(!b",288880,33,"b)}if(c){b.setValues(c)}return b",239767,880,"controller.Tags",238719,41,"],config:{tag:window.localStorage.getItem(\"tag\"),views:[\"Tags\"],refs:{panel:{selector:\"tagspanel\",xtype:\"tags",240041,42,"hange:\"onChange\"}}},onChange:function(a,b){return this.setTag(b.tag)},show:function(){var a,b;b=this.getTags();if(Ext.Object.getSize(b)<=1){return}",239592,69,"if(!a.getParent()){Ext.Viewport.add(a)}a.setTags(this.getTags());a.setValue({tag:this.getTag()});return a.show()},getTags:function(){var a,b,c;c=Ext.getStore(\"Tasks\");b={\"\":0};a=this.getTag();if(!Ext.isEmpty(a)){b[a]=0}c.each(function(g){var h,d,j,f,i,e;if(g.data.info&&Ext.isArray(g.data.info.tags)&&g.data.info.tags.length){i=g.data.info.tags;e=[];for(j=0,f=i.length;j<f;j++){d=i[j];h=b[d];e.push(b[d]=h?h+1:1)}return e}else{return b[\"\"]=b[\"\"]+1}});return b",286356,32,"updateTag(this.getTag())},updateTag:function(a){var b;if(Ext.isEmpty(a)){window.localStorage.removeItem(\"tag\")}else{window.localStorage.setItem(\"tag\",a)}b=",238925,37,"TaskFilter\");if(b){b.setFilterFn(this.generateFilterFn(a))}return this.fireEvent(\"change\",a)},generateFilterFn:function(a){if(Ext.isEmpty(a)){return function(){return true}}else{return function(b){return b.data.info&&Ext.isArray(b.data.info.tags)&&Ext.Array.contains(b.data.info.tags,a)}}",240623,173,"itemId:\"add\"},{iconCls:\"tags\",itemId:\"tags\"},{iconCls:\"reply\",itemId",240833,58,"#add\":{ta",344014,36,"add\")}},\"#undo\":{ta",344014,36,"undo\")}},\"#tags\":{ta",344014,36,"tags\")}}}",218029,32,241048,3971,"FvTouch.field.Tags",233524,35,"agsfield\",applyValue:function(a){if(Ext.isArray(a)){return a}else{if(Ext.isEmpty(a)){return[]}else{return[a.toString()]}",230815,32,";if(!Ext.isArray(b)){Ext.Logger.error(\"value of tagsfield should be an array\")}a=b.join(\", \");return this.callParent([a])},getValue:function(){var a,b;b=this.callParent();a=Ext.Array.map(b.split(\",\"),function(c){return c.trim()});a=Ext.Array.filter(a,function(c){return !Ext.isEmpty(c)});a=Ext.Array.unique(a);if(a.length){return a}else{return}}});Ext.define(\"Ext.Media",277241,33,"media\",config:{url:\"\",enableControls:Ext.os.is.Android?false:true,autoResume:false,autoPause:true,preload:true,loop:false,media:null,volume:1,muted:false",257968,52,"on({scope:a,activate:a.onActivate,deactivate:a.onDeactivate});a.addMediaListener({canplay:\"onCanPlay\",play:\"onPlay\",pause:\"onPause\",ended:\"onEnd\",volumechange:\"onVolumeChange\",timeupdate:\"onTimeUpdate\"})},addMediaListener:function(d,b){var c=this,e=c.media.dom,f=Ext.Function.bind;if(!Ext.isObject(d)){var a=d;d={};d[a]=b}Ext.Object.each(d,function(h,g){if(typeof g!==\"function\"){g=c[g]}if(typeof g==\"function\"){g=f(g,c);e.addEventListener(h,g)}})},onPlay:function(){this.fireEvent(\"play\",this)},onCanPlay:function(){this.fireEvent(\"canplay\",this)},onPause:function(){this.fireEvent(\"pause\",this,this.getCurrentTime())},onEnd:function(){this.fireEvent(\"ended\",this,this.getCurrentTime())},onVolum",193887,35,"volumechange\",this,this.media.dom.volume)},onTimeUpdate:function(){this.fireEvent(\"timeupdate\",this,this.getCurrentTime())},isPlaying:function(){return !Boolean(this.media.dom.paused)},onActivate:function(){var a=this;if(a.getAutoResume()&&!a.isPlaying()){a.play()}},onDeactivate:function(){var a=this;if(a.getAutoResume()&&a.isPlaying()){a.pause()}},updateUrl:function(a){var b=this.media.dom;b.src=a;if(\"load\" in b){b.load()}if(this.isPlaying()){this.play()}},updateEnableControls:function(a){this.media.dom.controls=a?\"controls\":false},updateLoop:function(a){this.media.dom.loop=a?\"loop\":false},play:function(){var a=this.media.dom;if(\"play\" in a){a.play();setTimeout(function(){a.play()},10)}},pause:function(){var a=this.media.dom;if(\"pause\" in a){a.pause()}},toggle:function(){if(this.isPlaying()){this.pause()}else{this.play()}},stop:function(){var a=this;a.setCurrentTime(0);a.fireEvent(\"stop\",a);a.pause()},updateVolume:function(a){this.media.dom.volume=a},updateMuted:function(a){this.fireEvent(\"mutedchange\",this,a);this.media.dom.muted=a},getCurrentTime:function(){return this.media.dom.currentTime},setCurrentTime:function(a){this.media.dom.currentTime=a;return a},getDuration:function(){return this.media.dom.duration",375035,32,"Ext.Object.each(event,function(c,b){if(typeof b!==\"function\"){b=a[b]}if(typeof b==\"function\"){b=bind(b,a);dom.removeEventListener(c,b)}})",245003,43032,"Ext.getStore(\"TasksProxy\").refresh();",288035,1939,289981,92,";",292544,44,"TaskFilter\").on({update:\"refresh\",scope:this",288012,44,290115,337,"timeout:\"onTimeou",287808,107,289981,40,290580,857,289981,48,293591,62,";",292544,44,"TaskFilter\").on({update:\"refresh\",scope:this",291552,200,"b,c){var a,g,f,e,d;d=b.get(\"uid\");e=Ext.getStore(\"Timers\");g=e.findRecord(\"uid\",d);if(g){f=g",291842,38,"e.add({uid:d,time:b.get(\"starttime\"),type:\"go\"});f=\"break\"}e.add({uid:d,time:Date.now(),type:f});if(!c.getTimeout()){a=",238925,37,"Sounds\");if(f===\"go\"){a.play(\"starttask\")}else{a.play(\"break\")}}return c.updateTimer(b)},onTimeout:function(b,c){var a,d;d=c.getTimerType();a=",238925,37,"Sounds\");if(d===\"go\"){return a.play(\"break\")}else{return a.play(\"starttask\")}",292000,1520,"config:{refs:{historyview:\"historyview\"},control:{historyview:{add:\"showAddPanel",290519,61,293583,70,";",292544,44,"TaskFilter\").on({update:\"refresh\",scope:this",291552,56,"a===\"taskdone\"||a===\"postponetask",293710,87,",showAddPanel:function(a){var b,c;c=a.data.cdata.task.uid;b=Ext.getStore(\"Tasks\").findRecord(\"uid\",c);if(!b){return}",292544,44,"AddTask\").show(c)}});Ext.define(\"Ext.Audio\",{extend:\"Ext.Media\",xtype:\"audio\"",76282,32,"audio\"},onActivat",230367,39,"if(Ext.os.is.Phone){a.element.show()}},onDeactivat",230367,39,"if(Ext.os.is.Phone){a.element.hide()}},template:[{reference:\"media\",preload:\"auto\",tag:\"audio\",cls:Ext.baseCSSPrefix+\"component\"}]",239872,34,"Sounds",238719,42,"Ext.Audio\",",293486,34,"sounds:{}",293519,65,"playIfRelated\",undo:function(){return this.play(\"undo\")},scope:this})},createTryPlayFun:function(a,d,c){var b;if(c==null){c=3000}b=new RegExp(\"^\"+a+\"[1-\"+d+\"]$\");return function(g,e){var f;if(e<c&&b.test(g)){f=parseInt(g.substr(a.length));if(f<d){f=f+1}return a+f}else{return a+\"1\"}}},createPreselectTryPlayFun:function(c){var a,b;b=/^preselect[1-8]$/;a=\"preselect\";return function(f,d){var e;if(d<3000&&b.test(f)){e=parseInt(f.substr(9));if(c&&e>1){e=e-1}else{if(e<8){e=e+1}}return a+e}else{return a+\"1\"}}},play",291563,45,"a===\"taskdone\"){if(!this._taskdoneTryPlayFun){this._taskdoneTryPlayFun=this.createTryPlayFun(\"taskdone\",8)}return this.tryPlay(this._taskdoneTryPlayFun)}else{if(a===\"postponetask\"){return this.play(\"postponetask\")}else{if(a===\"starttask\"){return this.play(\"starttask\")}else{if(a===\"deletetask\"){return this.play(\"deletetask\")}else{if(a===\"addtask\"){return this.play(\"addtask\")}else{if(a===\"edittask\"){return this.play(\"edittask\")}else{if(a===\"preselect\"){return this.tryPlay(this.createPreselectTryPlayFun(b.getCdata().preselected))}}}}}}}},tryPlay:function(a){var b;b=a(this.prename,Date.now()-this.pretime);if(b){return this.play(b)}},play:function(a){var b;b=this.sounds[a];if(!b){b=this.createSound(a);this.sounds[a]=b}if(this.prename){this.sounds[this.prename].stop()}b.play();this.prename=a;return this.pretime=Date.now()},createSound:function(b){var a;a=\"resources/sounds/\"+b+\".m4a\";return Ext.Viewport.add({xtype:\"audio\",hidden:true,url:a}",293795,22280,",\"FvTouch.field.Tags\"],config:{values:void 0,showA",303597,34,316124,298,",",316363,34,"agsfield\",name:\"tags\",label:\"Tags",316418,267,"applyValues:function(a){if(a===void 0||a===null){return a}else{return Ext.apply(a.info||{},{title:a.title})}},getValues:function(){var b,a;a=",316713,35,";b=a.title;delete a.title;return{title:b,info:a}},update",316753,820,"if(a){this.setUid(a.uid",107504,55,317645,9016,"timerType:\"go\",time:null,timeout:null,",326661,858,327542,245,"Timeout",344015,35,"timeout",327759,298,"b){var e,a,g,f,d,c;if(b==null){b=this.getRecord()",328255,42,"a=b.get(\"status\");if(a===\"open\"){this.setTimerType(\"ready\");this.setTime(0);return}c=b",291772,37,"g=d.findRecord(\"uid\",c);if(g){f=g.get(\"time\");this.setTimerType(g.get(\"type\"))}else{f=b",328217,32,"this.setTimerType(\"go\")}e",328298,47,"e.refreshAll(",328360,33,328395,118,"updateTime:function(d){var b,a,c",328551,61,"a.setText(this.timeText(d));if(this.getTimerType()===\"ready\"){this.setTimeout(false);if(a){a.hide()}b.setIconCls(\"play1",328746,34,"if(this.getTimerType()===\"go\"){c=d",328675,32,"c>100){this.setTimeout(true);",328714,66,"this.setTimeout(false);a.setValue(c",328792,47,"c=100-d",328846,50,"c<0){this.setTimeout(true);",328901,45,"this.setTimeout(false);a.setValue(c);return b.setUi(\"normal\")}}}},updateTimeout:function(b,a){if(b&&Ext.isBoolean(a)&&b!==a){return this.onTimeout()}},refreshAll:function(c){var a,b;a=Date.now();b=a-c;return this.setTime(b)",328986,13008,",\"break\"",395141,39,"reak\",a,b)},timeout",395141,38,"timeout\",a,b",342814,51,"break\",\"timeou",342039,33,"eady",342253,68,"RunningItem\"],xtype:\"ready\",config:{store:\"Ready",341586,408,",\"break\"",341950,36,342806,59,"start\"]",341421,36,343344,50,"RunningList\",\"FvTouch.view.Ready",342139,72,",{xtype:\"ready\"}],control:{runninglist:{refresh:\"onDataviewRefresh\"},ready:{refresh:\"onDataviewRefresh\"}}",316425,34,"this.onDataviewRefresh(this.child(\"runninglist\"));return this.onDataviewRefresh(this.child(\"ready\"))}}},onDataviewRefresh:function(a){if(a.getStore().getCount()){return a.show()}else{return a.hide()}",342212,9156,"div class=\\\"x-docking-horizontal\\\">\\n <div class='x-docked-left cmdtype {type}'></div>\\n <div class=\\\"x-body tasktitle\\\">{title}</div>\\n <div class='x-docked-right taskendtime'>{endtime:date('H:i:s')}</div>\\n</div>\",listeners:{itemdoubletap",341692,40,"dd\",a)}},bubbleEvents:[\"add\"]},prepareData:function(g,c,a){var b,f,e;try{f=Ext.getStore(\"Tasks\");e=g.cdata.task.uid;b=f.findRecord(\"uid\",e",351567,53,"type:g.type",351619,59,"g.ctime)}}catch(d){console.info(d);return{title:\"[error]\",type:\"\",createtime:new Data(),endtime:new Date()}",351695,42874,"this.initConfig(a);return this.init()},init:Ext.emptyFn",394595,3269,"TasksProx",398831,32,"config:{store:\"Task",398762,57,"controller.TaskFilte",238718,51,"store.TasksProxy\"],config:{filterFn:function(){return true}},updateFilterFn:function(a){var b;b=Ext.getStore(\"TasksProxy\");if(b){b.clearFilter(true);b.setFilters([{filterFn:a}]);",288042,37,"return this.fireEvent(\"update\",a)",398672,93,"filters:[{filterFn:function(b){var a,c;c=Ext.getStore(\"TasksProxy\");a=c.getById(b.get(\"task_id\"));return !Ext.isEmpty(a)}}]",398764,61,397864,511,"d){var a,c,b;b=Ext.getStore(\"TodosProxy\");if(b.getCount()&&b.getById(d.getId())&&(d.data.preselected||d.getId()===b.first().getId())){return true}else{c=Ext.getStore(\"Tasks\");a=c.getById(d.get(\"task_id\"));return a&&a.get(\"status\")===\"running\"}}}]",398764,61,398485,217,398825,124,"filterFn:function(d){var a,c,b;c=d.get(\"type\");if(c===\"taskdone\"||c===\"postponetask\"){b=d.get(\"cdata\").task.uid;a=Ext.getStore(\"TasksProxy\").findRecord(\"uid\",b);if(!a){return false}if(c===\"postponetask\"){return d.get(\"cdata\").task.status===\"running\"}else{return true}}else{return false}}",398981,190,"FvTouch.store.Read",398831,32,"config:{store:\"Tasks\"",398595,36,"open",398638,35,",init:function(){var a;a=Ext.getStore(\"Preselecteds\");a.on({refresh:\"refreshData\",scope:this});return this.refreshData(a)},addOn",277883,32,"setData([a])}else{return this.clearData()}},refreshData:function(b){var c,a;c=b.first();if(c){a=Ext.getStore(\"Tasks\").getById(c.get(\"task_id\"));return this.addOne(a)}else{return this.addOne(null)}",399155,4244,"info",403389,1056,"picker.Slot",342253,34,"xtype:\"pickerslot\",alternateClassName:\"Ext.Picker.Slot",311181,33,"data.Store\",\"Ext.Component\",\"Ext.data.StoreManager\"],isSlot:true,config:{title:null,showTitle:true,cls:Ext.baseCSSPrefix+\"picker-slot\",name:null,value:null,flex:1,align:\"left\",displayField:\"text\",valueField:\"value\",scrollable:{direction:\"vertical\",indicators:false,momentumEasing:{minVelocity:2},slotSnapEasing:{duration:100}}",269958,38,"Index=0",270027,34,"Title:function(a){if(a){a=Ext.create(\"Ext.Component\",{cls:Ext.baseCSSPrefix+\"picker-slot-title\",docked:\"top\",html:a})}return a",244666,45,";this.setupBar()}if(a){this.remove(a)}},updateShowTitle:function(a){var b=this.getTitle();if(b){b[a?\"show\":\"hide\"]();this.setupBar()}},updateDisplayField:function(a){this.setItemTpl('<div class=\"'+Ext.baseCSSPrefix+'picker-item {cls} <tpl if=\"extra\">'+Ext.baseCSSPrefix+'picker-invalid</tpl>\">{'+a+\"}</div>\")},updateAlign:function(a,c){var b=this.element;b.addCls(Ext.baseCSSPrefix+\"picker-\"+a);b.removeCls(Ext.baseCSSPrefix+\"picker-\"+c)},applyData:function(d){var f=[],c=d&&d.length,a,b,e;if(d&&Ext.isArray(d)&&c){for(a=0;a<c;a++){b=d[a];e={};if(Ext.isArray(b)){e[this.valueField]=b[0];e[this.displayField]=b[1]}else{if(Ext.isString(b)){e[this.valueField]=b;e[this.displayField]=b}else{if(Ext.isObject(b)){e=b}}}f.push(e)}}return d},updateData:function(",338406,46,"fields:[\"text\",\"value\"],data:a})",331422,43,"var a=this.getScrollable().getScroller();this.on({scope:this,painted:\"onPainted\",itemtap:\"doItemTap\"});a.on({scope:this,scrollend:\"onScrollEn",119325,32,"setupBar()},getPicker:function(){if(!this.picker){this.picker=this.getParent()}return this.picker},setupBa",179886,32,"return}var a=this.element,e=this.innerElement,f=this.getPicker(),g=f.bar,k=this.getValue(),b=this.getShowTitle(),j=this.getTitle(),h=this.getScrollable(),d=h.getScroller(),c=0,l,i;l=g.getHeight();if(b&&j){c=j.element.getHeight()}i=Math.ceil((a.getHeight()-c-l)/2);e.setStyle({padding:i+\"px 0 \"+(i)+\"px\"});d.refresh();d.setSlotSnapSize(l);this.setValue(k)},doItemTap:function(d,a,c,f){var b=this;b.selectedIndex=a;b.selectedNode=c;b.scrollToItem(c,true);b.fireEvent(\"slotpick\",b,b.getValue(true),b.selectedNode)},scrollToItem:function(e,d){var h=e.getY(),c=e.parent(),f=c.getY(),b=this.getScrollable(),a=b.getScroller(),g;g=h-f;a.scrollTo(0,g,d)},onScrollEnd:function(b,a,g){var f=this,d=Math.round(g/f.picker.bar.getHeight()),c=f.getViewItems(),e=c[d];if(e){f.selectedIndex=d;f.selectedNode=e;f.fireEvent(\"slotpick\",f,f.getValue(),f.selectedNode)}},getValue:function(c){var b=this.getStore(),a,d;if(!b){return}if(!this.rendered||!c){return this._value}if(this._value===false){return null}a=b.getAt(this.selectedIndex);d=a?a.get(this.getValueField()):null;return d},setValue:function(f){if(!Ext.isDefined(f)){return}if(!this.rendered||!f){this._value=f;return}var b=this.getStore(),a=this.getViewItems(),d=this.getValueField(),c,e;c=b.find(d,f);if(c!=-1){e=Ext.get(a[c]);this.selectedIndex=c;this.scrollToItem(e);this._value=f}},setValueAnimated:function(f){if(!f){return}if(!this.rendered){this._value=f;return}var b=this.getStore(),a=this.getViewItems(),d=this.getValueField(),c,e;c=b.find(d,f);if(c!=-1){e=Ext.get(a[c]);this.selectedIndex=c;this.scrollToItem(e,{duration:100});this._value=f}}});Ext.define(\"Ext.picker.Picker",241578,36,"picker\",alternateClassName:\"Ext.Picker\",requires:[\"Ext.picker.Slot\",\"Ext.Toolbar\",\"Ext.data.Model\"],isPicker:true",76282,32,"picker\",doneButton:true,cancelButton:true,useTitles:false,slots:null,value:null,height:220,layout:{type:\"hbox\",align:\"stretch\"},centered:false,left:0,right:0,bottom:0,defaultType:\"pickerslot\",toolbar:true},initElement",100382,39,"var b=this,a=Ext.baseCSSPrefix,c=this.innerElement;this.mask=c.createChild({cls:a+\"picker-mask\"});this.bar=this.mask.createChild({cls:a+\"picker-bar\"});b.on({scope:this,delegate:\"pickerslot\",slotpick:\"onSlotPick\"});b.on({scope:this,show:\"onShow\"})},applyToolb",304621,33,"Ext.applyIf(a,{docked:\"top\"});return Ext.factory(a,\"Ext.TitleBar\",this.getToolbar())},updateToolbar",237153,56,"applyDoneButton:function(a){if(a){if(Ext.isBoolean(a)){a={}}if(typeof a==\"string\"){a={text:a}}Ext.applyIf(a,{ui:\"action\",align:\"right\",text:\"Done\"})}return Ext.factory(a,\"Ext.Button\",this.getDoneButton())},updateDoneButton:function(c,a){var b=this.getToolbar();if(c){b.add(c);c.on(\"tap\",this.onDoneButtonTap,this)}else{if(a){b.remove(a)}}},applyCancelButton:function(a){if(a){if(Ext.isBoolean(a)){a={}}if(typeof a==\"string\"){a={text:a}}Ext.applyIf(a,{align:\"left\",text:\"Cancel\"})}return Ext.factory(a,\"Ext.Button\",this.getCancelButton())},updateCancelButton:function(b,a){var c=this.getToolbar();if(b){c.add(b);b.on(\"tap\",this.onCancelButtonTap,this)}else{if(a){c.remove(a)}}},updateUseTitles:function(d){var f=this.getInnerItems(),e=f.length,a=Ext.baseCSSPrefix+\"use-titles\",c,b;if(d",229600,40,"for(c=0;c<e;c++){b=f[c];if(b.isSlot){b.setShowTitle(d)}}},applySlots:function(b){if(b){var c=b.length,a;for(a=0;a<c;a++){b[a].picker=this}}return b},updateSlots:function(a){var b=Ext.baseCSSPrefix,c;this.removeAll();if(a){this.add(a)}c=this.getInnerItems();if(c.length>0){c[0].addCls(b+\"first\");c[c.length-1].addCls(b+\"last\")}this.updateUseTitles(this.getUseTitles())},onDoneButtonTap:function(){var a=this._value,b=this.getValue(true);if(b!=a){this.fireEvent(\"change\",this,b)}this.hide()},onCancelButtonTap:function(){this.fireEvent(\"cancel\",this);this.hide()},onSlotP",213693,32,"pick\",this,this.getValue(true),a)},onShow:function(){if(!this.isHidden()){this.setValue(this._value)}},setValue:function(k,a){var f=this,d=f.getInnerItems(),e=d.length,j,h,c,b,g;if(!k){k={};for(b=0;b<e;b++){k[d[b].config.name]=null}}for(j in k){g=k[j];for(b=0;b<d.length;b++){c=d[b];if(c.config.name==j){h=c;break}}if(h){if(a){h.setValueAnimated(g)}else{h.setValue(g)}}}f._values=f._value=k;return f},setValueAnimated:function(a){this.setValue(a,true)},getValue:function(c){var b={},a=this.getItems().items,f=a.length,e,d;if(c){for(d=0;d<f;d++){e=a[d];if(e&&e.isSlot){b[e.getName()]=e.getValue(c)}}this._values=b}return this._values",316683,35,"getValue(",69768,38,");Ext.destroy(this.mask,this.bar)",315895,42,"Tags\",{extend:\"Ext.picker.Picker\",xtype:\"tagspanel\",config:{tags:{},hideOnMaskTap:true},updateTags:function(c){var d,b,a;d=(function(){var e;e=[];for(b in c){a=c[b];e.push({text:b,value:a})}return e})();d=Ext.Array.sort(d,function(e,f){if(Ext.isEmpty(e.text)){return -1}else{if(Ext.isEmpty(f.text)){return 1}else{return f.value-e.value}}});return this.setSlots({name:\"tag\",data:Ext.Array.map(d,function(e){return{text:e.text,value:e.text}})})",404425,1032,"askFilter",405453,89,",\"Sounds\",\"Tags",405541,80,"TasksProxy\",\"TodosProxy",405618,38,"History\",\"Read",405675,577]
2  deltas/app.js/7877d92804daaf556a510c999b28bb9cd83099bb.json
View
@@ -1 +1 @@
-["/*e98e3e743a2813f1f95750e291a0b5256828bd6a",42,245095,"Media",277355,33,"media\",config:{url:\"\",enableControls:Ext.os.is.Android?false:true,autoResume:false,autoPause:true,preload:true,loop:false,media:null,volume:1,muted:false",230356,52,"on({scope:a,activate:a.onActivate,deactivate:a.onDeactivate});a.addMediaListener({canplay:\"onCanPlay\",play:\"onPlay\",pause:\"onPause\",ended:\"onEnd\",volumechange:\"onVolumeChange\",timeupdate:\"onTimeUpdate\"})},addMediaListener:function(d,b){var c=this,e=c.media.dom,f=Ext.Function.bind;if(!Ext.isObject(d)){var a=d;d={};d[a]=b}Ext.Object.each(d,function(h,g){if(typeof g!==\"function\"){g=c[g]}if(typeof g==\"function\"){g=f(g,c);e.addEventListener(h,g)}})},onPlay:function(){this.fireEvent(\"play\",this)},onCanPlay:function(){this.fireEvent(\"canplay\",this)},onPause:function(){this.fireEvent(\"pause\",this,this.getCurrentTime())},onEnd:function(){this.fireEvent(\"ended\",this,this.getCurrentTime())},onVolum",193887,35,"volumechange\",this,this.media.dom.volume)},onTimeUpdate:function(){this.fireEvent(\"timeupdate\",this,this.getCurrentTime())},isPlaying:function(){return !Boolean(this.media.dom.paused)},onActivate:function(){var a=this;if(a.getAutoResume()&&!a.isPlaying()){a.play()}},onDeactivate:function(){var a=this;if(a.getAutoResume()&&a.isPlaying()){a.pause()}},updateUrl:function(a){var b=this.media.dom;b.src=a;if(\"load\" in b){b.load()}if(this.isPlaying()){this.play()}},updateEnableControls:function(a){this.media.dom.controls=a?\"controls\":false},updateLoop:function(a){this.media.dom.loop=a?\"loop\":false},play:function(){var a=this.media.dom;if(\"play\" in a){a.play();setTimeout(function(){a.play()},10)}},pause:function(){var a=this.media.dom;if(\"pause\" in a){a.pause()}},toggle:function(){if(this.isPlaying()){this.pause()}else{this.play()}},stop:function(){var a=this;a.setCurrentTime(0);a.fireEvent(\"stop\",a);a.pause()},updateVolume:function(a){this.media.dom.volume=a},updateMuted:function(a){this.fireEvent(\"mutedchange\",this,a);this.media.dom.muted=a},getCurrentTime:function(){return this.media.dom.currentTime},setCurrentTime:function(a){this.media.dom.currentTime=a;return a},getDuration:function(){return this.media.dom.duration",375775,32,"Ext.Object.each(event,function(c,b){if(typeof b!==\"function\"){b=a[b]}if(typeof b==\"function\"){b=bind(b,a);dom.removeEventListener(c,b)}})",245117,45449,"timeout:\"onTimeout",290564,70,287993,36,290095,40,290694,1172,"b,c){var a,g,f,e,d;d=b.get(\"uid\");e=Ext.getStore(\"Timers\");g=e.findRecord(\"uid\",d);if(g){f=g",291956,38,"e.add({uid:d,time:b.get(\"starttime\"),type:\"go\"});f=\"break\"}e.add({uid:d,time:Date.now(),type:f});if(!c.getTimeout()){a=",238925,37,"Sounds\");if(f===\"go\"){a.play(\"starttask\")}else{a.play(\"break\")}}return c.updateTimer(b)},onTimeout:function(b,c){var a,d;d=c.getTimerType();a=",238925,37,"Sounds\");if(d===\"go\"){return a.play(\"break\")}else{return a.play(\"starttask\")}},taskdone",292464,62,292186,2037,"Audio\",{extend:\"Ext.Media\",xtype:\"audio\"",76282,32,"audio\"},onActivat",230367,39,"if(Ext.os.is.Phone){a.element.show()}},onDeactivat",230367,39,"if(Ext.os.is.Phone){a.element.hide()}},template:[{reference:\"media\",preload:\"auto\",tag:\"audio\",cls:Ext.baseCSSPrefix+\"component\"}]",290254,34,"Sounds",238719,42,"Ext.Audio\",",293600,34,"sounds:{",288011,66,"playIfRelated\",undo:function(){return this.play(\"undo\")},scope:this})},createTryPlayFun:function(a,d,c){var b;if(c==null){c=3000}b=new RegExp(\"^\"+a+\"[1-\"+d+\"]$\");return function(g,e){var f;if(e<c&&b.test(g)){f=parseInt(g.substr(a.length));if(f<d){f=f+1}return a+f}else{return a+\"1\"}}},createPreselectTryPlayFun:function(c){var a,b;b=/^preselect[1-8]$/;a=\"preselect\";return function(f,d){var e;if(d<3000&&b.test(f)){e=parseInt(f.substr(9));if(c&&e>1){e=e-1}else{if(e<8){e=e+1}}return a+e}else{return a+\"1\"}}},play",291677,45,"a===\"taskdone\"){if(!this._taskdoneTryPlayFun){this._taskdoneTryPlayFun=this.createTryPlayFun(\"taskdone\",8)}return this.tryPlay(this._taskdoneTryPlayFun)}else{if(",293922,32,"play(\"postponetask\")}else{if(a===\"starttask\"){return this.play(\"starttask\")}else{if(a===\"deletetask\"){return this.play(\"deletetask\")}else{if(a===\"addtask\"){return this.play(\"addtask\")}else{if(a===\"edittask\"){return this.play(\"edittask\")}else{if(a===\"preselect\"){return this.tryPlay(this.createPreselectTryPlayFun(b.getCdata().preselected))}}}}}}}},tryPlay:function(a){var b;b=a(this.prename,Date.now()-this.pretime);if(b){return this.play(b)}},play:function(a){var b;b=this.sounds[a];if(!b){b=this.createSound(a);this.sounds[a]=b}if(this.prename){this.sounds[this.prename].stop()}b.play();this.prename=a;return this.pretime=Date.now()},createSound:function(b){var a;a=\"resources/sounds/\"+b+\".m4a\";return Ext.Viewport.add({xtype:\"audio\",hidden:true,url:a}",294202,32866,"timerType:\"go\",time:null,timeout:null,",327068,858,327949,245,"Timeout",241023,35,"timeout",328166,298,"b){var e,a,g,f,d,c;if(b==null){b=this.getRecord()",328662,42,"a=b.get(\"status\");if(a===\"open\"){this.setTimerType(\"ready\");this.setTime(0);return}c=b",291886,37,"g=d.findRecord(\"uid\",c);if(g){f=g.get(\"time\");this.setTimerType(g.get(\"type\"))}else{f=b",328624,32,"this.setTimerType(\"go\")}e",328705,47,"e.refreshAll(",328767,33,328802,118,"updateTime:function(d){var b,a,c",328958,61,"a.setText(this.timeText(d));if(this.getTimerType()===\"ready\"){this.setTimeout(false);if(a){a.hide()}b.setIconCls(\"play1\"",329320,33,"if(this.getTimerType()===\"go\"){c=d",329082,32,"c>100){this.setTimeout(true);",329121,66,"this.setTimeout(false);a.setValue(c",329199,47,"c=100-d",329253,50,"c<0){this.setTimeout(true);",329308,45,"this.setTimeout(false);a.setValue(c);return b.setUi(\"normal\")}}}},updateTimeout:function(b,a){if(b&&Ext.isBoolean(a)&&b!==a){return this.onTimeout()}},refreshAll:function(c){var a,b;a=Date.now();b=a-c;return this.setTime(b)",329393,13008,",\"break\"",395881,39,"reak\",a,b)},timeout",395881,38,"timeout\",a,b",342399,49,",\"break\",\"timeou",342446,33,"eady",341868,90,"eady\",config:{store:\"Ready",341993,408,",\"break\"",342304,36,343213,59,"star",342446,101,",\"FvTouch.view.Ready",342546,72,",{xtype:\"ready\"}],control:{runninglist:{refresh:\"onDataviewRefresh\"},ready:{refresh:\"onDataviewRefresh\"}}",316832,34,"this.onDataviewRefresh(this.child(\"runninglist\"));return this.onDataviewRefresh(this.child(\"ready\"))}}},onDataviewRefresh:function(a){if(a.getStore().getCount()){return a.show()}else{return a.hide()}",342619,9700,"g.ctime",352335,42974,"this.initConfig(a);return this.init()},init:Ext.emptyFn",395335,4826,"FvTouch.store.Read",399451,48,"asks\"",399335,36,"open",399378,35,",init:function(){var a;a=Ext.getStore(\"Preselecteds\");a.on({refresh:\"refreshData\",scope:this});return this.refreshData(a)},addOn",277997,32,"setData([a])}else{return this.clearData()}},refreshData:function(b){var c,a;c=b.first();if(c){a=Ext.getStore(\"Tasks\").getById(c.get(\"task_id\"));return this.addOne(a)}else{return this.addOne(null)}",400145,6387,",\"Sounds",406531,136,",\"Read",406665,577]
+["/*022eda3a66e9071b0bedd0435d39bd8357e275fd",42,214314,"if(!b",220795,68,"b.data.uid,title:b.data.title,info:b.data.info",214438,1144,"c){var e,h,f,a,d,i,b,g;g=Ext.getStore(\"Tasks\");b=g.findRecord(\"uid\",c.uid);a=c.title;if(Ext.isEmpty(a)){return false}f=c.info;i=b.get(\"title\");d=b.get(\"info\");if(a===i&&this.isEquals(f,d)){return false}h=this.getDelta(f,d);e={uid:c.uid,\"new\":{},old:{}};if(a!==i){e[\"new\"].title=a;e.old.title=i}if(h.xDelta){e[\"new\"].info=h.xDelta}if(h.yDelta){e.old.info=h.yDelta}return e},doImpl:function(){var c,f,d,a,b,e",215775,71,"e=c[\"new\"].title;if(e!==void 0){a.set(\"title\",e)}f=c[\"new\"].info;if(f){d=this.apply(a.get(\"info\"),f);a.set(\"info\",d)}",215876,43,"f,d,a,b,e",215775,71,"e=c.old.title;if(e!==void 0){a.set(\"title\",e)}f=c.old.info;if(f){d=this.apply(a.get(\"info\"),f);a.set(\"info\",d)}return a.save()},isEquals:function(a,b){if(a===b){return true}else{if(Ext.isPrimitive(a)){return false}else{if(Ext.isArray(a)){return Ext.isArray(b)&&this.isArrayEquals(a,b)}else{if(Ext.isEmpty(a)){return false}else{if(Ext.isDate(a)){return Ext.isDate(b)&&a.getTime()===b.getTime()}else{if(Ext.isFunction(a)){return Ext.isFunction(b)&&a.toString()===b.toString()}else{return Ext.isObject(b)&&this.isObjectEquals(a,b)}}}}}}},isArrayEquals:function(a,d){var b,c;if(a.length===d.length){for(b=0,c=length-1;0<=c?b<c:b>c;0<=c?b++:b--){if(!this.isEquals(a[b],d[b])){return false}}return true}else{return false}},isObjectEquals:function(a,h){var d,e,g,c,f,b;g=Ext.Object.getKeys(a);c=Ext.Object.getKeys(h);e=Ext.Array.merge(g,c);for(f=0,b=e.length;f<b;f++){d=e[f];if(!this.isEquals(a[d],h[d])){return false}}return true},getDelta:function(g,c){var k,i,j,b,h,d,f,a,e;if(!Ext.isObject(g)){g={}}if(!Ext.isObject(c)){c={}}h=Ext.Object.getKeys(g);f=Ext.Object.getKeys(c);j=Ext.Array.merge(h,f);b={};d={};k=false;for(a=0,e=j.length;a<e;a++){i=j[a];if(!this.isEquals(g[i],c[i])){b[i]=g[i];d[i]=c[i];k=true}}if(k){return{xDelta:b,yDelta:d}}else{return{}}},apply:function(c,d){var b,a;c||(c={});for(b in d){a=d[b];if(a===void 0){delete c[b]}else{c[b]=d[b]}}if(Ext.Object.getSize(c)){return c}else{return}",218029,33,"ostpon",214159,57,216131,144,"if(!b",220795,51,"if(!a){return false}",216311,97,"if(",216345,48,"&&Ext.getStore(\"TodosProxy\").last().getId()===a.getId()",216393,1776,"e){var d,b,g,a,f,c;c=Ext.getStore(\"Todos\");g=Ext.getStore(\"Tasks\");b=g.findRecord(\"uid\",e.uid);if(!b",220795,51,"if(!a||",218299,59,"f=Ext.getStore(\"TodosProxy\");d=f.first();if(d&&a.getId()===d.getId()){return false}return{uid:e",218370,195,"getId()",218572,369,"getId()",218572,71,"===e",217520,39,219062,321,"if(!b",220795,51,219419,1352,"!b",218317,41,221134,36,220846,3610,"var b,c;if(Ext.isEmpty(a.title)){return false}b=",224488,69,";c=this.normalize(a.info);if(c){b.info=c}return b",224557,166,"info:e.info",224722,331,",normalize:function(c){var b,a;for(b in c){a=c[b];if(a===void 0){delete c[b]}}if(Ext.Object.getSize(c)){return c}else{return}",225052,13786,",tagsButton:\"mytoolbar #tags",238837,53,",tags:\"onTags",238889,154,",onTags",238906,56,"Tags\").show()},launch:function(){var a;a=",238925,37,"Tags\");a.on({scope:this,change:\"changeTagsBadgeText\"});return this.changeTagsBadgeText(a.getTag())},changeTagsBadgeText:function(a){return this.getTagsButton().setBadgeText(a",239984,36,"AddTask",238719,66,239150,542,"f){var b,e,a,d,c;if(f){e=Ext.getStore(\"Tasks\");d=e.findRecord(\"uid\",f);if(d){c=Ext.clone(d.getData())}}else{a=",238925,37,"Tags\").getTag();if(a){c={info:{tags:[a]}}}}b=this.getPanel();if(!b",240572,33,"b)}if(c){b.setValues(c)}return b",239881,880,"controller.Tags",238719,41,"],config:{tag:window.localStorage.getItem(\"tag\"),views:[\"Tags\"],refs:{panel:{selector:\"tagspanel\",xtype:\"tags",240155,42,"hange:\"onChange\"}}},onChange:function(a,b){return this.setTag(b.tag)},show:function(){var a,b;b=this.getTags();if(Ext.Object.getSize(b)<=1){return}",240361,69,"if(!a.getParent()){Ext.Viewport.add(a)}a.setTags(this.getTags());a.setValue({tag:this.getTag()});return a.show()},getTags:function(){var a,b,c;c=Ext.getStore(\"Tasks\");b={\"\":0};a=this.getTag();if(!Ext.isEmpty(a)){b[a]=0}c.each(function(g){var h,d,j,f,i,e;if(g.data.info&&Ext.isArray(g.data.info.tags)&&g.data.info.tags.length){i=g.data.info.tags;e=[];for(j=0,f=i.length;j<f;j++){d=i[j];h=b[d];e.push(b[d]=h?h+1:1)}return e}else{return b[\"\"]=b[\"\"]+1}});return b",286470,32,"updateTag(this.getTag())},updateTag:function(a){var b;if(Ext.isEmpty(a)){window.localStorage.removeItem(\"tag\")}else{window.localStorage.setItem(\"tag\",a)}b=",238925,37,"TaskFilter\");if(b){b.setFilterFn(this.generateFilterFn(a))}return this.fireEvent(\"change\",a)},generateFilterFn:function(a){if(Ext.isEmpty(a)){return function(){return true}}else{return function(b){return b.data.info&&Ext.isArray(b.data.info.tags)&&Ext.Array.contains(b.data.info.tags,a",343711,34,240768,142,"itemId:\"add\"},{iconCls:\"tags\",itemId:\"tags\"},{iconCls:\"reply\",itemId",240947,58,"#add",317023,41,"add\")}},\"#undo",317023,41,"undo\")}},\"#tags",317023,41,"tags\")}}}",218029,32,241162,3971,"FvTouch.field.Tags",233524,35,"agsfield\",applyValue:function(a){if(Ext.isArray(a)){return a}else{if(Ext.isEmpty(a)){return[]}else{return[a.toString()]}",230815,32,";if(!Ext.isArray(b)){Ext.Logger.error(\"value of tagsfield should be an array\")}a=b.join(\", \");return this.callParent([a])},getValue:function(){var a,b;b=this.callParent();a=Ext.Array.map(b.split(\",\"),function(c){return c.trim()});a=Ext.Array.filter(a,function(c){return !Ext.isEmpty(c)});a=Ext.Array.unique(a);if(a.length){return a}else{return}}});Ext.define(\"Ext.Media",277355,33,"media\",config:{url:\"\",enableControls:Ext.os.is.Android?false:true,autoResume:false,autoPause:true,preload:true,loop:false,media:null,volume:1,muted:false",230356,52,"on({scope:a,activate:a.onActivate,deactivate:a.onDeactivate});a.addMediaListener({canplay:\"onCanPlay\",play:\"onPlay\",pause:\"onPause\",ended:\"onEnd\",volumechange:\"onVolumeChange\",timeupdate:\"onTimeUpdate\"})},addMediaListener:function(d,b){var c=this,e=c.media.dom,f=Ext.Function.bind;if(!Ext.isObject(d)){var a=d;d={};d[a]=b}Ext.Object.each(d,function(h,g){if(typeof g!==\"function\"){g=c[g]}if(typeof g==\"function\"){g=f(g,c);e.addEventListener(h,g)}})},onPlay:function(){this.fireEvent(\"play\",this)},onCanPlay:function(){this.fireEvent(\"canplay\",this)},onPause:function(){this.fireEvent(\"pause\",this,this.getCurrentTime())},onEnd:function(){this.fireEvent(\"ended\",this,this.getCurrentTime())},onVolum",193887,35,"volumechange\",this,this.media.dom.volume)},onTimeUpdate:function(){this.fireEvent(\"timeupdate\",this,this.getCurrentTime())},isPlaying:function(){return !Boolean(this.media.dom.paused)},onActivate:function(){var a=this;if(a.getAutoResume()&&!a.isPlaying()){a.play()}},onDeactivate:function(){var a=this;if(a.getAutoResume()&&a.isPlaying()){a.pause()}},updateUrl:function(a){var b=this.media.dom;b.src=a;if(\"load\" in b){b.load()}if(this.isPlaying()){this.play()}},updateEnableControls:function(a){this.media.dom.controls=a?\"controls\":false},updateLoop:function(a){this.media.dom.loop=a?\"loop\":false},play:function(){var a=this.media.dom;if(\"play\" in a){a.play();setTimeout(function(){a.play()},10)}},pause:function(){var a=this.media.dom;if(\"pause\" in a){a.pause()}},toggle:function(){if(this.isPlaying()){this.pause()}else{this.play()}},stop:function(){var a=this;a.setCurrentTime(0);a.fireEvent(\"stop\",a);a.pause()},updateVolume:function(a){this.media.dom.volume=a},updateMuted:function(a){this.fireEvent(\"mutedchange\",this,a);this.media.dom.muted=a},getCurrentTime:function(){return this.media.dom.currentTime},setCurrentTime:function(a){this.media.dom.currentTime=a;return a},getDuration:function(){return this.media.dom.duration",375775,32,"Ext.Object.each(event,function(c,b){if(typeof b!==\"function\"){b=a[b]}if(typeof b==\"function\"){b=bind(b,a);dom.removeEventListener(c,b)}})",245117,43032,"Ext.getStore(\"TasksProxy\").refresh();",288149,1939,290095,92,";",294142,44,"TaskFilter\").on({update:\"refresh\",scope:this",288126,44,290229,337,"timeout:\"onTimeout",290564,70,287993,36,290095,40,290694,857,290095,48,293790,62,";",294142,44,"TaskFilter\").on({update:\"refresh\",scope:this",293850,56,291722,144,"b,c){var a,g,f,e,d;d=b.get(\"uid\");e=Ext.getStore(\"Timers\");g=e.findRecord(\"uid\",d);if(g){f=g",291956,38,"e.add({uid:d,time:b.get(\"starttime\"),type:\"go\"});f=\"break\"}e.add({uid:d,time:Date.now(),type:f});if(!c.getTimeout()){a=",238925,37,"Sounds\");if(f===\"go\"){a.play(\"starttask\")}else{a.play(\"break\")}}return c.updateTimer(b)},onTimeout:function(b,c){var a,d;d=c.getTimerType();a=",238925,37,"Sounds\");if(d===\"go\"){return a.play(\"break\")}else{return a.play(\"starttask\")}},taskdone",292464,62,292186,1549,290095,48,293790,62,";",294142,44,"TaskFilter\").on({update:\"refresh\",scope:this",293850,373,"Audio\",{extend:\"Ext.Media\",xtype:\"audio\"",76282,32,"audio\"},onActivat",230367,39,"if(Ext.os.is.Phone){a.element.show()}},onDeactivat",230367,39,"if(Ext.os.is.Phone){a.element.hide()}},template:[{reference:\"media\",preload:\"auto\",tag:\"audio\",cls:Ext.baseCSSPrefix+\"component\"}]",290254,34,"Sounds",238719,42,"Ext.Audio\",",293600,34,"sounds:{",288011,66,"playIfRelated\",undo:function(){return this.play(\"undo\")},scope:this})},createTryPlayFun:function(a,d,c){var b;if(c==null){c=3000}b=new RegExp(\"^\"+a+\"[1-\"+d+\"]$\");return function(g,e){var f;if(e<c&&b.test(g)){f=parseInt(g.substr(a.length));if(f<d){f=f+1}return a+f}else{return a+\"1\"}}},createPreselectTryPlayFun:function(c){var a,b;b=/^preselect[1-8]$/;a=\"preselect\";return function(f,d){var e;if(d<3000&&b.test(f)){e=parseInt(f.substr(9));if(c&&e>1){e=e-1}else{if(e<8){e=e+1}}return a+e}else{return a+\"1\"}}},play",291677,45,"a===\"taskdone\"){if(!this._taskdoneTryPlayFun){this._taskdoneTryPlayFun=this.createTryPlayFun(\"taskdone\",8)}return this.tryPlay(this._taskdoneTryPlayFun)}else{if(",293922,32,"play(\"postponetask\")}else{if(a===\"starttask\"){return this.play(\"starttask\")}else{if(a===\"deletetask\"){return this.play(\"deletetask\")}else{if(a===\"addtask\"){return this.play(\"addtask\")}else{if(a===\"edittask\"){return this.play(\"edittask\")}else{if(a===\"preselect\"){return this.tryPlay(this.createPreselectTryPlayFun(b.getCdata().preselected))}}}}}}}},tryPlay:function(a){var b;b=a(this.prename,Date.now()-this.pretime);if(b){return this.play(b)}},play:function(a){var b;b=this.sounds[a];if(!b){b=this.createSound(a);this.sounds[a]=b}if(this.prename){this.sounds[this.prename].stop()}b.play();this.prename=a;return this.pretime=Date.now()},createSound:function(b){var a;a=\"resources/sounds/\"+b+\".m4a\";return Ext.Viewport.add({xtype:\"audio\",hidden:true,url:a}",294202,22280,",\"FvTouch.field.Tags\"],config:{values:void 0,",316492,337,",",316770,34,"agsfield\",name:\"tags\",label:\"Tags",316825,267,"applyValues:function(a){if(a===void 0||a===null){return a}else{return Ext.apply(a.info||{},{title:a.title})}},getValues:function(){var b,a;a=",317120,35,";b=a.title;delete a.title;return{title:b,info:a}},update",317160,820,"if(a){this.setUid(a.uid",107504,55,318052,9016,"timerType:\"go\",time:null,timeout:null,",327068,858,327949,245,"Timeout",241023,35,"timeout",328166,298,"b){var e,a,g,f,d,c;if(b==null){b=this.getRecord()",328662,42,"a=b.get(\"status\");if(a===\"open\"){this.setTimerType(\"ready\");this.setTime(0);return}c=b",291886,37,"g=d.findRecord(\"uid\",c);if(g){f=g.get(\"time\");this.setTimerType(g.get(\"type\"))}else{f=b",328624,32,"this.setTimerType(\"go\")}e",328705,47,"e.refreshAll(",328767,33,328802,118,"updateTime:function(d){var b,a,c",328958,61,"a.setText(this.timeText(d));if(this.getTimerType()===\"ready\"){this.setTimeout(false);if(a){a.hide()}b.setIconCls(\"play1\"",329320,33,"if(this.getTimerType()===\"go\"){c=d",329082,32,"c>100){this.setTimeout(true);",329121,66,"this.setTimeout(false);a.setValue(c",329199,47,"c=100-d",329253,50,"c<0){this.setTimeout(true);",329308,45,"this.setTimeout(false);a.setValue(c);return b.setUi(\"normal\")}}}},updateTimeout:function(b,a){if(b&&Ext.isBoolean(a)&&b!==a){return this.onTimeout()}},refreshAll:function(c){var a,b;a=Date.now();b=a-c;return this.setTime(b)",329393,13008,",\"break\"",395881,39,"reak\",a,b)},timeout",395881,38,"timeout\",a,b",342399,49,",\"break\",\"timeou",342446,33,"eady",341868,90,"eady\",config:{store:\"Ready",341993,408,",\"break\"",342304,36,343213,59,"star",342446,101,",\"FvTouch.view.Ready",342546,72,",{xtype:\"ready\"}],control:{runninglist:{refresh:\"onDataviewRefresh\"},ready:{refresh:\"onDataviewRefresh\"}}",316832,34,"this.onDataviewRefresh(this.child(\"runninglist\"));return this.onDataviewRefresh(this.child(\"ready\"))}}},onDataviewRefresh:function(a){if(a.getStore().getCount()){return a.show()}else{return a.hide()}",342619,9700,"g.ctime",352335,42974,"this.initConfig(a);return this.init()},init:Ext.emptyFn",395335,3269,"Task",399446,53,"ask",399502,57,"controller.TaskFilte",238718,51,"store.TasksProxy\"],config:{filterFn:function(){return true}},updateFilterFn:function(a){var b;b=Ext.getStore(\"TasksProxy\");if(b){b.clearFilter(true);b.setFilters([{filterFn:a}]);",288156,37,"return this.fireEvent(\"update\"",393468,34,399443,62,"filters:[{filterFn:function(b){var a,c;c=Ext.getStore(\"TasksProxy\");a=c.getById(b.get(\"task_id\"));return !Ext.isEmpty(a)}}]",399504,61,398604,511,"d){var a,c,b;b=Ext.getStore(\"TodosProxy\");if(b.getCount()&&b.getById(d.getId())&&(d.data.preselected||d.getId()===b.first().getId())){return true}else{c=Ext.getStore(\"Tasks\");a=c.getById(d.get(\"task_id\"));return a&&a.get(\"status\")===\"running\"}}}]",399504,61,399225,217,399565,257,"Proxy",399822,339,"FvTouch.store.Read",399451,48,"asks\"",399335,36,"open",399378,35,",init:function(){var a;a=Ext.getStore(\"Preselecteds\");a.on({refresh:\"refreshData\",scope:this});return this.refreshData(a)},addOn",277997,32,"setData([a])}else{return this.clearData()}},refreshData:function(b){var c,a;c=b.first();if(c){a=Ext.getStore(\"Tasks\").getById(c.get(\"task_id\"));return this.addOne(a)}else{return this.addOne(null)}",400145,4244,"info",404379,1056,"picker.Slot\",{",345104,38,"pickerslot\",alternateClassName:\"Ext.Picker.Slot",311588,33,"data.Store\",\"Ext.Component\",\"Ext.data.StoreManager\"],isSlot:true,config:{title:null,showTitle:true,cls:Ext.baseCSSPrefix+\"picker-slot\",name:null,value:null,flex:1,align:\"left\",displayField:\"text\",valueField:\"value\",scrollable:{direction:\"vertical\",indicators:false,momentumEasing:{minVelocity:2},slotSnapEasing:{duration:100}}",270072,38,"Index=0",270141,34,"Title:function(a){if(a){a=Ext.create(\"Ext.Component\",{cls:Ext.baseCSSPrefix+\"picker-slot-title\",docked:\"top\",html:a})}return a",244780,45,";this.setupBar()}if(a){this.remove(a)}},updateShowTitle:function(a){var b=this.getTitle();if(b){b[a?\"show\":\"hide\"]();this.setupBar()}},updateDisplayField:function(a){this.setItemTpl('<div class=\"'+Ext.baseCSSPrefix+'picker-item {cls} <tpl if=\"extra\">'+Ext.baseCSSPrefix+'picker-invalid</tpl>\">{'+a+\"}</div>\")},updateAlign:function(a,c){var b=this.element;b.addCls(Ext.baseCSSPrefix+\"picker-\"+a);b.removeCls(Ext.baseCSSPrefix+\"picker-\"+c)},applyData:function(d){var f=[],c=d&&d.length,a,b,e;if(d&&Ext.isArray(d)&&c){for(a=0;a<c;a++){b=d[a];e={};if(Ext.isArray(b)){e[this.valueField]=b[0];e[this.displayField]=b[1]}else{if(Ext.isString(b)){e[this.valueField]=b;e[this.displayField]=b}else{if(Ext.isObject(b)){e=b}}}f.push(e)}}return d},updateData:function(",338813,46,"fields:[\"text\",\"value\"],data:a}))",304269,42,"var a=this.getScrollable().getScroller();this.on({scope:this,painted:\"onPainted\",itemtap:\"doItemTap\"});a.on({scope:this,scrollend:\"onScrollEn",119325,32,"setupBar()},getPicker:function(){if(!this.picker){this.picker=this.getParent()}return this.picker},setupBa",179886,32,"return}var a=this.element,e=this.innerElement,f=this.getPicker(),g=f.bar,k=this.getValue(),b=this.getShowTitle(),j=this.getTitle(),h=this.getScrollable(),d=h.getScroller(),c=0,l,i;l=g.getHeight();if(b&&j){c=j.element.getHeight()}i=Math.ceil((a.getHeight()-c-l)/2);e.setStyle({padding:i+\"px 0 \"+(i)+\"px\"});d.refresh();d.setSlotSnapSize(l);this.setValue(k)},doItemTap:function(d,a,c,f){var b=this;b.selectedIndex=a;b.selectedNode=c;b.scrollToItem(c,true);b.fireEvent(\"slotpick\",b,b.getValue(true),b.selectedNode)},scrollToItem:function(e,d){var h=e.getY(),c=e.parent(),f=c.getY(),b=this.getScrollable(),a=b.getScroller(),g;g=h-f;a.scrollTo(0,g,d)},onScrollEnd:function(b,a,g){var f=this,d=Math.round(g/f.picker.bar.getHeight()),c=f.getViewItems(),e=c[d];if(e){f.selectedIndex=d;f.selectedNode=e;f.fireEvent(\"slotpick\",f,f.getValue(),f.selectedNode)}},getValue:function(c){var b=this.getStore(),a,d;if(!b){return}if(!this.rendered||!c){return this._value}if(this._value===false){return null}a=b.getAt(this.selectedIndex);d=a?a.get(this.getValueField()):null;return d},setValue:function(f){if(!Ext.isDefined(f)){return}if(!this.rendered||!f){this._value=f;return}var b=this.getStore(),a=this.getViewItems(),d=this.getValueField(),c,e;c=b.find(d,f);if(c!=-1){e=Ext.get(a[c]);this.selectedIndex=c;this.scrollToItem(e);this._value=f}},setValueAnimated:function(f){if(!f){return}if(!this.rendered){this._value=f;return}var b=this.getStore(),a=this.getViewItems(),d=this.getValueField(),c,e;c=b.find(d,f);if(c!=-1){e=Ext.get(a[c]);this.selectedIndex=c;this.scrollToItem(e,{duration:100});this._value=f}}});Ext.define(\"Ext.picker.Picker",241692,36,"picker\",alternateClassName:\"Ext.Picker\",requires:[\"Ext.picker.Slot\",\"Ext.Toolbar\",\"Ext.data.Model\"],isPicker:true",76282,32,"picker\",doneButton:true,cancelButton:true,useTitles:false,slots:null,value:null,height:220,layout:{type:\"hbox\",align:\"stretch\"},centered:false,left:0,right:0,bottom:0,defaultType:\"pickerslot\",toolbar:true},initElement",347935,39,"var b=this,a=Ext.baseCSSPrefix,c=this.innerElement;this.mask=c.createChild({cls:a+\"picker-mask\"});this.bar=this.mask.createChild({cls:a+\"picker-bar\"});b.on({scope:this,delegate:\"pickerslot\",slotpick:\"onSlotPick\"});b.on({scope:this,show:\"onShow\"})},applyToolb",305028,33,"Ext.applyIf(a,{docked:\"top\"});return Ext.factory(a,\"Ext.TitleBar\",this.getToolbar())},updateToolbar",237153,56,"applyDoneButton:function(a){if(a){if(Ext.isBoolean(a)){a={}}if(typeof a==\"string\"){a={text:a}}Ext.applyIf(a,{ui:\"action\",align:\"right\",text:\"Done\"})}return Ext.factory(a,\"Ext.Button\",this.getDoneButton())},updateDoneButton:function(c,a){var b=this.getToolbar();if(c){b.add(c);c.on(\"tap\",this.onDoneButtonTap,this)}else{if(a){b.remove(a)}}},applyCancelButton:function(a){if(a){if(Ext.isBoolean(a)){a={}}if(typeof a==\"string\"){a={text:a}}Ext.applyIf(a,{align:\"left\",text:\"Cancel\"})}return Ext.factory(a,\"Ext.Button\",this.getCancelButton())},updateCancelButton:function(b,a){var c=this.getToolbar();if(b){c.add(b);b.on(\"tap\",this.onCancelButtonTap,this)}else{if(a){c.remove(a)}}},updateUseTitles:function(d){var f=this.getInnerItems(),e=f.length,a=Ext.baseCSSPrefix+\"use-titles\",c,b;if(d",229600,40,"for(c=0;c<e;c++){b=f[c];if(b.isSlot){b.setShowTitle(d)}}},applySlots:function(b){if(b){var c=b.length,a;for(a=0;a<c;a++){b[a].picker=this}}return b},updateSlots:function(a){var b=Ext.baseCSSPrefix,c;this.removeAll();if(a){this.add(a)}c=this.getInnerItems();if(c.length>0){c[0].addCls(b+\"first\");c[c.length-1].addCls(b+\"last\")}this.updateUseTitles(this.getUseTitles())},onDoneButtonTap:function(){var a=this._value,b=this.getValue(true);if(b!=a){this.fireEvent(\"change\",this,b)}this.hide()},onCancelButtonTap:function(){this.fireEvent(\"cancel\",this);this.hide()},onSlotP",213693,32,"pick\",this,this.getValue(true),a)},onShow:function(){if(!this.isHidden()){this.setValue(this._value)}},setValue:function(k,a){var f=this,d=f.getInnerItems(),e=d.length,j,h,c,b,g;if(!k){k={};for(b=0;b<e;b++){k[d[b].config.name]=null}}for(j in k){g=k[j];for(b=0;b<d.length;b++){c=d[b];if(c.config.name==j){h=c;break}}if(h){if(a){h.setValueAnimated(g)}else{h.setValue(g)}}}f._values=f._value=k;return f},setValueAnimated:function(a){this.setValue(a,true)},getValue:function(c){var b={},a=this.getItems().items,f=a.length,e,d;if(c){for(d=0;d<f;d++){e=a[d];if(e&&e.isSlot){b[e.getName()]=e.getValue(c)}}this._values=b}return this._values",261365,38,"Value(",69768,38,");Ext.destroy(this.mask,this.bar)",316302,42,"Tags\",{extend:\"Ext.picker.Picker\",xtype:\"tagspanel\",config:{tags:{},hideOnMaskTap:true},updateTags:function(c){var d,b,a;d=(function(){var e;e=[];for(b in c){a=c[b];e.push({text:b,value:a})}return e})();d=Ext.Array.sort(d,function(e,f){if(Ext.isEmpty(e.text)){return -1}else{if(Ext.isEmpty(f.text)){return 1}else{return f.value-e.value}}});return this.setSlots({name:\"tag\",data:Ext.Array.map(d,function(e){return{text:e.text,value:e.text}})})",405415,1032,"askFilter",406443,89,",\"Sounds\",\"Tags",406531,80,"TasksProxy\",\"TodosProxy",406608,38,"History\",\"Read",406665,577]
2  deltas/app.js/86012c11d656787b98b88a7b56886b6d70dd5e4d.json
View
@@ -1 +1 @@
-["/*e98e3e743a2813f1f95750e291a0b5256828bd6a",42,214815,"Id(",216879,122,220619,41,218698,82,215107,49,215167,142,"Id(",219501,178,"Edit",214160,56,215552,129,"(\"title\")",215693,746,"uid:d.uid,",216439,225,"if(g.task.uid){",218778,33,"a=e.findRecord(\"task_id\",c.getId());if(a.get(\"order\")!==b){console.info(this);Ext.Logger.error(\"different order when do postponetask\")}}else{",216664,53,"}",216718,156,"Id(",216879,347,"if(g.task.uid){",218778,33,"a=e.findRecord(\"task_id\",c.getId());if(a.getId()!==e.last().getId()){console.info(this);Ext.Logger.error(\"todo is not the last one when undo postponetask\")}}else{",217226,38,"}",216718,42,"g",220767,32,217340,99,"Id(",219501,122,217566,421,220027,35,",doImpl:function(){var f,",218012,58,"f=this.getCdata();b=d.findRecord(\"uid\",f",216287,42,"e=a.get(\"preselected\");if(Ext.isBoolean(f.preselected)&&f.preselected!==e){console.info(this);Ext.Logger.error(\"different preselected value when do preselect\")}a.set(\"preselected\",!",218192,49,"var f,",218012,58,"f=this.getCdata();b=d.findRecord(\"uid\",f",216287,42,"e=a.get(\"preselected\");if(Ext.isBoolean(f.preselected)&&f.preselected===e){console.info(this);Ext.Logger.error(\"same preselected value when undo preselect\")}a.set(\"preselected\",!e);a.save(",224378,33,218277,239,"getId()",218523,380,"getId()",218910,100,"Id(",216879,122,220619,41,219178,318,"Id(",219501,446,"getId()",219954,53,220028,58,"e,b,d,a,c;d=Ext.getStore(\"Tasks\");e=this.getCdata();b=d.findRecord(\"uid\",e.task.uid);b.set(\"status\",\"running\");b",220204,34,"b.save();c=Ext.getStore(\"Todos\");a=c.findRecord(\"task_id\",b.getId());if(!e",217035,39,"true);a.save();return c.sync()}},un",220064,128,220766,101,"getId()",220874,52,";a.save();e.sync()}b=h.todo.order;if(b===void 0||b===null){return}",220942,105,"Id(",221052,49,"Id(",221106,17929,"e){var a,d,c,b;if(e){",239705,48,"if(c){b=Ext.clone(c.getData())}}",239043,59,"if(b){a.setValues(b",239100,1283,240941,259,"this.fireEvent(\"do\",c",241259,139,"this.fireEvent(\"undo\",c",241459,311,257566,73,241770,3157,"Media",240409,33,"media\",config:{url:\"\",enableControls:Ext.os.is.Android?false:true,autoResume:false,autoPause:true,preload:true,loop:false,media:null,volume:1,muted:false",306095,52,"on({scope:a,activate:a.onActivate,deactivate:a.onDeactivate});a.addMediaListener({canplay:\"onCanPlay\",play:\"onPlay\",pause:\"onPause\",ended:\"onEnd\",volumechange:\"onVolumeChange\",timeupdate:\"onTimeUpdate\"})},addMediaListener:function(d,b){var c=this,e=c.media.dom,f=Ext.Function.bind;if(!Ext.isObject(d)){var a=d;d={};d[a]=b}Ext.Object.each(d,function(h,g){if(typeof g!==\"function\"){g=c[g]}if(typeof g==\"function\"){g=f(g,c);e.addEventListener(h,g)}})},onPlay:function(){this.fireEvent(\"play\",this)},onCanPlay:function(){this.fireEvent(\"canplay\",this)},onPause:function(){this.fireEvent(\"pause\",this,this.getCurrentTime())},onEnd:function(){this.fireEvent(\"ended\",this,this.getCurrentTime())},onVolum",193887,35,"volumechange\",this,this.media.dom.volume)},onTimeUpdate:function(){this.fireEvent(\"timeupdate\",this,this.getCurrentTime())},isPlaying:function(){return !Boolean(this.media.dom.paused)},onActivate:function(){var a=this;if(a.getAutoResume()&&!a.isPlaying()){a.play()}},onDeactivate:function(){var a=this;if(a.getAutoResume()&&a.isPlaying()){a.pause()}},updateUrl:function(a){var b=this.media.dom;b.src=a;if(\"load\" in b){b.load()}if(this.isPlaying()){this.play()}},updateEnableControls:function(a){this.media.dom.controls=a?\"controls\":false},updateLoop:function(a){this.media.dom.loop=a?\"loop\":false},play:function(){var a=this.media.dom;if(\"play\" in a){a.play();setTimeout(function(){a.play()},10)}},pause:function(){var a=this.media.dom;if(\"pause\" in a){a.pause()}},toggle:function(){if(this.isPlaying()){this.pause()}else{this.play()}},stop:function(){var a=this;a.setCurrentTime(0);a.fireEvent(\"stop\",a);a.pause()},updateVolume:function(a){this.media.dom.volume=a},updateMuted:function(a){this.fireEvent(\"mutedchange\",this,a);this.media.dom.muted=a},getCurrentTime:function(){return this.media.dom.currentTime},setCurrentTime:function(a){this.media.dom.currentTime=a;return a},getDuration:function(){return this.media.dom.duration",358354,32,"Ext.Object.each(event,function(c,b){if(typeof b!==\"function\"){b=a[b]}if(typeof b==\"function\"){b=bind(b,a);dom.removeEventListener(c,b)}})",244907,12659,257639,11833,270445,7712,296617,35,240410,93,"striped:false,active:false,text:\"\",html:'<div class=\"x-progress-text x-progress-text-back\"></div>\\n<div class=\"bar\">\\n <div class=\"x-progress-text\"></div>\\n</div>',value:0",274687,42,"return this.on({painted:\"onResize\",resize:\"onResize\",scope:this})},updateValue:function(c,a){var b;if(c===a){return}if(c<0){c=0}if(c>100){c=100}b=\"\"+c+\"%\";return this.element.down(\"* .bar\").setWidth(b",240697,221,",updateText:function(b,a){if(b===a){return}return Ext.Array.each(this.element.query(\".x-progress-text\"),function(c){return Ext.fly(c).setHtml(b)})},onResize:function(){return this.element.down(\".bar .x-progress-text\").setWidth(this.element.getWidth())}",274346,36,"List\",{extend:",326937,32,",updateBaseCls:function(a){var b=this;b.itemClsShortCache=a+\"-item\";b.headerClsShortCache=a+\"-header\";b.headerClsCache=\".\"+b.headerClsShortCache;b.headerItemClsShortCache=a+\"-header-item\";b.footerClsShortCache=a+\"-footer-item\";b.footerClsCache=\".\"+b.footerClsShortCache;b.labelClsShortCache=a+\"-item-label\";b.labelClsCache=\".\"+b.labelClsShortCache;b.disclosureClsShortCache=a+\"-disclosure\";b.disclosureClsCache=\".\"+b.disclosureClsShortCache;b.iconClsShortCache=a+\"-icon\";b.iconClsCache=\".\"+b.iconClsShortCache;this.callParent(arguments)},hiddenDisplayCache:Ext.baseCSSPrefix+\"hidden-display\",getItemElementConfig:function(e,h){var f=this,c=f.dataview,g=c.getItemCls(),b=f.itemClsShortCache,d,a;if(g){b+=\" \"+g}d={cls:b,children:[{cls:f.labelClsShortCache,html:c.getItemTpl().apply(h)}]};if(c.getIcon()){a=h.iconSrc;d.children.push({cls:f.iconClsShortCache,style:\"background-image: \"+a?'url(\"'+newSrc+'\")':\"\"})}if(c.getOnItemDisclosure()){d.children.push({cls:f.disclosureClsShortCache+\" \"+((h[c.getDisclosureProperty()]===false)?f.hiddenDisplayCache:\"\")})}return d},updateListItem:function(d,k){var h=this,e=h.dataview,j=Ext.fly(k),g=j.down(h.labelClsCache,true),c=d.data,b=e.getDisclosureProperty(),a=c&&c.hasOwnProperty(b),l=c&&c.hasOwnProperty(\"iconSrc\"),f,i;g.innerHTML=e.getItemTpl().apply(c);if(a){f=j.down(h.disclosureClsCache);f[c[b]===false?\"removeCls\":\"addCls\"](h.hiddenDisplayCache)}if(e.getIcon()){i=j.down(h.iconClsCache,true);i.style.backgroundImage=l?'url(\"'+l+'\")':\"\"}},doRemoveHeaders:function(){var e=this,a=e.headerItemClsShortCache,b=e.element.query(e.headerClsCache),f=b.length,c=0,d;for(;c<f;c++){d=b[c];Ext.fly(d.parentNode).removeCls(a);Ext.removeNode(d)}},doRemoveFooterCls:function(){var d=this,c=d.footerClsShortCache,a=d.element.query(d.footerClsCache),e=a.length,b=0;for(;b<e;b++){Ext.fly(a[b]).removeCls(c)}},doAddHeader:function(b,a){b=Ext.fly(b);if(a){b.insertFirst(Ext.Element.create({cls:this.headerClsShortCache,html:a}))}b.addCls(this.headerItemClsShortCache)},destroy:function(){this.doRemoveHeaders();",277433,33,"FvTouch.dataview.element.List\",{override:\"Ext.dataview.element.List\",updateListItem:function(d,k){var h=this,e=h.dataview,j=Ext.fly(k),g=j.down(h.labelClsCache,true),c=e.prepareData(d.getData(true),e.getStore().indexOf(d),d),b=e.getDisclosureProperty(),a=c&&c.hasOwnProperty(b),l=c&&c.hasOwnProperty(\"iconSrc\"),f,i;g.innerHTML=e.getItemTpl().apply(c);if(a){f=j.down(h.disclosureClsCache);f[c[b]===false?\"removeCls\":\"addCls\"](h.hiddenDisplayCache)}if(e.getIcon()){i=j.down(h.iconClsCache,true);i.style.backgroundImage=l?'url(\"'+l+'\")':\"\"}}});Ext.define(\"Ext.dataview.IndexBa",168110,51,"IndexBar\"",244319,36,"indexbar\",direction:\"vertical\",letters:[\"A\",\"B\",\"C\",\"D\",\"E\",\"F\",\"G\",\"H\",\"I\",\"J\",\"K\",\"L\",\"M\",\"N\",\"O\",\"P\",\"Q\",\"R\",\"S\",\"T\",\"U\",\"V\",\"W\",\"X\",\"Y\",\"Z\"],ui:\"alphabet\",listPrefix:null},itemCls:Ext.baseCSSPrefix+\"\",updateDirection:function(a,c){var b=this.getBaseCls();this.element.replaceCls(b+\"-\"+c,b+\"-\"+a",168795,49,"wrapper\",classList:[\"x-centered\",\"x-indexbar-wrapper\"]",129959,32,"updateLetters:function(c){this.innerElement.setHtml(\"\");if(c){var b=c.length,a;for(a=0;a<b;a++){this.innerElement.createChild({html:c[a]})}}},updateListPrefix:function(a){if(a&&a.length){this.innerElement.createChild({html:a},0)}",274687,47,"innerElement.on(",16597,35,"end:this.onTouchEnd,touchmove:this.onTouchMove,scope:this})},onTouchStart:function(b,a){b.stopPropagation();this.innerElement.addCls(this.getBaseCls()+\"-pressed\");this.pageBox=this.innerElement.getPageBox();this.onTouchMove(b)},onTouchEnd:function(b,a){this.innerElement.removeCls(this.getBaseCls()+\"-pressed\")},onTouchMove:function(c){var a=Ext.util.Point.fromEvent(c),b,d=this.pageBox;if(!d){d=this.pageBox=this.el.getPageBox()}if(this.getDirection()===\"vertical\"){if(a.y>d.bottom||a.y<d.top){return}b=Ext.Element.fromPoint(d.left+(d.width/2),a.y)}else{if(a.x>d.right||a.x<d.left){return}b=Ext.Element.fromPoint(a.x,d.top+(d.height/2))}if(b){this.fireEvent(\"index\",this,b.dom.innerHTML,b)}},destroy:function(){var c=this,d=Array.prototype.slice.call(c.innerElement.dom.childNodes),b=d",277386,41,"d[a])}",94954,33,";Ext.define(\"Ext.dataview.ListItemHeade",240408,34,"listitemheader\"",244319,36,"list-header\",docked:\"top\"",269452,993,278161,1604,"b.id===\"historyview\"?\"history",279763,236,"3],preselected:a[0],running:a[1],history:a[2",280030,1023,"],cmdUndoListeners:[]",281502,981,",pullup:\"onPullup",282482,195,"\"refresh\",undo:\"refresh\",scope:this,order:\"before\"})},refresh",282845,38,"Proxy\").refresh(",282831,1663,",onPullup",238249,56,"Main\").gotoPreselectedView",238383,37,"PreselectedList",238062,65,"Manager\"]",282613,64,"\"refresh\",undo:\"refresh\",scope:this,order:\"before\"})},refresh",282845,33,"Preselecteds\").refresh",238383,37,"RunningList",238062,65,"Manager\",\"Ext.ActionSheet\"],relatedtasks:[\"deletetask\",\"edittask\",\"postponetask\",\"starttask\",\"taskdone",282272,33,"runningview:\"runningview\"},control:{runningview:{\"break\":\"onBreak\",timeout:\"onTimeou",282412,71,282594,36,282637,49,"f){var e,a,d,c,b;c=f.getType();d=Ext.getStore(\"Timers\");if(Ext.Array.contains([\"deletetask\",\"postponetask\",\"taskdone\"],c)){b=f.getCdata().task.uid;a=[];d.each(function(g){if(g.get(\"uid\")===b){return a.push(g)}});if(a.length){return d.remove(a)}}else{if(c===\"starttask\"){e=f.getCdata();b=e.task.uid;return d.add({uid:b,time:f.getCtime(),type:\"go\"})}}},undo:function(h){var g,b,a,f,e,d,c;d=h.getType();e=Ext.getStore(\"Timers\");if(Ext.Array.contains([\"deletetask\",\"postponetask\",\"taskdone\"],d)){g=h.getCdata();if(g.task.status===\"running\"){c=h.getCdata().task.uid;f=Ext.getStore(\"Tasks\");a=f.findRecord(\"uid\",c);return e.add({uid:c,time:a.get(\"starttime\"),type:\"go\"})}}else{if(d===\"starttask\"){g=h.getCdata();c=g.task.uid;b=[];e.each(function(i){if(i.get(\"uid\")===c){return b.push(i)}});if(b.length){return e.remove(b)}}}},scope:this,order:\"before\"});",283711,38,"on({\"do\":\"refreshIfRelated\",undo:\"refreshIfRelated\",scope:this,order:\"before\"})},refreshIfRelated:function(b){var a;a=b.getType();if(Ext.Array.contains(this.relatedtasks,a)){return this.refresh()}},refresh",282845,33,"Runnings\").refresh()},onBreak:function(b,c){var a,g,f,e,d;d=b.get(\"uid\");e=Ext.getStore(\"Timers\");g=e.findRecord(\"uid\",d);if(g){f=g.get(\"type\")===\"go\"?\"break\":\"go\"}else{e.add({uid:d,time:b.get(\"starttime\"),type:\"go\"});f=\"break\"}e.add({uid:d,time:Date.now(),type:f});if(!c.getTimeout()){a=",238268,37,"Sounds\");if(f===\"go\"){a.play(\"starttask\")}else{a.play(\"break\")}}return c.updateTimer(b)},onTimeout:function(b,c){var a,d;d=c.getTimerType();a=",238268,37,"Sounds\");if(d===\"go\"){return a.play(\"break\")}else{return a.play(\"starttask\")}",283685,94,283784,168,283957,176,284138,173,284316,100,284421,73,283070,616,239215,34,"HistoryList",238062,65,"Manager\"],config:{refs:{historyview:\"historyview\"},control:{historyview:{add:\"showAddPanel",282609,68,"\"refreshIfRelated\",undo:\"refreshIfRelated\",scope:this,order:\"before\"})},refreshIfRelated:function(b){var a;a=b.getType();if(a===\"taskdone\"||a===\"postponetask\"){return this.refresh()}},refresh",282845,33,"History\").refresh()},showAddPanel:function(a){var b,c;c=a.data.cdata.task.uid;b=Ext.getStore(\"Tasks\").findRecord(\"uid\",c);if(!b){return}",238261,59,"c)}});Ext.define(\"Ext.Audio\",{extend:\"Ext.Media\",xtype:\"audio\"",76282,32,"audio\"},onActivat",293503,39,"if(Ext.os.is.Phone){a.element.show()}},onDeactivat",293503,39,"if(Ext.os.is.Phone){a.element.hide()}},template:[{reference:\"media\",preload:\"auto\",tag:\"audio\",cls:Ext.baseCSSPrefix+\"component\"}]",239215,34,"Sounds",238062,42,"Ext.Audio\",",279558,32,"],sounds:{",282612,65,"\"playIfRelated\",undo:function(){return this.play(\"undo\")},scope:this})},createTryPlayFun:function(a,d,c){var b;if(c==null){c=3000}b=new RegExp(\"^\"+a+\"[1-\"+d+\"]$\");return function(g,e){var f;if(e<c&&b.test(g)){f=parseInt(g.substr(a.length));if(f<d){f=f+1}return a+f}else{return a+\"1\"}}},createPreselectTryPlayFun:function(c){var a,b;b=/^preselect[1-8]$/;a=\"preselect\";return function(f,d){var e;if(d<3000&&b.test(f)){e=parseInt(f.substr(9));if(c&&e>1){e=e-1}else{if(e<8){e=e+1}}return a+e}else{return a+\"1\"}}},playIfRelated:function(b){var a;a=b.getType();if(a===\"taskdone\"){if(!this._taskdoneTryPlayFun){this._taskdoneTryPlayFun=this.createTryPlayFun(\"taskdone\",8)}return this.tryPlay(this._taskdoneTryPlayFun)}else{if(a===\"postponetask\"){return this.play(\"postponetask\")}else{if(a===\"starttask\"){return this.play(\"starttask\")}else{if(a===\"deletetask\"){return this.play(\"deletetask\")}else{if(a===\"addtask\"){return this.play(\"addtask\")}else{if(a===\"edittask\"){return this.play(\"edittask\")}else{if(a===\"preselect\"){return this.tryPlay(this.createPreselectTryPlayFun(b.getCdata().preselected))}}}}}}}},tryPlay:function(a){var b;b=a(this.prename,Date.now()-this.pretime);if(b){return this.play(b)}},play:function(a){var b;b=this.sounds[a];if(!b){b=this.createSound(a);this.sounds[a]=b}if(this.prename){this.sounds[this.prename].stop()}b.play();this.prename=a;return this.pretime=Date.now()},createSound:function(b){var a;a=\"resources/sounds/\"+b+\".m4a\";return Ext.Viewport.add({xtype:\"audio\",hidden:true,url:a}",284492,12042,300434,20657,"Running",321095,63,296609,43,",\"Ext.Button\",\"Ext.Date\"],xtype:\"runningitem\",config:{timerType:\"go\",time:null,timeout:null,record:null,items:[{xtype:\"container\",items:[{xtype:\"button\",docked:\"right\",itemId:\"breakbutton\",iconCls:\"pause\",iconMask:true,cls:\"breakbutton\"},{xtype:\"label\",itemId:\"title\",cls:\"title\"}]",296744,44,"width:\"100%\",padding:0,striped:true,active:true}],cls:\"runningitem\"",296814,47,321608,470,"control:{\"#breakbutton\":{tap:\"onBreak\"}},listeners:{updatedata:\"onUpdateData\"}",274687,42,322256,91,"onBreak:",241408,34,"break\",this.getRecord(),this)},onTimeout:",241408,34,"timeout\",this.getRecord(),this",322639,155,"UpdateData:function(a,b){if(b){this.child(\"* #title\").setHtml(b.title);return this.updateTimer()}},updateTimer:function(b){var e,a,g,f,d,c;if(b==null){b=this.getRecord(",297250,43,"a=b.get(\"status\");if(a===\"open\"){this.setTimerType(\"ready\");this.setTime(0);return}c=b.get(\"uid\");d=Ext.getStore(\"Timers\");g=d.findRecord(\"uid\",c);if(g){f=g.get(\"time\");this.setTimerType(g.get(\"type\"))}else{f=b",297184,32,"this.setTimerType(\"go\")}e=this;",297307,34,"return e.refreshAll(f)},1000);return this.refreshAll(f)},timeText:function(b){var a;a=b/3600000;a=a.toFixed(0);a=a>0?a+\":\":\"\";return a+Ext.Date.format(new Date(b),\"i:s\")},updateTime:function(d){var b,a,c;a=this.child(\"#progressbar\");b=this.child(\"* #breakbutton\");a.setText(this.timeText(d));if(this.getTimerType()===\"ready\"){this.setTimeout(false);if(a){a.hide()}b.setIconCls(\"play1\");return b.setUi(\"confirm\")}else{if(this.getTimerType()===\"go\"){c=d/15000;b.setIconCls(\"pause\");if(c>100){this.setTimeout(true);a.setValue(100);a.setUi(\"decline\");return b.setUi(\"confirm\")}else{this.setTimeout(false);a.setValue(c);a.setUi(null);return b.setUi(\"normal\")}}else{c=100-d/3000;a.setUi(\"confirm\");b.setIconCls(\"play1\");if(c<0){this.setTimeout(true);a.setValue(0);return b.setUi(\"confirm\")}else{this.setTimeout(false);a.setValue(c);return b.setUi(\"normal\")}}}},updateTimeout:function(b,a){if(b&&Ext.isBoolean(a)&&b!==a){return this.onTimeout()}},refreshAll:function(c){var a,b;a=Date.now();b=a-c;return this.setTime(b",297630,116,321081,1879,323778,10470,"RunningList",334260,68,"RunningItem\"],xtype:\"runninglist\",config:{store:\"Runnings\",",334347,32,"runningitem\",disableSelection:true,maxItemCache:1",334388,206,"running",334598,113,"\"break\"",382628,39,"reak\",a,b)},timeout",382628,38,"timeout\",a,b",334821,51,"break\",\"timeout\"]}});Ext.define(\"FvTouch.view.Ready",334260,68,"RunningItem\"],xtype:\"ready\",config:{store:\"Ready\",",334347,32,"runningitem\",disableSelection:true,maxItemCache:1",334388,206,"running",334598,113,"\"break\"",334718,36,334813,59,"start\"]",297717,86,"RunningList\",\"FvTouch.view.Ready",297824,39,"fit\",items:[{xtype:\"runninglist\"},{xtype:\"ready\"}],control:{runninglist:{refresh:\"onDataviewRefresh\"},ready:{refresh:\"onDataviewRefresh\"}}",311022,34,"this.onDataviewRefresh(this.child(\"runninglist\"));return this.onDataviewRefresh(this.child(\"ready\"))}}},onDataviewRefresh:function(a){if(a.getStore().getCount()){return a.show()}else{return a.hide(",334217,908,"Proxy",335608,38,335163,242,",\"Ext.Label",335404,72,",initialize:function(){var a;this.callParent();a=this.child(\"todolist\");a.insert(1,{xtype:\"label\",html:\"pull up to preselected view\",cls:\"pullup\",action:\"pullup\",hidden:true});return a.getScrollable().getScroller().on({maxpositionchange:function(b,c){return this.scrollerY=c.y},scroll:function(c,b,d){if(d>(80+this.scrollerY)){this.onPullUp()}},scrollstart",311044,32,"odolist label[action=pullup]\").show()},scrollend",311044,32,"odolist label[action=pullup]\").hide()},scope:this})},onPullU",311152,36,"pullup\")",335862,40,335515,549,"Ext.dataview.List\",{alternateClassName:\"Ext.List\",extend:\"Ext.dataview.DataView\",xtype:\"list\",requires:[\"Ext.dataview.element.List\",\"Ext.dataview.IndexBar\",\"Ext.dataview.ListItemHeader\"],config:{indexBar:false,icon:null,preventSelectionOnDisclose:true,baseCls:Ext.baseCSSPrefix+\"list\",pinHeaders:true,grouped:false,onItemDisclosure:null,disclosureProperty:\"disclosure\",ui:\"normal\"},constructor:function(){this.translateHeader=(Ext.os.is.Android2)?this.translateHeaderCssPosition:this.translateHeaderTransform;",124762,34,"Trigger:function(c,b,f,a,d){if(!(this.getPreventSelectionOnDisclose()&&Ext.fly(d.target).hasCls(this.getBaseCls()+\"-disclosure\"))){this.callParent(arguments)}},initialize:function(){",327846,103,".element.List",328003,90,"element.on({delegate:\".\"+this.getBaseCls()+\"-disclosure\",tap:\"handleItemDisclosure\",scope:b}",328089,287,"updateInline",132399,40,"if(a){this.setOnItemDisclosure(false);this.setIndexBar(false);this.setGrouped(false)}},applyIndexBa",201552,39,"dataview.IndexBar,this.getIndexBar())},updateIndexBar:function(a){if(a&&this.getScrollable()){this.indexBarElement=",177286,44,".getElement().appendChild(a.renderElement);a.on({index:\"onIndex\",scope:this});",130336,37,"+\"-indexed\")}},updateGrouped:function(c){var b=this.getBaseCls(),a=b+\"-grouped\",d=b+\"-ungrouped\";if(c){this.addCls(a);this.removeCls(d);this.doRefreshHeaders();this.updatePinHeaders(this.getPinHeaders())}else{this.addCls(d);this.removeCls(a);if(this.container){this.container.doRemoveHeaders()}this.updatePinHeaders(null)}},updatePinHeaders:function(b){var c=this.getScrollable(),a;if(c){a=c.getScroller()}if(!c){return}if(b&&this.getGrouped()){a.on({refresh:\"doRefreshHeaders\",scroll:\"onScroll\",scope:this});if(!this.header||!this.header.renderElement.dom){this.createHeader()}}else{a.un({refresh:\"doRefreshHeaders\",scroll:\"onScroll\",scope:this});if(this.header){this.header.destroy()}}},createHeader:function(){var e,d=this.getScrollable(),a,b,c;if(d){a=d.getScroller();b=",177286,44,";c=b.getElement()}else{return}this.header=e=Ext.create(\"Ext.dataview.ListItemHeader\",{html:\" \",cls:\"x-list-header-swap\"});c.dom.insertBefore(e.element.dom,a.getContainer().dom.nextSibling);this.translateHeader(1000)},refresh",203037,35,"doRefreshHeaders()},onStoreAdd",100382,44,"doRefreshHeaders()},onStoreRemove",100382,44,"doRefreshHeaders()},onStoreUpdate",100382,44,"doRefreshHeaders()},onStoreClear:function(){this.callParent();if(this.header){this.header.destroy()}this.doRefreshHeaders()},getClosestGroups:function(){var a=this.pinHeaderInfo.offsets,e=this.getScrollable(),d=a.length,b=0,h,g,f,c;if(e){h=e.getScroller().position}else{return{current:0,next:0}}for(;b<d;b++){g=a[b];if(g.offset>h.y){c=g;break}f=g}return{current:f,next:c}},doRefreshHeaders:function(){if(!this.getGrouped()||!this.container){return false}var l=this.findGroupHeaderIndices(),f=l.length,g=this.container.getViewItems(),j=this.pinHeaderInfo={offsets:[]},a=j.offsets,h=this.getScrollable(),e,k,b,d,c;if(f){for(b=0;b<f;b++){d=g[l[b]];if(d){c=this.getItemHeader(d);a.push({header:c,offset:d.offsetTop})}}j.closest=this.getClosestGroups();this.setActiveGroup(j.closest.current);if(c){j.headerHeight=Ext.fly(c).getHeight()}if(h){e=h.getScroller();k=e.position;this.onScroll(e,k.x,k.y)}}},getItemHeader:function(b){var a=Ext.fly(b).down(this.container.headerClsCache);return a?a.dom:null},onScroll:function(e,j,h){var g=this,i=g.pinHeaderInfo,a=i.closest,b=g.activeGroup,c=i.headerHeight,d,f;if(!a){return}d=a.next;f=a.current;if(!this.header||!this.header.renderElement.dom){this.createHeader()}if(h<=0){if(b){g.setActiveGroup(false);a.next=f}this.translateHeader(1000);return}else{if((d&&h>d.offset)||(f&&h<f.offset)){a=i.closest=this.getClosestGroups();d=a.next;f=a.current;this.setActiveGroup(f)}}if(d&&h>0&&d.offset-h<=c){var k=c-(d.offset-h);this.translateHeader(k)}else{this.translateHeader(null)}},translateHeaderTransform:function(a){this.header.renderElement.dom.style.webkitTransform=(a===null)?null:\"translate3d(0px, -\"+a+\"px, 0px)\"},translateHeaderCssPosition:function(a){this.header.renderElement.dom.style.top=(a===null)?null:\"-\"+Math.round(a)+\"px\"},setActiveGroup:function(b){var a=this,c=a.header;if(c){if(b&&b.header){if(!a.activeGroup||a.activeGroup.header!=b.header){c.show();if(c.element){c.setHtml(b.header.innerHTML)}}}else{if(c&&c.element){c.hide()}}}this.activeGroup=b},onIndex:function(o,c){var r=this,s=c.toLowerCase(),b=r.getStore(),q=b.getGroups(),f=q.length,h=r.getScrollable(),n,e,m,g,k,p;if(h){n=r.getScrollable().getScroller()}else{return}for(m=0;m<f;m++){e=q[m];k=e.name.toLowerCase();if(k==s||k>s){g=e;break}else{g=e}}if(h&&g){p=r.container.getViewItems()[b.indexOf(g.children[0])];n.stopAnimation();var l=n.getContainerSize().y,j=n.getSize().y,d=j-l,a=(p.offsetTop>d)?d:p.offsetTop;n.scrollTo(0,a)}},applyOnItemDisclosure:function(a){if(Ext.isFunction(a)){return{scope:this,handler:a}}return a},handleItemDisclosure:function(f){var d=this,c=f.getTarget().parentNode,b=d.container.getViewItems().indexOf(c),a=d.getStore().getAt(b);d.fireAction(\"disclose\",[d,a,c,b,f],\"doDisclose\")},doDisclose:function(f,a,d,c,g){var b=f.getOnItemDisclosure();if(b&&b.handler){b.handler.call(b.scope||f,a,d,c,g)}},findGroupHeaderIndices:function(){if(!this.getGrouped()){return[]}var h=this,k=h.getStore();if(!k){return[]}var b=h.container,d=k.getGroups(),m=d.length,g=b.getViewItems(),c=[],l=b.footerClsShortCache,e,a,f,n,j;b.doRemoveHeaders();b.doRemoveFooterCls();if(g.length){for(e=0;e<m;e++){a=d[e].children[0];f=k.indexOf(a);n=g[f];b.doAddHeader(n,k.getGroupString(a));if(e){Ext.fly(n.previousSibling).addCls(l)}c.push(f)}j=d[--e].children;Ext.fly(g[k.indexOf(j[j.length-1])]).addCls(l)}return c",208944,41,"IndexBar(),this.indexBarElement,this.header);",277433,33,"FvTouch.view.HistoryList\",{extend:\"Ext.dataview.List\",requires:[\"Ext.Date\",\"FvTouch.dataview.element.List\"],xtype:\"historylist\",config:{store:\"History\",grouped:true,itemCls:\"historyitem\",itemTpl:\"<div class=\\\"x-docking-horizontal\\\">\\n <div class='x-docked-left cmdtype {type}'></div>\\n <div class=\\\"x-body tasktitle\\\">{title}</div>\\n <div class='x-docked-right taskendtime'>{endtime:date('H:i:s')}</div>\\n</div>\",listeners:{itemdoubletap",334411,40,"dd\",a)}},bubbleEvents:[\"add\"]},prepareData:function(g,c,a){var b,f,e;try{f=Ext.getStore(\"Tasks\");e=g.cdata.task.uid;b=f.findRecord(\"uid\",e);return{title:b.get(\"title\"),status:b.get(\"status\"),type:g.type,createtime:new Date(b.get(\"createtime\")),endtime:new Date(g.ctime)}}catch(d){console.info(d);return{title:\"[error]\",type:\"\",createtime:new Data(),endtime:new Date(",335306,32,"History",335902,50,"HistoryList\"],xtype:\"history",335422,42,"history",335468,36,336077,196,"HistoryView",336294,334,",{id:\"historyview\",title:\"History\",xtype:\"historyview\"}]}]",278141,32,322968,810,336655,25397,366314,14380,"sorters:[{property:\"ctime",380558,33,380878,38,380745,415,",autoUpdate:true",381160,929,"this.initConfig(a);return this.init()},init:Ext.emptyFn",382115,341,"if(!this.getAutoUpdate()){return}",382456,255,"if(!this.getAutoUpdate()){return}",382711,309,"if(!this.getAutoUpdate()){return}",383020,155,"if(!this.getAutoUpdate()){return}",383175,239,"f(!this.getAutoUpdate()){return}",383413,460,"refresh:function(",383018,37,"this.getStore()",383056,59,383870,1293,"sorterFn:function(k,j){var h,g,c,a,f,e,d,b,i;i=Ext.getStore(\"Tasks\");d=i.getById(k.get(\"task_id\"));b=i.getById(j.get(\"task_id\"));h=d?d.get(\"status\")===\"running\":false;g=b?b.get(\"status\")===\"running\":false;if(h&&g){f=d.get(\"starttime\");e=b.get(\"starttime\");if(f>e){return -1}else{return 1}}else{if(h){return -1}else{if(g){return 1}else{c=k.get(\"order\");a=j.get(\"order\");if(c>a){return -1}else{return 1}}}}}",385196,85,"Update:false",385276,214,",autoUpdate:fals",380720,32,"odosProxy",385328,47,"odos\",autoUpdate:false",385276,44,"History\",{extend:\"FvTouch.StoreProxy\",requires:[\"Ext.Date\"],config:{store:\"Commands\",sorters:[{property:\"ctime",385195,32,"d){var a,c,b;c=d.get(\"type\");if(c===\"taskdone\"||c===\"postponetask\"){b=d.get(\"cdata\").task.uid;a=Ext.getStore(\"Tasks\").findRecord(\"uid\",b);if(!a){return false}if(c===\"postponetask\"){return d.get(\"cdata\").task.status===\"running\"}else{return true}}else{return false}}}],grouper:{groupFn:function(a){var b;b=new Date(a.get(\"ctime\"));return Ext.Date.format(Ext.Date.clearTime(b),\"D M j Y\")},sortProperty:\"ctime\"},autoLoad:true,autoUpdate:fals",385289,32,"eady",385328,53,385431,35,"open\"}],autoLoad:true,autoUpdate:false},init:function(){var a;a=Ext.getStore(\"Preselecteds\");a.on({refresh:\"refreshData\",scope:this});return this.refreshData(a)},addOn",240831,32,"setData([a])}else{return this.clearData()}},refreshData:function(b){var c,a;c=b.first();if(c){a=Ext.getStore(\"Tasks\").getById(c.get(\"task_id\"));return this.addOne(a)}else{return this.addOne(null)",366282,32,"Web",385706,33,362088,3843,385686,698,"Todo",385914,50,386691,206,386370,233,"imer",385914,79,385604,58,"localstorage\",id:\"pomodoro",386879,1073,",\"PreselectedList\",\"RunningList\",\"HistoryList\",\"Sounds",387951,113,",\"TodosProxy\",\"History\",\"Ready",388063,576]
+["/*022eda3a66e9071b0bedd0435d39bd8357e275f",41,214315,"if(!b",219905,42,"getId()",214390,49,"info:b.data.info",214438,419,"Id(",216879,122,220619,41,218698,82,215107,49,215167,142,"Id(",219501,178,"Edit",214160,56,215552,45,"c){var e,h,f,a,d,i,b,g;g=Ext.getStore(\"Tasks\");b=g.findRecord(\"uid\",c.uid);a=c.title;if(Ext.isEmpty(a)){return false}f=c.info;i=b.get(\"title\");d=b.get(\"info\");if(a===i&&this.isEquals(f,d)){return false}h=this.getDelta(f,d);e={uid:c.uid,\"new\":{},old:{}};if(a!==i){e[\"new\"].title=a;e.old.title=i}if(h.xDelta){e[\"new\"].info=h.xDelta}if(h.yDelta){e.old.info=h.yDelta}return e},doImpl:function(){var c,f,d,a,b,e",215940,71,"e=c[\"new\"].title;if(e!==void 0){a.set(\"title\",e)}f=c[\"new\"].info;if(f){d=this.apply(a.get(\"info\"),f);a.set(\"info\",d)}",215894,43,"f,d,a,b,e",215940,71,"e=c.old.title;if(e!==void 0){a.set(\"title\",e)}f=c.old.info;if(f){d=this.apply(a.get(\"info\"),f);a.set(\"info\",d)}return a.save()},isEquals:function(a,b){if(a===b){return true}else{if(Ext.isPrimitive(a)){return false}else{if(Ext.isArray(a)){return Ext.isArray(b)&&this.isArrayEquals(a,b)}else{if(Ext.isEmpty(a)){return false}else{if(Ext.isDate(a)){return Ext.isDate(b)&&a.getTime()===b.getTime()}else{if(Ext.isFunction(a)){return Ext.isFunction(b)&&a.toString()===b.toString()}else{return Ext.isObject(b)&&this.isObjectEquals(a,b)}}}}}}},isArrayEquals:function(a,d){var b,c;if(a.length===d.length){for(b=0,c=length-1;0<=c?b<c:b>c;0<=c?b++:b--){if(!this.isEquals(a[b],d[b])){return false}}return true}else{return false}},isObjectEquals:function(a,h){var d,e,g,c,f,b;g=Ext.Object.getKeys(a);c=Ext.Object.getKeys(h);e=Ext.Array.merge(g,c);for(f=0,b=e.length;f<b;f++){d=e[f];if(!this.isEquals(a[d],h[d])){return false}}return true},getDelta:function(g,c){var k,i,j,b,h,d,f,a,e;if(!Ext.isObject(g)){g={}}if(!Ext.isObject(c)){c={}}h=Ext.Object.getKeys(g);f=Ext.Object.getKeys(c);j=Ext.Array.merge(h,f);b={};d={};k=false;for(a=0,e=j.length;a<e;a++){i=j[a];if(!this.isEquals(g[i],c[i])){b[i]=g[i];d[i]=c[i];k=true}}if(k){return{xDelta:b,yDelta:d}}else{return{}}},apply:function(c,d){var b,a;c||(c={});for(b in d){a=d[b];if(a===void 0){delete c[b]}else{c[b]=d[b]}}if(Ext.Object.getSize(c)){return c}else{return}",219647,32,"Postpon",214159,57,216149,144,"if(!b",219905,42,"getId());if(!a){return false}",216329,97,"if(",216363,48,"&&Ext.getStore(\"TodosProxy\").last().getId()===a.getId()",218552,32,"d.uid,",216439,225,"if(g.task.uid){",218778,33,"a=e.findRecord(\"task_id\",c.getId());if(a.get(\"order\")!==b){console.info(this);Ext.Logger.error(\"different order when do postponetask\")}}else{",216664,53,"}",216718,156,"Id(",216879,347,"if(g.task.uid){",218778,33,"a=e.findRecord(\"task_id\",c.getId());if(a.getId()!==e.last().getId()){console.info(this);Ext.Logger.error(\"todo is not the last one when undo postponetask\")}}else{",217226,38,"}",216718,42,"g",220767,32,217340,99,"Id(",219501,122,217566,216,"e){var d,b,g,a,f,c;c=Ext.getStore(\"Todos\");g=Ext.getStore(\"Tasks\");b=g.findRecord(\"uid\",e.uid);if(!b",219905,42,"getId());if(!a||",217912,59,"f=Ext.getStore(\"TodosProxy\");d=f.first();if(d&&a.getId()===d.getId()){return false}return{uid:e.uid",220027,35,",doImpl:function(){var f,",218012,58,"f=this.getCdata();b=d.findRecord(\"uid\",f",216287,33,"getId());e=a.get(\"preselected\");if(Ext.isBoolean(f.preselected)&&f.preselected!==e){console.info(this);Ext.Logger.error(\"different preselected value when do preselect\")}a.set(\"preselected\",!",218192,49,"var f,",218012,58,"f=this.getCdata();b=d.findRecord(\"uid\",f",216287,33,"getId());e=a.get(\"preselected\");if(Ext.isBoolean(f.preselected)&&f.preselected===e){console.info(this);Ext.Logger.error(\"same preselected value when undo preselect\")}a.set(\"preselected\",!e);a.save(",224378,33,218277,212,"if(!b",219905,42,"getId()",218523,380,"getId()",218910,100,"Id(",216879,122,220619,41,219178,318,"Id(",219501,380,"!b",217930,41,"a=c.findRecord(\"task_id\",b.getId()",219954,53,220028,58,"e,b,d,a,c;d=Ext.getStore(\"Tasks\");e=this.getCdata();b=d.findRecord(\"uid\",e.task.uid);b.set(\"status\",\"running\");b",220204,34,"b.save();c=Ext.getStore(\"Todos\");a=c.findRecord(\"task_id\",b.getId());if(!e",217035,39,"true);a.save();return c.sync()}},un",220064,128,220766,101,"getId()",220874,52,";a.save();e.sync()}b=h.todo.order;if(b===void 0||b===null){return}",220942,105,"Id(",221052,49,"Id(",221106,2693,"var b,c;if(Ext.isEmpty(a.title)){return false}b=",223831,69,";c=this.normalize(a.info);if(c){b.info=c}return b",223900,166,"info:e.info",224065,331,",normalize:function(c){var b,a;for(b in c){a=c[b];if(a===void 0){delete c[b]}}if(Ext.Object.getSize(c)){return c}else{return}",224395,13786,",tagsButton:\"mytoolbar #tags",238180,53,",tags:\"onTags",238232,154,",onTags",238249,56,"Tags\").show()},launch:function(){var a;a=",238268,37,"Tags\");a.on({scope:this,change:\"changeTagsBadgeText\"});return this.changeTagsBadgeText(a.getTag())},changeTagsBadgeText:function(a){return this.getTagsButton().setBadgeText(a",238384,651,"f){var b,e,a,d,c;if(f){e=Ext.getStore(\"Tasks\");d=e.findRecord(\"uid\",f);if(d){c=Ext.clone(d.getData())}}else{a=",238268,37,"Tags\").getTag();if(a){c={info:{tags:[a]}}}}b=this.getPanel();if(!b",239066,33,"b)}if(c){b.setValues(c)}return b",239110,880,"controller.Tags",238062,41,"],config:{tag:window.localStorage.getItem(\"tag\"),views:[\"Tags\"],refs:{panel:{selector:\"tagspanel\",xtype:\"tags",239384,42,"hange:\"onChange\"}}},onChange:function(a,b){return this.setTag(b.tag)},show:function(){var a,b;b=this.getTags();if(Ext.Object.getSize(b)<=1){return}",238935,69,"if(!a.getParent()){Ext.Viewport.add(a)}a.setTags(this.getTags());a.setValue({tag:this.getTag()});return a.show()},getTags:function(){var a,b,c;c=Ext.getStore(\"Tasks\");b={\"\":0};a=this.getTag();if(!Ext.isEmpty(a)){b[a]=0}c.each(function(g){var h,d,j,f,i,e;if(g.data.info&&Ext.isArray(g.data.info.tags)&&g.data.info.tags.length){i=g.data.info.tags;e=[];for(j=0,f=i.length;j<f;j++){d=i[j];h=b[d];e.push(b[d]=h?h+1:1)}return e}else{return b[\"\"]=b[\"\"]+1}});return b",280661,32,"updateTag(this.getTag())},updateTag:function(a){var b;if(Ext.isEmpty(a)){window.localStorage.removeItem(\"tag\")}else{window.localStorage.setItem(\"tag\",a)}b=",238268,37,"TaskFilter\");if(b){b.setFilterFn(this.generateFilterFn(a))}return this.fireEvent(\"change\",a)},generateFilterFn:function(a){if(Ext.isEmpty(a)){return function(){return true}}else{return function(b){return b.data.info&&Ext.isArray(b.data.info.tags)&&Ext.Array.contains(b.data.info.tags,a)}}",239966,173,"itemId:\"add\"},{iconCls:\"tags\",itemId:\"tags\"},{iconCls:\"reply\",itemId",240176,58,"#add",311213,41,"add\")}},\"#undo",311213,41,"undo\")}},\"#tags",311213,41,"tags\")}}}",219647,32,240949,251,"this.fireEvent(\"do\",c",241259,139,"this.fireEvent(\"undo\",c",241459,311,257566,73,241770,3153,"FvTouch.field.Tags",232867,35,"agsfield\",applyValue:function(a){if(Ext.isArray(a)){return a}else{if(Ext.isEmpty(a)){return[]}else{return[a.toString()]}",230158,32,";if(!Ext.isArray(b)){Ext.Logger.error(\"value of tagsfield should be an array\")}a=b.join(\", \");return this.callParent([a])},getValue:function(){var a,b;b=this.callParent();a=Ext.Array.map(b.split(\",\"),function(c){return c.trim()});a=Ext.Array.filter(a,function(c){return !Ext.isEmpty(c)});a=Ext.Array.unique(a);if(a.length){return a}else{return}}});Ext.define(\"Ext.Media",240409,33,"media\",config:{url:\"\",enableControls:Ext.os.is.Android?false:true,autoResume:false,autoPause:true,preload:true,loop:false,media:null,volume:1,muted:false",306095,52,"on({scope:a,activate:a.onActivate,deactivate:a.onDeactivate});a.addMediaListener({canplay:\"onCanPlay\",play:\"onPlay\",pause:\"onPause\",ended:\"onEnd\",volumechange:\"onVolumeChange\",timeupdate:\"onTimeUpdate\"})},addMediaListener:function(d,b){var c=this,e=c.media.dom,f=Ext.Function.bind;if(!Ext.isObject(d)){var a=d;d={};d[a]=b}Ext.Object.each(d,function(h,g){if(typeof g!==\"function\"){g=c[g]}if(typeof g==\"function\"){g=f(g,c);e.addEventListener(h,g)}})},onPlay:function(){this.fireEvent(\"play\",this)},onCanPlay:function(){this.fireEvent(\"canplay\",this)},onPause:function(){this.fireEvent(\"pause\",this,this.getCurrentTime())},onEnd:function(){this.fireEvent(\"ended\",this,this.getCurrentTime())},onVolum",193887,35,"volumechange\",this,this.media.dom.volume)},onTimeUpdate:function(){this.fireEvent(\"timeupdate\",this,this.getCurrentTime())},isPlaying:function(){return !Boolean(this.media.dom.paused)},onActivate:function(){var a=this;if(a.getAutoResume()&&!a.isPlaying()){a.play()}},onDeactivate:function(){var a=this;if(a.getAutoResume()&&a.isPlaying()){a.pause()}},updateUrl:function(a){var b=this.media.dom;b.src=a;if(\"load\" in b){b.load()}if(this.isPlaying()){this.play()}},updateEnableControls:function(a){this.media.dom.controls=a?\"controls\":false},updateLoop:function(a){this.media.dom.loop=a?\"loop\":false},play:function(){var a=this.media.dom;if(\"play\" in a){a.play();setTimeout(function(){a.play()},10)}},pause:function(){var a=this.media.dom;if(\"pause\" in a){a.pause()}},toggle:function(){if(this.isPlaying()){this.pause()}else{this.play()}},stop:function(){var a=this;a.setCurrentTime(0);a.fireEvent(\"stop\",a);a.pause()},updateVolume:function(a){this.media.dom.volume=a},updateMuted:function(a){this.fireEvent(\"mutedchange\",this,a);this.media.dom.muted=a},getCurrentTime:function(){return this.media.dom.currentTime},setCurrentTime:function(a){this.media.dom.currentTime=a;return a},getDuration:function(){return this.media.dom.duration",358354,32,"Ext.Object.each(event,function(c,b){if(typeof b!==\"function\"){b=a[b]}if(typeof b==\"function\"){b=bind(b,a);dom.removeEventListener(c,b)}})",244907,12659,257639,11833,270445,7712,296617,35,240410,93,"striped:false,active:false,text:\"\",html:'<div class=\"x-progress-text x-progress-text-back\"></div>\\n<div class=\"bar\">\\n <div class=\"x-progress-text\"></div>\\n</div>',value:0",274687,42,"return this.on({painted:\"onResize\",resize:\"onResize\",scope:this})},updateValue:function(c,a){var b;if(c===a){return}if(c<0){c=0}if(c>100){c=100}b=\"\"+c+\"%\";return this.element.down(\"* .bar\").setWidth(b",240697,221,",updateText:function(b,a){if(b===a){return}return Ext.Array.each(this.element.query(\".x-progress-text\"),function(c){return Ext.fly(c).setHtml(b)})},onResize:function(){return this.element.down(\".bar .x-progress-text\").setWidth(this.element.getWidth())}",274346,36,"List\",{extend:",326937,32,",updateBaseCls:function(a){var b=this;b.itemClsShortCache=a+\"-item\";b.headerClsShortCache=a+\"-header\";b.headerClsCache=\".\"+b.headerClsShortCache;b.headerItemClsShortCache=a+\"-header-item\";b.footerClsShortCache=a+\"-footer-item\";b.footerClsCache=\".\"+b.footerClsShortCache;b.labelClsShortCache=a+\"-item-label\";b.labelClsCache=\".\"+b.labelClsShortCache;b.disclosureClsShortCache=a+\"-disclosure\";b.disclosureClsCache=\".\"+b.disclosureClsShortCache;b.iconClsShortCache=a+\"-icon\";b.iconClsCache=\".\"+b.iconClsShortCache;this.callParent(arguments)},hiddenDisplayCache:Ext.baseCSSPrefix+\"hidden-display\",getItemElementConfig:function(e,h){var f=this,c=f.dataview,g=c.getItemCls(),b=f.itemClsShortCache,d,a;if(g){b+=\" \"+g}d={cls:b,children:[{cls:f.labelClsShortCache,html:c.getItemTpl().apply(h)}]};if(c.getIcon()){a=h.iconSrc;d.children.push({cls:f.iconClsShortCache,style:\"background-image: \"+a?'url(\"'+newSrc+'\")':\"\"})}if(c.getOnItemDisclosure()){d.children.push({cls:f.disclosureClsShortCache+\" \"+((h[c.getDisclosureProperty()]===false)?f.hiddenDisplayCache:\"\")})}return d},updateListItem:function(d,k){var h=this,e=h.dataview,j=Ext.fly(k),g=j.down(h.labelClsCache,true),c=d.data,b=e.getDisclosureProperty(),a=c&&c.hasOwnProperty(b),l=c&&c.hasOwnProperty(\"iconSrc\"),f,i;g.innerHTML=e.getItemTpl().apply(c);if(a){f=j.down(h.disclosureClsCache);f[c[b]===false?\"removeCls\":\"addCls\"](h.hiddenDisplayCache)}if(e.getIcon()){i=j.down(h.iconClsCache,true);i.style.backgroundImage=l?'url(\"'+l+'\")':\"\"}},doRemoveHeaders:function(){var e=this,a=e.headerItemClsShortCache,b=e.element.query(e.headerClsCache),f=b.length,c=0,d;for(;c<f;c++){d=b[c];Ext.fly(d.parentNode).removeCls(a);Ext.removeNode(d)}},doRemoveFooterCls:function(){var d=this,c=d.footerClsShortCache,a=d.element.query(d.footerClsCache),e=a.length,b=0;for(;b<e;b++){Ext.fly(a[b]).removeCls(c)}},doAddHeader:function(b,a){b=Ext.fly(b);if(a){b.insertFirst(Ext.Element.create({cls:this.headerClsShortCache,html:a}))}b.addCls(this.headerItemClsShortCache)},destroy:function(){this.doRemoveHeaders();",277433,33,"FvTouch.dataview.element.List\",{override:\"Ext.dataview.element.List\",updateListItem:function(d,k){var h=this,e=h.dataview,j=Ext.fly(k),g=j.down(h.labelClsCache,true),c=e.prepareData(d.getData(true),e.getStore().indexOf(d),d),b=e.getDisclosureProperty(),a=c&&c.hasOwnProperty(b),l=c&&c.hasOwnProperty(\"iconSrc\"),f,i;g.innerHTML=e.getItemTpl().apply(c);if(a){f=j.down(h.disclosureClsCache);f[c[b]===false?\"removeCls\":\"addCls\"](h.hiddenDisplayCache)}if(e.getIcon()){i=j.down(h.iconClsCache,true);i.style.backgroundImage=l?'url(\"'+l+'\")':\"\"}}});Ext.define(\"Ext.dataview.IndexBa",168110,51,"IndexBar\"",244319,36,"indexbar\",direction:\"vertical\",letters:[\"A\",\"B\",\"C\",\"D\",\"E\",\"F\",\"G\",\"H\",\"I\",\"J\",\"K\",\"L\",\"M\",\"N\",\"O\",\"P\",\"Q\",\"R\",\"S\",\"T\",\"U\",\"V\",\"W\",\"X\",\"Y\",\"Z\"],ui:\"alphabet\",listPrefix:null},itemCls:Ext.baseCSSPrefix+\"\",updateDirection:function(a,c){var b=this.getBaseCls();this.element.replaceCls(b+\"-\"+c,b+\"-\"+a",168795,49,"wrapper\",classList:[\"x-centered\",\"x-indexbar-wrapper\"]",129959,32,"updateLetters:function(c){this.innerElement.setHtml(\"\");if(c){var b=c.length,a;for(a=0;a<b;a++){this.innerElement.createChild({html:c[a]})}}},updateListPrefix:function(a){if(a&&a.length){this.innerElement.createChild({html:a},0)}",274687,47,"innerElement.on(",16597,35,"end:this.onTouchEnd,touchmove:this.onTouchMove,scope:this})},onTouchStart:function(b,a){b.stopPropagation();this.innerElement.addCls(this.getBaseCls()+\"-pressed\");this.pageBox=this.innerElement.getPageBox();this.onTouchMove(b)},onTouchEnd:function(b,a){this.innerElement.removeCls(this.getBaseCls()+\"-pressed\")},onTouchMove:function(c){var a=Ext.util.Point.fromEvent(c),b,d=this.pageBox;if(!d){d=this.pageBox=this.el.getPageBox()}if(this.getDirection()===\"vertical\"){if(a.y>d.bottom||a.y<d.top){return}b=Ext.Element.fromPoint(d.left+(d.width/2),a.y)}else{if(a.x>d.right||a.x<d.left){return}b=Ext.Element.fromPoint(a.x,d.top+(d.height/2))}if(b){this.fireEvent(\"index\",this,b.dom.innerHTML,b)}},destroy:function(){var c=this,d=Array.prototype.slice.call(c.innerElement.dom.childNodes),b=d",277386,41,"d[a])}",94954,33,";Ext.define(\"Ext.dataview.ListItemHeade",240408,34,"listitemheader\"",244319,36,"list-header\",docked:\"top\"",269452,993,278161,1604,"b.id===\"historyview\"?\"history",279763,236,"3],preselected:a[0],running:a[1],history:a[2",280030,1023,"],cmdUndoListeners:[]",281502,981,",pullup:\"onPullup",282482,195,"\"refresh\",undo:\"refresh\",scope:this,order:\"before\"})},refresh:function(){Ext.getStore(\"TasksProxy\").refresh();return Ext.getStore(\"TodosProxy\").refresh(",282831,1663,",onPullup",238249,56,"Main\").gotoPreselectedView",238383,37,"PreselectedList",238062,65,"Manager\"],init:function(){",282637,40,"\"refresh\",undo:\"refresh\",scope:this,order:\"before\"});",238261,44,"TaskFilter\").on({update:\"refresh\",scope:this})},refresh",282845,33,"Preselecteds\").refresh",238383,37,"RunningList",238062,65,"Manager\",\"Ext.ActionSheet\"],relatedtasks:[\"deletetask\",\"edittask\",\"postponetask\",\"starttask\",\"taskdone",282272,33,"runningview:\"runningview\"},control:{runningview:{\"break\":\"onBreak\",timeout:\"onTimeou",282412,71,282594,36,282637,49,"f){var e,a,d,c,b;c=f.getType();d=Ext.getStore(\"Timers\");if(Ext.Array.contains([\"deletetask\",\"postponetask\",\"taskdone\"],c)){b=f.getCdata().task.uid;a=[];d.each(function(g){if(g.get(\"uid\")===b){return a.push(g)}});if(a.length){return d.remove(a)}}else{if(c===\"starttask\"){e=f.getCdata();b=e.task.uid;return d.add({uid:b,time:f.getCtime(),type:\"go\"})}}},undo:function(h){var g,b,a,f,e,d,c;d=h.getType();e=Ext.getStore(\"Timers\");if(Ext.Array.contains([\"deletetask\",\"postponetask\",\"taskdone\"],d)){g=h.getCdata();if(g.task.status===\"running\"){c=h.getCdata().task.uid;f=Ext.getStore(\"Tasks\");a=f.findRecord(\"uid\",c);return e.add({uid:c,time:a.get(\"starttime\"),type:\"go\"})}}else{if(d===\"starttask\"){g=h.getCdata();c=g.task.uid;b=[];e.each(function(i){if(i.get(\"uid\")===c){return b.push(i)}});if(b.length){return e.remove(b)}}}},scope:this,order:\"before\"});",282637,40,"\"refreshIfRelated\",undo:\"refreshIfRelated\",scope:this,order:\"before\"});",238261,44,"TaskFilter\").on({update:\"refresh\",scope:this})},refreshIfRelated:function(b){var a;a=b.getType();if(Ext.Array.contains(this.relatedtasks,a)){return this.refresh()}},refresh",282845,33,"Runnings\").refresh()},onBreak:function(b,c){var a,g,f,e,d;d=b.get(\"uid\");e=Ext.getStore(\"Timers\");g=e.findRecord(\"uid\",d);if(g){f=g.get(\"type\")===\"go\"?\"break\":\"go\"}else{e.add({uid:d,time:b.get(\"starttime\"),type:\"go\"});f=\"break\"}e.add({uid:d,time:Date.now(),type:f});if(!c.getTimeout()){a=",238268,37,"Sounds\");if(f===\"go\"){a.play(\"starttask\")}else{a.play(\"break\")}}return c.updateTimer(b)},onTimeout:function(b,c){var a,d;d=c.getTimerType();a=",238268,37,"Sounds\");if(d===\"go\"){return a.play(\"break\")}else{return a.play(\"starttask\")}",283685,94,283784,168,283957,176,284138,173,284316,100,284421,73,283070,616,239215,34,"HistoryList",238062,65,"Manager\"],config:{refs:{historyview:\"historyview\"},control:{historyview:{add:\"showAddPanel\"}}},init:function(){",282637,40,"\"refreshIfRelated\",undo:\"refreshIfRelated\",scope:this,order:\"before\"});",238261,44,"TaskFilter\").on({update:\"refresh\",scope:this})},refreshIfRelated:function(b){var a;a=b.getType();if(a===\"taskdone\"||a===\"postponetask\"){return this.refresh()}},refresh",282845,33,"History\").refresh()},showAddPanel:function(a){var b,c;c=a.data.cdata.task.uid;b=Ext.getStore(\"Tasks\").findRecord(\"uid\",c);if(!b){return}",238261,59,"c)}});Ext.define(\"Ext.Audio\",{extend:\"Ext.Media\",xtype:\"audio\"",76282,32,"audio\"},onActivat",293503,39,"if(Ext.os.is.Phone){a.element.show()}},onDeactivat",293503,39,"if(Ext.os.is.Phone){a.element.hide()}},template:[{reference:\"media\",preload:\"auto\",tag:\"audio\",cls:Ext.baseCSSPrefix+\"component\"}]",239215,34,"Sounds",238062,42,"Ext.Audio\",",279558,32,"],sounds:{",282612,65,"\"playIfRelated\",undo:function(){return this.play(\"undo\")},scope:this})},createTryPlayFun:function(a,d,c){var b;if(c==null){c=3000}b=new RegExp(\"^\"+a+\"[1-\"+d+\"]$\");return function(g,e){var f;if(e<c&&b.test(g)){f=parseInt(g.substr(a.length));if(f<d){f=f+1}return a+f}else{return a+\"1\"}}},createPreselectTryPlayFun:function(c){var a,b;b=/^preselect[1-8]$/;a=\"preselect\";return function(f,d){var e;if(d<3000&&b.test(f)){e=parseInt(f.substr(9));if(c&&e>1){e=e-1}else{if(e<8){e=e+1}}return a+e}else{return a+\"1\"}}},playIfRelated:function(b){var a;a=b.getType();if(a===\"taskdone\"){if(!this._taskdoneTryPlayFun){this._taskdoneTryPlayFun=this.createTryPlayFun(\"taskdone\",8)}return this.tryPlay(this._taskdoneTryPlayFun)}else{if(a===\"postponetask\"){return this.play(\"postponetask\")}else{if(a===\"starttask\"){return this.play(\"starttask\")}else{if(a===\"deletetask\"){return this.play(\"deletetask\")}else{if(a===\"addtask\"){return this.play(\"addtask\")}else{if(a===\"edittask\"){return this.play(\"edittask\")}else{if(a===\"preselect\"){return this.tryPlay(this.createPreselectTryPlayFun(b.getCdata().preselected))}}}}}}}},tryPlay:function(a){var b;b=a(this.prename,Date.now()-this.pretime);if(b){return this.play(b)}},play:function(a){var b;b=this.sounds[a];if(!b){b=this.createSound(a);this.sounds[a]=b}if(this.prename){this.sounds[this.prename].stop()}b.play();this.prename=a;return this.pretime=Date.now()},createSound:function(b){var a;a=\"resources/sounds/\"+b+\".m4a\";return Ext.Viewport.add({xtype:\"audio\",hidden:true,url:a}",284492,12042,300434,10238,",\"FvTouch.field.Tags\"],config:{values:void 0,",310682,337,",",310960,34,"agsfield\",name:\"tags\",label:\"Tags",311015,267,"applyValues:function(a){if(a===void 0||a===null){return a}else{return Ext.apply(a.info||{},{title:a.title})}},getValues:function(){var b,a;a=",311310,35,";b=a.title;delete a.title;return{title:b,info:a}},updateValues",322589,32,311388,782,"if(a){this.setUid(a.uid",107504,55,312242,8849,"Running",321095,63,296609,43,",\"Ext.Button\",\"Ext.Date\"],xtype:\"runningitem\",config:{timerType:\"go\",time:null,timeout:null,record:null,items:[{xtype:\"container\",items:[{xtype:\"button\",docked:\"right\",itemId:\"breakbutton\",iconCls:\"pause\",iconMask:true,cls:\"breakbutton\"},{xtype:\"label\",itemId:\"title\",cls:\"title\"}]",296744,44,"width:\"100%\",padding:0,striped:true,active:true}],cls:\"runningitem\"",296814,47,321608,470,"control:{\"#breakbutton\":{tap:\"onBreak\"}},listeners:{updatedata:\"onUpdateData\"}",274687,42,322256,91,"onBreak:",241408,34,"break\",this.getRecord(),this)},onTimeout:",241408,34,"timeout\",this.getRecord(),this",322639,155,"UpdateData:function(a,b){if(b){this.child(\"* #title\").setHtml(b.title);return this.updateTimer()}},updateTimer:function(b){var e,a,g,f,d,c;if(b==null){b=this.getRecord(",297250,43,"a=b.get(\"status\");if(a===\"open\"){this.setTimerType(\"ready\");this.setTime(0);return}c=b.get(\"uid\");d=Ext.getStore(\"Timers\");g=d.findRecord(\"uid\",c);if(g){f=g.get(\"time\");this.setTimerType(g.get(\"type\"))}else{f=b",297184,32,"this.setTimerType(\"go\")}e=this;",297307,34,"return e.refreshAll(f)},1000);return this.refreshAll(f)},timeText:function(b){var a;a=b/3600000;a=a.toFixed(0);a=a>0?a+\":\":\"\";return a+Ext.Date.format(new Date(b),\"i:s\")},updateTime:function(d){var b,a,c;a=this.child(\"#progressbar\");b=this.child(\"* #breakbutton\");a.setText(this.timeText(d));if(this.getTimerType()===\"ready\"){this.setTimeout(false);if(a){a.hide()}b.setIconCls(\"play1\");return b.setUi(\"confirm\")}else{if(this.getTimerType()===\"go\"){c=d/15000;b.setIconCls(\"pause\");if(c>100){this.setTimeout(true);a.setValue(100);a.setUi(\"decline\");return b.setUi(\"confirm\")}else{this.setTimeout(false);a.setValue(c);a.setUi(null);return b.setUi(\"normal\")}}else{c=100-d/3000;a.setUi(\"confirm\");b.setIconCls(\"play1\");if(c<0){this.setTimeout(true);a.setValue(0);return b.setUi(\"confirm\")}else{this.setTimeout(false);a.setValue(c);return b.setUi(\"normal\")}}}},updateTimeout:function(b,a){if(b&&Ext.isBoolean(a)&&b!==a){return this.onTimeout()}},refreshAll:function(c){var a,b;a=Date.now();b=a-c;return this.setTime(b",297630,116,321081,1879,323778,10470,"RunningList",334260,68,"RunningItem\"],xtype:\"runninglist\",config:{store:\"Runnings\",",334347,32,"runningitem\",disableSelection:true,maxItemCache:1",334388,206,"running",334598,113,"\"break\"",382628,39,"reak\",a,b)},timeout",382628,38,"timeout\",a,b",334821,51,"break\",\"timeout\"]}});Ext.define(\"FvTouch.view.Ready",334260,68,"RunningItem\"],xtype:\"ready\",config:{store:\"Ready\",",334347,32,"runningitem\",disableSelection:true,maxItemCache:1",334388,206,"running",334598,113,"\"break\"",334718,36,334813,59,"start\"]",297717,86,"RunningList\",\"FvTouch.view.Ready",297824,39,"fit\",items:[{xtype:\"runninglist\"},{xtype:\"ready\"}],control:{runninglist:{refresh:\"onDataviewRefresh\"},ready:{refresh:\"onDataviewRefresh\"}}",311022,34,"this.onDataviewRefresh(this.child(\"runninglist\"));return this.onDataviewRefresh(this.child(\"ready\"))}}},onDataviewRefresh:function(a){if(a.getStore().getCount()){return a.show()}else{return a.hide(",334217,908,"Proxy",335608,38,335163,242,",\"Ext.Label",335404,72,",initialize:function(){var a;this.callParent();a=this.child(\"todolist\");a.insert(1,{xtype:\"label\",html:\"pull up to preselected view\",cls:\"pullup\",action:\"pullup\",hidden:true});return a.getScrollable().getScroller().on({maxpositionchange:function(b,c){return this.scrollerY=c.y},scroll:function(c,b,d){if(d>(80+this.scrollerY)){this.onPullUp()}},scrollstart",311044,32,"odolist label[action=pullup]\").show()},scrollend",311044,32,"odolist label[action=pullup]\").hide()},scope:this})},onPullU",311152,36,"pullup\")",335862,40,335515,549,"Ext.dataview.List\",{alternateClassName:\"Ext.List\",extend:\"Ext.dataview.DataView\",xtype:\"list\",requires:[\"Ext.dataview.element.List\",\"Ext.dataview.IndexBar\",\"Ext.dataview.ListItemHeader\"],config:{indexBar:false,icon:null,preventSelectionOnDisclose:true,baseCls:Ext.baseCSSPrefix+\"list\",pinHeaders:true,grouped:false,onItemDisclosure:null,disclosureProperty:\"disclosure\",ui:\"normal\"},constructor:function(){this.translateHeader=(Ext.os.is.Android2)?this.translateHeaderCssPosition:this.translateHeaderTransform;",124762,34,"Trigger:function(c,b,f,a,d){if(!(this.getPreventSelectionOnDisclose()&&Ext.fly(d.target).hasCls(this.getBaseCls()+\"-disclosure\"))){this.callParent(arguments)}},initialize:function(){",327846,103,".element.List",328003,90,"element.on({delegate:\".\"+this.getBaseCls()+\"-disclosure\",tap:\"handleItemDisclosure\",scope:b}",328089,287,"updateInline",132399,40,"if(a){this.setOnItemDisclosure(false);this.setIndexBar(false);this.setGrouped(false)}},applyIndexBa",201552,39,"dataview.IndexBar,this.getIndexBar())},updateIndexBar:function(a){if(a&&this.getScrollable()){this.indexBarElement=",177286,44,".getElement().appendChild(a.renderElement);a.on({index:\"onIndex\",scope:this});",130336,37,"+\"-indexed\")}},updateGrouped:function(c){var b=this.getBaseCls(),a=b+\"-grouped\",d=b+\"-ungrouped\";if(c){this.addCls(a);this.removeCls(d);this.doRefreshHeaders();this.updatePinHeaders(this.getPinHeaders())}else{this.addCls(d);this.removeCls(a);if(this.container){this.container.doRemoveHeaders()}this.updatePinHeaders(null)}},updatePinHeaders:function(b){var c=this.getScrollable(),a;if(c){a=c.getScroller()}if(!c){return}if(b&&this.getGrouped()){a.on({refresh:\"doRefreshHeaders\",scroll:\"onScroll\",scope:this});if(!this.header||!this.header.renderElement.dom){this.createHeader()}}else{a.un({refresh:\"doRefreshHeaders\",scroll:\"onScroll\",scope:this});if(this.header){this.header.destroy()}}},createHeader:function(){var e,d=this.getScrollable(),a,b,c;if(d){a=d.getScroller();b=",177286,44,";c=b.getElement()}else{return}this.header=e=Ext.create(\"Ext.dataview.ListItemHeader\",{html:\" \",cls:\"x-list-header-swap\"});c.dom.insertBefore(e.element.dom,a.getContainer().dom.nextSibling);this.translateHeader(1000)},refresh",203037,35,"doRefreshHeaders()},onStoreAdd",100382,44,"doRefreshHeaders()},onStoreRemove",100382,44,"doRefreshHeaders()},onStoreUpdate",100382,44,"doRefreshHeaders()},onStoreClear:function(){this.callParent();if(this.header){this.header.destroy()}this.doRefreshHeaders()},getClosestGroups:function(){var a=this.pinHeaderInfo.offsets,e=this.getScrollable(),d=a.length,b=0,h,g,f,c;if(e){h=e.getScroller().position}else{return{current:0,next:0}}for(;b<d;b++){g=a[b];if(g.offset>h.y){c=g;break}f=g}return{current:f,next:c}},doRefreshHeaders:function(){if(!this.getGrouped()||!this.container){return false}var l=this.findGroupHeaderIndices(),f=l.length,g=this.container.getViewItems(),j=this.pinHeaderInfo={offsets:[]},a=j.offsets,h=this.getScrollable(),e,k,b,d,c;if(f){for(b=0;b<f;b++){d=g[l[b]];if(d){c=this.getItemHeader(d);a.push({header:c,offset:d.offsetTop})}}j.closest=this.getClosestGroups();this.setActiveGroup(j.closest.current);if(c){j.headerHeight=Ext.fly(c).getHeight()}if(h){e=h.getScroller();k=e.position;this.onScroll(e,k.x,k.y)}}},getItemHeader:function(b){var a=Ext.fly(b).down(this.container.headerClsCache);return a?a.dom:null},onScroll:function(e,j,h){var g=this,i=g.pinHeaderInfo,a=i.closest,b=g.activeGroup,c=i.headerHeight,d,f;if(!a){return}d=a.next;f=a.current;if(!this.header||!this.header.renderElement.dom){this.createHeader()}if(h<=0){if(b){g.setActiveGroup(false);a.next=f}this.translateHeader(1000);return}else{if((d&&h>d.offset)||(f&&h<f.offset)){a=i.closest=this.getClosestGroups();d=a.next;f=a.current;this.setActiveGroup(f)}}if(d&&h>0&&d.offset-h<=c){var k=c-(d.offset-h);this.translateHeader(k)}else{this.translateHeader(null)}},translateHeaderTransform:function(a){this.header.renderElement.dom.style.webkitTransform=(a===null)?null:\"translate3d(0px, -\"+a+\"px, 0px)\"},translateHeaderCssPosition:function(a){this.header.renderElement.dom.style.top=(a===null)?null:\"-\"+Math.round(a)+\"px\"},setActiveGroup:function(b){var a=this,c=a.header;if(c){if(b&&b.header){if(!a.activeGroup||a.activeGroup.header!=b.header){c.show();if(c.element){c.setHtml(b.header.innerHTML)}}}else{if(c&&c.element){c.hide()}}}this.activeGroup=b},onIndex:function(o,c){var r=this,s=c.toLowerCase(),b=r.getStore(),q=b.getGroups(),f=q.length,h=r.getScrollable(),n,e,m,g,k,p;if(h){n=r.getScrollable().getScroller()}else{return}for(m=0;m<f;m++){e=q[m];k=e.name.toLowerCase();if(k==s||k>s){g=e;break}else{g=e}}if(h&&g){p=r.container.getViewItems()[b.indexOf(g.children[0])];n.stopAnimation();var l=n.getContainerSize().y,j=n.getSize().y,d=j-l,a=(p.offsetTop>d)?d:p.offsetTop;n.scrollTo(0,a)}},applyOnItemDisclosure:function(a){if(Ext.isFunction(a)){return{scope:this,handler:a}}return a},handleItemDisclosure:function(f){var d=this,c=f.getTarget().parentNode,b=d.container.getViewItems().indexOf(c),a=d.getStore().getAt(b);d.fireAction(\"disclose\",[d,a,c,b,f],\"doDisclose\")},doDisclose:function(f,a,d,c,g){var b=f.getOnItemDisclosure();if(b&&b.handler){b.handler.call(b.scope||f,a,d,c,g)}},findGroupHeaderIndices:function(){if(!this.getGrouped()){return[]}var h=this,k=h.getStore();if(!k){return[]}var b=h.container,d=k.getGroups(),m=d.length,g=b.getViewItems(),c=[],l=b.footerClsShortCache,e,a,f,n,j;b.doRemoveHeaders();b.doRemoveFooterCls();if(g.length){for(e=0;e<m;e++){a=d[e].children[0];f=k.indexOf(a);n=g[f];b.doAddHeader(n,k.getGroupString(a));if(e){Ext.fly(n.previousSibling).addCls(l)}c.push(f)}j=d[--e].children;Ext.fly(g[k.indexOf(j[j.length-1])]).addCls(l)}return c",208944,41,"IndexBar(),this.indexBarElement,this.header);",277433,33,"FvTouch.view.HistoryList\",{extend:\"Ext.dataview.List\",requires:[\"Ext.Date\",\"FvTouch.dataview.element.List\"],xtype:\"historylist\",config:{store:\"History\",grouped:true,itemCls:\"historyitem\",itemTpl:\"<div class=\\\"x-docking-horizontal\\\">\\n <div class='x-docked-left cmdtype {type}'></div>\\n <div class=\\\"x-body tasktitle\\\">{title}</div>\\n <div class='x-docked-right taskendtime'>{endtime:date('H:i:s')}</div>\\n</div>\",listeners:{itemdoubletap",334411,40,"dd\",a)}},bubbleEvents:[\"add\"]},prepareData:function(g,c,a){var b,f,e;try{f=Ext.getStore(\"Tasks\");e=g.cdata.task.uid;b=f.findRecord(\"uid\",e);return{title:b.get(\"title\"),status:b.get(\"status\"),type:g.type,createtime:new Date(b.get(\"createtime\")),endtime:new Date(g.ctime)}}catch(d){console.info(d);return{title:\"[error]\",type:\"\",createtime:new Data(),endtime:new Date(",335306,32,"History",335902,50,"HistoryList\"],xtype:\"history",335422,42,"history",335468,36,336077,196,"HistoryView",336294,334,",{id:\"historyview\",title:\"History\",xtype:\"historyview\"}]}]",278141,32,322968,810,336655,25397,366314,14380,"sorters:[{property:\"ctime",380558,33,380878,38,380745,415,",autoUpdate:true",381160,929,"this.initConfig(a);return this.init()},init:Ext.emptyFn",382115,341,"if(!this.getAutoUpdate()){return}",382456,255,"if(!this.getAutoUpdate()){return}",382711,309,"if(!this.getAutoUpdate()){return}",383020,155,"if(!this.getAutoUpdate()){return}",383175,239,"f(!this.getAutoUpdate()){return}",383413,460,"refresh:function(",383018,37,"this.getStore()",383056,59,383870,1218,"TasksProxy",385328,53,"autoUpdate:false",385276,38,"controller.TaskFilte",238061,51,"store.TasksProxy\"],config:{filterFn:function(){return true}},updateFilterFn:function(a){var b;b=Ext.getStore(\"TasksProxy\");if(b){b.clearFilter(true);b.setFilters([{filterFn:a}]);Ext.getStore(\"TodosProxy\").refresh()}return this.fireEvent(\"update\"",380309,34,"odosProxy",385328,47,"odos\",filters:[{filterFn:function(b){var a,c;c=Ext.getStore(\"TasksProxy\");a=c.getById(b.get(\"task_id\"));return !Ext.isEmpty(a)}}],autoUpdate:false",385276,44,385088,75,"sorterFn:function(k,j){var h,g,c,a,f,e,d,b,i;i=Ext.getStore(\"Tasks\");d=i.getById(k.get(\"task_id\"));b=i.getById(j.get(\"task_id\"));h=d?d.get(\"status\")===\"running\":false;g=b?b.get(\"status\")===\"running\":false;if(h&&g){f=d.get(\"starttime\");e=b.get(\"starttime\");if(f>e){return -1}else{return 1}}else{if(h){return -1}else{if(g){return 1}else{c=k.get(\"order\");a=j.get(\"order\");if(c>a){return -1}else{return 1}}}}}}],filters:[{filterFn:function(d){var a,c,b;b=Ext.getStore(\"TodosProxy\");if(b.getCount()&&b.getById(d.getId())&&(d.data.preselected||d.getId()===b.first().getId())){return true}else{c=Ext.getStore(\"Tasks\");a=c.getById(d.get(\"task_id\"));return a&&a.get(\"status\")===\"running\"}}}],autoUpdate:false",385276,214,",autoUpdate:false}});Ext.define(\"FvTouch.store.History\",{extend:\"FvTouch.StoreProxy\",requires:[\"Ext.Date\"],config:{store:\"Commands\",sorters:[{property:\"ctime",385195,32,"d){var a,c,b;c=d.get(\"type\");if(c===\"taskdone\"||c===\"postponetask\"){b=d.get(\"cdata\").task.uid;a=Ext.getStore(\"TasksProxy\").findRecord(\"uid\",b);if(!a){return false}if(c===\"postponetask\"){return d.get(\"cdata\").task.status===\"running\"}else{return true}}else{return false}}}],grouper:{groupFn:function(a){var b;b=new Date(a.get(\"ctime\"));return Ext.Date.format(Ext.Date.clearTime(b),\"D M j Y\")},sortProperty:\"ctime\"},autoLoad:true,autoUpdate:fals",385289,32,"eady",385328,53,385431,35,"open\"}],autoLoad:true,autoUpdate:false},init:function(){var a;a=Ext.getStore(\"Preselecteds\");a.on({refresh:\"refreshData\",scope:this});return this.refreshData(a)},addOn",240831,32,"setData([a])}else{return this.clearData()}},refreshData:function(b){var c,a;c=b.first();if(c){a=Ext.getStore(\"Tasks\").getById(c.get(\"task_id\"));return this.addOne(a)}else{return this.addOne(null)",366282,32,"Web",385706,33,362088,3843,385686,334,"info",386010,374,"Todo",385914,50,386691,206,386370,233,"imer",385914,79,385604,58,"localstorage\",id:\"pomodoro\"}}});Ext.define(\"Ext.picker.Slot",334260,34,"xtype:\"pickerslot\",alternateClassName:\"Ext.Picker.Slot",305778,33,"data.Store\",\"Ext.Component\",\"Ext.data.StoreManager\"],isSlot:true,config:{title:null,showTitle:true,cls:Ext.baseCSSPrefix+\"picker-slot\",name:null,value:null,flex:1,align:\"left\",displayField:\"text\",valueField:\"value\",scrollable:{direction:\"vertical\",indicators:false,momentumEasing:{minVelocity:2},slotSnapEasing:{duration:100}}",270908,38,"Index=0",270977,34,"Title:function(a){if(a){a=Ext.create(\"Ext.Component\",{cls:Ext.baseCSSPrefix+\"picker-slot-title\",docked:\"top\",html:a})}return a",244570,45,";this.setupBar()}if(a){this.remove(a)}},updateShowTitle:function(a){var b=this.getTitle();if(b){b[a?\"show\":\"hide\"]();this.setupBar()}},updateDisplayField:function(a){this.setItemTpl('<div class=\"'+Ext.baseCSSPrefix+'picker-item {cls} <tpl if=\"extra\">'+Ext.baseCSSPrefix+'picker-invalid</tpl>\">{'+a+\"}</div>\")},updateAlign:function(a,c){var b=this.element;b.addCls(Ext.baseCSSPrefix+\"picker-\"+a);b.removeCls(Ext.baseCSSPrefix+\"picker-\"+c)},applyData:function(d){var f=[],c=d&&d.length,a,b,e;if(d&&Ext.isArray(d)&&c){for(a=0;a<c;a++){b=d[a];e={};if(Ext.isArray(b)){e[this.valueField]=b[0];e[this.displayField]=b[1]}else{if(Ext.isString(b)){e[this.valueField]=b;e[this.displayField]=b}else{if(Ext.isObject(b)){e=b}}}f.push(e)}}return d},updateData:function(",331204,46,"fields:[\"text\",\"value\"],data:a})",274686,43,"var a=this.getScrollable().getScroller();this.on({scope:this,painted:\"onPainted\",itemtap:\"doItemTap\"});a.on({scope:this,scrollend:\"onScrollEn",119325,32,"setupBar()},getPicker:function(){if(!this.picker){this.picker=this.getParent()}return this.picker},setupBa",179886,32,"return}var a=this.element,e=this.innerElement,f=this.getPicker(),g=f.bar,k=this.getValue(),b=this.getShowTitle(),j=this.getTitle(),h=this.getScrollable(),d=h.getScroller(),c=0,l,i;l=g.getHeight();if(b&&j){c=j.element.getHeight()}i=Math.ceil((a.getHeight()-c-l)/2);e.setStyle({padding:i+\"px 0 \"+(i)+\"px\"});d.refresh();d.setSlotSnapSize(l);this.setValue(k)},doItemTap:function(d,a,c,f){var b=this;b.selectedIndex=a;b.selectedNode=c;b.scrollToItem(c,true);b.fireEvent(\"slotpick\",b,b.getValue(true),b.selectedNode)},scrollToItem:function(e,d){var h=e.getY(),c=e.parent(),f=c.getY(),b=this.getScrollable(),a=b.getScroller(),g;g=h-f;a.scrollTo(0,g,d)},onScrollEnd:function(b,a,g){var f=this,d=Math.round(g/f.picker.bar.getHeight()),c=f.getViewItems(),e=c[d];if(e){f.selectedIndex=d;f.selectedNode=e;f.fireEvent(\"slotpick\",f,f.getValue(),f.selectedNode)}},getValue:function(c){var b=this.getStore(),a,d;if(!b){return}if(!this.rendered||!c){return this._value}if(this._value===false){return null}a=b.getAt(this.selectedIndex);d=a?a.get(this.getValueField()):null;return d},setValue:function(f){if(!Ext.isDefined(f)){return}if(!this.rendered||!f){this._value=f;return}var b=this.getStore(),a=this.getViewItems(),d=this.getValueField(),c,e;c=b.find(d,f);if(c!=-1){e=Ext.get(a[c]);this.selectedIndex=c;this.scrollToItem(e);this._value=f}},setValueAnimated:function(f){if(!f){return}if(!this.rendered){this._value=f;return}var b=this.getStore(),a=this.getViewItems(),d=this.getValueField(),c,e;c=b.find(d,f);if(c!=-1){e=Ext.get(a[c]);this.selectedIndex=c;this.scrollToItem(e,{duration:100});this._value=f}}});Ext.define(\"Ext.picker.Picker",241555,36,"picker\",alternateClassName:\"Ext.Picker\",requires:[\"Ext.picker.Slot\",\"Ext.Toolbar\",\"Ext.data.Model\"],isPicker:true",76282,32,"picker\",doneButton:true,cancelButton:true,useTitles:false,slots:null,value:null,height:220,layout:{type:\"hbox\",align:\"stretch\"},centered:false,left:0,right:0,bottom:0,defaultType:\"pickerslot\",toolbar:true},initElement",100382,39,"var b=this,a=Ext.baseCSSPrefix,c=this.innerElement;this.mask=c.createChild({cls:a+\"picker-mask\"});this.bar=this.mask.createChild({cls:a+\"picker-bar\"});b.on({scope:this,delegate:\"pickerslot\",slotpick:\"onSlotPick\"});b.on({scope:this,show:\"onShow\"})},applyToolb",295318,33,"Ext.applyIf(a,{docked:\"top\"});return Ext.factory(a,\"Ext.TitleBar\",this.getToolbar())},updateToolbar",236496,56,"applyDoneButton:function(a){if(a){if(Ext.isBoolean(a)){a={}}if(typeof a==\"string\"){a={text:a}}Ext.applyIf(a,{ui:\"action\",align:\"right\",text:\"Done\"})}return Ext.factory(a,\"Ext.Button\",this.getDoneButton())},updateDoneButton:function(c,a){var b=this.getToolbar();if(c){b.add(c);c.on(\"tap\",this.onDoneButtonTap,this)}else{if(a){b.remove(a)}}},applyCancelButton:function(a){if(a){if(Ext.isBoolean(a)){a={}}if(typeof a==\"string\"){a={text:a}}Ext.applyIf(a,{align:\"left\",text:\"Cancel\"})}return Ext.factory(a,\"Ext.Button\",this.getCancelButton())},updateCancelButton:function(b,a){var c=this.getToolbar();if(b){c.add(b);b.on(\"tap\",this.onCancelButtonTap,this)}else{if(a){c.remove(a)}}},updateUseTitles:function(d){var f=this.getInnerItems(),e=f.length,a=Ext.baseCSSPrefix+\"use-titles\",c,b;if(d",228943,40,"for(c=0;c<e;c++){b=f[c];if(b.isSlot){b.setShowTitle(d)}}},applySlots:function(b){if(b){var c=b.length,a;for(a=0;a<c;a++){b[a].picker=this}}return b},updateSlots:function(a){var b=Ext.baseCSSPrefix,c;this.removeAll();if(a){this.add(a)}c=this.getInnerItems();if(c.length>0){c[0].addCls(b+\"first\");c[c.length-1].addCls(b+\"last\")}this.updateUseTitles(this.getUseTitles())},onDoneButtonTap:function(){var a=this._value,b=this.getValue(true);if(b!=a){this.fireEvent(\"change\",this,b)}this.hide()},onCancelButtonTap:function(){this.fireEvent(\"cancel\",this);this.hide()},onSlotP",213693,32,"pick\",this,this.getValue(true),a)},onShow:function(){if(!this.isHidden()){this.setValue(this._value)}},setValue:function(k,a){var f=this,d=f.getInnerItems(),e=d.length,j,h,c,b,g;if(!k){k={};for(b=0;b<e;b++){k[d[b].config.name]=null}}for(j in k){g=k[j];for(b=0;b<d.length;b++){c=d[b];if(c.config.name==j){h=c;break}}if(h){if(a){h.setValueAnimated(g)}else{h.setValue(g)}}}f._values=f._value=k;return f},setValueAnimated:function(a){this.setValue(a,true)},getValue:function(c){var b={},a=this.getItems().items,f=a.length,e,d;if(c){for(d=0;d<f;d++){e=a[d];if(e&&e.isSlot){b[e.getName()]=e.getValue(c)}}this._values=b}return this._values",311280,35,"getValue(",69768,38,");Ext.destroy(this.mask,this.bar)",310492,42,"Tags\",{extend:\"Ext.picker.Picker\",xtype:\"tagspanel\",config:{tags:{},hideOnMaskTap:true},updateTags:function(c){var d,b,a;d=(function(){var e;e=[];for(b in c){a=c[b];e.push({text:b,value:a})}return e})();d=Ext.Array.sort(d,function(e,f){if(Ext.isEmpty(e.text)){return -1}else{if(Ext.isEmpty(f.text)){return 1}else{return f.value-e.value}}});return this.setSlots({name:\"tag\",data:Ext.Array.map(d,function(e){return{text:e.text,value:e.text}})})",386881,1032,"askFilter",387909,43,",\"PreselectedList\",\"RunningList\",\"HistoryList\",\"Sounds\",\"Tags",387951,80,"TasksProxy\",\"TodosProxy",388028,36,",\"History\",\"Ready",388063,576]
2  deltas/app.js/9d76666783a55435f84d63a609b3fafe9f25ab31.json
View
@@ -1 +1 @@
-["/*e98e3e743a2813f1f95750e291a0b5256828bd6a",42,245095,"Media",277355,33,"media\",config:{url:\"\",enableControls:Ext.os.is.Android?false:true,autoResume:false,autoPause:true,preload:true,loop:false,media:null,volume:1,muted:false",303172,56,"scope:a,activate:a.onActivate,deactivate:a.onDeactivate});a.addMediaListener({canplay:\"onCanPlay\",play:\"onPlay\",pause:\"onPause\",ended:\"onEnd\",volumechange:\"onVolumeChange\",timeupdate:\"onTimeUpdate\"})},addMediaListener:function(d,b){var c=this,e=c.media.dom,f=Ext.Function.bind;if(!Ext.isObject(d)){var a=d;d={};d[a]=b}Ext.Object.each(d,function(h,g){if(typeof g!==\"function\"){g=c[g]}if(typeof g==\"function\"){g=f(g,c);e.addEventListener(h,g)}})},onPlay:function(){this.fireEvent(\"play\",this)},onCanPlay:function(){this.fireEvent(\"canplay\",this)},onPause:function(){this.fireEvent(\"pause\",this,this.getCurrentTime())},onEnd:function(){this.fireEvent(\"ended\",this,this.getCurrentTime())},onVolum",193887,35,"volumechange\",this,this.media.dom.volume)},onTimeUpdate:function(){this.fireEvent(\"timeupdate\",this,this.getCurrentTime())},isPlaying:function(){return !Boolean(this.media.dom.paused)},onActivate:function(){var a=this;if(a.getAutoResume()&&!a.isPlaying()){a.play()}},onDeactivate:function(){var a=this;if(a.getAutoResume()&&a.isPlaying()){a.pause()}},updateUrl:function(a){var b=this.media.dom;b.src=a;if(\"load\" in b){b.load()}if(this.isPlaying()){this.play()}},updateEnableControls:function(a){this.media.dom.controls=a?\"controls\":false},updateLoop:function(a){this.media.dom.loop=a?\"loop\":false},play:function(){var a=this.media.dom;if(\"play\" in a){a.play();setTimeout(function(){a.play()},10)}},pause:function(){var a=this.media.dom;if(\"pause\" in a){a.pause()}},toggle:function(){if(this.isPlaying()){this.pause()}else{this.play()}},stop:function(){var a=this;a.setCurrentTime(0);a.fireEvent(\"stop\",a);a.pause()},updateVolume:function(a){this.media.dom.volume=a},updateMuted:function(a){this.fireEvent(\"mutedchange\",this,a);this.media.dom.muted=a},getCurrentTime:function(){return this.media.dom.currentTime},setCurrentTime:function(a){this.media.dom.currentTime=a;return a},getDuration:function(){return this.media.dom.duration",375745,32,"Ext.Object.each(event,function(c,b){if(typeof b!==\"function\"){b=a[b]}if(typeof b==\"function\"){b=bind(b,a);dom.removeEventListener(c,b)}})",245117,45449,"timeout:\"onTimeout",290564,70,287993,36,290095,40,290694,1172,"b,c){var a,g,f,e,d;d=b.get(\"uid\");e=Ext.getStore(\"Timers\");g=e.findRecord(\"uid\",d);if(g){f=g",291956,38,"e.add({uid:d,time:b.get(\"starttime\"),type:\"go\"});f=\"break\"}e.add({uid:d,time:Date.now(),type:f});if(!c.getTimeout()){a=",238925,37,"Sounds\");if(f===\"go\"){a.play(\"starttask\")}else{a.play(\"break\")}}return c.updateTimer(b)},onTimeout:function(b,c){var a,d;d=c.getTimerType();a=",238925,37,"Sounds\");if(d===\"go\"){return a.play(\"break\")}else{return a.play(\"starttask\")}},taskdone",292464,62,292186,1694,"b){var a;a=b.getType();if(a===\"taskdone\"||a===\"postponetask",293909,284,"Audio\",{extend:\"Ext.Media\",xtype:\"audio\"",76282,32,"audio\"},onActivat",230367,39,"if(Ext.os.is.Phone){a.element.show()}},onDeactivat",230367,39,"if(Ext.os.is.Phone){a.element.hide()}},template:[{reference:\"media\",preload:\"auto\",tag:\"audio\",cls:Ext.baseCSSPrefix+\"component\"}]",290254,34,"Sounds",238719,42,"Ext.Audio\",",293600,34,"sounds:{",288011,66,"playIfRelated\",undo:function(){return this.play(\"undo\")},scope:this})},createTryPlayFun:function(a,d,c){var b;if(c==null){c=3000}b=new RegExp(\"^\"+a+\"[1-\"+d+\"]$\");return function(g,e){var f;if(e<c&&b.test(g)){f=parseInt(g.substr(a.length));if(f<d){f=f+1}return a+f}else{return a+\"1\"}}},createPreselectTryPlayFun:function(c){var a,b;b=/^preselect[1-8]$/;a=\"preselect\";return function(f,d){var e;if(d<3000&&b.test(f)){e=parseInt(f.substr(9));if(c&&e>1){e=e-1}else{if(e<8){e=e+1}}return a+e}else{return a+\"1\"}}},play",291677,45,"a===\"taskdone\"){if(!this._taskdoneTryPlayFun){this._taskdoneTryPlayFun=this.createTryPlayFun(\"taskdone\",8)}return this.tryPlay(this._taskdoneTryPlayFun)}else{if(a===\"postponetask\"){return this.play(\"postponetask\")}else{if(a===\"starttask\"){return this.play(\"starttask\")}else{if(a===\"deletetask\"){return this.play(\"deletetask\")}else{if(a===\"addtask\"){return this.play(\"addtask\")}else{if(a===\"edittask\"){return this.play(\"edittask\")}else{if(a===\"preselect\"){return this.tryPlay(this.createPreselectTryPlayFun(b.getCdata().preselected))}}}}}}}},tryPlay:function(a){var b;b=a(this.prename,Date.now()-this.pretime);if(b){return this.play(b)}},play:function(a){var b;b=this.sounds[a];if(!b){b=this.createSound(a);this.sounds[a]=b}if(this.prename){this.sounds[this.prename].stop()}b.play();this.prename=a;return this.pretime=Date.now()},createSound:function(b){var a;a=\"resources/sounds/\"+b+\".m4a\";return Ext.Viewport.add({xtype:\"audio\",hidden:true,url:a}",294172,32866,"timerType:\"go\",time:null,timeout:null,",327038,858,327919,245,"Timeout",328096,35,"timeout",328136,298,"b){var e,a,g,f,d,c;if(b==null){b=this.getRecord()",328632,42,"a=b.get(\"status\");if(a===\"open\"){this.setTimerType(\"ready\");this.setTime(0);return}c=b",291886,37,"g=d.findRecord(\"uid\",c);if(g){f=g.get(\"time\");this.setTimerType(g.get(\"type\"))}else{f=b",328594,32,"this.setTimerType(\"go\")}e",328675,47,"e.refreshAll(",328737,33,328772,118,"updateTime:function(d){var b,a,c",328928,61,"a.setText(this.timeText(d));if(this.getTimerType()===\"ready\"){this.setTimeout(false);if(a){a.hide()}b.setIconCls(\"play1\"",329290,33,"if(this.getTimerType()===\"go\"){c=d",329052,32,"c>100){this.setTimeout(true);",329091,66,"this.setTimeout(false);a.setValue(c",329169,47,"c=100-d",329223,50,"c<0){this.setTimeout(true);",329278,45,"this.setTimeout(false);a.setValue(c);return b.setUi(\"normal\")}}}},updateTimeout:function(b,a){if(b&&Ext.isBoolean(a)&&b!==a){return this.onTimeout()}},refreshAll:function(c){var a,b;a=Date.now();b=a-c;return this.setTime(b)",329363,13008,",\"break\"",395851,39,"reak\",a,b)},timeout",395851,38,"timeout\",a,b",343191,51,"break\",\"timeou",342416,33,"eady",341838,90,"eady\",config:{store:\"Ready",341963,408,",\"break\"",343088,36,343183,59,"star",342416,101,",\"FvTouch.view.Ready",342516,72,",{xtype:\"ready\"}],control:{runninglist:{refresh:\"onDataviewRefresh\"},ready:{refresh:\"onDataviewRefresh\"}}",316802,34,"this.onDataviewRefresh(this.child(\"runninglist\"));return this.onDataviewRefresh(this.child(\"ready\"))}}},onDataviewRefresh:function(a){if(a.getStore().getCount()){return a.show()}else{return a.hide()}",342589,9700,"g.ctime",352305,42974,"this.initConfig(a);return this.init()},init:Ext.emptyFn",395305,4826,"FvTouch.store.Read",399421,48,"asks\"",399305,36,"open",399348,35,",init:function(){var a;a=Ext.getStore(\"Preselecteds\");a.on({refresh:\"refreshData\",scope:this});return this.refreshData(a)},addOn",277997,32,"setData([a])}else{return this.clearData()}},refreshData:function(b){var c,a;c=b.first();if(c){a=Ext.getStore(\"Tasks\").getById(c.get(\"task_id\"));return this.addOne(a)}else{return this.addOne(null)}",400115,6387,",\"Sounds",406501,136,",\"Read",406635,577]
+["/*022eda3a66e9071b0bedd0435d39bd8357e275fd",42,214314,"if(!b",220795,68,"b.data.uid,title:b.data.title,info:b.data.info",214438,1144,"c){var e,h,f,a,d,i,b,g;g=Ext.getStore(\"Tasks\");b=g.findRecord(\"uid\",c.uid);a=c.title;if(Ext.isEmpty(a)){return false}f=c.info;i=b.get(\"title\");d=b.get(\"info\");if(a===i&&this.isEquals(f,d)){return false}h=this.getDelta(f,d);e={uid:c.uid,\"new\":{},old:{}};if(a!==i){e[\"new\"].title=a;e.old.title=i}if(h.xDelta){e[\"new\"].info=h.xDelta}if(h.yDelta){e.old.info=h.yDelta}return e},doImpl:function(){var c,f,d,a,b,e",215775,71,"e=c[\"new\"].title;if(e!==void 0){a.set(\"title\",e)}f=c[\"new\"].info;if(f){d=this.apply(a.get(\"info\"),f);a.set(\"info\",d)}",215876,43,"f,d,a,b,e",215775,71,"e=c.old.title;if(e!==void 0){a.set(\"title\",e)}f=c.old.info;if(f){d=this.apply(a.get(\"info\"),f);a.set(\"info\",d)}return a.save()},isEquals:function(a,b){if(a===b){return true}else{if(Ext.isPrimitive(a)){return false}else{if(Ext.isArray(a)){return Ext.isArray(b)&&this.isArrayEquals(a,b)}else{if(Ext.isEmpty(a)){return false}else{if(Ext.isDate(a)){return Ext.isDate(b)&&a.getTime()===b.getTime()}else{if(Ext.isFunction(a)){return Ext.isFunction(b)&&a.toString()===b.toString()}else{return Ext.isObject(b)&&this.isObjectEquals(a,b)}}}}}}},isArrayEquals:function(a,d){var b,c;if(a.length===d.length){for(b=0,c=length-1;0<=c?b<c:b>c;0<=c?b++:b--){if(!this.isEquals(a[b],d[b])){return false}}return true}else{return false}},isObjectEquals:function(a,h){var d,e,g,c,f,b;g=Ext.Object.getKeys(a);c=Ext.Object.getKeys(h);e=Ext.Array.merge(g,c);for(f=0,b=e.length;f<b;f++){d=e[f];if(!this.isEquals(a[d],h[d])){return false}}return true},getDelta:function(g,c){var k,i,j,b,h,d,f,a,e;if(!Ext.isObject(g)){g={}}if(!Ext.isObject(c)){c={}}h=Ext.Object.getKeys(g);f=Ext.Object.getKeys(c);j=Ext.Array.merge(h,f);b={};d={};k=false;for(a=0,e=j.length;a<e;a++){i=j[a];if(!this.isEquals(g[i],c[i])){b[i]=g[i];d[i]=c[i];k=true}}if(k){return{xDelta:b,yDelta:d}}else{return{}}},apply:function(c,d){var b,a;c||(c={});for(b in d){a=d[b];if(a===void 0){delete c[b]}else{c[b]=d[b]}}if(Ext.Object.getSize(c)){return c}else{return}",218029,33,"ostpon",214159,57,216131,144,"if(!b",220795,51,"if(!a){return false}",216311,97,"if(",216345,48,"&&Ext.getStore(\"TodosProxy\").last().getId()===a.getId()",216393,1776,"e){var d,b,g,a,f,c;c=Ext.getStore(\"Todos\");g=Ext.getStore(\"Tasks\");b=g.findRecord(\"uid\",e.uid);if(!b",220795,51,"if(!a||",218299,59,"f=Ext.getStore(\"TodosProxy\");d=f.first();if(d&&a.getId()===d.getId()){return false}return{uid:e",218370,195,"getId()",218572,369,"getId()",218572,71,"===e",217520,39,219062,321,"if(!b",220795,51,219419,1352,"!b",218317,41,221134,36,220846,3610,"var b,c;if(Ext.isEmpty(a.title)){return false}b=",224488,69,";c=this.normalize(a.info);if(c){b.info=c}return b",224557,166,"info:e.info",224722,331,",normalize:function(c){var b,a;for(b in c){a=c[b];if(a===void 0){delete c[b]}}if(Ext.Object.getSize(c)){return c}else{return}",225052,13786,",tagsButton:\"mytoolbar #tags",238837,53,",tags:\"onTags",238889,154,",onTags",238906,56,"Tags\").show()},launch:function(){var a;a=",238925,37,"Tags\");a.on({scope:this,change:\"changeTagsBadgeText\"});return this.changeTagsBadgeText(a.getTag())},changeTagsBadgeText:function(a){return this.getTagsButton().setBadgeText(a",239984,36,"AddTask",238719,66,239150,542,"f){var b,e,a,d,c;if(f){e=Ext.getStore(\"Tasks\");d=e.findRecord(\"uid\",f);if(d){c=Ext.clone(d.getData())}}else{a=",238925,37,"Tags\").getTag();if(a){c={info:{tags:[a]}}}}b=this.getPanel();if(!b",240572,33,"b)}if(c){b.setValues(c)}return b",239881,880,"controller.Tags",238719,41,"],config:{tag:window.localStorage.getItem(\"tag\"),views:[\"Tags\"],refs:{panel:{selector:\"tagspanel\",xtype:\"tags",240155,42,"hange:\"onChange\"}}},onChange:function(a,b){return this.setTag(b.tag)},show:function(){var a,b;b=this.getTags();if(Ext.Object.getSize(b)<=1){return}",240361,69,"if(!a.getParent()){Ext.Viewport.add(a)}a.setTags(this.getTags());a.setValue({tag:this.getTag()});return a.show()},getTags:function(){var a,b,c;c=Ext.getStore(\"Tasks\");b={\"\":0};a=this.getTag();if(!Ext.isEmpty(a)){b[a]=0}c.each(function(g){var h,d,j,f,i,e;if(g.data.info&&Ext.isArray(g.data.info.tags)&&g.data.info.tags.length){i=g.data.info.tags;e=[];for(j=0,f=i.length;j<f;j++){d=i[j];h=b[d];e.push(b[d]=h?h+1:1)}return e}else{return b[\"\"]=b[\"\"]+1}});return b",286470,32,"updateTag(this.getTag())},updateTag:function(a){var b;if(Ext.isEmpty(a)){window.localStorage.removeItem(\"tag\")}else{window.localStorage.setItem(\"tag\",a)}b=",238925,37,"TaskFilter\");if(b){b.setFilterFn(this.generateFilterFn(a))}return this.fireEvent(\"change\",a)},generateFilterFn:function(a){if(Ext.isEmpty(a)){return function(){return true}}else{return function(b){return b.data.info&&Ext.isArray(b.data.info.tags)&&Ext.Array.contains(b.data.info.tags,a",344819,32,240766,144,"itemId:\"add\"},{iconCls:\"tags\",itemId:\"tags\"},{iconCls:\"reply\",itemId",240947,58,"#add",316927,41,"add\")}},\"#undo",316927,41,"undo\")}},\"#tags",316927,41,"tags\")}}}",218029,32,241162,3971,"FvTouch.field.Tags",233524,35,"agsfield\",applyValue:function(a){if(Ext.isArray(a)){return a}else{if(Ext.isEmpty(a)){return[]}else{return[a.toString()]}",230815,32,";if(!Ext.isArray(b)){Ext.Logger.error(\"value of tagsfield should be an array\")}a=b.join(\", \");return this.callParent([a])},getValue:function(){var a,b;b=this.callParent();a=Ext.Array.map(b.split(\",\"),function(c){return c.trim()});a=Ext.Array.filter(a,function(c){return !Ext.isEmpty(c)});a=Ext.Array.unique(a);if(a.length){return a}else{return}}});Ext.define(\"Ext.Media",277355,33,"media\",config:{url:\"\",enableControls:Ext.os.is.Android?false:true,autoResume:false,autoPause:true,preload:true,loop:false,media:null,volume:1,muted:false",303172,56,"scope:a,activate:a.onActivate,deactivate:a.onDeactivate});a.addMediaListener({canplay:\"onCanPlay\",play:\"onPlay\",pause:\"onPause\",ended:\"onEnd\",volumechange:\"onVolumeChange\",timeupdate:\"onTimeUpdate\"})},addMediaListener:function(d,b){var c=this,e=c.media.dom,f=Ext.Function.bind;if(!Ext.isObject(d)){var a=d;d={};d[a]=b}Ext.Object.each(d,function(h,g){if(typeof g!==\"function\"){g=c[g]}if(typeof g==\"function\"){g=f(g,c);e.addEventListener(h,g)}})},onPlay:function(){this.fireEvent(\"play\",this)},onCanPlay:function(){this.fireEvent(\"canplay\",this)},onPause:function(){this.fireEvent(\"pause\",this,this.getCurrentTime())},onEnd:function(){this.fireEvent(\"ended\",this,this.getCurrentTime())},onVolum",193887,35,"volumechange\",this,this.media.dom.volume)},onTimeUpdate:function(){this.fireEvent(\"timeupdate\",this,this.getCurrentTime())},isPlaying:function(){return !Boolean(this.media.dom.paused)},onActivate:function(){var a=this;if(a.getAutoResume()&&!a.isPlaying()){a.play()}},onDeactivate:function(){var a=this;if(a.getAutoResume()&&a.isPlaying()){a.pause()}},updateUrl:function(a){var b=this.media.dom;b.src=a;if(\"load\" in b){b.load()}if(this.isPlaying()){this.play()}},updateEnableControls:function(a){this.media.dom.controls=a?\"controls\":false},updateLoop:function(a){this.media.dom.loop=a?\"loop\":false},play:function(){var a=this.media.dom;if(\"play\" in a){a.play();setTimeout(function(){a.play()},10)}},pause:function(){var a=this.media.dom;if(\"pause\" in a){a.pause()}},toggle:function(){if(this.isPlaying()){this.pause()}else{this.play()}},stop:function(){var a=this;a.setCurrentTime(0);a.fireEvent(\"stop\",a);a.pause()},updateVolume:function(a){this.media.dom.volume=a},updateMuted:function(a){this.fireEvent(\"mutedchange\",this,a);this.media.dom.muted=a},getCurrentTime:function(){return this.media.dom.currentTime},setCurrentTime:function(a){this.media.dom.currentTime=a;return a},getDuration:function(){return this.media.dom.duration",375745,32,"Ext.Object.each(event,function(c,b){if(typeof b!==\"function\"){b=a[b]}if(typeof b==\"function\"){b=bind(b,a);dom.removeEventListener(c,b)}})",245117,43032,"Ext.getStore(\"TasksProxy\").refresh();",288149,1939,290095,92,";",294112,44,"TaskFilter\").on({update:\"refresh\",scope:this",288126,44,290229,337,"timeout:\"onTimeout",290564,70,287993,36,290095,40,290694,857,290095,48,293790,62,";",294112,44,"TaskFilter\").on({update:\"refresh\",scope:this",291666,200,"b,c){var a,g,f,e,d;d=b.get(\"uid\");e=Ext.getStore(\"Timers\");g=e.findRecord(\"uid\",d);if(g){f=g",291956,38,"e.add({uid:d,time:b.get(\"starttime\"),type:\"go\"});f=\"break\"}e.add({uid:d,time:Date.now(),type:f});if(!c.getTimeout()){a=",238925,37,"Sounds\");if(f===\"go\"){a.play(\"starttask\")}else{a.play(\"break\")}}return c.updateTimer(b)},onTimeout:function(b,c){var a,d;d=c.getTimerType();a=",238925,37,"Sounds\");if(d===\"go\"){return a.play(\"break\")}else{return a.play(\"starttask\")}},taskdone",292464,62,292186,1549,290095,48,293790,62,";",294112,44,"TaskFilter\").on({update:\"refresh\",scope:this",291666,56,"a===\"taskdone\"||a===\"postponetask",293909,284,"Audio\",{extend:\"Ext.Media\",xtype:\"audio\"",76282,32,"audio\"},onActivat",230367,39,"if(Ext.os.is.Phone){a.element.show()}},onDeactivat",230367,39,"if(Ext.os.is.Phone){a.element.hide()}},template:[{reference:\"media\",preload:\"auto\",tag:\"audio\",cls:Ext.baseCSSPrefix+\"component\"}]",290254,34,"Sounds",238719,42,"Ext.Audio\",",293600,34,"sounds:{",288011,66,"playIfRelated\",undo:function(){return this.play(\"undo\")},scope:this})},createTryPlayFun:function(a,d,c){var b;if(c==null){c=3000}b=new RegExp(\"^\"+a+\"[1-\"+d+\"]$\");return function(g,e){var f;if(e<c&&b.test(g)){f=parseInt(g.substr(a.length));if(f<d){f=f+1}return a+f}else{return a+\"1\"}}},createPreselectTryPlayFun:function(c){var a,b;b=/^preselect[1-8]$/;a=\"preselect\";return function(f,d){var e;if(d<3000&&b.test(f)){e=parseInt(f.substr(9));if(c&&e>1){e=e-1}else{if(e<8){e=e+1}}return a+e}else{return a+\"1\"}}},play",291677,45,"a===\"taskdone\"){if(!this._taskdoneTryPlayFun){this._taskdoneTryPlayFun=this.createTryPlayFun(\"taskdone\",8)}return this.tryPlay(this._taskdoneTryPlayFun)}else{if(a===\"postponetask\"){return this.play(\"postponetask\")}else{if(a===\"starttask\"){return this.play(\"starttask\")}else{if(a===\"deletetask\"){return this.play(\"deletetask\")}else{if(a===\"addtask\"){return this.play(\"addtask\")}else{if(a===\"edittask\"){return this.play(\"edittask\")}else{if(a===\"preselect\"){return this.tryPlay(this.createPreselectTryPlayFun(b.getCdata().preselected))}}}}}}}},tryPlay:function(a){var b;b=a(this.prename,Date.now()-this.pretime);if(b){return this.play(b)}},play:function(a){var b;b=this.sounds[a];if(!b){b=this.createSound(a);this.sounds[a]=b}if(this.prename){this.sounds[this.prename].stop()}b.play();this.prename=a;return this.pretime=Date.now()},createSound:function(b){var a;a=\"resources/sounds/\"+b+\".m4a\";return Ext.Viewport.add({xtype:\"audio\",hidden:true,url:a}",294172,22280,",\"FvTouch.field.Tags\"],config:{values:void 0,",316462,337,",",316740,34,"agsfield\",name:\"tags\",label:\"Tags",316795,267,"applyValues:function(a){if(a===void 0||a===null){return a}else{return Ext.apply(a.info||{},{title:a.title})}},getValues:function(){var b,a;a=",317090,35,";b=a.title;delete a.title;return{title:b,info:a}},update",317130,820,"if(a){this.setUid(a.uid",107504,55,318022,9016,"timerType:\"go\",time:null,timeout:null,",327038,858,327919,245,"Timeout",328096,35,"timeout",328136,298,"b){var e,a,g,f,d,c;if(b==null){b=this.getRecord()",328632,42,"a=b.get(\"status\");if(a===\"open\"){this.setTimerType(\"ready\");this.setTime(0);return}c=b",291886,37,"g=d.findRecord(\"uid\",c);if(g){f=g.get(\"time\");this.setTimerType(g.get(\"type\"))}else{f=b",328594,32,"this.setTimerType(\"go\")}e",328675,47,"e.refreshAll(",328737,33,328772,118,"updateTime:function(d){var b,a,c",328928,61,"a.setText(this.timeText(d));if(this.getTimerType()===\"ready\"){this.setTimeout(false);if(a){a.hide()}b.setIconCls(\"play1\"",329290,33,"if(this.getTimerType()===\"go\"){c=d",329052,32,"c>100){this.setTimeout(true);",329091,66,"this.setTimeout(false);a.setValue(c",329169,47,"c=100-d",329223,50,"c<0){this.setTimeout(true);",329278,45,"this.setTimeout(false);a.setValue(c);return b.setUi(\"normal\")}}}},updateTimeout:function(b,a){if(b&&Ext.isBoolean(a)&&b!==a){return this.onTimeout()}},refreshAll:function(c){var a,b;a=Date.now();b=a-c;return this.setTime(b)",329363,13008,",\"break\"",395851,39,"reak\",a,b)},timeout",395851,38,"timeout\",a,b",343191,51,"break\",\"timeou",342416,33,"eady",341838,90,"eady\",config:{store:\"Ready",341963,408,",\"break\"",343088,36,343183,59,"star",342416,101,",\"FvTouch.view.Ready",342516,72,",{xtype:\"ready\"}],control:{runninglist:{refresh:\"onDataviewRefresh\"},ready:{refresh:\"onDataviewRefresh\"}}",316802,34,"this.onDataviewRefresh(this.child(\"runninglist\"));return this.onDataviewRefresh(this.child(\"ready\"))}}},onDataviewRefresh:function(a){if(a.getStore().getCount()){return a.show()}else{return a.hide()}",342589,9700,"g.ctime",352305,42974,"this.initConfig(a);return this.init()},init:Ext.emptyFn",395305,3269,"Task",399416,53,"ask",399472,57,"controller.TaskFilte",238718,51,"store.TasksProxy\"],config:{filterFn:function(){return true}},updateFilterFn:function(a){var b;b=Ext.getStore(\"TasksProxy\");if(b){b.clearFilter(true);b.setFilters([{filterFn:a}]);",288156,37,"return this.fireEvent(\"update\"",393438,34,399413,62,"filters:[{filterFn:function(b){var a,c;c=Ext.getStore(\"TasksProxy\");a=c.getById(b.get(\"task_id\"));return !Ext.isEmpty(a)",399131,64,398574,511,"d){var a,c,b;b=Ext.getStore(\"TodosProxy\");if(b.getCount()&&b.getById(d.getId())&&(d.data.preselected||d.getId()===b.first().getId())){return true}else{c=Ext.getStore(\"Tasks\");a=c.getById(d.get(\"task_id\"));return a&&a.get(\"status\")===\"running\"}",399131,281,399535,257,"Proxy",399792,339,"FvTouch.store.Read",399421,48,"asks\"",399305,36,"open",399348,35,",init:function(){var a;a=Ext.getStore(\"Preselecteds\");a.on({refresh:\"refreshData\",scope:this});return this.refreshData(a)},addOn",277997,32,"setData([a])}else{return this.clearData()}},refreshData:function(b){var c,a;c=b.first();if(c){a=Ext.getStore(\"Tasks\").getById(c.get(\"task_id\"));return this.addOne(a)}else{return this.addOne(null)}",400115,4244,"info",404349,1056,"picker.Slo",341837,35,"xtype:\"pickerslot\",alternateClassName:\"Ext.Picker.Slot",311558,33,"data.Store\",\"Ext.Component\",\"Ext.data.StoreManager\"],isSlot:true,config:{title:null,showTitle:true,cls:Ext.baseCSSPrefix+\"picker-slot\",name:null,value:null,flex:1,align:\"left\",displayField:\"text\",valueField:\"value\",scrollable:{direction:\"vertical\",indicators:false,momentumEasing:{minVelocity:2},slotSnapEasing:{duration:100}}",270072,38,"Index=0",270141,34,"Title:function(a){if(a){a=Ext.create(\"Ext.Component\",{cls:Ext.baseCSSPrefix+\"picker-slot-title\",docked:\"top\",html:a})}return a",244780,45,";this.setupBar()}if(a){this.remove(a)}},updateShowTitle:function(a){var b=this.getTitle();if(b){b[a?\"show\":\"hide\"]();this.setupBar()}},updateDisplayField:function(a){this.setItemTpl('<div class=\"'+Ext.baseCSSPrefix+'picker-item {cls} <tpl if=\"extra\">'+Ext.baseCSSPrefix+'picker-invalid</tpl>\">{'+a+\"}</div>\")},updateAlign:function(a,c){var b=this.element;b.addCls(Ext.baseCSSPrefix+\"picker-\"+a);b.removeCls(Ext.baseCSSPrefix+\"picker-\"+c)},applyData:function(d){var f=[],c=d&&d.length,a,b,e;if(d&&Ext.isArray(d)&&c){for(a=0;a<c;a++){b=d[a];e={};if(Ext.isArray(b)){e[this.valueField]=b[0];e[this.displayField]=b[1]}else{if(Ext.isString(b)){e[this.valueField]=b;e[this.displayField]=b}else{if(Ext.isObject(b)){e=b}}}f.push(e)}}return d},updateData:function(",338783,46,"fields:[\"text\",\"value\"],data:a}))",304239,42,"var a=this.getScrollable().getScroller();this.on({scope:this,painted:\"onPainted\",itemtap:\"doItemTap\"});a.on({scope:this,scrollend:\"onScrollEn",119325,32,"setupBar()},getPicker:function(){if(!this.picker){this.picker=this.getParent()}return this.picker},setupBa",179886,32,"return}var a=this.element,e=this.innerElement,f=this.getPicker(),g=f.bar,k=this.getValue(),b=this.getShowTitle(),j=this.getTitle(),h=this.getScrollable(),d=h.getScroller(),c=0,l,i;l=g.getHeight();if(b&&j){c=j.element.getHeight()}i=Math.ceil((a.getHeight()-c-l)/2);e.setStyle({padding:i+\"px 0 \"+(i)+\"px\"});d.refresh();d.setSlotSnapSize(l);this.setValue(k)},doItemTap:function(d,a,c,f){var b=this;b.selectedIndex=a;b.selectedNode=c;b.scrollToItem(c,true);b.fireEvent(\"slotpick\",b,b.getValue(true),b.selectedNode)},scrollToItem:function(e,d){var h=e.getY(),c=e.parent(),f=c.getY(),b=this.getScrollable(),a=b.getScroller(),g;g=h-f;a.scrollTo(0,g,d)},onScrollEnd:function(b,a,g){var f=this,d=Math.round(g/f.picker.bar.getHeight()),c=f.getViewItems(),e=c[d];if(e){f.selectedIndex=d;f.selectedNode=e;f.fireEvent(\"slotpick\",f,f.getValue(),f.selectedNode)}},getValue:function(c){var b=this.getStore(),a,d;if(!b){return}if(!this.rendered||!c){return this._value}if(this._value===false){return null}a=b.getAt(this.selectedIndex);d=a?a.get(this.getValueField()):null;return d},setValue:function(f){if(!Ext.isDefined(f)){return}if(!this.rendered||!f){this._value=f;return}var b=this.getStore(),a=this.getViewItems(),d=this.getValueField(),c,e;c=b.find(d,f);if(c!=-1){e=Ext.get(a[c]);this.selectedIndex=c;this.scrollToItem(e);this._value=f}},setValueAnimated:function(f){if(!f){return}if(!this.rendered){this._value=f;return}var b=this.getStore(),a=this.getViewItems(),d=this.getValueField(),c,e;c=b.find(d,f);if(c!=-1){e=Ext.get(a[c]);this.selectedIndex=c;this.scrollToItem(e,{duration:100});this._value=f}}});Ext.define(\"Ext.picker.Picker",241692,36,"picker\",alternateClassName:\"Ext.Picker\",requires:[\"Ext.picker.Slot\",\"Ext.Toolbar\",\"Ext.data.Model\"],isPicker:true",76282,32,"picker\",doneButton:true,cancelButton:true,useTitles:false,slots:null,value:null,height:220,layout:{type:\"hbox\",align:\"stretch\"},centered:false,left:0,right:0,bottom:0,defaultType:\"pickerslot\",toolbar:true},initElement",100382,39,"var b=this,a=Ext.baseCSSPrefix,c=this.innerElement;this.mask=c.createChild({cls:a+\"picker-mask\"});this.bar=this.mask.createChild({cls:a+\"picker-bar\"});b.on({scope:this,delegate:\"pickerslot\",slotpick:\"onSlotPick\"});b.on({scope:this,show:\"onShow\"})},applyToolb",304998,33,"Ext.applyIf(a,{docked:\"top\"});return Ext.factory(a,\"Ext.TitleBar\",this.getToolbar())},updateToolbar",237153,56,"applyDoneButton:function(a){if(a){if(Ext.isBoolean(a)){a={}}if(typeof a==\"string\"){a={text:a}}Ext.applyIf(a,{ui:\"action\",align:\"right\",text:\"Done\"})}return Ext.factory(a,\"Ext.Button\",this.getDoneButton())},updateDoneButton:function(c,a){var b=this.getToolbar();if(c){b.add(c);c.on(\"tap\",this.onDoneButtonTap,this)}else{if(a){b.remove(a)}}},applyCancelButton:function(a){if(a){if(Ext.isBoolean(a)){a={}}if(typeof a==\"string\"){a={text:a}}Ext.applyIf(a,{align:\"left\",text:\"Cancel\"})}return Ext.factory(a,\"Ext.Button\",this.getCancelButton())},updateCancelButton:function(b,a){var c=this.getToolbar();if(b){c.add(b);b.on(\"tap\",this.onCancelButtonTap,this)}else{if(a){c.remove(a)}}},updateUseTitles:function(d){var f=this.getInnerItems(),e=f.length,a=Ext.baseCSSPrefix+\"use-titles\",c,b;if(d",229600,40,"for(c=0;c<e;c++){b=f[c];if(b.isSlot){b.setShowTitle(d)}}},applySlots:function(b){if(b){var c=b.length,a;for(a=0;a<c;a++){b[a].picker=this}}return b},updateSlots:function(a){var b=Ext.baseCSSPrefix,c;this.removeAll();if(a){this.add(a)}c=this.getInnerItems();if(c.length>0){c[0].addCls(b+\"first\");c[c.length-1].addCls(b+\"last\")}this.updateUseTitles(this.getUseTitles())},onDoneButtonTap:function(){var a=this._value,b=this.getValue(true);if(b!=a){this.fireEvent(\"change\",this,b)}this.hide()},onCancelButtonTap:function(){this.fireEvent(\"cancel\",this);this.hide()},onSlotP",213693,32,"pick\",this,this.getValue(true),a)},onShow:function(){if(!this.isHidden()){this.setValue(this._value)}},setValue:function(k,a){var f=this,d=f.getInnerItems(),e=d.length,j,h,c,b,g;if(!k){k={};for(b=0;b<e;b++){k[d[b].config.name]=null}}for(j in k){g=k[j];for(b=0;b<d.length;b++){c=d[b];if(c.config.name==j){h=c;break}}if(h){if(a){h.setValueAnimated(g)}else{h.setValue(g)}}}f._values=f._value=k;return f},setValueAnimated:function(a){this.setValue(a,true)},getValue:function(c){var b={},a=this.getItems().items,f=a.length,e,d;if(c){for(d=0;d<f;d++){e=a[d];if(e&&e.isSlot){b[e.getName()]=e.getValue(c)}}this._values=b}return this._values",261365,38,"Value(",69768,38,");Ext.destroy(this.mask,this.bar)",316272,42,"Tags\",{extend:\"Ext.picker.Picker\",xtype:\"tagspanel\",config:{tags:{},hideOnMaskTap:true},updateTags:function(c){var d,b,a;d=(function(){var e;e=[];for(b in c){a=c[b];e.push({text:b,value:a})}return e})();d=Ext.Array.sort(d,function(e,f){if(Ext.isEmpty(e.text)){return -1}else{if(Ext.isEmpty(f.text)){return 1}else{return f.value-e.value}}});return this.setSlots({name:\"tag\",data:Ext.Array.map(d,function(e){return{text:e.text,value:e.text}})})",405385,1032,"askFilter",406413,89,",\"Sounds\",\"Tags",406501,80,"TasksProxy\",\"TodosProxy",406578,38,"History\",\"Read",406635,577]
2  deltas/app.js/9ed731ee96cfc2bc490f0c26482d7a210ebc1de0.json
View
@@ -1 +1 @@
-["/*e98e3e743a2813f1f95750e291a0b5256828bd6a",42,239650,"e){var a,d,c,b;if(e){",240362,48,"if(c){b=Ext.clone(c.getData())}}",239700,59,"if(b){a.setValues(b",239757,1283,241598,753,277696,73,242351,3157,"Media",241066,33,"media\",config:{url:\"\",enableControls:Ext.os.is.Android?false:true,autoResume:false,autoPause:true,preload:true,loop:false,media:null,volume:1,muted:false",258453,52,"on({scope:a,activate:a.onActivate,deactivate:a.onDeactivate});a.addMediaListener({canplay:\"onCanPlay\",play:\"onPlay\",pause:\"onPause\",ended:\"onEnd\",volumechange:\"onVolumeChange\",timeupdate:\"onTimeUpdate\"})},addMediaListener:function(d,b){var c=this,e=c.media.dom,f=Ext.Function.bind;if(!Ext.isObject(d)){var a=d;d={};d[a]=b}Ext.Object.each(d,function(h,g){if(typeof g!==\"function\"){g=c[g]}if(typeof g==\"function\"){g=f(g,c);e.addEventListener(h,g)}})},onPlay:function(){this.fireEvent(\"play\",this)},onCanPlay:function(){this.fireEvent(\"canplay\",this)},onPause:function(){this.fireEvent(\"pause\",this,this.getCurrentTime())},onEnd:function(){this.fireEvent(\"ended\",this,this.getCurrentTime())},onVolum",193887,35,"volumechange\",this,this.media.dom.volume)},onTimeUpdate:function(){this.fireEvent(\"timeupdate\",this,this.getCurrentTime())},isPlaying:function(){return !Boolean(this.media.dom.paused)},onActivate:function(){var a=this;if(a.getAutoResume()&&!a.isPlaying()){a.play()}},onDeactivate:function(){var a=this;if(a.getAutoResume()&&a.isPlaying()){a.pause()}},updateUrl:function(a){var b=this.media.dom;b.src=a;if(\"load\" in b){b.load()}if(this.isPlaying()){this.play()}},updateEnableControls:function(a){this.media.dom.controls=a?\"controls\":false},updateLoop:function(a){this.media.dom.loop=a?\"loop\":false},play:function(){var a=this.media.dom;if(\"play\" in a){a.play();setTimeout(function(){a.play()},10)}},pause:function(){var a=this.media.dom;if(\"pause\" in a){a.pause()}},toggle:function(){if(this.isPlaying()){this.pause()}else{this.play()}},stop:function(){var a=this;a.setCurrentTime(0);a.fireEvent(\"stop\",a);a.pause()},updateVolume:function(a){this.media.dom.volume=a},updateMuted:function(a){this.fireEvent(\"mutedchange\",this,a);this.media.dom.muted=a},getCurrentTime:function(){return this.media.dom.currentTime},setCurrentTime:function(a){this.media.dom.currentTime=a;return a},getDuration:function(){return this.media.dom.duration",361458,32,"Ext.Object.each(event,function(c,b){if(typeof b!==\"function\"){b=a[b]}if(typeof b==\"function\"){b=bind(b,a);dom.removeEventListener(c,b)}})",245488,32204,241032,128,"striped:false,active:false,text:\"\",html:'<div class=\"x-progress-text x-progress-text-back\"></div>\\n<div class=\"bar\">\\n <div class=\"x-progress-text\"></div>\\n</div>',value:0",298239,42,"return this.on({painted:\"onResize\",resize:\"onResize\",scope:this})},updateValue:function(c,a){var b;if(c===a){return}if(c<0){c=0}if(c>100){c=100}b=\"\"+c+\"%\";return this.element.down(\"* .bar\").setWidth(b",241354,221,",updateText:function(b,a){if(b===a){return}return Ext.Array.each(this.element.query(\".x-progress-text\"),function(c){return Ext.fly(c).setHtml(b)})},onResize:function(){return this.element.down(\".bar .x-progress-text\").setWidth(this.element.getWidth",325241,32,"element.List\",{extend:",328427,32,",updateBaseCls:function(a){var b=this;b.itemClsShortCache=a+\"-item\";b.headerClsShortCache=a+\"-header\";b.headerClsCache=\".\"+b.headerClsShortCache;b.headerItemClsShortCache=a+\"-header-item\";b.footerClsShortCache=a+\"-footer-item\";b.footerClsCache=\".\"+b.footerClsShortCache;b.labelClsShortCache=a+\"-item-label\";b.labelClsCache=\".\"+b.labelClsShortCache;b.disclosureClsShortCache=a+\"-disclosure\";b.disclosureClsCache=\".\"+b.disclosureClsShortCache;b.iconClsShortCache=a+\"-icon\";b.iconClsCache=\".\"+b.iconClsShortCache;this.callParent(arguments)},hiddenDisplayCache:Ext.baseCSSPrefix+\"hidden-display\",getItemElementConfig:function(e,h){var f=this,c=f.dataview,g=c.getItemCls(),b=f.itemClsShortCache,d,a;if(g){b+=\" \"+g}d={cls:b,children:[{cls:f.labelClsShortCache,html:c.getItemTpl().apply(h)}]};if(c.getIcon()){a=h.iconSrc;d.children.push({cls:f.iconClsShortCache,style:\"background-image: \"+a?'url(\"'+newSrc+'\")':\"\"})}if(c.getOnItemDisclosure()){d.children.push({cls:f.disclosureClsShortCache+\" \"+((h[c.getDisclosureProperty()]===false)?f.hiddenDisplayCache:\"\")})}return d},updateListItem:function(d,k){var h=this,e=h.dataview,j=Ext.fly(k),g=j.down(h.labelClsCache,true),c=d.data,b=e.getDisclosureProperty(),a=c&&c.hasOwnProperty(b),l=c&&c.hasOwnProperty(\"iconSrc\"),f,i;g.innerHTML=e.getItemTpl().apply(c);if(a){f=j.down(h.disclosureClsCache);f[c[b]===false?\"removeCls\":\"addCls\"](h.hiddenDisplayCache)}if(e.getIcon()){i=j.down(h.iconClsCache,true);i.style.backgroundImage=l?'url(\"'+l+'\")':\"\"}},doRemoveHeaders:function(){var e=this,a=e.headerItemClsShortCache,b=e.element.query(e.headerClsCache),f=b.length,c=0,d;for(;c<f;c++){d=b[c];Ext.fly(d.parentNode).removeCls(a);Ext.removeNode(d)}},doRemoveFooterCls:function(){var d=this,c=d.footerClsShortCache,a=d.element.query(d.footerClsCache),e=a.length,b=0;for(;b<e;b++){Ext.fly(a[b]).removeCls(c)}},doAddHeader:function(b,a){b=Ext.fly(b);if(a){b.insertFirst(Ext.Element.create({cls:this.headerClsShortCache,html:a}))}b.addCls(this.headerItemClsShortCache)},destroy:function(){this.doRemoveHeaders();",323343,41,"dataview.element.List\",{override:\"Ext.dataview.element.List\",updateListItem:function(d,k){var h=this,e=h.dataview,j=Ext.fly(k),g=j.down(h.labelClsCache,true),c=e.prepareData(d.getData(true),e.getStore().indexOf(d),d),b=e.getDisclosureProperty(),a=c&&c.hasOwnProperty(b),l=c&&c.hasOwnProperty(\"iconSrc\"),f,i;g.innerHTML=e.getItemTpl().apply(c);if(a){f=j.down(h.disclosureClsCache);f[c[b]===false?\"removeCls\":\"addCls\"](h.hiddenDisplayCache)}if(e.getIcon()){i=j.down(h.iconClsCache,true);i.style.backgroundImage=l?'url(\"'+l+'\")':\"\"}}});Ext.define(\"Ext.dataview.IndexBa",168110,51,"IndexBar\"",242208,36,"indexbar\",direction:\"vertical\",letters:[\"A\",\"B\",\"C\",\"D\",\"E\",\"F\",\"G\",\"H\",\"I\",\"J\",\"K\",\"L\",\"M\",\"N\",\"O\",\"P\",\"Q\",\"R\",\"S\",\"T\",\"U\",\"V\",\"W\",\"X\",\"Y\",\"Z\"],ui:\"alphabet\",listPrefix:null},itemCls:Ext.baseCSSPrefix+\"\",updateDirection:function(a,c){var b=this.getBaseCls();this.element.replaceCls(b+\"-\"+c,b+\"-\"+a",168795,49,"wrapper\",classList:[\"x-centered\",\"x-indexbar-wrapper\"]",129959,32,"updateLetters:function(c){this.innerElement.setHtml(\"\");if(c){var b=c.length,a;for(a=0;a<b;a++){this.innerElement.createChild({html:c[a]})}}},updateListPrefix:function(a){if(a&&a.length){this.innerElement.createChild({html:a},0)}",298239,47,"innerElement.on(",16597,35,"end:this.onTouchEnd,touchmove:this.onTouchMove,scope:this})},onTouchStart:function(b,a){b.stopPropagation();this.innerElement.addCls(this.getBaseCls()+\"-pressed\");this.pageBox=this.innerElement.getPageBox();this.onTouchMove(b)},onTouchEnd:function(b,a){this.innerElement.removeCls(this.getBaseCls()+\"-pressed\")},onTouchMove:function(c){var a=Ext.util.Point.fromEvent(c),b,d=this.pageBox;if(!d){d=this.pageBox=this.el.getPageBox()}if(this.getDirection()===\"vertical\"){if(a.y>d.bottom||a.y<d.top){return}b=Ext.Element.fromPoint(d.left+(d.width/2),a.y)}else{if(a.x>d.right||a.x<d.left){return}b=Ext.Element.fromPoint(a.x,d.top+(d.height/2))}if(b){this.fireEvent(\"index\",this,b.dom.innerHTML,b)}},destroy:function(){var c=this,d=Array.prototype.slice.call(c.innerElement.dom.childNodes),b=d",276921,41,"d[a])}",94954,33,";Ext.define(\"Ext.dataview.ListItemHeade",241065,34,"listitemheader\"",242208,36,"list-header\",docked:\"top\"",277749,2597,"b.id===\"historyview\"?\"history",280344,236,"3],preselected:a[0],running:a[1],history:a[2",280611,2025,",pullup:\"onPullup",282635,1973,",onPullup",238906,56,"Main\").gotoPreselectedView",239040,37,284642,584,"timeout:\"onTimeout",285224,70,282747,36,286218,40,285354,1172,"b,c){var a,g,f,e,d;d=b.get(\"uid\");e=Ext.getStore(\"Timers\");g=e.findRecord(\"uid\",d);if(g){f=g",286616,38,"e.add({uid:d,time:b.get(\"starttime\"),type:\"go\"});f=\"break\"}e.add({uid:d,time:Date.now(),type:f});if(!c.getTimeout()){a=",238925,37,"Sounds\");if(f===\"go\"){a.play(\"starttask\")}else{a.play(\"break\")}}return c.updateTimer(b)},onTimeout:function(b,c){var a,d;d=c.getTimerType();a=",238925,37,"Sounds\");if(d===\"go\"){return a.play(\"break\")}else{return a.play(\"starttask\")}",283799,94,283898,168,287036,1153,"FvTouch.controller.History",284653,79,"config:{refs:{historyview:\"historyview\"},control:{historyview:{add:\"showAddPanel",282762,76,286266,116,"a===\"taskdone\"||a===\"postponetask\"",286421,66,"History\").refresh()},showAddPanel:function(a){var b,c;c=a.data.cdata.task.uid;b=Ext.getStore(\"Tasks\").findRecord(\"uid\",c);if(!b){return}",238918,59,"c)}});Ext.define(\"Ext.Audio\",{extend:\"Ext.Media\",xtype:\"audio\"",76282,32,"audio\"},onActivat",258464,39,"if(Ext.os.is.Phone){a.element.show()}},onDeactivat",258464,39,"if(Ext.os.is.Phone){a.element.hide()}},template:[{reference:\"media\",preload:\"auto\",tag:\"audio\",cls:Ext.baseCSSPrefix+\"component\"}]",239872,34,"Sounds",282368,47,"udio\",",280139,32,"],sounds:{",282765,66,"playIfRelated\",undo:function(){return this.play(\"undo\")},scope:this})},createTryPlayFun:function(a,d,c){var b;if(c==null){c=3000}b=new RegExp(\"^\"+a+\"[1-\"+d+\"]$\");return function(g,e){var f;if(e<c&&b.test(g)){f=parseInt(g.substr(a.length));if(f<d){f=f+1}return a+f}else{return a+\"1\"}}},createPreselectTryPlayFun:function(c){var a,b;b=/^preselect[1-8]$/;a=\"preselect\";return function(f,d){var e;if(d<3000&&b.test(f)){e=parseInt(f.substr(9));if(c&&e>1){e=e-1}else{if(e<8){e=e+1}}return a+e}else{return a+\"1\"}}},play",286337,45,"a===\"taskdone\"){if(!this._taskdoneTryPlayFun){this._taskdoneTryPlayFun=this.createTryPlayFun(\"taskdone\",8)}return this.tryPlay(this._taskdoneTryPlayFun)}else{if(a===\"postponetask\"){return this.play(\"postponetask\")}else{if(a===\"starttask\"){return this.play(\"starttask\")}else{if(a===\"deletetask\"){return this.play(\"deletetask\")}else{if(a===\"addtask\"){return this.play(\"addtask\")}else{if(a===\"edittask\"){return this.play(\"edittask\")}else{if(a===\"preselect\"){return this.tryPlay(this.createPreselectTryPlayFun(b.getCdata().preselected))}}}}}}}},tryPlay:function(a){var b;b=a(this.prename,Date.now()-this.pretime);if(b){return this.play(b)}},play:function(a){var b;b=this.sounds[a];if(!b){b=this.createSound(a);this.sounds[a]=b}if(this.prename){this.sounds[this.prename].stop()}b.play();this.prename=a;return this.pretime=Date.now()},createSound:function(b){var a;a=\"resources/sounds/\"+b+\".m4a\";return Ext.Viewport.add({xtype:\"audio\",hidden:true,url:a}",288172,32825,",\"Ext.Date\"],xtype:\"runningitem\",config:{timerType:\"go\",time:null,timeout:null,",321027,858,321908,245,"Timeout",311646,35,"timeout",322125,298,"b){var e,a,g,f,d,c;if(b==null){b=this.getRecord()}",323295,41,"a=b.get(\"status\");if(a===\"open\"){this.setTimerType(\"ready\");this.setTime(0);return}c=b",286546,37,"g=d.findRecord(\"uid\",c);if(g){f=g.get(\"time\");this.setTimerType(g.get(\"type\"))}else{f=b",322583,32,"this.setTimerType(\"go\")}e",322664,47,"e.refreshAll(",322726,33,"f)},timeText:function(b){var a;a=b/3600000;a=a.toFixed(0);a=a>0?a+\":\":\"\";return a+Ext.Date.format(new Date(b),\"i:s\")},updateTime:function(d){var b,a,c",322803,61,"a.setText(this.timeText(d));if(this.getTimerType()===\"ready\"){this.setTimeout(false);if(a){a.hide()}b.setIconCls(\"play1\");return b.setUi(\"confirm\")}else{if(this.getTimerType()===\"go\"){c=d/15000;b.setIconCls(\"pause\");if(c>100){this.setTimeout(true)",323027,62,"else{this.setTimeout(false);a.setValue(c);a.setUi(null);return b.setUi(\"normal\")}}else{c=100-d/3000",323121,42,"if(c<0){this.setTimeout(true)",323232,41,"else{this.setTimeout(false);a.setValue(c);return b.setUi(\"normal\")}}}},updateTimeout:function(b,a){if(b&&Ext.isBoolean(a)&&b!==a){return this.onTimeout()}},refreshAll:function(c){var a,b;a=Date.now();b=a-c;return this.setTime(b)",323274,13008,",\"break\"",381564,39,"reak\",a,b)},timeout",381564,38,"timeout\",a,b",337102,51,"break\",\"timeou",336327,33,"eady",336541,68,"RunningItem\"],xtype:\"ready\",config:{store:\"Ready",335874,408,",\"break\"",336238,36,337094,59,"start\"]",335709,36,337632,50,"RunningList\",\"FvTouch.view.Ready",336427,72,",{xtype:\"ready\"}],control:{runninglist:{refresh:\"onDataviewRefresh\"},ready:{refresh:\"onDataviewRefresh\"}}",310802,34,"this.onDataviewRefresh(this.child(\"runninglist\"));return this.onDataviewRefresh(this.child(\"ready\"))}}},onDataviewRefresh:function(a){if(a.getStore().getCount()){return a.show()}else{return a.hide()}",336500,1191,",\"Ext.Label",337690,72,",initialize:function(){var a;this.callParent();a=this.child(\"todolist\");a.insert(1,{xtype:\"label\",html:\"pull up to preselected view\",cls:\"pullup\",action:\"pullup\",hidden:true});return a.getScrollable().getScroller().on({maxpositionchange:function(b,c){return this.scrollerY=c.y},scroll:function(c,b,d){if(d>(80+this.scrollerY)){this.onPullUp()}},scrollstart",310824,32,"odolist label[action=pullup]\").show()},scrollend",310824,32,"odolist label[action=pullup]\").hide()},scope:this})},onPullUp",311646,35,"pullup\")",338148,40,337327,49,337850,500,"Ext.dataview.List\",{alternateClassName:\"Ext.List\",extend:\"Ext.dataview.DataView\",xtype:\"list\",requires:[\"Ext.dataview.element.List\",\"Ext.dataview.IndexBar\",\"Ext.dataview.ListItemHeader\"],config:{indexBar:false,icon:null,preventSelectionOnDisclose:true,baseCls:Ext.baseCSSPrefix+\"list\",pinHeaders:true,grouped:false,onItemDisclosure:null,disclosureProperty:\"disclosure\",ui:\"normal\"},constructor:function(){this.translateHeader=(Ext.os.is.Android2)?this.translateHeaderCssPosition:this.translateHeaderTransform;",124762,34,"Trigger:function(c,b,f,a,d){if(!(this.getPreventSelectionOnDisclose()&&Ext.fly(d.target).hasCls(this.getBaseCls()+\"-disclosure\"))){this.callParent(arguments)}},initialize:function(){",329336,103,".element.List",329493,90,"element.on({delegate:\".\"+this.getBaseCls()+\"-disclosure\",tap:\"handleItemDisclosure\",scope:b}",329579,287,"updateInline",132399,40,"if(a){this.setOnItemDisclosure(false);this.setIndexBar(false);this.setGrouped(false)}},applyIndexBa",201552,39,"dataview.IndexBar,this.getIndexBar())},updateIndexBar:function(a){if(a&&this.getScrollable()){this.indexBarElement=",177286,44,".getElement().appendChild(a.renderElement);a.on({index:\"onIndex\",scope:this});",130336,37,"+\"-indexed\")}},updateGrouped:function(c){var b=this.getBaseCls(),a=b+\"-grouped\",d=b+\"-ungrouped\";if(c){this.addCls(a);this.removeCls(d);this.doRefreshHeaders();this.updatePinHeaders(this.getPinHeaders())}else{this.addCls(d);this.removeCls(a);if(this.container){this.container.doRemoveHeaders()}this.updatePinHeaders(null)}},updatePinHeaders:function(b){var c=this.getScrollable(),a;if(c){a=c.getScroller()}if(!c){return}if(b&&this.getGrouped()){a.on({refresh:\"doRefreshHeaders\",scroll:\"onScroll\",scope:this});if(!this.header||!this.header.renderElement.dom){this.createHeader()}}else{a.un({refresh:\"doRefreshHeaders\",scroll:\"onScroll\",scope:this});if(this.header){this.header.destroy()}}},createHeader:function(){var e,d=this.getScrollable(),a,b,c;if(d){a=d.getScroller();b=",177286,44,";c=b.getElement()}else{return}this.header=e=Ext.create(\"Ext.dataview.ListItemHeader\",{html:\" \",cls:\"x-list-header-swap\"});c.dom.insertBefore(e.element.dom,a.getContainer().dom.nextSibling);this.translateHeader(1000)},refresh",203037,35,"doRefreshHeaders()},onStoreAdd",100382,44,"doRefreshHeaders()},onStoreRemove",100382,44,"doRefreshHeaders()},onStoreUpdate",100382,44,"doRefreshHeaders()},onStoreClear:function(){this.callParent();if(this.header){this.header.destroy()}this.doRefreshHeaders()},getClosestGroups:function(){var a=this.pinHeaderInfo.offsets,e=this.getScrollable(),d=a.length,b=0,h,g,f,c;if(e){h=e.getScroller().position}else{return{current:0,next:0}}for(;b<d;b++){g=a[b];if(g.offset>h.y){c=g;break}f=g}return{current:f,next:c}},doRefreshHeaders:function(){if(!this.getGrouped()||!this.container){return false}var l=this.findGroupHeaderIndices(),f=l.length,g=this.container.getViewItems(),j=this.pinHeaderInfo={offsets:[]},a=j.offsets,h=this.getScrollable(),e,k,b,d,c;if(f){for(b=0;b<f;b++){d=g[l[b]];if(d){c=this.getItemHeader(d);a.push({header:c,offset:d.offsetTop})}}j.closest=this.getClosestGroups();this.setActiveGroup(j.closest.current);if(c){j.headerHeight=Ext.fly(c).getHeight()}if(h){e=h.getScroller();k=e.position;this.onScroll(e,k.x,k.y)}}},getItemHeader:function(b){var a=Ext.fly(b).down(this.container.headerClsCache);return a?a.dom:null},onScroll:function(e,j,h){var g=this,i=g.pinHeaderInfo,a=i.closest,b=g.activeGroup,c=i.headerHeight,d,f;if(!a){return}d=a.next;f=a.current;if(!this.header||!this.header.renderElement.dom){this.createHeader()}if(h<=0){if(b){g.setActiveGroup(false);a.next=f}this.translateHeader(1000);return}else{if((d&&h>d.offset)||(f&&h<f.offset)){a=i.closest=this.getClosestGroups();d=a.next;f=a.current;this.setActiveGroup(f)}}if(d&&h>0&&d.offset-h<=c){var k=c-(d.offset-h);this.translateHeader(k)}else{this.translateHeader(null)}},translateHeaderTransform:function(a){this.header.renderElement.dom.style.webkitTransform=(a===null)?null:\"translate3d(0px, -\"+a+\"px, 0px)\"},translateHeaderCssPosition:function(a){this.header.renderElement.dom.style.top=(a===null)?null:\"-\"+Math.round(a)+\"px\"},setActiveGroup:function(b){var a=this,c=a.header;if(c){if(b&&b.header){if(!a.activeGroup||a.activeGroup.header!=b.header){c.show();if(c.element){c.setHtml(b.header.innerHTML)}}}else{if(c&&c.element){c.hide()}}}this.activeGroup=b},onIndex:function(o,c){var r=this,s=c.toLowerCase(),b=r.getStore(),q=b.getGroups(),f=q.length,h=r.getScrollable(),n,e,m,g,k,p;if(h){n=r.getScrollable().getScroller()}else{return}for(m=0;m<f;m++){e=q[m];k=e.name.toLowerCase();if(k==s||k>s){g=e;break}else{g=e}}if(h&&g){p=r.container.getViewItems()[b.indexOf(g.children[0])];n.stopAnimation();var l=n.getContainerSize().y,j=n.getSize().y,d=j-l,a=(p.offsetTop>d)?d:p.offsetTop;n.scrollTo(0,a)}},applyOnItemDisclosure:function(a){if(Ext.isFunction(a)){return{scope:this,handler:a}}return a},handleItemDisclosure:function(f){var d=this,c=f.getTarget().parentNode,b=d.container.getViewItems().indexOf(c),a=d.getStore().getAt(b);d.fireAction(\"disclose\",[d,a,c,b,f],\"doDisclose\")},doDisclose:function(f,a,d,c,g){var b=f.getOnItemDisclosure();if(b&&b.handler){b.handler.call(b.scope||f,a,d,c,g)}},findGroupHeaderIndices:function(){if(!this.getGrouped()){return[]}var h=this,k=h.getStore();if(!k){return[]}var b=h.container,d=k.getGroups(),m=d.length,g=b.getViewItems(),c=[],l=b.footerClsShortCache,e,a,f,n,j;b.doRemoveHeaders();b.doRemoveFooterCls();if(g.length){for(e=0;e<m;e++){a=d[e].children[0];f=k.indexOf(a);n=g[f];b.doAddHeader(n,k.getGroupString(a));if(e){Ext.fly(n.previousSibling).addCls(l)}c.push(f)}j=d[--e].children;Ext.fly(g[k.indexOf(j[j.length-1])]).addCls(l)}return c",208944,41,"IndexBar(),this.indexBarElement,this.header);",323343,46,"HistoryList\",{extend:\"Ext.dataview.List\",requires:[\"Ext.Date\",\"FvTouch.dataview.element.List\"],xtype:\"historylist\",config:{store:\"History\",grouped:true,itemCls:\"historyitem\",itemTpl:\"<div class=\\\"x-docking-horizontal\\\">\\n <div class='x-docked-left cmdtype {type}'></div>\\n <div class=\\\"x-body tasktitle\\\">{title}</div>\\n <div class='x-docked-right taskendtime'>{endtime:date('H:i:s')}</div>\\n</div>\",listeners:{itemdoubletap",335980,40,"dd\",a)}},bubbleEvents:[\"add\"]},prepareData:function(g,c,a){var b,f,e;try{f=Ext.getStore(\"Tasks\");e=g.cdata.task.uid;b=f.findRecord(\"uid\",e);return{title:b.get(\"title\"),status:b.get(\"status\"),type:g.type,createtime:new Date(b.get(\"createtime\")),endtime:new Date(g.ctime)}}catch(d){console.info(d);return{title:\"[error]\",type:\"\",createtime:new Data(),endtime:new Date(",337592,32,"History",337632,50,"HistoryList\"],xtype:\"history",336444,42,"history",336493,36,338363,196,"HistoryView",338580,334,",{id:\"historyview\",title:\"History\",xtype:\"historyview",338912,42080,"this.initConfig(a);return this.init()},init:Ext.emptyFn",381018,4216,"FvTouch.store.Histor",385134,32,"requires:[\"Ext.Date\"],config:{store:\"Commands\",sorters:[{property:\"ctime\"}],filters:[{filterFn:function(d){var a,c,b;c=d.get(\"type\");if(c===\"taskdone\"||c===\"postponetask\"){b=d.get(\"cdata\").task.uid;a=Ext.getStore(\"Tasks\").findRecord(\"uid\",b);if(!a){return false}if(c===\"postponetask\"){return d.get(\"cdata\").task.status===\"running\"}else{return true}}else{return false}}}],grouper:{groupFn:function(a){var b;b=new Date(a.get(\"ctime\"));return Ext.Date.format(Ext.Date.clearTime(b),\"D M j Y\")},sortProperty:\"ctime\"}",385064,61,"Read",385134,48,"asks\"",385018,36,"open",385061,35,",init:function(){var a;a=Ext.getStore(\"Preselecteds\");a.on({refresh:\"refreshData\",scope:this});return this.refreshData(a)},addOn",241488,32,"setData([a])}else{return this.clearData()}},refreshData:function(b){var c,a;c=b.first();if(c){a=Ext.getStore(\"Tasks\").getById(c.get(\"task_id\"));return this.addOne(a)}else{return this.addOne(null)}",385218,6373,",\"HistoryList\",\"Sounds",391590,126,",\"History\",\"Read",391714,577]
+["/*022eda3a66e9071b0bedd0435d39bd8357e275fd",42,214314,"if(!b",220795,68,"b.data.uid,title:b.data.title,info:b.data.info",214438,1144,"c){var e,h,f,a,d,i,b,g;g=Ext.getStore(\"Tasks\");b=g.findRecord(\"uid\",c.uid);a=c.title;if(Ext.isEmpty(a)){return false}f=c.info;i=b.get(\"title\");d=b.get(\"info\");if(a===i&&this.isEquals(f,d)){return false}h=this.getDelta(f,d);e={uid:c.uid,\"new\":{},old:{}};if(a!==i){e[\"new\"].title=a;e.old.title=i}if(h.xDelta){e[\"new\"].info=h.xDelta}if(h.yDelta){e.old.info=h.yDelta}return e},doImpl:function(){var c,f,d,a,b,e",215775,71,"e=c[\"new\"].title;if(e!==void 0){a.set(\"title\",e)}f=c[\"new\"].info;if(f){d=this.apply(a.get(\"info\"),f);a.set(\"info\",d)}",215876,43,"f,d,a,b,e",215775,71,"e=c.old.title;if(e!==void 0){a.set(\"title\",e)}f=c.old.info;if(f){d=this.apply(a.get(\"info\"),f);a.set(\"info\",d)}return a.save()},isEquals:function(a,b){if(a===b){return true}else{if(Ext.isPrimitive(a)){return false}else{if(Ext.isArray(a)){return Ext.isArray(b)&&this.isArrayEquals(a,b)}else{if(Ext.isEmpty(a)){return false}else{if(Ext.isDate(a)){return Ext.isDate(b)&&a.getTime()===b.getTime()}else{if(Ext.isFunction(a)){return Ext.isFunction(b)&&a.toString()===b.toString()}else{return Ext.isObject(b)&&this.isObjectEquals(a,b)}}}}}}},isArrayEquals:function(a,d){var b,c;if(a.length===d.length){for(b=0,c=length-1;0<=c?b<c:b>c;0<=c?b++:b--){if(!this.isEquals(a[b],d[b])){return false}}return true}else{return false}},isObjectEquals:function(a,h){var d,e,g,c,f,b;g=Ext.Object.getKeys(a);c=Ext.Object.getKeys(h);e=Ext.Array.merge(g,c);for(f=0,b=e.length;f<b;f++){d=e[f];if(!this.isEquals(a[d],h[d])){return false}}return true},getDelta:function(g,c){var k,i,j,b,h,d,f,a,e;if(!Ext.isObject(g)){g={}}if(!Ext.isObject(c)){c={}}h=Ext.Object.getKeys(g);f=Ext.Object.getKeys(c);j=Ext.Array.merge(h,f);b={};d={};k=false;for(a=0,e=j.length;a<e;a++){i=j[a];if(!this.isEquals(g[i],c[i])){b[i]=g[i];d[i]=c[i];k=true}}if(k){return{xDelta:b,yDelta:d}}else{return{}}},apply:function(c,d){var b,a;c||(c={});for(b in d){a=d[b];if(a===void 0){delete c[b]}else{c[b]=d[b]}}if(Ext.Object.getSize(c)){return c}else{return}",218029,33,"ostpon",214159,57,216131,144,"if(!b",220795,51,"if(!a){return false}",216311,97,"if(",216345,48,"&&Ext.getStore(\"TodosProxy\").last().getId()===a.getId()",216393,1776,"e){var d,b,g,a,f,c;c=Ext.getStore(\"Todos\");g=Ext.getStore(\"Tasks\");b=g.findRecord(\"uid\",e.uid);if(!b",220795,51,"if(!a||",218299,59,"f=Ext.getStore(\"TodosProxy\");d=f.first();if(d&&a.getId()===d.getId()){return false}return{uid:e",218370,195,"getId()",218572,369,"getId()",218572,71,"===e",217520,39,219062,321,"if(!b",220795,51,219419,1352,"!b",218317,41,221134,36,220846,3610,"var b,c;if(Ext.isEmpty(a.title)){return false}b=",224488,69,";c=this.normalize(a.info);if(c){b.info=c}return b",224557,166,"info:e.info",224722,331,",normalize:function(c){var b,a;for(b in c){a=c[b];if(a===void 0){delete c[b]}}if(Ext.Object.getSize(c)){return c}else{return}",225052,13786,",tagsButton:\"mytoolbar #tags",238837,53,",tags:\"onTags",238889,154,",onTags",238906,56,"Tags\").show()},launch:function(){var a;a=",238925,37,"Tags\");a.on({scope:this,change:\"changeTagsBadgeText\"});return this.changeTagsBadgeText(a.getTag())},changeTagsBadgeText:function(a){return this.getTagsButton().setBadgeText(a",284912,36,"AddTask",282368,42,239126,566,"f){var b,e,a,d,c;if(f){e=Ext.getStore(\"Tasks\");d=e.findRecord(\"uid\",f);if(d){c=Ext.clone(d.getData())}}else{a=",238925,37,"Tags\").getTag();if(a){c={info:{tags:[a]}}}}b=this.getPanel();if(!b",239723,33,"b)}if(c){b.setValues(c)}return b",239767,880,"controller.Tags",282368,41,"],config:{tag:window.localStorage.getItem(\"tag\"),views:[\"Tags\"],refs:{panel:{selector:\"tagspanel\",xtype:\"tags",240041,42,"hange:\"onChange\"}}},onChange:function(a,b){return this.setTag(b.tag)},show:function(){var a,b;b=this.getTags();if(Ext.Object.getSize(b)<=1){return}",239592,69,"if(!a.getParent()){Ext.Viewport.add(a)}a.setTags(this.getTags());a.setValue({tag:this.getTag()});return a.show()},getTags:function(){var a,b,c;c=Ext.getStore(\"Tasks\");b={\"\":0};a=this.getTag();if(!Ext.isEmpty(a)){b[a]=0}c.each(function(g){var h,d,j,f,i,e;if(g.data.info&&Ext.isArray(g.data.info.tags)&&g.data.info.tags.length){i=g.data.info.tags;e=[];for(j=0,f=i.length;j<f;j++){d=i[j];h=b[d];e.push(b[d]=h?h+1:1)}return e}else{return b[\"\"]=b[\"\"]+1}});return b",281242,32,"updateTag(this.getTag())},updateTag:function(a){var b;if(Ext.isEmpty(a)){window.localStorage.removeItem(\"tag\")}else{window.localStorage.setItem(\"tag\",a)}b=",238925,37,"TaskFilter\");if(b){b.setFilterFn(this.generateFilterFn(a))}return this.fireEvent(\"change\",a)},generateFilterFn:function(a){if(Ext.isEmpty(a)){return function(){return true}}else{return function(b){return b.data.info&&Ext.isArray(b.data.info.tags)&&Ext.Array.contains(b.data.info.tags,a)}}",240623,173,"itemId:\"add\"},{iconCls:\"tags\",itemId:\"tags\"},{iconCls:\"reply\",itemId",240833,58,"#add",310927,41,"add\")}},\"#undo",310927,41,"undo\")}},\"#tags",310927,41,"tags\")}}}",218029,32,241606,745,277696,73,242351,3153,"FvTouch.field.Tags",233524,35,"agsfield\",applyValue:function(a){if(Ext.isArray(a)){return a}else{if(Ext.isEmpty(a)){return[]}else{return[a.toString()]}",230815,32,";if(!Ext.isArray(b)){Ext.Logger.error(\"value of tagsfield should be an array\")}a=b.join(\", \");return this.callParent([a])},getValue:function(){var a,b;b=this.callParent();a=Ext.Array.map(b.split(\",\"),function(c){return c.trim()});a=Ext.Array.filter(a,function(c){return !Ext.isEmpty(c)});a=Ext.Array.unique(a);if(a.length){return a}else{return}}});Ext.define(\"Ext.Media",241066,33,"media\",config:{url:\"\",enableControls:Ext.os.is.Android?false:true,autoResume:false,autoPause:true,preload:true,loop:false,media:null,volume:1,muted:false",258453,52,"on({scope:a,activate:a.onActivate,deactivate:a.onDeactivate});a.addMediaListener({canplay:\"onCanPlay\",play:\"onPlay\",pause:\"onPause\",ended:\"onEnd\",volumechange:\"onVolumeChange\",timeupdate:\"onTimeUpdate\"})},addMediaListener:function(d,b){var c=this,e=c.media.dom,f=Ext.Function.bind;if(!Ext.isObject(d)){var a=d;d={};d[a]=b}Ext.Object.each(d,function(h,g){if(typeof g!==\"function\"){g=c[g]}if(typeof g==\"function\"){g=f(g,c);e.addEventListener(h,g)}})},onPlay:function(){this.fireEvent(\"play\",this)},onCanPlay:function(){this.fireEvent(\"canplay\",this)},onPause:function(){this.fireEvent(\"pause\",this,this.getCurrentTime())},onEnd:function(){this.fireEvent(\"ended\",this,this.getCurrentTime())},onVolum",193887,35,"volumechange\",this,this.media.dom.volume)},onTimeUpdate:function(){this.fireEvent(\"timeupdate\",this,this.getCurrentTime())},isPlaying:function(){return !Boolean(this.media.dom.paused)},onActivate:function(){var a=this;if(a.getAutoResume()&&!a.isPlaying()){a.play()}},onDeactivate:function(){var a=this;if(a.getAutoResume()&&a.isPlaying()){a.pause()}},updateUrl:function(a){var b=this.media.dom;b.src=a;if(\"load\" in b){b.load()}if(this.isPlaying()){this.play()}},updateEnableControls:function(a){this.media.dom.controls=a?\"controls\":false},updateLoop:function(a){this.media.dom.loop=a?\"loop\":false},play:function(){var a=this.media.dom;if(\"play\" in a){a.play();setTimeout(function(){a.play()},10)}},pause:function(){var a=this.media.dom;if(\"pause\" in a){a.pause()}},toggle:function(){if(this.isPlaying()){this.pause()}else{this.play()}},stop:function(){var a=this;a.setCurrentTime(0);a.fireEvent(\"stop\",a);a.pause()},updateVolume:function(a){this.media.dom.volume=a},updateMuted:function(a){this.fireEvent(\"mutedchange\",this,a);this.media.dom.muted=a},getCurrentTime:function(){return this.media.dom.currentTime},setCurrentTime:function(a){this.media.dom.currentTime=a;return a},getDuration:function(){return this.media.dom.duration",361458,32,"Ext.Object.each(event,function(c,b){if(typeof b!==\"function\"){b=a[b]}if(typeof b==\"function\"){b=bind(b,a);dom.removeEventListener(c,b)}})",245488,32204,241032,128,"striped:false,active:false,text:\"\",html:'<div class=\"x-progress-text x-progress-text-back\"></div>\\n<div class=\"bar\">\\n <div class=\"x-progress-text\"></div>\\n</div>',value:0",298239,42,"return this.on({painted:\"onResize\",resize:\"onResize\",scope:this})},updateValue:function(c,a){var b;if(c===a){return}if(c<0){c=0}if(c>100){c=100}b=\"\"+c+\"%\";return this.element.down(\"* .bar\").setWidth(b",241354,221,",updateText:function(b,a){if(b===a){return}return Ext.Array.each(this.element.query(\".x-progress-text\"),function(c){return Ext.fly(c).setHtml(b)})},onResize:function(){return this.element.down(\".bar .x-progress-text\").setWidth(this.element.getWidth",325241,32,"element.List\",{extend:",328427,32,",updateBaseCls:function(a){var b=this;b.itemClsShortCache=a+\"-item\";b.headerClsShortCache=a+\"-header\";b.headerClsCache=\".\"+b.headerClsShortCache;b.headerItemClsShortCache=a+\"-header-item\";b.footerClsShortCache=a+\"-footer-item\";b.footerClsCache=\".\"+b.footerClsShortCache;b.labelClsShortCache=a+\"-item-label\";b.labelClsCache=\".\"+b.labelClsShortCache;b.disclosureClsShortCache=a+\"-disclosure\";b.disclosureClsCache=\".\"+b.disclosureClsShortCache;b.iconClsShortCache=a+\"-icon\";b.iconClsCache=\".\"+b.iconClsShortCache;this.callParent(arguments)},hiddenDisplayCache:Ext.baseCSSPrefix+\"hidden-display\",getItemElementConfig:function(e,h){var f=this,c=f.dataview,g=c.getItemCls(),b=f.itemClsShortCache,d,a;if(g){b+=\" \"+g}d={cls:b,children:[{cls:f.labelClsShortCache,html:c.getItemTpl().apply(h)}]};if(c.getIcon()){a=h.iconSrc;d.children.push({cls:f.iconClsShortCache,style:\"background-image: \"+a?'url(\"'+newSrc+'\")':\"\"})}if(c.getOnItemDisclosure()){d.children.push({cls:f.disclosureClsShortCache+\" \"+((h[c.getDisclosureProperty()]===false)?f.hiddenDisplayCache:\"\")})}return d},updateListItem:function(d,k){var h=this,e=h.dataview,j=Ext.fly(k),g=j.down(h.labelClsCache,true),c=d.data,b=e.getDisclosureProperty(),a=c&&c.hasOwnProperty(b),l=c&&c.hasOwnProperty(\"iconSrc\"),f,i;g.innerHTML=e.getItemTpl().apply(c);if(a){f=j.down(h.disclosureClsCache);f[c[b]===false?\"removeCls\":\"addCls\"](h.hiddenDisplayCache)}if(e.getIcon()){i=j.down(h.iconClsCache,true);i.style.backgroundImage=l?'url(\"'+l+'\")':\"\"}},doRemoveHeaders:function(){var e=this,a=e.headerItemClsShortCache,b=e.element.query(e.headerClsCache),f=b.length,c=0,d;for(;c<f;c++){d=b[c];Ext.fly(d.parentNode).removeCls(a);Ext.removeNode(d)}},doRemoveFooterCls:function(){var d=this,c=d.footerClsShortCache,a=d.element.query(d.footerClsCache),e=a.length,b=0;for(;b<e;b++){Ext.fly(a[b]).removeCls(c)}},doAddHeader:function(b,a){b=Ext.fly(b);if(a){b.insertFirst(Ext.Element.create({cls:this.headerClsShortCache,html:a}))}b.addCls(this.headerItemClsShortCache)},destroy:function(){this.doRemoveHeaders();",323343,41,"dataview.element.List\",{override:\"Ext.dataview.element.List\",updateListItem:function(d,k){var h=this,e=h.dataview,j=Ext.fly(k),g=j.down(h.labelClsCache,true),c=e.prepareData(d.getData(true),e.getStore().indexOf(d),d),b=e.getDisclosureProperty(),a=c&&c.hasOwnProperty(b),l=c&&c.hasOwnProperty(\"iconSrc\"),f,i;g.innerHTML=e.getItemTpl().apply(c);if(a){f=j.down(h.disclosureClsCache);f[c[b]===false?\"removeCls\":\"addCls\"](h.hiddenDisplayCache)}if(e.getIcon()){i=j.down(h.iconClsCache,true);i.style.backgroundImage=l?'url(\"'+l+'\")':\"\"}}});Ext.define(\"Ext.dataview.IndexBa",168110,51,"IndexBar\"",242208,36,"indexbar\",direction:\"vertical\",letters:[\"A\",\"B\",\"C\",\"D\",\"E\",\"F\",\"G\",\"H\",\"I\",\"J\",\"K\",\"L\",\"M\",\"N\",\"O\",\"P\",\"Q\",\"R\",\"S\",\"T\",\"U\",\"V\",\"W\",\"X\",\"Y\",\"Z\"],ui:\"alphabet\",listPrefix:null},itemCls:Ext.baseCSSPrefix+\"\",updateDirection:function(a,c){var b=this.getBaseCls();this.element.replaceCls(b+\"-\"+c,b+\"-\"+a",168795,49,"wrapper\",classList:[\"x-centered\",\"x-indexbar-wrapper\"]",129959,32,"updateLetters:function(c){this.innerElement.setHtml(\"\");if(c){var b=c.length,a;for(a=0;a<b;a++){this.innerElement.createChild({html:c[a]})}}},updateListPrefix:function(a){if(a&&a.length){this.innerElement.createChild({html:a},0)}",298239,47,"innerElement.on(",16597,35,"end:this.onTouchEnd,touchmove:this.onTouchMove,scope:this})},onTouchStart:function(b,a){b.stopPropagation();this.innerElement.addCls(this.getBaseCls()+\"-pressed\");this.pageBox=this.innerElement.getPageBox();this.onTouchMove(b)},onTouchEnd:function(b,a){this.innerElement.removeCls(this.getBaseCls()+\"-pressed\")},onTouchMove:function(c){var a=Ext.util.Point.fromEvent(c),b,d=this.pageBox;if(!d){d=this.pageBox=this.el.getPageBox()}if(this.getDirection()===\"vertical\"){if(a.y>d.bottom||a.y<d.top){return}b=Ext.Element.fromPoint(d.left+(d.width/2),a.y)}else{if(a.x>d.right||a.x<d.left){return}b=Ext.Element.fromPoint(a.x,d.top+(d.height/2))}if(b){this.fireEvent(\"index\",this,b.dom.innerHTML,b)}},destroy:function(){var c=this,d=Array.prototype.slice.call(c.innerElement.dom.childNodes),b=d",276921,41,"d[a])}",94954,33,";Ext.define(\"Ext.dataview.ListItemHeade",241065,34,"listitemheader\"",242208,36,"list-header\",docked:\"top\"",277749,2597,"b.id===\"historyview\"?\"history",280344,236,"3],preselected:a[0],running:a[1],history:a[2",280611,2025,",pullup:\"onPullup",282635,268,"Ext.getStore(\"TasksProxy\").refresh();",282903,1705,",onPullup",238906,56,"Main\").gotoPreselectedView",239040,37,284642,106,286218,48,282838,44,";",238918,44,"TaskFilter\").on({update:\"refresh\",scope:this",282880,44,284889,337,"timeout:\"onTimeout",285224,70,282747,36,286218,40,285354,857,286218,110,";",238918,44,"TaskFilter\").on({update:\"refresh\",scope:this",286326,200,"b,c){var a,g,f,e,d;d=b.get(\"uid\");e=Ext.getStore(\"Timers\");g=e.findRecord(\"uid\",d);if(g){f=g",286616,38,"e.add({uid:d,time:b.get(\"starttime\"),type:\"go\"});f=\"break\"}e.add({uid:d,time:Date.now(),type:f});if(!c.getTimeout()){a=",238925,37,"Sounds\");if(f===\"go\"){a.play(\"starttask\")}else{a.play(\"break\")}}return c.updateTimer(b)},onTimeout:function(b,c){var a,d;d=c.getTimerType();a=",238925,37,"Sounds\");if(d===\"go\"){return a.play(\"break\")}else{return a.play(\"starttask\")}",283799,94,283898,168,287036,1153,"FvTouch.controller.History",284653,79,"config:{refs:{historyview:\"historyview\"},control:{historyview:{add:\"showAddPanel",285293,61,286258,70,";",238918,44,"TaskFilter\").on({update:\"refresh\",scope:this",286326,56,"a===\"taskdone\"||a===\"postponetask\"",286421,66,"History\").refresh()},showAddPanel:function(a){var b,c;c=a.data.cdata.task.uid;b=Ext.getStore(\"Tasks\").findRecord(\"uid\",c);if(!b){return}",238918,59,"c)}});Ext.define(\"Ext.Audio\",{extend:\"Ext.Media\",xtype:\"audio\"",76282,32,"audio\"},onActivat",258464,39,"if(Ext.os.is.Phone){a.element.show()}},onDeactivat",258464,39,"if(Ext.os.is.Phone){a.element.hide()}},template:[{reference:\"media\",preload:\"auto\",tag:\"audio\",cls:Ext.baseCSSPrefix+\"component\"}]",239872,34,"Sounds",282368,47,"udio\",",280139,32,"],sounds:{",282765,66,"playIfRelated\",undo:function(){return this.play(\"undo\")},scope:this})},createTryPlayFun:function(a,d,c){var b;if(c==null){c=3000}b=new RegExp(\"^\"+a+\"[1-\"+d+\"]$\");return function(g,e){var f;if(e<c&&b.test(g)){f=parseInt(g.substr(a.length));if(f<d){f=f+1}return a+f}else{return a+\"1\"}}},createPreselectTryPlayFun:function(c){var a,b;b=/^preselect[1-8]$/;a=\"preselect\";return function(f,d){var e;if(d<3000&&b.test(f)){e=parseInt(f.substr(9));if(c&&e>1){e=e-1}else{if(e<8){e=e+1}}return a+e}else{return a+\"1\"}}},play",286337,45,"a===\"taskdone\"){if(!this._taskdoneTryPlayFun){this._taskdoneTryPlayFun=this.createTryPlayFun(\"taskdone\",8)}return this.tryPlay(this._taskdoneTryPlayFun)}else{if(a===\"postponetask\"){return this.play(\"postponetask\")}else{if(a===\"starttask\"){return this.play(\"starttask\")}else{if(a===\"deletetask\"){return this.play(\"deletetask\")}else{if(a===\"addtask\"){return this.play(\"addtask\")}else{if(a===\"edittask\"){return this.play(\"edittask\")}else{if(a===\"preselect\"){return this.tryPlay(this.createPreselectTryPlayFun(b.getCdata().preselected))}}}}}}}},tryPlay:function(a){var b;b=a(this.prename,Date.now()-this.pretime);if(b){return this.play(b)}},play:function(a){var b;b=this.sounds[a];if(!b){b=this.createSound(a);this.sounds[a]=b}if(this.prename){this.sounds[this.prename].stop()}b.play();this.prename=a;return this.pretime=Date.now()},createSound:function(b){var a;a=\"resources/sounds/\"+b+\".m4a\";return Ext.Viewport.add({xtype:\"audio\",hidden:true,url:a}",288172,22280,",\"FvTouch.field.Tags\"],config:{values:void 0,",310462,337,",",310740,34,"agsfield\",name:\"tags\",label:\"Tags",310795,267,"applyValues:function(a){if(a===void 0||a===null){return a}else{return Ext.apply(a.info||{},{title:a.title})}},getValues:function(){var b,a;a=",311090,35,";b=a.title;delete a.title;return{title:b,info:a}},update",311130,820,"if(a){this.setUid(a.uid",107504,55,312022,8975,",\"Ext.Date\"],xtype:\"runningitem\",config:{timerType:\"go\",time:null,timeout:null,",321027,858,321908,245,"Timeout",311646,35,"timeout",322125,298,"b){var e,a,g,f,d,c;if(b==null){b=this.getRecord()}",323295,41,"a=b.get(\"status\");if(a===\"open\"){this.setTimerType(\"ready\");this.setTime(0);return}c=b",286546,37,"g=d.findRecord(\"uid\",c);if(g){f=g.get(\"time\");this.setTimerType(g.get(\"type\"))}else{f=b",322583,32,"this.setTimerType(\"go\")}e",322664,47,"e.refreshAll(",322726,33,"f)},timeText:function(b){var a;a=b/3600000;a=a.toFixed(0);a=a>0?a+\":\":\"\";return a+Ext.Date.format(new Date(b),\"i:s\")},updateTime:function(d){var b,a,c",322803,61,"a.setText(this.timeText(d));if(this.getTimerType()===\"ready\"){this.setTimeout(false);if(a){a.hide()}b.setIconCls(\"play1\");return b.setUi(\"confirm\")}else{if(this.getTimerType()===\"go\"){c=d/15000;b.setIconCls(\"pause\");if(c>100){this.setTimeout(true)",323027,62,"else{this.setTimeout(false);a.setValue(c);a.setUi(null);return b.setUi(\"normal\")}}else{c=100-d/3000",323121,42,"if(c<0){this.setTimeout(true)",323232,41,"else{this.setTimeout(false);a.setValue(c);return b.setUi(\"normal\")}}}},updateTimeout:function(b,a){if(b&&Ext.isBoolean(a)&&b!==a){return this.onTimeout()}},refreshAll:function(c){var a,b;a=Date.now();b=a-c;return this.setTime(b)",323274,13008,",\"break\"",381564,39,"reak\",a,b)},timeout",381564,38,"timeout\",a,b",337102,51,"break\",\"timeou",336327,33,"eady",336541,68,"RunningItem\"],xtype:\"ready\",config:{store:\"Ready",335874,408,",\"break\"",336238,36,337094,59,"start\"]",335709,36,337632,50,"RunningList\",\"FvTouch.view.Ready",336427,72,",{xtype:\"ready\"}],control:{runninglist:{refresh:\"onDataviewRefresh\"},ready:{refresh:\"onDataviewRefresh\"}}",310802,34,"this.onDataviewRefresh(this.child(\"runninglist\"));return this.onDataviewRefresh(this.child(\"ready\"))}}},onDataviewRefresh:function(a){if(a.getStore().getCount()){return a.show()}else{return a.hide()}",336500,1191,",\"Ext.Label",337690,72,",initialize:function(){var a;this.callParent();a=this.child(\"todolist\");a.insert(1,{xtype:\"label\",html:\"pull up to preselected view\",cls:\"pullup\",action:\"pullup\",hidden:true});return a.getScrollable().getScroller().on({maxpositionchange:function(b,c){return this.scrollerY=c.y},scroll:function(c,b,d){if(d>(80+this.scrollerY)){this.onPullUp()}},scrollstart",310824,32,"odolist label[action=pullup]\").show()},scrollend",310824,32,"odolist label[action=pullup]\").hide()},scope:this})},onPullUp",311646,35,"pullup\")",338148,40,337327,49,337850,500,"Ext.dataview.List\",{alternateClassName:\"Ext.List\",extend:\"Ext.dataview.DataView\",xtype:\"list\",requires:[\"Ext.dataview.element.List\",\"Ext.dataview.IndexBar\",\"Ext.dataview.ListItemHeader\"],config:{indexBar:false,icon:null,preventSelectionOnDisclose:true,baseCls:Ext.baseCSSPrefix+\"list\",pinHeaders:true,grouped:false,onItemDisclosure:null,disclosureProperty:\"disclosure\",ui:\"normal\"},constructor:function(){this.translateHeader=(Ext.os.is.Android2)?this.translateHeaderCssPosition:this.translateHeaderTransform;",124762,34,"Trigger:function(c,b,f,a,d){if(!(this.getPreventSelectionOnDisclose()&&Ext.fly(d.target).hasCls(this.getBaseCls()+\"-disclosure\"))){this.callParent(arguments)}},initialize:function(){",329336,103,".element.List",329493,90,"element.on({delegate:\".\"+this.getBaseCls()+\"-disclosure\",tap:\"handleItemDisclosure\",scope:b}",329579,287,"updateInline",132399,40,"if(a){this.setOnItemDisclosure(false);this.setIndexBar(false);this.setGrouped(false)}},applyIndexBa",201552,39,"dataview.IndexBar,this.getIndexBar())},updateIndexBar:function(a){if(a&&this.getScrollable()){this.indexBarElement=",177286,44,".getElement().appendChild(a.renderElement);a.on({index:\"onIndex\",scope:this});",130336,37,"+\"-indexed\")}},updateGrouped:function(c){var b=this.getBaseCls(),a=b+\"-grouped\",d=b+\"-ungrouped\";if(c){this.addCls(a);this.removeCls(d);this.doRefreshHeaders();this.updatePinHeaders(this.getPinHeaders())}else{this.addCls(d);this.removeCls(a);if(this.container){this.container.doRemoveHeaders()}this.updatePinHeaders(null)}},updatePinHeaders:function(b){var c=this.getScrollable(),a;if(c){a=c.getScroller()}if(!c){return}if(b&&this.getGrouped()){a.on({refresh:\"doRefreshHeaders\",scroll:\"onScroll\",scope:this});if(!this.header||!this.header.renderElement.dom){this.createHeader()}}else{a.un({refresh:\"doRefreshHeaders\",scroll:\"onScroll\",scope:this});if(this.header){this.header.destroy()}}},createHeader:function(){var e,d=this.getScrollable(),a,b,c;if(d){a=d.getScroller();b=",177286,44,";c=b.getElement()}else{return}this.header=e=Ext.create(\"Ext.dataview.ListItemHeader\",{html:\" \",cls:\"x-list-header-swap\"});c.dom.insertBefore(e.element.dom,a.getContainer().dom.nextSibling);this.translateHeader(1000)},refresh",203037,35,"doRefreshHeaders()},onStoreAdd",100382,44,"doRefreshHeaders()},onStoreRemove",100382,44,"doRefreshHeaders()},onStoreUpdate",100382,44,"doRefreshHeaders()},onStoreClear:function(){this.callParent();if(this.header){this.header.destroy()}this.doRefreshHeaders()},getClosestGroups:function(){var a=this.pinHeaderInfo.offsets,e=this.getScrollable(),d=a.length,b=0,h,g,f,c;if(e){h=e.getScroller().position}else{return{current:0,next:0}}for(;b<d;b++){g=a[b];if(g.offset>h.y){c=g;break}f=g}return{current:f,next:c}},doRefreshHeaders:function(){if(!this.getGrouped()||!this.container){return false}var l=this.findGroupHeaderIndices(),f=l.length,g=this.container.getViewItems(),j=this.pinHeaderInfo={offsets:[]},a=j.offsets,h=this.getScrollable(),e,k,b,d,c;if(f){for(b=0;b<f;b++){d=g[l[b]];if(d){c=this.getItemHeader(d);a.push({header:c,offset:d.offsetTop})}}j.closest=this.getClosestGroups();this.setActiveGroup(j.closest.current);if(c){j.headerHeight=Ext.fly(c).getHeight()}if(h){e=h.getScroller();k=e.position;this.onScroll(e,k.x,k.y)}}},getItemHeader:function(b){var a=Ext.fly(b).down(this.container.headerClsCache);return a?a.dom:null},onScroll:function(e,j,h){var g=this,i=g.pinHeaderInfo,a=i.closest,b=g.activeGroup,c=i.headerHeight,d,f;if(!a){return}d=a.next;f=a.current;if(!this.header||!this.header.renderElement.dom){this.createHeader()}if(h<=0){if(b){g.setActiveGroup(false);a.next=f}this.translateHeader(1000);return}else{if((d&&h>d.offset)||(f&&h<f.offset)){a=i.closest=this.getClosestGroups();d=a.next;f=a.current;this.setActiveGroup(f)}}if(d&&h>0&&d.offset-h<=c){var k=c-(d.offset-h);this.translateHeader(k)}else{this.translateHeader(null)}},translateHeaderTransform:function(a){this.header.renderElement.dom.style.webkitTransform=(a===null)?null:\"translate3d(0px, -\"+a+\"px, 0px)\"},translateHeaderCssPosition:function(a){this.header.renderElement.dom.style.top=(a===null)?null:\"-\"+Math.round(a)+\"px\"},setActiveGroup:function(b){var a=this,c=a.header;if(c){if(b&&b.header){if(!a.activeGroup||a.activeGroup.header!=b.header){c.show();if(c.element){c.setHtml(b.header.innerHTML)}}}else{if(c&&c.element){c.hide()}}}this.activeGroup=b},onIndex:function(o,c){var r=this,s=c.toLowerCase(),b=r.getStore(),q=b.getGroups(),f=q.length,h=r.getScrollable(),n,e,m,g,k,p;if(h){n=r.getScrollable().getScroller()}else{return}for(m=0;m<f;m++){e=q[m];k=e.name.toLowerCase();if(k==s||k>s){g=e;break}else{g=e}}if(h&&g){p=r.container.getViewItems()[b.indexOf(g.children[0])];n.stopAnimation();var l=n.getContainerSize().y,j=n.getSize().y,d=j-l,a=(p.offsetTop>d)?d:p.offsetTop;n.scrollTo(0,a)}},applyOnItemDisclosure:function(a){if(Ext.isFunction(a)){return{scope:this,handler:a}}return a},handleItemDisclosure:function(f){var d=this,c=f.getTarget().parentNode,b=d.container.getViewItems().indexOf(c),a=d.getStore().getAt(b);d.fireAction(\"disclose\",[d,a,c,b,f],\"doDisclose\")},doDisclose:function(f,a,d,c,g){var b=f.getOnItemDisclosure();if(b&&b.handler){b.handler.call(b.scope||f,a,d,c,g)}},findGroupHeaderIndices:function(){if(!this.getGrouped()){return[]}var h=this,k=h.getStore();if(!k){return[]}var b=h.container,d=k.getGroups(),m=d.length,g=b.getViewItems(),c=[],l=b.footerClsShortCache,e,a,f,n,j;b.doRemoveHeaders();b.doRemoveFooterCls();if(g.length){for(e=0;e<m;e++){a=d[e].children[0];f=k.indexOf(a);n=g[f];b.doAddHeader(n,k.getGroupString(a));if(e){Ext.fly(n.previousSibling).addCls(l)}c.push(f)}j=d[--e].children;Ext.fly(g[k.indexOf(j[j.length-1])]).addCls(l)}return c",208944,41,"IndexBar(),this.indexBarElement,this.header);",323343,46,"HistoryList\",{extend:\"Ext.dataview.List\",requires:[\"Ext.Date\",\"FvTouch.dataview.element.List\"],xtype:\"historylist\",config:{store:\"History\",grouped:true,itemCls:\"historyitem\",itemTpl:\"<div class=\\\"x-docking-horizontal\\\">\\n <div class='x-docked-left cmdtype {type}'></div>\\n <div class=\\\"x-body tasktitle\\\">{title}</div>\\n <div class='x-docked-right taskendtime'>{endtime:date('H:i:s')}</div>\\n</div>\",listeners:{itemdoubletap",335980,40,"dd\",a)}},bubbleEvents:[\"add\"]},prepareData:function(g,c,a){var b,f,e;try{f=Ext.getStore(\"Tasks\");e=g.cdata.task.uid;b=f.findRecord(\"uid\",e);return{title:b.get(\"title\"),status:b.get(\"status\"),type:g.type,createtime:new Date(b.get(\"createtime\")),endtime:new Date(g.ctime)}}catch(d){console.info(d);return{title:\"[error]\",type:\"\",createtime:new Data(),endtime:new Date(",337592,32,"History",337632,50,"HistoryList\"],xtype:\"history",336444,42,"history",336493,36,338363,196,"HistoryView",338580,334,",{id:\"historyview\",title:\"History\",xtype:\"historyview",338912,42080,"this.initConfig(a);return this.init()},init:Ext.emptyFn",381018,3269,"Task",385129,53,"asks\"",384847,55,"controller.TaskFilter",282368,42,"FvTouch.store.TasksProxy\"],config:{filterFn:function(){return true}},updateFilterFn:function(a){var b;b=Ext.getStore(\"TasksProxy\");if(b){b.clearFilter(true);b.setFilters([{filterFn:a}]);",282910,37,"return this.fireEvent(\"update\"",379151,34,385126,62,"filters:[{filterFn:function(b){var a,c;c=Ext.getStore(\"TasksProxy\");a=c.getById(b.get(\"task_id\"));return !Ext.isEmpty(a)",384844,64,384287,511,"d){var a,c,b;b=Ext.getStore(\"TodosProxy\");if(b.getCount()&&b.getById(d.getId())&&(d.data.preselected||d.getId()===b.first().getId())){return true}else{c=Ext.getStore(\"Tasks\");a=c.getById(d.get(\"task_id\"));return a&&a.get(\"status\")===\"running\"}",384844,281,"Histor",385134,32,"requires:[\"Ext.Date\"],config:{store:\"Commands\",sorters:[{property:\"ctime\"}],filters:[{filterFn:function(d){var a,c,b;c=d.get(\"type\");if(c===\"taskdone\"||c===\"postponetask\"){b=d.get(\"cdata\").task.uid;a=Ext.getStore(\"TasksProxy\").findRecord(\"uid\",b);if(!a){return false}if(c===\"postponetask\"){return d.get(\"cdata\").task.status===\"running\"}else{return true}}else{return false}}}],grouper:{groupFn:function(a){var b;b=new Date(a.get(\"ctime\"));return Ext.Date.format(Ext.Date.clearTime(b),\"D M j Y\")},sortProperty:\"ctime\"}",385064,61,"Read",385134,48,"asks\"",385018,36,"open",385061,35,",init:function(){var a;a=Ext.getStore(\"Preselecteds\");a.on({refresh:\"refreshData\",scope:this});return this.refreshData(a)},addOn",241488,32,"setData([a])}else{return this.clearData()}},refreshData:function(b){var c,a;c=b.first();if(c){a=Ext.getStore(\"Tasks\").getById(c.get(\"task_id\"));return this.addOne(a)}else{return this.addOne(null)}",385218,4244,"info",389452,1056,"picker.Slot",336541,34,"xtype:\"pickerslot\",alternateClassName:\"Ext.Picker.Slot",305558,33,"data.Store\",\"Ext.Component\",\"Ext.data.StoreManager\"],isSlot:true,config:{title:null,showTitle:true,cls:Ext.baseCSSPrefix+\"picker-slot\",name:null,value:null,flex:1,align:\"left\",displayField:\"text\",valueField:\"value\",scrollable:{direction:\"vertical\",indicators:false,momentumEasing:{minVelocity:2},slotSnapEasing:{duration:100}}",270443,38,"Index=0",270512,34,"Title:function(a){if(a){a=Ext.create(\"Ext.Component\",{cls:Ext.baseCSSPrefix+\"picker-slot-title\",docked:\"top\",html:a})}return a",245151,45,";this.setupBar()}if(a){this.remove(a)}},updateShowTitle:function(a){var b=this.getTitle();if(b){b[a?\"show\":\"hide\"]();this.setupBar()}},updateDisplayField:function(a){this.setItemTpl('<div class=\"'+Ext.baseCSSPrefix+'picker-item {cls} <tpl if=\"extra\">'+Ext.baseCSSPrefix+'picker-invalid</tpl>\">{'+a+\"}</div>\")},updateAlign:function(a,c){var b=this.element;b.addCls(Ext.baseCSSPrefix+\"picker-\"+a);b.removeCls(Ext.baseCSSPrefix+\"picker-\"+c)},applyData:function(d){var f=[],c=d&&d.length,a,b,e;if(d&&Ext.isArray(d)&&c){for(a=0;a<c;a++){b=d[a];e={};if(Ext.isArray(b)){e[this.valueField]=b[0];e[this.displayField]=b[1]}else{if(Ext.isString(b)){e[this.valueField]=b;e[this.displayField]=b}else{if(Ext.isObject(b)){e=b}}}f.push(e)}}return d},updateData:function(",332694,46,"fields:[\"text\",\"value\"],data:a})",325710,43,"var a=this.getScrollable().getScroller();this.on({scope:this,painted:\"onPainted\",itemtap:\"doItemTap\"});a.on({scope:this,scrollend:\"onScrollEn",119325,32,"setupBar()},getPicker:function(){if(!this.picker){this.picker=this.getParent()}return this.picker},setupBa",179886,32,"return}var a=this.element,e=this.innerElement,f=this.getPicker(),g=f.bar,k=this.getValue(),b=this.getShowTitle(),j=this.getTitle(),h=this.getScrollable(),d=h.getScroller(),c=0,l,i;l=g.getHeight();if(b&&j){c=j.element.getHeight()}i=Math.ceil((a.getHeight()-c-l)/2);e.setStyle({padding:i+\"px 0 \"+(i)+\"px\"});d.refresh();d.setSlotSnapSize(l);this.setValue(k)},doItemTap:function(d,a,c,f){var b=this;b.selectedIndex=a;b.selectedNode=c;b.scrollToItem(c,true);b.fireEvent(\"slotpick\",b,b.getValue(true),b.selectedNode)},scrollToItem:function(e,d){var h=e.getY(),c=e.parent(),f=c.getY(),b=this.getScrollable(),a=b.getScroller(),g;g=h-f;a.scrollTo(0,g,d)},onScrollEnd:function(b,a,g){var f=this,d=Math.round(g/f.picker.bar.getHeight()),c=f.getViewItems(),e=c[d];if(e){f.selectedIndex=d;f.selectedNode=e;f.fireEvent(\"slotpick\",f,f.getValue(),f.selectedNode)}},getValue:function(c){var b=this.getStore(),a,d;if(!b){return}if(!this.rendered||!c){return this._value}if(this._value===false){return null}a=b.getAt(this.selectedIndex);d=a?a.get(this.getValueField()):null;return d},setValue:function(f){if(!Ext.isDefined(f)){return}if(!this.rendered||!f){this._value=f;return}var b=this.getStore(),a=this.getViewItems(),d=this.getValueField(),c,e;c=b.find(d,f);if(c!=-1){e=Ext.get(a[c]);this.selectedIndex=c;this.scrollToItem(e);this._value=f}},setValueAnimated:function(f){if(!f){return}if(!this.rendered){this._value=f;return}var b=this.getStore(),a=this.getViewItems(),d=this.getValueField(),c,e;c=b.find(d,f);if(c!=-1){e=Ext.get(a[c]);this.selectedIndex=c;this.scrollToItem(e,{duration:100});this._value=f}}});Ext.define(\"Ext.picker.Picker",242136,36,"picker\",alternateClassName:\"Ext.Picker\",requires:[\"Ext.picker.Slot\",\"Ext.Toolbar\",\"Ext.data.Model\"],isPicker:true",76282,32,"picker\",doneButton:true,cancelButton:true,useTitles:false,slots:null,value:null,height:220,layout:{type:\"hbox\",align:\"stretch\"},centered:false,left:0,right:0,bottom:0,defaultType:\"pickerslot\",toolbar:true},initElement",100382,39,"var b=this,a=Ext.baseCSSPrefix,c=this.innerElement;this.mask=c.createChild({cls:a+\"picker-mask\"});this.bar=this.mask.createChild({cls:a+\"picker-bar\"});b.on({scope:this,delegate:\"pickerslot\",slotpick:\"onSlotPick\"});b.on({scope:this,show:\"onShow\"})},applyToolb",298998,33,"Ext.applyIf(a,{docked:\"top\"});return Ext.factory(a,\"Ext.TitleBar\",this.getToolbar())},updateToolbar",237153,56,"applyDoneButton:function(a){if(a){if(Ext.isBoolean(a)){a={}}if(typeof a==\"string\"){a={text:a}}Ext.applyIf(a,{ui:\"action\",align:\"right\",text:\"Done\"})}return Ext.factory(a,\"Ext.Button\",this.getDoneButton())},updateDoneButton:function(c,a){var b=this.getToolbar();if(c){b.add(c);c.on(\"tap\",this.onDoneButtonTap,this)}else{if(a){b.remove(a)}}},applyCancelButton:function(a){if(a){if(Ext.isBoolean(a)){a={}}if(typeof a==\"string\"){a={text:a}}Ext.applyIf(a,{align:\"left\",text:\"Cancel\"})}return Ext.factory(a,\"Ext.Button\",this.getCancelButton())},updateCancelButton:function(b,a){var c=this.getToolbar();if(b){c.add(b);b.on(\"tap\",this.onCancelButtonTap,this)}else{if(a){c.remove(a)}}},updateUseTitles:function(d){var f=this.getInnerItems(),e=f.length,a=Ext.baseCSSPrefix+\"use-titles\",c,b;if(d",229600,40,"for(c=0;c<e;c++){b=f[c];if(b.isSlot){b.setShowTitle(d)}}},applySlots:function(b){if(b){var c=b.length,a;for(a=0;a<c;a++){b[a].picker=this}}return b},updateSlots:function(a){var b=Ext.baseCSSPrefix,c;this.removeAll();if(a){this.add(a)}c=this.getInnerItems();if(c.length>0){c[0].addCls(b+\"first\");c[c.length-1].addCls(b+\"last\")}this.updateUseTitles(this.getUseTitles())},onDoneButtonTap:function(){var a=this._value,b=this.getValue(true);if(b!=a){this.fireEvent(\"change\",this,b)}this.hide()},onCancelButtonTap:function(){this.fireEvent(\"cancel\",this);this.hide()},onSlotP",213693,32,"pick\",this,this.getValue(true),a)},onShow:function(){if(!this.isHidden()){this.setValue(this._value)}},setValue:function(k,a){var f=this,d=f.getInnerItems(),e=d.length,j,h,c,b,g;if(!k){k={};for(b=0;b<e;b++){k[d[b].config.name]=null}}for(j in k){g=k[j];for(b=0;b<d.length;b++){c=d[b];if(c.config.name==j){h=c;break}}if(h){if(a){h.setValueAnimated(g)}else{h.setValue(g)}}}f._values=f._value=k;return f},setValueAnimated:function(a){this.setValue(a,true)},getValue:function(c){var b={},a=this.getItems().items,f=a.length,e,d;if(c){for(d=0;d<f;d++){e=a[d];if(e&&e.isSlot){b[e.getName()]=e.getValue(c)}}this._values=b}return this._values",261736,38,"Value(",69768,38,");Ext.destroy(this.mask,this.bar)",310272,42,"Tags\",{extend:\"Ext.picker.Picker\",xtype:\"tagspanel\",config:{tags:{},hideOnMaskTap:true},updateTags:function(c){var d,b,a;d=(function(){var e;e=[];for(b in c){a=c[b];e.push({text:b,value:a})}return e})();d=Ext.Array.sort(d,function(e,f){if(Ext.isEmpty(e.text)){return -1}else{if(Ext.isEmpty(f.text)){return 1}else{return f.value-e.value}}});return this.setSlots({name:\"tag\",data:Ext.Array.map(d,function(e){return{text:e.text,value:e.text}})})",390488,1032,"askFilter",391516,75,",\"HistoryList\",\"Sounds\",\"Tags",391590,80,"TasksProxy\",\"TodosProxy",391667,38,"History\",\"Read",391714,577]
2  deltas/app.js/aa2f669328035769cb448ec2451244eb324cba90.json
View
@@ -1 +1 @@
-["/*e98e3e743a2813f1f95750e291a0b5256828bd6a",42,220855,218375,34,"},doImpl:function(){var e,b,d,a,c;d=Ext.getStore(\"Tasks\");e",218493,38,"e.task.uid);b.set(\"status\",\"running\");b",221094,34,"b.save();c=Ext.getStore(\"Todos\");",220810,36,"if(!e",217214,39,"true);a.save();return c.sync()}},un",220954,128,221654,160,";a.save();e.sync()}b=h.todo.order;if(b===void 0||b===null){return}",221264,76,"===g",221342,36,221946,17973,"e){var a,d,c,b;if(e){",240589,48,"if(c){b=Ext.clone(c.getData())}}",239927,59,"if(b){a.setValues(b",239984,1283,241825,259,"this.fireEvent(\"do\",c",242143,139,"this.fireEvent(\"undo\",c",242343,311,"Label",241293,33,258488,35,242654,3157,"Media",241293,33,"media\",config:{url:\"\",enableControls:Ext.os.is.Android?false:true,autoResume:false,autoPause:true,preload:true,loop:false,media:null,volume:1,muted:false",307711,52,"on({scope:a,activate:a.onActivate,deactivate:a.onDeactivate});a.addMediaListener({canplay:\"onCanPlay\",play:\"onPlay\",pause:\"onPause\",ended:\"onEnd\",volumechange:\"onVolumeChange\",timeupdate:\"onTimeUpdate\"})},addMediaListener:function(d,b){var c=this,e=c.media.dom,f=Ext.Function.bind;if(!Ext.isObject(d)){var a=d;d={};d[a]=b}Ext.Object.each(d,function(h,g){if(typeof g!==\"function\"){g=c[g]}if(typeof g==\"function\"){g=f(g,c);e.addEventListener(h,g)}})},onPlay:function(){this.fireEvent(\"play\",this)},onCanPlay:function(){this.fireEvent(\"canplay\",this)},onPause:function(){this.fireEvent(\"pause\",this,this.getCurrentTime())},onEnd:function(){this.fireEvent(\"ended\",this,this.getCurrentTime())},onVolum",193887,35,"volumechange\",this,this.media.dom.volume)},onTimeUpdate:function(){this.fireEvent(\"timeupdate\",this,this.getCurrentTime())},isPlaying:function(){return !Boolean(this.media.dom.paused)},onActivate:function(){var a=this;if(a.getAutoResume()&&!a.isPlaying()){a.play()}},onDeactivate:function(){var a=this;if(a.getAutoResume()&&a.isPlaying()){a.pause()}},updateUrl:function(a){var b=this.media.dom;b.src=a;if(\"load\" in b){b.load()}if(this.isPlaying()){this.play()}},updateEnableControls:function(a){this.media.dom.controls=a?\"controls\":false},updateLoop:function(a){this.media.dom.loop=a?\"loop\":false},play:function(){var a=this.media.dom;if(\"play\" in a){a.play();setTimeout(function(){a.play()},10)}},pause:function(){var a=this.media.dom;if(\"pause\" in a){a.pause()}},toggle:function(){if(this.isPlaying()){this.pause()}else{this.play()}},stop:function(){var a=this;a.setCurrentTime(0);a.fireEvent(\"stop\",a);a.pause()},updateVolume:function(a){this.media.dom.volume=a},updateMuted:function(a){this.fireEvent(\"mutedchange\",this,a);this.media.dom.muted=a},getCurrentTime:function(){return this.media.dom.currentTime},setCurrentTime:function(a){this.media.dom.currentTime=a;return a},getDuration:function(){return this.media.dom.duration",359975,32,"Ext.Object.each(event,function(c,b){if(typeof b!==\"function\"){b=a[b]}if(typeof b==\"function\"){b=bind(b,a);dom.removeEventListener(c,b)}})",245791,12659,258523,11833,"mixin.Selec",249278,33,271373,7668,241259,128,"striped:false,active:false,text:\"\",html:'<div class=\"x-progress-text x-progress-text-back\"></div>\\n<div class=\"bar\">\\n <div class=\"x-progress-text\"></div>\\n</div>',value:0",296175,42,"return this.on({painted:\"onResize\",resize:\"onResize\",scope:this})},updateValue:function(c,a){var b;if(c===a){return}if(c<0){c=0}if(c>100){c=100}b=\"\"+c+\"%\";return this.element.down(\"* .bar\").setWidth(b",241581,221,",updateText:function(b,a){if(b===a){return}return Ext.Array.each(this.element.query(\".x-progress-text\"),function(c){return Ext.fly(c).setHtml(b)})},onResize:function(){return this.element.down(\".bar .x-progress-text\").setWidth(this.element.getWidth())}",275230,36,"List\",{extend:",275244,33,"updateBaseCls:function(a){var b=this;b.itemClsShortCache=a+\"-item\";b.headerClsShortCache=a+\"-header\";b.headerClsCache=\".\"+b.headerClsShortCache;b.headerItemClsShortCache=a+\"-header-item\";b.footerClsShortCache=a+\"-footer-item\";b.footerClsCache=\".\"+b.footerClsShortCache;b.labelClsShortCache=a+\"-item-label\";b.labelClsCache=\".\"+b.labelClsShortCache;b.disclosureClsShortCache=a+\"-disclosure\";b.disclosureClsCache=\".\"+b.disclosureClsShortCache;b.iconClsShortCache=a+\"-icon\";b.iconClsCache=\".\"+b.iconClsShortCache;this.callParent(arguments)},hiddenDisplayCache:Ext.baseCSSPrefix+\"hidden-display\",getItemElementConfig:function(e,h){var f=this,c=f.dataview,g=c.getItemCls(),b=f.itemClsShortCache,d,a;if(g){b+=\" \"+g}d={cls:b,children:[{cls:f.labelClsShortCache,html:c.getItemTpl().apply(h)}]};if(c.getIcon()){a=h.iconSrc;d.children.push({cls:f.iconClsShortCache,style:\"background-image: \"+a?'url(\"'+newSrc+'\")':\"\"})}if(c.getOnItemDisclosure()){d.children.push({cls:f.disclosureClsShortCache+\" \"+((h[c.getDisclosureProperty()]===false)?f.hiddenDisplayCache:\"\")})}return d},updateListItem:function(d,k){var h=this,e=h.dataview,j=Ext.fly(k),g=j.down(h.labelClsCache,true),c=d.data,b=e.getDisclosureProperty(),a=c&&c.hasOwnProperty(b),l=c&&c.hasOwnProperty(\"iconSrc\"),f,i;g.innerHTML=e.getItemTpl().apply(c);if(a){f=j.down(h.disclosureClsCache);f[c[b]===false?\"removeCls\":\"addCls\"](h.hiddenDisplayCache)}if(e.getIcon()){i=j.down(h.iconClsCache,true);i.style.backgroundImage=l?'url(\"'+l+'\")':\"\"}},doRemoveHeaders:function(){var e=this,a=e.headerItemClsShortCache,b=e.element.query(e.headerClsCache),f=b.length,c=0,d;for(;c<f;c++){d=b[c];Ext.fly(d.parentNode).removeCls(a);Ext.removeNode(d)}},doRemoveFooterCls:function(){var d=this,c=d.footerClsShortCache,a=d.element.query(d.footerClsCache),e=a.length,b=0;for(;b<e;b++){Ext.fly(a[b]).removeCls(c)}},doAddHeader:function(b,a){b=Ext.fly(b);if(a){b.insertFirst(Ext.Element.create({cls:this.headerClsShortCache,html:a}))}b.addCls(this.headerItemClsShortCache)},destroy:function(){this.doRemoveHeaders();",278317,33,"FvTouch.dataview.element.List\",{override:\"Ext.dataview.element.List\",updateListItem:function(d,k){var h=this,e=h.dataview,j=Ext.fly(k),g=j.down(h.labelClsCache,true),c=e.prepareData(d.getData(true),e.getStore().indexOf(d),d),b=e.getDisclosureProperty(),a=c&&c.hasOwnProperty(b),l=c&&c.hasOwnProperty(\"iconSrc\"),f,i;g.innerHTML=e.getItemTpl().apply(c);if(a){f=j.down(h.disclosureClsCache);f[c[b]===false?\"removeCls\":\"addCls\"](h.hiddenDisplayCache)}if(e.getIcon()){i=j.down(h.iconClsCache,true);i.style.backgroundImage=l?'url(\"'+l+'\")':\"\"}}});Ext.define(\"Ext.dataview.IndexBa",168110,51,"IndexBar\"",242511,36,"indexbar\",direction:\"vertical\",letters:[\"A\",\"B\",\"C\",\"D\",\"E\",\"F\",\"G\",\"H\",\"I\",\"J\",\"K\",\"L\",\"M\",\"N\",\"O\",\"P\",\"Q\",\"R\",\"S\",\"T\",\"U\",\"V\",\"W\",\"X\",\"Y\",\"Z\"],ui:\"alphabet\",listPrefix:null},itemCls:Ext.baseCSSPrefix+\"\",updateDirection:function(a,c){var b=this.getBaseCls();this.element.replaceCls(b+\"-\"+c,b+\"-\"+a",168795,49,"wrapper\",classList:[\"x-centered\",\"x-indexbar-wrapper\"]",129959,32,"updateLetters:function(c){this.innerElement.setHtml(\"\");if(c){var b=c.length,a;for(a=0;a<b;a++){this.innerElement.createChild({html:c[a]})}}},updateListPrefix:function(a){if(a&&a.length){this.innerElement.createChild({html:a},0)}",296175,47,"innerElement.on(",16597,35,"end:this.onTouchEnd,touchmove:this.onTouchMove,scope:this})},onTouchStart:function(b,a){b.stopPropagation();this.innerElement.addCls(this.getBaseCls()+\"-pressed\");this.pageBox=this.innerElement.getPageBox();this.onTouchMove(b)},onTouchEnd:function(b,a){this.innerElement.removeCls(this.getBaseCls()+\"-pressed\")},onTouchMove:function(c){var a=Ext.util.Point.fromEvent(c),b,d=this.pageBox;if(!d){d=this.pageBox=this.el.getPageBox()}if(this.getDirection()===\"vertical\"){if(a.y>d.bottom||a.y<d.top){return}b=Ext.Element.fromPoint(d.left+(d.width/2),a.y)}else{if(a.x>d.right||a.x<d.left){return}b=Ext.Element.fromPoint(a.x,d.top+(d.height/2))}if(b){this.fireEvent(\"index\",this,b.dom.innerHTML,b)}},destroy:function(){var c=this,d=Array.prototype.slice.call(c.innerElement.dom.childNodes),b=d",278270,41,"d[a])}",94954,33,";Ext.define(\"Ext.dataview.ListItemHeade",241292,34,"listitemheader\"",242511,36,"list-header\",docked:\"top\"",270336,993,279045,1604,"b.id===\"historyview\"?\"history",280647,236,"3],preselected:a[0],running:a[1],history:a[2",280914,1023,"],cmdUndoListeners:[]",282386,981,",pullup:\"onPullup",283366,230,",order:\"before\"})",286047,42,283640,1684,",onPullup",239133,56,"Main\").gotoPreselectedView",240096,37,285358,188,",order:\"before\"})",286047,42,285590,143,",\"Ext.ActionSheet",285732,80,"config:{refs:{main:\"mainview\",runningview:\"runningview\"},control:{runningview:{\"break\":\"onBreak\",timeout:\"onTimeou",283296,71,283478,36,281200,49,"f){var e,a,d,c,b;c=f.getType();d=Ext.getStore(\"Timers\");if(Ext.Array.contains([\"deletetask\",\"postponetask\",\"taskdone\"],c)){b=f.getCdata().task.uid;a=[];d.each(function(g){if(g.get(\"uid\")===b){return a.push(g)}});if(a.length){return d.remove(a)}}else{if(c===\"starttask\"){e=f.getCdata();b=e.task.uid;return d.add({uid:b,time:f.getCtime(),type:\"go\"})}}},undo:function(h){var g,b,a,f,e,d,c;d=h.getType();e=Ext.getStore(\"Timers\");if(Ext.Array.contains([\"deletetask\",\"postponetask\",\"taskdone\"],d)){g=h.getCdata();if(g.task.status===\"running\"){c=h.getCdata().task.uid;f=Ext.getStore(\"Tasks\");a=f.findRecord(\"uid\",c);return e.add({uid:c,time:a.get(\"starttime\"),type:\"go\"})}}else{if(d===\"starttask\"){g=h.getCdata();c=g.task.uid;b=[];e.each(function(i){if(i.get(\"uid\")===c){return b.push(i)}});if(b.length){return e.remove(b)}}}},scope:this,order:\"before\"});",284541,38,285866,62,",order:\"before\"",285928,182,",onBreak:function(b,c){var a,g,f,e,d;d=b.get(\"uid\");e=Ext.getStore(\"Timers\");g=e.findRecord(\"uid\",d);if(g){f=g.get(\"type\")===\"go\"?\"break\":\"go\"}else{e.add({uid:d,time:b.get(\"starttime\"),type:\"go\"});f=\"break\"}e.add({uid:d,time:Date.now(),type:f});if(!c.getTimeout()){a=",239152,37,"Sounds\");if(f===\"go\"){a.play(\"starttask\")}else{a.play(\"break\")}}return c.updateTimer(b)},onTimeout:function(b,c){var a,d;d=c.getTimerType();a=",239152,37,"Sounds\");if(d===\"go\"){return a.play(\"break\")}else{return a.play(\"starttask\")}",284515,94,284614,168,284787,176,284968,173,285146,100,285251,73,283900,616,285615,34,"HistoryList",239311,65,"Manager\"],config:{refs:{historyview:\"historyview\"},control:{historyview:{add:\"showAddPanel",283493,76,285883,45,",order:\"before\"",285928,56,"a===\"taskdone\"||a===\"postponetask\"",286023,66,"History\").refresh()},showAddPanel:function(a){var b,c;c=a.data.cdata.task.uid;b=Ext.getStore(\"Tasks\").findRecord(\"uid\",c);if(!b){return}",239145,59,"c)}});Ext.define(\"Ext.Audio\",{extend:\"Ext.Media\",xtype:\"audio\"",76282,32,"audio\"},onActivat",230064,39,"if(Ext.os.is.Phone){a.element.show()}},onDeactivat",230064,39,"if(Ext.os.is.Phone){a.element.hide()}},template:[{reference:\"media\",preload:\"auto\",tag:\"audio\",cls:Ext.baseCSSPrefix+\"component\"}]",285615,34,"Sounds",239311,42,"Ext.Audio\",",280442,32,"],sounds:{",283496,66,"playIfRelated\",undo:function(){return this.play(\"undo\")},scope:this})},createTryPlayFun:function(a,d,c){var b;if(c==null){c=3000}b=new RegExp(\"^\"+a+\"[1-\"+d+\"]$\");return function(g,e){var f;if(e<c&&b.test(g)){f=parseInt(g.substr(a.length));if(f<d){f=f+1}return a+f}else{return a+\"1\"}}},createPreselectTryPlayFun:function(c){var a,b;b=/^preselect[1-8]$/;a=\"preselect\";return function(f,d){var e;if(d<3000&&b.test(f)){e=parseInt(f.substr(9));if(c&&e>1){e=e-1}else{if(e<8){e=e+1}}return a+e}else{return a+\"1\"}}},play",285939,45,"a===\"taskdone\"){if(!this._taskdoneTryPlayFun){this._taskdoneTryPlayFun=this.createTryPlayFun(\"taskdone\",8)}return this.tryPlay(this._taskdoneTryPlayFun)}else{if(a===\"postponetask\"){return this.play(\"postponetask\")}else{if(a===\"starttask\"){return this.play(\"starttask\")}else{if(a===\"deletetask\"){return this.play(\"deletetask\")}else{if(a===\"addtask\"){return this.play(\"addtask\")}else{if(a===\"edittask\"){return this.play(\"edittask\")}else{if(a===\"preselect\"){return this.tryPlay(this.createPreselectTryPlayFun(b.getCdata().preselected))}}}}}}}},tryPlay:function(a){var b;b=a(this.prename,Date.now()-this.pretime);if(b){return this.play(b)}},play:function(a){var b;b=this.sounds[a];if(!b){b=this.createSound(a);this.sounds[a]=b}if(this.prename){this.sounds[this.prename].stop()}b.play();this.prename=a;return this.pretime=Date.now()},createSound:function(b){var a;a=\"resources/sounds/\"+b+\".m4a\";return Ext.Viewport.add({xtype:\"audio\",hidden:true,url:a}",286108,12042,302050,20657,"Running",322711,63,"Label\",",241258,37,"\"Ext.Button\",\"Ext.Date\"],xtype:\"runningitem\",config:{timerType:\"go\",time:null,timeout:null,record:null,items:[{xtype:\"container\",items:[{xtype:\"button\",docked:\"right\",itemId:\"breakbutton\",iconCls:\"pause\",iconMask:true,cls:\"breakbutton\"},{xtype:\"label\",itemId:\"title\",cls:\"title\"}]",298360,44,"width:\"100%\",padding:0,striped:true,active:true}],cls:\"runningitem\"",298430,47,323224,470,"control:{\"#breakbutton\":{tap:\"onBreak\"}},listeners:{updatedata:\"onUpdateData\"}",296175,42,323872,91,"onBreak",241136,35,"break\",this.getRecord(),this)},onTimeout",241136,35,"timeout\",this.getRecord(),this",324255,155,"UpdateData:function(a,b){if(b){this.child(\"* #title\").setHtml(b.title);return this.updateTimer()}},updateTimer:function(b){var e,a,g,f,d,c;if(b==null){b=this.getRecord(",298866,43,"a=b.get(\"status\");if(a===\"open\"){this.setTimerType(\"ready\");this.setTime(0);return}c=b.get(\"uid\");d=Ext.getStore(\"Timers\");g=d.findRecord(\"uid\",c);if(g){f=g.get(\"time\");this.setTimerType(g.get(\"type\"))}else{f=b",298800,32,"this.setTimerType(\"go\")}e=this;",298923,34,"return e.refreshAll(f)},1000);return this.refreshAll(f)},timeText:function(b){var a;a=b/3600000;a=a.toFixed(0);a=a>0?a+\":\":\"\";return a+Ext.Date.format(new Date(b),\"i:s\")},updateTime:function(d){var b,a,c;a=this.child(\"#progressbar\");b=this.child(\"* #breakbutton\");a.setText(this.timeText(d));if(this.getTimerType()===\"ready\"){this.setTimeout(false);if(a){a.hide()}b.setIconCls(\"play1\");return b.setUi(\"confirm\")}else{if(this.getTimerType()===\"go\"){c=d/15000;b.setIconCls(\"pause\");if(c>100){this.setTimeout(true);a.setValue(100);a.setUi(\"decline\");return b.setUi(\"confirm\")}else{this.setTimeout(false);a.setValue(c);a.setUi(null);return b.setUi(\"normal\")}}else{c=100-d/3000;a.setUi(\"confirm\");b.setIconCls(\"play1\");if(c<0){this.setTimeout(true);a.setValue(0);return b.setUi(\"confirm\")}else{this.setTimeout(false);a.setValue(c);return b.setUi(\"normal\")}}}},updateTimeout:function(b,a){if(b&&Ext.isBoolean(a)&&b!==a){return this.onTimeout()}},refreshAll:function(c){var a,b;a=Date.now();b=a-c;return this.setTime(b",299246,116,322697,1879,325394,10470,"RunningList",335876,68,"RunningItem\"],xtype:\"runninglist\",config:{store:\"Runnings\",",335963,32,"runningitem\",disableSelection:true,maxItemCache:1",336004,206,"running",336214,113,"\"break\"",384343,39,"reak\",a,b)},timeout",384343,38,"timeout\",a,b",336437,51,"break\",\"timeout\"]}});Ext.define(\"FvTouch.view.Ready",335876,68,"RunningItem\"],xtype:\"ready\",config:{store:\"Ready\",",335963,32,"runningitem\",disableSelection:true,maxItemCache:1",336004,206,"running",336214,113,"\"break\"",336334,36,336429,59,"start\"]",299333,86,"RunningList\",\"FvTouch.view.Ready",299440,39,"fit\",items:[{xtype:\"runninglist\"},{xtype:\"ready\"}],control:{runninglist:{refresh:\"onDataviewRefresh\"},ready:{refresh:\"onDataviewRefresh\"}}",312638,34,"this.onDataviewRefresh(this.child(\"runninglist\"));return this.onDataviewRefresh(this.child(\"ready\"))}}},onDataviewRefresh:function(a){if(a.getStore().getCount()){return a.show()}else{return a.hide(",335833,1193,",\"Ext.Label",337025,72,",initialize:function(){var a;this.callParent();a=this.child(\"todolist\");a.insert(1,{xtype:\"label\",html:\"pull up to preselected view\",cls:\"pullup\",action:\"pullup\",hidden:true});return a.getScrollable().getScroller().on({maxpositionchange:function(b,c){return this.scrollerY=c.y},scroll:function(c,b,d){if(d>(80+this.scrollerY)){this.onPullUp()}},scrollstart",312660,32,"odolist label[action=pullup]\").show()},scrollend",312660,32,"odolist label[action=pullup]\").hide()},scope:this})},onPullU",312768,36,"pullup\")",337483,40,337136,549,"Ext.dataview.List\",{alternateClassName:\"Ext.List\",extend:\"Ext.dataview.DataView\",xtype:\"list\",requires:[\"Ext.dataview.element.List\",\"Ext.dataview.IndexBar\",\"Ext.dataview.ListItemHeader\"],config:{indexBar:false,icon:null,preventSelectionOnDisclose:true,baseCls:Ext.baseCSSPrefix+\"list\",pinHeaders:true,grouped:false,onItemDisclosure:null,disclosureProperty:\"disclosure\",ui:\"normal\"},constructor:function(){this.translateHeader=(Ext.os.is.Android2)?this.translateHeaderCssPosition:this.translateHeaderTransform;",124762,34,"Trigger:function(c,b,f,a,d){if(!(this.getPreventSelectionOnDisclose()&&Ext.fly(d.target).hasCls(this.getBaseCls()+\"-disclosure\"))){this.callParent(arguments)}},initialize:function(){",329462,103,".element.List",329619,90,"element.on({delegate:\".\"+this.getBaseCls()+\"-disclosure\",tap:\"handleItemDisclosure\",scope:b}",329705,287,"updateInline",363840,40,"if(a){this.setOnItemDisclosure(false);this.setIndexBar(false);this.setGrouped(false)}},applyIndexBa",201552,39,"dataview.IndexBar,this.getIndexBar())},updateIndexBar:function(a){if(a&&this.getScrollable()){this.indexBarElement=",177286,44,".getElement().appendChild(a.renderElement);a.on({index:\"onIndex\",scope:this});",130336,37,"+\"-indexed\")}},updateGrouped:function(c){var b=this.getBaseCls(),a=b+\"-grouped\",d=b+\"-ungrouped\";if(c){this.addCls(a);this.removeCls(d);this.doRefreshHeaders();this.updatePinHeaders(this.getPinHeaders())}else{this.addCls(d);this.removeCls(a);if(this.container){this.container.doRemoveHeaders()}this.updatePinHeaders(null)}},updatePinHeaders:function(b){var c=this.getScrollable(),a;if(c){a=c.getScroller()}if(!c){return}if(b&&this.getGrouped()){a.on({refresh:\"doRefreshHeaders\",scroll:\"onScroll\",scope:this});if(!this.header||!this.header.renderElement.dom){this.createHeader()}}else{a.un({refresh:\"doRefreshHeaders\",scroll:\"onScroll\",scope:this});if(this.header){this.header.destroy()}}},createHeader:function(){var e,d=this.getScrollable(),a,b,c;if(d){a=d.getScroller();b=",177286,44,";c=b.getElement()}else{return}this.header=e=Ext.create(\"Ext.dataview.ListItemHeader\",{html:\" \",cls:\"x-list-header-swap\"});c.dom.insertBefore(e.element.dom,a.getContainer().dom.nextSibling);this.translateHeader(1000)},refresh",275583,37,"RefreshHeaders()},onStoreAdd",367200,39,"this.doRefreshHeaders()},onStoreRemov",367199,40,"this.doRefreshHeaders()},onStoreUpdat",367199,40,"this.doRefreshHeaders()},onStoreClear:function(){this.callParent();if(this.header){this.header.destroy()}this.doRefreshHeaders()},getClosestGroups:function(){var a=this.pinHeaderInfo.offsets,e=this.getScrollable(),d=a.length,b=0,h,g,f,c;if(e){h=e.getScroller().position}else{return{current:0,next:0}}for(;b<d;b++){g=a[b];if(g.offset>h.y){c=g;break}f=g}return{current:f,next:c}},doRefreshHeaders:function(){if(!this.getGrouped()||!this.container){return false}var l=this.findGroupHeaderIndices(),f=l.length,g=this.container.getViewItems(),j=this.pinHeaderInfo={offsets:[]},a=j.offsets,h=this.getScrollable(),e,k,b,d,c;if(f){for(b=0;b<f;b++){d=g[l[b]];if(d){c=this.getItemHeader(d);a.push({header:c,offset:d.offsetTop})}}j.closest=this.getClosestGroups();this.setActiveGroup(j.closest.current);if(c){j.headerHeight=Ext.fly(c).getHeight()}if(h){e=h.getScroller();k=e.position;this.onScroll(e,k.x,k.y)}}},getItemHeader:function(b){var a=Ext.fly(b).down(this.container.headerClsCache);return a?a.dom:null},onScroll:function(e,j,h){var g=this,i=g.pinHeaderInfo,a=i.closest,b=g.activeGroup,c=i.headerHeight,d,f;if(!a){return}d=a.next;f=a.current;if(!this.header||!this.header.renderElement.dom){this.createHeader()}if(h<=0){if(b){g.setActiveGroup(false);a.next=f}this.translateHeader(1000);return}else{if((d&&h>d.offset)||(f&&h<f.offset)){a=i.closest=this.getClosestGroups();d=a.next;f=a.current;this.setActiveGroup(f)}}if(d&&h>0&&d.offset-h<=c){var k=c-(d.offset-h);this.translateHeader(k)}else{this.translateHeader(null)}},translateHeaderTransform:function(a){this.header.renderElement.dom.style.webkitTransform=(a===null)?null:\"translate3d(0px, -\"+a+\"px, 0px)\"},translateHeaderCssPosition:function(a){this.header.renderElement.dom.style.top=(a===null)?null:\"-\"+Math.round(a)+\"px\"},setActiveGroup:function(b){var a=this,c=a.header;if(c){if(b&&b.header){if(!a.activeGroup||a.activeGroup.header!=b.header){c.show();if(c.element){c.setHtml(b.header.innerHTML)}}}else{if(c&&c.element){c.hide()}}}this.activeGroup=b},onIndex:function(o,c){var r=this,s=c.toLowerCase(),b=r.getStore(),q=b.getGroups(),f=q.length,h=r.getScrollable(),n,e,m,g,k,p;if(h){n=r.getScrollable().getScroller()}else{return}for(m=0;m<f;m++){e=q[m];k=e.name.toLowerCase();if(k==s||k>s){g=e;break}else{g=e}}if(h&&g){p=r.container.getViewItems()[b.indexOf(g.children[0])];n.stopAnimation();var l=n.getContainerSize().y,j=n.getSize().y,d=j-l,a=(p.offsetTop>d)?d:p.offsetTop;n.scrollTo(0,a)}},applyOnItemDisclosure:function(a){if(Ext.isFunction(a)){return{scope:this,handler:a}}return a},handleItemDisclosure:function(f){var d=this,c=f.getTarget().parentNode,b=d.container.getViewItems().indexOf(c),a=d.getStore().getAt(b);d.fireAction(\"disclose\",[d,a,c,b,f],\"doDisclose\")},doDisclose:function(f,a,d,c,g){var b=f.getOnItemDisclosure();if(b&&b.handler){b.handler.call(b.scope||f,a,d,c,g)}},findGroupHeaderIndices:function(){if(!this.getGrouped()){return[]}var h=this,k=h.getStore();if(!k){return[]}var b=h.container,d=k.getGroups(),m=d.length,g=b.getViewItems(),c=[],l=b.footerClsShortCache,e,a,f,n,j;b.doRemoveHeaders();b.doRemoveFooterCls();if(g.length){for(e=0;e<m;e++){a=d[e].children[0];f=k.indexOf(a);n=g[f];b.doAddHeader(n,k.getGroupString(a));if(e){Ext.fly(n.previousSibling).addCls(l)}c.push(f)}j=d[--e].children;Ext.fly(g[k.indexOf(j[j.length-1])]).addCls(l)}return c",208944,41,"IndexBar(),this.indexBarElement,this.header);",278317,33,"FvTouch.view.HistoryList\",{extend:\"Ext.dataview.List\",requires:[\"Ext.Date\",\"FvTouch.dataview.element.List\"],xtype:\"historylist\",config:{store:\"History\",grouped:true,itemCls:\"historyitem\",itemTpl:\"<div class=\\\"x-docking-horizontal\\\">\\n <div class='x-docked-left cmdtype {type}'></div>\\n <div class=\\\"x-body tasktitle\\\">{title}</div>\\n <div class='x-docked-right taskendtime'>{endtime:date('H:i:s')}</div>\\n</div>\",listeners:{itemdoubletap",336027,40,"dd\",a)}},bubbleEvents:[\"add\"]},prepareData:function(g,c,a){var b,f,e;try{f=Ext.getStore(\"Tasks\");e=g.cdata.task.uid;b=f.findRecord(\"uid\",e);return{title:b.get(\"title\"),status:b.get(\"status\"),type:g.type,createtime:new Date(b.get(\"createtime\")),endtime:new Date(g.ctime)}}catch(d){console.info(d);return{title:\"[error]\",type:\"\",createtime:new Data(),endtime:new Date(",336927,32,"History",299369,50,"HistoryList\"],xtype:\"history",337609,42,"history",337662,232,"HistoryView",337915,334,",{id:\"historyview\",title:\"History\",xtype:\"historyview\"}]}]",324552,842,338276,25397,367935,15836,"this.initConfig(a);return this.init()},init:Ext.emptyFn",383797,3344,"sorterFn:function(k,j){var h,g,c,a,f,e,d,b,i;i=Ext.getStore(\"Tasks\");d=i.getById(k.get(\"task_id\"));b=i.getById(j.get(\"task_id\"));h=d?d.get(\"status\")===\"running\":false;g=b?b.get(\"status\")===\"running\":false;if(h&&g){f=d.get(\"starttime\");e=b.get(\"starttime\");if(f>e){return -1}else{return 1}}else{if(h){return -1}else{if(g){return 1}else{c=k.get(\"order\");a=j.get(\"order\");if(c>a){return -1}else{return 1}}}}}",387174,475,"store.Histor",387541,32,"requires:[\"Ext.Date\"],config:{store:\"Commands\",sorters:[{property:\"ctime",387173,32,"d){var a,c,b;c=d.get(\"type\");if(c===\"taskdone\"||c===\"postponetask\"){b=d.get(\"cdata\").task.uid;a=Ext.getStore(\"Tasks\").findRecord(\"uid\",b);if(!a){return false}if(c===\"postponetask\"){return d.get(\"cdata\").task.status===\"running\"}else{return true}}else{return false}}}],grouper:{groupFn:function(a){var b;b=new Date(a.get(\"ctime\"));return Ext.Date.format(Ext.Date.clearTime(b),\"D M j Y\")},sortProperty:\"ctime\"}",387471,61,"Ready",387323,53,387426,35,"open",387468,35,",init:function(){var a;a=Ext.getStore(\"Preselecteds\");a.on({refresh:\"refreshData\",scope:this});return this.refreshData(a)},addOn",241715,32,"setData([a])}else{return this.clearData()}},refreshData:function(b){var c,a;c=b.first();if(c){a=Ext.getStore(\"Tasks\").getById(c.get(\"task_id\"));return this.addOne(a)}else{return this.addOne(null)",367903,32,"Web",367566,33,363709,3843,387856,1176,387641,46,388111,52,387774,58,"localstorage\",id:\"pomodoro",389014,1105,",\"HistoryList\",\"Sounds",390118,126,",\"History\",\"Read",390242,577]
+["/*022eda3a66e9071b0bedd0435d39bd8357e275fd",42,214314,"if(!b",220795,68,"b.data.uid,title:b.data.title,info:b.data.info",214438,1144,"c){var e,h,f,a,d,i,b,g;g=Ext.getStore(\"Tasks\");b=g.findRecord(\"uid\",c.uid);a=c.title;if(Ext.isEmpty(a)){return false}f=c.info;i=b.get(\"title\");d=b.get(\"info\");if(a===i&&this.isEquals(f,d)){return false}h=this.getDelta(f,d);e={uid:c.uid,\"new\":{},old:{}};if(a!==i){e[\"new\"].title=a;e.old.title=i}if(h.xDelta){e[\"new\"].info=h.xDelta}if(h.yDelta){e.old.info=h.yDelta}return e},doImpl:function(){var c,f,d,a,b,e",215775,71,"e=c[\"new\"].title;if(e!==void 0){a.set(\"title\",e)}f=c[\"new\"].info;if(f){d=this.apply(a.get(\"info\"),f);a.set(\"info\",d)}",215876,43,"f,d,a,b,e",215775,71,"e=c.old.title;if(e!==void 0){a.set(\"title\",e)}f=c.old.info;if(f){d=this.apply(a.get(\"info\"),f);a.set(\"info\",d)}return a.save()},isEquals:function(a,b){if(a===b){return true}else{if(Ext.isPrimitive(a)){return false}else{if(Ext.isArray(a)){return Ext.isArray(b)&&this.isArrayEquals(a,b)}else{if(Ext.isEmpty(a)){return false}else{if(Ext.isDate(a)){return Ext.isDate(b)&&a.getTime()===b.getTime()}else{if(Ext.isFunction(a)){return Ext.isFunction(b)&&a.toString()===b.toString()}else{return Ext.isObject(b)&&this.isObjectEquals(a,b)}}}}}}},isArrayEquals:function(a,d){var b,c;if(a.length===d.length){for(b=0,c=length-1;0<=c?b<c:b>c;0<=c?b++:b--){if(!this.isEquals(a[b],d[b])){return false}}return true}else{return false}},isObjectEquals:function(a,h){var d,e,g,c,f,b;g=Ext.Object.getKeys(a);c=Ext.Object.getKeys(h);e=Ext.Array.merge(g,c);for(f=0,b=e.length;f<b;f++){d=e[f];if(!this.isEquals(a[d],h[d])){return false}}return true},getDelta:function(g,c){var k,i,j,b,h,d,f,a,e;if(!Ext.isObject(g)){g={}}if(!Ext.isObject(c)){c={}}h=Ext.Object.getKeys(g);f=Ext.Object.getKeys(c);j=Ext.Array.merge(h,f);b={};d={};k=false;for(a=0,e=j.length;a<e;a++){i=j[a];if(!this.isEquals(g[i],c[i])){b[i]=g[i];d[i]=c[i];k=true}}if(k){return{xDelta:b,yDelta:d}}else{return{}}},apply:function(c,d){var b,a;c||(c={});for(b in d){a=d[b];if(a===void 0){delete c[b]}else{c[b]=d[b]}}if(Ext.Object.getSize(c)){return c}else{return}",218029,33,"ostpon",214159,57,216131,144,"if(!b",220795,51,"if(!a){return false}",216311,97,"if(",216345,48,"&&Ext.getStore(\"TodosProxy\").last().getId()===a.getId()",216393,1776,"e){var d,b,g,a,f,c;c=Ext.getStore(\"Todos\");g=Ext.getStore(\"Tasks\");b=g.findRecord(\"uid\",e.uid);if(!b",220795,51,"if(!a||",218299,59,"f=Ext.getStore(\"TodosProxy\");d=f.first();if(d&&a.getId()===d.getId()){return false}return{uid:e",218370,195,"getId()",218572,369,"getId()",218572,71,"===e",217520,39,219062,321,"if(!b",220795,51,219419,1352,"!b",218317,41,220810,87,218375,34,"},doImpl:function(){var e,b,d,a,c;d=Ext.getStore(\"Tasks\");e",218493,38,"e.task.uid);b.set(\"status\",\"running\");b",221094,34,"b.save();c=Ext.getStore(\"Todos\");",220810,36,"if(!e",217214,39,"true);a.save();return c.sync()}},un",220954,128,221654,160,";a.save();e.sync()}b=h.todo.order;if(b===void 0||b===null){return}",221264,76,"===g",221342,36,221946,2737,"var b,c;if(Ext.isEmpty(a.title)){return false}b=",224715,69,";c=this.normalize(a.info);if(c){b.info=c}return b",224784,166,"info:e.info",224949,331,",normalize:function(c){var b,a;for(b in c){a=c[b];if(a===void 0){delete c[b]}}if(Ext.Object.getSize(c)){return c}else{return}",225279,13786,",tagsButton:\"mytoolbar #tags",239064,53,",tags:\"onTags",239116,154,",onTags",239133,56,"Tags\").show()},launch:function(){var a;a=",239152,37,"Tags\");a.on({scope:this,change:\"changeTagsBadgeText\"});return this.changeTagsBadgeText(a.getTag())},changeTagsBadgeText:function(a){return this.getTagsButton().setBadgeText(a)",283056,35,239304,615,"f){var b,e,a,d,c;if(f){e=Ext.getStore(\"Tasks\");d=e.findRecord(\"uid\",f);if(d){c=Ext.clone(d.getData())}}else{a=",239152,37,"Tags\").getTag();if(a){c={info:{tags:[a]}}}}b=this.getPanel();if(!b",284464,33,"b)}if(c){b.setValues(c)}return b",239994,880,"controller.Tags",239311,41,"],config:{tag:window.localStorage.getItem(\"tag\"),views:[\"Tags\"],refs:{panel:{selector:\"tagspanel\",xtype:\"tags",240268,42,"hange:\"onChange\"}}},onChange:function(a,b){return this.setTag(b.tag)},show:function(){var a,b;b=this.getTags();if(Ext.Object.getSize(b)<=1){return}",239819,69,"if(!a.getParent()){Ext.Viewport.add(a)}a.setTags(this.getTags());a.setValue({tag:this.getTag()});return a.show()},getTags:function(){var a,b,c;c=Ext.getStore(\"Tasks\");b={\"\":0};a=this.getTag();if(!Ext.isEmpty(a)){b[a]=0}c.each(function(g){var h,d,j,f,i,e;if(g.data.info&&Ext.isArray(g.data.info.tags)&&g.data.info.tags.length){i=g.data.info.tags;e=[];for(j=0,f=i.length;j<f;j++){d=i[j];h=b[d];e.push(b[d]=h?h+1:1)}return e}else{return b[\"\"]=b[\"\"]+1}});return b",281545,32,"updateTag(this.getTag())},updateTag:function(a){var b;if(Ext.isEmpty(a)){window.localStorage.removeItem(\"tag\")}else{window.localStorage.setItem(\"tag\",a)}b=",239152,37,"TaskFilter\");if(b){b.setFilterFn(this.generateFilterFn(a))}return this.fireEvent(\"change\",a)},generateFilterFn:function(a){if(Ext.isEmpty(a)){return function(){return true}}else{return function(b){return b.data.info&&Ext.isArray(b.data.info.tags)&&Ext.Array.contains(b.data.info.tags,a",336927,34,240881,142,"itemId:\"add\"},{iconCls:\"tags\",itemId:\"tags\"},{iconCls:\"reply\",itemId",241060,58,"#add",312829,41,"add\")}},\"#undo",312829,41,"undo\")}},\"#tags",312829,41,"tags\")}}}",218029,32,241833,251,"this.fireEvent(\"do\",c",242143,139,"this.fireEvent(\"undo\",c",242343,311,"Label",241293,33,258488,35,242654,3153,"FvTouch.field.Tags",233751,35,"agsfield\",applyValue:function(a){if(Ext.isArray(a)){return a}else{if(Ext.isEmpty(a)){return[]}else{return[a.toString()]}}}",241478,34,"!Ext.isArray(b)){Ext.Logger.error(\"value of tagsfield should be an array\")}a=b.join(\", \");return this.callParent([a])},getValue:function(){var a,b;b=this.callParent();a=Ext.Array.map(b.split(\",\"),function(c){return c.trim()});a=Ext.Array.filter(a,function(c){return !Ext.isEmpty(c)});a=Ext.Array.unique(a);if(a.length){return a}else{return}}});Ext.define(\"Ext.Media",241293,33,"media\",config:{url:\"\",enableControls:Ext.os.is.Android?false:true,autoResume:false,autoPause:true,preload:true,loop:false,media:null,volume:1,muted:false",307711,52,"on({scope:a,activate:a.onActivate,deactivate:a.onDeactivate});a.addMediaListener({canplay:\"onCanPlay\",play:\"onPlay\",pause:\"onPause\",ended:\"onEnd\",volumechange:\"onVolumeChange\",timeupdate:\"onTimeUpdate\"})},addMediaListener:function(d,b){var c=this,e=c.media.dom,f=Ext.Function.bind;if(!Ext.isObject(d)){var a=d;d={};d[a]=b}Ext.Object.each(d,function(h,g){if(typeof g!==\"function\"){g=c[g]}if(typeof g==\"function\"){g=f(g,c);e.addEventListener(h,g)}})},onPlay:function(){this.fireEvent(\"play\",this)},onCanPlay:function(){this.fireEvent(\"canplay\",this)},onPause:function(){this.fireEvent(\"pause\",this,this.getCurrentTime())},onEnd:function(){this.fireEvent(\"ended\",this,this.getCurrentTime())},onVolum",193887,35,"volumechange\",this,this.media.dom.volume)},onTimeUpdate:function(){this.fireEvent(\"timeupdate\",this,this.getCurrentTime())},isPlaying:function(){return !Boolean(this.media.dom.paused)},onActivate:function(){var a=this;if(a.getAutoResume()&&!a.isPlaying()){a.play()}},onDeactivate:function(){var a=this;if(a.getAutoResume()&&a.isPlaying()){a.pause()}},updateUrl:function(a){var b=this.media.dom;b.src=a;if(\"load\" in b){b.load()}if(this.isPlaying()){this.play()}},updateEnableControls:function(a){this.media.dom.controls=a?\"controls\":false},updateLoop:function(a){this.media.dom.loop=a?\"loop\":false},play:function(){var a=this.media.dom;if(\"play\" in a){a.play();setTimeout(function(){a.play()},10)}},pause:function(){var a=this.media.dom;if(\"pause\" in a){a.pause()}},toggle:function(){if(this.isPlaying()){this.pause()}else{this.play()}},stop:function(){var a=this;a.setCurrentTime(0);a.fireEvent(\"stop\",a);a.pause()},updateVolume:function(a){this.media.dom.volume=a},updateMuted:function(a){this.fireEvent(\"mutedchange\",this,a);this.media.dom.muted=a},getCurrentTime:function(){return this.media.dom.currentTime},setCurrentTime:function(a){this.media.dom.currentTime=a;return a},getDuration:function(){return this.media.dom.duration",359975,32,"Ext.Object.each(event,function(c,b){if(typeof b!==\"function\"){b=a[b]}if(typeof b==\"function\"){b=bind(b,a);dom.removeEventListener(c,b)}})",245791,12659,258523,11833,"mixin.Selec",249278,33,271373,7668,241259,128,"striped:false,active:false,text:\"\",html:'<div class=\"x-progress-text x-progress-text-back\"></div>\\n<div class=\"bar\">\\n <div class=\"x-progress-text\"></div>\\n</div>',value:0",296175,42,"return this.on({painted:\"onResize\",resize:\"onResize\",scope:this})},updateValue:function(c,a){var b;if(c===a){return}if(c<0){c=0}if(c>100){c=100}b=\"\"+c+\"%\";return this.element.down(\"* .bar\").setWidth(b",241581,221,",updateText:function(b,a){if(b===a){return}return Ext.Array.each(this.element.query(\".x-progress-text\"),function(c){return Ext.fly(c).setHtml(b)})},onResize:function(){return this.element.down(\".bar .x-progress-text\").setWidth(this.element.getWidth())}",275230,36,"List\",{extend:",275244,33,"updateBaseCls:function(a){var b=this;b.itemClsShortCache=a+\"-item\";b.headerClsShortCache=a+\"-header\";b.headerClsCache=\".\"+b.headerClsShortCache;b.headerItemClsShortCache=a+\"-header-item\";b.footerClsShortCache=a+\"-footer-item\";b.footerClsCache=\".\"+b.footerClsShortCache;b.labelClsShortCache=a+\"-item-label\";b.labelClsCache=\".\"+b.labelClsShortCache;b.disclosureClsShortCache=a+\"-disclosure\";b.disclosureClsCache=\".\"+b.disclosureClsShortCache;b.iconClsShortCache=a+\"-icon\";b.iconClsCache=\".\"+b.iconClsShortCache;this.callParent(arguments)},hiddenDisplayCache:Ext.baseCSSPrefix+\"hidden-display\",getItemElementConfig:function(e,h){var f=this,c=f.dataview,g=c.getItemCls(),b=f.itemClsShortCache,d,a;if(g){b+=\" \"+g}d={cls:b,children:[{cls:f.labelClsShortCache,html:c.getItemTpl().apply(h)}]};if(c.getIcon()){a=h.iconSrc;d.children.push({cls:f.iconClsShortCache,style:\"background-image: \"+a?'url(\"'+newSrc+'\")':\"\"})}if(c.getOnItemDisclosure()){d.children.push({cls:f.disclosureClsShortCache+\" \"+((h[c.getDisclosureProperty()]===false)?f.hiddenDisplayCache:\"\")})}return d},updateListItem:function(d,k){var h=this,e=h.dataview,j=Ext.fly(k),g=j.down(h.labelClsCache,true),c=d.data,b=e.getDisclosureProperty(),a=c&&c.hasOwnProperty(b),l=c&&c.hasOwnProperty(\"iconSrc\"),f,i;g.innerHTML=e.getItemTpl().apply(c);if(a){f=j.down(h.disclosureClsCache);f[c[b]===false?\"removeCls\":\"addCls\"](h.hiddenDisplayCache)}if(e.getIcon()){i=j.down(h.iconClsCache,true);i.style.backgroundImage=l?'url(\"'+l+'\")':\"\"}},doRemoveHeaders:function(){var e=this,a=e.headerItemClsShortCache,b=e.element.query(e.headerClsCache),f=b.length,c=0,d;for(;c<f;c++){d=b[c];Ext.fly(d.parentNode).removeCls(a);Ext.removeNode(d)}},doRemoveFooterCls:function(){var d=this,c=d.footerClsShortCache,a=d.element.query(d.footerClsCache),e=a.length,b=0;for(;b<e;b++){Ext.fly(a[b]).removeCls(c)}},doAddHeader:function(b,a){b=Ext.fly(b);if(a){b.insertFirst(Ext.Element.create({cls:this.headerClsShortCache,html:a}))}b.addCls(this.headerItemClsShortCache)},destroy:function(){this.doRemoveHeaders();",278317,33,"FvTouch.dataview.element.List\",{override:\"Ext.dataview.element.List\",updateListItem:function(d,k){var h=this,e=h.dataview,j=Ext.fly(k),g=j.down(h.labelClsCache,true),c=e.prepareData(d.getData(true),e.getStore().indexOf(d),d),b=e.getDisclosureProperty(),a=c&&c.hasOwnProperty(b),l=c&&c.hasOwnProperty(\"iconSrc\"),f,i;g.innerHTML=e.getItemTpl().apply(c);if(a){f=j.down(h.disclosureClsCache);f[c[b]===false?\"removeCls\":\"addCls\"](h.hiddenDisplayCache)}if(e.getIcon()){i=j.down(h.iconClsCache,true);i.style.backgroundImage=l?'url(\"'+l+'\")':\"\"}}});Ext.define(\"Ext.dataview.IndexBa",168110,51,"IndexBar\"",242511,36,"indexbar\",direction:\"vertical\",letters:[\"A\",\"B\",\"C\",\"D\",\"E\",\"F\",\"G\",\"H\",\"I\",\"J\",\"K\",\"L\",\"M\",\"N\",\"O\",\"P\",\"Q\",\"R\",\"S\",\"T\",\"U\",\"V\",\"W\",\"X\",\"Y\",\"Z\"],ui:\"alphabet\",listPrefix:null},itemCls:Ext.baseCSSPrefix+\"\",updateDirection:function(a,c){var b=this.getBaseCls();this.element.replaceCls(b+\"-\"+c,b+\"-\"+a",168795,49,"wrapper\",classList:[\"x-centered\",\"x-indexbar-wrapper\"]",129959,32,"updateLetters:function(c){this.innerElement.setHtml(\"\");if(c){var b=c.length,a;for(a=0;a<b;a++){this.innerElement.createChild({html:c[a]})}}},updateListPrefix:function(a){if(a&&a.length){this.innerElement.createChild({html:a},0)}",296175,47,"innerElement.on(",16597,35,"end:this.onTouchEnd,touchmove:this.onTouchMove,scope:this})},onTouchStart:function(b,a){b.stopPropagation();this.innerElement.addCls(this.getBaseCls()+\"-pressed\");this.pageBox=this.innerElement.getPageBox();this.onTouchMove(b)},onTouchEnd:function(b,a){this.innerElement.removeCls(this.getBaseCls()+\"-pressed\")},onTouchMove:function(c){var a=Ext.util.Point.fromEvent(c),b,d=this.pageBox;if(!d){d=this.pageBox=this.el.getPageBox()}if(this.getDirection()===\"vertical\"){if(a.y>d.bottom||a.y<d.top){return}b=Ext.Element.fromPoint(d.left+(d.width/2),a.y)}else{if(a.x>d.right||a.x<d.left){return}b=Ext.Element.fromPoint(a.x,d.top+(d.height/2))}if(b){this.fireEvent(\"index\",this,b.dom.innerHTML,b)}},destroy:function(){var c=this,d=Array.prototype.slice.call(c.innerElement.dom.childNodes),b=d",278270,41,"d[a])}",94954,33,";Ext.define(\"Ext.dataview.ListItemHeade",241292,34,"listitemheader\"",242511,36,"list-header\",docked:\"top\"",270336,993,279045,1604,"b.id===\"historyview\"?\"history",280647,236,"3],preselected:a[0],running:a[1],history:a[2",280914,1023,"],cmdUndoListeners:[]",282386,981,",pullup:\"onPullup",283366,230,",order:\"before\"})},refresh:function(){Ext.getStore(\"TasksProxy\").refresh();",283619,1705,",onPullup",239133,56,"Main\").gotoPreselectedView",240096,37,285358,106,281200,40,283561,35,",order:\"before\"});",239145,44,"TaskFilter\").on({update",283575,65,285590,143,",\"Ext.ActionSheet",285732,80,"config:{refs:{main:\"mainview\",runningview:\"runningview\"},control:{runningview:{\"break\":\"onBreak\",timeout:\"onTimeou",283296,71,283478,36,281200,49,"f){var e,a,d,c,b;c=f.getType();d=Ext.getStore(\"Timers\");if(Ext.Array.contains([\"deletetask\",\"postponetask\",\"taskdone\"],c)){b=f.getCdata().task.uid;a=[];d.each(function(g){if(g.get(\"uid\")===b){return a.push(g)}});if(a.length){return d.remove(a)}}else{if(c===\"starttask\"){e=f.getCdata();b=e.task.uid;return d.add({uid:b,time:f.getCtime(),type:\"go\"})}}},undo:function(h){var g,b,a,f,e,d,c;d=h.getType();e=Ext.getStore(\"Timers\");if(Ext.Array.contains([\"deletetask\",\"postponetask\",\"taskdone\"],d)){g=h.getCdata();if(g.task.status===\"running\"){c=h.getCdata().task.uid;f=Ext.getStore(\"Tasks\");a=f.findRecord(\"uid\",c);return e.add({uid:c,time:a.get(\"starttime\"),type:\"go\"})}}else{if(d===\"starttask\"){g=h.getCdata();c=g.task.uid;b=[];e.each(function(i){if(i.get(\"uid\")===c){return b.push(i)}});if(b.length){return e.remove(b)}}}},scope:this,order:\"before\"});",281200,40,285875,53,",order:\"before\"});",239145,44,"TaskFilter\").on({update",283575,32,285939,171,",onBreak:function(b,c){var a,g,f,e,d;d=b.get(\"uid\");e=Ext.getStore(\"Timers\");g=e.findRecord(\"uid\",d);if(g){f=g.get(\"type\")===\"go\"?\"break\":\"go\"}else{e.add({uid:d,time:b.get(\"starttime\"),type:\"go\"});f=\"break\"}e.add({uid:d,time:Date.now(),type:f});if(!c.getTimeout()){a=",239152,37,"Sounds\");if(f===\"go\"){a.play(\"starttask\")}else{a.play(\"break\")}}return c.updateTimer(b)},onTimeout:function(b,c){var a,d;d=c.getTimerType();a=",239152,37,"Sounds\");if(d===\"go\"){return a.play(\"break\")}else{return a.play(\"starttask\")}",284515,94,284614,168,284787,176,284968,173,285146,100,285251,73,283900,616,285615,34,"HistoryList",239311,65,"Manager\"],config:{refs:{historyview:\"historyview\"},control:{historyview:{add:\"showAddPanel\"}}},init:function(){",281200,40,285875,53,",order:\"before\"});",239145,44,"TaskFilter\").on({update",283575,32,285939,45,"a===\"taskdone\"||a===\"postponetask\"",286023,66,"History\").refresh()},showAddPanel:function(a){var b,c;c=a.data.cdata.task.uid;b=Ext.getStore(\"Tasks\").findRecord(\"uid\",c);if(!b){return}",239145,59,"c)}});Ext.define(\"Ext.Audio\",{extend:\"Ext.Media\",xtype:\"audio\"",76282,32,"audio\"},onActivat",230064,39,"if(Ext.os.is.Phone){a.element.show()}},onDeactivat",230064,39,"if(Ext.os.is.Phone){a.element.hide()}},template:[{reference:\"media\",preload:\"auto\",tag:\"audio\",cls:Ext.baseCSSPrefix+\"component\"}]",285615,34,"Sounds",239311,42,"Ext.Audio\",",280442,32,"],sounds:{",283496,66,"playIfRelated\",undo:function(){return this.play(\"undo\")},scope:this})},createTryPlayFun:function(a,d,c){var b;if(c==null){c=3000}b=new RegExp(\"^\"+a+\"[1-\"+d+\"]$\");return function(g,e){var f;if(e<c&&b.test(g)){f=parseInt(g.substr(a.length));if(f<d){f=f+1}return a+f}else{return a+\"1\"}}},createPreselectTryPlayFun:function(c){var a,b;b=/^preselect[1-8]$/;a=\"preselect\";return function(f,d){var e;if(d<3000&&b.test(f)){e=parseInt(f.substr(9));if(c&&e>1){e=e-1}else{if(e<8){e=e+1}}return a+e}else{return a+\"1\"}}},play",285939,45,"a===\"taskdone\"){if(!this._taskdoneTryPlayFun){this._taskdoneTryPlayFun=this.createTryPlayFun(\"taskdone\",8)}return this.tryPlay(this._taskdoneTryPlayFun)}else{if(a===\"postponetask\"){return this.play(\"postponetask\")}else{if(a===\"starttask\"){return this.play(\"starttask\")}else{if(a===\"deletetask\"){return this.play(\"deletetask\")}else{if(a===\"addtask\"){return this.play(\"addtask\")}else{if(a===\"edittask\"){return this.play(\"edittask\")}else{if(a===\"preselect\"){return this.tryPlay(this.createPreselectTryPlayFun(b.getCdata().preselected))}}}}}}}},tryPlay:function(a){var b;b=a(this.prename,Date.now()-this.pretime);if(b){return this.play(b)}},play:function(a){var b;b=this.sounds[a];if(!b){b=this.createSound(a);this.sounds[a]=b}if(this.prename){this.sounds[this.prename].stop()}b.play();this.prename=a;return this.pretime=Date.now()},createSound:function(b){var a;a=\"resources/sounds/\"+b+\".m4a\";return Ext.Viewport.add({xtype:\"audio\",hidden:true,url:a}",286108,12042,302050,10238,",\"FvTouch.field.Tags\"],config:{values:void 0,",312298,337,",",312576,34,"agsfield\",name:\"tags\",label:\"Tags",312631,267,"applyValues:function(a){if(a===void 0||a===null){return a}else{return Ext.apply(a.info||{},{title:a.title})}},getValues:function(){var b,a;a=",312926,35,";b=a.title;delete a.title;return{title:b,info:a}},updateValues",324205,32,313004,782,"if(a){this.setUid(a.uid",107504,55,313858,8849,"Running",322711,63,"Label\",",241258,37,"\"Ext.Button\",\"Ext.Date\"],xtype:\"runningitem\",config:{timerType:\"go\",time:null,timeout:null,record:null,items:[{xtype:\"container\",items:[{xtype:\"button\",docked:\"right\",itemId:\"breakbutton\",iconCls:\"pause\",iconMask:true,cls:\"breakbutton\"},{xtype:\"label\",itemId:\"title\",cls:\"title\"}]",298360,44,"width:\"100%\",padding:0,striped:true,active:true}],cls:\"runningitem\"",298430,47,323224,470,"control:{\"#breakbutton\":{tap:\"onBreak\"}},listeners:{updatedata:\"onUpdateData\"}",296175,42,323872,91,"onBreak",241136,35,"break\",this.getRecord(),this)},onTimeout",241136,35,"timeout\",this.getRecord(),this",324255,155,"UpdateData:function(a,b){if(b){this.child(\"* #title\").setHtml(b.title);return this.updateTimer()}},updateTimer:function(b){var e,a,g,f,d,c;if(b==null){b=this.getRecord(",298866,43,"a=b.get(\"status\");if(a===\"open\"){this.setTimerType(\"ready\");this.setTime(0);return}c=b.get(\"uid\");d=Ext.getStore(\"Timers\");g=d.findRecord(\"uid\",c);if(g){f=g.get(\"time\");this.setTimerType(g.get(\"type\"))}else{f=b",298800,32,"this.setTimerType(\"go\")}e=this;",298923,34,"return e.refreshAll(f)},1000);return this.refreshAll(f)},timeText:function(b){var a;a=b/3600000;a=a.toFixed(0);a=a>0?a+\":\":\"\";return a+Ext.Date.format(new Date(b),\"i:s\")},updateTime:function(d){var b,a,c;a=this.child(\"#progressbar\");b=this.child(\"* #breakbutton\");a.setText(this.timeText(d));if(this.getTimerType()===\"ready\"){this.setTimeout(false);if(a){a.hide()}b.setIconCls(\"play1\");return b.setUi(\"confirm\")}else{if(this.getTimerType()===\"go\"){c=d/15000;b.setIconCls(\"pause\");if(c>100){this.setTimeout(true);a.setValue(100);a.setUi(\"decline\");return b.setUi(\"confirm\")}else{this.setTimeout(false);a.setValue(c);a.setUi(null);return b.setUi(\"normal\")}}else{c=100-d/3000;a.setUi(\"confirm\");b.setIconCls(\"play1\");if(c<0){this.setTimeout(true);a.setValue(0);return b.setUi(\"confirm\")}else{this.setTimeout(false);a.setValue(c);return b.setUi(\"normal\")}}}},updateTimeout:function(b,a){if(b&&Ext.isBoolean(a)&&b!==a){return this.onTimeout()}},refreshAll:function(c){var a,b;a=Date.now();b=a-c;return this.setTime(b",299246,116,322697,1879,325394,10470,"RunningList",335876,68,"RunningItem\"],xtype:\"runninglist\",config:{store:\"Runnings\",",335963,32,"runningitem\",disableSelection:true,maxItemCache:1",336004,206,"running",336214,113,"\"break\"",384343,39,"reak\",a,b)},timeout",384343,38,"timeout\",a,b",336437,51,"break\",\"timeout\"]}});Ext.define(\"FvTouch.view.Ready",335876,68,"RunningItem\"],xtype:\"ready\",config:{store:\"Ready\",",335963,32,"runningitem\",disableSelection:true,maxItemCache:1",336004,206,"running",336214,113,"\"break\"",336334,36,336429,59,"start\"]",299333,86,"RunningList\",\"FvTouch.view.Ready",299440,39,"fit\",items:[{xtype:\"runninglist\"},{xtype:\"ready\"}],control:{runninglist:{refresh:\"onDataviewRefresh\"},ready:{refresh:\"onDataviewRefresh\"}}",312638,34,"this.onDataviewRefresh(this.child(\"runninglist\"));return this.onDataviewRefresh(this.child(\"ready\"))}}},onDataviewRefresh:function(a){if(a.getStore().getCount()){return a.show()}else{return a.hide(",335833,1193,",\"Ext.Label",337025,72,",initialize:function(){var a;this.callParent();a=this.child(\"todolist\");a.insert(1,{xtype:\"label\",html:\"pull up to preselected view\",cls:\"pullup\",action:\"pullup\",hidden:true});return a.getScrollable().getScroller().on({maxpositionchange:function(b,c){return this.scrollerY=c.y},scroll:function(c,b,d){if(d>(80+this.scrollerY)){this.onPullUp()}},scrollstart",312660,32,"odolist label[action=pullup]\").show()},scrollend",312660,32,"odolist label[action=pullup]\").hide()},scope:this})},onPullU",312768,36,"pullup\")",337483,40,337136,549,"Ext.dataview.List\",{alternateClassName:\"Ext.List\",extend:\"Ext.dataview.DataView\",xtype:\"list\",requires:[\"Ext.dataview.element.List\",\"Ext.dataview.IndexBar\",\"Ext.dataview.ListItemHeader\"],config:{indexBar:false,icon:null,preventSelectionOnDisclose:true,baseCls:Ext.baseCSSPrefix+\"list\",pinHeaders:true,grouped:false,onItemDisclosure:null,disclosureProperty:\"disclosure\",ui:\"normal\"},constructor:function(){this.translateHeader=(Ext.os.is.Android2)?this.translateHeaderCssPosition:this.translateHeaderTransform;",124762,34,"Trigger:function(c,b,f,a,d){if(!(this.getPreventSelectionOnDisclose()&&Ext.fly(d.target).hasCls(this.getBaseCls()+\"-disclosure\"))){this.callParent(arguments)}},initialize:function(){",329462,103,".element.List",329619,90,"element.on({delegate:\".\"+this.getBaseCls()+\"-disclosure\",tap:\"handleItemDisclosure\",scope:b}",329705,287,"updateInline",363840,40,"if(a){this.setOnItemDisclosure(false);this.setIndexBar(false);this.setGrouped(false)}},applyIndexBa",201552,39,"dataview.IndexBar,this.getIndexBar())},updateIndexBar:function(a){if(a&&this.getScrollable()){this.indexBarElement=",177286,44,".getElement().appendChild(a.renderElement);a.on({index:\"onIndex\",scope:this});",130336,37,"+\"-indexed\")}},updateGrouped:function(c){var b=this.getBaseCls(),a=b+\"-grouped\",d=b+\"-ungrouped\";if(c){this.addCls(a);this.removeCls(d);this.doRefreshHeaders();this.updatePinHeaders(this.getPinHeaders())}else{this.addCls(d);this.removeCls(a);if(this.container){this.container.doRemoveHeaders()}this.updatePinHeaders(null)}},updatePinHeaders:function(b){var c=this.getScrollable(),a;if(c){a=c.getScroller()}if(!c){return}if(b&&this.getGrouped()){a.on({refresh:\"doRefreshHeaders\",scroll:\"onScroll\",scope:this});if(!this.header||!this.header.renderElement.dom){this.createHeader()}}else{a.un({refresh:\"doRefreshHeaders\",scroll:\"onScroll\",scope:this});if(this.header){this.header.destroy()}}},createHeader:function(){var e,d=this.getScrollable(),a,b,c;if(d){a=d.getScroller();b=",177286,44,";c=b.getElement()}else{return}this.header=e=Ext.create(\"Ext.dataview.ListItemHeader\",{html:\" \",cls:\"x-list-header-swap\"});c.dom.insertBefore(e.element.dom,a.getContainer().dom.nextSibling);this.translateHeader(1000)},refresh",275583,37,"RefreshHeaders()},onStoreAdd",367200,39,"this.doRefreshHeaders()},onStoreRemov",367199,40,"this.doRefreshHeaders()},onStoreUpdat",367199,40,"this.doRefreshHeaders()},onStoreClear:function(){this.callParent();if(this.header){this.header.destroy()}this.doRefreshHeaders()},getClosestGroups:function(){var a=this.pinHeaderInfo.offsets,e=this.getScrollable(),d=a.length,b=0,h,g,f,c;if(e){h=e.getScroller().position}else{return{current:0,next:0}}for(;b<d;b++){g=a[b];if(g.offset>h.y){c=g;break}f=g}return{current:f,next:c}},doRefreshHeaders:function(){if(!this.getGrouped()||!this.container){return false}var l=this.findGroupHeaderIndices(),f=l.length,g=this.container.getViewItems(),j=this.pinHeaderInfo={offsets:[]},a=j.offsets,h=this.getScrollable(),e,k,b,d,c;if(f){for(b=0;b<f;b++){d=g[l[b]];if(d){c=this.getItemHeader(d);a.push({header:c,offset:d.offsetTop})}}j.closest=this.getClosestGroups();this.setActiveGroup(j.closest.current);if(c){j.headerHeight=Ext.fly(c).getHeight()}if(h){e=h.getScroller();k=e.position;this.onScroll(e,k.x,k.y)}}},getItemHeader:function(b){var a=Ext.fly(b).down(this.container.headerClsCache);return a?a.dom:null},onScroll:function(e,j,h){var g=this,i=g.pinHeaderInfo,a=i.closest,b=g.activeGroup,c=i.headerHeight,d,f;if(!a){return}d=a.next;f=a.current;if(!this.header||!this.header.renderElement.dom){this.createHeader()}if(h<=0){if(b){g.setActiveGroup(false);a.next=f}this.translateHeader(1000);return}else{if((d&&h>d.offset)||(f&&h<f.offset)){a=i.closest=this.getClosestGroups();d=a.next;f=a.current;this.setActiveGroup(f)}}if(d&&h>0&&d.offset-h<=c){var k=c-(d.offset-h);this.translateHeader(k)}else{this.translateHeader(null)}},translateHeaderTransform:function(a){this.header.renderElement.dom.style.webkitTransform=(a===null)?null:\"translate3d(0px, -\"+a+\"px, 0px)\"},translateHeaderCssPosition:function(a){this.header.renderElement.dom.style.top=(a===null)?null:\"-\"+Math.round(a)+\"px\"},setActiveGroup:function(b){var a=this,c=a.header;if(c){if(b&&b.header){if(!a.activeGroup||a.activeGroup.header!=b.header){c.show();if(c.element){c.setHtml(b.header.innerHTML)}}}else{if(c&&c.element){c.hide()}}}this.activeGroup=b},onIndex:function(o,c){var r=this,s=c.toLowerCase(),b=r.getStore(),q=b.getGroups(),f=q.length,h=r.getScrollable(),n,e,m,g,k,p;if(h){n=r.getScrollable().getScroller()}else{return}for(m=0;m<f;m++){e=q[m];k=e.name.toLowerCase();if(k==s||k>s){g=e;break}else{g=e}}if(h&&g){p=r.container.getViewItems()[b.indexOf(g.children[0])];n.stopAnimation();var l=n.getContainerSize().y,j=n.getSize().y,d=j-l,a=(p.offsetTop>d)?d:p.offsetTop;n.scrollTo(0,a)}},applyOnItemDisclosure:function(a){if(Ext.isFunction(a)){return{scope:this,handler:a}}return a},handleItemDisclosure:function(f){var d=this,c=f.getTarget().parentNode,b=d.container.getViewItems().indexOf(c),a=d.getStore().getAt(b);d.fireAction(\"disclose\",[d,a,c,b,f],\"doDisclose\")},doDisclose:function(f,a,d,c,g){var b=f.getOnItemDisclosure();if(b&&b.handler){b.handler.call(b.scope||f,a,d,c,g)}},findGroupHeaderIndices:function(){if(!this.getGrouped()){return[]}var h=this,k=h.getStore();if(!k){return[]}var b=h.container,d=k.getGroups(),m=d.length,g=b.getViewItems(),c=[],l=b.footerClsShortCache,e,a,f,n,j;b.doRemoveHeaders();b.doRemoveFooterCls();if(g.length){for(e=0;e<m;e++){a=d[e].children[0];f=k.indexOf(a);n=g[f];b.doAddHeader(n,k.getGroupString(a));if(e){Ext.fly(n.previousSibling).addCls(l)}c.push(f)}j=d[--e].children;Ext.fly(g[k.indexOf(j[j.length-1])]).addCls(l)}return c",208944,41,"IndexBar(),this.indexBarElement,this.header);",278317,33,"FvTouch.view.HistoryList\",{extend:\"Ext.dataview.List\",requires:[\"Ext.Date\",\"FvTouch.dataview.element.List\"],xtype:\"historylist\",config:{store:\"History\",grouped:true,itemCls:\"historyitem\",itemTpl:\"<div class=\\\"x-docking-horizontal\\\">\\n <div class='x-docked-left cmdtype {type}'></div>\\n <div class=\\\"x-body tasktitle\\\">{title}</div>\\n <div class='x-docked-right taskendtime'>{endtime:date('H:i:s')}</div>\\n</div>\",listeners:{itemdoubletap",336027,40,"dd\",a)}},bubbleEvents:[\"add\"]},prepareData:function(g,c,a){var b,f,e;try{f=Ext.getStore(\"Tasks\");e=g.cdata.task.uid;b=f.findRecord(\"uid\",e);return{title:b.get(\"title\"),status:b.get(\"status\"),type:g.type,createtime:new Date(b.get(\"createtime\")),endtime:new Date(g.ctime)}}catch(d){console.info(d);return{title:\"[error]\",type:\"\",createtime:new Data(),endtime:new Date(",336927,32,"History",299369,50,"HistoryList\"],xtype:\"history",337609,42,"history",337662,232,"HistoryView",337915,334,",{id:\"historyview\",title:\"History\",xtype:\"historyview\"}]}]",324552,842,338276,25397,367935,15836,"this.initConfig(a);return this.init()},init:Ext.emptyFn",383797,3269,"Task",387536,53,"ask",387592,57,"controller.TaskFilter",239311,50,"store.TasksProxy\"],config:{filterFn:function(){return true}},updateFilterFn:function(a){var b;b=Ext.getStore(\"TasksProxy\");if(b){b.clearFilter(true);b.setFilters([{filterFn:a}]);",283626,37,"return this.fireEvent(\"update\",a)",387502,93,"filters:[{filterFn:function(b){var a,c;c=Ext.getStore(\"TasksProxy\");a=c.getById(b.get(\"task_id\"));return !Ext.isEmpty(a)}}]",387594,55,387060,81,"sorterFn:function(k,j){var h,g,c,a,f,e,d,b,i;i=Ext.getStore(\"Tasks\");d=i.getById(k.get(\"task_id\"));b=i.getById(j.get(\"task_id\"));h=d?d.get(\"status\")===\"running\":false;g=b?b.get(\"status\")===\"running\":false;if(h&&g){f=d.get(\"starttime\");e=b.get(\"starttime\");if(f>e){return -1}else{return 1}}else{if(h){return -1}else{if(g){return 1}else{c=k.get(\"order\");a=j.get(\"order\");if(c>a){return -1}else{return 1}}}}}}],filters:[{filterFn:function(d){var a,c,b;b=Ext.getStore(\"TodosProxy\");if(b.getCount()&&b.getById(d.getId())&&(d.data.preselected||d.getId()===b.first().getId())){return true}else{c=Ext.getStore(\"Tasks\");a=c.getById(d.get(\"task_id\"));return a&&a.get(\"status\")===\"running\"}}}]",387594,55,387309,223,"Histor",387541,32,"requires:[\"Ext.Date\"],config:{store:\"Commands\",sorters:[{property:\"ctime",387173,32,"d){var a,c,b;c=d.get(\"type\");if(c===\"taskdone\"||c===\"postponetask\"){b=d.get(\"cdata\").task.uid;a=Ext.getStore(\"TasksProxy\").findRecord(\"uid\",b);if(!a){return false}if(c===\"postponetask\"){return d.get(\"cdata\").task.status===\"running\"}else{return true}}else{return false}}}],grouper:{groupFn:function(a){var b;b=new Date(a.get(\"ctime\"));return Ext.Date.format(Ext.Date.clearTime(b),\"D M j Y\")},sortProperty:\"ctime\"}",387471,61,"Ready",387323,53,387426,35,"open",387468,35,",init:function(){var a;a=Ext.getStore(\"Preselecteds\");a.on({refresh:\"refreshData\",scope:this});return this.refreshData(a)},addOn",241715,32,"setData([a])}else{return this.clearData()}},refreshData:function(b){var c,a;c=b.first();if(c){a=Ext.getStore(\"Tasks\").getById(c.get(\"task_id\"));return this.addOne(a)}else{return this.addOne(null)",367903,32,"Web",367566,33,363709,3843,387856,334,"info",388180,852,387641,46,388111,52,387774,58,"localstorage\",id:\"pomodoro\"}}});Ext.define(\"Ext.picker.Slot",335876,34,"xtype:\"pickerslot\",alternateClassName:\"Ext.Picker.Slot",307394,33,"data.Store\",\"Ext.Component\",\"Ext.data.StoreManager\"],isSlot:true,config:{title:null,showTitle:true,cls:Ext.baseCSSPrefix+\"picker-slot\",name:null,value:null,flex:1,align:\"left\",displayField:\"text\",valueField:\"value\",scrollable:{direction:\"vertical\",indicators:false,momentumEasing:{minVelocity:2},slotSnapEasing:{duration:100}}",271792,38,"Index=0",271861,34,"Title:function(a){if(a){a=Ext.create(\"Ext.Component\",{cls:Ext.baseCSSPrefix+\"picker-slot-title\",docked:\"top\",html:a})}return a",245454,45,";this.setupBar()}if(a){this.remove(a)}},updateShowTitle:function(a){var b=this.getTitle();if(b){b[a?\"show\":\"hide\"]();this.setupBar()}},updateDisplayField:function(a){this.setItemTpl('<div class=\"'+Ext.baseCSSPrefix+'picker-item {cls} <tpl if=\"extra\">'+Ext.baseCSSPrefix+'picker-invalid</tpl>\">{'+a+\"}</div>\")},updateAlign:function(a,c){var b=this.element;b.addCls(Ext.baseCSSPrefix+\"picker-\"+a);b.removeCls(Ext.baseCSSPrefix+\"picker-\"+c)},applyData:function(d){var f=[],c=d&&d.length,a,b,e;if(d&&Ext.isArray(d)&&c){for(a=0;a<c;a++){b=d[a];e={};if(Ext.isArray(b)){e[this.valueField]=b[0];e[this.displayField]=b[1]}else{if(Ext.isString(b)){e[this.valueField]=b;e[this.displayField]=b}else{if(Ext.isObject(b)){e=b}}}f.push(e)}}return d},updateData:function(",332820,46,"fields:[\"text\",\"value\"],data:a}))",296175,42,"var a=this.getScrollable().getScroller();this.on({scope:this,painted:\"onPainted\",itemtap:\"doItemTap\"});a.on({scope:this,scrollend:\"onScrollEn",119325,32,"setupBar()},getPicker:function(){if(!this.picker){this.picker=this.getParent()}return this.picker},setupBa",179886,32,"return}var a=this.element,e=this.innerElement,f=this.getPicker(),g=f.bar,k=this.getValue(),b=this.getShowTitle(),j=this.getTitle(),h=this.getScrollable(),d=h.getScroller(),c=0,l,i;l=g.getHeight();if(b&&j){c=j.element.getHeight()}i=Math.ceil((a.getHeight()-c-l)/2);e.setStyle({padding:i+\"px 0 \"+(i)+\"px\"});d.refresh();d.setSlotSnapSize(l);this.setValue(k)},doItemTap:function(d,a,c,f){var b=this;b.selectedIndex=a;b.selectedNode=c;b.scrollToItem(c,true);b.fireEvent(\"slotpick\",b,b.getValue(true),b.selectedNode)},scrollToItem:function(e,d){var h=e.getY(),c=e.parent(),f=c.getY(),b=this.getScrollable(),a=b.getScroller(),g;g=h-f;a.scrollTo(0,g,d)},onScrollEnd:function(b,a,g){var f=this,d=Math.round(g/f.picker.bar.getHeight()),c=f.getViewItems(),e=c[d];if(e){f.selectedIndex=d;f.selectedNode=e;f.fireEvent(\"slotpick\",f,f.getValue(),f.selectedNode)}},getValue:function(c){var b=this.getStore(),a,d;if(!b){return}if(!this.rendered||!c){return this._value}if(this._value===false){return null}a=b.getAt(this.selectedIndex);d=a?a.get(this.getValueField()):null;return d},setValue:function(f){if(!Ext.isDefined(f)){return}if(!this.rendered||!f){this._value=f;return}var b=this.getStore(),a=this.getViewItems(),d=this.getValueField(),c,e;c=b.find(d,f);if(c!=-1){e=Ext.get(a[c]);this.selectedIndex=c;this.scrollToItem(e);this._value=f}},setValueAnimated:function(f){if(!f){return}if(!this.rendered){this._value=f;return}var b=this.getStore(),a=this.getViewItems(),d=this.getValueField(),c,e;c=b.find(d,f);if(c!=-1){e=Ext.get(a[c]);this.selectedIndex=c;this.scrollToItem(e,{duration:100});this._value=f}}});Ext.define(\"Ext.picker.Picker",242439,36,"picker\",alternateClassName:\"Ext.Picker\",requires:[\"Ext.picker.Slot\",\"Ext.Toolbar\",\"Ext.data.Model\"],isPicker:true",76282,32,"picker\",doneButton:true,cancelButton:true,useTitles:false,slots:null,value:null,height:220,layout:{type:\"hbox\",align:\"stretch\"},centered:false,left:0,right:0,bottom:0,defaultType:\"pickerslot\",toolbar:true},initElement",367200,43,"b=this,a=Ext.baseCSSPrefix,c=this.innerElement;this.mask=c.createChild({cls:a+\"picker-mask\"});this.bar=this.mask.createChild({cls:a+\"picker-bar\"});b.on({scope:this,delegate:\"pickerslot\",slotpick:\"onSlotPick\"});b.on({scope:this,show:\"onShow\"})},applyToolb",296934,33,"Ext.applyIf(a,{docked:\"top\"});return Ext.factory(a,\"Ext.TitleBar\",this.getToolbar())},updateToolbar",237380,56,"applyDoneButton:function(a){if(a){if(Ext.isBoolean(a)){a={}}if(typeof a==\"string\"){a={text:a}}Ext.applyIf(a,{ui:\"action\",align:\"right\",text:\"Done\"})}return Ext.factory(a,\"Ext.Button\",this.getDoneButton())},updateDoneButton:function(c,a){var b=this.getToolbar();if(c){b.add(c);c.on(\"tap\",this.onDoneButtonTap,this)}else{if(a){b.remove(a)}}},applyCancelButton:function(a){if(a){if(Ext.isBoolean(a)){a={}}if(typeof a==\"string\"){a={text:a}}Ext.applyIf(a,{align:\"left\",text:\"Cancel\"})}return Ext.factory(a,\"Ext.Button\",this.getCancelButton())},updateCancelButton:function(b,a){var c=this.getToolbar();if(b){c.add(b);b.on(\"tap\",this.onCancelButtonTap,this)}else{if(a){c.remove(a)}}},updateUseTitles:function(d){var f=this.getInnerItems(),e=f.length,a=Ext.baseCSSPrefix+\"use-titles\",c,b;if(d",229827,40,"for(c=0;c<e;c++){b=f[c];if(b.isSlot){b.setShowTitle(d)}}},applySlots:function(b){if(b){var c=b.length,a;for(a=0;a<c;a++){b[a].picker=this}}return b},updateSlots:function(a){var b=Ext.baseCSSPrefix,c;this.removeAll();if(a){this.add(a)}c=this.getInnerItems();if(c.length>0){c[0].addCls(b+\"first\");c[c.length-1].addCls(b+\"last\")}this.updateUseTitles(this.getUseTitles())},onDoneButtonTap:function(){var a=this._value,b=this.getValue(true);if(b!=a){this.fireEvent(\"change\",this,b)}this.hide()},onCancelButtonTap:function(){this.fireEvent(\"cancel\",this);this.hide()},onSlotP",213693,32,"pick\",this,this.getValue(true),a)},onShow:function(){if(!this.isHidden()){this.setValue(this._value)}},setValue:function(k,a){var f=this,d=f.getInnerItems(),e=d.length,j,h,c,b,g;if(!k){k={};for(b=0;b<e;b++){k[d[b].config.name]=null}}for(j in k){g=k[j];for(b=0;b<d.length;b++){c=d[b];if(c.config.name==j){h=c;break}}if(h){if(a){h.setValueAnimated(g)}else{h.setValue(g)}}}f._values=f._value=k;return f},setValueAnimated:function(a){this.setValue(a,true)},getValue:function(c){var b={},a=this.getItems().items,f=a.length,e,d;if(c){for(d=0;d<f;d++){e=a[d];if(e&&e.isSlot){b[e.getName()]=e.getValue(c)}}this._values=b}return this._values",262112,38,"Value(",69768,38,");Ext.destroy(this.mask,this.bar)",312108,42,"Tags\",{extend:\"Ext.picker.Picker\",xtype:\"tagspanel\",config:{tags:{},hideOnMaskTap:true},updateTags:function(c){var d,b,a;d=(function(){var e;e=[];for(b in c){a=c[b];e.push({text:b,value:a})}return e})();d=Ext.Array.sort(d,function(e,f){if(Ext.isEmpty(e.text)){return -1}else{if(Ext.isEmpty(f.text)){return 1}else{return f.value-e.value}}});return this.setSlots({name:\"tag\",data:Ext.Array.map(d,function(e){return{text:e.text,value:e.text}})})",389016,1032,"askFilter",390044,75,",\"HistoryList\",\"Sounds\",\"Tags",390118,80,"TasksProxy\",\"TodosProxy",390195,38,"History\",\"Read",390242,577]
2  deltas/app.js/c77c04dad5aa5ea05e3d9f1bb9ed38b76b430695.json
View
@@ -1 +1 @@
-["/*e98e3e743a2813f1f95750e291a0b5256828bd6a",42,214815,"Id(",216879,122,220619,41,218698,82,215107,49,215167,142,"Id(",219501,178,"Edit",214160,56,215552,129,"(\"title\")",215693,746,"uid:d.uid,",216439,225,"if(g.task.uid){",218778,33,"a=e.findRecord(\"task_id\",c.getId());if(a.get(\"order\")!==b){console.info(this);Ext.Logger.error(\"different order when do postponetask\")}}else{",216664,53,"}",216718,156,"Id(",216879,347,"if(g.task.uid){",218778,33,"a=e.findRecord(\"task_id\",c.getId());if(a.getId()!==e.last().getId()){console.info(this);Ext.Logger.error(\"todo is not the last one when undo postponetask\")}}else{",217226,38,"}",216718,42,"g",220767,32,217340,99,"Id(",219501,122,217566,421,220027,35,",doImpl:function(){var f,",218012,58,"f=this.getCdata();b=d.findRecord(\"uid\",f",216287,42,"e=a.get(\"preselected\");if(Ext.isBoolean(f.preselected)&&f.preselected!==e){console.info(this);Ext.Logger.error(\"different preselected value when do preselect\")}a.set(\"preselected\",!",218192,49,"var f,",218012,58,"f=this.getCdata();b=d.findRecord(\"uid\",f",216287,42,"e=a.get(\"preselected\");if(Ext.isBoolean(f.preselected)&&f.preselected===e){console.info(this);Ext.Logger.error(\"same preselected value when undo preselect\")}a.set(\"preselected\",!e);a.save(",224378,33,218277,239,"getId()",218523,380,"getId()",218910,100,"Id(",216879,122,220619,41,219178,318,"Id(",219501,446,"getId()",219954,53,220028,58,"e,b,d,a,c;d=Ext.getStore(\"Tasks\");e=this.getCdata();b=d.findRecord(\"uid\",e.task.uid);b.set(\"status\",\"running\");b",220204,34,"b.save();c=Ext.getStore(\"Todos\");a=c.findRecord(\"task_id\",b.getId());if(!e",217035,39,"true);a.save();return c.sync()}},un",220064,128,220766,101,"getId()",220874,52,";a.save();e.sync()}b=h.todo.order;if(b===void 0||b===null){return}",220942,105,"Id(",221052,49,"Id(",221106,17929,"e){var a,d,c,b;if(e){",239705,48,"if(c){b=Ext.clone(c.getData())}}",239043,59,"if(b){a.setValues(b",239100,1283,240941,259,"this.fireEvent(\"do\",c",241259,139,"this.fireEvent(\"undo\",c",241459,311,255102,73,"TitleBar",333628,33,"title",221306,52,",\"Ext.util.SizeMonito",221356,63,"cls:Ext.baseCSSPrefix+\"navigation-",221414,66,"},items:[]},maxButtonWidth:\"40%\",constructor:function(){this.refreshTitlePosition=Ext.Function.createThrottled(this.refreshTitlePosition,50,this);this.callParent(arguments)},beforeInitialize:function(){this.applyItems=this.applyInitialItems},initialize:function(){delete this.applyItems;this.add(this.initialItems);delete this.initialItems;this.on({painted:\"refreshTitlePosition\",single:true})},applyInitialItems:function(a){var b=this,c=b.getDefaults()||{};b.initialItems=a;b.leftBox=b.add({xtype:\"container\",style:\"position: relative",221459,37,",listeners:{resize:\"refreshTitlePosition\",scope:b}});b.spacer=b.add({xtype:\"component\",style:\"position: relative\",flex:1,listeners:{resize:\"refreshTitlePosition\",scope:b}});b.rightBox=b.add({xtype:\"container\",style:\"position: relative",221459,37,",listeners:{resize:\"refreshTitlePosition\",scope:b}});b.titleComponent=b.add({xtype:\"title\",hidden:c.hidden,centered:true});b.doAdd=b.doBoxAdd;b.remove=b.doBoxRemove;b.doInsert=b.doBoxInsert},doBoxAdd:function(a){if(a.config.align==\"right\"){this.rightBox.add(a)}else{this.leftBox.add(a)}},doBoxRemove:function(a){if(a.config.align==\"right\"){this.rightBox.remove(a)}else{this.leftBox.remove(a)}},doBoxInsert:function(a,b){if(b.config.align==\"right\"){this.rightBox.add(b)}else{this.leftBox.add(b)}},getMaxButtonWidth:function(){var a=this.maxButtonWidth;if(Ext.isString(this.maxButtonWidth)){a=parseInt(a.replace(\"%\",\"\"),10);a=Math.round((this.element.getWidth()/100)*a)}return a},refreshTitlePosition:function(){var f=this.titleComponent.renderElement;f.setWidth(null);f.setLeft(null);var a=this.leftBox,c=a.down(\"button\"),h,m;if(c){if(c.getWidth()==null){c.renderElement.setWidth(\"auto\")}h=a.renderElement.getWidth();m=this.getMaxButtonWidth();if(h>m){c.renderElement.setWidth(m)}}var j=this.spacer.renderElement.getPageBox(),k=f.getPageBox(),g=k.width-j.width,d=k.left,i=k.right,b,l,e;if(g>0){f.setWidth(j.width);b=g/2;d+=b;i-=b}l=j.left-d;e=i-j.right;if(l>0){f.setLeft(l)}else{if(e>0){f.setLeft(-e)}}f.repaint()},updateTitle:function(a){this.titleComponent.setTitle(a);",169470,33,"TitlePosition()}",241750,713,"Media",240409,33,"media\",config:{url:\"\",enableControls:Ext.os.is.Android?false:true,autoResume:false,autoPause:true,preload:true,loop:false,media:null,volume:1,muted:false",303631,52,"on({scope:a,activate:a.onActivate,deactivate:a.onDeactivate});a.addMediaListener({canplay:\"onCanPlay\",play:\"onPlay\",pause:\"onPause\",ended:\"onEnd\",volumechange:\"onVolumeChange\",timeupdate:\"onTimeUpdate\"})},addMediaListener:function(d,b){var c=this,e=c.media.dom,f=Ext.Function.bind;if(!Ext.isObject(d)){var a=d;d={};d[a]=b}Ext.Object.each(d,function(h,g){if(typeof g!==\"function\"){g=c[g]}if(typeof g==\"function\"){g=f(g,c);e.addEventListener(h,g)}})},onPlay:function(){this.fireEvent(\"play\",this)},onCanPlay:function(){this.fireEvent(\"canplay\",this)},onPause:function(){this.fireEvent(\"pause\",this,this.getCurrentTime())},onEnd:function(){this.fireEvent(\"ended\",this,this.getCurrentTime())},onVolum",193887,35,"volumechange\",this,this.media.dom.volume)},onTimeUpdate:function(){this.fireEvent(\"timeupdate\",this,this.getCurrentTime())},isPlaying:function(){return !Boolean(this.media.dom.paused)},onActivate:function(){var a=this;if(a.getAutoResume()&&!a.isPlaying()){a.play()}},onDeactivate:function(){var a=this;if(a.getAutoResume()&&a.isPlaying()){a.pause()}},updateUrl:function(a){var b=this.media.dom;b.src=a;if(\"load\" in b){b.load()}if(this.isPlaying()){this.play()}},updateEnableControls:function(a){this.media.dom.controls=a?\"controls\":false},updateLoop:function(a){this.media.dom.loop=a?\"loop\":false},play:function(){var a=this.media.dom;if(\"play\" in a){a.play();setTimeout(function(){a.play()},10)}},pause:function(){var a=this.media.dom;if(\"pause\" in a){a.pause()}},toggle:function(){if(this.isPlaying()){this.pause()}else{this.play()}},stop:function(){var a=this;a.setCurrentTime(0);a.fireEvent(\"stop\",a);a.pause()},updateVolume:function(a){this.media.dom.volume=a},updateMuted:function(a){this.fireEvent(\"mutedchange\",this,a);this.media.dom.muted=a},getCurrentTime:function(){return this.media.dom.currentTime},setCurrentTime:function(a){this.media.dom.currentTime=a;return a},getDuration:function(){return this.media.dom.duration",355901,32,"Ext.Object.each(event,function(c,b){if(typeof b!==\"function\"){b=a[b]}if(typeof b==\"function\"){b=bind(b,a);dom.removeEventListener(c,b)}})",242443,12659,255175,11833,267981,7712,333807,35,240410,93,"striped:false,active:false,text:\"\",html:'<div class=\"x-progress-text x-progress-text-back\"></div>\\n<div class=\"bar\">\\n <div class=\"x-progress-text\"></div>\\n</div>',value:0",272223,42,"return this.on({painted:\"onResize\",resize:\"onResize\",scope:this})},updateValue:function(c,a){var b;if(c===a){return}if(c<0){c=0}if(c>100){c=100}b=\"\"+c+\"%\";return this.element.down(\"* .bar\").setWidth(b",240697,221,",updateText:function(b,a){if(b===a){return}return Ext.Array.each(this.element.query(\".x-progress-text\"),function(c){return Ext.fly(c).setHtml(b)})},onResize:function(){return this.element.down(\".bar .x-progress-text\").setWidth(this.element.getWidth())}",271882,36,"List\",{extend:",271896,33,"updateBaseCls:function(a){var b=this;b.itemClsShortCache=a+\"-item\";b.headerClsShortCache=a+\"-header\";b.headerClsCache=\".\"+b.headerClsShortCache;b.headerItemClsShortCache=a+\"-header-item\";b.footerClsShortCache=a+\"-footer-item\";b.footerClsCache=\".\"+b.footerClsShortCache;b.labelClsShortCache=a+\"-item-label\";b.labelClsCache=\".\"+b.labelClsShortCache;b.disclosureClsShortCache=a+\"-disclosure\";b.disclosureClsCache=\".\"+b.disclosureClsShortCache;b.iconClsShortCache=a+\"-icon\";b.iconClsCache=\".\"+b.iconClsShortCache;this.callParent(arguments)},hiddenDisplayCache:Ext.baseCSSPrefix+\"hidden-display\",getItemElementConfig:function(e,h){var f=this,c=f.dataview,g=c.getItemCls(),b=f.itemClsShortCache,d,a;if(g){b+=\" \"+g}d={cls:b,children:[{cls:f.labelClsShortCache,html:c.getItemTpl().apply(h)}]};if(c.getIcon()){a=h.iconSrc;d.children.push({cls:f.iconClsShortCache,style:\"background-image: \"+a?'url(\"'+newSrc+'\")':\"\"})}if(c.getOnItemDisclosure()){d.children.push({cls:f.disclosureClsShortCache+\" \"+((h[c.getDisclosureProperty()]===false)?f.hiddenDisplayCache:\"\")})}return d},updateListItem:function(d,k){var h=this,e=h.dataview,j=Ext.fly(k),g=j.down(h.labelClsCache,true),c=d.data,b=e.getDisclosureProperty(),a=c&&c.hasOwnProperty(b),l=c&&c.hasOwnProperty(\"iconSrc\"),f,i;g.innerHTML=e.getItemTpl().apply(c);if(a){f=j.down(h.disclosureClsCache);f[c[b]===false?\"removeCls\":\"addCls\"](h.hiddenDisplayCache)}if(e.getIcon()){i=j.down(h.iconClsCache,true);i.style.backgroundImage=l?'url(\"'+l+'\")':\"\"}},doRemoveHeaders:function(){var e=this,a=e.headerItemClsShortCache,b=e.element.query(e.headerClsCache),f=b.length,c=0,d;for(;c<f;c++){d=b[c];Ext.fly(d.parentNode).removeCls(a);Ext.removeNode(d)}},doRemoveFooterCls:function(){var d=this,c=d.footerClsShortCache,a=d.element.query(d.footerClsCache),e=a.length,b=0;for(;b<e;b++){Ext.fly(a[b]).removeCls(c)}},doAddHeader:function(b,a){b=Ext.fly(b);if(a){b.insertFirst(Ext.Element.create({cls:this.headerClsShortCache,html:a}))}b.addCls(this.headerItemClsShortCache)},destroy:function(){this.doRemoveHeaders();",324237,33,"FvTouch.dataview.element.List\",{override:\"Ext.dataview.element.List\",updateListItem:function(d,k){var h=this,e=h.dataview,j=Ext.fly(k),g=j.down(h.labelClsCache,true),c=e.prepareData(d.getData(true),e.getStore().indexOf(d),d),b=e.getDisclosureProperty(),a=c&&c.hasOwnProperty(b),l=c&&c.hasOwnProperty(\"iconSrc\"),f,i;g.innerHTML=e.getItemTpl().apply(c);if(a){f=j.down(h.disclosureClsCache);f[c[b]===false?\"removeCls\":\"addCls\"](h.hiddenDisplayCache)}if(e.getIcon()){i=j.down(h.iconClsCache,true);i.style.backgroundImage=l?'url(\"'+l+'\")':\"\"}}});Ext.define(\"Ext.dataview.IndexBa",168110,51,"IndexBar\"",241855,36,"indexbar\",direction:\"vertical\",letters:[\"A\",\"B\",\"C\",\"D\",\"E\",\"F\",\"G\",\"H\",\"I\",\"J\",\"K\",\"L\",\"M\",\"N\",\"O\",\"P\",\"Q\",\"R\",\"S\",\"T\",\"U\",\"V\",\"W\",\"X\",\"Y\",\"Z\"],ui:\"alphabet\",listPrefix:null},itemCls:Ext.baseCSSPrefix+\"\",updateDirection:function(a,c){var b=this.getBaseCls();this.element.replaceCls(b+\"-\"+c,b+\"-\"+a",168795,49,"wrapper\",classList:[\"x-centered\",\"x-indexbar-wrapper\"]",129959,32,"updateLetters:function(c){this.innerElement.setHtml(\"\");if(c){var b=c.length,a;for(a=0;a<b;a++){this.innerElement.createChild({html:c[a]})}}},updateListPrefix:function(a){if(a&&a.length){this.innerElement.createChild({html:a},0)",319760,43,321513,33,"this.onTouchStart,touchend:this.onTouchEnd,touchmove:this.onTouchMove,scope:this})},onTouchStart:function(b,a){b.stopPropagation();this.innerElement.addCls(this.getBaseCls()+\"-pressed\");this.pageBox=this.innerElement.getPageBox();this.onTouchMove(b)},onTouchEnd:function(b,a){this.innerElement.removeCls(this.getBaseCls()+\"-pressed\")},onTouchMove:function(c){var a=Ext.util.Point.fromEvent(c),b,d=this.pageBox;if(!d){d=this.pageBox=this.el.getPageBox()}if(this.getDirection()===\"vertical\"){if(a.y>d.bottom||a.y<d.top){return}b=Ext.Element.fromPoint(d.left+(d.width/2),a.y)}else{if(a.x>d.right||a.x<d.left){return}b=Ext.Element.fromPoint(a.x,d.top+(d.height/2))}if(b){this.fireEvent(\"index\",this,b.dom.innerHTML,b)}},destroy:function(){var c=this,d=Array.prototype.slice.call(c.innerElement.dom.childNodes),b=d",274922,41,"d[a])}",94954,33,";Ext.define(\"Ext.dataview.ListItemHeade",240408,34,"listitemheader\"",241855,36,"list-header\",docked:\"top\"",266988,993,275697,1604,"b.id===\"historyview\"?\"history",277299,236,"3],preselected:a[0],running:a[1],history:a[2",277566,1023,"],cmdUndoListeners:[]",279038,981,",pullup:\"onPullup",280018,195,"\"refresh\",undo:\"refresh\",scope:this,order:\"before\"})},refresh",280381,38,"Proxy\").refresh(",280367,1663,",onPullup",238249,56,"Main\").gotoPreselectedView",238383,37,"PreselectedList",238062,65,"Manager\"]",280149,64,"\"refresh\",undo:\"refresh\",scope:this,order:\"before\"})},refresh",280381,33,"Preselecteds\").refresh",238383,37,"RunningList",238062,65,"Manager\",\"Ext.ActionSheet\"],relatedtasks:[\"deletetask\",\"edittask\",\"postponetask\",\"starttask\",\"taskdone",279808,33,"runningview:\"runningview\"},control:{runningview:{\"break\":\"onBreak\",timeout:\"onTimeou",279948,71,280130,36,280173,49,"f){var e,a,d,c,b;c=f.getType();d=Ext.getStore(\"Timers\");if(Ext.Array.contains([\"deletetask\",\"postponetask\",\"taskdone\"],c)){b=f.getCdata().task.uid;a=[];d.each(function(g){if(g.get(\"uid\")===b){return a.push(g)}});if(a.length){return d.remove(a)}}else{if(c===\"starttask\"){e=f.getCdata();b=e.task.uid;return d.add({uid:b,time:f.getCtime(),type:\"go\"})}}},undo:function(h){var g,b,a,f,e,d,c;d=h.getType();e=Ext.getStore(\"Timers\");if(Ext.Array.contains([\"deletetask\",\"postponetask\",\"taskdone\"],d)){g=h.getCdata();if(g.task.status===\"running\"){c=h.getCdata().task.uid;f=Ext.getStore(\"Tasks\");a=f.findRecord(\"uid\",c);return e.add({uid:c,time:a.get(\"starttime\"),type:\"go\"})}}else{if(d===\"starttask\"){g=h.getCdata();c=g.task.uid;b=[];e.each(function(i){if(i.get(\"uid\")===c){return b.push(i)}});if(b.length){return e.remove(b)}}}},scope:this,order:\"before\"});",281247,38,"on({\"do\":\"refreshIfRelated\",undo:\"refreshIfRelated\",scope:this,order:\"before\"})},refreshIfRelated:function(b){var a;a=b.getType();if(Ext.Array.contains(this.relatedtasks,a)){return this.refresh()}},refresh",280381,33,"Runnings\").refresh()},onBreak:function(b,c){var a,g,f,e,d;d=b.get(\"uid\");e=Ext.getStore(\"Timers\");g=e.findRecord(\"uid\",d);if(g){f=g.get(\"type\")===\"go\"?\"break\":\"go\"}else{e.add({uid:d,time:b.get(\"starttime\"),type:\"go\"});f=\"break\"}e.add({uid:d,time:Date.now(),type:f});if(!c.getTimeout()){a=",238268,37,"Sounds\");if(f===\"go\"){a.play(\"starttask\")}else{a.play(\"break\")}}return c.updateTimer(b)},onTimeout:function(b,c){var a,d;d=c.getTimerType();a=",238268,37,"Sounds\");if(d===\"go\"){return a.play(\"break\")}else{return a.play(\"starttask\")}",281221,94,281320,168,281493,176,281674,173,281852,100,281957,73,280606,616,239215,34,"HistoryList",238062,65,"Manager\"],config:{refs:{historyview:\"historyview\"},control:{historyview:{add:\"showAddPanel",280145,68,"\"refreshIfRelated\",undo:\"refreshIfRelated\",scope:this,order:\"before\"})},refreshIfRelated:function(b){var a;a=b.getType();if(a===\"taskdone\"||a===\"postponetask\"){return this.refresh()}},refresh",280381,33,"History\").refresh()},showAddPanel:function(a){var b,c;c=a.data.cdata.task.uid;b=Ext.getStore(\"Tasks\").findRecord(\"uid\",c);if(!b){return}",238261,59,"c)}});Ext.define(\"Ext.Audio\",{extend:\"Ext.Media\",xtype:\"audio\"",76282,32,"audio\"},onActivat",291039,39,"if(Ext.os.is.Phone){a.element.show()}},onDeactivat",291039,39,"if(Ext.os.is.Phone){a.element.hide()}},template:[{reference:\"media\",preload:\"auto\",tag:\"audio\",cls:Ext.baseCSSPrefix+\"component\"}]",239215,34,"Sounds",238062,42,"Ext.Audio\",",277094,32,"],sounds:{",280148,65,"\"playIfRelated\",undo:function(){return this.play(\"undo\")},scope:this})},createTryPlayFun:function(a,d,c){var b;if(c==null){c=3000}b=new RegExp(\"^\"+a+\"[1-\"+d+\"]$\");return function(g,e){var f;if(e<c&&b.test(g)){f=parseInt(g.substr(a.length));if(f<d){f=f+1}return a+f}else{return a+\"1\"}}},createPreselectTryPlayFun:function(c){var a,b;b=/^preselect[1-8]$/;a=\"preselect\";return function(f,d){var e;if(d<3000&&b.test(f)){e=parseInt(f.substr(9));if(c&&e>1){e=e-1}else{if(e<8){e=e+1}}return a+e}else{return a+\"1\"}}},playIfRelated:function(b){var a;a=b.getType();if(a===\"taskdone\"){if(!this._taskdoneTryPlayFun){this._taskdoneTryPlayFun=this.createTryPlayFun(\"taskdone\",8)}return this.tryPlay(this._taskdoneTryPlayFun)}else{if(a===\"postponetask\"){return this.play(\"postponetask\")}else{if(a===\"starttask\"){return this.play(\"starttask\")}else{if(a===\"deletetask\"){return this.play(\"deletetask\")}else{if(a===\"addtask\"){return this.play(\"addtask\")}else{if(a===\"edittask\"){return this.play(\"edittask\")}else{if(a===\"preselect\"){return this.tryPlay(this.createPreselectTryPlayFun(b.getCdata().preselected))}}}}}}}},tryPlay:function(a){var b;b=a(this.prename,Date.now()-this.pretime);if(b){return this.play(b)}},play:function(a){var b;b=this.sounds[a];if(!b){b=this.createSound(a);this.sounds[a]=b}if(this.prename){this.sounds[this.prename].stop()}b.play();this.prename=a;return this.pretime=Date.now()},createSound:function(b){var a;a=\"resources/sounds/\"+b+\".m4a\";return Ext.Viewport.add({xtype:\"audio\",hidden:true,url:a}",282028,12042,297970,10150,"itleB",308124,227,"itlebar\",items:[{align:\"left",308380,34,"align:\"right",308444,186,"itle",308633,615,"itle",309251,32,"A",309293,100,",align:\"right\"",309393,9245,"Running",318642,63,"Label",333804,38,",\"Ext.Button\",\"Ext.Date\"],xtype:\"runningitem\",config:{timerType:\"go\",time:null,timeout:null,record:null,items:[{xtype:\"container\",items:[{xtype:\"button\",docked:\"right\",itemId:\"breakbutton\",iconCls:\"pause\",iconMask:true,cls:\"breakbutton\"},{xtype:\"label\",itemId:\"title\",cls:\"title\"}]",294280,44,"width:\"100%\",padding:0,striped:true,active:true}],cls:\"running",319103,522,"control:{\"#breakbutton\":{tap:\"onBreak\"}},listeners:{updatedata:\"onUpdateData\"",319760,134,"onBreak:",241408,34,"break\",this.getRecord(),this)},onTimeout:",241408,34,"timeout\",this.getRecord(),this",320186,155,"UpdateData:function(a,b){if(b){this.child(\"* #title\").setHtml(b.title);return this.updateTimer()}},updateTimer:function(b){var e,a,g,f,d,c;if(b==null){b=this.getRecord(",294786,43,"a=b.get(\"status\");if(a===\"open\"){this.setTimerType(\"ready\");this.setTime(0);return}c=b.get(\"uid\");d=Ext.getStore(\"Timers\");g=d.findRecord(\"uid\",c);if(g){f=g.get(\"time\");this.setTimerType(g.get(\"type\"))}else{f=b",294720,32,"this.setTimerType(\"go\")}e=this;",294843,34,"return e.refreshAll(f)},1000);return this.refreshAll(f)},timeText:function(b){var a;a=b/3600000;a=a.toFixed(0);a=a>0?a+\":\":\"\";return a+Ext.Date.format(new Date(b),\"i:s\")},updateTime:function(d){var b,a,c;a=this.child(\"#progressbar\");b=this.child(\"* #breakbutton\");a.setText(this.timeText(d));if(this.getTimerType()===\"ready\"){this.setTimeout(false);if(a){a.hide()}b.setIconCls(\"play1\");return b.setUi(\"confirm\")}else{if(this.getTimerType()===\"go\"){c=d/15000;b.setIconCls(\"pause\");if(c>100){this.setTimeout(true);a.setValue(100);a.setUi(\"decline\");return b.setUi(\"confirm\")}else{this.setTimeout(false);a.setValue(c);a.setUi(null);return b.setUi(\"normal\")}}else{c=100-d/3000;a.setUi(\"confirm\");b.setIconCls(\"play1\");if(c<0){this.setTimeout(true);a.setValue(0);return b.setUi(\"confirm\")}else{this.setTimeout(false);a.setValue(c);return b.setUi(\"normal\")}}}},updateTimeout:function(b,a){if(b&&Ext.isBoolean(a)&&b!==a){return this.onTimeout()}},refreshAll:function(c){var a,b;a=Date.now();b=a-c;return this.setTime(b",295166,116,318628,1879,321325,10470,"RunningList",331807,68,"RunningItem\"],xtype:\"runninglist\",config:{store:\"Runnings\",",331894,32,"runningitem\",disableSelection:true,maxItemCache:1",331935,206,"running",332145,113,"\"break\"",380175,39,"reak\",a,b)},timeout",380175,38,"timeout\",a,b",332368,51,"break\",\"timeout\"]}});Ext.define(\"FvTouch.view.Ready",331807,68,"RunningItem\"],xtype:\"ready\",config:{store:\"Ready\",",331894,32,"runningitem\",disableSelection:true,maxItemCache:1",331935,206,"running",332145,113,"\"break\"",332160,36,332360,59,"start\"]",295253,86,"RunningList\",\"FvTouch.view.Ready",295360,39,"fit\",items:[{xtype:\"runninglist\"},{xtype:\"ready\"}],control:{runninglist:{refresh:\"onDataviewRefresh\"},ready:{refresh:\"onDataviewRefresh\"}}",308576,34,"this.onDataviewRefresh(this.child(\"runninglist\"));return this.onDataviewRefresh(this.child(\"ready\"))}}},onDataviewRefresh:function(a){if(a.getStore().getCount()){return a.show()}else{return a.hide(",331764,908,"Proxy",332672,280,",\"Ext.Label",332951,72,",initialize:function(){var a;this.callParent();a=this.child(\"todolist\");a.insert(1,{xtype:\"label\",html:\"pull up to preselected view\",cls:\"pullup\",action:\"pullup\",hidden:true});return a.getScrollable().getScroller().on({maxpositionchange:function(b,c){return this.scrollerY=c.y},scroll:function(c,b,d){if(d>(80+this.scrollerY)){this.onPullUp()}},scrollstart",308598,33,"dolist label[action=pullup]\").show()},scrollend",308598,33,"dolist label[action=pullup]\").hide()},scope:this})},onPullUp:",241408,34,"pullup\")",333022,589,"Ext.dataview.List\",{alternateClassName:\"Ext.List\",extend:\"Ext.dataview.DataView\",xtype:\"list\",requires:[\"Ext.dataview.element.List\",\"Ext.dataview.IndexBar\",\"Ext.dataview.ListItemHeader\"],config:{indexBar:false,icon:null,preventSelectionOnDisclose:true,baseCls:Ext.baseCSSPrefix+\"list\",pinHeaders:true,grouped:false,onItemDisclosure:null,disclosureProperty:\"disclosure\",ui:\"normal\"},constructor:function(){this.translateHeader=(Ext.os.is.Android2)?this.translateHeaderCssPosition:this.translateHeaderTransform;",124762,34,"Trigger:function(c,b,f,a,d){if(!(this.getPreventSelectionOnDisclose()&&Ext.fly(d.target).hasCls(this.getBaseCls()+\"-disclosure\"))){this.callParent(arguments)}},initialize:function(){",325393,103,".element.List",325550,90,"element.on({delegate:\".\"+this.getBaseCls()+\"-disclosure\",tap:\"handleItemDisclosure\",scope:b}",325636,287,"updateInline",132399,40,"if(a){this.setOnItemDisclosure(false);this.setIndexBar(false);this.setGrouped(false)}},applyIndexBa",201552,39,"dataview.IndexBar,this.getIndexBar())},updateIndexBar:function(a){if(a&&this.getScrollable()){this.indexBarElement=",177286,44,".getElement().appendChild(a.renderElement);a.on({index:\"onIndex\",scope:this});",130336,37,"+\"-indexed\")}},updateGrouped:function(c){var b=this.getBaseCls(),a=b+\"-grouped\",d=b+\"-ungrouped\";if(c){this.addCls(a);this.removeCls(d);this.doRefreshHeaders();this.updatePinHeaders(this.getPinHeaders())}else{this.addCls(d);this.removeCls(a);if(this.container){this.container.doRemoveHeaders()}this.updatePinHeaders(null)}},updatePinHeaders:function(b){var c=this.getScrollable(),a;if(c){a=c.getScroller()}if(!c){return}if(b&&this.getGrouped()){a.on({refresh:\"doRefreshHeaders\",scroll:\"onScroll\",scope:this});if(!this.header||!this.header.renderElement.dom){this.createHeader()}}else{a.un({refresh:\"doRefreshHeaders\",scroll:\"onScroll\",scope:this});if(this.header){this.header.destroy()}}},createHeader:function(){var e,d=this.getScrollable(),a,b,c;if(d){a=d.getScroller();b=",177286,44,";c=b.getElement()}else{return}this.header=e=Ext.create(\"Ext.dataview.ListItemHeader\",{html:\" \",cls:\"x-list-header-swap\"});c.dom.insertBefore(e.element.dom,a.getContainer().dom.nextSibling);this.translateHeader(1000)},refresh",203037,35,"doRefreshHeaders()},onStoreAdd",100382,44,"doRefreshHeaders()},onStoreRemove",100382,44,"doRefreshHeaders()},onStoreUpdate",100382,44,"doRefreshHeaders()},onStoreClear:function(){this.callParent();if(this.header){this.header.destroy()}this.doRefreshHeaders()},getClosestGroups:function(){var a=this.pinHeaderInfo.offsets,e=this.getScrollable(),d=a.length,b=0,h,g,f,c;if(e){h=e.getScroller().position}else{return{current:0,next:0}}for(;b<d;b++){g=a[b];if(g.offset>h.y){c=g;break}f=g}return{current:f,next:c}},doRefreshHeaders:function(){if(!this.getGrouped()||!this.container){return false}var l=this.findGroupHeaderIndices(),f=l.length,g=this.container.getViewItems(),j=this.pinHeaderInfo={offsets:[]},a=j.offsets,h=this.getScrollable(),e,k,b,d,c;if(f){for(b=0;b<f;b++){d=g[l[b]];if(d){c=this.getItemHeader(d);a.push({header:c,offset:d.offsetTop})}}j.closest=this.getClosestGroups();this.setActiveGroup(j.closest.current);if(c){j.headerHeight=Ext.fly(c).getHeight()}if(h){e=h.getScroller();k=e.position;this.onScroll(e,k.x,k.y)}}},getItemHeader:function(b){var a=Ext.fly(b).down(this.container.headerClsCache);return a?a.dom:null},onScroll:function(e,j,h){var g=this,i=g.pinHeaderInfo,a=i.closest,b=g.activeGroup,c=i.headerHeight,d,f;if(!a){return}d=a.next;f=a.current;if(!this.header||!this.header.renderElement.dom){this.createHeader()}if(h<=0){if(b){g.setActiveGroup(false);a.next=f}this.translateHeader(1000);return}else{if((d&&h>d.offset)||(f&&h<f.offset)){a=i.closest=this.getClosestGroups();d=a.next;f=a.current;this.setActiveGroup(f)}}if(d&&h>0&&d.offset-h<=c){var k=c-(d.offset-h);this.translateHeader(k)}else{this.translateHeader(null)}},translateHeaderTransform:function(a){this.header.renderElement.dom.style.webkitTransform=(a===null)?null:\"translate3d(0px, -\"+a+\"px, 0px)\"},translateHeaderCssPosition:function(a){this.header.renderElement.dom.style.top=(a===null)?null:\"-\"+Math.round(a)+\"px\"},setActiveGroup:function(b){var a=this,c=a.header;if(c){if(b&&b.header){if(!a.activeGroup||a.activeGroup.header!=b.header){c.show();if(c.element){c.setHtml(b.header.innerHTML)}}}else{if(c&&c.element){c.hide()}}}this.activeGroup=b},onIndex:function(o,c){var r=this,s=c.toLowerCase(),b=r.getStore(),q=b.getGroups(),f=q.length,h=r.getScrollable(),n,e,m,g,k,p;if(h){n=r.getScrollable().getScroller()}else{return}for(m=0;m<f;m++){e=q[m];k=e.name.toLowerCase();if(k==s||k>s){g=e;break}else{g=e}}if(h&&g){p=r.container.getViewItems()[b.indexOf(g.children[0])];n.stopAnimation();var l=n.getContainerSize().y,j=n.getSize().y,d=j-l,a=(p.offsetTop>d)?d:p.offsetTop;n.scrollTo(0,a)}},applyOnItemDisclosure:function(a){if(Ext.isFunction(a)){return{scope:this,handler:a}}return a},handleItemDisclosure:function(f){var d=this,c=f.getTarget().parentNode,b=d.container.getViewItems().indexOf(c),a=d.getStore().getAt(b);d.fireAction(\"disclose\",[d,a,c,b,f],\"doDisclose\")},doDisclose:function(f,a,d,c,g){var b=f.getOnItemDisclosure();if(b&&b.handler){b.handler.call(b.scope||f,a,d,c,g)}},findGroupHeaderIndices:function(){if(!this.getGrouped()){return[]}var h=this,k=h.getStore();if(!k){return[]}var b=h.container,d=k.getGroups(),m=d.length,g=b.getViewItems(),c=[],l=b.footerClsShortCache,e,a,f,n,j;b.doRemoveHeaders();b.doRemoveFooterCls();if(g.length){for(e=0;e<m;e++){a=d[e].children[0];f=k.indexOf(a);n=g[f];b.doAddHeader(n,k.getGroupString(a));if(e){Ext.fly(n.previousSibling).addCls(l)}c.push(f)}j=d[--e].children;Ext.fly(g[k.indexOf(j[j.length-1])]).addCls(l)}return c",208944,41,"IndexBar(),this.indexBarElement,this.header);",324237,33,"FvTouch.view.HistoryList\",{extend:\"Ext.dataview.List\",requires:[\"Ext.Date\",\"FvTouch.dataview.element.List\"],xtype:\"historylist\",config:{store:\"History\",grouped:true,itemCls:\"historyitem\",itemTpl:\"<div class=\\\"x-docking-horizontal\\\">\\n <div class='x-docked-left cmdtype {type}'></div>\\n <div class=\\\"x-body tasktitle\\\">{title}</div>\\n <div class='x-docked-right taskendtime'>{endtime:date('H:i:s')}</div>\\n</div>\",listeners:{itemdoubletap",331958,40,"dd\",a)}},bubbleEvents:[\"add\"]},prepareData:function(g,c,a){var b,f,e;try{f=Ext.getStore(\"Tasks\");e=g.cdata.task.uid;b=f.findRecord(\"uid\",e);return{title:b.get(\"title\"),status:b.get(\"status\"),type:g.type,createtime:new Date(b.get(\"createtime\")),endtime:new Date(g.ctime)}}catch(d){console.info(d);return{title:\"[error]\",type:\"\",createtime:new Data(),endtime:new Date(",333406,32,"History",332893,50,"HistoryList\"],xtype:\"history",333535,42,"history",333015,36,333624,196,"HistoryView",333841,334,",{id:\"historyview\",title:\"History\",xtype:\"historyview\"}]}]",275677,32,320515,810,334202,25397,363861,14380,"sorters:[{property:\"ctime",378105,33,378254,453,",autoUpdate:true",378707,929,"this.initConfig(a);return this.init()},init:Ext.emptyFn",379662,341,"if(!this.getAutoUpdate()){return}",380003,255,"if(!this.getAutoUpdate()){return}",380258,309,"if(!this.getAutoUpdate()){return}",380351,35,380602,120,"if(!this.getAutoUpdate()){return}",380722,239,"f(!this.getAutoUpdate()){return}",380960,460,"refresh:function(",380349,37,"this.getStore()",380603,59,381417,1293,"sorterFn:function(k,j){var h,g,c,a,f,e,d,b,i;i=Ext.getStore(\"Tasks\");d=i.getById(k.get(\"task_id\"));b=i.getById(j.get(\"task_id\"));h=d?d.get(\"status\")===\"running\":false;g=b?b.get(\"status\")===\"running\":false;if(h&&g){f=d.get(\"starttime\");e=b.get(\"starttime\");if(f>e){return -1}else{return 1}}else{if(h){return -1}else{if(g){return 1}else{c=k.get(\"order\");a=j.get(\"order\");if(c>a){return -1}else{return 1}}}}}",382743,85,"Update:false",383023,38,382861,176,",autoUpdate:fals",377982,36,"Proxy",382875,47,"odos\",autoUpdate:false",383023,38,"store.History\",{extend:\"FvTouch.StoreProxy\",requires:[\"Ext.Date\"],config:{store:\"Commands\",sorters:[{property:\"ctime",382742,32,"d){var a,c,b;c=d.get(\"type\");if(c===\"taskdone\"||c===\"postponetask\"){b=d.get(\"cdata\").task.uid;a=Ext.getStore(\"Tasks\").findRecord(\"uid\",b);if(!a){return false}if(c===\"postponetask\"){return d.get(\"cdata\").task.status===\"running\"}else{return true}}else{return false}}}],grouper:{groupFn:function(a){var b;b=new Date(a.get(\"ctime\"));return Ext.Date.format(Ext.Date.clearTime(b),\"D M j Y\")},sortProperty:\"ctime\"},autoLoad:true,autoUpdate:fals",382836,32,"eady",382875,53,382978,35,"open\"}],autoLoad:true,autoUpdate:false},init:function(){var a;a=Ext.getStore(\"Preselecteds\");a.on({refresh:\"refreshData\",scope:this});return this.refreshData(a)},addOn",240831,32,"setData([a])}else{return this.clearData()}},refreshData:function(b){var c,a;c=b.first();if(c){a=Ext.getStore(\"Tasks\").getById(c.get(\"task_id\"));return this.addOne(a)}else{return this.addOne(null)",383216,32,359599,3879,383233,698,"Todo",383072,50,384238,206,383917,233,383068,141,"localstorage\",id:\"pomodoro",384426,1073,",\"PreselectedList\",\"RunningList\",\"HistoryList\",\"Sounds",385498,113,",\"TodosProxy\",\"History\",\"Ready",385610,576]
+["/*022eda3a66e9071b0bedd0435d39bd8357e275fd",42,214314,"if(!b",219905,42,"getId()",214390,49,"info:b.data.info",214438,419,"Id(",216879,122,220619,41,218698,82,215107,49,215167,142,"Id(",219501,178,"Edit",214160,56,215552,45,"c){var e,h,f,a,d,i,b,g;g=Ext.getStore(\"Tasks\");b=g.findRecord(\"uid\",c.uid);a=c.title;if(Ext.isEmpty(a)){return false}f=c.info;i=b.get(\"title\");d=b.get(\"info\");if(a===i&&this.isEquals(f,d)){return false}h=this.getDelta(f,d);e={uid:c.uid,\"new\":{},old:{}};if(a!==i){e[\"new\"].title=a;e.old.title=i}if(h.xDelta){e[\"new\"].info=h.xDelta}if(h.yDelta){e.old.info=h.yDelta}return e},doImpl:function(){var c,f,d,a,b,e",215940,71,"e=c[\"new\"].title;if(e!==void 0){a.set(\"title\",e)}f=c[\"new\"].info;if(f){d=this.apply(a.get(\"info\"),f);a.set(\"info\",d)}",215894,43,"f,d,a,b,e",215940,71,"e=c.old.title;if(e!==void 0){a.set(\"title\",e)}f=c.old.info;if(f){d=this.apply(a.get(\"info\"),f);a.set(\"info\",d)}return a.save()},isEquals:function(a,b){if(a===b){return true}else{if(Ext.isPrimitive(a)){return false}else{if(Ext.isArray(a)){return Ext.isArray(b)&&this.isArrayEquals(a,b)}else{if(Ext.isEmpty(a)){return false}else{if(Ext.isDate(a)){return Ext.isDate(b)&&a.getTime()===b.getTime()}else{if(Ext.isFunction(a)){return Ext.isFunction(b)&&a.toString()===b.toString()}else{return Ext.isObject(b)&&this.isObjectEquals(a,b)}}}}}}},isArrayEquals:function(a,d){var b,c;if(a.length===d.length){for(b=0,c=length-1;0<=c?b<c:b>c;0<=c?b++:b--){if(!this.isEquals(a[b],d[b])){return false}}return true}else{return false}},isObjectEquals:function(a,h){var d,e,g,c,f,b;g=Ext.Object.getKeys(a);c=Ext.Object.getKeys(h);e=Ext.Array.merge(g,c);for(f=0,b=e.length;f<b;f++){d=e[f];if(!this.isEquals(a[d],h[d])){return false}}return true},getDelta:function(g,c){var k,i,j,b,h,d,f,a,e;if(!Ext.isObject(g)){g={}}if(!Ext.isObject(c)){c={}}h=Ext.Object.getKeys(g);f=Ext.Object.getKeys(c);j=Ext.Array.merge(h,f);b={};d={};k=false;for(a=0,e=j.length;a<e;a++){i=j[a];if(!this.isEquals(g[i],c[i])){b[i]=g[i];d[i]=c[i];k=true}}if(k){return{xDelta:b,yDelta:d}}else{return{}}},apply:function(c,d){var b,a;c||(c={});for(b in d){a=d[b];if(a===void 0){delete c[b]}else{c[b]=d[b]}}if(Ext.Object.getSize(c)){return c}else{return}",219647,32,"Postpon",214159,57,216149,144,"if(!b",219905,42,"getId());if(!a){return false}",216329,97,"if(",216363,48,"&&Ext.getStore(\"TodosProxy\").last().getId()===a.getId()",218552,32,"d.uid,",216439,225,"if(g.task.uid){",218778,33,"a=e.findRecord(\"task_id\",c.getId());if(a.get(\"order\")!==b){console.info(this);Ext.Logger.error(\"different order when do postponetask\")}}else{",216664,53,"}",216718,156,"Id(",216879,347,"if(g.task.uid){",218778,33,"a=e.findRecord(\"task_id\",c.getId());if(a.getId()!==e.last().getId()){console.info(this);Ext.Logger.error(\"todo is not the last one when undo postponetask\")}}else{",217226,38,"}",216718,42,"g",220767,32,217340,99,"Id(",219501,122,217566,216,"e){var d,b,g,a,f,c;c=Ext.getStore(\"Todos\");g=Ext.getStore(\"Tasks\");b=g.findRecord(\"uid\",e.uid);if(!b",219905,42,"getId());if(!a||",217912,59,"f=Ext.getStore(\"TodosProxy\");d=f.first();if(d&&a.getId()===d.getId()){return false}return{uid:e.uid",220027,35,",doImpl:function(){var f,",218012,58,"f=this.getCdata();b=d.findRecord(\"uid\",f",216287,33,"getId());e=a.get(\"preselected\");if(Ext.isBoolean(f.preselected)&&f.preselected!==e){console.info(this);Ext.Logger.error(\"different preselected value when do preselect\")}a.set(\"preselected\",!",218192,49,"var f,",218012,58,"f=this.getCdata();b=d.findRecord(\"uid\",f",216287,33,"getId());e=a.get(\"preselected\");if(Ext.isBoolean(f.preselected)&&f.preselected===e){console.info(this);Ext.Logger.error(\"same preselected value when undo preselect\")}a.set(\"preselected\",!e);a.save(",224378,33,218277,212,"if(!b",219905,42,"getId()",218523,380,"getId()",218910,100,"Id(",216879,122,220619,41,219178,318,"Id(",219501,380,"!b",217930,41,"a=c.findRecord(\"task_id\",b.getId()",219954,53,220028,58,"e,b,d,a,c;d=Ext.getStore(\"Tasks\");e=this.getCdata();b=d.findRecord(\"uid\",e.task.uid);b.set(\"status\",\"running\");b",220204,34,"b.save();c=Ext.getStore(\"Todos\");a=c.findRecord(\"task_id\",b.getId());if(!e",217035,39,"true);a.save();return c.sync()}},un",220064,128,220766,101,"getId()",220874,52,";a.save();e.sync()}b=h.todo.order;if(b===void 0||b===null){return}",220942,105,"Id(",221052,49,"Id(",221106,2693,"var b,c;if(Ext.isEmpty(a.title)){return false}b=",223831,69,";c=this.normalize(a.info);if(c){b.info=c}return b",223900,166,"info:e.info",224065,331,",normalize:function(c){var b,a;for(b in c){a=c[b];if(a===void 0){delete c[b]}}if(Ext.Object.getSize(c)){return c}else{return}",224395,13786,",tagsButton:\"mytoolbar #tags",238180,53,",tags:\"onTags",238232,154,",onTags",238249,56,"Tags\").show()},launch:function(){var a;a=",238268,37,"Tags\");a.on({scope:this,change:\"changeTagsBadgeText\"});return this.changeTagsBadgeText(a.getTag())},changeTagsBadgeText:function(a){return this.getTagsButton().setBadgeText(a",238384,651,"f){var b,e,a,d,c;if(f){e=Ext.getStore(\"Tasks\");d=e.findRecord(\"uid\",f);if(d){c=Ext.clone(d.getData())}}else{a=",238268,37,"Tags\").getTag();if(a){c={info:{tags:[a]}}}}b=this.getPanel();if(!b",239066,33,"b)}if(c){b.setValues(c)}return b",239110,880,"controller.Tags",238062,41,"],config:{tag:window.localStorage.getItem(\"tag\"),views:[\"Tags\"],refs:{panel:{selector:\"tagspanel\",xtype:\"tags",239384,42,"hange:\"onChange\"}}},onChange:function(a,b){return this.setTag(b.tag)},show:function(){var a,b;b=this.getTags();if(Ext.Object.getSize(b)<=1){return}",238935,69,"if(!a.getParent()){Ext.Viewport.add(a)}a.setTags(this.getTags());a.setValue({tag:this.getTag()});return a.show()},getTags:function(){var a,b,c;c=Ext.getStore(\"Tasks\");b={\"\":0};a=this.getTag();if(!Ext.isEmpty(a)){b[a]=0}c.each(function(g){var h,d,j,f,i,e;if(g.data.info&&Ext.isArray(g.data.info.tags)&&g.data.info.tags.length){i=g.data.info.tags;e=[];for(j=0,f=i.length;j<f;j++){d=i[j];h=b[d];e.push(b[d]=h?h+1:1)}return e}else{return b[\"\"]=b[\"\"]+1}});return b",278197,32,"updateTag(this.getTag())},updateTag:function(a){var b;if(Ext.isEmpty(a)){window.localStorage.removeItem(\"tag\")}else{window.localStorage.setItem(\"tag\",a)}b=",238268,37,"TaskFilter\");if(b){b.setFilterFn(this.generateFilterFn(a))}return this.fireEvent(\"change\",a)},generateFilterFn:function(a){if(Ext.isEmpty(a)){return function(){return true}}else{return function(b){return b.data.info&&Ext.isArray(b.data.info.tags)&&Ext.Array.contains(b.data.info.tags,a",333406,32,239995,144,"itemId:\"add\"},{iconCls:\"tags\",itemId:\"tags\"},{iconCls:\"reply\",itemId",240176,58,"#add",308766,41,"add\")}},\"#undo",308766,41,"undo\")}},\"#tags",308766,41,"tags\")}}}",219647,32,240949,251,"this.fireEvent(\"do\",c",241259,139,"this.fireEvent(\"undo\",c",241459,311,255102,73,"TitleBar",333628,33,"title",221306,52,",\"Ext.util.SizeMonito",221356,63,"cls:Ext.baseCSSPrefix+\"navigation-",221414,66,"},items:[]},maxButtonWidth:\"40%\",constructor:function(){this.refreshTitlePosition=Ext.Function.createThrottled(this.refreshTitlePosition,50,this);this.callParent(arguments)},beforeInitialize:function(){this.applyItems=this.applyInitialItems},initialize:function(){delete this.applyItems;this.add(this.initialItems);delete this.initialItems;this.on({painted:\"refreshTitlePosition\",single:true})},applyInitialItems:function(a){var b=this,c=b.getDefaults()||{};b.initialItems=a;b.leftBox=b.add({xtype:\"container\",style:\"position: relative",221459,37,",listeners:{resize:\"refreshTitlePosition\",scope:b}});b.spacer=b.add({xtype:\"component\",style:\"position: relative\",flex:1,listeners:{resize:\"refreshTitlePosition\",scope:b}});b.rightBox=b.add({xtype:\"container\",style:\"position: relative",221459,37,",listeners:{resize:\"refreshTitlePosition\",scope:b}});b.titleComponent=b.add({xtype:\"title\",hidden:c.hidden,centered:true});b.doAdd=b.doBoxAdd;b.remove=b.doBoxRemove;b.doInsert=b.doBoxInsert},doBoxAdd:function(a){if(a.config.align==\"right\"){this.rightBox.add(a)}else{this.leftBox.add(a)}},doBoxRemove:function(a){if(a.config.align==\"right\"){this.rightBox.remove(a)}else{this.leftBox.remove(a)}},doBoxInsert:function(a,b){if(b.config.align==\"right\"){this.rightBox.add(b)}else{this.leftBox.add(b)}},getMaxButtonWidth:function(){var a=this.maxButtonWidth;if(Ext.isString(this.maxButtonWidth)){a=parseInt(a.replace(\"%\",\"\"),10);a=Math.round((this.element.getWidth()/100)*a)}return a},refreshTitlePosition:function(){var f=this.titleComponent.renderElement;f.setWidth(null);f.setLeft(null);var a=this.leftBox,c=a.down(\"button\"),h,m;if(c){if(c.getWidth()==null){c.renderElement.setWidth(\"auto\")}h=a.renderElement.getWidth();m=this.getMaxButtonWidth();if(h>m){c.renderElement.setWidth(m)}}var j=this.spacer.renderElement.getPageBox(),k=f.getPageBox(),g=k.width-j.width,d=k.left,i=k.right,b,l,e;if(g>0){f.setWidth(j.width);b=g/2;d+=b;i-=b}l=j.left-d;e=i-j.right;if(l>0){f.setLeft(l)}else{if(e>0){f.setLeft(-e)}}f.repaint()},updateTitle:function(a){this.titleComponent.setTitle(a);",169470,33,"TitlePosition()}",241750,709,"FvTouch.field.Tags",232867,35,"agsfield\",applyValue:function(a){if(Ext.isArray(a)){return a}else{if(Ext.isEmpty(a)){return[]}else{return[a.toString()]}",230158,32,";if(!Ext.isArray(b)){Ext.Logger.error(\"value of tagsfield should be an array\")}a=b.join(\", \");return this.callParent([a])},getValue:function(){var a,b;b=this.callParent();a=Ext.Array.map(b.split(\",\"),function(c){return c.trim()});a=Ext.Array.filter(a,function(c){return !Ext.isEmpty(c)});a=Ext.Array.unique(a);if(a.length){return a}else{return}}});Ext.define(\"Ext.Media",240409,33,"media\",config:{url:\"\",enableControls:Ext.os.is.Android?false:true,autoResume:false,autoPause:true,preload:true,loop:false,media:null,volume:1,muted:false",303631,52,"on({scope:a,activate:a.onActivate,deactivate:a.onDeactivate});a.addMediaListener({canplay:\"onCanPlay\",play:\"onPlay\",pause:\"onPause\",ended:\"onEnd\",volumechange:\"onVolumeChange\",timeupdate:\"onTimeUpdate\"})},addMediaListener:function(d,b){var c=this,e=c.media.dom,f=Ext.Function.bind;if(!Ext.isObject(d)){var a=d;d={};d[a]=b}Ext.Object.each(d,function(h,g){if(typeof g!==\"function\"){g=c[g]}if(typeof g==\"function\"){g=f(g,c);e.addEventListener(h,g)}})},onPlay:function(){this.fireEvent(\"play\",this)},onCanPlay:function(){this.fireEvent(\"canplay\",this)},onPause:function(){this.fireEvent(\"pause\",this,this.getCurrentTime())},onEnd:function(){this.fireEvent(\"ended\",this,this.getCurrentTime())},onVolum",193887,35,"volumechange\",this,this.media.dom.volume)},onTimeUpdate:function(){this.fireEvent(\"timeupdate\",this,this.getCurrentTime())},isPlaying:function(){return !Boolean(this.media.dom.paused)},onActivate:function(){var a=this;if(a.getAutoResume()&&!a.isPlaying()){a.play()}},onDeactivate:function(){var a=this;if(a.getAutoResume()&&a.isPlaying()){a.pause()}},updateUrl:function(a){var b=this.media.dom;b.src=a;if(\"load\" in b){b.load()}if(this.isPlaying()){this.play()}},updateEnableControls:function(a){this.media.dom.controls=a?\"controls\":false},updateLoop:function(a){this.media.dom.loop=a?\"loop\":false},play:function(){var a=this.media.dom;if(\"play\" in a){a.play();setTimeout(function(){a.play()},10)}},pause:function(){var a=this.media.dom;if(\"pause\" in a){a.pause()}},toggle:function(){if(this.isPlaying()){this.pause()}else{this.play()}},stop:function(){var a=this;a.setCurrentTime(0);a.fireEvent(\"stop\",a);a.pause()},updateVolume:function(a){this.media.dom.volume=a},updateMuted:function(a){this.fireEvent(\"mutedchange\",this,a);this.media.dom.muted=a},getCurrentTime:function(){return this.media.dom.currentTime},setCurrentTime:function(a){this.media.dom.currentTime=a;return a},getDuration:function(){return this.media.dom.duration",355901,32,"Ext.Object.each(event,function(c,b){if(typeof b!==\"function\"){b=a[b]}if(typeof b==\"function\"){b=bind(b,a);dom.removeEventListener(c,b)}})",242443,12659,255175,11833,267981,7712,333807,35,240410,93,"striped:false,active:false,text:\"\",html:'<div class=\"x-progress-text x-progress-text-back\"></div>\\n<div class=\"bar\">\\n <div class=\"x-progress-text\"></div>\\n</div>',value:0",272223,42,"return this.on({painted:\"onResize\",resize:\"onResize\",scope:this})},updateValue:function(c,a){var b;if(c===a){return}if(c<0){c=0}if(c>100){c=100}b=\"\"+c+\"%\";return this.element.down(\"* .bar\").setWidth(b",240697,221,",updateText:function(b,a){if(b===a){return}return Ext.Array.each(this.element.query(\".x-progress-text\"),function(c){return Ext.fly(c).setHtml(b)})},onResize:function(){return this.element.down(\".bar .x-progress-text\").setWidth(this.element.getWidth())}",271882,36,"List\",{extend:",271896,33,"updateBaseCls:function(a){var b=this;b.itemClsShortCache=a+\"-item\";b.headerClsShortCache=a+\"-header\";b.headerClsCache=\".\"+b.headerClsShortCache;b.headerItemClsShortCache=a+\"-header-item\";b.footerClsShortCache=a+\"-footer-item\";b.footerClsCache=\".\"+b.footerClsShortCache;b.labelClsShortCache=a+\"-item-label\";b.labelClsCache=\".\"+b.labelClsShortCache;b.disclosureClsShortCache=a+\"-disclosure\";b.disclosureClsCache=\".\"+b.disclosureClsShortCache;b.iconClsShortCache=a+\"-icon\";b.iconClsCache=\".\"+b.iconClsShortCache;this.callParent(arguments)},hiddenDisplayCache:Ext.baseCSSPrefix+\"hidden-display\",getItemElementConfig:function(e,h){var f=this,c=f.dataview,g=c.getItemCls(),b=f.itemClsShortCache,d,a;if(g){b+=\" \"+g}d={cls:b,children:[{cls:f.labelClsShortCache,html:c.getItemTpl().apply(h)}]};if(c.getIcon()){a=h.iconSrc;d.children.push({cls:f.iconClsShortCache,style:\"background-image: \"+a?'url(\"'+newSrc+'\")':\"\"})}if(c.getOnItemDisclosure()){d.children.push({cls:f.disclosureClsShortCache+\" \"+((h[c.getDisclosureProperty()]===false)?f.hiddenDisplayCache:\"\")})}return d},updateListItem:function(d,k){var h=this,e=h.dataview,j=Ext.fly(k),g=j.down(h.labelClsCache,true),c=d.data,b=e.getDisclosureProperty(),a=c&&c.hasOwnProperty(b),l=c&&c.hasOwnProperty(\"iconSrc\"),f,i;g.innerHTML=e.getItemTpl().apply(c);if(a){f=j.down(h.disclosureClsCache);f[c[b]===false?\"removeCls\":\"addCls\"](h.hiddenDisplayCache)}if(e.getIcon()){i=j.down(h.iconClsCache,true);i.style.backgroundImage=l?'url(\"'+l+'\")':\"\"}},doRemoveHeaders:function(){var e=this,a=e.headerItemClsShortCache,b=e.element.query(e.headerClsCache),f=b.length,c=0,d;for(;c<f;c++){d=b[c];Ext.fly(d.parentNode).removeCls(a);Ext.removeNode(d)}},doRemoveFooterCls:function(){var d=this,c=d.footerClsShortCache,a=d.element.query(d.footerClsCache),e=a.length,b=0;for(;b<e;b++){Ext.fly(a[b]).removeCls(c)}},doAddHeader:function(b,a){b=Ext.fly(b);if(a){b.insertFirst(Ext.Element.create({cls:this.headerClsShortCache,html:a}))}b.addCls(this.headerItemClsShortCache)},destroy:function(){this.doRemoveHeaders();",324237,33,"FvTouch.dataview.element.List\",{override:\"Ext.dataview.element.List\",updateListItem:function(d,k){var h=this,e=h.dataview,j=Ext.fly(k),g=j.down(h.labelClsCache,true),c=e.prepareData(d.getData(true),e.getStore().indexOf(d),d),b=e.getDisclosureProperty(),a=c&&c.hasOwnProperty(b),l=c&&c.hasOwnProperty(\"iconSrc\"),f,i;g.innerHTML=e.getItemTpl().apply(c);if(a){f=j.down(h.disclosureClsCache);f[c[b]===false?\"removeCls\":\"addCls\"](h.hiddenDisplayCache)}if(e.getIcon()){i=j.down(h.iconClsCache,true);i.style.backgroundImage=l?'url(\"'+l+'\")':\"\"}}});Ext.define(\"Ext.dataview.IndexBa",168110,51,"IndexBar\"",241855,36,"indexbar\",direction:\"vertical\",letters:[\"A\",\"B\",\"C\",\"D\",\"E\",\"F\",\"G\",\"H\",\"I\",\"J\",\"K\",\"L\",\"M\",\"N\",\"O\",\"P\",\"Q\",\"R\",\"S\",\"T\",\"U\",\"V\",\"W\",\"X\",\"Y\",\"Z\"],ui:\"alphabet\",listPrefix:null},itemCls:Ext.baseCSSPrefix+\"\",updateDirection:function(a,c){var b=this.getBaseCls();this.element.replaceCls(b+\"-\"+c,b+\"-\"+a",168795,49,"wrapper\",classList:[\"x-centered\",\"x-indexbar-wrapper\"]",129959,32,"updateLetters:function(c){this.innerElement.setHtml(\"\");if(c){var b=c.length,a;for(a=0;a<b;a++){this.innerElement.createChild({html:c[a]})}}},updateListPrefix:function(a){if(a&&a.length){this.innerElement.createChild({html:a},0)",319760,43,321513,33,"this.onTouchStart,touchend:this.onTouchEnd,touchmove:this.onTouchMove,scope:this})},onTouchStart:function(b,a){b.stopPropagation();this.innerElement.addCls(this.getBaseCls()+\"-pressed\");this.pageBox=this.innerElement.getPageBox();this.onTouchMove(b)},onTouchEnd:function(b,a){this.innerElement.removeCls(this.getBaseCls()+\"-pressed\")},onTouchMove:function(c){var a=Ext.util.Point.fromEvent(c),b,d=this.pageBox;if(!d){d=this.pageBox=this.el.getPageBox()}if(this.getDirection()===\"vertical\"){if(a.y>d.bottom||a.y<d.top){return}b=Ext.Element.fromPoint(d.left+(d.width/2),a.y)}else{if(a.x>d.right||a.x<d.left){return}b=Ext.Element.fromPoint(a.x,d.top+(d.height/2))}if(b){this.fireEvent(\"index\",this,b.dom.innerHTML,b)}},destroy:function(){var c=this,d=Array.prototype.slice.call(c.innerElement.dom.childNodes),b=d",274922,41,"d[a])}",94954,33,";Ext.define(\"Ext.dataview.ListItemHeade",240408,34,"listitemheader\"",241855,36,"list-header\",docked:\"top\"",266988,993,275697,1604,"b.id===\"historyview\"?\"history",277299,236,"3],preselected:a[0],running:a[1],history:a[2",277566,1023,"],cmdUndoListeners:[]",279038,981,",pullup:\"onPullup",280018,195,"\"refresh\",undo:\"refresh\",scope:this,order:\"before\"})},refresh:function(){Ext.getStore(\"TasksProxy\").refresh();return Ext.getStore(\"TodosProxy\").refresh(",280367,1663,",onPullup",238249,56,"Main\").gotoPreselectedView",238383,37,"PreselectedList",238062,65,"Manager\"],init:function(){",280173,40,"\"refresh\",undo:\"refresh\",scope:this,order:\"before\"});",238261,44,"TaskFilter\").on({update:\"refresh\",scope:this})},refresh",280381,33,"Preselecteds\").refresh",238383,37,"RunningList",238062,65,"Manager\",\"Ext.ActionSheet\"],relatedtasks:[\"deletetask\",\"edittask\",\"postponetask\",\"starttask\",\"taskdone",279808,33,"runningview:\"runningview\"},control:{runningview:{\"break\":\"onBreak\",timeout:\"onTimeou",279948,71,280130,36,280173,49,"f){var e,a,d,c,b;c=f.getType();d=Ext.getStore(\"Timers\");if(Ext.Array.contains([\"deletetask\",\"postponetask\",\"taskdone\"],c)){b=f.getCdata().task.uid;a=[];d.each(function(g){if(g.get(\"uid\")===b){return a.push(g)}});if(a.length){return d.remove(a)}}else{if(c===\"starttask\"){e=f.getCdata();b=e.task.uid;return d.add({uid:b,time:f.getCtime(),type:\"go\"})}}},undo:function(h){var g,b,a,f,e,d,c;d=h.getType();e=Ext.getStore(\"Timers\");if(Ext.Array.contains([\"deletetask\",\"postponetask\",\"taskdone\"],d)){g=h.getCdata();if(g.task.status===\"running\"){c=h.getCdata().task.uid;f=Ext.getStore(\"Tasks\");a=f.findRecord(\"uid\",c);return e.add({uid:c,time:a.get(\"starttime\"),type:\"go\"})}}else{if(d===\"starttask\"){g=h.getCdata();c=g.task.uid;b=[];e.each(function(i){if(i.get(\"uid\")===c){return b.push(i)}});if(b.length){return e.remove(b)}}}},scope:this,order:\"before\"});",280173,40,"\"refreshIfRelated\",undo:\"refreshIfRelated\",scope:this,order:\"before\"});",238261,44,"TaskFilter\").on({update:\"refresh\",scope:this})},refreshIfRelated:function(b){var a;a=b.getType();if(Ext.Array.contains(this.relatedtasks,a)){return this.refresh()}},refresh",280381,33,"Runnings\").refresh()},onBreak:function(b,c){var a,g,f,e,d;d=b.get(\"uid\");e=Ext.getStore(\"Timers\");g=e.findRecord(\"uid\",d);if(g){f=g.get(\"type\")===\"go\"?\"break\":\"go\"}else{e.add({uid:d,time:b.get(\"starttime\"),type:\"go\"});f=\"break\"}e.add({uid:d,time:Date.now(),type:f});if(!c.getTimeout()){a=",238268,37,"Sounds\");if(f===\"go\"){a.play(\"starttask\")}else{a.play(\"break\")}}return c.updateTimer(b)},onTimeout:function(b,c){var a,d;d=c.getTimerType();a=",238268,37,"Sounds\");if(d===\"go\"){return a.play(\"break\")}else{return a.play(\"starttask\")}",281221,94,281320,168,281493,176,281674,173,281852,100,281957,73,280606,616,239215,34,"HistoryList",238062,65,"Manager\"],config:{refs:{historyview:\"historyview\"},control:{historyview:{add:\"showAddPanel\"}}},init:function(){",280173,40,"\"refreshIfRelated\",undo:\"refreshIfRelated\",scope:this,order:\"before\"});",238261,44,"TaskFilter\").on({update:\"refresh\",scope:this})},refreshIfRelated:function(b){var a;a=b.getType();if(a===\"taskdone\"||a===\"postponetask\"){return this.refresh()}},refresh",280381,33,"History\").refresh()},showAddPanel:function(a){var b,c;c=a.data.cdata.task.uid;b=Ext.getStore(\"Tasks\").findRecord(\"uid\",c);if(!b){return}",238261,59,"c)}});Ext.define(\"Ext.Audio\",{extend:\"Ext.Media\",xtype:\"audio\"",76282,32,"audio\"},onActivat",291039,39,"if(Ext.os.is.Phone){a.element.show()}},onDeactivat",291039,39,"if(Ext.os.is.Phone){a.element.hide()}},template:[{reference:\"media\",preload:\"auto\",tag:\"audio\",cls:Ext.baseCSSPrefix+\"component\"}]",239215,34,"Sounds",238062,42,"Ext.Audio\",",277094,32,"],sounds:{",280148,65,"\"playIfRelated\",undo:function(){return this.play(\"undo\")},scope:this})},createTryPlayFun:function(a,d,c){var b;if(c==null){c=3000}b=new RegExp(\"^\"+a+\"[1-\"+d+\"]$\");return function(g,e){var f;if(e<c&&b.test(g)){f=parseInt(g.substr(a.length));if(f<d){f=f+1}return a+f}else{return a+\"1\"}}},createPreselectTryPlayFun:function(c){var a,b;b=/^preselect[1-8]$/;a=\"preselect\";return function(f,d){var e;if(d<3000&&b.test(f)){e=parseInt(f.substr(9));if(c&&e>1){e=e-1}else{if(e<8){e=e+1}}return a+e}else{return a+\"1\"}}},playIfRelated:function(b){var a;a=b.getType();if(a===\"taskdone\"){if(!this._taskdoneTryPlayFun){this._taskdoneTryPlayFun=this.createTryPlayFun(\"taskdone\",8)}return this.tryPlay(this._taskdoneTryPlayFun)}else{if(a===\"postponetask\"){return this.play(\"postponetask\")}else{if(a===\"starttask\"){return this.play(\"starttask\")}else{if(a===\"deletetask\"){return this.play(\"deletetask\")}else{if(a===\"addtask\"){return this.play(\"addtask\")}else{if(a===\"edittask\"){return this.play(\"edittask\")}else{if(a===\"preselect\"){return this.tryPlay(this.createPreselectTryPlayFun(b.getCdata().preselected))}}}}}}}},tryPlay:function(a){var b;b=a(this.prename,Date.now()-this.pretime);if(b){return this.play(b)}},play:function(a){var b;b=this.sounds[a];if(!b){b=this.createSound(a);this.sounds[a]=b}if(this.prename){this.sounds[this.prename].stop()}b.play();this.prename=a;return this.pretime=Date.now()},createSound:function(b){var a;a=\"resources/sounds/\"+b+\".m4a\";return Ext.Viewport.add({xtype:\"audio\",hidden:true,url:a}",282028,12042,297970,10150,"itleB",308124,83,",\"FvTouch.field.Tags\"],config:{values:void 0,",308217,134,"itlebar\",items:[{align:\"left",308380,34,"align:\"right",308444,129,",",308514,34,"agsfield\",name:\"tags\",label:\"Tags",308569,61,"itle",308633,202,"applyValues:function(a){if(a===void 0||a===null){return a}else{return Ext.apply(a.info||{},{title:a.title})}},getValues:function(){var b,a;a=",308863,35,";b=a.title;delete a.title;return{title:b,info:a}},update",308903,345,"itle",309251,32,"A",309293,100,",align:\"right\"",309393,324,"if(a){this.setUid(a.uid",107504,55,309789,8849,"Running",318642,63,"Label",333804,38,",\"Ext.Button\",\"Ext.Date\"],xtype:\"runningitem\",config:{timerType:\"go\",time:null,timeout:null,record:null,items:[{xtype:\"container\",items:[{xtype:\"button\",docked:\"right\",itemId:\"breakbutton\",iconCls:\"pause\",iconMask:true,cls:\"breakbutton\"},{xtype:\"label\",itemId:\"title\",cls:\"title\"}]",294280,44,"width:\"100%\",padding:0,striped:true,active:true}],cls:\"running",319103,522,"control:{\"#breakbutton\":{tap:\"onBreak\"}},listeners:{updatedata:\"onUpdateData\"",319760,134,"onBreak:",241408,34,"break\",this.getRecord(),this)},onTimeout:",241408,34,"timeout\",this.getRecord(),this",320186,155,"UpdateData:function(a,b){if(b){this.child(\"* #title\").setHtml(b.title);return this.updateTimer()}},updateTimer:function(b){var e,a,g,f,d,c;if(b==null){b=this.getRecord(",294786,43,"a=b.get(\"status\");if(a===\"open\"){this.setTimerType(\"ready\");this.setTime(0);return}c=b.get(\"uid\");d=Ext.getStore(\"Timers\");g=d.findRecord(\"uid\",c);if(g){f=g.get(\"time\");this.setTimerType(g.get(\"type\"))}else{f=b",294720,32,"this.setTimerType(\"go\")}e=this;",294843,34,"return e.refreshAll(f)},1000);return this.refreshAll(f)},timeText:function(b){var a;a=b/3600000;a=a.toFixed(0);a=a>0?a+\":\":\"\";return a+Ext.Date.format(new Date(b),\"i:s\")},updateTime:function(d){var b,a,c;a=this.child(\"#progressbar\");b=this.child(\"* #breakbutton\");a.setText(this.timeText(d));if(this.getTimerType()===\"ready\"){this.setTimeout(false);if(a){a.hide()}b.setIconCls(\"play1\");return b.setUi(\"confirm\")}else{if(this.getTimerType()===\"go\"){c=d/15000;b.setIconCls(\"pause\");if(c>100){this.setTimeout(true);a.setValue(100);a.setUi(\"decline\");return b.setUi(\"confirm\")}else{this.setTimeout(false);a.setValue(c);a.setUi(null);return b.setUi(\"normal\")}}else{c=100-d/3000;a.setUi(\"confirm\");b.setIconCls(\"play1\");if(c<0){this.setTimeout(true);a.setValue(0);return b.setUi(\"confirm\")}else{this.setTimeout(false);a.setValue(c);return b.setUi(\"normal\")}}}},updateTimeout:function(b,a){if(b&&Ext.isBoolean(a)&&b!==a){return this.onTimeout()}},refreshAll:function(c){var a,b;a=Date.now();b=a-c;return this.setTime(b",295166,116,318628,1879,321325,10470,"RunningList",331807,68,"RunningItem\"],xtype:\"runninglist\",config:{store:\"Runnings\",",331894,32,"runningitem\",disableSelection:true,maxItemCache:1",331935,206,"running",332145,113,"\"break\"",380175,39,"reak\",a,b)},timeout",380175,38,"timeout\",a,b",332368,51,"break\",\"timeout\"]}});Ext.define(\"FvTouch.view.Ready",331807,68,"RunningItem\"],xtype:\"ready\",config:{store:\"Ready\",",331894,32,"runningitem\",disableSelection:true,maxItemCache:1",331935,206,"running",332145,113,"\"break\"",332160,36,332360,59,"start\"]",295253,86,"RunningList\",\"FvTouch.view.Ready",295360,39,"fit\",items:[{xtype:\"runninglist\"},{xtype:\"ready\"}],control:{runninglist:{refresh:\"onDataviewRefresh\"},ready:{refresh:\"onDataviewRefresh\"}}",308576,34,"this.onDataviewRefresh(this.child(\"runninglist\"));return this.onDataviewRefresh(this.child(\"ready\"))}}},onDataviewRefresh:function(a){if(a.getStore().getCount()){return a.show()}else{return a.hide(",331764,908,"Proxy",332672,280,",\"Ext.Label",332951,72,",initialize:function(){var a;this.callParent();a=this.child(\"todolist\");a.insert(1,{xtype:\"label\",html:\"pull up to preselected view\",cls:\"pullup\",action:\"pullup\",hidden:true});return a.getScrollable().getScroller().on({maxpositionchange:function(b,c){return this.scrollerY=c.y},scroll:function(c,b,d){if(d>(80+this.scrollerY)){this.onPullUp()}},scrollstart",308598,33,"dolist label[action=pullup]\").show()},scrollend",308598,33,"dolist label[action=pullup]\").hide()},scope:this})},onPullUp:",241408,34,"pullup\")",333022,589,"Ext.dataview.List\",{alternateClassName:\"Ext.List\",extend:\"Ext.dataview.DataView\",xtype:\"list\",requires:[\"Ext.dataview.element.List\",\"Ext.dataview.IndexBar\",\"Ext.dataview.ListItemHeader\"],config:{indexBar:false,icon:null,preventSelectionOnDisclose:true,baseCls:Ext.baseCSSPrefix+\"list\",pinHeaders:true,grouped:false,onItemDisclosure:null,disclosureProperty:\"disclosure\",ui:\"normal\"},constructor:function(){this.translateHeader=(Ext.os.is.Android2)?this.translateHeaderCssPosition:this.translateHeaderTransform;",124762,34,"Trigger:function(c,b,f,a,d){if(!(this.getPreventSelectionOnDisclose()&&Ext.fly(d.target).hasCls(this.getBaseCls()+\"-disclosure\"))){this.callParent(arguments)}},initialize:function(){",325393,103,".element.List",325550,90,"element.on({delegate:\".\"+this.getBaseCls()+\"-disclosure\",tap:\"handleItemDisclosure\",scope:b}",325636,287,"updateInline",132399,40,"if(a){this.setOnItemDisclosure(false);this.setIndexBar(false);this.setGrouped(false)}},applyIndexBa",201552,39,"dataview.IndexBar,this.getIndexBar())},updateIndexBar:function(a){if(a&&this.getScrollable()){this.indexBarElement=",177286,44,".getElement().appendChild(a.renderElement);a.on({index:\"onIndex\",scope:this});",130336,37,"+\"-indexed\")}},updateGrouped:function(c){var b=this.getBaseCls(),a=b+\"-grouped\",d=b+\"-ungrouped\";if(c){this.addCls(a);this.removeCls(d);this.doRefreshHeaders();this.updatePinHeaders(this.getPinHeaders())}else{this.addCls(d);this.removeCls(a);if(this.container){this.container.doRemoveHeaders()}this.updatePinHeaders(null)}},updatePinHeaders:function(b){var c=this.getScrollable(),a;if(c){a=c.getScroller()}if(!c){return}if(b&&this.getGrouped()){a.on({refresh:\"doRefreshHeaders\",scroll:\"onScroll\",scope:this});if(!this.header||!this.header.renderElement.dom){this.createHeader()}}else{a.un({refresh:\"doRefreshHeaders\",scroll:\"onScroll\",scope:this});if(this.header){this.header.destroy()}}},createHeader:function(){var e,d=this.getScrollable(),a,b,c;if(d){a=d.getScroller();b=",177286,44,";c=b.getElement()}else{return}this.header=e=Ext.create(\"Ext.dataview.ListItemHeader\",{html:\" \",cls:\"x-list-header-swap\"});c.dom.insertBefore(e.element.dom,a.getContainer().dom.nextSibling);this.translateHeader(1000)},refresh",203037,35,"doRefreshHeaders()},onStoreAdd",100382,44,"doRefreshHeaders()},onStoreRemove",100382,44,"doRefreshHeaders()},onStoreUpdate",100382,44,"doRefreshHeaders()},onStoreClear:function(){this.callParent();if(this.header){this.header.destroy()}this.doRefreshHeaders()},getClosestGroups:function(){var a=this.pinHeaderInfo.offsets,e=this.getScrollable(),d=a.length,b=0,h,g,f,c;if(e){h=e.getScroller().position}else{return{current:0,next:0}}for(;b<d;b++){g=a[b];if(g.offset>h.y){c=g;break}f=g}return{current:f,next:c}},doRefreshHeaders:function(){if(!this.getGrouped()||!this.container){return false}var l=this.findGroupHeaderIndices(),f=l.length,g=this.container.getViewItems(),j=this.pinHeaderInfo={offsets:[]},a=j.offsets,h=this.getScrollable(),e,k,b,d,c;if(f){for(b=0;b<f;b++){d=g[l[b]];if(d){c=this.getItemHeader(d);a.push({header:c,offset:d.offsetTop})}}j.closest=this.getClosestGroups();this.setActiveGroup(j.closest.current);if(c){j.headerHeight=Ext.fly(c).getHeight()}if(h){e=h.getScroller();k=e.position;this.onScroll(e,k.x,k.y)}}},getItemHeader:function(b){var a=Ext.fly(b).down(this.container.headerClsCache);return a?a.dom:null},onScroll:function(e,j,h){var g=this,i=g.pinHeaderInfo,a=i.closest,b=g.activeGroup,c=i.headerHeight,d,f;if(!a){return}d=a.next;f=a.current;if(!this.header||!this.header.renderElement.dom){this.createHeader()}if(h<=0){if(b){g.setActiveGroup(false);a.next=f}this.translateHeader(1000);return}else{if((d&&h>d.offset)||(f&&h<f.offset)){a=i.closest=this.getClosestGroups();d=a.next;f=a.current;this.setActiveGroup(f)}}if(d&&h>0&&d.offset-h<=c){var k=c-(d.offset-h);this.translateHeader(k)}else{this.translateHeader(null)}},translateHeaderTransform:function(a){this.header.renderElement.dom.style.webkitTransform=(a===null)?null:\"translate3d(0px, -\"+a+\"px, 0px)\"},translateHeaderCssPosition:function(a){this.header.renderElement.dom.style.top=(a===null)?null:\"-\"+Math.round(a)+\"px\"},setActiveGroup:function(b){var a=this,c=a.header;if(c){if(b&&b.header){if(!a.activeGroup||a.activeGroup.header!=b.header){c.show();if(c.element){c.setHtml(b.header.innerHTML)}}}else{if(c&&c.element){c.hide()}}}this.activeGroup=b},onIndex:function(o,c){var r=this,s=c.toLowerCase(),b=r.getStore(),q=b.getGroups(),f=q.length,h=r.getScrollable(),n,e,m,g,k,p;if(h){n=r.getScrollable().getScroller()}else{return}for(m=0;m<f;m++){e=q[m];k=e.name.toLowerCase();if(k==s||k>s){g=e;break}else{g=e}}if(h&&g){p=r.container.getViewItems()[b.indexOf(g.children[0])];n.stopAnimation();var l=n.getContainerSize().y,j=n.getSize().y,d=j-l,a=(p.offsetTop>d)?d:p.offsetTop;n.scrollTo(0,a)}},applyOnItemDisclosure:function(a){if(Ext.isFunction(a)){return{scope:this,handler:a}}return a},handleItemDisclosure:function(f){var d=this,c=f.getTarget().parentNode,b=d.container.getViewItems().indexOf(c),a=d.getStore().getAt(b);d.fireAction(\"disclose\",[d,a,c,b,f],\"doDisclose\")},doDisclose:function(f,a,d,c,g){var b=f.getOnItemDisclosure();if(b&&b.handler){b.handler.call(b.scope||f,a,d,c,g)}},findGroupHeaderIndices:function(){if(!this.getGrouped()){return[]}var h=this,k=h.getStore();if(!k){return[]}var b=h.container,d=k.getGroups(),m=d.length,g=b.getViewItems(),c=[],l=b.footerClsShortCache,e,a,f,n,j;b.doRemoveHeaders();b.doRemoveFooterCls();if(g.length){for(e=0;e<m;e++){a=d[e].children[0];f=k.indexOf(a);n=g[f];b.doAddHeader(n,k.getGroupString(a));if(e){Ext.fly(n.previousSibling).addCls(l)}c.push(f)}j=d[--e].children;Ext.fly(g[k.indexOf(j[j.length-1])]).addCls(l)}return c",208944,41,"IndexBar(),this.indexBarElement,this.header);",324237,33,"FvTouch.view.HistoryList\",{extend:\"Ext.dataview.List\",requires:[\"Ext.Date\",\"FvTouch.dataview.element.List\"],xtype:\"historylist\",config:{store:\"History\",grouped:true,itemCls:\"historyitem\",itemTpl:\"<div class=\\\"x-docking-horizontal\\\">\\n <div class='x-docked-left cmdtype {type}'></div>\\n <div class=\\\"x-body tasktitle\\\">{title}</div>\\n <div class='x-docked-right taskendtime'>{endtime:date('H:i:s')}</div>\\n</div>\",listeners:{itemdoubletap",331958,40,"dd\",a)}},bubbleEvents:[\"add\"]},prepareData:function(g,c,a){var b,f,e;try{f=Ext.getStore(\"Tasks\");e=g.cdata.task.uid;b=f.findRecord(\"uid\",e);return{title:b.get(\"title\"),status:b.get(\"status\"),type:g.type,createtime:new Date(b.get(\"createtime\")),endtime:new Date(g.ctime)}}catch(d){console.info(d);return{title:\"[error]\",type:\"\",createtime:new Data(),endtime:new Date(",333406,32,"History",332893,50,"HistoryList\"],xtype:\"history",333535,42,"history",333015,36,333624,196,"HistoryView",333841,334,",{id:\"historyview\",title:\"History\",xtype:\"historyview\"}]}]",275677,32,320515,810,334202,25397,363861,14380,"sorters:[{property:\"ctime",378105,33,378254,453,",autoUpdate:true",378707,929,"this.initConfig(a);return this.init()},init:Ext.emptyFn",379662,341,"if(!this.getAutoUpdate()){return}",380003,255,"if(!this.getAutoUpdate()){return}",380258,309,"if(!this.getAutoUpdate()){return}",380351,35,380602,120,"if(!this.getAutoUpdate()){return}",380722,239,"f(!this.getAutoUpdate()){return}",380960,460,"refresh:function(",380349,37,"this.getStore()",380603,59,381417,1218,"TasksProxy",382875,53,"autoUpdate:false",383023,38,"controller.TaskFilte",238061,51,"store.TasksProxy\"],config:{filterFn:function(){return true}},updateFilterFn:function(a){var b;b=Ext.getStore(\"TasksProxy\");if(b){b.clearFilter(true);b.setFilters([{filterFn:a}]);Ext.getStore(\"TodosProxy\").refresh()}return this.fireEvent(\"update\"",377856,34,"odosProxy",382875,47,"odos\",filters:[{filterFn:function(b){var a,c;c=Ext.getStore(\"TasksProxy\");a=c.getById(b.get(\"task_id\"));return !Ext.isEmpty(a)}}],autoUpdate:false",383023,38,382629,81,"sorterFn:function(k,j){var h,g,c,a,f,e,d,b,i;i=Ext.getStore(\"Tasks\");d=i.getById(k.get(\"task_id\"));b=i.getById(j.get(\"task_id\"));h=d?d.get(\"status\")===\"running\":false;g=b?b.get(\"status\")===\"running\":false;if(h&&g){f=d.get(\"starttime\");e=b.get(\"starttime\");if(f>e){return -1}else{return 1}}else{if(h){return -1}else{if(g){return 1}else{c=k.get(\"order\");a=j.get(\"order\");if(c>a){return -1}else{return 1}}}}}}],filters:[{filterFn:function(d){var a,c,b;b=Ext.getStore(\"TodosProxy\");if(b.getCount()&&b.getById(d.getId())&&(d.data.preselected||d.getId()===b.first().getId())){return true}else{c=Ext.getStore(\"Tasks\");a=c.getById(d.get(\"task_id\"));return a&&a.get(\"status\")===\"running\"}}}],autoUpdate:false",383023,38,382861,176,",autoUpdate:false}});Ext.define(\"FvTouch.store.History\",{extend:\"FvTouch.StoreProxy\",requires:[\"Ext.Date\"],config:{store:\"Commands\",sorters:[{property:\"ctime",382742,32,"d){var a,c,b;c=d.get(\"type\");if(c===\"taskdone\"||c===\"postponetask\"){b=d.get(\"cdata\").task.uid;a=Ext.getStore(\"TasksProxy\").findRecord(\"uid\",b);if(!a){return false}if(c===\"postponetask\"){return d.get(\"cdata\").task.status===\"running\"}else{return true}}else{return false}}}],grouper:{groupFn:function(a){var b;b=new Date(a.get(\"ctime\"));return Ext.Date.format(Ext.Date.clearTime(b),\"D M j Y\")},sortProperty:\"ctime\"},autoLoad:true,autoUpdate:fals",382836,32,"eady",382875,53,382978,35,"open\"}],autoLoad:true,autoUpdate:false},init:function(){var a;a=Ext.getStore(\"Preselecteds\");a.on({refresh:\"refreshData\",scope:this});return this.refreshData(a)},addOn",240831,32,"setData([a])}else{return this.clearData()}},refreshData:function(b){var c,a;c=b.first();if(c){a=Ext.getStore(\"Tasks\").getById(c.get(\"task_id\"));return this.addOne(a)}else{return this.addOne(null)",383216,32,359599,3879,383233,334,"info",383557,374,"Todo",383072,50,384238,206,383917,233,383068,141,"localstorage\",id:\"pomodoro\"}}});Ext.define(\"Ext.picker.Slot",331807,34,"xtype:\"pickerslot\",alternateClassName:\"Ext.Picker.Slot",303314,33,"data.Store\",\"Ext.Component\",\"Ext.data.StoreManager\"],isSlot:true,config:{title:null,showTitle:true,cls:Ext.baseCSSPrefix+\"picker-slot\",name:null,value:null,flex:1,align:\"left\",displayField:\"text\",valueField:\"value\",scrollable:{direction:\"vertical\",indicators:false,momentumEasing:{minVelocity:2},slotSnapEasing:{duration:100}}",268444,38,"Index=0",268513,34,"Title:function(a){if(a){a=Ext.create(\"Ext.Component\",{cls:Ext.baseCSSPrefix+\"picker-slot-title\",docked:\"top\",html:a})}return a",242106,45,";this.setupBar()}if(a){this.remove(a)}},updateShowTitle:function(a){var b=this.getTitle();if(b){b[a?\"show\":\"hide\"]();this.setupBar()}},updateDisplayField:function(a){this.setItemTpl('<div class=\"'+Ext.baseCSSPrefix+'picker-item {cls} <tpl if=\"extra\">'+Ext.baseCSSPrefix+'picker-invalid</tpl>\">{'+a+\"}</div>\")},updateAlign:function(a,c){var b=this.element;b.addCls(Ext.baseCSSPrefix+\"picker-\"+a);b.removeCls(Ext.baseCSSPrefix+\"picker-\"+c)},applyData:function(d){var f=[],c=d&&d.length,a,b,e;if(d&&Ext.isArray(d)&&c){for(a=0;a<c;a++){b=d[a];e={};if(Ext.isArray(b)){e[this.valueField]=b[0];e[this.displayField]=b[1]}else{if(Ext.isString(b)){e[this.valueField]=b;e[this.displayField]=b}else{if(Ext.isObject(b)){e=b}}}f.push(e)}}return d},updateData:function(",328751,46,"fields:[\"text\",\"value\"],data:a})",272222,43,"var a=this.getScrollable().getScroller();this.on({scope:this,painted:\"onPainted\",itemtap:\"doItemTap\"});a.on({scope:this,scrollend:\"onScrollEn",119325,32,"setupBar()},getPicker:function(){if(!this.picker){this.picker=this.getParent()}return this.picker},setupBa",179886,32,"return}var a=this.element,e=this.innerElement,f=this.getPicker(),g=f.bar,k=this.getValue(),b=this.getShowTitle(),j=this.getTitle(),h=this.getScrollable(),d=h.getScroller(),c=0,l,i;l=g.getHeight();if(b&&j){c=j.element.getHeight()}i=Math.ceil((a.getHeight()-c-l)/2);e.setStyle({padding:i+\"px 0 \"+(i)+\"px\"});d.refresh();d.setSlotSnapSize(l);this.setValue(k)},doItemTap:function(d,a,c,f){var b=this;b.selectedIndex=a;b.selectedNode=c;b.scrollToItem(c,true);b.fireEvent(\"slotpick\",b,b.getValue(true),b.selectedNode)},scrollToItem:function(e,d){var h=e.getY(),c=e.parent(),f=c.getY(),b=this.getScrollable(),a=b.getScroller(),g;g=h-f;a.scrollTo(0,g,d)},onScrollEnd:function(b,a,g){var f=this,d=Math.round(g/f.picker.bar.getHeight()),c=f.getViewItems(),e=c[d];if(e){f.selectedIndex=d;f.selectedNode=e;f.fireEvent(\"slotpick\",f,f.getValue(),f.selectedNode)}},getValue:function(c){var b=this.getStore(),a,d;if(!b){return}if(!this.rendered||!c){return this._value}if(this._value===false){return null}a=b.getAt(this.selectedIndex);d=a?a.get(this.getValueField()):null;return d},setValue:function(f){if(!Ext.isDefined(f)){return}if(!this.rendered||!f){this._value=f;return}var b=this.getStore(),a=this.getViewItems(),d=this.getValueField(),c,e;c=b.find(d,f);if(c!=-1){e=Ext.get(a[c]);this.selectedIndex=c;this.scrollToItem(e);this._value=f}},setValueAnimated:function(f){if(!f){return}if(!this.rendered){this._value=f;return}var b=this.getStore(),a=this.getViewItems(),d=this.getValueField(),c,e;c=b.find(d,f);if(c!=-1){e=Ext.get(a[c]);this.selectedIndex=c;this.scrollToItem(e,{duration:100});this._value=f}}});Ext.define(\"Ext.picker.Picker",241555,36,"picker\",alternateClassName:\"Ext.Picker\",requires:[\"Ext.picker.Slot\",\"Ext.Toolbar\",\"Ext.data.Model\"],isPicker:true",76282,32,"picker\",doneButton:true,cancelButton:true,useTitles:false,slots:null,value:null,height:220,layout:{type:\"hbox\",align:\"stretch\"},centered:false,left:0,right:0,bottom:0,defaultType:\"pickerslot\",toolbar:true},initElement",100382,39,"var b=this,a=Ext.baseCSSPrefix,c=this.innerElement;this.mask=c.createChild({cls:a+\"picker-mask\"});this.bar=this.mask.createChild({cls:a+\"picker-bar\"});b.on({scope:this,delegate:\"pickerslot\",slotpick:\"onSlotPick\"});b.on({scope:this,show:\"onShow\"})},applyToolb",292854,33,"Ext.applyIf(a,{docked:\"top\"});return Ext.factory(a,\"Ext.TitleBar\",this.getToolbar())},updateToolbar",236496,56,"applyDoneButton:function(a){if(a){if(Ext.isBoolean(a)){a={}}if(typeof a==\"string\"){a={text:a}}Ext.applyIf(a,{ui:\"action\",align:\"right\",text:\"Done\"})}return Ext.factory(a,\"Ext.Button\",this.getDoneButton())},updateDoneButton:function(c,a){var b=this.getToolbar();if(c){b.add(c);c.on(\"tap\",this.onDoneButtonTap,this)}else{if(a){b.remove(a)}}},applyCancelButton:function(a){if(a){if(Ext.isBoolean(a)){a={}}if(typeof a==\"string\"){a={text:a}}Ext.applyIf(a,{align:\"left\",text:\"Cancel\"})}return Ext.factory(a,\"Ext.Button\",this.getCancelButton())},updateCancelButton:function(b,a){var c=this.getToolbar();if(b){c.add(b);b.on(\"tap\",this.onCancelButtonTap,this)}else{if(a){c.remove(a)}}},updateUseTitles:function(d){var f=this.getInnerItems(),e=f.length,a=Ext.baseCSSPrefix+\"use-titles\",c,b;if(d",228943,40,"for(c=0;c<e;c++){b=f[c];if(b.isSlot){b.setShowTitle(d)}}},applySlots:function(b){if(b){var c=b.length,a;for(a=0;a<c;a++){b[a].picker=this}}return b},updateSlots:function(a){var b=Ext.baseCSSPrefix,c;this.removeAll();if(a){this.add(a)}c=this.getInnerItems();if(c.length>0){c[0].addCls(b+\"first\");c[c.length-1].addCls(b+\"last\")}this.updateUseTitles(this.getUseTitles())},onDoneButtonTap:function(){var a=this._value,b=this.getValue(true);if(b!=a){this.fireEvent(\"change\",this,b)}this.hide()},onCancelButtonTap:function(){this.fireEvent(\"cancel\",this);this.hide()},onSlotP",213693,32,"pick\",this,this.getValue(true),a)},onShow:function(){if(!this.isHidden()){this.setValue(this._value)}},setValue:function(k,a){var f=this,d=f.getInnerItems(),e=d.length,j,h,c,b,g;if(!k){k={};for(b=0;b<e;b++){k[d[b].config.name]=null}}for(j in k){g=k[j];for(b=0;b<d.length;b++){c=d[b];if(c.config.name==j){h=c;break}}if(h){if(a){h.setValueAnimated(g)}else{h.setValue(g)}}}f._values=f._value=k;return f},setValueAnimated:function(a){this.setValue(a,true)},getValue:function(c){var b={},a=this.getItems().items,f=a.length,e,d;if(c){for(d=0;d<f;d++){e=a[d];if(e&&e.isSlot){b[e.getName()]=e.getValue(c)}}this._values=b}return this._values",258764,38,"Value(",69768,38,");Ext.destroy(this.mask,this.bar)",308028,42,"Tags\",{extend:\"Ext.picker.Picker\",xtype:\"tagspanel\",config:{tags:{},hideOnMaskTap:true},updateTags:function(c){var d,b,a;d=(function(){var e;e=[];for(b in c){a=c[b];e.push({text:b,value:a})}return e})();d=Ext.Array.sort(d,function(e,f){if(Ext.isEmpty(e.text)){return -1}else{if(Ext.isEmpty(f.text)){return 1}else{return f.value-e.value}}});return this.setSlots({name:\"tag\",data:Ext.Array.map(d,function(e){return{text:e.text,value:e.text}})})",384428,1032,"askFilter",385456,43,",\"PreselectedList\",\"RunningList\",\"HistoryList\",\"Sounds\",\"Tags",385498,80,"TasksProxy\",\"TodosProxy",385575,36,",\"History\",\"Ready",385610,576]
2  deltas/app.js/d0e9cac21a672b6a5fd85b29dd998fb14831a01f.json
View
@@ -1 +1 @@
-["/*e98e3e743a2813f1f95750e291a0b5256828bd6a",42,293006,290387,36,290430,40,293108,39637,332778,1331,"(false);if(a){a.hide()}",334144,13656,",\"break\"",401271,39,"reak\",a,b)},timeout",401271,38,"timeout\",a,b",348620,51,"break\",\"timeou",347845,33,"eady",348059,68,"RunningItem\"],xtype:\"ready\",config:{store:\"Ready",347392,408,",\"break\"",348576,95,"start\"]",347227,36,349150,50,"RunningList\",\"FvTouch.view.Ready",347945,72,",{xtype:\"ready\"}],control:{runninglist:{refresh:\"onDataviewRefresh\"},ready:{refresh:\"onDataviewRefresh\"}}",321613,34,"this.onDataviewRefresh(this.child(\"runninglist\"));return this.onDataviewRefresh(this.child(\"ready\"))}}},onDataviewRefresh:function(a){if(a.getStore().getCount()){return a.show()}else{return a.hide()}",348018,52681,"this.initConfig(a);return this.init()},init:Ext.emptyFn",400725,4826,"FvTouch.store.Ready",404623,53,404726,35,"open",404768,35,",init:function(){var a;a=Ext.getStore(\"Preselecteds\");a.on({refresh:\"refreshData\",scope:this});return this.refreshData(a)},addOn",280391,32,"setData([a])}else{return this.clearData()}},refreshData:function(b){var c,a;c=b.first();if(c){a=Ext.getStore(\"Tasks\").getById(c.get(\"task_id\"));return this.addOne(a)}else{return this.addOne(null)}",405535,6531,",\"Read",412064,577]
+["/*022eda3a66e9071b0bedd0435d39bd8357e275fd",42,214314,"if(!b",220795,68,"b.data.uid,title:b.data.title,info:b.data.info",214438,1144,"c){var e,h,f,a,d,i,b,g;g=Ext.getStore(\"Tasks\");b=g.findRecord(\"uid\",c.uid);a=c.title;if(Ext.isEmpty(a)){return false}f=c.info;i=b.get(\"title\");d=b.get(\"info\");if(a===i&&this.isEquals(f,d)){return false}h=this.getDelta(f,d);e={uid:c.uid,\"new\":{},old:{}};if(a!==i){e[\"new\"].title=a;e.old.title=i}if(h.xDelta){e[\"new\"].info=h.xDelta}if(h.yDelta){e.old.info=h.yDelta}return e},doImpl:function(){var c,f,d,a,b,e",215775,71,"e=c[\"new\"].title;if(e!==void 0){a.set(\"title\",e)}f=c[\"new\"].info;if(f){d=this.apply(a.get(\"info\"),f);a.set(\"info\",d)}",215876,43,"f,d,a,b,e",215775,71,"e=c.old.title;if(e!==void 0){a.set(\"title\",e)}f=c.old.info;if(f){d=this.apply(a.get(\"info\"),f);a.set(\"info\",d)}return a.save()},isEquals:function(a,b){if(a===b){return true}else{if(Ext.isPrimitive(a)){return false}else{if(Ext.isArray(a)){return Ext.isArray(b)&&this.isArrayEquals(a,b)}else{if(Ext.isEmpty(a)){return false}else{if(Ext.isDate(a)){return Ext.isDate(b)&&a.getTime()===b.getTime()}else{if(Ext.isFunction(a)){return Ext.isFunction(b)&&a.toString()===b.toString()}else{return Ext.isObject(b)&&this.isObjectEquals(a,b)}}}}}}},isArrayEquals:function(a,d){var b,c;if(a.length===d.length){for(b=0,c=length-1;0<=c?b<c:b>c;0<=c?b++:b--){if(!this.isEquals(a[b],d[b])){return false}}return true}else{return false}},isObjectEquals:function(a,h){var d,e,g,c,f,b;g=Ext.Object.getKeys(a);c=Ext.Object.getKeys(h);e=Ext.Array.merge(g,c);for(f=0,b=e.length;f<b;f++){d=e[f];if(!this.isEquals(a[d],h[d])){return false}}return true},getDelta:function(g,c){var k,i,j,b,h,d,f,a,e;if(!Ext.isObject(g)){g={}}if(!Ext.isObject(c)){c={}}h=Ext.Object.getKeys(g);f=Ext.Object.getKeys(c);j=Ext.Array.merge(h,f);b={};d={};k=false;for(a=0,e=j.length;a<e;a++){i=j[a];if(!this.isEquals(g[i],c[i])){b[i]=g[i];d[i]=c[i];k=true}}if(k){return{xDelta:b,yDelta:d}}else{return{}}},apply:function(c,d){var b,a;c||(c={});for(b in d){a=d[b];if(a===void 0){delete c[b]}else{c[b]=d[b]}}if(Ext.Object.getSize(c)){return c}else{return}",218029,33,"ostpon",214159,57,216131,144,"if(!b",220795,51,"if(!a){return false}",216311,97,"if(",216345,48,"&&Ext.getStore(\"TodosProxy\").last().getId()===a.getId()",216393,1776,"e){var d,b,g,a,f,c;c=Ext.getStore(\"Todos\");g=Ext.getStore(\"Tasks\");b=g.findRecord(\"uid\",e.uid);if(!b",220795,51,"if(!a||",218299,59,"f=Ext.getStore(\"TodosProxy\");d=f.first();if(d&&a.getId()===d.getId()){return false}return{uid:e",218370,195,"getId()",218572,369,"getId()",218572,71,"===e",217520,39,219062,321,"if(!b",220795,51,219419,1352,"!b",218317,41,221134,36,220846,3610,"var b,c;if(Ext.isEmpty(a.title)){return false}b=",224488,69,";c=this.normalize(a.info);if(c){b.info=c}return b",224557,166,"info:e.info",224722,331,",normalize:function(c){var b,a;for(b in c){a=c[b];if(a===void 0){delete c[b]}}if(Ext.Object.getSize(c)){return c}else{return}",225052,13786,",tagsButton:\"mytoolbar #tags",238837,53,",tags:\"onTags",238889,154,",onTags",238906,56,"Tags\").show()},launch:function(){var a;",294527,39,"Tags\");a.on({scope:this,change:\"changeTagsBadgeText\"});return this.changeTagsBadgeText(a.getTag())},changeTagsBadgeText:function(a){return this.getTagsButton().setBadgeText(a",239984,36,"AddTask",238719,66,239150,542,"f){var b,e,a,d,c;if(f){e=Ext.getStore(\"Tasks\");d=e.findRecord(\"uid\",f);if(d){c=Ext.clone(d.getData())}}else",294526,40,"Tags\").getTag();if(a){c={info:{tags:[a]}}}}b=this.getPanel();if(!b",240572,33,"b)}if(c){b.setValues(c)}return b",239881,880,"controller.Tags",238719,41,"],config:{tag:window.localStorage.getItem(\"tag\"),views:[\"Tags\"],refs:{panel:{selector:\"tagspanel\",xtype:\"tags",240155,42,"hange:\"onChange\"}}},onChange:function(a,b){return this.setTag(b.tag)},show:function(){var a,b;b=this.getTags();if(Ext.Object.getSize(b)<=1){return}",240361,69,"if(!a.getParent()){Ext.Viewport.add(a)}a.setTags(this.getTags());a.setValue({tag:this.getTag()});return a.show()},getTags:function(){var a,b,c;c=Ext.getStore(\"Tasks\");b={\"\":0};a=this.getTag();if(!Ext.isEmpty(a)){b[a]=0}c.each(function(g){var h,d,j,f,i,e;if(g.data.info&&Ext.isArray(g.data.info.tags)&&g.data.info.tags.length){i=g.data.info.tags;e=[];for(j=0,f=i.length;j<f;j++){d=i[j];h=b[d];e.push(b[d]=h?h+1:1)}return e}else{return b[\"\"]=b[\"\"]+1}});return b",288864,32,"updateTag(this.getTag())},updateTag:function(a){var b;if(Ext.isEmpty(a)){window.localStorage.removeItem(\"tag\")}else{window.localStorage.setItem(\"tag\",a)}b",294528,38,"TaskFilter\");if(b){b.setFilterFn(this.generateFilterFn(a))}return this.fireEvent(\"change\",a)},generateFilterFn:function(a){if(Ext.isEmpty(a)){return function(){return true}}else{return function(b){return b.data.info&&Ext.isArray(b.data.info.tags)&&Ext.Array.contains(b.data.info.tags,a",357823,32,240766,144,"itemId:\"add\"},{iconCls:\"tags\",itemId:\"tags\"},{iconCls:\"reply\",itemId",240947,58,"#add\":{",336624,38,"add\")}},\"#undo\":{",336624,38,"undo\")}},\"#tags\":{",336624,38,"tags\")}}}",218029,32,241162,3971,"FvTouch.field.Tags",233524,35,"agsfield\",applyValue:function(a){if(Ext.isArray(a)){return a}else{if(Ext.isEmpty(a)){return[]}else{return[a.toString()]}",230815,32,";if(!Ext.isArray(b)){Ext.Logger.error(\"value of tagsfield should be an array\")}a=b.join(\", \");return this.callParent([a])},getValue:function(){var a,b;b=this.callParent();a=Ext.Array.map(b.split(\",\"),function(c){return c.trim()});a=Ext.Array.filter(a,function(c){return !Ext.isEmpty(c)});a=Ext.Array.unique(a);if(a.length){return a}else{return",245116,45427,"Ext.getStore(\"TasksProxy\").refresh();",290543,1939,290430,92,";",291998,44,"TaskFilter\").on({update:\"refresh\",scope:this})",296672,42,292623,425,290387,36,290430,40,293108,857,290430,48,294020,62,";",291998,44,"TaskFilter\").on({update:\"refresh\",scope:this",294080,2363,290430,48,294020,62,";",291998,44,"TaskFilter\").on({update:\"refresh\",scope:this",294080,56,296614,24649,",\"FvTouch.field.Tags\"],config:{values:void 0,",321273,337,",",321551,34,"agsfield\",name:\"tags\",label:\"Tags",321606,267,"applyValues:function(a){if(a===void 0||a===null){return a}else{return Ext.apply(a.info||{},{title:a.title})}},getValues:function(){var b,a;a=",321901,35,";b=a.title;delete a.title;return{title:b,info:a}},updateValues",336415,32,321979,782,"if(a){this.setUid(a.uid",107504,55,322833,9912,332778,1331,"(false);if(a){a.hide()}",334144,13656,",\"break\"",401271,39,"reak\",a,b)},timeout",401271,38,"timeout\",a,b",348620,51,"break\",\"timeou",347845,33,"eady",348059,68,"RunningItem\"],xtype:\"ready\",config:{store:\"Ready",347392,408,",\"break\"",348576,95,"start\"]",347227,36,349150,50,"RunningList\",\"FvTouch.view.Ready",347945,72,",{xtype:\"ready\"}],control:{runninglist:{refresh:\"onDataviewRefresh\"},ready:{refresh:\"onDataviewRefresh\"}}",321613,34,"this.onDataviewRefresh(this.child(\"runninglist\"));return this.onDataviewRefresh(this.child(\"ready\"))}}},onDataviewRefresh:function(a){if(a.getStore().getCount()){return a.show()}else{return a.hide()}",348018,52681,"this.initConfig(a);return this.init()},init:Ext.emptyFn",400725,3269,"TasksProxy",404623,53,404895,54,"controller.TaskFilte",238718,51,"store.TasksProxy\"],config:{filterFn:function(){return true}},updateFilterFn:function(a){var b;b=Ext.getStore(\"TasksProxy\");if(b){b.clearFilter(true);b.setFilters([{filterFn:a}]);",290550,37,"return this.fireEvent(\"update\"",398858,34,"odosProxy",404623,47,"odos\",filters:[{filterFn:function(b){var a,c;c=Ext.getStore(\"TasksProxy\");a=c.getById(b.get(\"task_id\"));return !Ext.isEmpty(a)}}]",404894,61,403994,511,"d){var a,c,b;b=Ext.getStore(\"TodosProxy\");if(b.getCount()&&b.getById(d.getId())&&(d.data.preselected||d.getId()===b.first().getId())){return true}else{c=Ext.getStore(\"Tasks\");a=c.getById(d.get(\"task_id\"));return a&&a.get(\"status\")===\"running\"}}}]",404894,61,404615,217,404955,257,"Proxy",405212,339,"FvTouch.store.Ready",404623,53,404726,35,"open",404768,35,",init:function(){var a;a=Ext.getStore(\"Preselecteds\");a.on({refresh:\"refreshData\",scope:this});return this.refreshData(a)},addOn",280391,32,"setData([a])}else{return this.clearData()}},refreshData:function(b){var c,a;c=b.first();if(c){a=Ext.getStore(\"Tasks\").getById(c.get(\"task_id\"));return this.addOne(a)}else{return this.addOne(null)}",405535,4244,"info",409769,1056,"picker.Slot",348059,34,"xtype:\"pickerslot\",alternateClassName:\"Ext.Picker.Slot",316369,33,"data.Store\",\"Ext.Component\",\"Ext.data.StoreManager\"],isSlot:true,config:{title:null,showTitle:true,cls:Ext.baseCSSPrefix+\"picker-slot\",name:null,value:null,flex:1,align:\"left\",displayField:\"text\",valueField:\"value\",scrollable:{direction:\"vertical\",indicators:false,momentumEasing:{minVelocity:2},slotSnapEasing:{duration:100}}",272466,38,"Index=0",272535,34,"Title:function(a){if(a){a=Ext.create(\"Ext.Component\",{cls:Ext.baseCSSPrefix+\"picker-slot-title\",docked:\"top\",html:a})}return a",244780,45,";this.setupBar()}if(a){this.remove(a)}},updateShowTitle:function(a){var b=this.getTitle();if(b){b[a?\"show\":\"hide\"]();this.setupBar()}},updateDisplayField:function(a){this.setItemTpl('<div class=\"'+Ext.baseCSSPrefix+'picker-item {cls} <tpl if=\"extra\">'+Ext.baseCSSPrefix+'picker-invalid</tpl>\">{'+a+\"}</div>\")},updateAlign:function(a,c){var b=this.element;b.addCls(Ext.baseCSSPrefix+\"picker-\"+a);b.removeCls(Ext.baseCSSPrefix+\"picker-\"+c)},applyData:function(d){var f=[],c=d&&d.length,a,b,e;if(d&&Ext.isArray(d)&&c){for(a=0;a<c;a++){b=d[a];e={};if(Ext.isArray(b)){e[this.valueField]=b[0];e[this.displayField]=b[1]}else{if(Ext.isString(b)){e[this.valueField]=b;e[this.displayField]=b}else{if(Ext.isObject(b)){e=b}}}f.push(e)}}return d},updateData:function(",344212,46,"fields:[\"text\",\"value\"],data:a}))",280015,42,"var a=this.getScrollable().getScroller();this.on({scope:this,painted:\"onPainted\",itemtap:\"doItemTap\"});a.on({scope:this,scrollend:\"onScrollEn",119325,32,"setupBar()},getPicker:function(){if(!this.picker){this.picker=this.getParent()}return this.picker},setupBa",179886,32,"return}var a=this.element,e=this.innerElement,f=this.getPicker(),g=f.bar,k=this.getValue(),b=this.getShowTitle(),j=this.getTitle(),h=this.getScrollable(),d=h.getScroller(),c=0,l,i;l=g.getHeight();if(b&&j){c=j.element.getHeight()}i=Math.ceil((a.getHeight()-c-l)/2);e.setStyle({padding:i+\"px 0 \"+(i)+\"px\"});d.refresh();d.setSlotSnapSize(l);this.setValue(k)},doItemTap:function(d,a,c,f){var b=this;b.selectedIndex=a;b.selectedNode=c;b.scrollToItem(c,true);b.fireEvent(\"slotpick\",b,b.getValue(true),b.selectedNode)},scrollToItem:function(e,d){var h=e.getY(),c=e.parent(),f=c.getY(),b=this.getScrollable(),a=b.getScroller(),g;g=h-f;a.scrollTo(0,g,d)},onScrollEnd:function(b,a,g){var f=this,d=Math.round(g/f.picker.bar.getHeight()),c=f.getViewItems(),e=c[d];if(e){f.selectedIndex=d;f.selectedNode=e;f.fireEvent(\"slotpick\",f,f.getValue(),f.selectedNode)}},getValue:function(c){var b=this.getStore(),a,d;if(!b){return}if(!this.rendered||!c){return this._value}if(this._value===false){return null}a=b.getAt(this.selectedIndex);d=a?a.get(this.getValueField()):null;return d},setValue:function(f){if(!Ext.isDefined(f)){return}if(!this.rendered||!f){this._value=f;return}var b=this.getStore(),a=this.getViewItems(),d=this.getValueField(),c,e;c=b.find(d,f);if(c!=-1){e=Ext.get(a[c]);this.selectedIndex=c;this.scrollToItem(e);this._value=f}},setValueAnimated:function(f){if(!f){return}if(!this.rendered){this._value=f;return}var b=this.getStore(),a=this.getViewItems(),d=this.getValueField(),c,e;c=b.find(d,f);if(c!=-1){e=Ext.get(a[c]);this.selectedIndex=c;this.scrollToItem(e,{duration:100});this._value=f}}});Ext.define(\"Ext.picker.Picker",241692,36,"picker\",alternateClassName:\"Ext.Picker\",requires:[\"Ext.picker.Slot\",\"Ext.Toolbar\",\"Ext.data.Model\"],isPicker:true",296971,32,"picker\",doneButton:true,cancelButton:true,useTitles:false,slots:null,value:null,height:220,layout:{type:\"hbox\",align:\"stretch\"},centered:false,left:0,right:0,bottom:0,defaultType:\"pickerslot\",toolbar:true},initElement",353488,39,"var b=this,a=Ext.baseCSSPrefix,c=this.innerElement;this.mask=c.createChild({cls:a+\"picker-mask\"});this.bar=this.mask.createChild({cls:a+\"picker-bar\"});b.on({scope:this,delegate:\"pickerslot\",slotpick:\"onSlotPick\"});b.on({scope:this,show:\"onShow\"})},applyToolb",309809,33,"Ext.applyIf(a,{docked:\"top\"});return Ext.factory(a,\"Ext.TitleBar\",this.getToolbar())},updateToolbar",237153,56,"applyDoneButton:function(a){if(a){if(Ext.isBoolean(a)){a={}}if(typeof a==\"string\"){a={text:a}}Ext.applyIf(a,{ui:\"action\",align:\"right\",text:\"Done\"})}return Ext.factory(a,\"Ext.Button\",this.getDoneButton())},updateDoneButton:function(c,a){var b=this.getToolbar();if(c){b.add(c);c.on(\"tap\",this.onDoneButtonTap,this)}else{if(a){b.remove(a)}}},applyCancelButton:function(a){if(a){if(Ext.isBoolean(a)){a={}}if(typeof a==\"string\"){a={text:a}}Ext.applyIf(a,{align:\"left\",text:\"Cancel\"})}return Ext.factory(a,\"Ext.Button\",this.getCancelButton())},updateCancelButton:function(b,a){var c=this.getToolbar();if(b){c.add(b);b.on(\"tap\",this.onCancelButtonTap,this)}else{if(a){c.remove(a)}}},updateUseTitles:function(d){var f=this.getInnerItems(),e=f.length,a=Ext.baseCSSPrefix+\"use-titles\",c,b;if(d",229600,40,"for(c=0;c<e;c++){b=f[c];if(b.isSlot){b.setShowTitle(d)}}},applySlots:function(b){if(b){var c=b.length,a;for(a=0;a<c;a++){b[a].picker=this}}return b},updateSlots:function(a){var b=Ext.baseCSSPrefix,c;this.removeAll();if(a){this.add(a)}c=this.getInnerItems();if(c.length>0){c[0].addCls(b+\"first\");c[c.length-1].addCls(b+\"last\")}this.updateUseTitles(this.getUseTitles())},onDoneButtonTap:function(){var a=this._value,b=this.getValue(true);if(b!=a){this.fireEvent(\"change\",this,b)}this.hide()},onCancelButtonTap:function(){this.fireEvent(\"cancel\",this);this.hide()},onSlotP",213693,32,"pick\",this,this.getValue(true),a)},onShow:function(){if(!this.isHidden()){this.setValue(this._value)}},setValue:function(k,a){var f=this,d=f.getInnerItems(),e=d.length,j,h,c,b,g;if(!k){k={};for(b=0;b<e;b++){k[d[b].config.name]=null}}for(j in k){g=k[j];for(b=0;b<d.length;b++){c=d[b];if(c.config.name==j){h=c;break}}if(h){if(a){h.setValueAnimated(g)}else{h.setValue(g)}}}f._values=f._value=k;return f},setValueAnimated:function(a){this.setValue(a,true)},getValue:function(c){var b={},a=this.getItems().items,f=a.length,e,d;if(c){for(d=0;d<f;d++){e=a[d];if(e&&e.isSlot){b[e.getName()]=e.getValue(c)}}this._values=b}return this._values",263759,38,"Value(",69768,38,");Ext.destroy(this.mask,this.bar)",321083,42,"Tags\",{extend:\"Ext.picker.Picker\",xtype:\"tagspanel\",config:{tags:{},hideOnMaskTap:true},updateTags:function(c){var d,b,a;d=(function(){var e;e=[];for(b in c){a=c[b];e.push({text:b,value:a})}return e})();d=Ext.Array.sort(d,function(e,f){if(Ext.isEmpty(e.text)){return -1}else{if(Ext.isEmpty(f.text)){return 1}else{return f.value-e.value}}});return this.setSlots({name:\"tag\",data:Ext.Array.map(d,function(e){return{text:e.text,value:e.text}})})",410805,1032,"askFilter",411833,98,",\"Tag",411929,81,"TasksProxy\",\"TodosProxy",412007,38,"History\",\"Read",412064,577]
2  deltas/app.js/d5c4fa6bcf7acfd5142566284c46dc1c17be6e04.json
View
@@ -1 +1 @@
-["/*e98e3e743a2813f1f95750e291a0b5256828bd6a",42,239650,"e){var a,d,c,b;if(e){",240362,48,"if(c){b=Ext.clone(c.getData())}}",239700,59,"if(b){a.setValues(b",239757,5266,"Media",277241,33,"media\",config:{url:\"\",enableControls:Ext.os.is.Android?false:true,autoResume:false,autoPause:true,preload:true,loop:false,media:null,volume:1,muted:false",257968,52,"on({scope:a,activate:a.onActivate,deactivate:a.onDeactivate});a.addMediaListener({canplay:\"onCanPlay\",play:\"onPlay\",pause:\"onPause\",ended:\"onEnd\",volumechange:\"onVolumeChange\",timeupdate:\"onTimeUpdate\"})},addMediaListener:function(d,b){var c=this,e=c.media.dom,f=Ext.Function.bind;if(!Ext.isObject(d)){var a=d;d={};d[a]=b}Ext.Object.each(d,function(h,g){if(typeof g!==\"function\"){g=c[g]}if(typeof g==\"function\"){g=f(g,c);e.addEventListener(h,g)}})},onPlay:function(){this.fireEvent(\"play\",this)},onCanPlay:function(){this.fireEvent(\"canplay\",this)},onPause:function(){this.fireEvent(\"pause\",this,this.getCurrentTime())},onEnd:function(){this.fireEvent(\"ended\",this,this.getCurrentTime())},onVolum",193887,35,"volumechange\",this,this.media.dom.volume)},onTimeUpdate:function(){this.fireEvent(\"timeupdate\",this,this.getCurrentTime())},isPlaying:function(){return !Boolean(this.media.dom.paused)},onActivate:function(){var a=this;if(a.getAutoResume()&&!a.isPlaying()){a.play()}},onDeactivate:function(){var a=this;if(a.getAutoResume()&&a.isPlaying()){a.pause()}},updateUrl:function(a){var b=this.media.dom;b.src=a;if(\"load\" in b){b.load()}if(this.isPlaying()){this.play()}},updateEnableControls:function(a){this.media.dom.controls=a?\"controls\":false},updateLoop:function(a){this.media.dom.loop=a?\"loop\":false},play:function(){var a=this.media.dom;if(\"play\" in a){a.play();setTimeout(function(){a.play()},10)}},pause:function(){var a=this.media.dom;if(\"pause\" in a){a.pause()}},toggle:function(){if(this.isPlaying()){this.pause()}else{this.play()}},stop:function(){var a=this;a.setCurrentTime(0);a.fireEvent(\"stop\",a);a.pause()},updateVolume:function(a){this.media.dom.volume=a},updateMuted:function(a){this.fireEvent(\"mutedchange\",this,a);this.media.dom.muted=a},getCurrentTime:function(){return this.media.dom.currentTime},setCurrentTime:function(a){this.media.dom.currentTime=a;return a},getDuration:function(){return this.media.dom.duration",375014,32,"Ext.Object.each(event,function(c,b){if(typeof b!==\"function\"){b=a[b]}if(typeof b==\"function\"){b=bind(b,a);dom.removeEventListener(c,b)}})",245003,45449,"timeout:\"onTimeou",287808,107,289981,40,290580,1172,"b,c){var a,g,f,e,d;d=b.get(\"uid\");e=Ext.getStore(\"Timers\");g=e.findRecord(\"uid\",d);if(g){f=g",291842,38,"e.add({uid:d,time:b.get(\"starttime\"),type:\"go\"});f=\"break\"}e.add({uid:d,time:Date.now(),type:f});if(!c.getTimeout()){a=",238925,37,"Sounds\");if(f===\"go\"){a.play(\"starttask\")}else{a.play(\"break\")}}return c.updateTimer(b)},onTimeout:function(b,c){var a,d;d=c.getTimerType();a=",238925,37,"Sounds\");if(d===\"go\"){return a.play(\"break\")}else{return a.play(\"starttask\")}",292000,1520,"config:{refs:{historyview:\"historyview\"},control:{historyview:{add:\"showAddPanel\"}}}",293519,162,"b){var a;a=b.getType();if(a===\"taskdone\"||a===\"postponetask",293710,87,",showAddPanel:function(a){var b,c;c=a.data.cdata.task.uid;b=Ext.getStore(\"Tasks\").findRecord(\"uid\",c);if(!b){return}",292544,44,"AddTask\").show(c)}});Ext.define(\"Ext.Audio\",{extend:\"Ext.Media\",xtype:\"audio\"",76282,32,"audio\"},onActivat",230367,39,"if(Ext.os.is.Phone){a.element.show()}},onDeactivat",230367,39,"if(Ext.os.is.Phone){a.element.hide()}},template:[{reference:\"media\",preload:\"auto\",tag:\"audio\",cls:Ext.baseCSSPrefix+\"component\"}]",239872,34,"Sounds",238719,42,"Ext.Audio\",",293486,34,"sounds:{}",293519,65,"playIfRelated\",undo:function(){return this.play(\"undo\")},scope:this})},createTryPlayFun:function(a,d,c){var b;if(c==null){c=3000}b=new RegExp(\"^\"+a+\"[1-\"+d+\"]$\");return function(g,e){var f;if(e<c&&b.test(g)){f=parseInt(g.substr(a.length));if(f<d){f=f+1}return a+f}else{return a+\"1\"}}},createPreselectTryPlayFun:function(c){var a,b;b=/^preselect[1-8]$/;a=\"preselect\";return function(f,d){var e;if(d<3000&&b.test(f)){e=parseInt(f.substr(9));if(c&&e>1){e=e-1}else{if(e<8){e=e+1}}return a+e}else{return a+\"1\"}}},play",291563,45,"a===\"taskdone\"){if(!this._taskdoneTryPlayFun){this._taskdoneTryPlayFun=this.createTryPlayFun(\"taskdone\",8)}return this.tryPlay(this._taskdoneTryPlayFun)}else{if(a===\"postponetask\"){return this.play(\"postponetask\")}else{if(a===\"starttask\"){return this.play(\"starttask\")}else{if(a===\"deletetask\"){return this.play(\"deletetask\")}else{if(a===\"addtask\"){return this.play(\"addtask\")}else{if(a===\"edittask\"){return this.play(\"edittask\")}else{if(a===\"preselect\"){return this.tryPlay(this.createPreselectTryPlayFun(b.getCdata().preselected))}}}}}}}},tryPlay:function(a){var b;b=a(this.prename,Date.now()-this.pretime);if(b){return this.play(b)}},play:function(a){var b;b=this.sounds[a];if(!b){b=this.createSound(a);this.sounds[a]=b}if(this.prename){this.sounds[this.prename].stop()}b.play();this.prename=a;return this.pretime=Date.now()},createSound:function(b){var a;a=\"resources/sounds/\"+b+\".m4a\";return Ext.Viewport.add({xtype:\"audio\",hidden:true,url:a}",293795,32866,"timerType:\"go\",time:null,timeout:null,",326661,858,327542,245,"Timeout",344015,35,"timeout",327759,298,"b){var e,a,g,f,d,c;if(b==null){b=this.getRecord()",328255,42,"a=b.get(\"status\");if(a===\"open\"){this.setTimerType(\"ready\");this.setTime(0);return}c=b",291772,37,"g=d.findRecord(\"uid\",c);if(g){f=g.get(\"time\");this.setTimerType(g.get(\"type\"))}else{f=b",328217,32,"this.setTimerType(\"go\")}e",328298,47,"e.refreshAll(",328360,33,328395,118,"updateTime:function(d){var b,a,c",328551,61,"a.setText(this.timeText(d));if(this.getTimerType()===\"ready\"){this.setTimeout(false);if(a){a.hide()}b.setIconCls(\"play1",328746,34,"if(this.getTimerType()===\"go\"){c=d",328675,32,"c>100){this.setTimeout(true);",328714,66,"this.setTimeout(false);a.setValue(c",328792,47,"c=100-d",328846,50,"c<0){this.setTimeout(true);",328901,45,"this.setTimeout(false);a.setValue(c);return b.setUi(\"normal\")}}}},updateTimeout:function(b,a){if(b&&Ext.isBoolean(a)&&b!==a){return this.onTimeout()}},refreshAll:function(c){var a,b;a=Date.now();b=a-c;return this.setTime(b)",328986,13008,",\"break\"",395120,39,"reak\",a,b)},timeout",395120,38,"timeout\",a,b",342814,51,"break\",\"timeou",342039,33,"eady",342253,68,"RunningItem\"],xtype:\"ready\",config:{store:\"Ready",341586,408,",\"break\"",341950,36,342806,59,"start\"]",341421,36,343344,50,"RunningList\",\"FvTouch.view.Ready",342139,72,",{xtype:\"ready\"}],control:{runninglist:{refresh:\"onDataviewRefresh\"},ready:{refresh:\"onDataviewRefresh\"}}",316425,34,"this.onDataviewRefresh(this.child(\"runninglist\"));return this.onDataviewRefresh(this.child(\"ready\"))}}},onDataviewRefresh:function(a){if(a.getStore().getCount()){return a.show()}else{return a.hide()}",342212,9156,"div class=\\\"x-docking-horizontal\\\">\\n <div class='x-docked-left cmdtype {type}'></div>\\n <div class=\\\"x-body tasktitle\\\">{title}</div>\\n <div class='x-docked-right taskendtime'>{endtime:date('H:i:s')}</div>\\n</div>\",listeners:{itemdoubletap",341692,40,"dd\",a)}},bubbleEvents:[\"add\"]},prepareData:function(g,c,a){var b,f,e;try{f=Ext.getStore(\"Tasks\");e=g.cdata.task.uid;b=f.findRecord(\"uid\",e",351567,53,"type:g.type",351619,59,"g.ctime)}}catch(d){console.info(d);return{title:\"[error]\",type:\"\",createtime:new Data(),endtime:new Date()}",351695,149,"{xtype:\"history",342205,36,"Main",303423,33,351911,42637,"this.initConfig(a);return this.init()},init:Ext.emptyFn",394574,4354,"filterFn:function(d){var a,c,b;c=d.get(\"type\");if(c===\"taskdone\"||c===\"postponetask\"){b=d.get(\"cdata\").task.uid;a=Ext.getStore(\"Tasks\").findRecord(\"uid\",b);if(!a){return false}if(c===\"postponetask\"){return d.get(\"cdata\").task.status===\"running\"}else{return true}}else{return false}}",398960,190,"FvTouch.store.Ready",397855,47,"asks\"",398574,36,"open\"}]",399103,32,",init:function(){var a;a=Ext.getStore(\"Preselecteds\");a.on({refresh:\"refreshData\",scope:this});return this.refreshData(a)},addOn",277883,32,"setData([a])}else{return this.clearData()}},refreshData:function(b){var c,a;c=b.first();if(c){a=Ext.getStore(\"Tasks\").getById(c.get(\"task_id\"));return this.addOne(a)}else{return this.addOne(null)}",399134,6387,",\"Sounds",405520,136,",\"Read",405654,577]
+["/*022eda3a66e9071b0bedd0435d39bd8357e275fd",42,214314,"if(!b",220795,68,"b.data.uid,title:b.data.title,info:b.data.info",214438,1144,"c){var e,h,f,a,d,i,b,g;g=Ext.getStore(\"Tasks\");b=g.findRecord(\"uid\",c.uid);a=c.title;if(Ext.isEmpty(a)){return false}f=c.info;i=b.get(\"title\");d=b.get(\"info\");if(a===i&&this.isEquals(f,d)){return false}h=this.getDelta(f,d);e={uid:c.uid,\"new\":{},old:{}};if(a!==i){e[\"new\"].title=a;e.old.title=i}if(h.xDelta){e[\"new\"].info=h.xDelta}if(h.yDelta){e.old.info=h.yDelta}return e},doImpl:function(){var c,f,d,a,b,e",215775,71,"e=c[\"new\"].title;if(e!==void 0){a.set(\"title\",e)}f=c[\"new\"].info;if(f){d=this.apply(a.get(\"info\"),f);a.set(\"info\",d)}",215876,43,"f,d,a,b,e",215775,71,"e=c.old.title;if(e!==void 0){a.set(\"title\",e)}f=c.old.info;if(f){d=this.apply(a.get(\"info\"),f);a.set(\"info\",d)}return a.save()},isEquals:function(a,b){if(a===b){return true}else{if(Ext.isPrimitive(a)){return false}else{if(Ext.isArray(a)){return Ext.isArray(b)&&this.isArrayEquals(a,b)}else{if(Ext.isEmpty(a)){return false}else{if(Ext.isDate(a)){return Ext.isDate(b)&&a.getTime()===b.getTime()}else{if(Ext.isFunction(a)){return Ext.isFunction(b)&&a.toString()===b.toString()}else{return Ext.isObject(b)&&this.isObjectEquals(a,b)}}}}}}},isArrayEquals:function(a,d){var b,c;if(a.length===d.length){for(b=0,c=length-1;0<=c?b<c:b>c;0<=c?b++:b--){if(!this.isEquals(a[b],d[b])){return false}}return true}else{return false}},isObjectEquals:function(a,h){var d,e,g,c,f,b;g=Ext.Object.getKeys(a);c=Ext.Object.getKeys(h);e=Ext.Array.merge(g,c);for(f=0,b=e.length;f<b;f++){d=e[f];if(!this.isEquals(a[d],h[d])){return false}}return true},getDelta:function(g,c){var k,i,j,b,h,d,f,a,e;if(!Ext.isObject(g)){g={}}if(!Ext.isObject(c)){c={}}h=Ext.Object.getKeys(g);f=Ext.Object.getKeys(c);j=Ext.Array.merge(h,f);b={};d={};k=false;for(a=0,e=j.length;a<e;a++){i=j[a];if(!this.isEquals(g[i],c[i])){b[i]=g[i];d[i]=c[i];k=true}}if(k){return{xDelta:b,yDelta:d}}else{return{}}},apply:function(c,d){var b,a;c||(c={});for(b in d){a=d[b];if(a===void 0){delete c[b]}else{c[b]=d[b]}}if(Ext.Object.getSize(c)){return c}else{return}",218029,33,"ostpon",214159,57,216131,144,"if(!b",220795,51,"if(!a){return false}",216311,97,"if(",216345,48,"&&Ext.getStore(\"TodosProxy\").last().getId()===a.getId()",216393,1776,"e){var d,b,g,a,f,c;c=Ext.getStore(\"Todos\");g=Ext.getStore(\"Tasks\");b=g.findRecord(\"uid\",e.uid);if(!b",220795,51,"if(!a||",218299,59,"f=Ext.getStore(\"TodosProxy\");d=f.first();if(d&&a.getId()===d.getId()){return false}return{uid:e",218370,195,"getId()",218572,369,"getId()",218572,71,"===e",217520,39,219062,321,"if(!b",220795,51,219419,1352,"!b",218317,41,221134,36,220846,3610,"var b,c;if(Ext.isEmpty(a.title)){return false}b=",224488,69,";c=this.normalize(a.info);if(c){b.info=c}return b",224557,166,"info:e.info",224722,331,",normalize:function(c){var b,a;for(b in c){a=c[b];if(a===void 0){delete c[b]}}if(Ext.Object.getSize(c)){return c}else{return}",225052,13786,",tagsButton:\"mytoolbar #tags",238837,53,",tags:\"onTags",238889,154,",onTags",238906,56,"Tags\").show()},launch:function(){var a;a=",238925,37,"Tags\");a.on({scope:this,change:\"changeTagsBadgeText\"});return this.changeTagsBadgeText(a.getTag())},changeTagsBadgeText:function(a){return this.getTagsButton().setBadgeText(a",239870,36,"AddTask",238719,66,239150,542,"f){var b,e,a,d,c;if(f){e=Ext.getStore(\"Tasks\");d=e.findRecord(\"uid\",f);if(d){c=Ext.clone(d.getData())}}else{a=",238925,37,"Tags\").getTag();if(a){c={info:{tags:[a]}}}}b=this.getPanel();if(!b",288880,33,"b)}if(c){b.setValues(c)}return b",239767,880,"controller.Tags",238719,41,"],config:{tag:window.localStorage.getItem(\"tag\"),views:[\"Tags\"],refs:{panel:{selector:\"tagspanel\",xtype:\"tags",240041,42,"hange:\"onChange\"}}},onChange:function(a,b){return this.setTag(b.tag)},show:function(){var a,b;b=this.getTags();if(Ext.Object.getSize(b)<=1){return}",239592,69,"if(!a.getParent()){Ext.Viewport.add(a)}a.setTags(this.getTags());a.setValue({tag:this.getTag()});return a.show()},getTags:function(){var a,b,c;c=Ext.getStore(\"Tasks\");b={\"\":0};a=this.getTag();if(!Ext.isEmpty(a)){b[a]=0}c.each(function(g){var h,d,j,f,i,e;if(g.data.info&&Ext.isArray(g.data.info.tags)&&g.data.info.tags.length){i=g.data.info.tags;e=[];for(j=0,f=i.length;j<f;j++){d=i[j];h=b[d];e.push(b[d]=h?h+1:1)}return e}else{return b[\"\"]=b[\"\"]+1}});return b",286356,32,"updateTag(this.getTag())},updateTag:function(a){var b;if(Ext.isEmpty(a)){window.localStorage.removeItem(\"tag\")}else{window.localStorage.setItem(\"tag\",a)}b=",238925,37,"TaskFilter\");if(b){b.setFilterFn(this.generateFilterFn(a))}return this.fireEvent(\"change\",a)},generateFilterFn:function(a){if(Ext.isEmpty(a)){return function(){return true}}else{return function(b){return b.data.info&&Ext.isArray(b.data.info.tags)&&Ext.Array.contains(b.data.info.tags,a)}}",240623,173,"itemId:\"add\"},{iconCls:\"tags\",itemId:\"tags\"},{iconCls:\"reply\",itemId",240833,58,"#add\":{ta",344014,36,"add\")}},\"#undo\":{ta",344014,36,"undo\")}},\"#tags\":{ta",344014,36,"tags\")}}}",218029,32,241048,3971,"FvTouch.field.Tags",233524,35,"agsfield\",applyValue:function(a){if(Ext.isArray(a)){return a}else{if(Ext.isEmpty(a)){return[]}else{return[a.toString()]}",230815,32,";if(!Ext.isArray(b)){Ext.Logger.error(\"value of tagsfield should be an array\")}a=b.join(\", \");return this.callParent([a])},getValue:function(){var a,b;b=this.callParent();a=Ext.Array.map(b.split(\",\"),function(c){return c.trim()});a=Ext.Array.filter(a,function(c){return !Ext.isEmpty(c)});a=Ext.Array.unique(a);if(a.length){return a}else{return}}});Ext.define(\"Ext.Media",277241,33,"media\",config:{url:\"\",enableControls:Ext.os.is.Android?false:true,autoResume:false,autoPause:true,preload:true,loop:false,media:null,volume:1,muted:false",257968,52,"on({scope:a,activate:a.onActivate,deactivate:a.onDeactivate});a.addMediaListener({canplay:\"onCanPlay\",play:\"onPlay\",pause:\"onPause\",ended:\"onEnd\",volumechange:\"onVolumeChange\",timeupdate:\"onTimeUpdate\"})},addMediaListener:function(d,b){var c=this,e=c.media.dom,f=Ext.Function.bind;if(!Ext.isObject(d)){var a=d;d={};d[a]=b}Ext.Object.each(d,function(h,g){if(typeof g!==\"function\"){g=c[g]}if(typeof g==\"function\"){g=f(g,c);e.addEventListener(h,g)}})},onPlay:function(){this.fireEvent(\"play\",this)},onCanPlay:function(){this.fireEvent(\"canplay\",this)},onPause:function(){this.fireEvent(\"pause\",this,this.getCurrentTime())},onEnd:function(){this.fireEvent(\"ended\",this,this.getCurrentTime())},onVolum",193887,35,"volumechange\",this,this.media.dom.volume)},onTimeUpdate:function(){this.fireEvent(\"timeupdate\",this,this.getCurrentTime())},isPlaying:function(){return !Boolean(this.media.dom.paused)},onActivate:function(){var a=this;if(a.getAutoResume()&&!a.isPlaying()){a.play()}},onDeactivate:function(){var a=this;if(a.getAutoResume()&&a.isPlaying()){a.pause()}},updateUrl:function(a){var b=this.media.dom;b.src=a;if(\"load\" in b){b.load()}if(this.isPlaying()){this.play()}},updateEnableControls:function(a){this.media.dom.controls=a?\"controls\":false},updateLoop:function(a){this.media.dom.loop=a?\"loop\":false},play:function(){var a=this.media.dom;if(\"play\" in a){a.play();setTimeout(function(){a.play()},10)}},pause:function(){var a=this.media.dom;if(\"pause\" in a){a.pause()}},toggle:function(){if(this.isPlaying()){this.pause()}else{this.play()}},stop:function(){var a=this;a.setCurrentTime(0);a.fireEvent(\"stop\",a);a.pause()},updateVolume:function(a){this.media.dom.volume=a},updateMuted:function(a){this.fireEvent(\"mutedchange\",this,a);this.media.dom.muted=a},getCurrentTime:function(){return this.media.dom.currentTime},setCurrentTime:function(a){this.media.dom.currentTime=a;return a},getDuration:function(){return this.media.dom.duration",375014,32,"Ext.Object.each(event,function(c,b){if(typeof b!==\"function\"){b=a[b]}if(typeof b==\"function\"){b=bind(b,a);dom.removeEventListener(c,b)}})",245003,43032,"Ext.getStore(\"TasksProxy\").refresh();",288035,1939,289981,92,";",292544,44,"TaskFilter\").on({update:\"refresh\",scope:this",288012,44,290115,337,"timeout:\"onTimeou",287808,107,289981,40,290580,857,289981,48,293591,62,";",292544,44,"TaskFilter\").on({update:\"refresh\",scope:this",291552,200,"b,c){var a,g,f,e,d;d=b.get(\"uid\");e=Ext.getStore(\"Timers\");g=e.findRecord(\"uid\",d);if(g){f=g",291842,38,"e.add({uid:d,time:b.get(\"starttime\"),type:\"go\"});f=\"break\"}e.add({uid:d,time:Date.now(),type:f});if(!c.getTimeout()){a=",238925,37,"Sounds\");if(f===\"go\"){a.play(\"starttask\")}else{a.play(\"break\")}}return c.updateTimer(b)},onTimeout:function(b,c){var a,d;d=c.getTimerType();a=",238925,37,"Sounds\");if(d===\"go\"){return a.play(\"break\")}else{return a.play(\"starttask\")}",292000,1520,"config:{refs:{historyview:\"historyview\"},control:{historyview:{add:\"showAddPanel",290519,61,293583,70,";",292544,44,"TaskFilter\").on({update:\"refresh\",scope:this",291552,56,"a===\"taskdone\"||a===\"postponetask",293710,87,",showAddPanel:function(a){var b,c;c=a.data.cdata.task.uid;b=Ext.getStore(\"Tasks\").findRecord(\"uid\",c);if(!b){return}",292544,44,"AddTask\").show(c)}});Ext.define(\"Ext.Audio\",{extend:\"Ext.Media\",xtype:\"audio\"",76282,32,"audio\"},onActivat",230367,39,"if(Ext.os.is.Phone){a.element.show()}},onDeactivat",230367,39,"if(Ext.os.is.Phone){a.element.hide()}},template:[{reference:\"media\",preload:\"auto\",tag:\"audio\",cls:Ext.baseCSSPrefix+\"component\"}]",239872,34,"Sounds",238719,42,"Ext.Audio\",",293486,34,"sounds:{}",293519,65,"playIfRelated\",undo:function(){return this.play(\"undo\")},scope:this})},createTryPlayFun:function(a,d,c){var b;if(c==null){c=3000}b=new RegExp(\"^\"+a+\"[1-\"+d+\"]$\");return function(g,e){var f;if(e<c&&b.test(g)){f=parseInt(g.substr(a.length));if(f<d){f=f+1}return a+f}else{return a+\"1\"}}},createPreselectTryPlayFun:function(c){var a,b;b=/^preselect[1-8]$/;a=\"preselect\";return function(f,d){var e;if(d<3000&&b.test(f)){e=parseInt(f.substr(9));if(c&&e>1){e=e-1}else{if(e<8){e=e+1}}return a+e}else{return a+\"1\"}}},play",291563,45,"a===\"taskdone\"){if(!this._taskdoneTryPlayFun){this._taskdoneTryPlayFun=this.createTryPlayFun(\"taskdone\",8)}return this.tryPlay(this._taskdoneTryPlayFun)}else{if(a===\"postponetask\"){return this.play(\"postponetask\")}else{if(a===\"starttask\"){return this.play(\"starttask\")}else{if(a===\"deletetask\"){return this.play(\"deletetask\")}else{if(a===\"addtask\"){return this.play(\"addtask\")}else{if(a===\"edittask\"){return this.play(\"edittask\")}else{if(a===\"preselect\"){return this.tryPlay(this.createPreselectTryPlayFun(b.getCdata().preselected))}}}}}}}},tryPlay:function(a){var b;b=a(this.prename,Date.now()-this.pretime);if(b){return this.play(b)}},play:function(a){var b;b=this.sounds[a];if(!b){b=this.createSound(a);this.sounds[a]=b}if(this.prename){this.sounds[this.prename].stop()}b.play();this.prename=a;return this.pretime=Date.now()},createSound:function(b){var a;a=\"resources/sounds/\"+b+\".m4a\";return Ext.Viewport.add({xtype:\"audio\",hidden:true,url:a}",293795,22280,",\"FvTouch.field.Tags\"],config:{values:void 0,showA",303597,34,316124,298,",",316363,34,"agsfield\",name:\"tags\",label:\"Tags",316418,267,"applyValues:function(a){if(a===void 0||a===null){return a}else{return Ext.apply(a.info||{},{title:a.title})}},getValues:function(){var b,a;a=",316713,35,";b=a.title;delete a.title;return{title:b,info:a}},update",316753,820,"if(a){this.setUid(a.uid",107504,55,317645,9016,"timerType:\"go\",time:null,timeout:null,",326661,858,327542,245,"Timeout",344015,35,"timeout",327759,298,"b){var e,a,g,f,d,c;if(b==null){b=this.getRecord()",328255,42,"a=b.get(\"status\");if(a===\"open\"){this.setTimerType(\"ready\");this.setTime(0);return}c=b",291772,37,"g=d.findRecord(\"uid\",c);if(g){f=g.get(\"time\");this.setTimerType(g.get(\"type\"))}else{f=b",328217,32,"this.setTimerType(\"go\")}e",328298,47,"e.refreshAll(",328360,33,328395,118,"updateTime:function(d){var b,a,c",328551,61,"a.setText(this.timeText(d));if(this.getTimerType()===\"ready\"){this.setTimeout(false);if(a){a.hide()}b.setIconCls(\"play1",328746,34,"if(this.getTimerType()===\"go\"){c=d",328675,32,"c>100){this.setTimeout(true);",328714,66,"this.setTimeout(false);a.setValue(c",328792,47,"c=100-d",328846,50,"c<0){this.setTimeout(true);",328901,45,"this.setTimeout(false);a.setValue(c);return b.setUi(\"normal\")}}}},updateTimeout:function(b,a){if(b&&Ext.isBoolean(a)&&b!==a){return this.onTimeout()}},refreshAll:function(c){var a,b;a=Date.now();b=a-c;return this.setTime(b)",328986,13008,",\"break\"",395120,39,"reak\",a,b)},timeout",395120,38,"timeout\",a,b",342814,51,"break\",\"timeou",342039,33,"eady",342253,68,"RunningItem\"],xtype:\"ready\",config:{store:\"Ready",341586,408,",\"break\"",341950,36,342806,59,"start\"]",341421,36,343344,50,"RunningList\",\"FvTouch.view.Ready",342139,72,",{xtype:\"ready\"}],control:{runninglist:{refresh:\"onDataviewRefresh\"},ready:{refresh:\"onDataviewRefresh\"}}",316425,34,"this.onDataviewRefresh(this.child(\"runninglist\"));return this.onDataviewRefresh(this.child(\"ready\"))}}},onDataviewRefresh:function(a){if(a.getStore().getCount()){return a.show()}else{return a.hide()}",342212,9156,"div class=\\\"x-docking-horizontal\\\">\\n <div class='x-docked-left cmdtype {type}'></div>\\n <div class=\\\"x-body tasktitle\\\">{title}</div>\\n <div class='x-docked-right taskendtime'>{endtime:date('H:i:s')}</div>\\n</div>\",listeners:{itemdoubletap",341692,40,"dd\",a)}},bubbleEvents:[\"add\"]},prepareData:function(g,c,a){var b,f,e;try{f=Ext.getStore(\"Tasks\");e=g.cdata.task.uid;b=f.findRecord(\"uid\",e",351567,53,"type:g.type",351619,59,"g.ctime)}}catch(d){console.info(d);return{title:\"[error]\",type:\"\",createtime:new Data(),endtime:new Date()}",351695,149,"{xtype:\"history",342205,36,"Main",303423,33,351911,42637,"this.initConfig(a);return this.init()},init:Ext.emptyFn",394574,3269,"Task",398685,53,"ask",398741,57,"controller.TaskFilte",238718,51,"store.TasksProxy\"],config:{filterFn:function(){return true}},updateFilterFn:function(a){var b;b=Ext.getStore(\"TasksProxy\");if(b){b.clearFilter(true);b.setFilters([{filterFn:a}]);",288042,37,"return this.fireEvent(\"update\",a)",398651,93,"filters:[{filterFn:function(b){var a,c;c=Ext.getStore(\"TasksProxy\");a=c.getById(b.get(\"task_id\"));return !Ext.isEmpty(a)",398400,64,397843,511,"d){var a,c,b;b=Ext.getStore(\"TodosProxy\");if(b.getCount()&&b.getById(d.getId())&&(d.data.preselected||d.getId()===b.first().getId())){return true}else{c=Ext.getStore(\"Tasks\");a=c.getById(d.get(\"task_id\"));return a&&a.get(\"status\")===\"running\"}",398400,281,398804,124,"filterFn:function(d){var a,c,b;c=d.get(\"type\");if(c===\"taskdone\"||c===\"postponetask\"){b=d.get(\"cdata\").task.uid;a=Ext.getStore(\"TasksProxy\").findRecord(\"uid\",b);if(!a){return false}if(c===\"postponetask\"){return d.get(\"cdata\").task.status===\"running\"}else{return true}}else{return false}}",398960,190,"FvTouch.store.Ready",397855,47,"asks\"",398574,36,"open\"}]",399103,32,",init:function(){var a;a=Ext.getStore(\"Preselecteds\");a.on({refresh:\"refreshData\",scope:this});return this.refreshData(a)},addOn",277883,32,"setData([a])}else{return this.clearData()}},refreshData:function(b){var c,a;c=b.first();if(c){a=Ext.getStore(\"Tasks\").getById(c.get(\"task_id\"));return this.addOne(a)}else{return this.addOne(null)}",399134,4244,"info",403368,1056,"picker.Slot",342253,34,"xtype:\"pickerslot\",alternateClassName:\"Ext.Picker.Slot",311181,33,"data.Store\",\"Ext.Component\",\"Ext.data.StoreManager\"],isSlot:true,config:{title:null,showTitle:true,cls:Ext.baseCSSPrefix+\"picker-slot\",name:null,value:null,flex:1,align:\"left\",displayField:\"text\",valueField:\"value\",scrollable:{direction:\"vertical\",indicators:false,momentumEasing:{minVelocity:2},slotSnapEasing:{duration:100}}",269958,38,"Index=0",270027,34,"Title:function(a){if(a){a=Ext.create(\"Ext.Component\",{cls:Ext.baseCSSPrefix+\"picker-slot-title\",docked:\"top\",html:a})}return a",244666,45,";this.setupBar()}if(a){this.remove(a)}},updateShowTitle:function(a){var b=this.getTitle();if(b){b[a?\"show\":\"hide\"]();this.setupBar()}},updateDisplayField:function(a){this.setItemTpl('<div class=\"'+Ext.baseCSSPrefix+'picker-item {cls} <tpl if=\"extra\">'+Ext.baseCSSPrefix+'picker-invalid</tpl>\">{'+a+\"}</div>\")},updateAlign:function(a,c){var b=this.element;b.addCls(Ext.baseCSSPrefix+\"picker-\"+a);b.removeCls(Ext.baseCSSPrefix+\"picker-\"+c)},applyData:function(d){var f=[],c=d&&d.length,a,b,e;if(d&&Ext.isArray(d)&&c){for(a=0;a<c;a++){b=d[a];e={};if(Ext.isArray(b)){e[this.valueField]=b[0];e[this.displayField]=b[1]}else{if(Ext.isString(b)){e[this.valueField]=b;e[this.displayField]=b}else{if(Ext.isObject(b)){e=b}}}f.push(e)}}return d},updateData:function(",338406,46,"fields:[\"text\",\"value\"],data:a})",331422,43,"var a=this.getScrollable().getScroller();this.on({scope:this,painted:\"onPainted\",itemtap:\"doItemTap\"});a.on({scope:this,scrollend:\"onScrollEn",119325,32,"setupBar()},getPicker:function(){if(!this.picker){this.picker=this.getParent()}return this.picker},setupBa",179886,32,"return}var a=this.element,e=this.innerElement,f=this.getPicker(),g=f.bar,k=this.getValue(),b=this.getShowTitle(),j=this.getTitle(),h=this.getScrollable(),d=h.getScroller(),c=0,l,i;l=g.getHeight();if(b&&j){c=j.element.getHeight()}i=Math.ceil((a.getHeight()-c-l)/2);e.setStyle({padding:i+\"px 0 \"+(i)+\"px\"});d.refresh();d.setSlotSnapSize(l);this.setValue(k)},doItemTap:function(d,a,c,f){var b=this;b.selectedIndex=a;b.selectedNode=c;b.scrollToItem(c,true);b.fireEvent(\"slotpick\",b,b.getValue(true),b.selectedNode)},scrollToItem:function(e,d){var h=e.getY(),c=e.parent(),f=c.getY(),b=this.getScrollable(),a=b.getScroller(),g;g=h-f;a.scrollTo(0,g,d)},onScrollEnd:function(b,a,g){var f=this,d=Math.round(g/f.picker.bar.getHeight()),c=f.getViewItems(),e=c[d];if(e){f.selectedIndex=d;f.selectedNode=e;f.fireEvent(\"slotpick\",f,f.getValue(),f.selectedNode)}},getValue:function(c){var b=this.getStore(),a,d;if(!b){return}if(!this.rendered||!c){return this._value}if(this._value===false){return null}a=b.getAt(this.selectedIndex);d=a?a.get(this.getValueField()):null;return d},setValue:function(f){if(!Ext.isDefined(f)){return}if(!this.rendered||!f){this._value=f;return}var b=this.getStore(),a=this.getViewItems(),d=this.getValueField(),c,e;c=b.find(d,f);if(c!=-1){e=Ext.get(a[c]);this.selectedIndex=c;this.scrollToItem(e);this._value=f}},setValueAnimated:function(f){if(!f){return}if(!this.rendered){this._value=f;return}var b=this.getStore(),a=this.getViewItems(),d=this.getValueField(),c,e;c=b.find(d,f);if(c!=-1){e=Ext.get(a[c]);this.selectedIndex=c;this.scrollToItem(e,{duration:100});this._value=f}}});Ext.define(\"Ext.picker.Picker",241578,36,"picker\",alternateClassName:\"Ext.Picker\",requires:[\"Ext.picker.Slot\",\"Ext.Toolbar\",\"Ext.data.Model\"],isPicker:true",76282,32,"picker\",doneButton:true,cancelButton:true,useTitles:false,slots:null,value:null,height:220,layout:{type:\"hbox\",align:\"stretch\"},centered:false,left:0,right:0,bottom:0,defaultType:\"pickerslot\",toolbar:true},initElement",100382,39,"var b=this,a=Ext.baseCSSPrefix,c=this.innerElement;this.mask=c.createChild({cls:a+\"picker-mask\"});this.bar=this.mask.createChild({cls:a+\"picker-bar\"});b.on({scope:this,delegate:\"pickerslot\",slotpick:\"onSlotPick\"});b.on({scope:this,show:\"onShow\"})},applyToolb",304621,33,"Ext.applyIf(a,{docked:\"top\"});return Ext.factory(a,\"Ext.TitleBar\",this.getToolbar())},updateToolbar",237153,56,"applyDoneButton:function(a){if(a){if(Ext.isBoolean(a)){a={}}if(typeof a==\"string\"){a={text:a}}Ext.applyIf(a,{ui:\"action\",align:\"right\",text:\"Done\"})}return Ext.factory(a,\"Ext.Button\",this.getDoneButton())},updateDoneButton:function(c,a){var b=this.getToolbar();if(c){b.add(c);c.on(\"tap\",this.onDoneButtonTap,this)}else{if(a){b.remove(a)}}},applyCancelButton:function(a){if(a){if(Ext.isBoolean(a)){a={}}if(typeof a==\"string\"){a={text:a}}Ext.applyIf(a,{align:\"left\",text:\"Cancel\"})}return Ext.factory(a,\"Ext.Button\",this.getCancelButton())},updateCancelButton:function(b,a){var c=this.getToolbar();if(b){c.add(b);b.on(\"tap\",this.onCancelButtonTap,this)}else{if(a){c.remove(a)}}},updateUseTitles:function(d){var f=this.getInnerItems(),e=f.length,a=Ext.baseCSSPrefix+\"use-titles\",c,b;if(d",229600,40,"for(c=0;c<e;c++){b=f[c];if(b.isSlot){b.setShowTitle(d)}}},applySlots:function(b){if(b){var c=b.length,a;for(a=0;a<c;a++){b[a].picker=this}}return b},updateSlots:function(a){var b=Ext.baseCSSPrefix,c;this.removeAll();if(a){this.add(a)}c=this.getInnerItems();if(c.length>0){c[0].addCls(b+\"first\");c[c.length-1].addCls(b+\"last\")}this.updateUseTitles(this.getUseTitles())},onDoneButtonTap:function(){var a=this._value,b=this.getValue(true);if(b!=a){this.fireEvent(\"change\",this,b)}this.hide()},onCancelButtonTap:function(){this.fireEvent(\"cancel\",this);this.hide()},onSlotP",213693,32,"pick\",this,this.getValue(true),a)},onShow:function(){if(!this.isHidden()){this.setValue(this._value)}},setValue:function(k,a){var f=this,d=f.getInnerItems(),e=d.length,j,h,c,b,g;if(!k){k={};for(b=0;b<e;b++){k[d[b].config.name]=null}}for(j in k){g=k[j];for(b=0;b<d.length;b++){c=d[b];if(c.config.name==j){h=c;break}}if(h){if(a){h.setValueAnimated(g)}else{h.setValue(g)}}}f._values=f._value=k;return f},setValueAnimated:function(a){this.setValue(a,true)},getValue:function(c){var b={},a=this.getItems().items,f=a.length,e,d;if(c){for(d=0;d<f;d++){e=a[d];if(e&&e.isSlot){b[e.getName()]=e.getValue(c)}}this._values=b}return this._values",316683,35,"getValue(",69768,38,");Ext.destroy(this.mask,this.bar)",315895,42,"Tags\",{extend:\"Ext.picker.Picker\",xtype:\"tagspanel\",config:{tags:{},hideOnMaskTap:true},updateTags:function(c){var d,b,a;d=(function(){var e;e=[];for(b in c){a=c[b];e.push({text:b,value:a})}return e})();d=Ext.Array.sort(d,function(e,f){if(Ext.isEmpty(e.text)){return -1}else{if(Ext.isEmpty(f.text)){return 1}else{return f.value-e.value}}});return this.setSlots({name:\"tag\",data:Ext.Array.map(d,function(e){return{text:e.text,value:e.text}})})",404404,1032,"askFilter",405432,89,",\"Sounds\",\"Tags",405520,80,"TasksProxy\",\"TodosProxy",405597,38,"History\",\"Read",405654,577]
2  deltas/app.js/d82183866b6411ef7182d7debbac9f0916d90d85.json
View
@@ -1 +1 @@
-["/*e98e3e743a2813f1f95750e291a0b5256828bd6a",42,239650,"e){var a,d,c,b;if(e){",240362,48,"if(c){b=Ext.clone(c.getData())}}",239700,59,"if(b){a.setValues(b",239757,5266,"Media",277241,33,"media\",config:{url:\"\",enableControls:Ext.os.is.Android?false:true,autoResume:false,autoPause:true,preload:true,loop:false,media:null,volume:1,muted:false",257968,52,"on({scope:a,activate:a.onActivate,deactivate:a.onDeactivate});a.addMediaListener({canplay:\"onCanPlay\",play:\"onPlay\",pause:\"onPause\",ended:\"onEnd\",volumechange:\"onVolumeChange\",timeupdate:\"onTimeUpdate\"})},addMediaListener:function(d,b){var c=this,e=c.media.dom,f=Ext.Function.bind;if(!Ext.isObject(d)){var a=d;d={};d[a]=b}Ext.Object.each(d,function(h,g){if(typeof g!==\"function\"){g=c[g]}if(typeof g==\"function\"){g=f(g,c);e.addEventListener(h,g)}})},onPlay:function(){this.fireEvent(\"play\",this)},onCanPlay:function(){this.fireEvent(\"canplay\",this)},onPause:function(){this.fireEvent(\"pause\",this,this.getCurrentTime())},onEnd:function(){this.fireEvent(\"ended\",this,this.getCurrentTime())},onVolum",193887,35,"volumechange\",this,this.media.dom.volume)},onTimeUpdate:function(){this.fireEvent(\"timeupdate\",this,this.getCurrentTime())},isPlaying:function(){return !Boolean(this.media.dom.paused)},onActivate:function(){var a=this;if(a.getAutoResume()&&!a.isPlaying()){a.play()}},onDeactivate:function(){var a=this;if(a.getAutoResume()&&a.isPlaying()){a.pause()}},updateUrl:function(a){var b=this.media.dom;b.src=a;if(\"load\" in b){b.load()}if(this.isPlaying()){this.play()}},updateEnableControls:function(a){this.media.dom.controls=a?\"controls\":false},updateLoop:function(a){this.media.dom.loop=a?\"loop\":false},play:function(){var a=this.media.dom;if(\"play\" in a){a.play();setTimeout(function(){a.play()},10)}},pause:function(){var a=this.media.dom;if(\"pause\" in a){a.pause()}},toggle:function(){if(this.isPlaying()){this.pause()}else{this.play()}},stop:function(){var a=this;a.setCurrentTime(0);a.fireEvent(\"stop\",a);a.pause()},updateVolume:function(a){this.media.dom.volume=a},updateMuted:function(a){this.fireEvent(\"mutedchange\",this,a);this.media.dom.muted=a},getCurrentTime:function(){return this.media.dom.currentTime},setCurrentTime:function(a){this.media.dom.currentTime=a;return a},getDuration:function(){return this.media.dom.duration",375130,32,"Ext.Object.each(event,function(c,b){if(typeof b!==\"function\"){b=a[b]}if(typeof b==\"function\"){b=bind(b,a);dom.removeEventListener(c,b)}})",245003,45449,"timeout:\"onTimeou",287808,107,289981,40,290580,1172,"b,c){var a,g,f,e,d;d=b.get(\"uid\");e=Ext.getStore(\"Timers\");g=e.findRecord(\"uid\",d);if(g){f=g",291842,38,"e.add({uid:d,time:b.get(\"starttime\"),type:\"go\"});f=\"break\"}e.add({uid:d,time:Date.now(),type:f});if(!c.getTimeout()){a=",238925,37,"Sounds\");if(f===\"go\"){a.play(\"starttask\")}else{a.play(\"break\")}}return c.updateTimer(b)},onTimeout:function(b,c){var a,d;d=c.getTimerType();a=",238925,37,"Sounds\");if(d===\"go\"){return a.play(\"break\")}else{return a.play(\"starttask\")}",292000,1520,"config:{refs:{historyview:\"historyview\"},control:{historyview:{add:\"showAddPanel\"}}}",293519,162,"b){var a;a=b.getType();if(a===\"taskdone\"||a===\"postponetask",293710,87,",showAddPanel:function(a){var b,c;c=a.data.cdata.task.uid;b",399135,40,"c);if(!b){return}",292544,44,"AddTask\").show(c)}});Ext.define(\"Ext.Audio\",{extend:\"Ext.Media\",xtype:\"audio\"",76282,32,"audio\"},onActivat",230367,39,"if(Ext.os.is.Phone){a.element.show()}},onDeactivat",230367,39,"if(Ext.os.is.Phone){a.element.hide()}},template:[{reference:\"media\",preload:\"auto\",tag:\"audio\",cls:Ext.baseCSSPrefix+\"component\"}]",239872,34,"Sounds",238719,42,"Ext.Audio\",",293486,34,"sounds:{}",293519,65,"playIfRelated\",undo:function(){return this.play(\"undo\")},scope:this})},createTryPlayFun:function(a,d,c){var b;if(c==null){c=3000}b=new RegExp(\"^\"+a+\"[1-\"+d+\"]$\");return function(g,e){var f;if(e<c&&b.test(g)){f=parseInt(g.substr(a.length));if(f<d){f=f+1}return a+f}else{return a+\"1\"}}},createPreselectTryPlayFun:function(c){var a,b;b=/^preselect[1-8]$/;a=\"preselect\";return function(f,d){var e;if(d<3000&&b.test(f)){e=parseInt(f.substr(9));if(c&&e>1){e=e-1}else{if(e<8){e=e+1}}return a+e}else{return a+\"1\"}}},play",291563,45,"a===\"taskdone\"){if(!this._taskdoneTryPlayFun){this._taskdoneTryPlayFun=this.createTryPlayFun(\"taskdone\",8)}return this.tryPlay(this._taskdoneTryPlayFun)}else{if(a===\"postponetask\"){return this.play(\"postponetask\")}else{if(a===\"starttask\"){return this.play(\"starttask\")}else{if(a===\"deletetask\"){return this.play(\"deletetask\")}else{if(a===\"addtask\"){return this.play(\"addtask\")}else{if(a===\"edittask\"){return this.play(\"edittask\")}else{if(a===\"preselect\"){return this.tryPlay(this.createPreselectTryPlayFun(b.getCdata().preselected))}}}}}}}},tryPlay:function(a){var b;b=a(this.prename,Date.now()-this.pretime);if(b){return this.play(b)}},play:function(a){var b;b=this.sounds[a];if(!b){b=this.createSound(a);this.sounds[a]=b}if(this.prename){this.sounds[this.prename].stop()}b.play();this.prename=a;return this.pretime=Date.now()},createSound:function(b){var a;a=\"resources/sounds/\"+b+\".m4a\";return Ext.Viewport.add({xtype:\"audio\",hidden:true,url:a}",293795,32866,"timerType:\"go\",time:null,timeout:null,",326661,858,327542,245,"Timeout",344015,35,"timeout",327759,298,"b){var e,a,g,f,d,c;if(b==null){b=this.getRecord()",328255,42,"a=b.get(\"status\");if(a===\"open\"){this.setTimerType(\"ready\");this.setTime(0);return}c=b",291772,37,"g=d.findRecord(\"uid\",c);if(g){f=g.get(\"time\");this.setTimerType(g.get(\"type\"))}else{f=b",328217,32,"this.setTimerType(\"go\")}e",328298,47,"e.refreshAll(",328360,33,328395,118,"updateTime:function(d){var b,a,c",328551,61,"a.setText(this.timeText(d));if(this.getTimerType()===\"ready\"){this.setTimeout(false);if(a){a.hide()}b.setIconCls(\"play1",328746,34,"if(this.getTimerType()===\"go\"){c=d",328675,32,"c>100){this.setTimeout(true);",328714,66,"this.setTimeout(false);a.setValue(c",328792,47,"c=100-d",328846,50,"c<0){this.setTimeout(true);",328901,45,"this.setTimeout(false);a.setValue(c);return b.setUi(\"normal\")}}}},updateTimeout:function(b,a){if(b&&Ext.isBoolean(a)&&b!==a){return this.onTimeout()}},refreshAll:function(c){var a,b;a=Date.now();b=a-c;return this.setTime(b)",328986,13008,",\"break\"",395236,39,"reak\",a,b)},timeout",395236,38,"timeout\",a,b",342814,51,"break\",\"timeou",342039,33,"eady",342253,68,"RunningItem\"],xtype:\"ready\",config:{store:\"Ready",341586,408,",\"break\"",341950,36,342806,59,"start\"]",341421,36,343344,50,"RunningList\",\"FvTouch.view.Ready",342139,72,",{xtype:\"ready\"}],control:{runninglist:{refresh:\"onDataviewRefresh\"},ready:{refresh:\"onDataviewRefresh\"}}",316425,34,"this.onDataviewRefresh(this.child(\"runninglist\"));return this.onDataviewRefresh(this.child(\"ready\"))}}},onDataviewRefresh:function(a){if(a.getStore().getCount()){return a.show()}else{return a.hide()}",342212,9156,"div class=\\\"x-docking-horizontal\\\">\\n <div class='x-docked-left cmdtype {type}'></div>\\n <div class=\\\"x-body tasktitle\\\">{title}</div>\\n <div class='x-docked-right ",351418,38,"div>\\n</div>\",listeners:{itemdoubletap",341692,40,"dd\",a)}},bubbleEvents:[\"add\"]",351462,162,"type:g.type",351623,59,"g.ctime",351698,51,"type:\"",351747,42917,"this.initConfig(a);return this.init()},init:Ext.emptyFn",394690,4354,"filterFn:function(d){var a,c,b;c=d.get(\"type\");if(c===\"taskdone\"||c===\"postponetask\"){b=d",399111,70,"!a){return false}if(c===\"postponetask\"){return d.get(\"cdata\").task.status===\"running\"}else{return true}",399195,210,"FvTouch.store.Read",398926,32,"config:{store:\"Tasks\"",398690,36,"open",398733,35,",init:function(){var a;a=Ext.getStore(\"Preselecteds\");a.on({refresh:\"refreshData\",scope:this});return this.refreshData(a)},addOn",277883,32,"setData([a])}else{return this.clearData()}},refreshData:function(b){var c,a;c=b.first();if(c){a=Ext.getStore(\"Tasks\").getById(c.get(\"task_id\"));return this.addOne(a)}else{return this.addOne(null)}",399389,6387,",\"Sounds",405775,136,",\"Read",405909,577]
+["/*022eda3a66e9071b0bedd0435d39bd8357e275fd",42,214314,"if(!b",220795,68,"b.data.uid,title:b.data.title,info:b.data.info",214438,1144,"c){var e,h,f,a,d,i,b,g;g=Ext.getStore(\"Tasks\");b=g.findRecord(\"uid\",c.uid);a=c.title;if(Ext.isEmpty(a)){return false}f=c.info;i=b.get(\"title\");d=b.get(\"info\");if(a===i&&this.isEquals(f,d)){return false}h=this.getDelta(f,d);e={uid:c.uid,\"new\":{},old:{}};if(a!==i){e[\"new\"].title=a;e.old.title=i}if(h.xDelta){e[\"new\"].info=h.xDelta}if(h.yDelta){e.old.info=h.yDelta}return e},doImpl:function(){var c,f,d,a,b,e",215775,71,"e=c[\"new\"].title;if(e!==void 0){a.set(\"title\",e)}f=c[\"new\"].info;if(f){d=this.apply(a.get(\"info\"),f);a.set(\"info\",d)}",215876,43,"f,d,a,b,e",215775,71,"e=c.old.title;if(e!==void 0){a.set(\"title\",e)}f=c.old.info;if(f){d=this.apply(a.get(\"info\"),f);a.set(\"info\",d)}return a.save()},isEquals:function(a,b){if(a===b){return true}else{if(Ext.isPrimitive(a)){return false}else{if(Ext.isArray(a)){return Ext.isArray(b)&&this.isArrayEquals(a,b)}else{if(Ext.isEmpty(a)){return false}else{if(Ext.isDate(a)){return Ext.isDate(b)&&a.getTime()===b.getTime()}else{if(Ext.isFunction(a)){return Ext.isFunction(b)&&a.toString()===b.toString()}else{return Ext.isObject(b)&&this.isObjectEquals(a,b)}}}}}}},isArrayEquals:function(a,d){var b,c;if(a.length===d.length){for(b=0,c=length-1;0<=c?b<c:b>c;0<=c?b++:b--){if(!this.isEquals(a[b],d[b])){return false}}return true}else{return false}},isObjectEquals:function(a,h){var d,e,g,c,f,b;g=Ext.Object.getKeys(a);c=Ext.Object.getKeys(h);e=Ext.Array.merge(g,c);for(f=0,b=e.length;f<b;f++){d=e[f];if(!this.isEquals(a[d],h[d])){return false}}return true},getDelta:function(g,c){var k,i,j,b,h,d,f,a,e;if(!Ext.isObject(g)){g={}}if(!Ext.isObject(c)){c={}}h=Ext.Object.getKeys(g);f=Ext.Object.getKeys(c);j=Ext.Array.merge(h,f);b={};d={};k=false;for(a=0,e=j.length;a<e;a++){i=j[a];if(!this.isEquals(g[i],c[i])){b[i]=g[i];d[i]=c[i];k=true}}if(k){return{xDelta:b,yDelta:d}}else{return{}}},apply:function(c,d){var b,a;c||(c={});for(b in d){a=d[b];if(a===void 0){delete c[b]}else{c[b]=d[b]}}if(Ext.Object.getSize(c)){return c}else{return}",218029,33,"ostpon",214159,57,216131,144,"if(!b",220795,51,"if(!a){return false}",216311,97,"if(",216345,48,"&&Ext.getStore(\"TodosProxy\").last().getId()===a.getId()",216393,1776,"e){var d,b,g,a,f,c;c=Ext.getStore(\"Todos\");g=Ext.getStore(\"Tasks\");b=g.findRecord(\"uid\",e.uid);if(!b",220795,51,"if(!a||",218299,59,"f=Ext.getStore(\"TodosProxy\");d=f.first();if(d&&a.getId()===d.getId()){return false}return{uid:e",218370,195,"getId()",218572,369,"getId()",218572,71,"===e",217520,39,219062,321,"if(!b",220795,51,219419,1352,"!b",218317,41,221134,36,220846,3610,"var b,c;if(Ext.isEmpty(a.title)){return false}b=",224488,69,";c=this.normalize(a.info);if(c){b.info=c}return b",224557,166,"info:e.info",224722,331,",normalize:function(c){var b,a;for(b in c){a=c[b];if(a===void 0){delete c[b]}}if(Ext.Object.getSize(c)){return c}else{return}",225052,13786,",tagsButton:\"mytoolbar #tags",238837,53,",tags:\"onTags",238889,154,",onTags",238906,56,"Tags\").show()},launch:function(){var a;a=",238925,37,"Tags\");a.on({scope:this,change:\"changeTagsBadgeText\"});return this.changeTagsBadgeText(a.getTag())},changeTagsBadgeText:function(a){return this.getTagsButton().setBadgeText(a",239870,36,"AddTask",238719,66,239150,542,"f){var b,e,a,d,c;if(f){e=Ext.getStore(\"Tasks\");d=e.findRecord(\"uid\",f);if(d){c=Ext.clone(d.getData())}}else{a=",238925,37,"Tags\").getTag();if(a){c={info:{tags:[a]}}}}b=this.getPanel();if(!b",288880,33,"b)}if(c){b.setValues(c)}return b",239767,880,"controller.Tags",238719,41,"],config:{tag:window.localStorage.getItem(\"tag\"),views:[\"Tags\"],refs:{panel:{selector:\"tagspanel\",xtype:\"tags",240041,42,"hange:\"onChange\"}}},onChange:function(a,b){return this.setTag(b.tag)},show:function(){var a,b;b=this.getTags();if(Ext.Object.getSize(b)<=1){return}",239592,69,"if(!a.getParent()){Ext.Viewport.add(a)}a.setTags(this.getTags());a.setValue({tag:this.getTag()});return a.show()},getTags:function(){var a,b,c;c=Ext.getStore(\"Tasks\");b={\"\":0};a=this.getTag();if(!Ext.isEmpty(a)){b[a]=0}c.each(function(g){var h,d,j,f,i,e;if(g.data.info&&Ext.isArray(g.data.info.tags)&&g.data.info.tags.length){i=g.data.info.tags;e=[];for(j=0,f=i.length;j<f;j++){d=i[j];h=b[d];e.push(b[d]=h?h+1:1)}return e}else{return b[\"\"]=b[\"\"]+1}});return b",286356,32,"updateTag(this.getTag())},updateTag:function(a){var b;if(Ext.isEmpty(a)){window.localStorage.removeItem(\"tag\")}else{window.localStorage.setItem(\"tag\",a)}b=",238925,37,"TaskFilter\");if(b){b.setFilterFn(this.generateFilterFn(a))}return this.fireEvent(\"change\",a)},generateFilterFn:function(a){if(Ext.isEmpty(a)){return function(){return true}}else{return function(b){return b.data.info&&Ext.isArray(b.data.info.tags)&&Ext.Array.contains(b.data.info.tags,a)}}",240623,173,"itemId:\"add\"},{iconCls:\"tags\",itemId:\"tags\"},{iconCls:\"reply\",itemId",240833,58,"#add\":{ta",344014,36,"add\")}},\"#undo\":{ta",344014,36,"undo\")}},\"#tags\":{ta",344014,36,"tags\")}}}",218029,32,241048,3971,"FvTouch.field.Tags",233524,35,"agsfield\",applyValue:function(a){if(Ext.isArray(a)){return a}else{if(Ext.isEmpty(a)){return[]}else{return[a.toString()]}",230815,32,";if(!Ext.isArray(b)){Ext.Logger.error(\"value of tagsfield should be an array\")}a=b.join(\", \");return this.callParent([a])},getValue:function(){var a,b;b=this.callParent();a=Ext.Array.map(b.split(\",\"),function(c){return c.trim()});a=Ext.Array.filter(a,function(c){return !Ext.isEmpty(c)});a=Ext.Array.unique(a);if(a.length){return a}else{return}}});Ext.define(\"Ext.Media",277241,33,"media\",config:{url:\"\",enableControls:Ext.os.is.Android?false:true,autoResume:false,autoPause:true,preload:true,loop:false,media:null,volume:1,muted:false",257968,52,"on({scope:a,activate:a.onActivate,deactivate:a.onDeactivate});a.addMediaListener({canplay:\"onCanPlay\",play:\"onPlay\",pause:\"onPause\",ended:\"onEnd\",volumechange:\"onVolumeChange\",timeupdate:\"onTimeUpdate\"})},addMediaListener:function(d,b){var c=this,e=c.media.dom,f=Ext.Function.bind;if(!Ext.isObject(d)){var a=d;d={};d[a]=b}Ext.Object.each(d,function(h,g){if(typeof g!==\"function\"){g=c[g]}if(typeof g==\"function\"){g=f(g,c);e.addEventListener(h,g)}})},onPlay:function(){this.fireEvent(\"play\",this)},onCanPlay:function(){this.fireEvent(\"canplay\",this)},onPause:function(){this.fireEvent(\"pause\",this,this.getCurrentTime())},onEnd:function(){this.fireEvent(\"ended\",this,this.getCurrentTime())},onVolum",193887,35,"volumechange\",this,this.media.dom.volume)},onTimeUpdate:function(){this.fireEvent(\"timeupdate\",this,this.getCurrentTime())},isPlaying:function(){return !Boolean(this.media.dom.paused)},onActivate:function(){var a=this;if(a.getAutoResume()&&!a.isPlaying()){a.play()}},onDeactivate:function(){var a=this;if(a.getAutoResume()&&a.isPlaying()){a.pause()}},updateUrl:function(a){var b=this.media.dom;b.src=a;if(\"load\" in b){b.load()}if(this.isPlaying()){this.play()}},updateEnableControls:function(a){this.media.dom.controls=a?\"controls\":false},updateLoop:function(a){this.media.dom.loop=a?\"loop\":false},play:function(){var a=this.media.dom;if(\"play\" in a){a.play();setTimeout(function(){a.play()},10)}},pause:function(){var a=this.media.dom;if(\"pause\" in a){a.pause()}},toggle:function(){if(this.isPlaying()){this.pause()}else{this.play()}},stop:function(){var a=this;a.setCurrentTime(0);a.fireEvent(\"stop\",a);a.pause()},updateVolume:function(a){this.media.dom.volume=a},updateMuted:function(a){this.fireEvent(\"mutedchange\",this,a);this.media.dom.muted=a},getCurrentTime:function(){return this.media.dom.currentTime},setCurrentTime:function(a){this.media.dom.currentTime=a;return a},getDuration:function(){return this.media.dom.duration",375130,32,"Ext.Object.each(event,function(c,b){if(typeof b!==\"function\"){b=a[b]}if(typeof b==\"function\"){b=bind(b,a);dom.removeEventListener(c,b)}})",245003,43032,"Ext.getStore(\"TasksProxy\").refresh();",288035,1939,289981,92,";",292544,44,"TaskFilter\").on({update:\"refresh\",scope:this",288012,44,290115,337,"timeout:\"onTimeou",287808,107,289981,40,290580,857,289981,48,293591,62,";",292544,44,"TaskFilter\").on({update:\"refresh\",scope:this",291552,200,"b,c){var a,g,f,e,d;d=b.get(\"uid\");e=Ext.getStore(\"Timers\");g=e.findRecord(\"uid\",d);if(g){f=g",291842,38,"e.add({uid:d,time:b.get(\"starttime\"),type:\"go\"});f=\"break\"}e.add({uid:d,time:Date.now(),type:f});if(!c.getTimeout()){a=",238925,37,"Sounds\");if(f===\"go\"){a.play(\"starttask\")}else{a.play(\"break\")}}return c.updateTimer(b)},onTimeout:function(b,c){var a,d;d=c.getTimerType();a=",238925,37,"Sounds\");if(d===\"go\"){return a.play(\"break\")}else{return a.play(\"starttask\")}",292000,1520,"config:{refs:{historyview:\"historyview\"},control:{historyview:{add:\"showAddPanel",290519,61,293583,70,";",292544,44,"TaskFilter\").on({update:\"refresh\",scope:this",291552,56,"a===\"taskdone\"||a===\"postponetask",293710,87,",showAddPanel:function(a){var b,c;c=a.data.cdata.task.uid;b",399135,40,"c);if(!b){return}",292544,44,"AddTask\").show(c)}});Ext.define(\"Ext.Audio\",{extend:\"Ext.Media\",xtype:\"audio\"",76282,32,"audio\"},onActivat",230367,39,"if(Ext.os.is.Phone){a.element.show()}},onDeactivat",230367,39,"if(Ext.os.is.Phone){a.element.hide()}},template:[{reference:\"media\",preload:\"auto\",tag:\"audio\",cls:Ext.baseCSSPrefix+\"component\"}]",239872,34,"Sounds",238719,42,"Ext.Audio\",",293486,34,"sounds:{}",293519,65,"playIfRelated\",undo:function(){return this.play(\"undo\")},scope:this})},createTryPlayFun:function(a,d,c){var b;if(c==null){c=3000}b=new RegExp(\"^\"+a+\"[1-\"+d+\"]$\");return function(g,e){var f;if(e<c&&b.test(g)){f=parseInt(g.substr(a.length));if(f<d){f=f+1}return a+f}else{return a+\"1\"}}},createPreselectTryPlayFun:function(c){var a,b;b=/^preselect[1-8]$/;a=\"preselect\";return function(f,d){var e;if(d<3000&&b.test(f)){e=parseInt(f.substr(9));if(c&&e>1){e=e-1}else{if(e<8){e=e+1}}return a+e}else{return a+\"1\"}}},play",291563,45,"a===\"taskdone\"){if(!this._taskdoneTryPlayFun){this._taskdoneTryPlayFun=this.createTryPlayFun(\"taskdone\",8)}return this.tryPlay(this._taskdoneTryPlayFun)}else{if(a===\"postponetask\"){return this.play(\"postponetask\")}else{if(a===\"starttask\"){return this.play(\"starttask\")}else{if(a===\"deletetask\"){return this.play(\"deletetask\")}else{if(a===\"addtask\"){return this.play(\"addtask\")}else{if(a===\"edittask\"){return this.play(\"edittask\")}else{if(a===\"preselect\"){return this.tryPlay(this.createPreselectTryPlayFun(b.getCdata().preselected))}}}}}}}},tryPlay:function(a){var b;b=a(this.prename,Date.now()-this.pretime);if(b){return this.play(b)}},play:function(a){var b;b=this.sounds[a];if(!b){b=this.createSound(a);this.sounds[a]=b}if(this.prename){this.sounds[this.prename].stop()}b.play();this.prename=a;return this.pretime=Date.now()},createSound:function(b){var a;a=\"resources/sounds/\"+b+\".m4a\";return Ext.Viewport.add({xtype:\"audio\",hidden:true,url:a}",293795,22280,",\"FvTouch.field.Tags\"],config:{values:void 0,showA",303597,34,316124,298,",",316363,34,"agsfield\",name:\"tags\",label:\"Tags",316418,267,"applyValues:function(a){if(a===void 0||a===null){return a}else{return Ext.apply(a.info||{},{title:a.title})}},getValues:function(){var b,a;a=",316713,35,";b=a.title;delete a.title;return{title:b,info:a}},update",316753,820,"if(a){this.setUid(a.uid",107504,55,317645,9016,"timerType:\"go\",time:null,timeout:null,",326661,858,327542,245,"Timeout",344015,35,"timeout",327759,298,"b){var e,a,g,f,d,c;if(b==null){b=this.getRecord()",328255,42,"a=b.get(\"status\");if(a===\"open\"){this.setTimerType(\"ready\");this.setTime(0);return}c=b",291772,37,"g=d.findRecord(\"uid\",c);if(g){f=g.get(\"time\");this.setTimerType(g.get(\"type\"))}else{f=b",328217,32,"this.setTimerType(\"go\")}e",328298,47,"e.refreshAll(",328360,33,328395,118,"updateTime:function(d){var b,a,c",328551,61,"a.setText(this.timeText(d));if(this.getTimerType()===\"ready\"){this.setTimeout(false);if(a){a.hide()}b.setIconCls(\"play1",328746,34,"if(this.getTimerType()===\"go\"){c=d",328675,32,"c>100){this.setTimeout(true);",328714,66,"this.setTimeout(false);a.setValue(c",328792,47,"c=100-d",328846,50,"c<0){this.setTimeout(true);",328901,45,"this.setTimeout(false);a.setValue(c);return b.setUi(\"normal\")}}}},updateTimeout:function(b,a){if(b&&Ext.isBoolean(a)&&b!==a){return this.onTimeout()}},refreshAll:function(c){var a,b;a=Date.now();b=a-c;return this.setTime(b)",328986,13008,",\"break\"",395236,39,"reak\",a,b)},timeout",395236,38,"timeout\",a,b",342814,51,"break\",\"timeou",342039,33,"eady",342253,68,"RunningItem\"],xtype:\"ready\",config:{store:\"Ready",341586,408,",\"break\"",341950,36,342806,59,"start\"]",341421,36,343344,50,"RunningList\",\"FvTouch.view.Ready",342139,72,",{xtype:\"ready\"}],control:{runninglist:{refresh:\"onDataviewRefresh\"},ready:{refresh:\"onDataviewRefresh\"}}",316425,34,"this.onDataviewRefresh(this.child(\"runninglist\"));return this.onDataviewRefresh(this.child(\"ready\"))}}},onDataviewRefresh:function(a){if(a.getStore().getCount()){return a.show()}else{return a.hide()}",342212,9156,"div class=\\\"x-docking-horizontal\\\">\\n <div class='x-docked-left cmdtype {type}'></div>\\n <div class=\\\"x-body tasktitle\\\">{title}</div>\\n <div class='x-docked-right ",351418,38,"div>\\n</div>\",listeners:{itemdoubletap",341692,40,"dd\",a)}},bubbleEvents:[\"add\"]",351462,162,"type:g.type",351623,59,"g.ctime",351698,51,"type:\"",351747,42917,"this.initConfig(a);return this.init()},init:Ext.emptyFn",394690,3269,"TasksProx",398926,32,"config:{store:\"Task",398857,57,"controller.TaskFilte",238718,51,"store.TasksProxy\"],config:{filterFn:function(){return true}},updateFilterFn:function(a){var b;b=Ext.getStore(\"TasksProxy\");if(b){b.clearFilter(true);b.setFilters([{filterFn:a}]);",288042,37,"return this.fireEvent(\"update\",a)",398767,93,"filters:[{filterFn:function(b){var a,c;c=Ext.getStore(\"TasksProxy\");a=c.getById(b.get(\"task_id\"));return !Ext.isEmpty(a)}}]",398859,61,397959,511,"d){var a,c,b;b=Ext.getStore(\"TodosProxy\");if(b.getCount()&&b.getById(d.getId())&&(d.data.preselected||d.getId()===b.first().getId())){return true}else{c=Ext.getStore(\"Tasks\");a=c.getById(d.get(\"task_id\"));return a&&a.get(\"status\")===\"running\"}}}]",398859,61,398580,217,398920,124,"filterFn:function(d){var a,c,b;c=d.get(\"type\");if(c===\"taskdone\"||c===\"postponetask\"){b=d",399111,44,"Proxy\").findRecord(\"uid\",b);if(!a){return false}if(c===\"postponetask\"){return d.get(\"cdata\").task.status===\"running\"}else{return true}",399195,210,"FvTouch.store.Read",398926,32,"config:{store:\"Tasks\"",398690,36,"open",398733,35,",init:function(){var a;a=Ext.getStore(\"Preselecteds\");a.on({refresh:\"refreshData\",scope:this});return this.refreshData(a)},addOn",277883,32,"setData([a])}else{return this.clearData()}},refreshData:function(b){var c,a;c=b.first();if(c){a=Ext.getStore(\"Tasks\").getById(c.get(\"task_id\"));return this.addOne(a)}else{return this.addOne(null)}",399389,4244,"info",403623,1056,"picker.Slot",342253,34,"xtype:\"pickerslot\",alternateClassName:\"Ext.Picker.Slot",311181,33,"data.Store\",\"Ext.Component\",\"Ext.data.StoreManager\"],isSlot:true,config:{title:null,showTitle:true,cls:Ext.baseCSSPrefix+\"picker-slot\",name:null,value:null,flex:1,align:\"left\",displayField:\"text\",valueField:\"value\",scrollable:{direction:\"vertical\",indicators:false,momentumEasing:{minVelocity:2},slotSnapEasing:{duration:100}}",269958,38,"Index=0",270027,34,"Title:function(a){if(a){a=Ext.create(\"Ext.Component\",{cls:Ext.baseCSSPrefix+\"picker-slot-title\",docked:\"top\",html:a})}return a",244666,45,";this.setupBar()}if(a){this.remove(a)}},updateShowTitle:function(a){var b=this.getTitle();if(b){b[a?\"show\":\"hide\"]();this.setupBar()}},updateDisplayField:function(a){this.setItemTpl('<div class=\"'+Ext.baseCSSPrefix+'picker-item {cls} <tpl if=\"extra\">'+Ext.baseCSSPrefix+'picker-invalid</tpl>\">{'+a+\"}</div>\")},updateAlign:function(a,c){var b=this.element;b.addCls(Ext.baseCSSPrefix+\"picker-\"+a);b.removeCls(Ext.baseCSSPrefix+\"picker-\"+c)},applyData:function(d){var f=[],c=d&&d.length,a,b,e;if(d&&Ext.isArray(d)&&c){for(a=0;a<c;a++){b=d[a];e={};if(Ext.isArray(b)){e[this.valueField]=b[0];e[this.displayField]=b[1]}else{if(Ext.isString(b)){e[this.valueField]=b;e[this.displayField]=b}else{if(Ext.isObject(b)){e=b}}}f.push(e)}}return d},updateData:function(",338406,46,"fields:[\"text\",\"value\"],data:a})",331422,43,"var a=this.getScrollable().getScroller();this.on({scope:this,painted:\"onPainted\",itemtap:\"doItemTap\"});a.on({scope:this,scrollend:\"onScrollEn",119325,32,"setupBar()},getPicker:function(){if(!this.picker){this.picker=this.getParent()}return this.picker},setupBa",179886,32,"return}var a=this.element,e=this.innerElement,f=this.getPicker(),g=f.bar,k=this.getValue(),b=this.getShowTitle(),j=this.getTitle(),h=this.getScrollable(),d=h.getScroller(),c=0,l,i;l=g.getHeight();if(b&&j){c=j.element.getHeight()}i=Math.ceil((a.getHeight()-c-l)/2);e.setStyle({padding:i+\"px 0 \"+(i)+\"px\"});d.refresh();d.setSlotSnapSize(l);this.setValue(k)},doItemTap:function(d,a,c,f){var b=this;b.selectedIndex=a;b.selectedNode=c;b.scrollToItem(c,true);b.fireEvent(\"slotpick\",b,b.getValue(true),b.selectedNode)},scrollToItem:function(e,d){var h=e.getY(),c=e.parent(),f=c.getY(),b=this.getScrollable(),a=b.getScroller(),g;g=h-f;a.scrollTo(0,g,d)},onScrollEnd:function(b,a,g){var f=this,d=Math.round(g/f.picker.bar.getHeight()),c=f.getViewItems(),e=c[d];if(e){f.selectedIndex=d;f.selectedNode=e;f.fireEvent(\"slotpick\",f,f.getValue(),f.selectedNode)}},getValue:function(c){var b=this.getStore(),a,d;if(!b){return}if(!this.rendered||!c){return this._value}if(this._value===false){return null}a=b.getAt(this.selectedIndex);d=a?a.get(this.getValueField()):null;return d},setValue:function(f){if(!Ext.isDefined(f)){return}if(!this.rendered||!f){this._value=f;return}var b=this.getStore(),a=this.getViewItems(),d=this.getValueField(),c,e;c=b.find(d,f);if(c!=-1){e=Ext.get(a[c]);this.selectedIndex=c;this.scrollToItem(e);this._value=f}},setValueAnimated:function(f){if(!f){return}if(!this.rendered){this._value=f;return}var b=this.getStore(),a=this.getViewItems(),d=this.getValueField(),c,e;c=b.find(d,f);if(c!=-1){e=Ext.get(a[c]);this.selectedIndex=c;this.scrollToItem(e,{duration:100});this._value=f}}});Ext.define(\"Ext.picker.Picker",241578,36,"picker\",alternateClassName:\"Ext.Picker\",requires:[\"Ext.picker.Slot\",\"Ext.Toolbar\",\"Ext.data.Model\"],isPicker:true",76282,32,"picker\",doneButton:true,cancelButton:true,useTitles:false,slots:null,value:null,height:220,layout:{type:\"hbox\",align:\"stretch\"},centered:false,left:0,right:0,bottom:0,defaultType:\"pickerslot\",toolbar:true},initElement",100382,39,"var b=this,a=Ext.baseCSSPrefix,c=this.innerElement;this.mask=c.createChild({cls:a+\"picker-mask\"});this.bar=this.mask.createChild({cls:a+\"picker-bar\"});b.on({scope:this,delegate:\"pickerslot\",slotpick:\"onSlotPick\"});b.on({scope:this,show:\"onShow\"})},applyToolb",304621,33,"Ext.applyIf(a,{docked:\"top\"});return Ext.factory(a,\"Ext.TitleBar\",this.getToolbar())},updateToolbar",237153,56,"applyDoneButton:function(a){if(a){if(Ext.isBoolean(a)){a={}}if(typeof a==\"string\"){a={text:a}}Ext.applyIf(a,{ui:\"action\",align:\"right\",text:\"Done\"})}return Ext.factory(a,\"Ext.Button\",this.getDoneButton())},updateDoneButton:function(c,a){var b=this.getToolbar();if(c){b.add(c);c.on(\"tap\",this.onDoneButtonTap,this)}else{if(a){b.remove(a)}}},applyCancelButton:function(a){if(a){if(Ext.isBoolean(a)){a={}}if(typeof a==\"string\"){a={text:a}}Ext.applyIf(a,{align:\"left\",text:\"Cancel\"})}return Ext.factory(a,\"Ext.Button\",this.getCancelButton())},updateCancelButton:function(b,a){var c=this.getToolbar();if(b){c.add(b);b.on(\"tap\",this.onCancelButtonTap,this)}else{if(a){c.remove(a)}}},updateUseTitles:function(d){var f=this.getInnerItems(),e=f.length,a=Ext.baseCSSPrefix+\"use-titles\",c,b;if(d",229600,40,"for(c=0;c<e;c++){b=f[c];if(b.isSlot){b.setShowTitle(d)}}},applySlots:function(b){if(b){var c=b.length,a;for(a=0;a<c;a++){b[a].picker=this}}return b},updateSlots:function(a){var b=Ext.baseCSSPrefix,c;this.removeAll();if(a){this.add(a)}c=this.getInnerItems();if(c.length>0){c[0].addCls(b+\"first\");c[c.length-1].addCls(b+\"last\")}this.updateUseTitles(this.getUseTitles())},onDoneButtonTap:function(){var a=this._value,b=this.getValue(true);if(b!=a){this.fireEvent(\"change\",this,b)}this.hide()},onCancelButtonTap:function(){this.fireEvent(\"cancel\",this);this.hide()},onSlotP",213693,32,"pick\",this,this.getValue(true),a)},onShow:function(){if(!this.isHidden()){this.setValue(this._value)}},setValue:function(k,a){var f=this,d=f.getInnerItems(),e=d.length,j,h,c,b,g;if(!k){k={};for(b=0;b<e;b++){k[d[b].config.name]=null}}for(j in k){g=k[j];for(b=0;b<d.length;b++){c=d[b];if(c.config.name==j){h=c;break}}if(h){if(a){h.setValueAnimated(g)}else{h.setValue(g)}}}f._values=f._value=k;return f},setValueAnimated:function(a){this.setValue(a,true)},getValue:function(c){var b={},a=this.getItems().items,f=a.length,e,d;if(c){for(d=0;d<f;d++){e=a[d];if(e&&e.isSlot){b[e.getName()]=e.getValue(c)}}this._values=b}return this._values",316683,35,"getValue(",69768,38,");Ext.destroy(this.mask,this.bar)",315895,42,"Tags\",{extend:\"Ext.picker.Picker\",xtype:\"tagspanel\",config:{tags:{},hideOnMaskTap:true},updateTags:function(c){var d,b,a;d=(function(){var e;e=[];for(b in c){a=c[b];e.push({text:b,value:a})}return e})();d=Ext.Array.sort(d,function(e,f){if(Ext.isEmpty(e.text)){return -1}else{if(Ext.isEmpty(f.text)){return 1}else{return f.value-e.value}}});return this.setSlots({name:\"tag\",data:Ext.Array.map(d,function(e){return{text:e.text,value:e.text}})})",404659,1032,"askFilter",405687,89,",\"Sounds\",\"Tags",405775,80,"TasksProxy\",\"TodosProxy",405852,38,"History\",\"Read",405909,577]
2  deltas/app.js/da039f46544ee1d86f92d6f57d0f00158485c9ad.json
View
@@ -1 +1 @@
-["/*e98e3e743a2813f1f95750e291a0b5256828bd6a",42,214815,"Id(",216879,122,220619,41,218698,82,215107,49,215167,142,"Id(",219501,178,"Edit",214160,56,215552,129,"(\"title\")",215693,746,"uid:d.uid,",216439,225,"if(g.task.uid){",218778,33,"a=e.findRecord(\"task_id\",c.getId());if(a.get(\"order\")!==b){console.info(this);Ext.Logger.error(\"different order when do postponetask\")}}else{",216664,53,"}",216718,156,"Id(",216879,347,"if(g.task.uid){",218778,33,"a=e.findRecord(\"task_id\",c.getId());if(a.getId()!==e.last().getId()){console.info(this);Ext.Logger.error(\"todo is not the last one when undo postponetask\")}}else{",217226,38,"}",216718,42,"g",220767,32,217340,99,"Id(",219501,122,217566,421,220027,35,",doImpl:function(){var f,",218012,58,"f=this.getCdata();b=d.findRecord(\"uid\",f",216287,42,"e=a.get(\"preselected\");if(Ext.isBoolean(f.preselected)&&f.preselected!==e){console.info(this);Ext.Logger.error(\"different preselected value when do preselect\")}a.set(\"preselected\",!",218192,49,"var f,",218012,58,"f=this.getCdata();b=d.findRecord(\"uid\",f",216287,42,"e=a.get(\"preselected\");if(Ext.isBoolean(f.preselected)&&f.preselected===e){console.info(this);Ext.Logger.error(\"same preselected value when undo preselect\")}a.set(\"preselected\",!e);a.save(",224378,33,218277,239,"getId()",218523,380,"getId()",218910,100,"Id(",216879,122,220619,41,219178,318,"Id(",219501,446,"getId()",219954,53,220028,58,"e,b,d,a,c;d=Ext.getStore(\"Tasks\");e=this.getCdata();b=d.findRecord(\"uid\",e.task.uid);b.set(\"status\",\"running\");b",220204,34,"b.save();c=Ext.getStore(\"Todos\");a=c.findRecord(\"task_id\",b.getId());if(!e",217035,39,"true);a.save();return c.sync()}},un",220064,128,220766,101,"getId()",220874,52,";a.save();e.sync()}b=h.todo.order;if(b===void 0||b===null){return}",220942,105,"Id(",221052,49,"Id(",221106,17929,"e){var a,d,c,b;if(e){",239705,48,"if(c){b=Ext.clone(c.getData())}}",239043,59,"if(b){a.setValues(b",239100,1283,240941,259,"this.fireEvent(\"do\",c",241259,139,"this.fireEvent(\"undo\",c",241459,311,255102,73,"TitleBar",333616,33,"title",221306,52,",\"Ext.util.SizeMonito",221356,63,"cls:Ext.baseCSSPrefix+\"navigation-",221414,66,"},items:[]},maxButtonWidth:\"40%\",constructor:function(){this.refreshTitlePosition=Ext.Function.createThrottled(this.refreshTitlePosition,50,this);this.callParent(arguments)},beforeInitialize:function(){this.applyItems=this.applyInitialItems},initialize:function(){delete this.applyItems;this.add(this.initialItems);delete this.initialItems;this.on({painted:\"refreshTitlePosition\",single:true})},applyInitialItems:function(a){var b=this,c=b.getDefaults()||{};b.initialItems=a;b.leftBox=b.add({xtype:\"container\",style:\"position: relative",221459,37,",listeners:{resize:\"refreshTitlePosition\",scope:b}});b.spacer=b.add({xtype:\"component\",style:\"position: relative\",flex:1,listeners:{resize:\"refreshTitlePosition\",scope:b}});b.rightBox=b.add({xtype:\"container\",style:\"position: relative",221459,37,",listeners:{resize:\"refreshTitlePosition\",scope:b}});b.titleComponent=b.add({xtype:\"title\",hidden:c.hidden,centered:true});b.doAdd=b.doBoxAdd;b.remove=b.doBoxRemove;b.doInsert=b.doBoxInsert},doBoxAdd:function(a){if(a.config.align==\"right\"){this.rightBox.add(a)}else{this.leftBox.add(a)}},doBoxRemove:function(a){if(a.config.align==\"right\"){this.rightBox.remove(a)}else{this.leftBox.remove(a)}},doBoxInsert:function(a,b){if(b.config.align==\"right\"){this.rightBox.add(b)}else{this.leftBox.add(b)}},getMaxButtonWidth:function(){var a=this.maxButtonWidth;if(Ext.isString(this.maxButtonWidth)){a=parseInt(a.replace(\"%\",\"\"),10);a=Math.round((this.element.getWidth()/100)*a)}return a},refreshTitlePosition:function(){var f=this.titleComponent.renderElement;f.setWidth(null);f.setLeft(null);var a=this.leftBox,c=a.down(\"button\"),h,m;if(c){if(c.getWidth()==null){c.renderElement.setWidth(\"auto\")}h=a.renderElement.getWidth();m=this.getMaxButtonWidth();if(h>m){c.renderElement.setWidth(m)}}var j=this.spacer.renderElement.getPageBox(),k=f.getPageBox(),g=k.width-j.width,d=k.left,i=k.right,b,l,e;if(g>0){f.setWidth(j.width);b=g/2;d+=b;i-=b}l=j.left-d;e=i-j.right;if(l>0){f.setLeft(l)}else{if(e>0){f.setLeft(-e)}}f.repaint()},updateTitle:function(a){this.titleComponent.setTitle(a);",169470,33,"TitlePosition()}",241750,713,"Media",240409,33,"media\",config:{url:\"\",enableControls:Ext.os.is.Android?false:true,autoResume:false,autoPause:true,preload:true,loop:false,media:null,volume:1,muted:false",303631,52,"on({scope:a,activate:a.onActivate,deactivate:a.onDeactivate});a.addMediaListener({canplay:\"onCanPlay\",play:\"onPlay\",pause:\"onPause\",ended:\"onEnd\",volumechange:\"onVolumeChange\",timeupdate:\"onTimeUpdate\"})},addMediaListener:function(d,b){var c=this,e=c.media.dom,f=Ext.Function.bind;if(!Ext.isObject(d)){var a=d;d={};d[a]=b}Ext.Object.each(d,function(h,g){if(typeof g!==\"function\"){g=c[g]}if(typeof g==\"function\"){g=f(g,c);e.addEventListener(h,g)}})},onPlay:function(){this.fireEvent(\"play\",this)},onCanPlay:function(){this.fireEvent(\"canplay\",this)},onPause:function(){this.fireEvent(\"pause\",this,this.getCurrentTime())},onEnd:function(){this.fireEvent(\"ended\",this,this.getCurrentTime())},onVolum",193887,35,"volumechange\",this,this.media.dom.volume)},onTimeUpdate:function(){this.fireEvent(\"timeupdate\",this,this.getCurrentTime())},isPlaying:function(){return !Boolean(this.media.dom.paused)},onActivate:function(){var a=this;if(a.getAutoResume()&&!a.isPlaying()){a.play()}},onDeactivate:function(){var a=this;if(a.getAutoResume()&&a.isPlaying()){a.pause()}},updateUrl:function(a){var b=this.media.dom;b.src=a;if(\"load\" in b){b.load()}if(this.isPlaying()){this.play()}},updateEnableControls:function(a){this.media.dom.controls=a?\"controls\":false},updateLoop:function(a){this.media.dom.loop=a?\"loop\":false},play:function(){var a=this.media.dom;if(\"play\" in a){a.play();setTimeout(function(){a.play()},10)}},pause:function(){var a=this.media.dom;if(\"pause\" in a){a.pause()}},toggle:function(){if(this.isPlaying()){this.pause()}else{this.play()}},stop:function(){var a=this;a.setCurrentTime(0);a.fireEvent(\"stop\",a);a.pause()},updateVolume:function(a){this.media.dom.volume=a},updateMuted:function(a){this.fireEvent(\"mutedchange\",this,a);this.media.dom.muted=a},getCurrentTime:function(){return this.media.dom.currentTime},setCurrentTime:function(a){this.media.dom.currentTime=a;return a},getDuration:function(){return this.media.dom.duration",355889,32,"Ext.Object.each(event,function(c,b){if(typeof b!==\"function\"){b=a[b]}if(typeof b==\"function\"){b=bind(b,a);dom.removeEventListener(c,b)}})",242443,12659,255175,11833,267981,7712,294153,35,240410,93,"striped:false,active:false,text:\"\",html:'<div class=\"x-progress-text x-progress-text-back\"></div>\\n<div class=\"bar\">\\n <div class=\"x-progress-text\"></div>\\n</div>',value:0",272223,42,"return this.on({painted:\"onResize\",resize:\"onResize\",scope:this})},updateValue:function(c,a){var b;if(c===a){return}if(c<0){c=0}if(c>100){c=100}b=\"\"+c+\"%\";return this.element.down(\"* .bar\").setWidth(b",240697,221,",updateText:function(b,a){if(b===a){return}return Ext.Array.each(this.element.query(\".x-progress-text\"),function(c){return Ext.fly(c).setHtml(b)})},onResize:function(){return this.element.down(\".bar .x-progress-text\").setWidth(this.element.getWidth())}",271882,36,"List\",{extend:",271896,33,"updateBaseCls:function(a){var b=this;b.itemClsShortCache=a+\"-item\";b.headerClsShortCache=a+\"-header\";b.headerClsCache=\".\"+b.headerClsShortCache;b.headerItemClsShortCache=a+\"-header-item\";b.footerClsShortCache=a+\"-footer-item\";b.footerClsCache=\".\"+b.footerClsShortCache;b.labelClsShortCache=a+\"-item-label\";b.labelClsCache=\".\"+b.labelClsShortCache;b.disclosureClsShortCache=a+\"-disclosure\";b.disclosureClsCache=\".\"+b.disclosureClsShortCache;b.iconClsShortCache=a+\"-icon\";b.iconClsCache=\".\"+b.iconClsShortCache;this.callParent(arguments)},hiddenDisplayCache:Ext.baseCSSPrefix+\"hidden-display\",getItemElementConfig:function(e,h){var f=this,c=f.dataview,g=c.getItemCls(),b=f.itemClsShortCache,d,a;if(g){b+=\" \"+g}d={cls:b,children:[{cls:f.labelClsShortCache,html:c.getItemTpl().apply(h)}]};if(c.getIcon()){a=h.iconSrc;d.children.push({cls:f.iconClsShortCache,style:\"background-image: \"+a?'url(\"'+newSrc+'\")':\"\"})}if(c.getOnItemDisclosure()){d.children.push({cls:f.disclosureClsShortCache+\" \"+((h[c.getDisclosureProperty()]===false)?f.hiddenDisplayCache:\"\")})}return d},updateListItem:function(d,k){var h=this,e=h.dataview,j=Ext.fly(k),g=j.down(h.labelClsCache,true),c=d.data,b=e.getDisclosureProperty(),a=c&&c.hasOwnProperty(b),l=c&&c.hasOwnProperty(\"iconSrc\"),f,i;g.innerHTML=e.getItemTpl().apply(c);if(a){f=j.down(h.disclosureClsCache);f[c[b]===false?\"removeCls\":\"addCls\"](h.hiddenDisplayCache)}if(e.getIcon()){i=j.down(h.iconClsCache,true);i.style.backgroundImage=l?'url(\"'+l+'\")':\"\"}},doRemoveHeaders:function(){var e=this,a=e.headerItemClsShortCache,b=e.element.query(e.headerClsCache),f=b.length,c=0,d;for(;c<f;c++){d=b[c];Ext.fly(d.parentNode).removeCls(a);Ext.removeNode(d)}},doRemoveFooterCls:function(){var d=this,c=d.footerClsShortCache,a=d.element.query(d.footerClsCache),e=a.length,b=0;for(;b<e;b++){Ext.fly(a[b]).removeCls(c)}},doAddHeader:function(b,a){b=Ext.fly(b);if(a){b.insertFirst(Ext.Element.create({cls:this.headerClsShortCache,html:a}))}b.addCls(this.headerItemClsShortCache)},destroy:function(){this.doRemoveHeaders();",274969,33,"FvTouch.dataview.element.List\",{override:\"Ext.dataview.element.List\",updateListItem:function(d,k){var h=this,e=h.dataview,j=Ext.fly(k),g=j.down(h.labelClsCache,true),c=e.prepareData(d.getData(true),e.getStore().indexOf(d),d),b=e.getDisclosureProperty(),a=c&&c.hasOwnProperty(b),l=c&&c.hasOwnProperty(\"iconSrc\"),f,i;g.innerHTML=e.getItemTpl().apply(c);if(a){f=j.down(h.disclosureClsCache);f[c[b]===false?\"removeCls\":\"addCls\"](h.hiddenDisplayCache)}if(e.getIcon()){i=j.down(h.iconClsCache,true);i.style.backgroundImage=l?'url(\"'+l+'\")':\"\"}}});Ext.define(\"Ext.dataview.IndexBa",168110,51,"IndexBar\"",241855,36,"indexbar\",direction:\"vertical\",letters:[\"A\",\"B\",\"C\",\"D\",\"E\",\"F\",\"G\",\"H\",\"I\",\"J\",\"K\",\"L\",\"M\",\"N\",\"O\",\"P\",\"Q\",\"R\",\"S\",\"T\",\"U\",\"V\",\"W\",\"X\",\"Y\",\"Z\"],ui:\"alphabet\",listPrefix:null},itemCls:Ext.baseCSSPrefix+\"\",updateDirection:function(a,c){var b=this.getBaseCls();this.element.replaceCls(b+\"-\"+c,b+\"-\"+a",168795,49,"wrapper\",classList:[\"x-centered\",\"x-indexbar-wrapper\"]",129959,32,"updateLetters:function(c){this.innerElement.setHtml(\"\");if(c){var b=c.length,a;for(a=0;a<b;a++){this.innerElement.createChild({html:c[a]})}}},updateListPrefix:function(a){if(a&&a.length){this.innerElement.createChild({html:a},0)}",272223,47,"innerElement.on(",16597,35,"end:this.onTouchEnd,touchmove:this.onTouchMove,scope:this})},onTouchStart:function(b,a){b.stopPropagation();this.innerElement.addCls(this.getBaseCls()+\"-pressed\");this.pageBox=this.innerElement.getPageBox();this.onTouchMove(b)},onTouchEnd:function(b,a){this.innerElement.removeCls(this.getBaseCls()+\"-pressed\")},onTouchMove:function(c){var a=Ext.util.Point.fromEvent(c),b,d=this.pageBox;if(!d){d=this.pageBox=this.el.getPageBox()}if(this.getDirection()===\"vertical\"){if(a.y>d.bottom||a.y<d.top){return}b=Ext.Element.fromPoint(d.left+(d.width/2),a.y)}else{if(a.x>d.right||a.x<d.left){return}b=Ext.Element.fromPoint(a.x,d.top+(d.height/2))}if(b){this.fireEvent(\"index\",this,b.dom.innerHTML,b)}},destroy:function(){var c=this,d=Array.prototype.slice.call(c.innerElement.dom.childNodes),b=d",274922,41,"d[a])}",94954,33,";Ext.define(\"Ext.dataview.ListItemHeade",240408,34,"listitemheader\"",241855,36,"list-header\",docked:\"top\"",266988,993,275697,1604,"b.id===\"historyview\"?\"history",277299,236,"3],preselected:a[0],running:a[1],history:a[2",277566,1023,"],cmdUndoListeners:[]",279038,981,",pullup:\"onPullup",280018,195,"\"refresh\",undo:\"refresh\",scope:this,order:\"before\"})},refresh",280381,38,"Proxy\").refresh(",280367,1663,",onPullup",238249,56,"Main\").gotoPreselectedView",238383,37,"PreselectedList",238062,65,"Manager\"]",280149,64,"\"refresh\",undo:\"refresh\",scope:this,order:\"before\"})},refresh",280381,33,"Preselecteds\").refresh",238383,37,"RunningList",238062,65,"Manager\",\"Ext.ActionSheet\"],relatedtasks:[\"deletetask\",\"edittask\",\"postponetask\",\"starttask\",\"taskdone",279808,33,"runningview:\"runningview\"},control:{runningview:{\"break\":\"onBreak\",timeout:\"onTimeou",279948,71,280130,36,280173,49,"f){var e,a,d,c,b;c=f.getType();d=Ext.getStore(\"Timers\");if(Ext.Array.contains([\"deletetask\",\"postponetask\",\"taskdone\"],c)){b=f.getCdata().task.uid;a=[];d.each(function(g){if(g.get(\"uid\")===b){return a.push(g)}});if(a.length){return d.remove(a)}}else{if(c===\"starttask\"){e=f.getCdata();b=e.task.uid;return d.add({uid:b,time:f.getCtime(),type:\"go\"})}}},undo:function(h){var g,b,a,f,e,d,c;d=h.getType();e=Ext.getStore(\"Timers\");if(Ext.Array.contains([\"deletetask\",\"postponetask\",\"taskdone\"],d)){g=h.getCdata();if(g.task.status===\"running\"){c=h.getCdata().task.uid;f=Ext.getStore(\"Tasks\");a=f.findRecord(\"uid\",c);return e.add({uid:c,time:a.get(\"starttime\"),type:\"go\"})}}else{if(d===\"starttask\"){g=h.getCdata();c=g.task.uid;b=[];e.each(function(i){if(i.get(\"uid\")===c){return b.push(i)}});if(b.length){return e.remove(b)}}}},scope:this,order:\"before\"});",281247,38,"on({\"do\":\"refreshIfRelated\",undo:\"refreshIfRelated\",scope:this,order:\"before\"})},refreshIfRelated:function(b){var a;a=b.getType();if(Ext.Array.contains(this.relatedtasks,a)){return this.refresh()}},refresh",280381,33,"Runnings\").refresh()},onBreak:function(b,c){var a,g,f,e,d;d=b.get(\"uid\");e=Ext.getStore(\"Timers\");g=e.findRecord(\"uid\",d);if(g){f=g.get(\"type\")===\"go\"?\"break\":\"go\"}else{e.add({uid:d,time:b.get(\"starttime\"),type:\"go\"});f=\"break\"}e.add({uid:d,time:Date.now(),type:f});if(!c.getTimeout()){a=",238268,37,"Sounds\");if(f===\"go\"){a.play(\"starttask\")}else{a.play(\"break\")}}return c.updateTimer(b)},onTimeout:function(b,c){var a,d;d=c.getTimerType();a=",238268,37,"Sounds\");if(d===\"go\"){return a.play(\"break\")}else{return a.play(\"starttask\")}",281221,94,281320,168,281493,176,281674,173,281852,100,281957,73,280606,616,239215,34,"HistoryList",238062,65,"Manager\"],config:{refs:{historyview:\"historyview\"},control:{historyview:{add:\"showAddPanel",280145,68,"\"refreshIfRelated\",undo:\"refreshIfRelated\",scope:this,order:\"before\"})},refreshIfRelated:function(b){var a;a=b.getType();if(a===\"taskdone\"||a===\"postponetask\"){return this.refresh()}},refresh",280381,33,"History\").refresh()},showAddPanel:function(a){var b,c;c=a.data.cdata.task.uid;b=Ext.getStore(\"Tasks\").findRecord(\"uid\",c);if(!b){return}",238261,59,"c)}});Ext.define(\"Ext.Audio\",{extend:\"Ext.Media\",xtype:\"audio\"",76282,32,"audio\"},onActivat",291039,39,"if(Ext.os.is.Phone){a.element.show()}},onDeactivat",291039,39,"if(Ext.os.is.Phone){a.element.hide()}},template:[{reference:\"media\",preload:\"auto\",tag:\"audio\",cls:Ext.baseCSSPrefix+\"component\"}]",239215,34,"Sounds",238062,42,"Ext.Audio\",",277094,32,"],sounds:{",280148,65,"\"playIfRelated\",undo:function(){return this.play(\"undo\")},scope:this})},createTryPlayFun:function(a,d,c){var b;if(c==null){c=3000}b=new RegExp(\"^\"+a+\"[1-\"+d+\"]$\");return function(g,e){var f;if(e<c&&b.test(g)){f=parseInt(g.substr(a.length));if(f<d){f=f+1}return a+f}else{return a+\"1\"}}},createPreselectTryPlayFun:function(c){var a,b;b=/^preselect[1-8]$/;a=\"preselect\";return function(f,d){var e;if(d<3000&&b.test(f)){e=parseInt(f.substr(9));if(c&&e>1){e=e-1}else{if(e<8){e=e+1}}return a+e}else{return a+\"1\"}}},playIfRelated:function(b){var a;a=b.getType();if(a===\"taskdone\"){if(!this._taskdoneTryPlayFun){this._taskdoneTryPlayFun=this.createTryPlayFun(\"taskdone\",8)}return this.tryPlay(this._taskdoneTryPlayFun)}else{if(a===\"postponetask\"){return this.play(\"postponetask\")}else{if(a===\"starttask\"){return this.play(\"starttask\")}else{if(a===\"deletetask\"){return this.play(\"deletetask\")}else{if(a===\"addtask\"){return this.play(\"addtask\")}else{if(a===\"edittask\"){return this.play(\"edittask\")}else{if(a===\"preselect\"){return this.tryPlay(this.createPreselectTryPlayFun(b.getCdata().preselected))}}}}}}}},tryPlay:function(a){var b;b=a(this.prename,Date.now()-this.pretime);if(b){return this.play(b)}},play:function(a){var b;b=this.sounds[a];if(!b){b=this.createSound(a);this.sounds[a]=b}if(this.prename){this.sounds[this.prename].stop()}b.play();this.prename=a;return this.pretime=Date.now()},createSound:function(b){var a;a=\"resources/sounds/\"+b+\".m4a\";return Ext.Viewport.add({xtype:\"audio\",hidden:true,url:a}",282028,12042,297970,10150,"itleB",308124,10502,"Running",318630,63,"Label",333792,38,",\"Ext.Button\",\"Ext.Date\"],xtype:\"runningitem\",config:{timerType:\"go\",time:null,timeout:null,record:null,items:[{xtype:\"container\",items:[{xtype:\"button\",docked:\"right\",itemId:\"breakbutton\",iconCls:\"pause\",iconMask:true,cls:\"breakbutton\"},{xtype:\"label\",itemId:\"title\",cls:\"title\"}]",294280,44,"width:\"100%\",padding:0,striped:true,active:true}],cls:\"runningitem\"",294350,47,319143,470,"control:{\"#breakbutton\":{tap:\"onBreak\"}},listeners:{updatedata:\"onUpdateData\"}",272223,42,319791,91,"onBreak",308688,35,"break\",this.getRecord(),this)},onTimeout",308688,35,"timeout\",this.getRecord(),this",320174,155,"UpdateData:function(a,b){if(b){this.child(\"* #title\").setHtml(b.title);return this.updateTimer()}},updateTimer:function(b){var e,a,g,f,d,c;if(b==null){b=this.getRecord(",294786,43,"a=b.get(\"status\");if(a===\"open\"){this.setTimerType(\"ready\");this.setTime(0);return}c=b.get(\"uid\");d=Ext.getStore(\"Timers\");g=d.findRecord(\"uid\",c);if(g){f=g.get(\"time\");this.setTimerType(g.get(\"type\"))}else{f=b",294720,32,"this.setTimerType(\"go\")}e=this;",294843,34,"return e.refreshAll(f)},1000);return this.refreshAll(f)},timeText:function(b){var a;a=b/3600000;a=a.toFixed(0);a=a>0?a+\":\":\"\";return a+Ext.Date.format(new Date(b),\"i:s\")},updateTime:function(d){var b,a,c;a=this.child(\"#progressbar\");b=this.child(\"* #breakbutton\");a.setText(this.timeText(d));if(this.getTimerType()===\"ready\"){this.setTimeout(false);if(a){a.hide()}b.setIconCls(\"play1\");return b.setUi(\"confirm\")}else{if(this.getTimerType()===\"go\"){c=d/15000;b.setIconCls(\"pause\");if(c>100){this.setTimeout(true);a.setValue(100);a.setUi(\"decline\");return b.setUi(\"confirm\")}else{this.setTimeout(false);a.setValue(c);a.setUi(null);return b.setUi(\"normal\")}}else{c=100-d/3000;a.setUi(\"confirm\");b.setIconCls(\"play1\");if(c<0){this.setTimeout(true);a.setValue(0);return b.setUi(\"confirm\")}else{this.setTimeout(false);a.setValue(c);return b.setUi(\"normal\")}}}},updateTimeout:function(b,a){if(b&&Ext.isBoolean(a)&&b!==a){return this.onTimeout()}},refreshAll:function(c){var a,b;a=Date.now();b=a-c;return this.setTime(b",295166,116,318616,1879,321313,10470,"RunningList",331795,68,"RunningItem\"],xtype:\"runninglist\",config:{store:\"Runnings\",",331882,32,"runningitem\",disableSelection:true,maxItemCache:1",331923,206,"running",332133,113,"\"break\"",380163,39,"reak\",a,b)},timeout",380163,38,"timeout\",a,b",332356,51,"break\",\"timeout\"]}});Ext.define(\"FvTouch.view.Ready",331795,68,"RunningItem\"],xtype:\"ready\",config:{store:\"Ready\",",331882,32,"runningitem\",disableSelection:true,maxItemCache:1",331923,206,"running",332133,113,"\"break\"",332253,36,332348,59,"start\"]",295253,86,"RunningList\",\"FvTouch.view.Ready",295360,39,"fit\",items:[{xtype:\"runninglist\"},{xtype:\"ready\"}],control:{runninglist:{refresh:\"onDataviewRefresh\"},ready:{refresh:\"onDataviewRefresh\"}}",308557,34,"this.onDataviewRefresh(this.child(\"runninglist\"));return this.onDataviewRefresh(this.child(\"ready\"))}}},onDataviewRefresh:function(a){if(a.getStore().getCount()){return a.show()}else{return a.hide(",331752,908,"Proxy",333143,38,332698,242,",\"Ext.Label",332939,72,",initialize:function(){var a;this.callParent();a=this.child(\"todolist\");a.insert(1,{xtype:\"label\",html:\"pull up to preselected view\",cls:\"pullup\",action:\"pullup\",hidden:true});return a.getScrollable().getScroller().on({maxpositionchange:function(b,c){return this.scrollerY=c.y},scroll:function(c,b,d){if(d>(80+this.scrollerY)){this.onPullUp()}},scrollstart",308579,32,"odolist label[action=pullup]\").show()},scrollend",308579,32,"odolist label[action=pullup]\").hide()},scope:this})},onPullU",308687,36,"pullup\")",333397,40,333050,549,"Ext.dataview.List\",{alternateClassName:\"Ext.List\",extend:\"Ext.dataview.DataView\",xtype:\"list\",requires:[\"Ext.dataview.element.List\",\"Ext.dataview.IndexBar\",\"Ext.dataview.ListItemHeader\"],config:{indexBar:false,icon:null,preventSelectionOnDisclose:true,baseCls:Ext.baseCSSPrefix+\"list\",pinHeaders:true,grouped:false,onItemDisclosure:null,disclosureProperty:\"disclosure\",ui:\"normal\"},constructor:function(){this.translateHeader=(Ext.os.is.Android2)?this.translateHeaderCssPosition:this.translateHeaderTransform;",124762,34,"Trigger:function(c,b,f,a,d){if(!(this.getPreventSelectionOnDisclose()&&Ext.fly(d.target).hasCls(this.getBaseCls()+\"-disclosure\"))){this.callParent(arguments)}},initialize:function(){",325381,103,".element.List",325538,90,"element.on({delegate:\".\"+this.getBaseCls()+\"-disclosure\",tap:\"handleItemDisclosure\",scope:b}",325624,287,"updateInline",132399,40,"if(a){this.setOnItemDisclosure(false);this.setIndexBar(false);this.setGrouped(false)}},applyIndexBa",201552,39,"dataview.IndexBar,this.getIndexBar())},updateIndexBar:function(a){if(a&&this.getScrollable()){this.indexBarElement=",177286,44,".getElement().appendChild(a.renderElement);a.on({index:\"onIndex\",scope:this});",130336,37,"+\"-indexed\")}},updateGrouped:function(c){var b=this.getBaseCls(),a=b+\"-grouped\",d=b+\"-ungrouped\";if(c){this.addCls(a);this.removeCls(d);this.doRefreshHeaders();this.updatePinHeaders(this.getPinHeaders())}else{this.addCls(d);this.removeCls(a);if(this.container){this.container.doRemoveHeaders()}this.updatePinHeaders(null)}},updatePinHeaders:function(b){var c=this.getScrollable(),a;if(c){a=c.getScroller()}if(!c){return}if(b&&this.getGrouped()){a.on({refresh:\"doRefreshHeaders\",scroll:\"onScroll\",scope:this});if(!this.header||!this.header.renderElement.dom){this.createHeader()}}else{a.un({refresh:\"doRefreshHeaders\",scroll:\"onScroll\",scope:this});if(this.header){this.header.destroy()}}},createHeader:function(){var e,d=this.getScrollable(),a,b,c;if(d){a=d.getScroller();b=",177286,44,";c=b.getElement()}else{return}this.header=e=Ext.create(\"Ext.dataview.ListItemHeader\",{html:\" \",cls:\"x-list-header-swap\"});c.dom.insertBefore(e.element.dom,a.getContainer().dom.nextSibling);this.translateHeader(1000)},refresh",203037,35,"doRefreshHeaders()},onStoreAdd",100382,44,"doRefreshHeaders()},onStoreRemove",100382,44,"doRefreshHeaders()},onStoreUpdate",100382,44,"doRefreshHeaders()},onStoreClear:function(){this.callParent();if(this.header){this.header.destroy()}this.doRefreshHeaders()},getClosestGroups:function(){var a=this.pinHeaderInfo.offsets,e=this.getScrollable(),d=a.length,b=0,h,g,f,c;if(e){h=e.getScroller().position}else{return{current:0,next:0}}for(;b<d;b++){g=a[b];if(g.offset>h.y){c=g;break}f=g}return{current:f,next:c}},doRefreshHeaders:function(){if(!this.getGrouped()||!this.container){return false}var l=this.findGroupHeaderIndices(),f=l.length,g=this.container.getViewItems(),j=this.pinHeaderInfo={offsets:[]},a=j.offsets,h=this.getScrollable(),e,k,b,d,c;if(f){for(b=0;b<f;b++){d=g[l[b]];if(d){c=this.getItemHeader(d);a.push({header:c,offset:d.offsetTop})}}j.closest=this.getClosestGroups();this.setActiveGroup(j.closest.current);if(c){j.headerHeight=Ext.fly(c).getHeight()}if(h){e=h.getScroller();k=e.position;this.onScroll(e,k.x,k.y)}}},getItemHeader:function(b){var a=Ext.fly(b).down(this.container.headerClsCache);return a?a.dom:null},onScroll:function(e,j,h){var g=this,i=g.pinHeaderInfo,a=i.closest,b=g.activeGroup,c=i.headerHeight,d,f;if(!a){return}d=a.next;f=a.current;if(!this.header||!this.header.renderElement.dom){this.createHeader()}if(h<=0){if(b){g.setActiveGroup(false);a.next=f}this.translateHeader(1000);return}else{if((d&&h>d.offset)||(f&&h<f.offset)){a=i.closest=this.getClosestGroups();d=a.next;f=a.current;this.setActiveGroup(f)}}if(d&&h>0&&d.offset-h<=c){var k=c-(d.offset-h);this.translateHeader(k)}else{this.translateHeader(null)}},translateHeaderTransform:function(a){this.header.renderElement.dom.style.webkitTransform=(a===null)?null:\"translate3d(0px, -\"+a+\"px, 0px)\"},translateHeaderCssPosition:function(a){this.header.renderElement.dom.style.top=(a===null)?null:\"-\"+Math.round(a)+\"px\"},setActiveGroup:function(b){var a=this,c=a.header;if(c){if(b&&b.header){if(!a.activeGroup||a.activeGroup.header!=b.header){c.show();if(c.element){c.setHtml(b.header.innerHTML)}}}else{if(c&&c.element){c.hide()}}}this.activeGroup=b},onIndex:function(o,c){var r=this,s=c.toLowerCase(),b=r.getStore(),q=b.getGroups(),f=q.length,h=r.getScrollable(),n,e,m,g,k,p;if(h){n=r.getScrollable().getScroller()}else{return}for(m=0;m<f;m++){e=q[m];k=e.name.toLowerCase();if(k==s||k>s){g=e;break}else{g=e}}if(h&&g){p=r.container.getViewItems()[b.indexOf(g.children[0])];n.stopAnimation();var l=n.getContainerSize().y,j=n.getSize().y,d=j-l,a=(p.offsetTop>d)?d:p.offsetTop;n.scrollTo(0,a)}},applyOnItemDisclosure:function(a){if(Ext.isFunction(a)){return{scope:this,handler:a}}return a},handleItemDisclosure:function(f){var d=this,c=f.getTarget().parentNode,b=d.container.getViewItems().indexOf(c),a=d.getStore().getAt(b);d.fireAction(\"disclose\",[d,a,c,b,f],\"doDisclose\")},doDisclose:function(f,a,d,c,g){var b=f.getOnItemDisclosure();if(b&&b.handler){b.handler.call(b.scope||f,a,d,c,g)}},findGroupHeaderIndices:function(){if(!this.getGrouped()){return[]}var h=this,k=h.getStore();if(!k){return[]}var b=h.container,d=k.getGroups(),m=d.length,g=b.getViewItems(),c=[],l=b.footerClsShortCache,e,a,f,n,j;b.doRemoveHeaders();b.doRemoveFooterCls();if(g.length){for(e=0;e<m;e++){a=d[e].children[0];f=k.indexOf(a);n=g[f];b.doAddHeader(n,k.getGroupString(a));if(e){Ext.fly(n.previousSibling).addCls(l)}c.push(f)}j=d[--e].children;Ext.fly(g[k.indexOf(j[j.length-1])]).addCls(l)}return c",208944,41,"IndexBar(),this.indexBarElement,this.header);",274969,33,"FvTouch.view.HistoryList\",{extend:\"Ext.dataview.List\",requires:[\"Ext.Date\",\"FvTouch.dataview.element.List\"],xtype:\"historylist\",config:{store:\"History\",grouped:true,itemCls:\"historyitem\",itemTpl:\"<div class=\\\"x-docking-horizontal\\\">\\n <div class='x-docked-left cmdtype {type}'></div>\\n <div class=\\\"x-body tasktitle\\\">{title}</div>\\n <div class='x-docked-right taskendtime'>{endtime:date('H:i:s')}</div>\\n</div>\",listeners:{itemdoubletap",331946,40,"dd\",a)}},bubbleEvents:[\"add\"]},prepareData:function(g,c,a){var b,f,e;try{f=Ext.getStore(\"Tasks\");e=g.cdata.task.uid;b=f.findRecord(\"uid\",e);return{title:b.get(\"title\"),status:b.get(\"status\"),type:g.type,createtime:new Date(b.get(\"createtime\")),endtime:new Date(g.ctime)}}catch(d){console.info(d);return{title:\"[error]\",type:\"\",createtime:new Data(),endtime:new Date(",332841,32,"History",333437,50,"HistoryList\"],xtype:\"history",332957,42,"history",333003,36,333612,196,"HistoryView",333829,334,",{id:\"historyview\",title:\"History\",xtype:\"historyview\"}]}]",275677,32,320503,810,334190,25397,363849,14380,"sorters:[{property:\"ctime",378093,33,378413,38,378280,415,",autoUpdate:true",378695,929,"this.initConfig(a);return this.init()},init:Ext.emptyFn",379650,341,"if(!this.getAutoUpdate()){return}",379991,255,"if(!this.getAutoUpdate()){return}",380246,309,"if(!this.getAutoUpdate()){return}",380555,155,"if(!this.getAutoUpdate()){return}",380710,239,"f(!this.getAutoUpdate()){return}",380948,460,"refresh:function(",380553,37,"this.getStore()",380591,59,381405,1293,"sorterFn:function(k,j){var h,g,c,a,f,e,d,b,i;i=Ext.getStore(\"Tasks\");d=i.getById(k.get(\"task_id\"));b=i.getById(j.get(\"task_id\"));h=d?d.get(\"status\")===\"running\":false;g=b?b.get(\"status\")===\"running\":false;if(h&&g){f=d.get(\"starttime\");e=b.get(\"starttime\");if(f>e){return -1}else{return 1}}else{if(h){return -1}else{if(g){return 1}else{c=k.get(\"order\");a=j.get(\"order\");if(c>a){return -1}else{return 1}}}}}",382731,85,"Update:false",378112,44,382855,170,",autoUpdate:fals",378255,32,"odosProxy",382863,47,"odos\",autoUpdate:false",378112,44,"History\",{extend:\"FvTouch.StoreProxy\",requires:[\"Ext.Date\"],config:{store:\"Commands\",sorters:[{property:\"ctime",382730,32,"d){var a,c,b;c=d.get(\"type\");if(c===\"taskdone\"||c===\"postponetask\"){b=d.get(\"cdata\").task.uid;a=Ext.getStore(\"Tasks\").findRecord(\"uid\",b);if(!a){return false}if(c===\"postponetask\"){return d.get(\"cdata\").task.status===\"running\"}else{return true}}else{return false}}}],grouper:{groupFn:function(a){var b;b=new Date(a.get(\"ctime\"));return Ext.Date.format(Ext.Date.clearTime(b),\"D M j Y\")},sortProperty:\"ctime\"},autoLoad:true,autoUpdate:fals",382824,32,"eady",382863,53,382966,35,"open\"}],autoLoad:true,autoUpdate:false},init:function(){var a;a=Ext.getStore(\"Preselecteds\");a.on({refresh:\"refreshData\",scope:this});return this.refreshData(a)},addOn",240831,32,"setData([a])}else{return this.clearData()}},refreshData:function(b){var c,a;c=b.first();if(c){a=Ext.getStore(\"Tasks\").getById(c.get(\"task_id\"));return this.addOne(a)}else{return this.addOne(null)",363817,32,"Web",383241,33,359623,3843,383221,698,"Todo",383449,50,384226,206,383905,233,383056,141,"localstorage\",id:\"pomodoro",384414,1073,",\"PreselectedList\",\"RunningList\",\"HistoryList\",\"Sounds",385486,113,",\"TodosProxy\",\"History\",\"Ready",385598,576]
+["/*022eda3a66e9071b0bedd0435d39bd8357e275f",41,214315,"if(!b",219905,42,"getId()",214390,49,"info:b.data.info",214438,419,"Id(",216879,122,220619,41,218698,82,215107,49,215167,142,"Id(",219501,178,"Edit",214160,56,215552,45,"c){var e,h,f,a,d,i,b,g;g=Ext.getStore(\"Tasks\");b=g.findRecord(\"uid\",c.uid);a=c.title;if(Ext.isEmpty(a)){return false}f=c.info;i=b.get(\"title\");d=b.get(\"info\");if(a===i&&this.isEquals(f,d)){return false}h=this.getDelta(f,d);e={uid:c.uid,\"new\":{},old:{}};if(a!==i){e[\"new\"].title=a;e.old.title=i}if(h.xDelta){e[\"new\"].info=h.xDelta}if(h.yDelta){e.old.info=h.yDelta}return e},doImpl:function(){var c,f,d,a,b,e",215940,71,"e=c[\"new\"].title;if(e!==void 0){a.set(\"title\",e)}f=c[\"new\"].info;if(f){d=this.apply(a.get(\"info\"),f);a.set(\"info\",d)}",215894,43,"f,d,a,b,e",215940,71,"e=c.old.title;if(e!==void 0){a.set(\"title\",e)}f=c.old.info;if(f){d=this.apply(a.get(\"info\"),f);a.set(\"info\",d)}return a.save()},isEquals:function(a,b){if(a===b){return true}else{if(Ext.isPrimitive(a)){return false}else{if(Ext.isArray(a)){return Ext.isArray(b)&&this.isArrayEquals(a,b)}else{if(Ext.isEmpty(a)){return false}else{if(Ext.isDate(a)){return Ext.isDate(b)&&a.getTime()===b.getTime()}else{if(Ext.isFunction(a)){return Ext.isFunction(b)&&a.toString()===b.toString()}else{return Ext.isObject(b)&&this.isObjectEquals(a,b)}}}}}}},isArrayEquals:function(a,d){var b,c;if(a.length===d.length){for(b=0,c=length-1;0<=c?b<c:b>c;0<=c?b++:b--){if(!this.isEquals(a[b],d[b])){return false}}return true}else{return false}},isObjectEquals:function(a,h){var d,e,g,c,f,b;g=Ext.Object.getKeys(a);c=Ext.Object.getKeys(h);e=Ext.Array.merge(g,c);for(f=0,b=e.length;f<b;f++){d=e[f];if(!this.isEquals(a[d],h[d])){return false}}return true},getDelta:function(g,c){var k,i,j,b,h,d,f,a,e;if(!Ext.isObject(g)){g={}}if(!Ext.isObject(c)){c={}}h=Ext.Object.getKeys(g);f=Ext.Object.getKeys(c);j=Ext.Array.merge(h,f);b={};d={};k=false;for(a=0,e=j.length;a<e;a++){i=j[a];if(!this.isEquals(g[i],c[i])){b[i]=g[i];d[i]=c[i];k=true}}if(k){return{xDelta:b,yDelta:d}}else{return{}}},apply:function(c,d){var b,a;c||(c={});for(b in d){a=d[b];if(a===void 0){delete c[b]}else{c[b]=d[b]}}if(Ext.Object.getSize(c)){return c}else{return}",219647,32,"Postpon",214159,57,216149,144,"if(!b",219905,42,"getId());if(!a){return false}",216329,97,"if(",216363,48,"&&Ext.getStore(\"TodosProxy\").last().getId()===a.getId()",218552,32,"d.uid,",216439,225,"if(g.task.uid){",218778,33,"a=e.findRecord(\"task_id\",c.getId());if(a.get(\"order\")!==b){console.info(this);Ext.Logger.error(\"different order when do postponetask\")}}else{",216664,53,"}",216718,156,"Id(",216879,347,"if(g.task.uid){",218778,33,"a=e.findRecord(\"task_id\",c.getId());if(a.getId()!==e.last().getId()){console.info(this);Ext.Logger.error(\"todo is not the last one when undo postponetask\")}}else{",217226,38,"}",216718,42,"g",220767,32,217340,99,"Id(",219501,122,217566,216,"e){var d,b,g,a,f,c;c=Ext.getStore(\"Todos\");g=Ext.getStore(\"Tasks\");b=g.findRecord(\"uid\",e.uid);if(!b",219905,42,"getId());if(!a||",217912,59,"f=Ext.getStore(\"TodosProxy\");d=f.first();if(d&&a.getId()===d.getId()){return false}return{uid:e.uid",220027,35,",doImpl:function(){var f,",218012,58,"f=this.getCdata();b=d.findRecord(\"uid\",f",216287,33,"getId());e=a.get(\"preselected\");if(Ext.isBoolean(f.preselected)&&f.preselected!==e){console.info(this);Ext.Logger.error(\"different preselected value when do preselect\")}a.set(\"preselected\",!",218192,49,"var f,",218012,58,"f=this.getCdata();b=d.findRecord(\"uid\",f",216287,33,"getId());e=a.get(\"preselected\");if(Ext.isBoolean(f.preselected)&&f.preselected===e){console.info(this);Ext.Logger.error(\"same preselected value when undo preselect\")}a.set(\"preselected\",!e);a.save(",224378,33,218277,212,"if(!b",219905,42,"getId()",218523,380,"getId()",218910,100,"Id(",216879,122,220619,41,219178,318,"Id(",219501,380,"!b",217930,41,"a=c.findRecord(\"task_id\",b.getId()",219954,53,220028,58,"e,b,d,a,c;d=Ext.getStore(\"Tasks\");e=this.getCdata();b=d.findRecord(\"uid\",e.task.uid);b.set(\"status\",\"running\");b",220204,34,"b.save();c=Ext.getStore(\"Todos\");a=c.findRecord(\"task_id\",b.getId());if(!e",217035,39,"true);a.save();return c.sync()}},un",220064,128,220766,101,"getId()",220874,52,";a.save();e.sync()}b=h.todo.order;if(b===void 0||b===null){return}",220942,105,"Id(",221052,49,"Id(",221106,2693,"var b,c;if(Ext.isEmpty(a.title)){return false}b=",223831,69,";c=this.normalize(a.info);if(c){b.info=c}return b",223900,166,"info:e.info",224065,331,",normalize:function(c){var b,a;for(b in c){a=c[b];if(a===void 0){delete c[b]}}if(Ext.Object.getSize(c)){return c}else{return}",224395,13786,",tagsButton:\"mytoolbar #tags",238180,53,",tags:\"onTags",238232,154,",onTags",238249,56,"Tags\").show()},launch:function(){var a;a=",238268,37,"Tags\");a.on({scope:this,change:\"changeTagsBadgeText\"});return this.changeTagsBadgeText(a.getTag())},changeTagsBadgeText:function(a){return this.getTagsButton().setBadgeText(a",238384,651,"f){var b,e,a,d,c;if(f){e=Ext.getStore(\"Tasks\");d=e.findRecord(\"uid\",f);if(d){c=Ext.clone(d.getData())}}else{a=",238268,37,"Tags\").getTag();if(a){c={info:{tags:[a]}}}}b=this.getPanel();if(!b",239066,33,"b)}if(c){b.setValues(c)}return b",239110,880,"controller.Tags",238062,41,"],config:{tag:window.localStorage.getItem(\"tag\"),views:[\"Tags\"],refs:{panel:{selector:\"tagspanel\",xtype:\"tags",239384,42,"hange:\"onChange\"}}},onChange:function(a,b){return this.setTag(b.tag)},show:function(){var a,b;b=this.getTags();if(Ext.Object.getSize(b)<=1){return}",238935,69,"if(!a.getParent()){Ext.Viewport.add(a)}a.setTags(this.getTags());a.setValue({tag:this.getTag()});return a.show()},getTags:function(){var a,b,c;c=Ext.getStore(\"Tasks\");b={\"\":0};a=this.getTag();if(!Ext.isEmpty(a)){b[a]=0}c.each(function(g){var h,d,j,f,i,e;if(g.data.info&&Ext.isArray(g.data.info.tags)&&g.data.info.tags.length){i=g.data.info.tags;e=[];for(j=0,f=i.length;j<f;j++){d=i[j];h=b[d];e.push(b[d]=h?h+1:1)}return e}else{return b[\"\"]=b[\"\"]+1}});return b",278197,32,"updateTag(this.getTag())},updateTag:function(a){var b;if(Ext.isEmpty(a)){window.localStorage.removeItem(\"tag\")}else{window.localStorage.setItem(\"tag\",a)}b=",238268,37,"TaskFilter\");if(b){b.setFilterFn(this.generateFilterFn(a))}return this.fireEvent(\"change\",a)},generateFilterFn:function(a){if(Ext.isEmpty(a)){return function(){return true}}else{return function(b){return b.data.info&&Ext.isArray(b.data.info.tags)&&Ext.Array.contains(b.data.info.tags,a)}}",239966,173,"itemId:\"add\"},{iconCls:\"tags\",itemId:\"tags\"},{iconCls:\"reply\",itemId",240176,58,"#add",308748,41,"add\")}},\"#undo",308748,41,"undo\")}},\"#tags",308748,41,"tags\")}}}",219647,32,240949,251,"this.fireEvent(\"do\",c",241259,139,"this.fireEvent(\"undo\",c",241459,311,255102,73,"TitleBar",333616,33,"title",221306,52,",\"Ext.util.SizeMonito",221356,63,"cls:Ext.baseCSSPrefix+\"navigation-",221414,66,"},items:[]},maxButtonWidth:\"40%\",constructor:function(){this.refreshTitlePosition=Ext.Function.createThrottled(this.refreshTitlePosition,50,this);this.callParent(arguments)},beforeInitialize:function(){this.applyItems=this.applyInitialItems},initialize:function(){delete this.applyItems;this.add(this.initialItems);delete this.initialItems;this.on({painted:\"refreshTitlePosition\",single:true})},applyInitialItems:function(a){var b=this,c=b.getDefaults()||{};b.initialItems=a;b.leftBox=b.add({xtype:\"container\",style:\"position: relative",221459,37,",listeners:{resize:\"refreshTitlePosition\",scope:b}});b.spacer=b.add({xtype:\"component\",style:\"position: relative\",flex:1,listeners:{resize:\"refreshTitlePosition\",scope:b}});b.rightBox=b.add({xtype:\"container\",style:\"position: relative",221459,37,",listeners:{resize:\"refreshTitlePosition\",scope:b}});b.titleComponent=b.add({xtype:\"title\",hidden:c.hidden,centered:true});b.doAdd=b.doBoxAdd;b.remove=b.doBoxRemove;b.doInsert=b.doBoxInsert},doBoxAdd:function(a){if(a.config.align==\"right\"){this.rightBox.add(a)}else{this.leftBox.add(a)}},doBoxRemove:function(a){if(a.config.align==\"right\"){this.rightBox.remove(a)}else{this.leftBox.remove(a)}},doBoxInsert:function(a,b){if(b.config.align==\"right\"){this.rightBox.add(b)}else{this.leftBox.add(b)}},getMaxButtonWidth:function(){var a=this.maxButtonWidth;if(Ext.isString(this.maxButtonWidth)){a=parseInt(a.replace(\"%\",\"\"),10);a=Math.round((this.element.getWidth()/100)*a)}return a},refreshTitlePosition:function(){var f=this.titleComponent.renderElement;f.setWidth(null);f.setLeft(null);var a=this.leftBox,c=a.down(\"button\"),h,m;if(c){if(c.getWidth()==null){c.renderElement.setWidth(\"auto\")}h=a.renderElement.getWidth();m=this.getMaxButtonWidth();if(h>m){c.renderElement.setWidth(m)}}var j=this.spacer.renderElement.getPageBox(),k=f.getPageBox(),g=k.width-j.width,d=k.left,i=k.right,b,l,e;if(g>0){f.setWidth(j.width);b=g/2;d+=b;i-=b}l=j.left-d;e=i-j.right;if(l>0){f.setLeft(l)}else{if(e>0){f.setLeft(-e)}}f.repaint()},updateTitle:function(a){this.titleComponent.setTitle(a);",169470,33,"TitlePosition()}",241750,709,"FvTouch.field.Tags",232867,35,"agsfield\",applyValue:function(a){if(Ext.isArray(a)){return a}else{if(Ext.isEmpty(a)){return[]}else{return[a.toString()]}",230158,32,";if(!Ext.isArray(b)){Ext.Logger.error(\"value of tagsfield should be an array\")}a=b.join(\", \");return this.callParent([a])},getValue:function(){var a,b;b=this.callParent();a=Ext.Array.map(b.split(\",\"),function(c){return c.trim()});a=Ext.Array.filter(a,function(c){return !Ext.isEmpty(c)});a=Ext.Array.unique(a);if(a.length){return a}else{return}}});Ext.define(\"Ext.Media",240409,33,"media\",config:{url:\"\",enableControls:Ext.os.is.Android?false:true,autoResume:false,autoPause:true,preload:true,loop:false,media:null,volume:1,muted:false",303631,52,"on({scope:a,activate:a.onActivate,deactivate:a.onDeactivate});a.addMediaListener({canplay:\"onCanPlay\",play:\"onPlay\",pause:\"onPause\",ended:\"onEnd\",volumechange:\"onVolumeChange\",timeupdate:\"onTimeUpdate\"})},addMediaListener:function(d,b){var c=this,e=c.media.dom,f=Ext.Function.bind;if(!Ext.isObject(d)){var a=d;d={};d[a]=b}Ext.Object.each(d,function(h,g){if(typeof g!==\"function\"){g=c[g]}if(typeof g==\"function\"){g=f(g,c);e.addEventListener(h,g)}})},onPlay:function(){this.fireEvent(\"play\",this)},onCanPlay:function(){this.fireEvent(\"canplay\",this)},onPause:function(){this.fireEvent(\"pause\",this,this.getCurrentTime())},onEnd:function(){this.fireEvent(\"ended\",this,this.getCurrentTime())},onVolum",193887,35,"volumechange\",this,this.media.dom.volume)},onTimeUpdate:function(){this.fireEvent(\"timeupdate\",this,this.getCurrentTime())},isPlaying:function(){return !Boolean(this.media.dom.paused)},onActivate:function(){var a=this;if(a.getAutoResume()&&!a.isPlaying()){a.play()}},onDeactivate:function(){var a=this;if(a.getAutoResume()&&a.isPlaying()){a.pause()}},updateUrl:function(a){var b=this.media.dom;b.src=a;if(\"load\" in b){b.load()}if(this.isPlaying()){this.play()}},updateEnableControls:function(a){this.media.dom.controls=a?\"controls\":false},updateLoop:function(a){this.media.dom.loop=a?\"loop\":false},play:function(){var a=this.media.dom;if(\"play\" in a){a.play();setTimeout(function(){a.play()},10)}},pause:function(){var a=this.media.dom;if(\"pause\" in a){a.pause()}},toggle:function(){if(this.isPlaying()){this.pause()}else{this.play()}},stop:function(){var a=this;a.setCurrentTime(0);a.fireEvent(\"stop\",a);a.pause()},updateVolume:function(a){this.media.dom.volume=a},updateMuted:function(a){this.fireEvent(\"mutedchange\",this,a);this.media.dom.muted=a},getCurrentTime:function(){return this.media.dom.currentTime},setCurrentTime:function(a){this.media.dom.currentTime=a;return a},getDuration:function(){return this.media.dom.duration",355889,32,"Ext.Object.each(event,function(c,b){if(typeof b!==\"function\"){b=a[b]}if(typeof b==\"function\"){b=bind(b,a);dom.removeEventListener(c,b)}})",242443,12659,255175,11833,267981,7712,294153,35,240410,93,"striped:false,active:false,text:\"\",html:'<div class=\"x-progress-text x-progress-text-back\"></div>\\n<div class=\"bar\">\\n <div class=\"x-progress-text\"></div>\\n</div>',value:0",272223,42,"return this.on({painted:\"onResize\",resize:\"onResize\",scope:this})},updateValue:function(c,a){var b;if(c===a){return}if(c<0){c=0}if(c>100){c=100}b=\"\"+c+\"%\";return this.element.down(\"* .bar\").setWidth(b",240697,221,",updateText:function(b,a){if(b===a){return}return Ext.Array.each(this.element.query(\".x-progress-text\"),function(c){return Ext.fly(c).setHtml(b)})},onResize:function(){return this.element.down(\".bar .x-progress-text\").setWidth(this.element.getWidth())}",271882,36,"List\",{extend:",271896,33,"updateBaseCls:function(a){var b=this;b.itemClsShortCache=a+\"-item\";b.headerClsShortCache=a+\"-header\";b.headerClsCache=\".\"+b.headerClsShortCache;b.headerItemClsShortCache=a+\"-header-item\";b.footerClsShortCache=a+\"-footer-item\";b.footerClsCache=\".\"+b.footerClsShortCache;b.labelClsShortCache=a+\"-item-label\";b.labelClsCache=\".\"+b.labelClsShortCache;b.disclosureClsShortCache=a+\"-disclosure\";b.disclosureClsCache=\".\"+b.disclosureClsShortCache;b.iconClsShortCache=a+\"-icon\";b.iconClsCache=\".\"+b.iconClsShortCache;this.callParent(arguments)},hiddenDisplayCache:Ext.baseCSSPrefix+\"hidden-display\",getItemElementConfig:function(e,h){var f=this,c=f.dataview,g=c.getItemCls(),b=f.itemClsShortCache,d,a;if(g){b+=\" \"+g}d={cls:b,children:[{cls:f.labelClsShortCache,html:c.getItemTpl().apply(h)}]};if(c.getIcon()){a=h.iconSrc;d.children.push({cls:f.iconClsShortCache,style:\"background-image: \"+a?'url(\"'+newSrc+'\")':\"\"})}if(c.getOnItemDisclosure()){d.children.push({cls:f.disclosureClsShortCache+\" \"+((h[c.getDisclosureProperty()]===false)?f.hiddenDisplayCache:\"\")})}return d},updateListItem:function(d,k){var h=this,e=h.dataview,j=Ext.fly(k),g=j.down(h.labelClsCache,true),c=d.data,b=e.getDisclosureProperty(),a=c&&c.hasOwnProperty(b),l=c&&c.hasOwnProperty(\"iconSrc\"),f,i;g.innerHTML=e.getItemTpl().apply(c);if(a){f=j.down(h.disclosureClsCache);f[c[b]===false?\"removeCls\":\"addCls\"](h.hiddenDisplayCache)}if(e.getIcon()){i=j.down(h.iconClsCache,true);i.style.backgroundImage=l?'url(\"'+l+'\")':\"\"}},doRemoveHeaders:function(){var e=this,a=e.headerItemClsShortCache,b=e.element.query(e.headerClsCache),f=b.length,c=0,d;for(;c<f;c++){d=b[c];Ext.fly(d.parentNode).removeCls(a);Ext.removeNode(d)}},doRemoveFooterCls:function(){var d=this,c=d.footerClsShortCache,a=d.element.query(d.footerClsCache),e=a.length,b=0;for(;b<e;b++){Ext.fly(a[b]).removeCls(c)}},doAddHeader:function(b,a){b=Ext.fly(b);if(a){b.insertFirst(Ext.Element.create({cls:this.headerClsShortCache,html:a}))}b.addCls(this.headerItemClsShortCache)},destroy:function(){this.doRemoveHeaders();",274969,33,"FvTouch.dataview.element.List\",{override:\"Ext.dataview.element.List\",updateListItem:function(d,k){var h=this,e=h.dataview,j=Ext.fly(k),g=j.down(h.labelClsCache,true),c=e.prepareData(d.getData(true),e.getStore().indexOf(d),d),b=e.getDisclosureProperty(),a=c&&c.hasOwnProperty(b),l=c&&c.hasOwnProperty(\"iconSrc\"),f,i;g.innerHTML=e.getItemTpl().apply(c);if(a){f=j.down(h.disclosureClsCache);f[c[b]===false?\"removeCls\":\"addCls\"](h.hiddenDisplayCache)}if(e.getIcon()){i=j.down(h.iconClsCache,true);i.style.backgroundImage=l?'url(\"'+l+'\")':\"\"}}});Ext.define(\"Ext.dataview.IndexBa",168110,51,"IndexBar\"",241855,36,"indexbar\",direction:\"vertical\",letters:[\"A\",\"B\",\"C\",\"D\",\"E\",\"F\",\"G\",\"H\",\"I\",\"J\",\"K\",\"L\",\"M\",\"N\",\"O\",\"P\",\"Q\",\"R\",\"S\",\"T\",\"U\",\"V\",\"W\",\"X\",\"Y\",\"Z\"],ui:\"alphabet\",listPrefix:null},itemCls:Ext.baseCSSPrefix+\"\",updateDirection:function(a,c){var b=this.getBaseCls();this.element.replaceCls(b+\"-\"+c,b+\"-\"+a",168795,49,"wrapper\",classList:[\"x-centered\",\"x-indexbar-wrapper\"]",129959,32,"updateLetters:function(c){this.innerElement.setHtml(\"\");if(c){var b=c.length,a;for(a=0;a<b;a++){this.innerElement.createChild({html:c[a]})}}},updateListPrefix:function(a){if(a&&a.length){this.innerElement.createChild({html:a},0)}",272223,47,"innerElement.on(",16597,35,"end:this.onTouchEnd,touchmove:this.onTouchMove,scope:this})},onTouchStart:function(b,a){b.stopPropagation();this.innerElement.addCls(this.getBaseCls()+\"-pressed\");this.pageBox=this.innerElement.getPageBox();this.onTouchMove(b)},onTouchEnd:function(b,a){this.innerElement.removeCls(this.getBaseCls()+\"-pressed\")},onTouchMove:function(c){var a=Ext.util.Point.fromEvent(c),b,d=this.pageBox;if(!d){d=this.pageBox=this.el.getPageBox()}if(this.getDirection()===\"vertical\"){if(a.y>d.bottom||a.y<d.top){return}b=Ext.Element.fromPoint(d.left+(d.width/2),a.y)}else{if(a.x>d.right||a.x<d.left){return}b=Ext.Element.fromPoint(a.x,d.top+(d.height/2))}if(b){this.fireEvent(\"index\",this,b.dom.innerHTML,b)}},destroy:function(){var c=this,d=Array.prototype.slice.call(c.innerElement.dom.childNodes),b=d",274922,41,"d[a])}",94954,33,";Ext.define(\"Ext.dataview.ListItemHeade",240408,34,"listitemheader\"",241855,36,"list-header\",docked:\"top\"",266988,993,275697,1604,"b.id===\"historyview\"?\"history",277299,236,"3],preselected:a[0],running:a[1],history:a[2",277566,1023,"],cmdUndoListeners:[]",279038,981,",pullup:\"onPullup",280018,195,"\"refresh\",undo:\"refresh\",scope:this,order:\"before\"})},refresh:function(){Ext.getStore(\"TasksProxy\").refresh();return Ext.getStore(\"TodosProxy\").refresh(",280367,1663,",onPullup",238249,56,"Main\").gotoPreselectedView",238383,37,"PreselectedList",238062,65,"Manager\"],init:function(){",280173,40,"\"refresh\",undo:\"refresh\",scope:this,order:\"before\"});",238261,44,"TaskFilter\").on({update:\"refresh\",scope:this})},refresh",280381,33,"Preselecteds\").refresh",238383,37,"RunningList",238062,65,"Manager\",\"Ext.ActionSheet\"],relatedtasks:[\"deletetask\",\"edittask\",\"postponetask\",\"starttask\",\"taskdone",279808,33,"runningview:\"runningview\"},control:{runningview:{\"break\":\"onBreak\",timeout:\"onTimeou",279948,71,280130,36,280173,49,"f){var e,a,d,c,b;c=f.getType();d=Ext.getStore(\"Timers\");if(Ext.Array.contains([\"deletetask\",\"postponetask\",\"taskdone\"],c)){b=f.getCdata().task.uid;a=[];d.each(function(g){if(g.get(\"uid\")===b){return a.push(g)}});if(a.length){return d.remove(a)}}else{if(c===\"starttask\"){e=f.getCdata();b=e.task.uid;return d.add({uid:b,time:f.getCtime(),type:\"go\"})}}},undo:function(h){var g,b,a,f,e,d,c;d=h.getType();e=Ext.getStore(\"Timers\");if(Ext.Array.contains([\"deletetask\",\"postponetask\",\"taskdone\"],d)){g=h.getCdata();if(g.task.status===\"running\"){c=h.getCdata().task.uid;f=Ext.getStore(\"Tasks\");a=f.findRecord(\"uid\",c);return e.add({uid:c,time:a.get(\"starttime\"),type:\"go\"})}}else{if(d===\"starttask\"){g=h.getCdata();c=g.task.uid;b=[];e.each(function(i){if(i.get(\"uid\")===c){return b.push(i)}});if(b.length){return e.remove(b)}}}},scope:this,order:\"before\"});",280173,40,"\"refreshIfRelated\",undo:\"refreshIfRelated\",scope:this,order:\"before\"});",238261,44,"TaskFilter\").on({update:\"refresh\",scope:this})},refreshIfRelated:function(b){var a;a=b.getType();if(Ext.Array.contains(this.relatedtasks,a)){return this.refresh()}},refresh",280381,33,"Runnings\").refresh()},onBreak:function(b,c){var a,g,f,e,d;d=b.get(\"uid\");e=Ext.getStore(\"Timers\");g=e.findRecord(\"uid\",d);if(g){f=g.get(\"type\")===\"go\"?\"break\":\"go\"}else{e.add({uid:d,time:b.get(\"starttime\"),type:\"go\"});f=\"break\"}e.add({uid:d,time:Date.now(),type:f});if(!c.getTimeout()){a=",238268,37,"Sounds\");if(f===\"go\"){a.play(\"starttask\")}else{a.play(\"break\")}}return c.updateTimer(b)},onTimeout:function(b,c){var a,d;d=c.getTimerType();a=",238268,37,"Sounds\");if(d===\"go\"){return a.play(\"break\")}else{return a.play(\"starttask\")}",281221,94,281320,168,281493,176,281674,173,281852,100,281957,73,280606,616,239215,34,"HistoryList",238062,65,"Manager\"],config:{refs:{historyview:\"historyview\"},control:{historyview:{add:\"showAddPanel\"}}},init:function(){",280173,40,"\"refreshIfRelated\",undo:\"refreshIfRelated\",scope:this,order:\"before\"});",238261,44,"TaskFilter\").on({update:\"refresh\",scope:this})},refreshIfRelated:function(b){var a;a=b.getType();if(a===\"taskdone\"||a===\"postponetask\"){return this.refresh()}},refresh",280381,33,"History\").refresh()},showAddPanel:function(a){var b,c;c=a.data.cdata.task.uid;b=Ext.getStore(\"Tasks\").findRecord(\"uid\",c);if(!b){return}",238261,59,"c)}});Ext.define(\"Ext.Audio\",{extend:\"Ext.Media\",xtype:\"audio\"",76282,32,"audio\"},onActivat",291039,39,"if(Ext.os.is.Phone){a.element.show()}},onDeactivat",291039,39,"if(Ext.os.is.Phone){a.element.hide()}},template:[{reference:\"media\",preload:\"auto\",tag:\"audio\",cls:Ext.baseCSSPrefix+\"component\"}]",239215,34,"Sounds",238062,42,"Ext.Audio\",",277094,32,"],sounds:{",280148,65,"\"playIfRelated\",undo:function(){return this.play(\"undo\")},scope:this})},createTryPlayFun:function(a,d,c){var b;if(c==null){c=3000}b=new RegExp(\"^\"+a+\"[1-\"+d+\"]$\");return function(g,e){var f;if(e<c&&b.test(g)){f=parseInt(g.substr(a.length));if(f<d){f=f+1}return a+f}else{return a+\"1\"}}},createPreselectTryPlayFun:function(c){var a,b;b=/^preselect[1-8]$/;a=\"preselect\";return function(f,d){var e;if(d<3000&&b.test(f)){e=parseInt(f.substr(9));if(c&&e>1){e=e-1}else{if(e<8){e=e+1}}return a+e}else{return a+\"1\"}}},playIfRelated:function(b){var a;a=b.getType();if(a===\"taskdone\"){if(!this._taskdoneTryPlayFun){this._taskdoneTryPlayFun=this.createTryPlayFun(\"taskdone\",8)}return this.tryPlay(this._taskdoneTryPlayFun)}else{if(a===\"postponetask\"){return this.play(\"postponetask\")}else{if(a===\"starttask\"){return this.play(\"starttask\")}else{if(a===\"deletetask\"){return this.play(\"deletetask\")}else{if(a===\"addtask\"){return this.play(\"addtask\")}else{if(a===\"edittask\"){return this.play(\"edittask\")}else{if(a===\"preselect\"){return this.tryPlay(this.createPreselectTryPlayFun(b.getCdata().preselected))}}}}}}}},tryPlay:function(a){var b;b=a(this.prename,Date.now()-this.pretime);if(b){return this.play(b)}},play:function(a){var b;b=this.sounds[a];if(!b){b=this.createSound(a);this.sounds[a]=b}if(this.prename){this.sounds[this.prename].stop()}b.play();this.prename=a;return this.pretime=Date.now()},createSound:function(b){var a;a=\"resources/sounds/\"+b+\".m4a\";return Ext.Viewport.add({xtype:\"audio\",hidden:true,url:a}",282028,12042,297970,10150,"itleB",308124,83,",\"FvTouch.field.Tags\"],config:{values:void 0,",308217,337,",",308495,34,"agsfield\",name:\"tags\",label:\"Tags",308550,267,"applyValues:function(a){if(a===void 0||a===null){return a}else{return Ext.apply(a.info||{},{title:a.title})}},getValues:function(){var b,a;a=",308845,35,";b=a.title;delete a.title;return{title:b,info:a}},updateValues",320124,32,308923,782,"if(a){this.setUid(a.uid",107504,55,309777,8849,"Running",318630,63,"Label",333792,38,",\"Ext.Button\",\"Ext.Date\"],xtype:\"runningitem\",config:{timerType:\"go\",time:null,timeout:null,record:null,items:[{xtype:\"container\",items:[{xtype:\"button\",docked:\"right\",itemId:\"breakbutton\",iconCls:\"pause\",iconMask:true,cls:\"breakbutton\"},{xtype:\"label\",itemId:\"title\",cls:\"title\"}]",294280,44,"width:\"100%\",padding:0,striped:true,active:true}],cls:\"runningitem\"",294350,47,319143,470,"control:{\"#breakbutton\":{tap:\"onBreak\"}},listeners:{updatedata:\"onUpdateData\"}",272223,42,319791,91,"onBreak",308688,35,"break\",this.getRecord(),this)},onTimeout",308688,35,"timeout\",this.getRecord(),this",320174,155,"UpdateData:function(a,b){if(b){this.child(\"* #title\").setHtml(b.title);return this.updateTimer()}},updateTimer:function(b){var e,a,g,f,d,c;if(b==null){b=this.getRecord(",294786,43,"a=b.get(\"status\");if(a===\"open\"){this.setTimerType(\"ready\");this.setTime(0);return}c=b.get(\"uid\");d=Ext.getStore(\"Timers\");g=d.findRecord(\"uid\",c);if(g){f=g.get(\"time\");this.setTimerType(g.get(\"type\"))}else{f=b",294720,32,"this.setTimerType(\"go\")}e=this;",294843,34,"return e.refreshAll(f)},1000);return this.refreshAll(f)},timeText:function(b){var a;a=b/3600000;a=a.toFixed(0);a=a>0?a+\":\":\"\";return a+Ext.Date.format(new Date(b),\"i:s\")},updateTime:function(d){var b,a,c;a=this.child(\"#progressbar\");b=this.child(\"* #breakbutton\");a.setText(this.timeText(d));if(this.getTimerType()===\"ready\"){this.setTimeout(false);if(a){a.hide()}b.setIconCls(\"play1\");return b.setUi(\"confirm\")}else{if(this.getTimerType()===\"go\"){c=d/15000;b.setIconCls(\"pause\");if(c>100){this.setTimeout(true);a.setValue(100);a.setUi(\"decline\");return b.setUi(\"confirm\")}else{this.setTimeout(false);a.setValue(c);a.setUi(null);return b.setUi(\"normal\")}}else{c=100-d/3000;a.setUi(\"confirm\");b.setIconCls(\"play1\");if(c<0){this.setTimeout(true);a.setValue(0);return b.setUi(\"confirm\")}else{this.setTimeout(false);a.setValue(c);return b.setUi(\"normal\")}}}},updateTimeout:function(b,a){if(b&&Ext.isBoolean(a)&&b!==a){return this.onTimeout()}},refreshAll:function(c){var a,b;a=Date.now();b=a-c;return this.setTime(b",295166,116,318616,1879,321313,10470,"RunningList",331795,68,"RunningItem\"],xtype:\"runninglist\",config:{store:\"Runnings\",",331882,32,"runningitem\",disableSelection:true,maxItemCache:1",331923,206,"running",332133,113,"\"break\"",380163,39,"reak\",a,b)},timeout",380163,38,"timeout\",a,b",332356,51,"break\",\"timeout\"]}});Ext.define(\"FvTouch.view.Ready",331795,68,"RunningItem\"],xtype:\"ready\",config:{store:\"Ready\",",331882,32,"runningitem\",disableSelection:true,maxItemCache:1",331923,206,"running",332133,113,"\"break\"",332253,36,332348,59,"start\"]",295253,86,"RunningList\",\"FvTouch.view.Ready",295360,39,"fit\",items:[{xtype:\"runninglist\"},{xtype:\"ready\"}],control:{runninglist:{refresh:\"onDataviewRefresh\"},ready:{refresh:\"onDataviewRefresh\"}}",308557,34,"this.onDataviewRefresh(this.child(\"runninglist\"));return this.onDataviewRefresh(this.child(\"ready\"))}}},onDataviewRefresh:function(a){if(a.getStore().getCount()){return a.show()}else{return a.hide(",331752,908,"Proxy",333143,38,332698,242,",\"Ext.Label",332939,72,",initialize:function(){var a;this.callParent();a=this.child(\"todolist\");a.insert(1,{xtype:\"label\",html:\"pull up to preselected view\",cls:\"pullup\",action:\"pullup\",hidden:true});return a.getScrollable().getScroller().on({maxpositionchange:function(b,c){return this.scrollerY=c.y},scroll:function(c,b,d){if(d>(80+this.scrollerY)){this.onPullUp()}},scrollstart",308579,32,"odolist label[action=pullup]\").show()},scrollend",308579,32,"odolist label[action=pullup]\").hide()},scope:this})},onPullU",308687,36,"pullup\")",333397,40,333050,549,"Ext.dataview.List\",{alternateClassName:\"Ext.List\",extend:\"Ext.dataview.DataView\",xtype:\"list\",requires:[\"Ext.dataview.element.List\",\"Ext.dataview.IndexBar\",\"Ext.dataview.ListItemHeader\"],config:{indexBar:false,icon:null,preventSelectionOnDisclose:true,baseCls:Ext.baseCSSPrefix+\"list\",pinHeaders:true,grouped:false,onItemDisclosure:null,disclosureProperty:\"disclosure\",ui:\"normal\"},constructor:function(){this.translateHeader=(Ext.os.is.Android2)?this.translateHeaderCssPosition:this.translateHeaderTransform;",124762,34,"Trigger:function(c,b,f,a,d){if(!(this.getPreventSelectionOnDisclose()&&Ext.fly(d.target).hasCls(this.getBaseCls()+\"-disclosure\"))){this.callParent(arguments)}},initialize:function(){",325381,103,".element.List",325538,90,"element.on({delegate:\".\"+this.getBaseCls()+\"-disclosure\",tap:\"handleItemDisclosure\",scope:b}",325624,287,"updateInline",132399,40,"if(a){this.setOnItemDisclosure(false);this.setIndexBar(false);this.setGrouped(false)}},applyIndexBa",201552,39,"dataview.IndexBar,this.getIndexBar())},updateIndexBar:function(a){if(a&&this.getScrollable()){this.indexBarElement=",177286,44,".getElement().appendChild(a.renderElement);a.on({index:\"onIndex\",scope:this});",130336,37,"+\"-indexed\")}},updateGrouped:function(c){var b=this.getBaseCls(),a=b+\"-grouped\",d=b+\"-ungrouped\";if(c){this.addCls(a);this.removeCls(d);this.doRefreshHeaders();this.updatePinHeaders(this.getPinHeaders())}else{this.addCls(d);this.removeCls(a);if(this.container){this.container.doRemoveHeaders()}this.updatePinHeaders(null)}},updatePinHeaders:function(b){var c=this.getScrollable(),a;if(c){a=c.getScroller()}if(!c){return}if(b&&this.getGrouped()){a.on({refresh:\"doRefreshHeaders\",scroll:\"onScroll\",scope:this});if(!this.header||!this.header.renderElement.dom){this.createHeader()}}else{a.un({refresh:\"doRefreshHeaders\",scroll:\"onScroll\",scope:this});if(this.header){this.header.destroy()}}},createHeader:function(){var e,d=this.getScrollable(),a,b,c;if(d){a=d.getScroller();b=",177286,44,";c=b.getElement()}else{return}this.header=e=Ext.create(\"Ext.dataview.ListItemHeader\",{html:\" \",cls:\"x-list-header-swap\"});c.dom.insertBefore(e.element.dom,a.getContainer().dom.nextSibling);this.translateHeader(1000)},refresh",203037,35,"doRefreshHeaders()},onStoreAdd",100382,44,"doRefreshHeaders()},onStoreRemove",100382,44,"doRefreshHeaders()},onStoreUpdate",100382,44,"doRefreshHeaders()},onStoreClear:function(){this.callParent();if(this.header){this.header.destroy()}this.doRefreshHeaders()},getClosestGroups:function(){var a=this.pinHeaderInfo.offsets,e=this.getScrollable(),d=a.length,b=0,h,g,f,c;if(e){h=e.getScroller().position}else{return{current:0,next:0}}for(;b<d;b++){g=a[b];if(g.offset>h.y){c=g;break}f=g}return{current:f,next:c}},doRefreshHeaders:function(){if(!this.getGrouped()||!this.container){return false}var l=this.findGroupHeaderIndices(),f=l.length,g=this.container.getViewItems(),j=this.pinHeaderInfo={offsets:[]},a=j.offsets,h=this.getScrollable(),e,k,b,d,c;if(f){for(b=0;b<f;b++){d=g[l[b]];if(d){c=this.getItemHeader(d);a.push({header:c,offset:d.offsetTop})}}j.closest=this.getClosestGroups();this.setActiveGroup(j.closest.current);if(c){j.headerHeight=Ext.fly(c).getHeight()}if(h){e=h.getScroller();k=e.position;this.onScroll(e,k.x,k.y)}}},getItemHeader:function(b){var a=Ext.fly(b).down(this.container.headerClsCache);return a?a.dom:null},onScroll:function(e,j,h){var g=this,i=g.pinHeaderInfo,a=i.closest,b=g.activeGroup,c=i.headerHeight,d,f;if(!a){return}d=a.next;f=a.current;if(!this.header||!this.header.renderElement.dom){this.createHeader()}if(h<=0){if(b){g.setActiveGroup(false);a.next=f}this.translateHeader(1000);return}else{if((d&&h>d.offset)||(f&&h<f.offset)){a=i.closest=this.getClosestGroups();d=a.next;f=a.current;this.setActiveGroup(f)}}if(d&&h>0&&d.offset-h<=c){var k=c-(d.offset-h);this.translateHeader(k)}else{this.translateHeader(null)}},translateHeaderTransform:function(a){this.header.renderElement.dom.style.webkitTransform=(a===null)?null:\"translate3d(0px, -\"+a+\"px, 0px)\"},translateHeaderCssPosition:function(a){this.header.renderElement.dom.style.top=(a===null)?null:\"-\"+Math.round(a)+\"px\"},setActiveGroup:function(b){var a=this,c=a.header;if(c){if(b&&b.header){if(!a.activeGroup||a.activeGroup.header!=b.header){c.show();if(c.element){c.setHtml(b.header.innerHTML)}}}else{if(c&&c.element){c.hide()}}}this.activeGroup=b},onIndex:function(o,c){var r=this,s=c.toLowerCase(),b=r.getStore(),q=b.getGroups(),f=q.length,h=r.getScrollable(),n,e,m,g,k,p;if(h){n=r.getScrollable().getScroller()}else{return}for(m=0;m<f;m++){e=q[m];k=e.name.toLowerCase();if(k==s||k>s){g=e;break}else{g=e}}if(h&&g){p=r.container.getViewItems()[b.indexOf(g.children[0])];n.stopAnimation();var l=n.getContainerSize().y,j=n.getSize().y,d=j-l,a=(p.offsetTop>d)?d:p.offsetTop;n.scrollTo(0,a)}},applyOnItemDisclosure:function(a){if(Ext.isFunction(a)){return{scope:this,handler:a}}return a},handleItemDisclosure:function(f){var d=this,c=f.getTarget().parentNode,b=d.container.getViewItems().indexOf(c),a=d.getStore().getAt(b);d.fireAction(\"disclose\",[d,a,c,b,f],\"doDisclose\")},doDisclose:function(f,a,d,c,g){var b=f.getOnItemDisclosure();if(b&&b.handler){b.handler.call(b.scope||f,a,d,c,g)}},findGroupHeaderIndices:function(){if(!this.getGrouped()){return[]}var h=this,k=h.getStore();if(!k){return[]}var b=h.container,d=k.getGroups(),m=d.length,g=b.getViewItems(),c=[],l=b.footerClsShortCache,e,a,f,n,j;b.doRemoveHeaders();b.doRemoveFooterCls();if(g.length){for(e=0;e<m;e++){a=d[e].children[0];f=k.indexOf(a);n=g[f];b.doAddHeader(n,k.getGroupString(a));if(e){Ext.fly(n.previousSibling).addCls(l)}c.push(f)}j=d[--e].children;Ext.fly(g[k.indexOf(j[j.length-1])]).addCls(l)}return c",208944,41,"IndexBar(),this.indexBarElement,this.header);",274969,33,"FvTouch.view.HistoryList\",{extend:\"Ext.dataview.List\",requires:[\"Ext.Date\",\"FvTouch.dataview.element.List\"],xtype:\"historylist\",config:{store:\"History\",grouped:true,itemCls:\"historyitem\",itemTpl:\"<div class=\\\"x-docking-horizontal\\\">\\n <div class='x-docked-left cmdtype {type}'></div>\\n <div class=\\\"x-body tasktitle\\\">{title}</div>\\n <div class='x-docked-right taskendtime'>{endtime:date('H:i:s')}</div>\\n</div>\",listeners:{itemdoubletap",331946,40,"dd\",a)}},bubbleEvents:[\"add\"]},prepareData:function(g,c,a){var b,f,e;try{f=Ext.getStore(\"Tasks\");e=g.cdata.task.uid;b=f.findRecord(\"uid\",e);return{title:b.get(\"title\"),status:b.get(\"status\"),type:g.type,createtime:new Date(b.get(\"createtime\")),endtime:new Date(g.ctime)}}catch(d){console.info(d);return{title:\"[error]\",type:\"\",createtime:new Data(),endtime:new Date(",332841,32,"History",333437,50,"HistoryList\"],xtype:\"history",332957,42,"history",333003,36,333612,196,"HistoryView",333829,334,",{id:\"historyview\",title:\"History\",xtype:\"historyview\"}]}]",275677,32,320503,810,334190,25397,363849,14380,"sorters:[{property:\"ctime",378093,33,378413,38,378280,415,",autoUpdate:true",378695,929,"this.initConfig(a);return this.init()},init:Ext.emptyFn",379650,341,"if(!this.getAutoUpdate()){return}",379991,255,"if(!this.getAutoUpdate()){return}",380246,309,"if(!this.getAutoUpdate()){return}",380555,155,"if(!this.getAutoUpdate()){return}",380710,239,"f(!this.getAutoUpdate()){return}",380948,460,"refresh:function(",380553,37,"this.getStore()",380591,59,381405,1218,"TasksProxy",382863,53,"autoUpdate:false",378112,38,"controller.TaskFilte",238061,51,"store.TasksProxy\"],config:{filterFn:function(){return true}},updateFilterFn:function(a){var b;b=Ext.getStore(\"TasksProxy\");if(b){b.clearFilter(true);b.setFilters([{filterFn:a}]);Ext.getStore(\"TodosProxy\").refresh()}return this.fireEvent(\"update\"",377844,34,"odosProxy",382863,47,"odos\",filters:[{filterFn:function(b){var a,c;c=Ext.getStore(\"TasksProxy\");a=c.getById(b.get(\"task_id\"));return !Ext.isEmpty(a)}}],autoUpdate:false",378112,44,382623,75,"sorterFn:function(k,j){var h,g,c,a,f,e,d,b,i;i=Ext.getStore(\"Tasks\");d=i.getById(k.get(\"task_id\"));b=i.getById(j.get(\"task_id\"));h=d?d.get(\"status\")===\"running\":false;g=b?b.get(\"status\")===\"running\":false;if(h&&g){f=d.get(\"starttime\");e=b.get(\"starttime\");if(f>e){return -1}else{return 1}}else{if(h){return -1}else{if(g){return 1}else{c=k.get(\"order\");a=j.get(\"order\");if(c>a){return -1}else{return 1}}}}}}],filters:[{filterFn:function(d){var a,c,b;b=Ext.getStore(\"TodosProxy\");if(b.getCount()&&b.getById(d.getId())&&(d.data.preselected||d.getId()===b.first().getId())){return true}else{c=Ext.getStore(\"Tasks\");a=c.getById(d.get(\"task_id\"));return a&&a.get(\"status\")===\"running\"}}}],autoUpdate:false",378112,44,382855,170,",autoUpdate:false}});Ext.define(\"FvTouch.store.History\",{extend:\"FvTouch.StoreProxy\",requires:[\"Ext.Date\"],config:{store:\"Commands\",sorters:[{property:\"ctime",382730,32,"d){var a,c,b;c=d.get(\"type\");if(c===\"taskdone\"||c===\"postponetask\"){b=d.get(\"cdata\").task.uid;a=Ext.getStore(\"TasksProxy\").findRecord(\"uid\",b);if(!a){return false}if(c===\"postponetask\"){return d.get(\"cdata\").task.status===\"running\"}else{return true}}else{return false}}}],grouper:{groupFn:function(a){var b;b=new Date(a.get(\"ctime\"));return Ext.Date.format(Ext.Date.clearTime(b),\"D M j Y\")},sortProperty:\"ctime\"},autoLoad:true,autoUpdate:fals",382824,32,"eady",382863,53,382966,35,"open\"}],autoLoad:true,autoUpdate:false},init:function(){var a;a=Ext.getStore(\"Preselecteds\");a.on({refresh:\"refreshData\",scope:this});return this.refreshData(a)},addOn",240831,32,"setData([a])}else{return this.clearData()}},refreshData:function(b){var c,a;c=b.first();if(c){a=Ext.getStore(\"Tasks\").getById(c.get(\"task_id\"));return this.addOne(a)}else{return this.addOne(null)",363817,32,"Web",383241,33,359623,3843,383221,334,"info",383545,374,"Todo",383449,50,384226,206,383905,233,383056,141,"localstorage\",id:\"pomodoro\"}}});Ext.define(\"Ext.picker.Slot",331795,34,"xtype:\"pickerslot\",alternateClassName:\"Ext.Picker.Slot",303314,33,"data.Store\",\"Ext.Component\",\"Ext.data.StoreManager\"],isSlot:true,config:{title:null,showTitle:true,cls:Ext.baseCSSPrefix+\"picker-slot\",name:null,value:null,flex:1,align:\"left\",displayField:\"text\",valueField:\"value\",scrollable:{direction:\"vertical\",indicators:false,momentumEasing:{minVelocity:2},slotSnapEasing:{duration:100}}",268444,38,"Index=0",268513,34,"Title:function(a){if(a){a=Ext.create(\"Ext.Component\",{cls:Ext.baseCSSPrefix+\"picker-slot-title\",docked:\"top\",html:a})}return a",242106,45,";this.setupBar()}if(a){this.remove(a)}},updateShowTitle:function(a){var b=this.getTitle();if(b){b[a?\"show\":\"hide\"]();this.setupBar()}},updateDisplayField:function(a){this.setItemTpl('<div class=\"'+Ext.baseCSSPrefix+'picker-item {cls} <tpl if=\"extra\">'+Ext.baseCSSPrefix+'picker-invalid</tpl>\">{'+a+\"}</div>\")},updateAlign:function(a,c){var b=this.element;b.addCls(Ext.baseCSSPrefix+\"picker-\"+a);b.removeCls(Ext.baseCSSPrefix+\"picker-\"+c)},applyData:function(d){var f=[],c=d&&d.length,a,b,e;if(d&&Ext.isArray(d)&&c){for(a=0;a<c;a++){b=d[a];e={};if(Ext.isArray(b)){e[this.valueField]=b[0];e[this.displayField]=b[1]}else{if(Ext.isString(b)){e[this.valueField]=b;e[this.displayField]=b}else{if(Ext.isObject(b)){e=b}}}f.push(e)}}return d},updateData:function(",328739,46,"fields:[\"text\",\"value\"],data:a})",272222,43,"var a=this.getScrollable().getScroller();this.on({scope:this,painted:\"onPainted\",itemtap:\"doItemTap\"});a.on({scope:this,scrollend:\"onScrollEn",119325,32,"setupBar()},getPicker:function(){if(!this.picker){this.picker=this.getParent()}return this.picker},setupBa",179886,32,"return}var a=this.element,e=this.innerElement,f=this.getPicker(),g=f.bar,k=this.getValue(),b=this.getShowTitle(),j=this.getTitle(),h=this.getScrollable(),d=h.getScroller(),c=0,l,i;l=g.getHeight();if(b&&j){c=j.element.getHeight()}i=Math.ceil((a.getHeight()-c-l)/2);e.setStyle({padding:i+\"px 0 \"+(i)+\"px\"});d.refresh();d.setSlotSnapSize(l);this.setValue(k)},doItemTap:function(d,a,c,f){var b=this;b.selectedIndex=a;b.selectedNode=c;b.scrollToItem(c,true);b.fireEvent(\"slotpick\",b,b.getValue(true),b.selectedNode)},scrollToItem:function(e,d){var h=e.getY(),c=e.parent(),f=c.getY(),b=this.getScrollable(),a=b.getScroller(),g;g=h-f;a.scrollTo(0,g,d)},onScrollEnd:function(b,a,g){var f=this,d=Math.round(g/f.picker.bar.getHeight()),c=f.getViewItems(),e=c[d];if(e){f.selectedIndex=d;f.selectedNode=e;f.fireEvent(\"slotpick\",f,f.getValue(),f.selectedNode)}},getValue:function(c){var b=this.getStore(),a,d;if(!b){return}if(!this.rendered||!c){return this._value}if(this._value===false){return null}a=b.getAt(this.selectedIndex);d=a?a.get(this.getValueField()):null;return d},setValue:function(f){if(!Ext.isDefined(f)){return}if(!this.rendered||!f){this._value=f;return}var b=this.getStore(),a=this.getViewItems(),d=this.getValueField(),c,e;c=b.find(d,f);if(c!=-1){e=Ext.get(a[c]);this.selectedIndex=c;this.scrollToItem(e);this._value=f}},setValueAnimated:function(f){if(!f){return}if(!this.rendered){this._value=f;return}var b=this.getStore(),a=this.getViewItems(),d=this.getValueField(),c,e;c=b.find(d,f);if(c!=-1){e=Ext.get(a[c]);this.selectedIndex=c;this.scrollToItem(e,{duration:100});this._value=f}}});Ext.define(\"Ext.picker.Picker",241555,36,"picker\",alternateClassName:\"Ext.Picker\",requires:[\"Ext.picker.Slot\",\"Ext.Toolbar\",\"Ext.data.Model\"],isPicker:true",76282,32,"picker\",doneButton:true,cancelButton:true,useTitles:false,slots:null,value:null,height:220,layout:{type:\"hbox\",align:\"stretch\"},centered:false,left:0,right:0,bottom:0,defaultType:\"pickerslot\",toolbar:true},initElement",100382,39,"var b=this,a=Ext.baseCSSPrefix,c=this.innerElement;this.mask=c.createChild({cls:a+\"picker-mask\"});this.bar=this.mask.createChild({cls:a+\"picker-bar\"});b.on({scope:this,delegate:\"pickerslot\",slotpick:\"onSlotPick\"});b.on({scope:this,show:\"onShow\"})},applyToolb",292854,33,"Ext.applyIf(a,{docked:\"top\"});return Ext.factory(a,\"Ext.TitleBar\",this.getToolbar())},updateToolbar",236496,56,"applyDoneButton:function(a){if(a){if(Ext.isBoolean(a)){a={}}if(typeof a==\"string\"){a={text:a}}Ext.applyIf(a,{ui:\"action\",align:\"right\",text:\"Done\"})}return Ext.factory(a,\"Ext.Button\",this.getDoneButton())},updateDoneButton:function(c,a){var b=this.getToolbar();if(c){b.add(c);c.on(\"tap\",this.onDoneButtonTap,this)}else{if(a){b.remove(a)}}},applyCancelButton:function(a){if(a){if(Ext.isBoolean(a)){a={}}if(typeof a==\"string\"){a={text:a}}Ext.applyIf(a,{align:\"left\",text:\"Cancel\"})}return Ext.factory(a,\"Ext.Button\",this.getCancelButton())},updateCancelButton:function(b,a){var c=this.getToolbar();if(b){c.add(b);b.on(\"tap\",this.onCancelButtonTap,this)}else{if(a){c.remove(a)}}},updateUseTitles:function(d){var f=this.getInnerItems(),e=f.length,a=Ext.baseCSSPrefix+\"use-titles\",c,b;if(d",228943,40,"for(c=0;c<e;c++){b=f[c];if(b.isSlot){b.setShowTitle(d)}}},applySlots:function(b){if(b){var c=b.length,a;for(a=0;a<c;a++){b[a].picker=this}}return b},updateSlots:function(a){var b=Ext.baseCSSPrefix,c;this.removeAll();if(a){this.add(a)}c=this.getInnerItems();if(c.length>0){c[0].addCls(b+\"first\");c[c.length-1].addCls(b+\"last\")}this.updateUseTitles(this.getUseTitles())},onDoneButtonTap:function(){var a=this._value,b=this.getValue(true);if(b!=a){this.fireEvent(\"change\",this,b)}this.hide()},onCancelButtonTap:function(){this.fireEvent(\"cancel\",this);this.hide()},onSlotP",213693,32,"pick\",this,this.getValue(true),a)},onShow:function(){if(!this.isHidden()){this.setValue(this._value)}},setValue:function(k,a){var f=this,d=f.getInnerItems(),e=d.length,j,h,c,b,g;if(!k){k={};for(b=0;b<e;b++){k[d[b].config.name]=null}}for(j in k){g=k[j];for(b=0;b<d.length;b++){c=d[b];if(c.config.name==j){h=c;break}}if(h){if(a){h.setValueAnimated(g)}else{h.setValue(g)}}}f._values=f._value=k;return f},setValueAnimated:function(a){this.setValue(a,true)},getValue:function(c){var b={},a=this.getItems().items,f=a.length,e,d;if(c){for(d=0;d<f;d++){e=a[d];if(e&&e.isSlot){b[e.getName()]=e.getValue(c)}}this._values=b}return this._values",308815,35,"getValue(",69768,38,");Ext.destroy(this.mask,this.bar)",308028,42,"Tags\",{extend:\"Ext.picker.Picker\",xtype:\"tagspanel\",config:{tags:{},hideOnMaskTap:true},updateTags:function(c){var d,b,a;d=(function(){var e;e=[];for(b in c){a=c[b];e.push({text:b,value:a})}return e})();d=Ext.Array.sort(d,function(e,f){if(Ext.isEmpty(e.text)){return -1}else{if(Ext.isEmpty(f.text)){return 1}else{return f.value-e.value}}});return this.setSlots({name:\"tag\",data:Ext.Array.map(d,function(e){return{text:e.text,value:e.text}})})",384416,1032,"askFilter",385444,43,",\"PreselectedList\",\"RunningList\",\"HistoryList\",\"Sounds\",\"Tags",385486,80,"TasksProxy\",\"TodosProxy",385563,36,",\"History\",\"Ready",385598,576]
2  deltas/app.js/db576e4e02c889e459f17e516b998b9e348ae9ec.json
View
@@ -1 +1 @@
-["/*e98e3e743a2813f1f95750e291a0b5256828bd6a",42,214815,"Id(",216879,122,220619,41,218698,82,215107,49,215167,142,"Id(",219501,178,"Edit",214160,56,215552,129,"(\"title\")",215693,746,"uid:d.uid,",216439,225,"if(g.task.uid){",218778,33,"a=e.findRecord(\"task_id\",c.getId());if(a.get(\"order\")!==b){console.info(this);Ext.Logger.error(\"different order when do postponetask\")}}else{",216664,53,"}",216718,156,"Id(",216879,347,"if(g.task.uid){",218778,33,"a=e.findRecord(\"task_id\",c.getId());if(a.getId()!==e.last().getId()){console.info(this);Ext.Logger.error(\"todo is not the last one when undo postponetask\")}}else{",217226,38,"}",216718,42,"g",220767,32,217340,99,"Id(",219501,122,217566,421,220027,35,",doImpl:function(){var f,",218012,58,"f=this.getCdata();b=d.findRecord(\"uid\",f",216287,42,"e=a.get(\"preselected\");if(Ext.isBoolean(f.preselected)&&f.preselected!==e){console.info(this);Ext.Logger.error(\"different preselected value when do preselect\")}a.set(\"preselected\",!",218192,49,"var f,",218012,58,"f=this.getCdata();b=d.findRecord(\"uid\",f",216287,42,"e=a.get(\"preselected\");if(Ext.isBoolean(f.preselected)&&f.preselected===e){console.info(this);Ext.Logger.error(\"same preselected value when undo preselect\")}a.set(\"preselected\",!e);a.save(",224378,33,218277,239,"getId()",218523,380,"getId()",218910,100,"Id(",216879,122,220619,41,219178,318,"Id(",219501,446,"getId()",219954,53,220028,58,"e,b,d,a,c;d=Ext.getStore(\"Tasks\");e=this.getCdata();b=d.findRecord(\"uid\",e.task.uid);b.set(\"status\",\"running\");b",220204,34,"b.save();c=Ext.getStore(\"Todos\");a=c.findRecord(\"task_id\",b.getId());if(!e",217035,39,"true);a.save();return c.sync()}},un",220064,128,220766,101,"getId()",220874,52,";a.save();e.sync()}b=h.todo.order;if(b===void 0||b===null){return}",220942,105,"Id(",221052,49,"Id(",221106,17929,"e){var a,d,c,b;if(e){",239705,48,"if(c){b=Ext.clone(c.getData())}}",239043,59,"if(b){a.setValues(b",239100,1283,240941,259,"this.fireEvent(\"do\",c",241259,139,"this.fireEvent(\"undo\",c",241459,311,255102,73,"TitleBar",333296,33,"title",221306,52,",\"Ext.util.SizeMonito",221356,63,"cls:Ext.baseCSSPrefix+\"navigation-",221414,66,"},items:[]},maxButtonWidth:\"40%\",constructor:function(){this.refreshTitlePosition=Ext.Function.createThrottled(this.refreshTitlePosition,50,this);this.callParent(arguments)},beforeInitialize:function(){this.applyItems=this.applyInitialItems},initialize:function(){delete this.applyItems;this.add(this.initialItems);delete this.initialItems;this.on({painted:\"refreshTitlePosition\",single:true})},applyInitialItems:function(a){var b=this,c=b.getDefaults()||{};b.initialItems=a;b.leftBox=b.add({xtype:\"container\",style:\"position: relative",221459,37,",listeners:{resize:\"refreshTitlePosition\",scope:b}});b.spacer=b.add({xtype:\"component\",style:\"position: relative\",flex:1,listeners:{resize:\"refreshTitlePosition\",scope:b}});b.rightBox=b.add({xtype:\"container\",style:\"position: relative",221459,37,",listeners:{resize:\"refreshTitlePosition\",scope:b}});b.titleComponent=b.add({xtype:\"title\",hidden:c.hidden,centered:true});b.doAdd=b.doBoxAdd;b.remove=b.doBoxRemove;b.doInsert=b.doBoxInsert},doBoxAdd:function(a){if(a.config.align==\"right\"){this.rightBox.add(a)}else{this.leftBox.add(a)}},doBoxRemove:function(a){if(a.config.align==\"right\"){this.rightBox.rem