diff --git a/README.md b/README.md index 91f04fe..84274c0 100644 --- a/README.md +++ b/README.md @@ -24,8 +24,10 @@ Then install dependencies with bower (or manually from github if you prefer to): ## How to use -To load the minified layer you need to wrap your main `require` call with another `require`, requiring `"deliteful-build/layer"`. Then you should continue to -refer to modules with `"deliteful/foo"`. +### `baseUrl` is the directory containing `deliteful-build`. +This is the most common use-case so the needed configuration is built in the layer. +To load the minified layer you just need to wrap your main `require` call with another `require`, requiring `"deliteful-build/layer"`. +Then you should continue to refer to modules with `"deliteful/foo"`. For example, this code: ```js @@ -42,6 +44,28 @@ require(["deliteful-build/layer"], function() { }); ``` +### Other `baseUrl` + +If `baseUrl` is not the directory containing `deliteful-build`, custom configuration is needed. + +```js +require.config({ + paths: { + "deliteful": "path/to/deliteful-build", + "decor": "path/to/decor-build", + "delite": "path/to/delite-build", + "dpointer": "path/to/dpointer-build", + "ecma402": "path/to/ecma402-build" + } +}); +``` + + +## Bug reporting + +Issues should be filled against the source version of this project at [ibm-js/deliteful](https://github.com/ibm-js/deliteful) + + ## Licensing This project is distributed by the Dojo Foundation and licensed under the ["New" BSD License](./LICENSE). diff --git a/bower.json b/bower.json index 37d917e..5a7df58 100644 --- a/bower.json +++ b/bower.json @@ -1,12 +1,12 @@ { "name": "deliteful-build", - "version": "0.6.0", + "version": "0.7.0", "dependencies": { "jquery": ">=2.1", "requirejs": "2.1.x", "dstore": "1.0.x", - "decor-build": "0.5.x", - "delite-build": "0.6.x", + "decor-build": "0.6.x", + "delite-build": "0.7.x", "dpointer-build": "0.5.x", "ecma402-build": "0.3.x" }, @@ -23,6 +23,6 @@ "CONTRIBUTING.md" ], "devDependencies": { - "deliteful": "0.6.0" + "deliteful": "0.7.0" } } \ No newline at end of file diff --git a/css/layer.css b/css/layer.css deleted file mode 100644 index cb1eb0c..0000000 --- a/css/layer.css +++ /dev/null @@ -1 +0,0 @@ -.-d-view-stack-slide{-webkit-transition-property:none;-moz-transition-property:none;transition-property:none;-webkit-transition-duration:0s;-moz-transition-duration:0s;transition-duration:0s}.-d-view-stack-slide.-d-view-stack-transition{-webkit-transition-property:-webkit-transform;transition-property:transform;-webkit-transition-duration:.3s;-moz-transition-duration:.3s;transition-duration:.3s}.-d-view-stack-slide.-d-view-stack-in,.-d-view-stack-slide.-d-view-stack-out.-d-view-stack-reverse.-d-view-stack-transition{-webkit-transform:translate3d(100%,0,0)!important;transform:translate3d(100%,0,0)!important}.-d-view-stack-slide.-d-view-stack-in.-d-view-stack-reverse,.-d-view-stack-slide.-d-view-stack-out.-d-view-stack-transition{-webkit-transform:translate3d(-100%,0,0)!important;transform:translate3d(-100%,0,0)!important}.-d-view-stack-slide.-d-view-stack-in.-d-view-stack-transition,.-d-view-stack-slide.-d-view-stack-out{-webkit-transform:translate3d(0%,0,0)!important;transform:translate3d(0%,0,0)!important}.-d-view-stack-reveal{-webkit-transition-property:none;-moz-transition-property:none;transition-property:none;-webkit-transition-duration:0s;-moz-transition-duration:0s;transition-duration:0s}.-d-view-stack-reveal.-d-view-stack-transition{-webkit-transition-property:-webkit-transform;transition-property:transform;-webkit-transition-duration:.4s;-moz-transition-duration:.4s;transition-duration:.4s}.-d-view-stack-reveal.-d-view-stack-out{-webkit-transform:translate3d(0%,0,0)!important;transform:translate3d(0%,0,0)!important}.-d-view-stack-reveal.-d-view-stack-out.-d-view-stack-transition{-webkit-transform:translate3d(-100%,0,0)!important;transform:translate3d(-100%,0,0)!important}.-d-view-stack-reveal.-d-view-stack-out.-d-view-stack-reverse.-d-view-stack-transition{-webkit-transform:translate3d(100%,0,0)!important;transform:translate3d(100%,0,0)!important}.-d-view-stack-reveal.-d-view-stack-in{z-index:-100;-webkit-transform:translate3d(0%,0,-1px)!important;transform:translate3d(0%,0,-1px)!important}.-d-view-stack-reveal.-d-view-stack-in.-d-view-stack-transition{-webkit-transform:translate3d(0%,0,0)!important;transform:translate3d(0%,0,0)!important} \ No newline at end of file diff --git a/layer.css b/layer.css new file mode 100644 index 0000000..655c304 --- /dev/null +++ b/layer.css @@ -0,0 +1 @@ +.-d-view-stack-slide{-webkit-transition-property:none;-moz-transition-property:none;transition-property:none;-webkit-transition-duration:0s;-moz-transition-duration:0s;transition-duration:0s}.-d-view-stack-slide.-d-view-stack-transition{-webkit-transition-property:-webkit-transform;transition-property:transform;-webkit-transition-duration:.3s;-moz-transition-duration:.3s;transition-duration:.3s}.-d-view-stack-slide.-d-view-stack-in,.-d-view-stack-slide.-d-view-stack-out.-d-view-stack-reverse.-d-view-stack-transition{-webkit-transform:translate3d(100%,0,0)!important;transform:translate3d(100%,0,0)!important}.-d-view-stack-slide.-d-view-stack-in.-d-view-stack-reverse,.-d-view-stack-slide.-d-view-stack-out.-d-view-stack-transition{-webkit-transform:translate3d(-100%,0,0)!important;transform:translate3d(-100%,0,0)!important}.-d-view-stack-slide.-d-view-stack-in.-d-view-stack-transition,.-d-view-stack-slide.-d-view-stack-out{-webkit-transform:translate3d(0,0,0)!important;transform:translate3d(0,0,0)!important}.-d-view-stack-reveal{-webkit-transition-property:none;-moz-transition-property:none;transition-property:none;-webkit-transition-duration:0s;-moz-transition-duration:0s;transition-duration:0s}.-d-view-stack-reveal.-d-view-stack-transition{-webkit-transition-property:-webkit-transform;transition-property:transform;-webkit-transition-duration:.4s;-moz-transition-duration:.4s;transition-duration:.4s}.-d-view-stack-reveal.-d-view-stack-out{-webkit-transform:translate3d(0,0,0)!important;transform:translate3d(0,0,0)!important}.-d-view-stack-reveal.-d-view-stack-out.-d-view-stack-transition{-webkit-transform:translate3d(-100%,0,0)!important;transform:translate3d(-100%,0,0)!important}.-d-view-stack-reveal.-d-view-stack-out.-d-view-stack-reverse.-d-view-stack-transition{-webkit-transform:translate3d(100%,0,0)!important;transform:translate3d(100%,0,0)!important}.-d-view-stack-reveal.-d-view-stack-in{z-index:-100;-webkit-transform:translate3d(0,0,-1px)!important;transform:translate3d(0,0,-1px)!important}.-d-view-stack-reveal.-d-view-stack-in.-d-view-stack-transition{-webkit-transform:translate3d(0,0,0)!important;transform:translate3d(0,0,0)!important} \ No newline at end of file diff --git a/layer.js b/layer.js index 0e9c777..fe2207a 100644 --- a/layer.js +++ b/layer.js @@ -1,8 +1,8 @@ -require.config({"config":{"requirejs-dplugins/i18n":{"bundlesMap":{"deliteful/nls/layer":["deliteful/list/List/nls/Pageable","deliteful/StarRating/nls/StarRating","deliteful/Combobox/nls/Combobox"]},"localesMap":{"deliteful/nls/layer":["root"]}}}});require.config({"config":{"delite/theme":{"layersMap":{"delite/themes/{{theme}}/common.css":"deliteful/themes/layer_{{theme}}.css","deliteful/list/List/themes/{{theme}}/List.css":"deliteful/themes/layer_{{theme}}.css","deliteful/list/List/themes/{{theme}}/List_rtl.css":"deliteful/themes/layer_{{theme}}.css","deliteful/ViewStack/themes/{{theme}}/ViewStack.css":"deliteful/themes/layer_{{theme}}.css","deliteful/ViewIndicator/themes/{{theme}}/ViewIndicator.css":"deliteful/themes/layer_{{theme}}.css","deliteful/ToggleButton/themes/{{theme}}/ToggleButton.css":"deliteful/themes/layer_{{theme}}.css","deliteful/Toaster/themes/{{theme}}/Toaster.css":"deliteful/themes/layer_{{theme}}.css","deliteful/Switch/themes/{{theme}}/Switch.css":"deliteful/themes/layer_{{theme}}.css","deliteful/SwapView/themes/{{theme}}/SwapView.css":"deliteful/themes/layer_{{theme}}.css","deliteful/StarRating/themes/{{theme}}/StarRating.css":"deliteful/themes/layer_{{theme}}.css","deliteful/StarRating/themes/{{theme}}/StarRating_rtl.css":"deliteful/themes/layer_{{theme}}.css","deliteful/Slider/themes/{{theme}}/Slider.css":"deliteful/themes/layer_{{theme}}.css","deliteful/SidePane/themes/{{theme}}/SidePane.css":"deliteful/themes/layer_{{theme}}.css","deliteful/SidePane/themes/{{theme}}/SidePane_rtl.css":"deliteful/themes/layer_{{theme}}.css","deliteful/Select/themes/{{theme}}/Select.css":"deliteful/themes/layer_{{theme}}.css","deliteful/ResponsiveColumns/themes/{{theme}}/ResponsiveColumns.css":"deliteful/themes/layer_{{theme}}.css","deliteful/RadioButton/themes/{{theme}}/RadioButton.css":"deliteful/themes/layer_{{theme}}.css","deliteful/ProgressIndicator/themes/{{theme}}/ProgressIndicator.css":"deliteful/themes/layer_{{theme}}.css","deliteful/ProgressBar/themes/{{theme}}/ProgressBar.css":"deliteful/themes/layer_{{theme}}.css","deliteful/ProgressBar/themes/{{theme}}/ProgressBar_rtl.css":"deliteful/themes/layer_{{theme}}.css","deliteful/LinearLayout/themes/{{theme}}/LinearLayout.css":"deliteful/themes/layer_{{theme}}.css","deliteful/Combobox/themes/{{theme}}/Combobox.css":"deliteful/themes/layer_{{theme}}.css","deliteful/Checkbox/themes/{{theme}}/Checkbox.css":"deliteful/themes/layer_{{theme}}.css","deliteful/Button/themes/{{theme}}/Button.css":"deliteful/themes/layer_{{theme}}.css"}}}});require.config({"config":{"requirejs-dplugins/css":{"layersMap":{"deliteful/ViewStack/transitions/slide.css":"deliteful/css/layer.css","deliteful/ViewStack/transitions/reveal.css":"deliteful/css/layer.css"}}}}); -define("requirejs-text/text!deliteful/list/List/_LoadingPanel.html",[],function(){return'\n'}),define("deliteful/list/_LoadingPanel",["dcl/dcl","delite/register","delite/Widget","delite/handlebars!./List/_LoadingPanel.html"],function(a,b,c,d){var e=a([c],{message:"",template:d});return b("d-list-loading-panel",[HTMLElement,e])}),define("deliteful/list/Renderer",["dcl/dcl","requirejs-dplugins/jquery!attributes/classes","delite/register","delite/Widget"],function(a,b,c,d){return a([d],{item:{},_focusableChildren:null,render:a.after(function(){if(!this.renderNode)throw new Error("render must define a renderNode property on the Renderer. Example using attach-point in a template: ");this.renderNode.tabIndex=-1,b(this.renderNode).addClass("d-list-cell"),this.updateFocusableChildren()}),getFirst:function(){return this._focusableChildren&&this._focusableChildren.length?this._focusableChildren[0]:null},getLast:function(){return this._focusableChildren&&this._focusableChildren.length?this._focusableChildren[this._focusableChildren.length-1]:null},getNext:function(a){return this.getNextFocusableChild(a,1)},getPrev:function(a){return this.getNextFocusableChild(a,-1)},updateFocusableChildren:function(){if(this._focusableChildren)for(var a=0;a=0&&d\n'}),define("deliteful/list/PageableList",["dcl/dcl","delite/register","dojo/string","requirejs-dplugins/Promise!","requirejs-dplugins/jquery!attributes/classes","decor/sniff","./List","./Renderer","delite/handlebars!./List/_PageLoaderRenderer.html","requirejs-dplugins/i18n!./List/nls/Pageable"],function(a,b,c,d,e,f,g,h,i,j){var k=b("d-list-loader",[HTMLElement,h],{baseClass:"d-list-loader",_setItemAttr:function(a){this._set("item",a),this.item&&!this.loading&&(this._label.innerHTML=this.item.loadMessage)},loading:!1,_setLoadingAttr:function(a){this._set("loading",a),a&&this.beforeLoading(),this._destroyed||(e(this).toggleClass("d-loading",a),this._label.innerHTML=a?this.item.loadingMessage:this.item.loadMessage,e(this._progressIndicator).toggleClass("d-hidden"),this._progressIndicator.active=a,a?this._button.setAttribute("aria-disabled","true"):this._button.removeAttribute("aria-disabled")),a||this.afterLoading()},postRender:function(){this.on("click",this._load.bind(this))},template:i,_load:function(){if(!this._list.hasAttribute("aria-busy")){this.loading=!0;var a=this;return new d(function(b,c){a.defer(function(){a.performLoading().then(function(){a.loading=!1,b()}.bind(this),function(b){a.loading=!1,c(b),a._queryError(b)})})})}}});return b("d-pageable-list",[HTMLElement,g],{pageLength:0,maxPages:0,loadPreviousMessage:j["default-load-message"],loadNextMessage:j["default-load-message"],autoPaging:!1,_setAutoPagingAttr:function(a){this._set("autoPaging",a),this._autoPagingHandle&&(this._autoPagingHandle.remove(),this._autoPagingHandle=null),a&&(this._autoPagingHandle=this.on("scroll",this._scrollHandler.bind(this),this))},hideOnPageLoad:!1,_collection:null,_firstLoaded:-1,_lastLoaded:-1,computeProperties:function(a){this.pageLength>0&&this.attached&&(("store"in a||"query"in a||"_collection"in a)&&(this._dataLoaded&&(this._setBusy(!0,!0),this._empty(),a.pageLength=!0),this._idPages=[],this._loadNextPage().then(function(){this._setBusy(!1),this._dataLoaded=!0}.bind(this),function(a){this._setBusy(!1),this._queryError(a)}.bind(this))),this._previousPageLoader&&(this._previousPageLoader.item={loadMessage:c.substitute(this.loadPreviousMessage,this),loadingMessage:this.loadingMessage}),this._nextPageLoader&&(this._nextPageLoader.item={loadMessage:c.substitute(this.loadNextMessage,this),loadingMessage:this.loadingMessage}))},processCollection:a.superCall(function(a){return function(b){0===this.pageLength&&a.apply(this,arguments),this._collection=b}}),_updateIdPages:function(a,b,c){for(var d=this._firstLoaded,e=0;e=d&&f>=b){a?this._idPages[e].splice(b-d,0,c):this._idPages[e].splice(b-d,1);break}d+=this._idPages[e].length}},_loadNextPage:function(){this._rangeSpec||(this._rangeSpec={start:0,count:this.pageLength},this._firstLoaded=this._rangeSpec.start),this._nextPageLoader&&(this._rangeSpec.start=this._lastLoaded+1,this._rangeSpec.count=this.pageLength);var a=this._collection.fetchRange({start:this._rangeSpec.start,end:this._rangeSpec.start+this._rangeSpec.count});return a.then(function(a){var b=a.map(function(a){return this.itemToRenderItem(a)},this);if(b.length){var c=b.map(function(a){return this.getIdentity(a)},this);this._lastLoaded=this._rangeSpec.start+c.length-1,this._idPages.push(c)}this._nextPageReadyHandler(b)}.bind(this))},_loadPreviousPage:function(){this._rangeSpec.count=this.pageLength,this._rangeSpec.start=this._firstLoaded-this.pageLength,this._rangeSpec.start<0&&(this._rangeSpec.count+=this._rangeSpec.start,this._rangeSpec.start=0);var a=this._collection.fetchRange({start:this._rangeSpec.start,end:this._rangeSpec.start+this._rangeSpec.count});return a.then(function(a){var b=a.map(function(a){return this.itemToRenderItem(a)},this);if(b.length){var c,d=b.map(function(a){return this.getIdentity(a)},this),e=this._idPages[0];for(c=0;c=0&&(b.splice(c,1),d.splice(c,1),c--);this._firstLoaded=this._rangeSpec.start,this._idPages.unshift(d)}this._previousPageReadyHandler(b)}.bind(this))},_unloadPage:function(a){var b,c;if(a){for(b=this._idPages.shift(),this._firstLoaded+=b.length,c=0;cthis.maxPages&&this._unloadPage(!1),0===this._firstLoaded?(this._previousPageLoader.destroy(),this._previousPageLoader=null):this._previousPageLoader.placeAt(this,"first"),b._destroyed&&(b=c),b){var d=b.previousElementSibling;if(d&&d.renderNode){var e=this.navigatedDescendant?null:this.ownerDocument.activeElement;this.navigateTo(d.renderNode),this.scrollBy({y:this.getTopDistance(d)}),e&&e.focus()}}},_nextPageReadyHandler:function(a){var b=this._getLastVisibleRenderer();if(this.navigatedDescendant&&b&&this.navigateTo(b.renderNode),this._renderNewItems(a,!1),this.maxPages&&this._idPages.length>this.maxPages&&this._unloadPage(!0),this._nextPageLoader?a.length!==this._rangeSpec.count?(this._nextPageLoader.destroy(),this._nextPageLoader=null):this._nextPageLoader.placeAt(this):a.length===this._rangeSpec.count&&this._createNextPageLoader(),b){var c=b.nextElementSibling;if(c&&c.renderNode){var d=this.navigatedDescendant?null:this.ownerDocument.activeElement;this.navigateTo(c.renderNode),this.scrollBy({y:this.getBottomDistance(c)}),d&&d.focus()}}},_getLastVisibleRenderer:function(){for(var a=this._getLastRenderer();a&&!(this.getBottomDistance(a)<=0);)a=a.previousElementSibling;return a},_getFirstVisibleRenderer:function(){for(var a=this._getFirstRenderer();a&&!(this.getTopDistance(a)>=0);)a=a.nextElementSibling;return a},_scrollHandler:function(){this.isTopScroll()?(!this._atExtremity&&this._previousPageLoader&&this._previousPageLoader._load(),this._atExtremity=!0):this.isBottomScroll()?(!this._atExtremity&&this._nextPageLoader&&this._nextPageLoader._load(),this._atExtremity=!0):this._atExtremity=!1},_createNextPageLoader:function(){this._nextPageLoader=new k({item:{loadMessage:c.substitute(this.loadNextMessage,this),loadingMessage:this.loadingMessage},beforeLoading:function(){var a=this.hideOnPageLoad&&!this.autoPaging;this._setBusy(!0,a)}.bind(this),afterLoading:function(){this._setBusy(!1)}.bind(this),performLoading:function(){return this._loadNextPage()}.bind(this),_list:this}),this._nextPageLoader.deliver(),this._nextPageLoader.placeAt(this)},_createPreviousPageLoader:function(){this._previousPageLoader=new k({item:{loadMessage:c.substitute(this.loadPreviousMessage,this),loadingMessage:this.loadingMessage},beforeLoading:function(){var a=this.hideOnPageLoad&&!this.autoPaging;this._setBusy(!0,a)}.bind(this),afterLoading:function(){this._setBusy(!1)}.bind(this),performLoading:function(){return this._loadPreviousPage()}.bind(this),_list:this}),this._previousPageLoader.deliver(),this._previousPageLoader.placeAt(this,"first")},itemRemoved:a.superCall(function(a){return function(b){this.pageLength>0?(this._firstLoaded<=b&&b<=this._lastLoaded&&(this._updateIdPages(!1,b),a.call(this,b-this._firstLoaded)),b0?this._firstLoadedthis._lastLoaded&&(this._nextPageLoader||this._createNextPageLoader()):a.apply(this,arguments)}}),_empty:a.superCall(function(a){return function(){a.call(this,arguments),this.pageLength>0&&(this._nextPageLoader=null,this._previousPageLoader=null,this._rangeSpec=null,this._untrack(),this._firstLoaded=this._lastLoaded=-1)}}),_getNextRenderer:a.superCall(function(a){return function(){var b=a.apply(this,arguments);return(this._nextPageLoader&&b===this._nextPageLoader||this._previousPageLoader&&b===this._previousPageLoader)&&(b=null),b}}),_spaceKeydownHandler:a.superCall(function(a){return function(b){this._nextPageLoader&&this._nextPageLoader.contains(b.target)?(b.preventDefault(),this._nextPageLoader._load()):this._previousPageLoader&&this._previousPageLoader.contains(b.target)?(b.preventDefault(),this._previousPageLoader._load()):a.apply(this,arguments)}}),handleSelection:a.superCall(function(a){return function(b){var c=this.getEnclosingRenderer(b.target);c!==this._nextPageLoader&&c!==this._previousPageLoader&&a.apply(this,arguments)}})})}),define("dojo/string",["./_base/kernel","./_base/lang"],function(a,b){var c=/[&<>'"\/]/g,d={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"},e={};return b.setObject("dojo.string",e),e.escape=function(a){return a?a.replace(c,function(a){return d[a]}):""},e.rep=function(a,b){if(0>=b||!a)return"";for(var c=[];1&b&&c.push(a),b>>=1;)a+=a;return c.join("")},e.pad=function(a,b,c,d){c||(c="0");var f=String(a),g=e.rep(c,Math.ceil((b-f.length)/c.length));return d?f+g:g+f},e.substitute=function(c,d,e,f){return f=f||a.global,e=e?b.hitch(f,e):function(a){return a},c.replace(/\$\{([^\s\:\}]+)(?:\:([^\s\:\}]+))?\}/g,function(a,c,g){var h=b.getObject(c,!1,d);return g&&(h=b.getObject(g,!1,f).call(f,h,c)),e(h,c).toString()})},e.trim=String.prototype.trim?b.trim:function(a){a=a.replace(/^\s+/,"");for(var b=a.length-1;b>=0;b--)if(/\S/.test(a.charAt(b))){a=a.substring(0,b+1);break}return a},e}),define("dojo/_base/kernel",["../has","./config","require","module"],function(a,b,c,d){var e,f,g,h=function(){return this}(),i={},j={},k={config:b,global:h,dijit:i,dojox:j},l={dojo:["dojo",k],dijit:["dijit",i],dojox:["dojox",j]},m=c.map&&c.map[d.id.match(/[^\/]+/)[0]];for(f in m)l[f]?l[f][0]=m[f]:l[f]=[m[f],{}];for(f in l)g=l[f],g[1]._scopeName=g[0],b.noGlobals||(h[g[0]]=g[1]);k.scopeMap=l,k.baseUrl=k.config.baseUrl=c.baseUrl,k.isAsync=!a("dojo-loader")||c.async,k.locale=b.locale;var n="$Rev: f4fef70 $".match(/[0-9a-f]{7,}/);if(k.version={major:1,minor:10,patch:4,flag:"",revision:n?n[0]:0/0,toString:function(){var a=k.version;return a.major+"."+a.minor+"."+a.patch+a.flag+" ("+a.revision+")"}},a.add("extend-dojo",1),Function("d","d.eval = function(){return d.global.eval ? d.global.eval(arguments[0]) : eval(arguments[0]);}")(k),k.exit=a("host-rhino")?function(a){quit(a)}:function(){},a.add("dojo-guarantee-console",1),a("dojo-guarantee-console")){"undefined"!=typeof console||(console={});var o,p=["assert","count","debug","dir","dirxml","error","group","groupEnd","info","profile","profileEnd","time","timeEnd","trace","warn","log"];for(e=0;o=p[e++];)console[o]||!function(){var a=o+"";console[a]="log"in console?function(){var b=Array.prototype.slice.call(arguments);b.unshift(a+":"),console.log(b.join(" "))}:function(){},console[a]._fake=!0}()}if(a.add("dojo-debug-messages",!!b.isDebug),k.deprecated=k.experimental=function(){},a("dojo-debug-messages")&&(k.deprecated=function(a,b,c){var d="DEPRECATED: "+a;b&&(d+=" "+b),c&&(d+=" -- will be removed in version: "+c),console.warn(d)},k.experimental=function(a,b){var c="EXPERIMENTAL: "+a+" -- APIs subject to change without notice.";b&&(c+=" "+b),console.warn(c)}),a.add("dojo-modulePaths",1),a("dojo-modulePaths")&&b.modulePaths){k.deprecated("dojo.modulePaths","use paths configuration");var q={};for(f in b.modulePaths)q[f.replace(/\./g,"/")]=b.modulePaths[f];c({paths:q})}return a.add("dojo-moduleUrl",1),a("dojo-moduleUrl")&&(k.moduleUrl=function(a,b){k.deprecated("dojo.moduleUrl()","use require.toUrl","2.0");var d=null;return a&&(d=c.toUrl(a.replace(/\./g,"/")+(b?"/"+b:"")+"/*.*").replace(/\/\*\.\*/,"")+(b?"":"/")),d}),k._hasResource={},k}),define("dojo/_base/config",["../has","require"],function(a,b){var c={};if(a("dojo-config-api")){var d,e=b.rawConfig;for(d in e)c[d]=e[d]}else{var f=function(b,c,e){for(d in b)"has"!=d&&a.add(c+d,b[d],0,e)},g=function(){return this}();c=a("dojo-loader")?b.rawConfig:g.dojoConfig||g.djConfig||{},f(c,"config",1),f(c.has,"",1)}if(!c.locale&&"undefined"!=typeof navigator){var h=navigator.language||navigator.userLanguage;h&&(c.locale=h.toLowerCase())}return c}),define("dojo/has",["require","module"],function(a,b){var c=a.has||function(){};if(!c("dojo-has-api")){var d="undefined"!=typeof window&&"undefined"!=typeof location&&"undefined"!=typeof document&&window.location==location&&window.document==document,e=function(){return this}(),f=d&&document,g=f&&f.createElement("DiV"),h=b.config&&b.config()||{};c=function(a){return"function"==typeof h[a]?h[a]=h[a](e,f,g):h[a]},c.cache=h,c.add=function(a,b,d,e){return("undefined"==typeof h[a]||e)&&(h[a]=b),d&&c(a)},c.add("host-browser",d),c.add("host-node","object"==typeof process&&process.versions&&process.versions.node&&process.versions.v8),c.add("host-rhino","function"==typeof load&&("function"==typeof Packages||"object"==typeof Packages)),c.add("dom",d),c.add("dojo-dom-ready-api",1),c.add("dojo-sniff",1)}if(c("host-browser")){c.add("dom-addeventlistener",!!document.addEventListener),c.add("touch","ontouchstart"in document||"onpointerdown"in document&&navigator.maxTouchPoints>0||window.navigator.msMaxTouchPoints),c.add("touch-events","ontouchstart"in document),c.add("pointer-events","onpointerdown"in document),c.add("MSPointer","msMaxTouchPoints"in navigator),c.add("device-width",screen.availWidth||innerWidth);var i=document.createElement("form");c.add("dom-attributes-explicit",0==i.attributes.length),c.add("dom-attributes-specified-flag",i.attributes.length>0&&i.attributes.length<40)}return c.clearElement=function(a){return a.innerHTML="",a},c.normalize=function(a,b){var d=a.match(/[\?:]|[^:\?]*/g),e=0,f=function(a){var b=d[e++];return":"==b?0:"?"==d[e++]?!a&&c(b)?f():(f(!0),f(a)):b||0};return a=f(),a&&b(a)},c.load=function(a,b,c){a?b([a],c):c()},c}),define("deliteful/list/List/nls/Pageable",{root:{"default-load-message":"Click to load ${pageLength} more items"}}),define("deliteful/list/List",["dcl/dcl","delite/register","requirejs-dplugins/jquery!attributes/classes","delite/keys","delite/CustomElement","delite/Selection","delite/KeyNav","delite/StoreMap","delite/Scrollable","./ItemRenderer","./CategoryRenderer","./_LoadingPanel","delite/theme!./List/themes/{{theme}}/List.css","requirejs-dplugins/has!dojo-bidi?delite/theme!./List/themes/{{theme}}/List_rtl.css"],function(a,b,c,d,e,f,g,h,i,j,k,l){var m=a([f,g,h,i],{itemRenderer:j,categoryRenderer:k,labelAttr:"label",iconclassAttr:"iconclass",righttextAttr:"righttext",righticonclassAttr:"righticonclass",categoryAttr:"",categoryFunc:null,baseClass:"d-list",multiCharSearchDuration:0,setAttribute:a.superCall(function(a){return function(b,c){a.apply(this,arguments),"role"===b&&this._applyRole(c)}}),_setScrollDirectionAttr:function(a){if("vertical"!==a&&"none"!==a)throw new TypeError("'"+a+"' not supported for scrollDirection, keeping the previous value of '"+this.scrollDirection+"'");this._set("scrollDirection",a)},_setSelectionModeAttr:a.superCall(function(a){return function(b){if("listbox"===this.getAttribute("role")&&"none"===b)throw new TypeError("selectionMode 'none' is invalid for an aria listbox, keeping the previous value of '"+this.selectionMode+"'");a.apply(this,arguments)}}),selectionMode:"none",loadingMessage:"",_cssClasses:{item:"d-list-item",category:"d-list-category",cell:"d-list-cell",selected:"d-selected",selectable:"d-selectable",multiselectable:"d-multiselectable"},render:function(){var a=this.getAttribute("role");a?this._applyRole(a):this.setAttribute("role","grid"),this.setAttribute("aria-readonly","true")},postRender:function(){this.notifyCurrentValue("selectionMode")},attachedCallback:a.superCall(function(a){return function(){this._setBusy(!0,!0),this.on("query-error",function(){this._setBusy(!1,!0)}.bind(this)),a.call(this)}}),refreshRendering:function(a){if("selectionMode"in a)if(c(this).removeClass(this._cssClasses.selectable),c(this).removeClass(this._cssClasses.multiselectable),this.removeAttribute("aria-multiselectable"),"none"===this.selectionMode)for(var b=0;b=0?this.getItemRenderers().item(a):null},getItemRendererIndex:function(a){var b=-1;if(a.item)for(var c=this.getIdentity(a.item),d=this.getItemRenderers(),e=0;e=f;f++)e=a[f],!this._isCategorized()||d&&e.category===d.category||h.appendChild(this._createCategoryRenderer(e)),h.appendChild(this._createItemRenderer(e)),d=e;return h},_addItemRenderer:function(a,b){var c=this._getInsertSpec(a,b);if(c.nodeRef){if(this.insertBefore(a,c.nodeRef),c.addCategoryAfter){var d=this._createCategoryRenderer(c.nodeRef.item);this.insertBefore(d,c.nodeRef),d.attachedCallback()}}else this.appendChild(a);c.addCategoryBefore&&(d=this._createCategoryRenderer(a.item),this.insertBefore(d,a),d.attachedCallback()),a.attachedCallback()},_getInsertSpec:function(a,b){var c={nodeRef:b>=0?this.getItemRendererByIndex(b):null,addCategoryBefore:!1,addCategoryAfter:!1};if(this._isCategorized()){var d=c.nodeRef?this._getNextRenderer(c.nodeRef,-1):this._getLastRenderer();d?this._sameCategory(a,d)||(this.isCategoryRenderer(d)?(c.nodeRef=d,d=this._getNextRenderer(d,-1),(!d||d&&!this._sameCategory(a,d))&&(c.addCategoryBefore=!0)):c.addCategoryBefore=!0):c.addCategoryBefore=!0,!c.nodeRef||this.isCategoryRenderer(c.nodeRef)||this._sameCategory(c.nodeRef,a)||(c.addCategoryAfter=!0)}return c},_removeRenderer:function(a,b){if(this._isCategorized()&&!this.isCategoryRenderer(a)){var c=this._getNextRenderer(a,-1);if(c&&this.isCategoryRenderer(c)){var d=this._getNextRenderer(a,1);d&&this._sameCategory(a,d)||this._removeRenderer(c)}}if(this._getFocusedRenderer()===a){var e=this._getNextRenderer(a,1)||this._getNextRenderer(a,-1);e&&this.navigateTo(e.renderNode)}b||this.isCategoryRenderer(a)||!this.isSelected(a.item)||this.selectFromEvent(null,a.item,a,!0),this._previousFocusedChild&&this.getEnclosingRenderer(this._previousFocusedChild)===a&&(this._previousFocusedChild=null),this.removeChild(a),a.destroy()},_createItemRenderer:function(a){var b=new this.itemRenderer({item:a,tabindex:"-1"});if("none"!==this.selectionMode){var d=!!this.isSelected(a);b.renderNode.setAttribute("aria-selected",d?"true":"false"),c(b).toggleClass(this._cssClasses.selected,d)}return b.deliver(),b},_createCategoryRenderer:function(a){var b=new this.categoryRenderer({item:a,tabindex:"-1"});return b.deliver(),b},isCategoryRenderer:function(a){return c(a).hasClass(this._cssClasses.category)},_sameCategory:function(a,b){return a.item.category===b.item.category},_getNextRenderer:function(a,b){return b>=0?a.nextElementSibling:a.previousElementSibling},_getFirstRenderer:function(){return this.querySelector("."+this._cssClasses.item+", ."+this._cssClasses.category)},_getLastRenderer:function(){var a=this.querySelectorAll("."+this._cssClasses.item+", ."+this._cssClasses.category);return a.length?a.item(a.length-1):null},initItems:function(a){this._empty(),this._renderNewItems(a,!1),this._setBusy(!1,!0),this._dataLoaded=!0,this.emit("query-success",{renderItems:a,cancelable:!1,bubbles:!0})},itemRemoved:function(a,b,c){var d=this.getItemRendererByIndex(a);d&&this._removeRenderer(d,c)},itemAdded:function(a,b){var c=this._createItemRenderer(b);this._addItemRenderer(c,a)},itemUpdated:function(a,b){var c=this.getItemRendererByIndex(a);c&&(c.item=b)},itemMoved:function(a,b,c,d){this.itemRemoved(a,d,!0),this.itemAdded(b,c,d)},getTopDistance:function(a){return Math.round(a.offsetTop-this.getCurrentScroll().y)},getBottomDistance:function(a){var b=this.getBoundingClientRect();return Math.round(a.offsetTop+a.offsetHeight-this.getCurrentScroll().y-(b.bottom-b.top))},descendantSelector:function(a){var b=this.getEnclosingRenderer(a);return!b||"listbox"===this.getAttribute("role")&&this.isCategoryRenderer(b)?!1:c(a).hasClass(this._cssClasses.cell)||a.hasAttribute("navindex")},_keynavKeyDownHandler:a.before(function(a){a.defaultPrevented||(a.keyCode!==d.SPACE||this._searchTimer?"listbox"!==this.getAttribute("role")&&this._gridKeydownHandler(a):this._spaceKeydownHandler(a))}),focus:function(){if(this._previousFocusedChild)this.navigateTo(this._previousFocusedChild);else{var a=this._getFirst();if(a){for(;a&&!(this.getTopDistance(a)>=0);){var b=a.parentNode.nextElementSibling;a=b?b.renderNode:null}this.navigateTo(a)}}},_keynavDeactivatedHandler:a.superCall(function(a){return function(){this._previousFocusedChild=this.navigatedDescendant,a.call(this)}}),_getFirst:function(){var a=this.querySelector("."+this._cssClasses.cell);return a&&"listbox"===this.getAttribute("role")&&this.isCategoryRenderer(this.getEnclosingRenderer(a))&&(a=this.getNext(a,1)),a},_getLast:function(){var a=this.querySelectorAll("."+this._cssClasses.cell),b=a.length?a.item(a.length-1):null;return b&&"listbox"===this.getAttribute("role")&&this.isCategoryRenderer(this.getEnclosingRenderer(b))&&(b=this.getNext(b,-1)),b},downArrowKeyHandler:function(a){if(!this.navigatedDescendant||!this.navigatedDescendant.hasAttribute("navindex")){var b=this._getFocusedRenderer(),c=null;b&&(c=b.nextElementSibling,c&&"listbox"===this.getAttribute("role")&&this.isCategoryRenderer(c)&&(c=c.nextElementSibling)),this.navigateTo(c?c.renderNode:this._getFirst(),!1,a)}},upArrowKeyHandler:function(a){if(!this.navigatedDescendant||!this.navigatedDescendant.hasAttribute("navindex")){var b=this._getFocusedRenderer(),c=null;b&&(c=b.previousElementSibling,c&&"listbox"===this.getAttribute("role")&&this.isCategoryRenderer(c)&&(c=c.previousElementSibling)),this.navigateTo(c?c.renderNode:this._getLast(),!1,a)}},pageUpKeyHandler:function(a){this.navigateToFirst(a)},pageDownKeyHandler:function(a){this.navigateToLast(a)},getNext:function(a,b){if(a===this)return b>0?this._getFirst():this._getLast();var c=this.getEnclosingRenderer(a);return b>0?c.nextElementSibling?c.nextElementSibling.renderNode:this._getFirst():c.previousElementSibling?c.previousElementSibling.renderNode:this._getLast()},_spaceKeydownHandler:function(a){"none"!==this.selectionMode&&this.handleSelection(a)&&a.preventDefault()},_gridKeydownHandler:function(a){if(a.keyCode===d.ENTER||a.keyCode===d.F2)this.navigatedDescendant&&!this.navigatedDescendant.hasAttribute("navindex")&&(a.preventDefault(),this._enterActionableMode());else if(a.keyCode===d.TAB){if(this.navigatedDescendant&&this.navigatedDescendant.hasAttribute("navindex")){a.preventDefault();for(var b=this._getFocusedRenderer(),c=b[a.shiftKey?"getPrev":"getNext"](this.navigatedDescendant);!c;)b=b[a.shiftKey?"previousElementSibling":"nextElementSibling"]||this[a.shiftKey?"_getLast":"_getFirst"]().parentNode,c=b[a.shiftKey?"getLast":"getFirst"]();this.navigateTo(c)}}else a.keyCode===d.ESCAPE&&this._leaveActionableMode()},_enterActionableMode:function(){var a=this._getFocusedRenderer();if(a){var b=a.getFirst();b&&this.navigateTo(b)}},_leaveActionableMode:function(){this.navigateTo(this._getFocusedRenderer().renderNode)},_getFocusedRenderer:function(){return this.navigatedDescendant?this.getEnclosingRenderer(this.navigatedDescendant):null}});return b("d-list",[HTMLElement,m])}),define("requirejs-text/text!deliteful/list/List/ItemRenderer.html",[],function(){return'\n\n'}),define("deliteful/list/ItemRenderer",["dcl/dcl","requirejs-dplugins/jquery!attributes/classes","delite/register","delite/handlebars!./List/ItemRenderer.html","./Renderer"],function(a,b,c,d,e){var f=a(e,{baseClass:"d-list-item",template:d,attachedCallback:function(){"grid"===this.getParent().getAttribute("role")?(this.setAttribute("role","row"),this.renderNode.setAttribute("role","gridcell")):this.renderNode.setAttribute("role","option") -}});return c("d-list-item-renderer",[HTMLElement,f])}),define("requirejs-text/text!deliteful/list/List/CategoryRenderer.html",[],function(){return'\n'}),define("deliteful/list/CategoryRenderer",["dcl/dcl","delite/register","delite/handlebars!./List/CategoryRenderer.html","./Renderer"],function(a,b,c,d){var e=a(d,{baseClass:"d-list-category",template:c,attachedCallback:function(){"grid"===this.getParent().getAttribute("role")?(this.setAttribute("role","row"),this.renderNode.setAttribute("role","columnheader")):(this.renderNode.removeAttribute("tabindex"),this.renderNode.setAttribute("role","heading"))}});return b("d-list-category-renderer",[HTMLElement,e])}),define("deliteful/features",["requirejs-dplugins/has","deliteful/channelBreakpoints"],function(a,b){var c=window.matchMedia("(min-device-width: "+b.smallScreen+")"),d=window.matchMedia("(min-device-width: "+b.mediumScreen+")");return a.add("phone-like-channel",function(){return!c.matches&&!d.matches}),a.add("tablet-like-channel",function(){return c.matches&&!d.matches}),a.add("desktop-like-channel",function(){return c.matches&&d.matches}),a}),define("deliteful/channelBreakpoints",["module"],function(a){var b=a.config();return{smallScreen:b.smallScreen||"480px",mediumScreen:b.mediumScreen||"1024px"}}),define("deliteful/ViewStack",["dcl/dcl","decor/sniff","requirejs-dplugins/Promise!","requirejs-dplugins/jquery!attributes/classes","delite/register","delite/DisplayContainer","delite/theme!./ViewStack/themes/{{theme}}/ViewStack.css","requirejs-dplugins/css!./ViewStack/transitions/slide.css","requirejs-dplugins/css!./ViewStack/transitions/reveal.css"],function(a,b,c,d,e,f){function g(a,b){a&&(b?(a.style.visibility="visible",a.style.display=""):(a.style.visibility="hidden",a.style.display="none"))}function h(a){a&&d(a).addClass("-d-view-stack-reverse")}function i(a){a&&(a.className=a.className.split(/ +/).filter(function(a){return!/^-d-view-stack/.test(a)}).join(" "))}function j(a){return"-d-view-stack-"+a}return e("d-view-stack",[HTMLElement,f],{baseClass:"d-view-stack",transition:"slide",reverse:!1,selectedChildId:"",_pendingChild:null,_setSelectedChildIdAttr:function(a){this.ownerDocument.getElementById(a)&&(this.attached?this.show(a):this._pendingChild=a)},_getSelectedChildIdAttr:function(){return this._visibleChild?this._visibleChild.id:""},attachedCallback:function(){var a={transition:"none"};this._pendingChild?(this.show(this._pendingChild,a),this._pendingChild=null):this.children.length>0&&this.show(this.children[0],a)},_timing:0,_setChildrenVisibility:function(){var a=this.children;!this._visibleChild&&a.length>0&&(this._visibleChild=a[0]);for(var b=0;b0&&(this._visibleChild=this.children[0]),this._visibleChild){var d=this._visibleChild[a];d&&(c=this.show(d,b))}return c},_doTransition:function(a,b,e,f,i){var k;return"none"!==f?(a&&(k=this._setAfterTransitionHandlers(a),d(a).addClass(j(f))),b&&(k=this._setAfterTransitionHandlers(b),d(b).addClass(j(f)+" -d-view-stack-in")),i&&(h(a),h(b)),this.defer(function(){b&&d(b).addClass("-d-view-stack-transition"),a&&d(a).addClass("-d-view-stack-transition -d-view-stack-out"),i&&(h(a),h(b)),b&&d(b).addClass("-d-view-stack-in")},this._timing)):a!==b&&g(a,!1),c.resolve(k)},changeDisplay:function(a,b){if(!a||a.parentNode!==this)return c.resolve();var d=this._visibleChild;i(d),i(a),g(a,!0),this._visibleChild=a;var e=d===a?"none":b.transition||"slide",f=this.isLeftToRight()?b.reverse:!b.reverse;return this._doTransition(d,a,b,e,f)},show:a.superCall(function(a){return function(c,d){for(var e=this;e&&"none"!==e.style.display&&e!==this.ownerDocument.body;)e=e.parentNode;return(9===b("ie")||e!==this.ownerDocument.body)&&(d||(d={}),d.transition="none"),this._visibleChild&&this._visibleChild.parentNode!==this&&(this._visibleChild=null),!this._visibleChild&&this.children.length>0&&(this._visibleChild=this.children[0]),a.apply(this,[c,d])}}),_setAfterTransitionHandlers:function(a){var b=this,e={node:a};return e.promise=new c(function(a){e.handle=function(){b._afterTransitionHandle(e,a)}}),d(this).addClass("-d-view-stack-transition"),a.addEventListener("webkitTransitionEnd",e.handle),a.addEventListener("transitionend",e.handle),e.promise},_afterTransitionHandle:function(a,b){if(a.promise.resolved)i(a.node),a.node!==this._visibleChild&&i(this._visibleChild),d(this).removeClass("-d-view-stack-transition");else{a.promise.resolved=!0;for(var c,e=0;ethis.offsetWidth/2;this.isLeftToRight()||(b=!b),b?this.viewStack.showNext():this.viewStack.showPrevious({reverse:!0})}}.bind(this))},refreshRendering:function(a){"viewStack"in a&&(this._attachViewStack(),this._refreshDots())},_attachViewStack:function(){this._afterShowHandle&&(this._afterShowHandle.remove(),this._afterShowHandle=null),this.viewStack&&(this._afterShowHandle=this.on("delite-after-show",this._refreshDots.bind(this),this.viewStack))},_refreshDots:function(){this.innerHTML="";for(var a=0;a\n {{this.checked && this.checkedLabel ? this.checkedLabel : this.label}}\n\n'}),define("deliteful/ToggleButton",["dcl/dcl","delite/register","requirejs-dplugins/has","./Button","./Toggle","requirejs-dplugins/has!bidi?./ToggleButton/bidi/ToggleButton","delite/handlebars!./ToggleButton/ToggleButton.html","delite/theme!./ToggleButton/themes/{{theme}}/ToggleButton.css"],function(a,b,c,d,e,f,g){var h=a([d.Impl,e],{baseClass:"d-toggle-button",checkedLabel:"",checkedIconClass:"",template:g});return b("d-toggle-button",c("bidi")?[HTMLButtonElement,h,f]:[HTMLButtonElement,h])}),define("deliteful/Toggle",["dcl/dcl","requirejs-dplugins/jquery!attributes/classes","delite/CssState"],function(a,b,c){return a([c],{checked:!1,value:"on",attachedCallback:function(){var a=this.checked;this.valueNode&&this.valueNode.form&&this.on("reset",function(){this.defer(function(){this.checked=a})}.bind(this),this.valueNode.form)},postRender:function(){this.on("focus",function(){b(this).addClass("d-focused")}.bind(this),this.focusNode),this.on("blur",function(){b(this).removeClass("d-focused")}.bind(this),this.focusNode)},toggle:function(){this.disabled||(this.checked=!this.checked)}})}),define("requirejs-text/text!deliteful/Toaster/ToasterMessage.html",[],function(){return'\n'}),define("deliteful/ToasterMessage",["dcl/dcl","delite/Widget","delite/register","requirejs-dplugins/Promise!","requirejs-dplugins/jquery!attributes/classes","dpointer/events","delite/handlebars!./Toaster/ToasterMessage.html"],function(a,b,c,d,e,f,g){function h(a){return r[a]||s}function i(a){return"d-toaster-type-"+a}function j(a){return"number"!=typeof a||isNaN(a)?t:a}function k(a){var b=document.createElement("fakeelement");for(var c in a)if(void 0!==b.style[c])return a[c];return null}function l(a,b){var c=[w,x];c.forEach(function(c){if(c){var d={},e=function(a,c,d){return function(){b(a,c),d.handler.remove()}}(a,c,d);d.handler=a.on(c,e)}else b(a,c)})}var m=function(a,b){function c(b){h.startCapture(b),f.setPointerCapture(a,b.pointerId)}function d(a){h.hasStarted&&!h.hasEnded&&h.keepCapturing(a)}function e(a){h.hasStarted&&h.endCapture(a)}var g=function(a){function c(a){return{x:a.clientX,y:a.clientY}}function d(a,b){return b>a?1-1*a/b:0}function e(a,b){var c=b.distance();c>=0&&(a.style.left=c+"px",a.style.opacity=d(c,a.clientWidth))}function f(a){a.style.left="",a.style.opacity=""}function g(a){a.isExpirable()&&a._timer.pause()}function h(a){a.isExpirable()&&a._timer.resume()}var i=100,j=.85;this.gesture={trajectory:null,startTime:null,endTime:null,first:function(){return this.trajectory[0]},last:function(){var a=this.trajectory.length-1;return this.trajectory[a]},secondLast:function(){var a=this.trajectory.length-2;return this.trajectory[a]},distance:function(){return this.last().x-this.first().x},direction:function(){return this.last().x-this.secondLast().x>0?"right":"left"},duration:function(){return this.startTime&&this.endTime?this.endTime-this.startTime:void 0},speed:function(){return this.distance()/this.duration()},isLongEnough:function(){return this.distance()>i},isFastEnough:function(){return this.speed()>j},isDirectedToRight:function(){return"right"===this.direction()}},this.hasStarted=!1,this.hasEnded=!1,this.startCapture=function(b){this.hasStarted=!0,this.hasEnded=!1;var d=c(b);this.gesture.trajectory=[d],this.gesture.startTime=(new Date).getTime(),this.gesture.endTime=null,g(a)},this.keepCapturing=function(b){var d=c(b);this.gesture.trajectory.push(d),e(a,this.gesture)},this.endCapture=function(){this.hasStarted=!1,this.hasEnded=!0,this.gesture.endTime=(new Date).getTime(),this.gesture.isFastEnough()||this.gesture.isLongEnough()&&this.gesture.isDirectedToRight()?b():(f(a),h(a))}},h=new g(a);this.isEnabled=!1;var i,j,k;this.enable=function(){this.isEnabled=!0,i=a.on("pointerdown",c),j=a.on("pointermove",d),k=a.on("pointerup",e)},this.disable=function(){this.isEnabled&&(this.isEnabled=!1,i.remove(),j.remove(),k.remove())}},n=function(a){var b=new d(function(c,d){function e(a){h=Date.now(),g=setTimeout(function(){j=!0,c()},a)}function f(){var b=a-Date.now()+h;return b>=0?b:0}var g=null,h=null,i=null,j=!1;this.start=function(){return e(a),b},this.pause=function(){null!==g?(clearTimeout(g),g=null,i=f()):i=0},this.resume=function(){return e(i),b},this.destroy=function(){j||d()}}.bind(this))},o="d-invisible",p="d-hidden",q="d-toaster-swipeout",r={info:"info",success:"success",warning:"warning",error:"error"},s=r.info,t=2e3,u={animation:"animationend","-webkit-animation":"webkitAnimationEnd","-ms-animation":"MSAnimationEnd"},v={transition:"transitionend","-webkit-transition":"webkitTransitionEnd"},w=k(u),x=k(v),y=a(b,{baseClass:"d-toaster-message",message:null,type:s,_setTypeAttr:function(a){var b=h(a);this.messageTypeClass=i(b),this._set("type",b)},duration:t,_setDurationAttr:function(a){var b=j(a);this._set("duration",b)},_dismissButton:null,dismissible:"auto",messageTypeClass:i(s),dismiss:function(a){var b=this.getParent();this._hideInDom(b,!!a,a)},_isInserted:!1,_hasExpired:!1,_toBeRemoved:!1,_isRemoved:!1,isExpirable:function(){return this.duration>=0},isDismissible:function(){return"auto"===this.dismissible?!this.isExpirable():"on"===this.dismissible},_timer:null,_insertInDom:function(a,b){var c=a._wrapper;if(this._isInserted=!0,b&&e(this).addClass(a.animationInitialClass),a.invertOrder&&c.hasChildNodes()){var d=c.childNodes[0];c.insertBefore(this,d)}else c.appendChild(this);this.attachedCallback(),this.isExpirable()&&(this._timer=new n(this.duration),this.own(this._timer),this._timer.start().then(function(){this._hasExpired=!0,a.notifyCurrentValue("messages")}.bind(this))),e(this._dismissButton).toggleClass(p,!this.isDismissible())},_showInDom:function(a,b){b?this.defer(function(){e(this).removeClass(a.animationInitialClass),e(this).addClass(a.animationEnterClass),l(this,function(b){e(b).removeClass(a.animationEnterClass),b.isDismissible()&&b.swipeToDismiss.enable()})},1):this.isDismissible()&&this.swipeToDismiss.enable()},_hideInDom:function(a,b,c){var d=c||a.animationQuitClass;null!==a&&(this.swipeToDismiss.disable(),b?(e(this).addClass(d),l(this,function(b){b._toBeRemoved=!0,a.notifyCurrentValue("messages")})):(e(this).addClass(o),this._toBeRemoved=!0,a.notifyCurrentValue("messages")))},_removeFromDom:function(a,b){e(this).removeClass(a.animationQuitClass),e(this).addClass(b?a.animationEndClass:p),a._wrapper.removeChild(this),this._isRemoved=!0},template:g,postRender:function(){this.swipeToDismiss=new m(this,function(){this.dismiss(q)}.bind(this)),null!==this._dismissButton&&this.on("pointerdown",function(){this.dismiss()}.bind(this),this._dismissButton)}});return c("d-toaster-message",[HTMLElement,y])}),define("requirejs-text/text!deliteful/Toaster/Toaster.html",[],function(){return'\n'}),define("deliteful/Toaster",["dcl/dcl","delite/Widget","delite/register","decor/sniff","delite/handlebars!./Toaster/Toaster.html","./ToasterMessage","delite/theme!./Toaster/themes/{{theme}}/Toaster.css"],function(a,b,c,d,e,f){function g(a){return a._toBeRemoved&&!a._isRemoved}var h=a(b,{_wrapper:null,baseClass:"d-toaster",placementClass:"d-toaster-placement-default",messages:null,invertOrder:!1,animationInitialClass:"d-toaster-initial",animationEnterClass:"d-toaster-fadein",animationQuitClass:"d-toaster-fadeout",animationEndClass:"d-toaster-fadefinish",_emitExpiration:function(a){this.emit("messageExpired",{message:a})},_emitInsertion:function(a){this.emit("messageInserted",{message:a})},_emitRemoval:function(a){this.emit("messageRemoved",{message:a})},_getRemovableMsg:function(){return this.messages.filter(g)},_allExpAreRemovable:function(){for(var a=0,b=this.messages.length;b>a;a++){var c=this.messages[a];if(c.isExpirable()&&!g(c))return!1}return!0},template:e,refreshRendering:function(a){"messages"in a&&(this.messages.forEach(function(a){a._isInserted?a.isExpirable()&&a._hasExpired&&!a._toBeRemoved&&(a._hideInDom(this,!0),this._emitExpiration(a)):(a._insertInDom(this,!0),a._showInDom(this,!0),this._emitInsertion(a))},this),this._allExpAreRemovable()&&this._getRemovableMsg().forEach(function(a){a._removeFromDom(this,!0),a.destroy(),this.messages.splice(this.messages.indexOf(a),1),this._emitRemoval(a)},this))},preRender:function(){this.messages=[]},postRender:function(){d("ios")||(this.setAttribute("aria-atomic","true"),this.setAttribute("role","alert"))},postMessage:function(b,c){var d;if("string"==typeof b){var e={message:b};a.mix(e,c),d=new f(e)}else d=b;return this._addMessage(d)},_addMessage:function(a){return this.messages.push(a),this.notifyCurrentValue("messages"),a}});return c("d-toaster",[HTMLElement,h])}),define("deliteful/Switch/bidi/Switch",["dcl/dcl"],function(a){return a(null,{_setCheckedLabelAttr:function(a){a=this.wrapWithUcc(a),this._set("checkedLabel",a)},_setUncheckedLabelAttr:function(a){a=this.wrapWithUcc(a),this._set("uncheckedLabel",a)}})}),define("requirejs-text/text!deliteful/Switch/Switch.html",[],function(){return'\n'}),define("deliteful/Switch",["requirejs-dplugins/has","requirejs-dplugins/jquery!attributes/classes","dpointer/events","delite/register","deliteful/Checkbox","delite/handlebars!./Switch/Switch.html","requirejs-dplugins/has!bidi?./Switch/bidi/Switch","delite/theme!./Switch/themes/{{theme}}/Switch.css"],function(a,b,c,d,e,f,g){return d("d-switch",a("bidi")?[HTMLElement,e,g]:[HTMLElement,e],{checkedLabel:"",uncheckedLabel:"",baseClass:"d-switch",template:f,postRender:function(){this.on("pointerdown",this._pointerDownHandler.bind(this),this._knobGlassNode),this.on("click",this._clickPreventer.bind(this),this._knobGlassNode)},destroy:function(){this._cleanHandlers()},_clickPreventer:function(a){a.preventDefault(),a.stopPropagation()},_pointerDownHandler:function(a){this.disabled||(this._startX=this._curX=a.clientX,c.setPointerCapture(this._knobGlassNode,a.pointerId),this._pHandlers||(this._pHandlers=[{e:"pointermove",l:this._pointerMoveHandler.bind(this)},{e:"pointerup",l:this._pointerUpHandler.bind(this)},{e:"lostpointercapture",l:this._lostPointerCaptureHandler.bind(this)}]),this._pHandlers.forEach(function(a){this._knobGlassNode.addEventListener(a.e,a.l)}.bind(this)),a.preventDefault(),a.stopPropagation())},_pointerMoveHandler:function(a){var c=a.clientX-this._curX,d=window.getComputedStyle(this._pushNode),e=parseInt(d.width,10);if(!this._drag&&Math.abs(a.clientX-this._startX)>4&&(this._drag=!0,b(this._innerNode).removeClass("-d-switch-transition"),b(this._pushNode).removeClass("-d-switch-transition"),b(this._innerWrapperNode).removeClass("-d-switch-transition")),this._curX=a.clientX,this._drag){this._knobWidth=parseInt(window.getComputedStyle(this._knobNode).width,10),this._switchWidth=parseInt(window.getComputedStyle(this).width,10);var f=this.isLeftToRight()?e+c:e-c,g=this.checked?this._switchWidth:this._switchWidth-this._knobWidth,h=this.checked?this._knobWidth:0;f=Math.max(h,Math.min(g,f)),this._pushNode.style.width=f+"px"}a.preventDefault(),a.stopPropagation()},_pointerUpHandler:function(a){var b=this.checked;if(this._drag){this._drag=!1;var c=parseInt(window.getComputedStyle(this._pushNode).width,10),d=parseInt(window.getComputedStyle(this._pushNode).marginLeft,10);this.checked=c+d+this._knobWidth/2>=this._switchWidth/2}else this.checked=!this.checked;this.checked!==b&&this.emit("change"),a.preventDefault(),a.stopPropagation()},_lostPointerCaptureHandler:function(){this._cleanHandlers(),this._drag=!1,this._pushNode.style.width="",this._innerNode.style.transform="none",b(this._innerNode).addClass("-d-switch-transition"),b(this._pushNode).addClass("-d-switch-transition"),b(this._innerWrapperNode).addClass("-d-switch-transition")},_cleanHandlers:function(){this._pHandlers.forEach(function(a){this._knobGlassNode.removeEventListener(a.e,a.l)}.bind(this))}})}),define("deliteful/SwapView",["dcl/dcl","delite/register","delite/keys","requirejs-dplugins/jquery!attributes/classes","dpointer/events","./ViewStack","delite/theme!./SwapView/themes/{{theme}}/SwapView.css"],function(a,b,c,d,e,f){return b("d-swap-view",[HTMLElement,f],{baseClass:"d-swap-view",_dragThreshold:10,swapThreshold:.25,render:function(){e.setTouchAction(this,"pan-y")},attachedCallback:function(){this.hasAttribute("tabindex")||(this.tabIndex="0")},preRender:function(){d(this).addClass("d-view-stack")},postRender:function(){this.on("pointerdown",this._pointerDownHandler.bind(this)),this.on("pointermove",this._pointerMoveHandler.bind(this)),this.on("pointerup",this._pointerUpHandler.bind(this)),this.on("lostpointercapture",this._pointerUpHandler.bind(this)),this.on("pointercancel",this._pointerUpHandler.bind(this)),this.on("keydown",this._keyDownHandler.bind(this))},_pointerDownHandler:function(a){this._drag||(this._drag={start:a.clientX},e.setPointerCapture(a.target,a.pointerId))},_pointerMoveHandler:function(a){if(this._drag){var b=a.clientX-this._drag.start;if(!this._drag.started&&Math.abs(b)>this._dragThreshold){var c=this._visibleChild,e=(this.isLeftToRight()?0>b:b>0)?c.nextElementSibling:c.previousElementSibling;e&&(this._drag.childOut=c,this._drag.childIn=e,this._drag.started=!0,this._drag.ended=!1,this._drag.reverse=b>0,d(this).addClass("-d-swap-view-drag"),e.style.visibility="visible",e.style.display="")}if(this._drag.started&&!this._drag.ended){var f=this._drag.rx=b/this.offsetWidth,g=this._drag.reverse?f:-f,h=Math.floor(100*(this._drag.reverse?1-g:g)),i=Math.floor(100*(this._drag.reverse?g:1-g)),j=this._drag.reverse?this._drag.childIn:this._drag.childOut,k=this._drag.reverse?this._drag.childOut:this._drag.childIn;this._setTranslation(j,-h),this._setTranslation(k,i)}}},_pointerUpHandler:function(){this._drag&&(this._drag.started?this._drag.ended||(this._drag.ended=!0,this._setupTransitionEndHandlers(),this._setTransitionProperties(this._drag.childIn),this._setTransitionProperties(this._drag.childOut),this._drag.reverse&&this._drag.rx>this.swapThreshold||!this._drag.reverse&&this._drag.rx<-this.swapThreshold?(this._setTranslation(this._drag.childIn,0),this._setTranslation(this._drag.childOut,this._drag.reverse?100:-100)):(this._drag.slideBack=!0,this._setTranslation(this._drag.childIn,this._drag.reverse?-100:100),this._setTranslation(this._drag.childOut,0))):this._drag=null)},_keyDownHandler:function(a){switch(a.keyCode){case c.PAGE_UP:this.showNext();break;case c.PAGE_DOWN:this.showPrevious({reverse:!0})}},_setupTransitionEndHandlers:function(){this._endTransitionHandler||(this._endTransitionHandler=function(){this._endTransitionHandler&&(this._addTransitionEndHandlers(this._drag.childIn,!1),this._addTransitionEndHandlers(this._drag.childOut,!1),this._endTransitionHandler=null),this._endTransition()}.bind(this),this._addTransitionEndHandlers(this._drag.childIn,!0),this._addTransitionEndHandlers(this._drag.childOut,!0))},_endTransition:function(){this._drag&&(d(this).removeClass("-d-swap-view-drag"),this._drag.slideBack?(this._drag.childIn.style.visibility="hidden",this._drag.childIn.style.display="none"):(this._drag.childOut.style.visibility="hidden",this._drag.childOut.style.display="none",this.show(this._drag.childIn,{transition:"none"})),this._clearTransitionProperties(this._drag.childIn),this._clearTransitionProperties(this._drag.childOut),this._clearTranslation(this._drag.childIn),this._clearTranslation(this._drag.childOut),this._drag=null)},_addTransitionEndHandlers:function(a,b){var c=(b?"add":"remove")+"EventListener";a[c]("webkitTransitionEnd",this._endTransitionHandler),a[c]("transitionend",this._endTransitionHandler)},_setTransitionProperties:function(a){a.style.webkitTransitionProperty="-webkit-transform",a.style.transitionProperty="transform",a.style.webkitTransitionDuration="0.3s",a.style.mozTransitionDuration="0.3s",a.style.transitionDuration="0.3s"},_clearTransitionProperties:function(a){a.style.webkitTransitionProperty="",a.style.transitionProperty="",a.style.webkitTransitionDuration="",a.style.mozTransitionDuration="",a.style.transitionDuration=""},_setTranslation:function(a,b){var c="translate3d("+b+"%, 0, 0)";a.style.webkitTransform=c,a.style.transform=c},_clearTranslation:function(a){a.style.webkitTransform="",a.style.transform=""}})}),define("deliteful/Store",["dcl/dcl","delite/register","delite/CustomElement","dstore/Memory","dstore/Trackable"],function(a,b,c,d,e){var f=d.createSubclass([e],{}),g=["add","remove","put","delete","refresh","update"];return b("d-store",[HTMLElement,c],{createdCallback:function(){this.style.display="none"},attachedCallback:function(){for(var b=new f,c=JSON.parse("["+this.textContent+"]"),d=0;d(this.allowZero?0:this.editHalfValues?.5:1)&&(this.value=this.value-(this.editHalfValues?.5:1))},_updateStars:function(a,b){var c=this.focusNode.querySelectorAll("div");b&&(this._zeroSettingArea=this.ownerDocument.createElement("div"),this._zeroSettingArea.className=this.baseClass+"-zero",this._zeroSettingArea.value=0,this.focusNode.appendChild(this._zeroSettingArea),this._updateZeroArea());for(var d=0;d<2*this.max;d++){var e=this.baseClass+(d%2?"-end ":"-start ");if(e+=a>=.5*(d+1)?this.baseClass+"-full":this.baseClass+"-empty",b){var f=this.ownerDocument.createElement("div");f.value=this.editHalfValues?(d+1)/2:Math.ceil((d+1)/2),this.focusNode.appendChild(f)}else f=c[d+1];f.className=this.baseClass+"-star-icon "+e}},_updateZeroArea:function(){this.readOnly||!this.allowZero?(d(this._zeroSettingArea).addClass("d-hidden"),delete this.focusNode.value):(d(this._zeroSettingArea).removeClass("d-hidden"),this.focusNode.value=0) -}});return e("d-star-rating",a("bidi")?[HTMLElement,i,g]:[HTMLElement,i])}),define("requirejs-text/text!deliteful/Slider/Slider.html",[],function(){return'\n'}),define("deliteful/Slider",["requirejs-dplugins/jquery!attributes/classes","delite/keys","dpointer/events","delite/register","delite/FormValueWidget","delite/CssState","delite/handlebars!./Slider/Slider.html","delite/theme!./Slider/themes/{{theme}}/Slider.css"],function(a,b,c,d,e,f,g){function h(a){var b=a.getBoundingClientRect();return{x:b.left,y:b.top,w:b.right-b.left,h:b.bottom-b.top}}return d("d-slider",[HTMLElement,e,f],{min:0,max:100,step:1,slideRange:!0,vertical:!1,flip:!1,baseClass:"d-slider",_orientationNames:{"false":{start:"x",size:"w",clientStart:"clientX",progressBarStart:"left",progressBarSize:"width"},"true":{start:"y",size:"h",clientStart:"clientY",progressBarStart:"top",progressBarSize:"height"}},_propNames:null,_reversed:null,template:g,render:d.superCall(function(a){return function(){this.valueNode=this.querySelector("input")||this.ownerDocument.createElement("input"),a.call(this),this.appendChild(this.valueNode),this.handleMin.setAttribute("aria-valuemin",this.min),this.focusNode.setAttribute("aria-valuemax",this.max),this.tabStops="handleMin,focusNode",this.handleMin._isActive=!0,c.setTouchAction(this,"none")}}),_refreshOrientation:function(){this.focusNode.setAttribute("aria-orientation",this.vertical?"vertical":"horizontal"),this.handleMin._isActive&&this.handleMin.setAttribute("aria-orientation",this.vertical?"vertical":"horizontal"),this._propNames=this._orientationNames[this.vertical]},_refreshReversed:function(){this._reversed=!(!this.vertical&&this.isLeftToRight()!==this.flip||this.vertical&&this.flip)},_refreshCSS:function(){var b=function(a,b){return a.split(/ /g).map(function(a){return a+b}).join(" ")},c=b(this.baseClass,this.vertical?"-v":"-h"),d=this.baseClass+" "+c;a(this).removeClass(b(this.baseClass+"-v "+this.baseClass+"-h","-htl")+" "+b(this.baseClass+"-v "+this.baseClass+"-h","-lth")+" "+this.baseClass+"-v "+this.baseClass+"-h"),a(this).addClass(c+" "+b(d,this._reversed?"-htl":"-lth")),this.containerNode.className=b(d,"-bar")+" "+b(d,"-container"),this.progressBar.setAttribute("style",""),this.progressBar.className=b(d,"-bar")+" "+b(d,"-progress-bar"),this.focusNode.className=b(d,"-handle")+" "+b(d,"-handle-max"),this.handleMin._isActive&&(this.handleMin.className=b(d,"-handle")+" "+b(d,"-handle-min"))},computeProperties:function(a){if("value"in a||"min"in a||"max"in a||"step"in a){var b=this._getValueAsArray(),c=b.length>1,d=this._convert2Float(b[0],this._calculateDefaultValue(c?.25:.5)),e=this._convert2Float(b[b.length-1],this._calculateDefaultValue(c?.75:.5)),f=Math.max(d,e);d=Math.min(d,e),e=f,d=this._adjustValue(d,this.min),e=this._adjustValue(e,d),this.value=c?d+","+e:String(e)}},refreshRendering:function(a){var b,c;if("value"in a&&(b=this._refreshValueRendering()),"vertical"in a&&(this._refreshOrientation(),c=!0,b=!0),"flip"in a&&(c=!0,b=!0),"name"in a){var d=this.name;this.removeAttribute("name"),this.valueNode.setAttribute("name",d)}"max"in a&&this.focusNode.setAttribute("aria-valuemax",this.max),"min"in a&&(this.handleMin._isActive?this.handleMin:this.focusNode).setAttribute("aria-valuemin",this.min),c&&this._refreshReversed(),b&&this._refreshCSS(),this._positionHandles()},_positionHandles:function(){var a=this._getValueAsArray();1===a.length&&(a=[this.min,a[0]]);var b=100*(a[1]-this.min)/(this.max=a?1:a)},_convert2Float:function(a,b){var c=parseFloat(a);return isNaN(c)||1/0===c?b:c},_calculateDefaultValue:function(a){return this.maxb?Math.min(this.max,c):c}return a=Math.max(b,a),a=Math.min(this.max>this.min?this.max:this.min,a)},_getValueAsArray:function(){return String(this.value).split(/,/g)},pointerDownHandler:function(a){if(!this._ignoreUserInput(a)){this._pointerCtx.target=null,this._pointerCtx.offsetVal=0,this._pointerCtx.containerBox=h(this.containerNode);var b=this._getValueAsArray(),d=this._selectedValue(a,this._pointerCtx.containerBox);if(this._startSlideRange(a))this._pointerCtx.target=this.progressBar,this._pointerCtx.offsetVal=d-b[0];else{var e=Math.abs(d-b[1])-Math.abs(d-b[0]);0!==e||a.target!==this.focusNode&&a.target!==this.handleMin?(0===e&&(e=b[0]-Math.min(this.max-this.step,Math.max(this.min+this.step,d))),this._pointerCtx.target=e>0?this.handleMin:this.focusNode):this._pointerCtx.target=document.elementFromPoint(a.clientX,a.clientY),this._pointerCtx.target.focus(),a.target!==this.focusNode&&a.target!==this.handleMin&&this.handleOnInput(this._formatSelection(d,this._pointerCtx.target))}(a.target===this.focusNode||a.target===this.handleMin)&&(this._pointerCtx.offsetVal=d-b[this.handleMin._isActive&&this._pointerCtx.target===this.focusNode?1:0]),c.setPointerCapture(this._pointerCtx.target,a.pointerId)}},pointerMoveHandler:function(a){a.target===this._pointerCtx.target&&this.handleOnInput(this._formatSelection(this._selectedValue(a,this._pointerCtx.containerBox)-this._pointerCtx.offsetVal,a.target))},lostCaptureHandler:function(){this._pointerCtx.target=null,this.handleOnChange(this.value)},keyDownHandler:function(a){if(!this._ignoreUserInput(a)){var c,d=this._getValueAsArray(),e=a.target===this.focusNode?d.length-1:0,f=1;switch(a.keyCode){case b.HOME:c=[this.min,d[0]][e];break;case b.END:c=a.target===this.handleMin?d[1]:this.max;break;case b.RIGHT_ARROW:f=-1;case b.LEFT_ARROW:c=parseFloat(d[e])+f*(this.flip&&!this.vertical?this.step:-this.step);break;case b.DOWN_ARROW:f=-1;case b.UP_ARROW:c=parseFloat(d[e])+f*(this.flip&&this.vertical?-this.step:this.step);break;default:return}this.handleOnInput(this._formatSelection(c,a.target)),a.preventDefault()}},keyUpHandler:function(a){this._ignoreUserInput(a)||(a.target===this.focusNode||a.target===this.handleMin)&&this.handleOnChange(this.value)},_ignoreUserInput:function(a){return this.disabled||this.readOnly||a.altKey||a.ctrlKey||a.metaKey},_startSlideRange:function(a){if(!this.slideRange||!this.handleMin._isActive||a.target===this.focusNode||a.target===this.handleMin)return!1;var b=h(this.progressBar),c=a[this._propNames.clientStart]-b[this._propNames.start],d=b[this._propNames.size];return c>=0&&d>=c},_selectedValue:function(a,b){function c(a,b,c,d,e){return(a-b)*(e-d)/(c-b)+d}var d=b[this._propNames.size],e=a[this._propNames.clientStart]-b[this._propNames.start];return Math.round(c(e,this._reversed?d:0,this._reversed?0:d,this.min,this.max)/this.step)*this.step},_formatSelection:function(a,b){var c=this._getValueAsArray(),d=a;switch(b){case this.focusNode:d=1===c.length?String(a):Math.min(c[0],a)+","+a;break;case this.handleMin:d=a+","+Math.max(c[1],a);break;case this.progressBar:var e=c[1]-c[0];a=Math.max(this.min,Math.min(a+e,this.max)-e),d=a+","+(a+e)}return d}})}),define("deliteful/SidePane",["dcl/dcl","dpointer/events","requirejs-dplugins/jquery!attributes/classes","decor/sniff","delite/register","delite/DisplayContainer","requirejs-dplugins/Promise!","delite/theme!./SidePane/themes/{{theme}}/SidePane.css","requirejs-dplugins/has!bidi?delite/theme!./SidePane/themes/{{theme}}/SidePane_rtl.css"],function(a,b,c,d,e,f,g){function h(a){return"-d-side-pane-"+a}function i(a,b){b?(a.style.visibility="visible",a.style.display="block"):(a.style.visibility="hidden",a.style.display="none")}function j(a){do a=a.nextElementSibling;while(a&&1!==a.nodeType);return a}return e("d-side-pane",[HTMLElement,f],{baseClass:"d-side-pane",mode:"push",position:"start",animate:!0,swipeClosing:!0,_transitionTiming:{"default":0,chrome:50,ios:20,android:100,mozilla:100},_timing:0,_visible:!1,_opening:!1,_originX:0/0,_originY:0/0,show:a.superCall(function(a){return function(){return arguments.length>0?a.apply(this,arguments).then(function(a){return this._open().then(function(){return a})}.bind(this)):this._open()}}),hide:a.superCall(function(a){return function(){return arguments.length>0?a.apply(this,arguments).then(function(a){return this._close().then(function(){return a})}.bind(this)):this._close()}}),toggle:function(){return this._visible?this.hide():this.show()},_open:function(){var a,b=j(this),e=this.animate&&9!==d("ie");return this._visible||(e&&(c(this).addClass(h("animate")),b&&c(b).addClass(h("animate"))),"reveal"===this.mode?b&&(a=this._setAfterTransitionHandlers(b)):a=this._setAfterTransitionHandlers(this),i(this,!0),e?this.defer(this._openImpl,this._timing):(this._openImpl(),a=new g(function(a){this.defer(a,this._timing)}.bind(this)))),a||g.resolve(!0)},_close:function(){var a;if(this._visible){if("reveal"===this.mode){var b=j(this);b&&(a=this._setAfterTransitionHandlers(b))}else a=this._setAfterTransitionHandlers(this);this.animate&&9!==d("ie")?this.defer(function(){this._hideImpl()},this._timing):(this._hideImpl(),i(this,!1))}return a||g.resolve(!0)},_setAfterTransitionHandlers:function(a){var b=this,c={node:a},d=new g(function(a){c.handle=function(){b._afterTransitionHandle(c,a)}});return a.addEventListener("webkitTransitionEnd",c.handle),a.addEventListener("transitionend",c.handle),d},_afterTransitionHandle:function(a,b){c(this).removeClass(h("under")),this._visible||i(this,!1),a.node.removeEventListener("webkitTransitionEnd",a.handle),a.node.removeEventListener("transitionend",a.handle),b()},postRender:function(){i(this,!1),this.notifyCurrentValue("mode","position")},preRender:function(){this._transitionTiming={"default":0,chrome:20,ios:20,android:100,mozilla:100};for(var a in this._transitionTiming)d(a)&&this._timing=this.ownerDocument.width-10)&&(this._opening=!this._visible,this._pressHandle.remove(),this._moveHandle=this.on("pointermove",this._pointerMoveHandler.bind(this)),this._releaseHandle=this.on("pointerup",this._pointerUpHandler.bind(this)),c(this.ownerDocument.body).addClass(h("no-select")))},_pointerMoveHandler:function(a){if(!this._opening&&Math.abs(a.pageY-this._originY)>10)this._resetInteractions();else{var b=a.pageX;this._isLeft()?this._visible&&(this._originX10&&(this._close(),this._originX=b)):this._visible&&(this._originX>b&&(this._originX=b),(this.swipeClosing&&b-this._originX)>10&&(this._close(),this._originX=b))}},_pointerUpHandler:function(){this._opening=!1,c(this.ownerDocument.body).removeClass(h("no-select")),this._resetInteractions()},_resetInteractions:function(){this._releaseHandle&&this._releaseHandle.remove(),this._moveHandle&&this._moveHandle.remove(),this._pressHandle&&this._pressHandle.remove(),this.swipeClosing&&(this._pressHandle=this.on("pointerdown",this._pointerDownHandler.bind(this))),this._originX=0/0,this._originY=0/0}})}),define("requirejs-text/text!deliteful/Select/Select.html",[],function(){return'\n'}),define("deliteful/Select",["dcl/dcl","requirejs-dplugins/jquery!attributes/classes","delite/register","delite/FormWidget","delite/StoreMap","delite/Selection","delite/handlebars!./Select/Select.html","delite/theme!./Select/themes/{{theme}}/Select.css"],function(a,b,c,d,e,f,g){return c("d-select",[HTMLElement,d,e,f],{size:0,textAttr:"text",valueAttr:"value",disabledAttr:"disabled",baseClass:"d-select",template:g,attachedCallback:function(){this.valueNode.form&&this.on("reset",function(){this.defer(function(){this.valueNode.selectedIndex="single"===this.selectionMode?0:-1,this.value=this.valueNode.value})}.bind(this),this.valueNode.form),this.on("focus",function(a){b(this).toggleClass("d-select-focus","focus"===a.type)}.bind(this),this.valueNode),this.on("blur",function(a){b(this).toggleClass("d-select-focus","focus"===a.type)}.bind(this),this.valueNode),this.on("change",function(a){var b=this.selectedItems,c=this.valueNode.selectedOptions;if(void 0===c){var d=Array.prototype.slice.call(this.valueNode.options);c=d.filter(function(a){return a.selected})}else c=Array.prototype.slice.call(c);var e,f,g,h=b?b.length:0,i=c?c.length:0;for(e=0;h>e;e++)g=b[e],-1===c.indexOf(g.__visualItem)&&this.selectFromEvent(a,g,g.__visualItem,!0);for(e=0;i>e;e++)f=c[e],-1===b.indexOf(f.__dataItem)&&this.selectFromEvent(a,f.__dataItem,f,!0);this._set("value",this.valueNode.value)}.bind(this),this.valueNode)},hasSelectionModifier:function(){return"multiple"===this.selectionMode},refreshRendering:function(a){if("renderItems"in a){var b=this.renderItems,c=b?b.length:0;if(this.valueNode.innerHTML="",c>0){for(var d,e,f=this.ownerDocument.createDocumentFragment(),g=0;c>g;g++)d=b[g],e=this.ownerDocument.createElement("option"),e.__dataItem=d.__item,e.__dataItem.__visualItem=e,void 0!==d.text&&(e.text=d.text),void 0!==d.value&&e.setAttribute("value",d.value),this.isSelected(d.__item)&&e.setAttribute("selected","true"),void 0!==d.disabled&&d.disabled&&"false"!==d.disabled&&e.setAttribute("disabled","true"),f.appendChild(e);this.valueNode.appendChild(f),"single"===this.selectionMode&&(this.selectedItem=this.valueNode.options[this.valueNode.selectedIndex].__dataItem),this._set("value",this.valueNode.value)}}},getIdentity:function(a){return this.store.getIdentity(a)},updateRenderers:function(){this.notifyCurrentValue("renderItems")},_setValueAttr:function(a){this.valueNode&&(this.valueNode.value=a),this._set("value",a)},_setSelectionModeAttr:a.superCall(function(a){return function(b){if("single"!==b&&"multiple"!==b)throw new TypeError("'"+b+"' not supported for selectionMode; keeping the previous value of '"+this.selectionMode+"'");this._set("selectionMode",b),a.call(this,b)}})})}),define("deliteful/ScrollableContainer",["delite/register","delite/Container","delite/Scrollable"],function(a,b,c){return a("d-scrollable-container",[HTMLElement,b,c],{baseClass:"d-scrollable-container"})}),define("deliteful/ResponsiveColumns",["requirejs-dplugins/jquery!attributes/classes","delite/register","delite/DisplayContainer","./channelBreakpoints","delite/theme!./ResponsiveColumns/themes/{{theme}}/ResponsiveColumns.css"],function(a,b,c,d){return b("d-responsive-columns",[HTMLElement,c],{baseClass:"d-responsive-columns",breakpoints:"{'small': '"+d.smallScreen+"', 'medium': '"+d.mediumScreen+"', 'large': ''}",screenClass:"",preRender:function(){this._breakpoints={},this._layouts=[],this._mqls=[],a(this).addClass("-d-responsive-columns-"+this.widgetId)},postRender:function(){this.notifyCurrentValue("breakpoints")},_removeListeners:function(){for(var a=0;a *:nth-child("+(o+1)+"){",f=this._layouts[o][d[b]],"hidden"===f?j+="display: none;":"fill"===f?(j+="-webkit-box-flex: 1;",j+="-moz-box-flex: 1;",j+="-webkit-flex: 1;",j+="-ms-flex: 1;",j+="flex: 1;"):j+="width: "+f+";",j+="}";j+="}",g=window.matchMedia(k),h=function(a){a.matches&&(this.target.screenClass=this["class"],this.target.emit("change",{screenClass:this["class"],mediaQueryList:g}))}.bind({"class":d[b],mql:g,target:this}),g.addListener(h),this._mqls.push({mql:g,listener:h}),!this.screenClass&&g.matches&&(this.screenClass=d[b])}var p="d-responsive-columns-generated-style-"+this.widgetId,q=this.ownerDocument.getElementById(p);q||(q=this.ownerDocument.createElement("style"),q.id=p,this.ownerDocument.head.appendChild(q)),q.innerHTML=j},onAddChild:function(){this.notifyCurrentValue("breakpoints")},refreshRendering:function(a){"breakpoints"in a&&this._parseJSONAttrs()&&this._checkConfiguration()&&this._genCSS()}})}),define("requirejs-text/text!deliteful/RadioButton/RadioButton.html",[],function(){return'\n'}),define("deliteful/RadioButton",["delite/register","./Checkbox","delite/handlebars!./RadioButton/RadioButton.html","delite/theme!./RadioButton/themes/{{theme}}/RadioButton.css"],function(a,b,c){return a("d-radio-button",[HTMLElement,b],{baseClass:"d-radio-button",template:c,_inputClickHandler:a.superCall(function(a){return function(b){a.call(this,b),this.deliver()}}),toggle:a.superCall(function(a){return function(){this.checked||a.call(this)}}),refreshRendering:function(a){if("checked"in a&&this.checked){if(!this._related){var b=(this.valueNode.form||this.ownerDocument).querySelectorAll("input[type='radio'][name='"+this.name+"']");this._related=Array.prototype.filter.call(b,function(a){return a!==this.valueNode&&a.form===this.valueNode.form}.bind(this)).map(this.getEnclosingWidget.bind(this))}this._related.forEach(function(a){a.checked=!this.checked}.bind(this))}"name"in a&&delete this._related}})}),define("requirejs-text/text!deliteful/ProgressIndicator/ProgressIndicator.html",[],function(){return'\n\n'}),define("deliteful/ProgressIndicator",["dcl/dcl","delite/register","delite/Widget","delite/handlebars!./ProgressIndicator/ProgressIndicator.html","delite/theme!./ProgressIndicator/themes/{{theme}}/ProgressIndicator.css"],function(a,b,c,d){return b("d-progress-indicator",[HTMLElement,c],{active:!1,value:0/0,speed:"normal",baseClass:"d-progress-indicator",_requestId:0,_lapsTime:1e3,_requestAnimationFunction:window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.webkitRequestAnimationFrame&&window.webkitRequestAnimationFrame.bind(window)||function(a){return this.defer(a,1e3/60)},_cancelAnimationFunction:(window.cancelAnimationFrame||window.webkitCancelRequestAnimationFrame||function(a){a.remove()}).bind(window),_requestRendering:function(a){return this._requestAnimationFunction.call(this,a)},_cancelRequestRendering:function(a){return this._cancelAnimationFunction(a)},_reset:function(){this._requestRendering(function(){this.msgNode.textContent="";for(var a=0;12>a;a++)this.lineNodeList[a].style.opacity=(a+1)*(1/12)}.bind(this))},_stopAnimation:function(){this._requestId&&(this._cancelRequestRendering(this._requestId),this._requestId=0)},_startAnimation:function(){if(!this._requestId){this._reset();var a=16.7/this._lapsTime,b=function(){for(var c,d=0;12>d;d++)c=(parseFloat(this.lineNodeList[d].style.opacity)-a)%1,this.lineNodeList[d].style.opacity=0>c?1:c;this._requestId=this._requestRendering(b)}.bind(this);this._requestId=this._requestRendering(b)}},template:d,render:a.after(function(){this.lineNodeList=this.linesNode.querySelectorAll("line")}),attachedCallback:function(){var a=this.baseClass+"-"+this.widgetId+"-symbol";this.querySelector("symbol").id=a,this.querySelector("use").setAttributeNS("http://www.w3.org/1999/xlink","xlink:href","#"+a),this.svgNode.style.width="100%",this.svgNode.style.height="100%",this.svgNode.style.textAnchor="middle",this.style.color=window.getComputedStyle(this.msgNode).getPropertyValue("fill");var b=window.getComputedStyle(this).getPropertyValue("color");this.style.color!==b&&(this.linesNode.style.stroke=b,this.msgNode.style.fill=b,this.msgNode.textContent=this.msgNode.textContent),this._reset()},computeProperties:function(a){var b=null;"speed"in a&&(b="fast"===this.speed?500:"slow"===this.speed?2e3:1e3,this._lapsTime!==b&&(this._lapsTime=b)),"value"in a&&!isNaN(this.value)&&(b=Math.max(Math.min(this.value,100),0),this.value!==b&&(this.value=b))},refreshRendering:function(a){"value"in a&&(isNaN(this.value)?this.active&&this._startAnimation():(this._stopAnimation(),this._requestRendering(function(){this.msgNode.textContent=Math.floor(this.value);for(var a,b=.2,c=0;12>c;c++)a=Math.min(Math.max(.12*this.value-c,0),1)*(1-b),this.lineNodeList[c].style.opacity=b+a}.bind(this)))),"speed"in a&&this._requestId&&(this._stopAnimation(),this._startAnimation()),"active"in a&&(this.active?isNaN(this.value)&&this._startAnimation():this._stopAnimation(),this._requestRendering(function(){this.style.visibility=this.active?"visible":"hidden"}.bind(this)))},destroy:function(){this._stopAnimation()}})}),define("requirejs-text/text!deliteful/ProgressBar/ProgressBar.html",[],function(){return'\n'}),define("deliteful/ProgressBar",["dcl/dcl","requirejs-dplugins/jquery!attributes/classes","ecma402/IntlShim","delite/register","delite/Widget","delite/handlebars!./ProgressBar/ProgressBar.html","delite/theme!./ProgressBar/themes/{{theme}}/ProgressBar.css","requirejs-dplugins/has!bidi?delite/theme!./ProgressBar/themes/{{theme}}/ProgressBar_rtl.css"],function(a,b,c,d,e,f){return d("d-progress-bar",[HTMLElement,e],{value:0/0,max:1,position:-1,message:"",displayExtMsg:!1,fractionDigits:0,baseClass:"d-progress-bar",template:f,render:a.after(function(){this.setAttribute("aria-valuemin",0)}),computeProperties:function(a){if("max"in a){var b=this._convert2Float(this.max,1);0>=b&&(b=1),b!==this.max&&(this.max=b)}if("value"in a&&!isNaN(this.value)){var c=this._convert2Float(this.value,0);c=Math.max(0,Math.min(this.max,c)),c!==this.value&&(this.value=c)}this.position=isNaN(this.value)?-1:this.value/this.max},refreshRendering:function(a){"max"in a&&this.setAttribute("aria-valuemax",this.max),("value"in a||"max"in a)&&(-1===this.position?(this.indicatorNode.style.removeProperty("width"),this.removeAttribute("aria-valuenow")):(this.indicatorNode.style.width=100*this.position+"%",this.msgInvertNode.style.width=window.getComputedStyle(this.msgNode).getPropertyValue("width"),this.setAttribute("aria-valuenow",this.value))),this.msgNode.innerHTML=this.msgInvertNode.innerHTML=this.formatMessage(this.position,this.value,this.max);var c=this.displayExtMsg&&-1!==this.position;b(this.msgNode).toggleClass(this.baseClass+"-msg-ext",c),c?this.msgNode.setAttribute("msg-ext",this.formatExtMsg(this.position,this.value,this.max)):this.msgNode.removeAttribute("msg-ext"),this.message&&-1===this.position?this.setAttribute("aria-valuetext",this.message):this.removeAttribute("aria-valuetext"),b(this).toggleClass(this.baseClass+"-indeterminate",-1===this.position)},postRender:function(){this.notifyCurrentValue("value","max")},formatMessage:function(a,b){if(!this._numberFormat||this._prevLang!==this.lang||this._numberFormat.resolvedOptions().minimumFractionDigits!==this.fractionDigits){var d={style:"percent",minimumFractionDigits:this.fractionDigits,maximumFractionDigits:this.fractionDigits};this._numberFormat=new c.NumberFormat(this.lang||void 0,d),this._prevLang=this.lang}return this.message?this.message:isNaN(b)?"":this._numberFormat.format(a)},formatExtMsg:function(a,b,c){return this.isLeftToRight()?b+"/"+c:c+"/"+b},_convert2Float:function(a,b){var c=parseFloat(a);return(isNaN(c)||1/0===c)&&(c=b),c}})}),define("deliteful/LinearLayout",["requirejs-dplugins/jquery!attributes/classes","delite/register","delite/DisplayContainer","delite/theme!./LinearLayout/themes/{{theme}}/LinearLayout.css"],function(a,b,c){return b("d-linear-layout",[HTMLElement,c],{baseClass:"d-linear-layout",vertical:!0,refreshRendering:function(b){"vertical"in b&&(a(this).toggleClass("-d-linear-layout-v",this.vertical),a(this).toggleClass("-d-linear-layout-h",!this.vertical))},postRender:function(){this.notifyCurrentValue("vertical")}})}),define("deliteful/Combobox/nls/Combobox",{root:{"multiple-choice":"multiple choice","multiple-choice-no-selection":"Select option(s)","search-placeholder":"Search","ok-button-label":"OK","cancel-button-label":"Cancel"}}),define("requirejs-text/text!deliteful/Combobox/ComboPopup.html",[],function(){return'\n'}),define("deliteful/Combobox/ComboPopup",["delite/register","requirejs-dplugins/jquery!attributes/classes","delite/Widget","delite/handlebars!./ComboPopup.html"],function(a,b,c,d){return a("d-combo-popup",[HTMLElement,c],{baseClass:"d-combo-popup",template:d,combobox:null,refreshRendering:function(a){if("combobox"in a&&this.combobox){var c=this.combobox.list; -c&&(c.placeAt(this.listNode,"replace"),b(c).addClass("fill")),this.combobox._prepareInput(this.inputNode)}},okHandler:function(){this.combobox._validateMultiple(this.combobox.inputNode),this.combobox.closeDropDown()},cancelHandler:function(){this.combobox.list.selectedItems=this.combobox._selectedItems,this.combobox.closeDropDown()}})}),define("requirejs-text/text!deliteful/Combobox/Combobox.html",[],function(){return'\n'}),define("deliteful/Combobox",["dcl/dcl","requirejs-dplugins/jquery!attributes/classes,event","dstore/Filter","decor/sniff","delite/register","delite/FormValueWidget","delite/HasDropDown","delite/keys","./list/List","./features!desktop-like-channel?:./Combobox/ComboPopup","delite/handlebars!./Combobox/Combobox.html","requirejs-dplugins/i18n!./Combobox/nls/Combobox","delite/theme!./Combobox/themes/{{theme}}/Combobox.css"],function(a,b,c,d,e,f,g,h,i,j,k,l){return e("d-combobox",[HTMLElement,g,f],{baseClass:"d-combobox",template:k,autoFilter:!1,filterMode:"startsWith",ignoreCase:!0,selectionMode:"single",list:null,_inputReadOnly:!0,searchPlaceHolder:l["search-placeholder"],multipleChoiceMsg:l["multiple-choice"],multipleChoiceNoSelectionMsg:l["multiple-choice-no-selection"],okMsg:l["ok-button-label"],cancelMsg:l["cancel-button-label"],preRender:function(){this.list=new i,this._defaultList=this.list},refreshRendering:function(a){var b=!1;"list"in a&&this._initList(),"selectionMode"in a&&(b=!0,this.list&&(this.list.selectionMode="single"===this.selectionMode?"radio":"multiple")),("autoFilter"in a||"readOnly"in a)&&(b=!0),b&&(this._updateInputReadOnly(),this._setSelectable(this.inputNode,!this.inputNode.readOnly))},_updateInputReadOnly:function(){var a=this._inputReadOnly;this._inputReadOnly=this.readOnly||!this.autoFilter||this._useCenteredDropDown()||"multiple"===this.selectionMode,this._inputReadOnly===a&&this.notifyCurrentValue("_inputReadOnly")},_setSelectable:function(a,c){c?(a.removeAttribute("unselectable"),b(a).css("user-select","").off("selectstart",!1)):(a.setAttribute("unselectable","on"),b(a).css("user-select","none").on("selectstart",!1))},attachedCallback:function(){if(this.valueNode.form&&this.on("reset",function(){this.defer(function(){(this.value!==this.valueNode.value||"multiple"===this.selectionMode)&&this._initValue()})}.bind(this),this.valueNode.form),!this.list||this.list===this._defaultList){var a=this.querySelector("d-list");a?(this.list=a,delete this._defaultList,this.list.attached?this._initList():this.list.addEventListener("customelement-attached",this._attachedlistener=function(){this._initList(),this.list.removeEventListener("customelement-attached",this._attachedlistener)}.bind(this))):this.list&&this.list===this._defaultList&&(delete this._defaultList,this._initList())}},_initList:function(){this.list.attached||this.list.attachedCallback(),b(this.list).addClass("d-combobox-list"),b(this.list).addClass("d-combobox-list-hidden"),this.list.setAttribute("role","listbox"),this.list.focusDescendants=!1,this.list.selectionMode="single"===this.selectionMode?"radio":"multiple";var a=this._createDropDown(),c=this.getAttribute("dir");c&&a.setAttribute("dir",c),this.dropDown=a,this.dropDown.focusOnOpen=!1,this.dropDown.focus=null,this._initHandlers(),this._initValue()},_initHandlers:function(){this._initHandlersDone||(this._initHandlersDone=!0,this.list.on("keynav-child-navigated",function(a){var b=this._popupInput||this.inputNode,c=a.newValue?this.list.getEnclosingRenderer(a.newValue):null;c?(b.setAttribute("aria-activedescendant",a.newValue.id),"single"!==this.selectionMode||this.list.isSelected(c.item)||this.list.setSelected(c.item,!0),!a.triggerEvent||"keydown"!==a.triggerEvent.type&&"keypress"!==a.triggerEvent.type||this._updateScroll(c.item,!0)):b.removeAttribute("aria-activedescendant")}.bind(this)),this.list.on("click",function(a){if("single"===this.selectionMode){var b=this.list.getEnclosingRenderer(a.target);b&&!this.list.isCategoryRenderer(b)&&this.defer(function(){this.closeDropDown(!0)}.bind(this),100)}}.bind(this)),this.list.observe(function(a){if("selectedItems"in a)if("single"===this.selectionMode){var b=this.list.selectedItem;this.inputNode.value=b?this._getItemLabel(b):"",this.value=b?this._getItemValue(b):"",this.handleOnInput(this.value)}else"multiple"===this.selectionMode&&this._validateMultiple(this._popupInput||this.inputNode)}.bind(this)),this._prepareInput(this.inputNode))},_initValue:function(){if("single"===this.selectionMode){var a=this.list.selectedItem;if(a){this.inputNode.value=this._getItemLabel(a);var b=this._getItemValue(a);this._set("value",b),this.valueNode.value=b}else{var c=function(a){this.inputNode.value=this._getItemRendererLabel(a);var b=this._getItemRendererValue(a);this._set("value",b),this.valueNode.value=b,this.list.selectedItem=a.item}.bind(this),d=this.list.getItemRendererByIndex(0);d&&c(d)}}else this.inputNode.value=this.multipleChoiceNoSelectionMsg,this.value="",this.valueNode.value=""},_getItemRendererLabel:function(a){return this._getItemLabel(a.item)},_getItemRendererValue:function(a){return this._getItemValue(a.item)},_getItemLabel:function(a){return a.label},_getItemValue:function(a){return"value"in a?a.value:a.label},_useCenteredDropDown:function(){return!!j},_createDropDown:function(){this._updateInputReadOnly();var a=this._useCenteredDropDown(),b=a?this.createCenteredDropDown():this.createAboveBelowDropDown();return this.dropDownPosition=a?["center"]:["below","above"],b},createAboveBelowDropDown:function(){return this.list},createCenteredDropDown:function(){return new j({combobox:this})},_prepareInput:function(a){this.on("input",function(b){this.filter(a.value),this.openDropDown(),b.stopPropagation(),b.preventDefault()}.bind(this),a),this.on("change",function(a){a.stopPropagation(),a.preventDefault()}.bind(this),a),this.on("keydown",function(b){if(a.readOnly&&b.keyCode===h.BACKSPACE)b.stopPropagation(),b.preventDefault();else if(b.keyCode===h.ENTER)b.stopPropagation(),b.preventDefault(),this.opened&&this.closeDropDown(!0);else if(b.keyCode===h.SPACE){if("multiple"===this.selectionMode){var c=this.list.getEnclosingRenderer(this.list.navigatedDescendant),d=c.item;this.list.setSelected(d,!this.list.isSelected(d))}"multiple"!==this.selectionMode&&this.autoFilter||(b.stopPropagation(),b.preventDefault())}else(b.keyCode===h.DOWN_ARROW||b.keyCode===h.UP_ARROW||b.keyCode===h.PAGE_DOWN||b.keyCode===h.PAGE_UP||b.keyCode===h.HOME||b.keyCode===h.END)&&(this._useCenteredDropDown()&&this.list.emit("keydown",b),b.stopPropagation(),b.preventDefault())}.bind(this),a)},_validateMultiple:function(a){var b=this.list.selectedItems,c=b?b.length:0,d=[];if(c>1){a.value=this.multipleChoiceMsg;for(var e=0;c>e;e++)d.push(b[e]?this._getItemValue(b[e]):"")}else if(1===c){var f=this.list.selectedItem;a.value=this._getItemLabel(f),d.push(this._getItemValue(f))}else a.value=this.multipleChoiceNoSelectionMsg;this._set("value",d),this.valueNode.value=d,this.handleOnInput(this.value)},filter:function(a){"startsWith"===this.filterMode?a="^"+a:"is"===this.filterMode&&(a="^"+a+"$");var b=new RegExp(a,this.ignoreCase?"i":"");this.list.query=(new c).match(this.list.labelAttr,b)},openDropDown:a.superCall(function(a){return function(){this._selectedItems=this.list.selectedItems,this.opened||this.defer(function(){this.list._hideLoadingPanel(),this.focusNode.focus()}.bind(this),300);var b=a.apply(this,arguments);return b.then(function(){this._updateScroll(void 0,!0)}.bind(this))}}),closeDropDown:a.superCall(function(a){return function(){if(this._selectedItems=null,this.opened&&(this.handleOnChange(this.value),this.list.query={},"single"===this.selectionMode&&this.autoFilter)){var b=this.list.selectedItem;b&&((this._popupInput||this.inputNode).value=this._getItemLabel(this.list.selectedItem))}a.apply(this,arguments)}}),_updateScroll:function(a,b){if(!a){var c=this.list.selectedItems;a=c&&c.length>0?c[0]:null}if(a){var d=this.list.getIdentity(a),e=this.list.getRendererByItemId(d);e&&(this.list.scrollBy({y:this.list.getBottomDistance(e)}),b&&(this.list.navigatedDescendant=e.childNodes[0]))}}})}),define("dstore/Filter",["dojo/_base/declare"],function(a){function b(a){return function(){var c=this.constructor,d=new c;return d.type=a,d.args=arguments,this.type?b("and").call(c.prototype,this,d):d}}var c=a(null,{constructor:function(a){var b=typeof a;switch(b){case"object":var c=this;for(var d in a){var e=a[d];c=e instanceof this.constructor?c[e.type](d,e.args[0]):e&&e.test?c.match(d,e):c.eq(d,e)}this.type=c.type,this.args=c.args;break;case"function":case"string":this.type=b,this.args=[a]}},and:b("and"),or:b("or"),eq:b("eq"),ne:b("ne"),lt:b("lt"),lte:b("lte"),gt:b("gt"),gte:b("gte"),"in":b("in"),match:b("match")});return c.filterCreator=b,c}),define("requirejs-text/text!deliteful/Checkbox/Checkbox.html",[],function(){return'\n'}),define("deliteful/Checkbox",["dcl/dcl","delite/register","delite/FormWidget","./Toggle","delite/handlebars!./Checkbox/Checkbox.html","delite/theme!./Checkbox/themes/{{theme}}/Checkbox.css"],function(a,b,c,d,e){var f;return b("d-checkbox",[HTMLElement,c,d],{baseClass:"d-checkbox",template:e,postRender:function(){this._lbl4=null,this.on("click",this._inputClickHandler.bind(this),this.focusNode),this.on("change",this._inputClickHandler.bind(this),this.focusNode)},_inputClickHandler:function(){this.checked=this.focusNode.checked},attachedCallback:function(){f||(f=function(a){var b;if(/label/i.test(a.target.tagName)&&(b=a.target.getAttribute("for"))){var c=document.getElementById(b);c&&c.render&&void 0!==c._lbl4&&c.focusNode.click()}},this.ownerDocument.addEventListener("click",f))}})}),define("deliteful/Button/bidi/Button",["dcl/dcl","dpointer/events"],function(a){return a(null,{refreshRendering:function(a){("textDir"in a||"label"in a)&&(this.labelNode.textContent=this.applyTextDirection(this.label)),this.title&&"textDir"in a&&(this.title=this.applyTextDirection(this.title))},postRender:function(){this.on("pointerover",this._pointerOverHandler.bind(this))},_pointerOverHandler:function(){this.title&&(this.title=this.applyTextDirection(this.title))}})}),define("requirejs-text/text!deliteful/Button/Button.html",[],function(){return''}),define("deliteful/Button",["dcl/dcl","requirejs-dplugins/has","delite/register","delite/Widget","requirejs-dplugins/has!bidi?./Button/bidi/Button","delite/handlebars!./Button/Button.html","delite/theme!./Button/themes/{{theme}}/Button.css"],function(a,b,c,d,e,f){var g=a(d,{label:"",iconClass:"",baseClass:"d-button",template:f,preRender:function(){this.label||(this.label=this.textContent.trim(),this.innerHTML="")},computeProperties:function(a){("title"in a||"label"in a)&&(this.title=this.title||this.label||"")}}),h=c("d-button",b("bidi")?[HTMLButtonElement,g,e]:[HTMLButtonElement,g]);return h.Impl=g,h}); +require.config({"config":{"requirejs-dplugins/i18n":{"bundlesMap":{"deliteful/nls/layer":["deliteful/list/List/nls/Pageable","deliteful/StarRating/nls/StarRating","deliteful/Combobox/nls/Combobox"]},"localesMap":{"deliteful/nls/layer":["root"]}}}});require.config({"config":{"delite/theme":{"layersMap":{"delite/themes/{{theme}}/common.css":"deliteful/themes/layer_{{theme}}.css","deliteful/list/List/themes/{{theme}}/List.css":"deliteful/themes/layer_{{theme}}.css","deliteful/ViewStack/themes/{{theme}}/ViewStack.css":"deliteful/themes/layer_{{theme}}.css","deliteful/ViewIndicator/themes/{{theme}}/ViewIndicator.css":"deliteful/themes/layer_{{theme}}.css","deliteful/ToggleButton/themes/{{theme}}/ToggleButton.css":"deliteful/themes/layer_{{theme}}.css","deliteful/Toaster/themes/{{theme}}/Toaster.css":"deliteful/themes/layer_{{theme}}.css","deliteful/Switch/themes/{{theme}}/Switch.css":"deliteful/themes/layer_{{theme}}.css","deliteful/SwapView/themes/{{theme}}/SwapView.css":"deliteful/themes/layer_{{theme}}.css","deliteful/StarRating/themes/{{theme}}/StarRating.css":"deliteful/themes/layer_{{theme}}.css","deliteful/Slider/themes/{{theme}}/Slider.css":"deliteful/themes/layer_{{theme}}.css","deliteful/SidePane/themes/{{theme}}/SidePane.css":"deliteful/themes/layer_{{theme}}.css","deliteful/Select/themes/{{theme}}/Select.css":"deliteful/themes/layer_{{theme}}.css","deliteful/ResponsiveColumns/themes/{{theme}}/ResponsiveColumns.css":"deliteful/themes/layer_{{theme}}.css","deliteful/RadioButton/themes/{{theme}}/RadioButton.css":"deliteful/themes/layer_{{theme}}.css","deliteful/ProgressIndicator/themes/{{theme}}/ProgressIndicator.css":"deliteful/themes/layer_{{theme}}.css","deliteful/ProgressBar/themes/{{theme}}/ProgressBar.css":"deliteful/themes/layer_{{theme}}.css","deliteful/LinearLayout/themes/{{theme}}/LinearLayout.css":"deliteful/themes/layer_{{theme}}.css","deliteful/Combobox/themes/{{theme}}/Combobox.css":"deliteful/themes/layer_{{theme}}.css","deliteful/Checkbox/themes/{{theme}}/Checkbox.css":"deliteful/themes/layer_{{theme}}.css","deliteful/Button/themes/{{theme}}/Button.css":"deliteful/themes/layer_{{theme}}.css"}}}});require.config({"config":{"requirejs-dplugins/css":{"layersMap":{"deliteful/ViewStack/transitions/slide.css":"deliteful/layer.css","deliteful/ViewStack/transitions/reveal.css":"deliteful/layer.css"}}}}); +define("requirejs-text/text!deliteful/list/List/_LoadingPanel.html",[],function(){return'\n'}),define("deliteful/list/_LoadingPanel",["dcl/dcl","delite/register","delite/Widget","delite/handlebars!./List/_LoadingPanel.html"],function(a,b,c,d){var e=a([c],{message:"",template:d});return b("d-list-loading-panel",[HTMLElement,e])}),define("deliteful/list/Renderer",["dcl/dcl","requirejs-dplugins/jquery!attributes/classes","delite/register","delite/Widget"],function(a,b,c,d){return a([d],{item:{},_focusableChildren:null,render:a.after(function(){if(!this.renderNode)throw new Error("render must define a renderNode property on the Renderer. Example using attach-point in a template: ");this.renderNode.tabIndex=-1,b(this.renderNode).addClass("d-list-cell"),this.updateFocusableChildren()}),getFirst:function(){return this._focusableChildren&&this._focusableChildren.length?this._focusableChildren[0]:null},getLast:function(){return this._focusableChildren&&this._focusableChildren.length?this._focusableChildren[this._focusableChildren.length-1]:null},getNext:function(a){return this.getNextFocusableChild(a,1)},getPrev:function(a){return this.getNextFocusableChild(a,-1)},updateFocusableChildren:function(){if(this._focusableChildren)for(var a=0;a=0&&d\n'}),define("deliteful/list/PageableList",["dcl/dcl","delite/register","dojo/string","requirejs-dplugins/Promise!","requirejs-dplugins/jquery!attributes/classes","decor/sniff","./List","./Renderer","delite/handlebars!./List/_PageLoaderRenderer.html","requirejs-dplugins/i18n!./List/nls/Pageable"],function(a,b,c,d,e,f,g,h,i,j){var k=b("d-list-loader",[HTMLElement,h],{baseClass:"d-list-loader",_setItemAttr:function(a){this._set("item",a),this.item&&!this.loading&&(this._label.innerHTML=this.item.loadMessage)},loading:!1,_setLoadingAttr:function(a){this._set("loading",a),a&&this.beforeLoading(),this._destroyed||(e(this).toggleClass("d-loading",a),this._label.innerHTML=a?this.item.loadingMessage:this.item.loadMessage,e(this._progressIndicator).toggleClass("d-hidden"),this._progressIndicator.active=a,a?this._button.setAttribute("aria-disabled","true"):this._button.removeAttribute("aria-disabled")),a||this.afterLoading()},postRender:function(){this.on("click",this._load.bind(this))},template:i,_load:function(){if(!this._list.hasAttribute("aria-busy")){this.loading=!0;var a=this;return new d(function(b,c){a.defer(function(){a.performLoading().then(function(){a.loading=!1,b()}.bind(this),function(b){a.loading=!1,c(b),a._queryError(b)})})})}}});return b("d-pageable-list",[HTMLElement,g],{pageLength:0,maxPages:0,loadPreviousMessage:j["default-load-message"],loadNextMessage:j["default-load-message"],autoPaging:!1,_setAutoPagingAttr:function(a){this._set("autoPaging",a),this._autoPagingHandle&&(this._autoPagingHandle.remove(),this._autoPagingHandle=null),a&&(this._autoPagingHandle=this.on("scroll",this._scrollHandler.bind(this),this))},hideOnPageLoad:!1,_collection:null,_firstLoaded:-1,_lastLoaded:-1,refreshRendering:function(a){this.pageLength>0&&(("store"in a||"query"in a||"_collection"in a)&&(this._dataLoaded&&(this._setBusy(!0,!0),this._empty(),a.pageLength=!0),this._idPages=[],this._loadNextPage().then(function(){this._setBusy(!1),this._dataLoaded=!0}.bind(this),function(a){this._setBusy(!1),this._queryError(a)}.bind(this))),this._previousPageLoader&&(this._previousPageLoader.item={loadMessage:c.substitute(this.loadPreviousMessage,this),loadingMessage:this.loadingMessage}),this._nextPageLoader&&(this._nextPageLoader.item={loadMessage:c.substitute(this.loadNextMessage,this),loadingMessage:this.loadingMessage}))},processCollection:a.superCall(function(a){return function(b){0===this.pageLength&&a.apply(this,arguments),this._collection=b}}),_updateIdPages:function(a,b,c){for(var d=this._firstLoaded,e=0;e=d&&f>=b){a?this._idPages[e].splice(b-d,0,c):this._idPages[e].splice(b-d,1);break}d+=this._idPages[e].length}},_loadNextPage:function(){this._rangeSpec||(this._rangeSpec={start:0,count:this.pageLength},this._firstLoaded=this._rangeSpec.start),this._nextPageLoader&&(this._rangeSpec.start=this._lastLoaded+1,this._rangeSpec.count=this.pageLength);var a=this._collection.fetchRange({start:this._rangeSpec.start,end:this._rangeSpec.start+this._rangeSpec.count});return a.then(function(a){var b=a.map(function(a){return this.itemToRenderItem(a)},this);if(b.length){var c=b.map(function(a){return this.getIdentity(a)},this);this._lastLoaded=this._rangeSpec.start+c.length-1,this._idPages.push(c)}this._nextPageReadyHandler(b)}.bind(this))},_loadPreviousPage:function(){this._rangeSpec.count=this.pageLength,this._rangeSpec.start=this._firstLoaded-this.pageLength,this._rangeSpec.start<0&&(this._rangeSpec.count+=this._rangeSpec.start,this._rangeSpec.start=0);var a=this._collection.fetchRange({start:this._rangeSpec.start,end:this._rangeSpec.start+this._rangeSpec.count});return a.then(function(a){var b=a.map(function(a){return this.itemToRenderItem(a)},this);if(b.length){var c,d=b.map(function(a){return this.getIdentity(a)},this),e=this._idPages[0];for(c=0;c=0&&(b.splice(c,1),d.splice(c,1),c--);this._firstLoaded=this._rangeSpec.start,this._idPages.unshift(d)}this._previousPageReadyHandler(b)}.bind(this))},_unloadPage:function(a){var b,c;if(a){for(b=this._idPages.shift(),this._firstLoaded+=b.length,c=0;cthis.maxPages&&this._unloadPage(!1),0===this._firstLoaded?(this._previousPageLoader.destroy(),this._previousPageLoader=null):this._previousPageLoader.placeAt(this,"first"),b._destroyed&&(b=c),b){var d=b.previousElementSibling;if(d&&d.renderNode){var e=this.navigatedDescendant?null:this.ownerDocument.activeElement;this.navigateTo(d.renderNode),this.scrollBy({y:this.getTopDistance(d)}),e&&e.focus()}}},_nextPageReadyHandler:function(a){var b=this._getLastVisibleRenderer();if(this.navigatedDescendant&&b&&this.navigateTo(b.renderNode),this._renderNewItems(a,!1),this.maxPages&&this._idPages.length>this.maxPages&&this._unloadPage(!0),this._nextPageLoader?a.length!==this._rangeSpec.count?(this._nextPageLoader.destroy(),this._nextPageLoader=null):this._nextPageLoader.placeAt(this):a.length===this._rangeSpec.count&&this._createNextPageLoader(),b){var c=b.nextElementSibling;if(c&&c.renderNode){var d=this.navigatedDescendant?null:this.ownerDocument.activeElement;this.navigateTo(c.renderNode),this.scrollBy({y:this.getBottomDistance(c)}),d&&d.focus()}}},_getLastVisibleRenderer:function(){for(var a=this._getLastRenderer();a&&!(this.getBottomDistance(a)<=0);)a=a.previousElementSibling;return a},_getFirstVisibleRenderer:function(){for(var a=this._getFirstRenderer();a&&!(this.getTopDistance(a)>=0);)a=a.nextElementSibling;return a},_scrollHandler:function(){this.isTopScroll()?(!this._atExtremity&&this._previousPageLoader&&this._previousPageLoader._load(),this._atExtremity=!0):this.isBottomScroll()?(!this._atExtremity&&this._nextPageLoader&&this._nextPageLoader._load(),this._atExtremity=!0):this._atExtremity=!1},_createNextPageLoader:function(){this._nextPageLoader=new k({item:{loadMessage:c.substitute(this.loadNextMessage,this),loadingMessage:this.loadingMessage},beforeLoading:function(){var a=this.hideOnPageLoad&&!this.autoPaging;this._setBusy(!0,a)}.bind(this),afterLoading:function(){this._setBusy(!1)}.bind(this),performLoading:function(){return this._loadNextPage()}.bind(this),_list:this}),this._nextPageLoader.placeAt(this)},_createPreviousPageLoader:function(){this._previousPageLoader=new k({item:{loadMessage:c.substitute(this.loadPreviousMessage,this),loadingMessage:this.loadingMessage},beforeLoading:function(){var a=this.hideOnPageLoad&&!this.autoPaging;this._setBusy(!0,a)}.bind(this),afterLoading:function(){this._setBusy(!1)}.bind(this),performLoading:function(){return this._loadPreviousPage()}.bind(this),_list:this}),this._previousPageLoader.placeAt(this,"first")},itemRemoved:a.superCall(function(a){return function(b){this.pageLength>0?(this._firstLoaded<=b&&b<=this._lastLoaded&&(this._updateIdPages(!1,b),a.call(this,b-this._firstLoaded)),b0?this._firstLoadedthis._lastLoaded&&(this._nextPageLoader||this._createNextPageLoader()):a.apply(this,arguments)}}),_empty:a.superCall(function(a){return function(){a.call(this,arguments),this.pageLength>0&&(this._nextPageLoader=null,this._previousPageLoader=null,this._rangeSpec=null,this._untrack(),this._firstLoaded=this._lastLoaded=-1)}}),_getNextRenderer:a.superCall(function(a){return function(b,c){var d=a.apply(this,arguments);return(this._nextPageLoader&&d===this._nextPageLoader||this._previousPageLoader&&d===this._previousPageLoader)&&(d=null),d}}),_spaceKeydownHandler:a.superCall(function(a){return function(b){this._nextPageLoader&&this._nextPageLoader.contains(b.target)?(b.preventDefault(),this._nextPageLoader._load()):this._previousPageLoader&&this._previousPageLoader.contains(b.target)?(b.preventDefault(),this._previousPageLoader._load()):a.apply(this,arguments)}}),handleSelection:a.superCall(function(a){return function(b){var c=this.getEnclosingRenderer(b.target);c!==this._nextPageLoader&&c!==this._previousPageLoader&&a.apply(this,arguments)}})})}),define("dojo/string",["./_base/kernel","./_base/lang"],function(a,b){var c=/[&<>'"\/]/g,d={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"},e={};return b.setObject("dojo.string",e),e.escape=function(a){return a?a.replace(c,function(a){return d[a]}):""},e.rep=function(a,b){if(0>=b||!a)return"";for(var c=[];1&b&&c.push(a),b>>=1;)a+=a;return c.join("")},e.pad=function(a,b,c,d){c||(c="0");var f=String(a),g=e.rep(c,Math.ceil((b-f.length)/c.length));return d?f+g:g+f},e.substitute=function(c,d,e,f){return f=f||a.global,e=e?b.hitch(f,e):function(a){return a},c.replace(/\$\{([^\s\:\}]+)(?:\:([^\s\:\}]+))?\}/g,function(a,c,g){var h=b.getObject(c,!1,d);return g&&(h=b.getObject(g,!1,f).call(f,h,c)),e(h,c).toString()})},e.trim=String.prototype.trim?b.trim:function(a){a=a.replace(/^\s+/,"");for(var b=a.length-1;b>=0;b--)if(/\S/.test(a.charAt(b))){a=a.substring(0,b+1);break}return a},e}),define("dojo/_base/kernel",["../has","./config","require","module"],function(a,b,c,d){var e,f,g,h=function(){return this}(),i={},j={},k={config:b,global:h,dijit:i,dojox:j},l={dojo:["dojo",k],dijit:["dijit",i],dojox:["dojox",j]},m=c.map&&c.map[d.id.match(/[^\/]+/)[0]];for(f in m)l[f]?l[f][0]=m[f]:l[f]=[m[f],{}];for(f in l)g=l[f],g[1]._scopeName=g[0],b.noGlobals||(h[g[0]]=g[1]);k.scopeMap=l,k.baseUrl=k.config.baseUrl=c.baseUrl,k.isAsync=!a("dojo-loader")||c.async,k.locale=b.locale;var n="$Rev: f4fef70 $".match(/[0-9a-f]{7,}/);if(k.version={major:1,minor:10,patch:4,flag:"",revision:n?n[0]:NaN,toString:function(){var a=k.version;return a.major+"."+a.minor+"."+a.patch+a.flag+" ("+a.revision+")"}},a.add("extend-dojo",1),Function("d","d.eval = function(){return d.global.eval ? d.global.eval(arguments[0]) : eval(arguments[0]);}")(k),a("host-rhino")?k.exit=function(a){quit(a)}:k.exit=function(){},a.add("dojo-guarantee-console",1),a("dojo-guarantee-console")){"undefined"!=typeof console||(console={});var o,p=["assert","count","debug","dir","dirxml","error","group","groupEnd","info","profile","profileEnd","time","timeEnd","trace","warn","log"];for(e=0;o=p[e++];)console[o]||!function(){var a=o+"";console[a]="log"in console?function(){var b=Array.prototype.slice.call(arguments);b.unshift(a+":"),console.log(b.join(" "))}:function(){},console[a]._fake=!0}()}if(a.add("dojo-debug-messages",!!b.isDebug),k.deprecated=k.experimental=function(){},a("dojo-debug-messages")&&(k.deprecated=function(a,b,c){var d="DEPRECATED: "+a;b&&(d+=" "+b),c&&(d+=" -- will be removed in version: "+c),console.warn(d)},k.experimental=function(a,b){var c="EXPERIMENTAL: "+a+" -- APIs subject to change without notice.";b&&(c+=" "+b),console.warn(c)}),a.add("dojo-modulePaths",1),a("dojo-modulePaths")&&b.modulePaths){k.deprecated("dojo.modulePaths","use paths configuration");var q={};for(f in b.modulePaths)q[f.replace(/\./g,"/")]=b.modulePaths[f];c({paths:q})}return a.add("dojo-moduleUrl",1),a("dojo-moduleUrl")&&(k.moduleUrl=function(a,b){k.deprecated("dojo.moduleUrl()","use require.toUrl","2.0");var d=null;return a&&(d=c.toUrl(a.replace(/\./g,"/")+(b?"/"+b:"")+"/*.*").replace(/\/\*\.\*/,"")+(b?"":"/")),d}),k._hasResource={},k}),define("dojo/_base/config",["../has","require"],function(a,b){var c={};if(a("dojo-config-api")){var d,e=b.rawConfig;for(d in e)c[d]=e[d]}else{var f=function(b,c,e){for(d in b)"has"!=d&&a.add(c+d,b[d],0,e)},g=function(){return this}();c=a("dojo-loader")?b.rawConfig:g.dojoConfig||g.djConfig||{},f(c,"config",1),f(c.has,"",1)}if(!c.locale&&"undefined"!=typeof navigator){var h=navigator.language||navigator.userLanguage;h&&(c.locale=h.toLowerCase())}return c}),define("dojo/has",["require","module"],function(a,b){var c=a.has||function(){};if(!c("dojo-has-api")){var d="undefined"!=typeof window&&"undefined"!=typeof location&&"undefined"!=typeof document&&window.location==location&&window.document==document,e=function(){return this}(),f=d&&document,g=f&&f.createElement("DiV"),h=b.config&&b.config()||{};c=function(a){return"function"==typeof h[a]?h[a]=h[a](e,f,g):h[a]},c.cache=h,c.add=function(a,b,d,e){return("undefined"==typeof h[a]||e)&&(h[a]=b),d&&c(a)},c.add("host-browser",d),c.add("host-node","object"==typeof process&&process.versions&&process.versions.node&&process.versions.v8),c.add("host-rhino","function"==typeof load&&("function"==typeof Packages||"object"==typeof Packages)),c.add("dom",d),c.add("dojo-dom-ready-api",1),c.add("dojo-sniff",1)}if(c("host-browser")){c.add("dom-addeventlistener",!!document.addEventListener),c.add("touch","ontouchstart"in document||"onpointerdown"in document&&navigator.maxTouchPoints>0||window.navigator.msMaxTouchPoints),c.add("touch-events","ontouchstart"in document),c.add("pointer-events","onpointerdown"in document),c.add("MSPointer","msMaxTouchPoints"in navigator),c.add("device-width",screen.availWidth||innerWidth);var i=document.createElement("form");c.add("dom-attributes-explicit",0==i.attributes.length),c.add("dom-attributes-specified-flag",i.attributes.length>0&&i.attributes.length<40)}return c.clearElement=function(a){return a.innerHTML="",a},c.normalize=function(a,b){var d=a.match(/[\?:]|[^:\?]*/g),e=0,f=function(a){var b=d[e++];return":"==b?0:"?"==d[e++]?!a&&c(b)?f():(f(!0),f(a)):b||0};return a=f(),a&&b(a)},c.load=function(a,b,c){a?b([a],c):c()},c}),define("deliteful/list/List/nls/Pageable",{root:{"default-load-message":"Click to load ${pageLength} more items"}}),define("deliteful/list/List",["dcl/dcl","delite/register","requirejs-dplugins/jquery!attributes/classes","delite/keys","delite/CustomElement","delite/Selection","delite/KeyNav","delite/StoreMap","delite/Scrollable","./ItemRenderer","./CategoryRenderer","./_LoadingPanel","delite/theme!./List/themes/{{theme}}/List.css"],function(a,b,c,d,e,f,g,h,i,j,k,l){var m=a([f,g,h,i],{itemRenderer:j,categoryRenderer:k,labelAttr:"label",iconclassAttr:"iconclass",righttextAttr:"righttext",righticonclassAttr:"righticonclass",categoryAttr:"",categoryFunc:null,baseClass:"d-list",multiCharSearchDuration:0,setAttribute:a.superCall(function(a){return function(b,c){a.apply(this,arguments),"role"===b&&this._applyRole(c)}}),_setScrollDirectionAttr:function(a){if("vertical"!==a&&"none"!==a)throw new TypeError("'"+a+"' not supported for scrollDirection, keeping the previous value of '"+this.scrollDirection+"'");this._set("scrollDirection",a)},_setSelectionModeAttr:a.superCall(function(a){return function(b){if("listbox"===this.getAttribute("role")&&"none"===b)throw new TypeError("selectionMode 'none' is invalid for an aria listbox, keeping the previous value of '"+this.selectionMode+"'");a.apply(this,arguments)}}),selectionMode:"none",loadingMessage:"",_cssClasses:{cell:"d-list-cell",selected:"d-selected",selectable:"d-selectable",multiselectable:"d-multiselectable"},render:function(){var a=this.getAttribute("role");a?this._applyRole(a):this.setAttribute("role","grid"),this.setAttribute("aria-readonly","true")},postRender:function(){this.notifyCurrentValue("selectionMode")},attachedCallback:a.superCall(function(a){return function(){this._setBusy(!0,!0),this.on("query-error",function(){this._setBusy(!1,!0)}.bind(this)),a.call(this)}}),refreshRendering:function(a){if("selectionMode"in a)if(c(this).removeClass(this._cssClasses.selectable),c(this).removeClass(this._cssClasses.multiselectable),this.removeAttribute("aria-multiselectable"),"none"===this.selectionMode)for(var b=0;b=0?this.getItemRenderers().item(a):null},getItemRendererIndex:function(a){var b=-1;if(a.item)for(var c=this.getIdentity(a.item),d=this.getItemRenderers(),e=0;e=f;f++)e=a[f],!this._isCategorized()||d&&e.category===d.category||h.appendChild(this._createCategoryRenderer(e)),h.appendChild(this._createItemRenderer(e)),d=e;return h},_addItemRenderer:function(a,b){var c=this._getInsertSpec(a,b);if(c.nodeRef){if(this.insertBefore(a,c.nodeRef),c.addCategoryAfter){var d=this._createCategoryRenderer(c.nodeRef.item);this.insertBefore(d,c.nodeRef),d.attachedCallback()}}else this.appendChild(a);c.addCategoryBefore&&(d=this._createCategoryRenderer(a.item),this.insertBefore(d,a),d.attachedCallback()),a.attachedCallback()},_getInsertSpec:function(a,b){var c={nodeRef:b>=0?this.getItemRendererByIndex(b):null,addCategoryBefore:!1,addCategoryAfter:!1};if(this._isCategorized()){var d=c.nodeRef?this._getNextRenderer(c.nodeRef,-1):this._getLastRenderer();d?this._sameCategory(a,d)||(this.isCategoryRenderer(d)?(c.nodeRef=d,d=this._getNextRenderer(d,-1),(!d||d&&!this._sameCategory(a,d))&&(c.addCategoryBefore=!0)):c.addCategoryBefore=!0):c.addCategoryBefore=!0,!c.nodeRef||this.isCategoryRenderer(c.nodeRef)||this._sameCategory(c.nodeRef,a)||(c.addCategoryAfter=!0)}return c},_removeRenderer:function(a,b){if(this._isCategorized()&&!this.isCategoryRenderer(a)){var c=this._getNextRenderer(a,-1);if(c&&this.isCategoryRenderer(c)){var d=this._getNextRenderer(a,1);d&&this._sameCategory(a,d)||this._removeRenderer(c)}}if(this._getFocusedRenderer()===a){var e=this._getNextRenderer(a,1)||this._getNextRenderer(a,-1);e&&this.navigateTo(e.renderNode)}b||this.isCategoryRenderer(a)||!this.isSelected(a.item)||this.selectFromEvent(null,a.item,a,!0),this._previousFocusedChild&&this.getEnclosingRenderer(this._previousFocusedChild)===a&&(this._previousFocusedChild=null),this.removeChild(a),a.destroy()},_createItemRenderer:function(a){var b=new this.itemRenderer({item:a,tabindex:"-1"});if("none"!==this.selectionMode){var d=!!this.isSelected(a);b.renderNode.setAttribute("aria-selected",d?"true":"false"),c(b).toggleClass(this._cssClasses.selected,d)}return b},_createCategoryRenderer:function(a){return new this.categoryRenderer({item:a,tabindex:"-1"})},isCategoryRenderer:function(a){return a.tagName.toLowerCase()===this.categoryRenderer.tag},_sameCategory:function(a,b){return a.item.category===b.item.category},_getNextRenderer:function(a,b){return b>=0?a.nextElementSibling:a.previousElementSibling},_getFirstRenderer:function(){return this.querySelector(this.itemRenderer.tag+", "+this.categoryRenderer.tag)},_getLastRenderer:function(){var a=this.querySelectorAll(this.itemRenderer.tag+", "+this.categoryRenderer.tag);return a.length?a.item(a.length-1):null},initItems:function(a){this._empty(),this._renderNewItems(a,!1),this._setBusy(!1,!0),this._dataLoaded=!0,this.emit("query-success",{renderItems:a,cancelable:!1,bubbles:!0})},itemRemoved:function(a,b,c){var d=this.getItemRendererByIndex(a);d&&this._removeRenderer(d,c)},itemAdded:function(a,b,c){var d=this._createItemRenderer(b);this._addItemRenderer(d,a)},itemUpdated:function(a,b,c){var d=this.getItemRendererByIndex(a);d&&(d.item=b)},itemMoved:function(a,b,c,d){this.itemRemoved(a,d,!0),this.itemAdded(b,c,d)},getTopDistance:function(a){return Math.round(a.offsetTop-this.getCurrentScroll().y)},getBottomDistance:function(a){var b=this.getBoundingClientRect();return Math.round(a.offsetTop+a.offsetHeight-this.getCurrentScroll().y-(b.bottom-b.top))},descendantSelector:function(a){var b=this.getEnclosingRenderer(a);return!b||"listbox"===this.getAttribute("role")&&this.isCategoryRenderer(b)?!1:c(a).hasClass(this._cssClasses.cell)||a.hasAttribute("navindex")},_keynavKeyDownHandler:a.before(function(a){a.defaultPrevented||(a.keyCode!==d.SPACE||this._searchTimer?"listbox"!==this.getAttribute("role")&&this._gridKeydownHandler(a):this._spaceKeydownHandler(a))}),focus:function(){if(this._previousFocusedChild)this.navigateTo(this._previousFocusedChild);else{var a=this._getFirst();if(a){for(;a&&!(this.getTopDistance(a)>=0);){var b=a.parentNode.nextElementSibling;a=b?b.renderNode:null}this.navigateTo(a)}}},_keynavDeactivatedHandler:a.superCall(function(a){return function(){this._previousFocusedChild=this.navigatedDescendant,a.call(this)}}),_getFirst:function(){var a=this.querySelector("."+this._cssClasses.cell);return a&&"listbox"===this.getAttribute("role")&&this.isCategoryRenderer(this.getEnclosingRenderer(a))&&(a=this.getNext(a,1)),a},_getLast:function(){var a=this.querySelectorAll("."+this._cssClasses.cell),b=a.length?a.item(a.length-1):null;return b&&"listbox"===this.getAttribute("role")&&this.isCategoryRenderer(this.getEnclosingRenderer(b))&&(b=this.getNext(b,-1)),b},downArrowKeyHandler:function(a){if(!this.navigatedDescendant||!this.navigatedDescendant.hasAttribute("navindex")){var b=this._getFocusedRenderer(),c=null;b&&(c=b.nextElementSibling,c&&"listbox"===this.getAttribute("role")&&this.isCategoryRenderer(c)&&(c=c.nextElementSibling)),this.navigateTo(c?c.renderNode:this._getFirst(),!1,a)}},upArrowKeyHandler:function(a){if(!this.navigatedDescendant||!this.navigatedDescendant.hasAttribute("navindex")){var b=this._getFocusedRenderer(),c=null;b&&(c=b.previousElementSibling,c&&"listbox"===this.getAttribute("role")&&this.isCategoryRenderer(c)&&(c=c.previousElementSibling)),this.navigateTo(c?c.renderNode:this._getLast(),!1,a)}},pageUpKeyHandler:function(a){this.navigateToFirst(a)},pageDownKeyHandler:function(a){this.navigateToLast(a)},getNext:function(a,b){if(a===this)return b>0?this._getFirst():this._getLast();var c=this.getEnclosingRenderer(a);return b>0?c.nextElementSibling?c.nextElementSibling.renderNode:this._getFirst():c.previousElementSibling?c.previousElementSibling.renderNode:this._getLast()},_spaceKeydownHandler:function(a){"none"!==this.selectionMode&&this.handleSelection(a)&&a.preventDefault()},_gridKeydownHandler:function(a){if(a.keyCode===d.ENTER||a.keyCode===d.F2)this.navigatedDescendant&&!this.navigatedDescendant.hasAttribute("navindex")&&(a.preventDefault(),this._enterActionableMode());else if(a.keyCode===d.TAB){if(this.navigatedDescendant&&this.navigatedDescendant.hasAttribute("navindex")){a.preventDefault();for(var b=this._getFocusedRenderer(),c=b[a.shiftKey?"getPrev":"getNext"](this.navigatedDescendant);!c;)b=b[a.shiftKey?"previousElementSibling":"nextElementSibling"]||this[a.shiftKey?"_getLast":"_getFirst"]().parentNode,c=b[a.shiftKey?"getLast":"getFirst"]();this.navigateTo(c)}}else a.keyCode===d.ESCAPE&&this._leaveActionableMode()},_enterActionableMode:function(){var a=this._getFocusedRenderer();if(a){var b=a.getFirst();b&&this.navigateTo(b)}},_leaveActionableMode:function(){this.navigateTo(this._getFocusedRenderer().renderNode)},_getFocusedRenderer:function(){return this.navigatedDescendant?this.getEnclosingRenderer(this.navigatedDescendant):null}});return b("d-list",[HTMLElement,m])}),define("requirejs-text/text!deliteful/list/List/ItemRenderer.html",[],function(){return'\n\n'}),define("deliteful/list/ItemRenderer",["dcl/dcl","requirejs-dplugins/jquery!attributes/classes","delite/register","delite/handlebars!./List/ItemRenderer.html","./Renderer"],function(a,b,c,d,e){var f=a(e,{baseClass:"d-list-item",template:d,attachedCallback:function(){"grid"===this.getParent().getAttribute("role")?(this.setAttribute("role","row"),this.renderNode.setAttribute("role","gridcell")):this.renderNode.setAttribute("role","option")}});return c("d-list-item-renderer",[HTMLElement,f])}),define("requirejs-text/text!deliteful/list/List/CategoryRenderer.html",[],function(){ +return'\n'}),define("deliteful/list/CategoryRenderer",["dcl/dcl","delite/register","delite/handlebars!./List/CategoryRenderer.html","./Renderer"],function(a,b,c,d){var e=a(d,{baseClass:"d-list-category",template:c,attachedCallback:function(){"grid"===this.getParent().getAttribute("role")?(this.setAttribute("role","row"),this.renderNode.setAttribute("role","columnheader")):(this.renderNode.removeAttribute("tabindex"),this.renderNode.setAttribute("role","heading"))}});return b("d-list-category-renderer",[HTMLElement,e])}),define("deliteful/features",["requirejs-dplugins/has","deliteful/channelBreakpoints"],function(a,b){if(void 0!==typeof window){var c=window.matchMedia("(min-device-width: "+b.smallScreen+")"),d=window.matchMedia("(min-device-width: "+b.mediumScreen+")");a.add("phone-like-channel",function(){return!c.matches&&!d.matches}),a.add("tablet-like-channel",function(){return c.matches&&!d.matches}),a.add("desktop-like-channel",function(){return c.matches&&d.matches})}return a}),define("deliteful/channelBreakpoints",["module"],function(a){var b=a.config();return{smallScreen:b.smallScreen||"480px",mediumScreen:b.mediumScreen||"1024px"}}),define("deliteful/ViewStack",["dcl/dcl","decor/sniff","requirejs-dplugins/Promise!","requirejs-dplugins/jquery!attributes/classes","delite/register","delite/DisplayContainer","delite/theme!./ViewStack/themes/{{theme}}/ViewStack.css","requirejs-dplugins/css!./ViewStack/transitions/slide.css","requirejs-dplugins/css!./ViewStack/transitions/reveal.css"],function(a,b,c,d,e,f){function g(a,b){a&&(b?(a.style.visibility="visible",a.style.display=""):(a.style.visibility="hidden",a.style.display="none"))}function h(a){a&&d(a).addClass("-d-view-stack-reverse")}function i(a){a&&(a.className=a.className.split(/ +/).filter(function(a){return!/^-d-view-stack/.test(a)}).join(" "))}function j(a){return"-d-view-stack-"+a}return e("d-view-stack",[HTMLElement,f],{baseClass:"d-view-stack",transition:"slide",reverse:!1,selectedChildId:"",_pendingChild:null,_setSelectedChildIdAttr:function(a){this.ownerDocument.getElementById(a)&&(this.attached?this.show(a):this._pendingChild=a)},_getSelectedChildIdAttr:function(){return this._visibleChild?this._visibleChild.id:""},attachedCallback:function(){var a={transition:"none"};this._pendingChild?(this.show(this._pendingChild,a),this._pendingChild=null):this.children.length>0&&this.show(this.children[0],a)},_timing:0,_setChildrenVisibility:function(){var a=this.children;!this._visibleChild&&a.length>0&&(this._visibleChild=a[0]);for(var b=0;b0&&(this._visibleChild=this.children[0]),this._visibleChild){var d=this._visibleChild[a];d&&(c=this.show(d,b))}return c},_doTransition:function(a,b,e,f,i){var k;return"none"!==f?(a&&(k=this._setAfterTransitionHandlers(a),d(a).addClass(j(f))),b&&(k=this._setAfterTransitionHandlers(b),d(b).addClass(j(f)+" -d-view-stack-in")),i&&(h(a),h(b)),this.defer(function(){b&&d(b).addClass("-d-view-stack-transition"),a&&d(a).addClass("-d-view-stack-transition -d-view-stack-out"),i&&(h(a),h(b)),b&&d(b).addClass("-d-view-stack-in")},this._timing)):a!==b&&g(a,!1),c.resolve(k)},changeDisplay:function(a,b){if(!a||a.parentNode!==this)return c.resolve();var d=this._visibleChild;i(d),i(a),g(a,!0),this._visibleChild=a;var e=d===a?"none":b.transition||this.transition,f="ltr"===this.effectiveDir?b.reverse:!b.reverse;return this._doTransition(d,a,b,e,f)},show:a.superCall(function(a){return function(c,d){for(var e=this;e&&"none"!==e.style.display&&e!==this.ownerDocument.body;)e=e.parentNode;return(9===b("ie")||e!==this.ownerDocument.body)&&(d||(d={}),d.transition="none"),this._visibleChild&&this._visibleChild.parentNode!==this&&(this._visibleChild=null),!this._visibleChild&&this.children.length>0&&(this._visibleChild=this.children[0]),a.apply(this,[c,d])}}),_setAfterTransitionHandlers:function(a){var b=this,e={node:a};return e.promise=new c(function(a){e.handle=function(){b._afterTransitionHandle(e,a)}}),d(this).addClass("-d-view-stack-transition"),a.addEventListener("webkitTransitionEnd",e.handle),a.addEventListener("transitionend",e.handle),e.promise},_afterTransitionHandle:function(a,b){if(a.promise.resolved)i(a.node),a.node!==this._visibleChild&&i(this._visibleChild),d(this).removeClass("-d-view-stack-transition");else{a.promise.resolved=!0;for(var c,e=0;ethis.offsetWidth/2;"rtl"===this.effectiveDir&&(b=!b),b?this.viewStack.showNext():this.viewStack.showPrevious({reverse:!0})}}.bind(this))},refreshRendering:function(a){"viewStack"in a&&(this._attachViewStack(),this._refreshDots())},_attachViewStack:function(){this._afterShowHandle&&(this._afterShowHandle.remove(),this._afterShowHandle=null),this.viewStack&&(this._afterShowHandle=this.on("delite-after-show",this._refreshDots.bind(this),this.viewStack))},_refreshDots:function(){this.innerHTML="";for(var a=0;a\n {{this.checked && this.checkedLabel ? this.checkedLabel : this.label}}\n\n'}),define("deliteful/ToggleButton",["dcl/dcl","delite/register","requirejs-dplugins/has","./Button","./Toggle","requirejs-dplugins/has!bidi?./ToggleButton/bidi/ToggleButton","delite/handlebars!./ToggleButton/ToggleButton.html","delite/theme!./ToggleButton/themes/{{theme}}/ToggleButton.css"],function(a,b,c,d,e,f,g){var h=a([d.Impl,e],{baseClass:"d-toggle-button",checkedLabel:"",checkedIconClass:"",template:g});return b("d-toggle-button",c("bidi")?[HTMLButtonElement,h,f]:[HTMLButtonElement,h])}),define("deliteful/Toggle",["dcl/dcl","requirejs-dplugins/jquery!attributes/classes","delite/CssState"],function(a,b,c){return a([c],{checked:!1,value:"on",attachedCallback:function(){var a=this.checked;this.valueNode&&this.valueNode.form&&this.on("reset",function(){this.defer(function(){this.checked=a})}.bind(this),this.valueNode.form)},postRender:function(){this.on("focus",function(){b(this).addClass("d-focused")}.bind(this),this.focusNode),this.on("blur",function(){b(this).removeClass("d-focused")}.bind(this),this.focusNode)},toggle:function(){this.disabled||(this.checked=!this.checked)}})}),define("requirejs-text/text!deliteful/Toaster/ToasterMessage.html",[],function(){return'\n'}),define("deliteful/ToasterMessage",["dcl/dcl","delite/Widget","delite/register","requirejs-dplugins/Promise!","requirejs-dplugins/jquery!attributes/classes","dpointer/events","delite/handlebars!./Toaster/ToasterMessage.html"],function(a,b,c,d,e,f,g){function h(a){return s[a]||t}function i(a){return"d-toaster-type-"+a}function j(a){return"number"!=typeof a||isNaN(a)?u:a}function k(a){var b=document.createElement("fakeelement");for(var c in a)if(void 0!==b.style[c])return a[c];return null}function l(a,b){var c=[x,y];c.forEach(function(c){if(c){var d={},e=function(a,c,d){return function(){b(a,c),d.handler.remove()}}(a,c,d);d.handler=a.on(c,e)}else b(a,c)})}var m=function(a,b){function c(b){h.startCapture(b),f.setPointerCapture(a,b.pointerId)}function d(a){h.hasStarted&&!h.hasEnded&&h.keepCapturing(a)}function e(a){h.hasStarted&&h.endCapture(a)}var g=function(a){function c(a){return{x:a.clientX,y:a.clientY}}function d(a,b){return b>a?1-1*a/b:0}function e(a,b){var c=b.distance();c>=0&&(a.style.left=c+"px",a.style.opacity=d(c,a.clientWidth))}function f(a){a.style.left="",a.style.opacity=""}function g(a){a.isExpirable()&&a._timer.pause()}function h(a){a.isExpirable()&&a._timer.resume()}var i=100,j=.85;this.gesture={trajectory:null,startTime:null,endTime:null,first:function(){return this.trajectory[0]},last:function(){var a=this.trajectory.length-1;return this.trajectory[a]},secondLast:function(){var a=this.trajectory.length-2;return this.trajectory[a]},distance:function(){return this.last().x-this.first().x},direction:function(){return this.last().x-this.secondLast().x>0?"right":"left"},duration:function(){return this.startTime&&this.endTime?this.endTime-this.startTime:void 0},speed:function(){return this.distance()/this.duration()},isLongEnough:function(){return this.distance()>i},isFastEnough:function(){return this.speed()>j},isDirectedToRight:function(){return"right"===this.direction()}},this.hasStarted=!1,this.hasEnded=!1,this.startCapture=function(b){this.hasStarted=!0,this.hasEnded=!1;var d=c(b);this.gesture.trajectory=[d],this.gesture.startTime=(new Date).getTime(),this.gesture.endTime=null,g(a)},this.keepCapturing=function(b){var d=c(b);this.gesture.trajectory.push(d),e(a,this.gesture)},this.endCapture=function(){this.hasStarted=!1,this.hasEnded=!0,this.gesture.endTime=(new Date).getTime(),this.gesture.isFastEnough()||this.gesture.isLongEnough()&&this.gesture.isDirectedToRight()?b():(f(a),h(a))}},h=new g(a);this.isEnabled=!1;var i,j,k;this.enable=function(){this.isEnabled=!0,i=a.on("pointerdown",c),j=a.on("pointermove",d),k=a.on("pointerup",e)},this.disable=function(){this.isEnabled&&(this.isEnabled=!1,i.remove(),j.remove(),k.remove())}},n=function(a){var b=new d(function(c,d){function e(a){h=Date.now(),g=setTimeout(function(){j=!0,c()},a)}function f(){var b=a-Date.now()+h;return b>=0?b:0}var g=null,h=null,i=null,j=!1;this.start=function(){return e(a),b},this.pause=function(){null!==g?(clearTimeout(g),g=null,i=f()):i=0},this.resume=function(){return e(i),b},this.destroy=function(){j||d()}}.bind(this))},o=function(a){function b(){d||(d=!0,a._timer.pause())}function c(){d&&(d=!1,a._timer.resume())}var d=!1;this.isEnabled=!1;var e;this.enable=function(){this.isEnabled=!0,e=[a.on("pointerover",b.bind(a)),a.on("pointerleave",c.bind(a)),a.on("pointercancel",c.bind(a))]},this.disable=function(){this.isEnabled&&(this.isEnabled=!1,e.forEach(function(a){a.remove()}),e=null)}},p="d-invisible",q="d-hidden",r="d-toaster-swipeout",s={info:"info",success:"success",warning:"warning",error:"error"},t=s.info,u=2e3,v={animation:"animationend","-webkit-animation":"webkitAnimationEnd","-ms-animation":"MSAnimationEnd"},w={transition:"transitionend","-webkit-transition":"webkitTransitionEnd"},x=k(v),y=k(w),z=a(b,{baseClass:"d-toaster-message",message:null,type:t,_setTypeAttr:function(a){var b=h(a);this.messageTypeClass=i(b),this._set("type",b)},duration:u,_setDurationAttr:function(a){var b=j(a);this._set("duration",b)},_dismissButton:null,dismissible:"auto",messageTypeClass:i(t),dismiss:function(a){var b=this.getParent();this._hideInDom(b,!!a,a)},_isInserted:!1,_hasExpired:!1,_toBeRemoved:!1,_isRemoved:!1,isExpirable:function(){return this.duration>=0},isDismissible:function(){return"auto"===this.dismissible?!this.isExpirable():"on"===this.dismissible},_timer:null,_insertInDom:function(a,b){var c=a._wrapper;if(this._isInserted=!0,b&&e(this).addClass(a.animationInitialClass),a.invertOrder&&c.hasChildNodes()){var d=c.childNodes[0];c.insertBefore(this,d)}else c.appendChild(this);this.attachedCallback(),this.isExpirable()&&(this._timer=new n(this.duration),this.own(this._timer),this._timer.start().then(function(){this._hasExpired=!0,a.notifyCurrentValue("messages")}.bind(this))),e(this._dismissButton).toggleClass(q,!this.isDismissible())},_showInDom:function(a,b){b?this.defer(function(){e(this).removeClass(a.animationInitialClass),e(this).addClass(a.animationEnterClass),l(this,function(b){e(b).removeClass(a.animationEnterClass),b.isDismissible()&&b.swipeToDismiss.enable()})},1):this.isDismissible()&&this.swipeToDismiss.enable(),this.isExpirable()&&this.pauseTimerOnHover.enable()},_hideInDom:function(a,b,c){var d=c||a.animationQuitClass;null!==a&&(this.swipeToDismiss.disable(),b?(e(this).addClass(d),l(this,function(b){b._toBeRemoved=!0,a.notifyCurrentValue("messages")})):(e(this).addClass(p),this._toBeRemoved=!0,a.notifyCurrentValue("messages"))),this.isExpirable()&&this.pauseTimerOnHover.disable()},_removeFromDom:function(a,b){e(this).removeClass(a.animationQuitClass),e(this).addClass(b?a.animationEndClass:q),a._wrapper.removeChild(this),this._isRemoved=!0},template:g,postRender:function(){this.swipeToDismiss=new m(this,function(){this.dismiss(r)}.bind(this)),null!==this._dismissButton&&this.on("pointerdown",function(){this.dismiss()}.bind(this),this._dismissButton),this.pauseTimerOnHover=new o(this)}});return c("d-toaster-message",[HTMLElement,z])}),define("requirejs-text/text!deliteful/Toaster/Toaster.html",[],function(){return'\n'}),define("deliteful/Toaster",["dcl/dcl","delite/Widget","delite/register","decor/sniff","delite/handlebars!./Toaster/Toaster.html","./ToasterMessage","delite/theme!./Toaster/themes/{{theme}}/Toaster.css"],function(a,b,c,d,e,f){function g(a){return a._toBeRemoved&&!a._isRemoved}var h=a(b,{_wrapper:null,baseClass:"d-toaster",placementClass:"d-toaster-placement-default",messages:null,invertOrder:!1,animationInitialClass:"d-toaster-initial",animationEnterClass:"d-toaster-fadein",animationQuitClass:"d-toaster-fadeout",animationEndClass:"d-toaster-fadefinish",_emitExpiration:function(a){this.emit("messageExpired",{message:a})},_emitInsertion:function(a){this.emit("messageInserted",{message:a})},_emitRemoval:function(a){this.emit("messageRemoved",{message:a})},_getRemovableMsg:function(){return this.messages.filter(g)},_allExpAreRemovable:function(){for(var a=0,b=this.messages.length;b>a;a++){var c=this.messages[a];if(c.isExpirable()&&!g(c))return!1}return!0},template:e,refreshRendering:function(a){"messages"in a&&(this.messages.forEach(function(a){a._isInserted?a.isExpirable()&&a._hasExpired&&!a._toBeRemoved&&(a._hideInDom(this,!0),this._emitExpiration(a)):(a._insertInDom(this,!0),a._showInDom(this,!0),this._emitInsertion(a))},this),this._allExpAreRemovable()&&this._getRemovableMsg().forEach(function(a){a._removeFromDom(this,!0),a.destroy(),this.messages.splice(this.messages.indexOf(a),1),this._emitRemoval(a)},this))},preRender:function(){this.messages=[]},postRender:function(){d("ios")||(this.setAttribute("aria-atomic","true"),this.setAttribute("role","alert"))},postMessage:function(b,c){var d;if("string"==typeof b){var e={message:b};a.mix(e,c),d=new f(e)}else d=b;return this._addMessage(d)},_addMessage:function(a){return this.messages.push(a),this.notifyCurrentValue("messages"),a}});return c("d-toaster",[HTMLElement,h])}),define("deliteful/Switch/bidi/Switch",["dcl/dcl","dpointer/events"],function(a){return a(null,{refreshRendering:function(a){("dir"in a||"textDir"in a||"checkedLabel"in a)&&(this._innerNode.firstChild.textContent=this.applyTextDirection(this.checkedLabel)),("dir"in a||"textDir"in a||"uncheckedLabel"in a)&&(this._innerNode.lastChild.textContent=this.applyTextDirection(this.uncheckedLabel)),this.title&&"textDir"in a&&(this.title=this.applyTextDirection(this.title))},postRender:function(){this.on("pointerover",this._pointerOverHandler.bind(this))},_pointerOverHandler:function(){this.title&&(this.title=this.applyTextDirection(this.title))}})}),define("requirejs-text/text!deliteful/Switch/Switch.html",[],function(){return'\n'}),define("deliteful/Switch",["requirejs-dplugins/has","requirejs-dplugins/jquery!attributes/classes","dpointer/events","delite/register","deliteful/Checkbox","delite/handlebars!./Switch/Switch.html","requirejs-dplugins/has!bidi?./Switch/bidi/Switch","delite/theme!./Switch/themes/{{theme}}/Switch.css"],function(a,b,c,d,e,f,g){return d("d-switch",a("bidi")?[HTMLElement,e,g]:[HTMLElement,e],{checkedLabel:"",uncheckedLabel:"",baseClass:"d-switch",template:f,postRender:function(){this.on("pointerdown",this._pointerDownHandler.bind(this),this._knobGlassNode),this.on("click",this._clickPreventer.bind(this),this._knobGlassNode)},destroy:function(){this._cleanHandlers()},_clickPreventer:function(a){a.preventDefault(),a.stopPropagation()},_pointerDownHandler:function(a){this.disabled||(this._startX=this._curX=a.clientX,c.setPointerCapture(this._knobGlassNode,a.pointerId),this._pHandlers||(this._pHandlers=[{e:"pointermove",l:this._pointerMoveHandler.bind(this)},{e:"pointerup",l:this._pointerUpHandler.bind(this)},{e:"lostpointercapture",l:this._lostPointerCaptureHandler.bind(this)}]),this._pHandlers.forEach(function(a){this._knobGlassNode.addEventListener(a.e,a.l)}.bind(this)),a.preventDefault(),a.stopPropagation())},_pointerMoveHandler:function(a){var c=a.clientX-this._curX,d=window.getComputedStyle(this._pushNode),e=parseInt(d.width,10);if(!this._drag&&Math.abs(a.clientX-this._startX)>4&&(this._drag=!0,b(this._innerNode).removeClass("-d-switch-transition"),b(this._pushNode).removeClass("-d-switch-transition"),b(this._innerWrapperNode).removeClass("-d-switch-transition")),this._curX=a.clientX,this._drag){this._knobWidth=parseInt(window.getComputedStyle(this._knobNode).width,10),this._switchWidth=parseInt(window.getComputedStyle(this).width,10);var f="ltr"===this.effectiveDir?e+c:e-c,g=this.checked?this._switchWidth:this._switchWidth-this._knobWidth,h=this.checked?this._knobWidth:0;f=Math.max(h,Math.min(g,f)),this._pushNode.style.width=f+"px"}a.preventDefault(),a.stopPropagation()},_pointerUpHandler:function(a){var b=this.checked;if(this._drag){this._drag=!1;var c=parseInt(window.getComputedStyle(this._pushNode).width,10),d=parseInt(window.getComputedStyle(this._pushNode).marginLeft,10);this.checked=c+d+this._knobWidth/2>=this._switchWidth/2}else this.checked=!this.checked;this.checked!==b&&this.emit("change"),a.preventDefault(),a.stopPropagation()},_lostPointerCaptureHandler:function(){this._cleanHandlers(),this._drag=!1,this._pushNode.style.width="",this._innerNode.style.transform="none",b(this._innerNode).addClass("-d-switch-transition"),b(this._pushNode).addClass("-d-switch-transition"),b(this._innerWrapperNode).addClass("-d-switch-transition")},_cleanHandlers:function(){this._pHandlers.forEach(function(a){this._knobGlassNode.removeEventListener(a.e,a.l)}.bind(this))}})}),define("deliteful/SwapView",["dcl/dcl","delite/register","delite/keys","requirejs-dplugins/jquery!attributes/classes","dpointer/events","./ViewStack","delite/theme!./SwapView/themes/{{theme}}/SwapView.css"],function(a,b,c,d,e,f){return b("d-swap-view",[HTMLElement,f],{baseClass:"d-swap-view",_dragThreshold:10,swapThreshold:.25,render:function(){e.setTouchAction(this,"pan-y")},attachedCallback:function(){this.hasAttribute("tabindex")||(this.tabIndex="0")},preRender:function(){d(this).addClass("d-view-stack")},postRender:function(){this.on("pointerdown",this._pointerDownHandler.bind(this)),this.on("pointermove",this._pointerMoveHandler.bind(this)),this.on("pointerup",this._pointerUpHandler.bind(this)),this.on("lostpointercapture",this._pointerUpHandler.bind(this)),this.on("pointercancel",this._pointerUpHandler.bind(this)),this.on("keydown",this._keyDownHandler.bind(this))},_pointerDownHandler:function(a){this._drag||(this._drag={start:a.clientX},e.setPointerCapture(a.target,a.pointerId))},_pointerMoveHandler:function(a){if(this._drag){var b=a.clientX-this._drag.start;if(!this._drag.started&&Math.abs(b)>this._dragThreshold){var c=this._visibleChild,e=("ltr"===this.effectiveDir?0>b:b>0)?c.nextElementSibling:c.previousElementSibling;e&&(this._drag.childOut=c,this._drag.childIn=e,this._drag.started=!0,this._drag.ended=!1,this._drag.reverse=b>0,d(this).addClass("-d-swap-view-drag"),e.style.visibility="visible",e.style.display="")}if(this._drag.started&&!this._drag.ended){var f=this._drag.rx=b/this.offsetWidth,g=this._drag.reverse?f:-f,h=Math.floor(100*(this._drag.reverse?1-g:g)),i=Math.floor(100*(this._drag.reverse?g:1-g)),j=this._drag.reverse?this._drag.childIn:this._drag.childOut,k=this._drag.reverse?this._drag.childOut:this._drag.childIn;this._setTranslation(j,-h),this._setTranslation(k,i)}}},_pointerUpHandler:function(){this._drag&&(this._drag.started?this._drag.ended||(this._drag.ended=!0,this._setupTransitionEndHandlers(),this._setTransitionProperties(this._drag.childIn),this._setTransitionProperties(this._drag.childOut),this._drag.reverse&&this._drag.rx>this.swapThreshold||!this._drag.reverse&&this._drag.rx<-this.swapThreshold?(this._setTranslation(this._drag.childIn,0),this._setTranslation(this._drag.childOut,this._drag.reverse?100:-100)):(this._drag.slideBack=!0,this._setTranslation(this._drag.childIn,this._drag.reverse?-100:100),this._setTranslation(this._drag.childOut,0))):this._drag=null)},_keyDownHandler:function(a){switch(a.keyCode){case c.PAGE_UP:this.showNext();break;case c.PAGE_DOWN:this.showPrevious({reverse:!0})}},_setupTransitionEndHandlers:function(){this._endTransitionHandler||(this._endTransitionHandler=function(){this._endTransitionHandler&&(this._addTransitionEndHandlers(this._drag.childIn,!1),this._addTransitionEndHandlers(this._drag.childOut,!1),this._endTransitionHandler=null),this._endTransition()}.bind(this),this._addTransitionEndHandlers(this._drag.childIn,!0),this._addTransitionEndHandlers(this._drag.childOut,!0))},_endTransition:function(){this._drag&&(d(this).removeClass("-d-swap-view-drag"),this._drag.slideBack?(this._drag.childIn.style.visibility="hidden",this._drag.childIn.style.display="none"):(this._drag.childOut.style.visibility="hidden",this._drag.childOut.style.display="none",this.show(this._drag.childIn,{transition:"none"})),this._clearTransitionProperties(this._drag.childIn),this._clearTransitionProperties(this._drag.childOut),this._clearTranslation(this._drag.childIn),this._clearTranslation(this._drag.childOut),this._drag=null)},_addTransitionEndHandlers:function(a,b){var c=(b?"add":"remove")+"EventListener";a[c]("webkitTransitionEnd",this._endTransitionHandler),a[c]("transitionend",this._endTransitionHandler)},_setTransitionProperties:function(a){a.style.webkitTransitionProperty="-webkit-transform",a.style.transitionProperty="transform",a.style.webkitTransitionDuration="0.3s",a.style.mozTransitionDuration="0.3s",a.style.transitionDuration="0.3s"},_clearTransitionProperties:function(a){a.style.webkitTransitionProperty="",a.style.transitionProperty="",a.style.webkitTransitionDuration="",a.style.mozTransitionDuration="",a.style.transitionDuration=""},_setTranslation:function(a,b){var c="translate3d("+b+"%, 0, 0)";a.style.webkitTransform=c,a.style.transform=c},_clearTranslation:function(a){a.style.webkitTransform="",a.style.transform=""}})}),define("deliteful/Store",["dcl/dcl","delite/register","delite/CustomElement","dstore/Memory","dstore/Trackable"],function(a,b,c,d,e){var f=d.createSubclass([e],{}),g=["add","remove","put","delete","refresh","update"];return b("d-store",[HTMLElement,c],{createdCallback:function(){this.style.display="none"},attachedCallback:function(){for(var b=new f,c=JSON.parse("["+this.textContent+"]"),d=0;d(this.allowZero?0:this.editHalfValues?.5:1)&&(this.value=this.value-(this.editHalfValues?.5:1))},_updateStars:function(a,b){var c=this.focusNode.querySelectorAll("div");b&&(this._zeroSettingArea=this.ownerDocument.createElement("div"),this._zeroSettingArea.className=this.baseClass+"-zero",this._zeroSettingArea.value=0,this.focusNode.appendChild(this._zeroSettingArea),this._updateZeroArea());for(var d=0;d<2*this.max;d++){var e=this.baseClass+(d%2?"-end ":"-start "); +if(e+=a>=.5*(d+1)?this.baseClass+"-full":this.baseClass+"-empty",b){var f=this.ownerDocument.createElement("div");f.value=this.editHalfValues?(d+1)/2:Math.ceil((d+1)/2),this.focusNode.appendChild(f)}else f=c[d+1];f.className=this.baseClass+"-star-icon "+e}},_updateZeroArea:function(){this.readOnly||!this.allowZero?(d(this._zeroSettingArea).addClass("d-hidden"),delete this.focusNode.value):(d(this._zeroSettingArea).removeClass("d-hidden"),this.focusNode.value=0)}})}),define("requirejs-text/text!deliteful/Slider/Slider.html",[],function(){return'\n'}),define("deliteful/Slider",["requirejs-dplugins/jquery!attributes/classes","delite/keys","dpointer/events","delite/register","delite/FormValueWidget","delite/CssState","delite/handlebars!./Slider/Slider.html","delite/theme!./Slider/themes/{{theme}}/Slider.css"],function(a,b,c,d,e,f,g){function h(a){var b=a.getBoundingClientRect();return{x:b.left,y:b.top,w:b.right-b.left,h:b.bottom-b.top}}return d("d-slider",[HTMLElement,e,f],{min:0,max:100,step:1,slideRange:!0,vertical:!1,flip:!1,baseClass:"d-slider",_orientationNames:{"false":{start:"x",size:"w",clientStart:"clientX",progressBarStart:"left",progressBarSize:"width"},"true":{start:"y",size:"h",clientStart:"clientY",progressBarStart:"top",progressBarSize:"height"}},_propNames:null,_reversed:!1,template:g,render:d.superCall(function(a){return function(){this.valueNode=this.querySelector("input")||this.ownerDocument.createElement("input"),a.call(this),this.appendChild(this.valueNode),this.handleMin.setAttribute("aria-valuemin",this.min),this.focusNode.setAttribute("aria-valuemax",this.max),this.tabStops="handleMin,focusNode",this.handleMin._isActive=!0,c.setTouchAction(this,"none")}}),_refreshOrientation:function(){this.focusNode.setAttribute("aria-orientation",this.vertical?"vertical":"horizontal"),this.handleMin._isActive&&this.handleMin.setAttribute("aria-orientation",this.vertical?"vertical":"horizontal"),this._propNames=this._orientationNames[this.vertical]},_refreshCSS:function(){function b(a,b){return a.split(/ /).map(function(a){return a+b}).join(" ")}var c=b(this.baseClass,this.vertical?"-v":"-h"),d=this.baseClass+" "+c;a(this).removeClass(b(this.baseClass+"-v "+this.baseClass+"-h","-htl")+" "+b(this.baseClass+"-v "+this.baseClass+"-h","-lth")+" "+this.baseClass+"-v "+this.baseClass+"-h"),a(this).addClass(c+" "+b(d,this._reversed?"-htl":"-lth")),this.containerNode.className=b(d,"-bar")+" "+b(d,"-container"),this.progressBar.setAttribute("style",""),this.progressBar.className=b(d,"-bar")+" "+b(d,"-progress-bar"),this.focusNode.className=b(d,"-handle")+" "+b(d,"-handle-max"),this.handleMin._isActive&&(this.handleMin.className=b(d,"-handle")+" "+b(d,"-handle-min"))},computeProperties:function(a){if("value"in a||"min"in a||"max"in a||"step"in a){var b=this._getValueAsArray(),c=b.length>1,d=this._convert2Float(b[0],this._calculateDefaultValue(c?.25:.5)),e=this._convert2Float(b[b.length-1],this._calculateDefaultValue(c?.75:.5)),f=Math.max(d,e);d=Math.min(d,e),e=f,d=this._adjustValue(d,this.min),e=this._adjustValue(e,d),this.value=c?d+","+e:String(e)}if("vertical"in a||"flip"in a||"effectiveDir"in a){var g="ltr"===this.effectiveDir;this._reversed=!(!this.vertical&&g!==this.flip||this.vertical&&this.flip)}},refreshRendering:function(a){if("value"in a&&this._refreshValueRendering(),"vertical"in a&&this._refreshOrientation(),"name"in a){var b=this.name;this.removeAttribute("name"),this.valueNode.setAttribute("name",b)}"max"in a&&this.focusNode.setAttribute("aria-valuemax",this.max),"min"in a&&(this.handleMin._isActive?this.handleMin:this.focusNode).setAttribute("aria-valuemin",this.min),("baseClass"in a||"vertical"in a||"_reversed"in a)&&this._refreshCSS(),this._positionHandles()},_positionHandles:function(){var a=this._getValueAsArray();1===a.length&&(a=[this.min,a[0]]);var b=100*(a[1]-this.min)/(this.max=a?1:a)},_convert2Float:function(a,b){var c=parseFloat(a);return isNaN(c)||c===1/0?b:c},_calculateDefaultValue:function(a){return this.maxb?Math.min(this.max,c):c}return a=Math.max(b,a),a=Math.min(this.max>this.min?this.max:this.min,a)},_getValueAsArray:function(){return String(this.value).split(/,/g)},pointerDownHandler:function(a){if(!this._ignoreUserInput(a)){this._pointerCtx.target=null,this._pointerCtx.offsetVal=0,this._pointerCtx.containerBox=h(this.containerNode);var b=this._getValueAsArray(),d=this._selectedValue(a,this._pointerCtx.containerBox);if(this._startSlideRange(a))this._pointerCtx.target=this.progressBar,this._pointerCtx.offsetVal=d-b[0];else{var e=Math.abs(d-b[1])-Math.abs(d-b[0]);0!==e||a.target!==this.focusNode&&a.target!==this.handleMin?(0===e&&(e=b[0]-Math.min(this.max-this.step,Math.max(this.min+this.step,d))),this._pointerCtx.target=e>0?this.handleMin:this.focusNode):this._pointerCtx.target=document.elementFromPoint(a.clientX,a.clientY),this._pointerCtx.target.focus(),a.target!==this.focusNode&&a.target!==this.handleMin&&this.handleOnInput(this._formatSelection(d,this._pointerCtx.target))}(a.target===this.focusNode||a.target===this.handleMin)&&(this._pointerCtx.offsetVal=d-b[this.handleMin._isActive&&this._pointerCtx.target===this.focusNode?1:0]),c.setPointerCapture(this._pointerCtx.target,a.pointerId),a.stopPropagation()}},pointerMoveHandler:function(a){a.target===this._pointerCtx.target&&(this.handleOnInput(this._formatSelection(this._selectedValue(a,this._pointerCtx.containerBox)-this._pointerCtx.offsetVal,a.target)),a.stopPropagation())},lostCaptureHandler:function(){this._pointerCtx.target=null,this.handleOnChange(this.value)},keyDownHandler:function(a){if(!this._ignoreUserInput(a)){var c,d=this._getValueAsArray(),e=a.target===this.focusNode?d.length-1:0,f=1;switch(a.keyCode){case b.HOME:c=[this.min,d[0]][e];break;case b.END:c=a.target===this.handleMin?d[1]:this.max;break;case b.RIGHT_ARROW:f=-1;case b.LEFT_ARROW:c=parseFloat(d[e])+f*(this.flip&&!this.vertical?this.step:-this.step);break;case b.DOWN_ARROW:f=-1;case b.UP_ARROW:c=parseFloat(d[e])+f*(this.flip&&this.vertical?-this.step:this.step);break;default:return}this.handleOnInput(this._formatSelection(c,a.target)),a.preventDefault()}},keyUpHandler:function(a){this._ignoreUserInput(a)||(a.target===this.focusNode||a.target===this.handleMin)&&this.handleOnChange(this.value)},_ignoreUserInput:function(a){return this.disabled||this.readOnly||a.altKey||a.ctrlKey||a.metaKey},_startSlideRange:function(a){if(!this.slideRange||!this.handleMin._isActive||a.target===this.focusNode||a.target===this.handleMin)return!1;var b=h(this.progressBar),c=a[this._propNames.clientStart]-b[this._propNames.start],d=b[this._propNames.size];return c>=0&&d>=c},_selectedValue:function(a,b){function c(a,b,c,d,e){return(a-b)*(e-d)/(c-b)+d}var d=b[this._propNames.size],e=a[this._propNames.clientStart]-b[this._propNames.start];return Math.round(c(e,this._reversed?d:0,this._reversed?0:d,this.min,this.max)/this.step)*this.step},_formatSelection:function(a,b){var c=this._getValueAsArray(),d=a;switch(b){case this.focusNode:d=1===c.length?String(a):Math.min(c[0],a)+","+a;break;case this.handleMin:d=a+","+Math.max(c[1],a);break;case this.progressBar:var e=c[1]-c[0];a=Math.max(this.min,Math.min(a+e,this.max)-e),d=a+","+(a+e)}return d}})}),define("deliteful/SidePane",["dcl/dcl","dpointer/events","requirejs-dplugins/jquery!attributes/classes","decor/sniff","delite/register","delite/DisplayContainer","requirejs-dplugins/Promise!","delite/theme!./SidePane/themes/{{theme}}/SidePane.css"],function(a,b,c,d,e,f,g){function h(a){return"-d-side-pane-"+a}function i(a,b){b?(a.style.visibility="visible",a.style.display="block"):(a.style.visibility="hidden",a.style.display="none")}function j(a){do a=a.nextElementSibling;while(a&&1!==a.nodeType);return a}return e("d-side-pane",[HTMLElement,f],{baseClass:"d-side-pane",mode:"push",position:"start",animate:!0,swipeClosing:!0,_transitionTiming:{"default":0,chrome:50,ios:20,android:100,mozilla:100},_timing:0,_visible:!1,_opening:!1,_originX:NaN,_originY:NaN,attachedCallback:function(){this.parentNode.style.overflow="hidden"},show:a.superCall(function(a){return function(){return arguments.length>0?a.apply(this,arguments).then(function(a){return this._open().then(function(){return a})}.bind(this)):this._open()}}),hide:a.superCall(function(a){return function(){return arguments.length>0?a.apply(this,arguments).then(function(a){return this._close().then(function(){return a})}.bind(this)):this._close()}}),toggle:function(){return this._visible?this.hide():this.show()},_open:function(){var a,b=j(this),e=this.animate&&9!==d("ie");return this._visible||(e&&(c(this).addClass(h("animate")),b&&c(b).addClass(h("animate"))),"reveal"===this.mode?b&&(a=this._setAfterTransitionHandlers(b)):a=this._setAfterTransitionHandlers(this),i(this,!0),e?this.defer(this._openImpl,this._timing):(this._openImpl(),a=new g(function(a){this.defer(a,this._timing)}.bind(this)))),a||g.resolve(!0)},_close:function(){var a;if(this._visible){if("reveal"===this.mode){var b=j(this);b&&(a=this._setAfterTransitionHandlers(b))}else a=this._setAfterTransitionHandlers(this);this.animate&&9!==d("ie")?this.defer(function(){this._hideImpl()},this._timing):(this._hideImpl(),i(this,!1))}return a||g.resolve(!0)},_setAfterTransitionHandlers:function(a){var b=this,c={node:a},d=new g(function(a){c.handle=function(){b._afterTransitionHandle(c,a)}});return a.addEventListener("webkitTransitionEnd",c.handle),a.addEventListener("transitionend",c.handle),d},_afterTransitionHandle:function(a,b){c(this).removeClass(h("under")),this._visible||i(this,!1),a.node.removeEventListener("webkitTransitionEnd",a.handle),a.node.removeEventListener("transitionend",a.handle),b()},postRender:function(){i(this,!1),this.notifyCurrentValue("mode","position")},preRender:function(){this._transitionTiming={"default":0,chrome:20,ios:20,android:100,mozilla:100};for(var a in this._transitionTiming)d(a)&&this._timing=this.ownerDocument.width-10)&&(this._opening=!this._visible,this._pressHandle.remove(),this._moveHandle=this.on("pointermove",this._pointerMoveHandler.bind(this)),this._releaseHandle=this.on("pointerup",this._pointerUpHandler.bind(this)),c(this.ownerDocument.body).addClass(h("no-select")))},_pointerMoveHandler:function(a){if(!this._opening&&Math.abs(a.pageY-this._originY)>10)this._resetInteractions();else{var b=a.pageX;this._isLeft()?this._visible&&(this._originX10&&(this._close(),this._originX=b)):this._visible&&(this._originX>b&&(this._originX=b),(this.swipeClosing&&b-this._originX)>10&&(this._close(),this._originX=b))}},_pointerUpHandler:function(){this._opening=!1,c(this.ownerDocument.body).removeClass(h("no-select")),this._resetInteractions()},_resetInteractions:function(){this._releaseHandle&&this._releaseHandle.remove(),this._moveHandle&&this._moveHandle.remove(),this._pressHandle&&this._pressHandle.remove(),this.swipeClosing&&(this._pressHandle=this.on("pointerdown",this._pointerDownHandler.bind(this))),this._originX=NaN,this._originY=NaN}})}),define("requirejs-text/text!deliteful/Select/Select.html",[],function(){return'\n'}),define("deliteful/Select",["dcl/dcl","requirejs-dplugins/jquery!attributes/classes","decor/sniff","delite/register","delite/FormWidget","delite/StoreMap","delite/Selection","delite/handlebars!./Select/Select.html","delite/theme!./Select/themes/{{theme}}/Select.css"],function(a,b,c,d,e,f,g,h){return d("d-select",[HTMLElement,e,f,g],{size:0,textAttr:"text",valueAttr:"value",disabledAttr:"disabled",baseClass:"d-select",template:h,attachedCallback:function(){this.valueNode.form&&this.on("reset",function(){this.defer(function(){this.valueNode.selectedIndex="single"===this.selectionMode?0:-1,this.value=this.valueNode.value})}.bind(this),this.valueNode.form),this.on("focus",function(a){b(this).toggleClass("d-select-focus","focus"===a.type)}.bind(this),this.valueNode),this.on("blur",function(a){b(this).toggleClass("d-select-focus","focus"===a.type)}.bind(this),this.valueNode),this.on("change",function(a){this._duringInteractiveSelection=!0;var b=this.selectedItems,c=this.valueNode.selectedOptions;if(void 0===c){var d=Array.prototype.slice.call(this.valueNode.options);c=d.filter(function(a){return a.selected})}else c=Array.prototype.slice.call(c);var e,f,g,h=b?b.length:0,i=c?c.length:0;for(e=0;h>e;e++)g=b[e],-1===c.indexOf(g.__visualItem)&&this.selectFromEvent(a,g,g.__visualItem,!0);for(e=0;i>e;e++)f=c[e],-1===b.indexOf(f.__dataItem)&&this.selectFromEvent(a,f.__dataItem,f,!0);this._set("value",this.valueNode.value),this._duringInteractiveSelection=!1}.bind(this),this.valueNode)},hasSelectionModifier:function(){return"multiple"===this.selectionMode},refreshRendering:function(a){if("renderItems"in a){var b=this.renderItems,d=b?b.length:0;if(this.valueNode.innerHTML="",d>0){for(var e,f,g=this.ownerDocument.createDocumentFragment(),h=0;d>h;h++)e=b[h],f=this.ownerDocument.createElement("option"),f.__dataItem=e.__item,f.__dataItem.__visualItem=f,void 0!==e.text&&(f.text=e.text),void 0!==e.value?f.setAttribute("value",e.value):c("ie")&&void 0!==e.text&&f.setAttribute("value",e.text),this.isSelected(e.__item)&&f.setAttribute("selected","true"),void 0!==e.disabled&&e.disabled&&"false"!==e.disabled&&f.setAttribute("disabled","true"),g.appendChild(f);this.valueNode.appendChild(g),"single"===this.selectionMode&&(this.selectedItem=this.valueNode.options[this.valueNode.selectedIndex].__dataItem),this._set("value",this.valueNode.value)}}},getIdentity:function(a){return this.store.getIdentity(a)},updateRenderers:function(){this._duringInteractiveSelection||this.notifyCurrentValue("renderItems")},_setValueAttr:function(a){this.valueNode&&(this.valueNode.value=a),this._set("value",a)},_setSelectionModeAttr:a.superCall(function(a){return function(b){if("single"!==b&&"multiple"!==b)throw new TypeError("'"+b+"' not supported for selectionMode; keeping the previous value of '"+this.selectionMode+"'");this._set("selectionMode",b),a.call(this,b)}})})}),define("deliteful/ScrollableContainer",["delite/register","delite/Container","delite/Scrollable"],function(a,b,c){return a("d-scrollable-container",[HTMLElement,b,c],{baseClass:"d-scrollable-container"})}),define("deliteful/ResponsiveColumns",["requirejs-dplugins/jquery!attributes/classes","delite/register","delite/DisplayContainer","./channelBreakpoints","delite/theme!./ResponsiveColumns/themes/{{theme}}/ResponsiveColumns.css"],function(a,b,c,d){return b("d-responsive-columns",[HTMLElement,c],{baseClass:"d-responsive-columns",breakpoints:"{'small': '"+d.smallScreen+"', 'medium': '"+d.mediumScreen+"', 'large': ''}",screenClass:"",preRender:function(){this._breakpoints={},this._layouts=[],this._mqls=[],a(this).addClass("-d-responsive-columns-"+this.widgetId)},postRender:function(){this.notifyCurrentValue("breakpoints")},_removeListeners:function(){for(var a=0;a *:nth-child("+(o+1)+"){",f=this._layouts[o][d[b]],"hidden"===f?j+="display: none;":"fill"===f?(j+="-webkit-box-flex: 1;",j+="-moz-box-flex: 1;",j+="-webkit-flex: 1;",j+="-ms-flex: 1;",j+="flex: 1;"):j+="width: "+f+";",j+="}";j+="}",g=window.matchMedia(k),h=function(a){a.matches&&(this.target.screenClass=this["class"],this.target.emit("change",{screenClass:this["class"],mediaQueryList:g}))}.bind({"class":d[b],mql:g,target:this}),g.addListener(h),this._mqls.push({mql:g,listener:h}),g.matches&&(this.screenClass=d[b])}var p="d-responsive-columns-generated-style-"+this.widgetId,q=this.ownerDocument.getElementById(p);q||(q=this.ownerDocument.createElement("style"),q.id=p,this.ownerDocument.head.appendChild(q)),q.innerHTML=j},onAddChild:function(a){this.notifyCurrentValue("breakpoints")},refreshRendering:function(a){"breakpoints"in a&&this._parseJSONAttrs()&&this._checkConfiguration()&&this._genCSS()}})}),define("requirejs-text/text!deliteful/RadioButton/RadioButton.html",[],function(){return'\n'}),define("deliteful/RadioButton",["delite/register","./Checkbox","delite/handlebars!./RadioButton/RadioButton.html","delite/theme!./RadioButton/themes/{{theme}}/RadioButton.css"],function(a,b,c){return a("d-radio-button",[HTMLElement,b],{baseClass:"d-radio-button",template:c,_inputClickHandler:a.superCall(function(a){return function(b){a.call(this,b),this.deliver()}}),toggle:a.superCall(function(a){return function(){this.checked||a.call(this)}}),refreshRendering:function(a){if("checked"in a&&this.checked){if(!this._related){var b=(this.valueNode.form||this.ownerDocument).querySelectorAll("input[type='radio'][name='"+this.name+"']");this._related=Array.prototype.filter.call(b,function(a){return a!==this.valueNode&&a.form===this.valueNode.form}.bind(this)).map(this.getEnclosingWidget.bind(this))}this._related.forEach(function(a){a.checked=!this.checked}.bind(this))}"name"in a&&delete this._related}})}),define("requirejs-text/text!deliteful/ProgressIndicator/ProgressIndicator.html",[],function(){return'\n\n'}),define("deliteful/ProgressIndicator",["dcl/dcl","delite/register","delite/Widget","delite/handlebars!./ProgressIndicator/ProgressIndicator.html","delite/theme!./ProgressIndicator/themes/{{theme}}/ProgressIndicator.css"],function(a,b,c,d){return b("d-progress-indicator",[HTMLElement,c],{active:!1,value:NaN,speed:"normal",baseClass:"d-progress-indicator",_requestId:0,_lapsTime:1e3,_requestAnimationFunction:window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.webkitRequestAnimationFrame&&window.webkitRequestAnimationFrame.bind(window)||function(a){return this.defer(a,1e3/60)},_cancelAnimationFunction:(window.cancelAnimationFrame||window.webkitCancelRequestAnimationFrame||function(a){a.remove()}).bind(window),_requestRendering:function(a){return this._requestAnimationFunction.call(this,a)},_cancelRequestRendering:function(a){return this._cancelAnimationFunction(a)},_reset:function(){this._requestRendering(function(){this.msgNode.textContent="";for(var a=0;12>a;a++)this.lineNodeList[a].style.opacity=(a+1)*(1/12)}.bind(this))},_stopAnimation:function(){this._requestId&&(this._cancelRequestRendering(this._requestId),this._requestId=0)},_startAnimation:function(){if(!this._requestId){this._reset();var a=16.7/this._lapsTime,b=function(){for(var c,d=0;12>d;d++)c=(parseFloat(this.lineNodeList[d].style.opacity)-a)%1,this.lineNodeList[d].style.opacity=0>c?1:c;this._requestId=this._requestRendering(b)}.bind(this);this._requestId=this._requestRendering(b)}},template:d,render:a.after(function(){this.lineNodeList=this.linesNode.querySelectorAll("line")}),attachedCallback:function(){var a=this.baseClass+"-"+this.widgetId+"-symbol";this.querySelector("symbol").id=a,this.querySelector("use").setAttributeNS("http://www.w3.org/1999/xlink","xlink:href","#"+a),this.svgNode.style.width="100%",this.svgNode.style.height="100%",this.svgNode.style.textAnchor="middle",this.style.color=window.getComputedStyle(this.msgNode).getPropertyValue("fill");var b=window.getComputedStyle(this).getPropertyValue("color");this.style.color!==b&&(this.linesNode.style.stroke=b,this.msgNode.style.fill=b,this.msgNode.textContent=this.msgNode.textContent),this._reset()},computeProperties:function(a){var b=null;"speed"in a&&(b="fast"===this.speed?500:"slow"===this.speed?2e3:1e3,this._lapsTime!==b&&(this._lapsTime=b)),"value"in a&&!isNaN(this.value)&&(b=Math.max(Math.min(this.value,100),0),this.value!==b&&(this.value=b))},refreshRendering:function(a){"value"in a&&(isNaN(this.value)?this.active&&this._startAnimation():(this._stopAnimation(),this._requestRendering(function(){this.msgNode.textContent=Math.floor(this.value);for(var a,b=.2,c=0;12>c;c++)a=Math.min(Math.max(.12*this.value-c,0),1)*(1-b),this.lineNodeList[c].style.opacity=b+a}.bind(this)))),"speed"in a&&this._requestId&&(this._stopAnimation(),this._startAnimation()),"active"in a&&(this.active?isNaN(this.value)&&this._startAnimation():this._stopAnimation(),this._requestRendering(function(){this.style.visibility=this.active?"visible":"hidden"}.bind(this)))},destroy:function(){this._stopAnimation()}})}),define("requirejs-text/text!deliteful/ProgressBar/ProgressBar.html",[],function(){return'\n'}),define("deliteful/ProgressBar",["dcl/dcl","requirejs-dplugins/jquery!attributes/classes","ecma402/IntlShim","delite/register","delite/Widget","delite/handlebars!./ProgressBar/ProgressBar.html","delite/theme!./ProgressBar/themes/{{theme}}/ProgressBar.css"],function(a,b,c,d,e,f){return d("d-progress-bar",[HTMLElement,e],{value:NaN,max:1,position:-1,message:"",displayExtMsg:!1,fractionDigits:0,baseClass:"d-progress-bar",template:f,render:a.after(function(){this.setAttribute("aria-valuemin",0)}),computeProperties:function(a){if("max"in a){var b=this._convert2Float(this.max,1);0>=b&&(b=1),b!==this.max&&(this.max=b)}if("value"in a&&!isNaN(this.value)){var c=this._convert2Float(this.value,0);c=Math.max(0,Math.min(this.max,c)),c!==this.value&&(this.value=c)}this.position=isNaN(this.value)?-1:this.value/this.max},refreshRendering:function(a){"max"in a&&this.setAttribute("aria-valuemax",this.max),("value"in a||"max"in a)&&(-1===this.position?(this.indicatorNode.style.removeProperty("width"),this.removeAttribute("aria-valuenow")):(this.indicatorNode.style.width=100*this.position+"%",this.msgInvertNode.style.width=window.getComputedStyle(this.msgNode).getPropertyValue("width"),this.setAttribute("aria-valuenow",this.value))),this.msgNode.innerHTML=this.msgInvertNode.innerHTML=this.formatMessage(this.position,this.value,this.max);var c=this.displayExtMsg&&-1!==this.position;b(this.msgNode).toggleClass(this.baseClass+"-msg-ext",c),c?this.msgNode.setAttribute("msg-ext",this.formatExtMsg(this.position,this.value,this.max)):this.msgNode.removeAttribute("msg-ext"),this.message&&-1===this.position?this.setAttribute("aria-valuetext",this.message):this.removeAttribute("aria-valuetext"),b(this).toggleClass(this.baseClass+"-indeterminate",-1===this.position)},postRender:function(){this.notifyCurrentValue("value","max")},formatMessage:function(a,b,d){if(!this._numberFormat||this._prevLang!==this.lang||this._numberFormat.resolvedOptions().minimumFractionDigits!==this.fractionDigits){var e={style:"percent",minimumFractionDigits:this.fractionDigits,maximumFractionDigits:this.fractionDigits};this._numberFormat=new c.NumberFormat(this.lang||void 0,e),this._prevLang=this.lang}return this.message?this.message:isNaN(b)?"":this._numberFormat.format(a)},formatExtMsg:function(a,b,c){return b+"/"+c},_convert2Float:function(a,b){var c=parseFloat(a);return(isNaN(c)||c===1/0)&&(c=b),c}})}),define("deliteful/LinearLayout",["requirejs-dplugins/jquery!attributes/classes","delite/register","delite/DisplayContainer","delite/theme!./LinearLayout/themes/{{theme}}/LinearLayout.css"],function(a,b,c){return b("d-linear-layout",[HTMLElement,c],{baseClass:"d-linear-layout",vertical:!0,refreshRendering:function(b){"vertical"in b&&(a(this).toggleClass("-d-linear-layout-v",this.vertical),a(this).toggleClass("-d-linear-layout-h",!this.vertical))},postRender:function(){this.notifyCurrentValue("vertical")}})}),define("deliteful/Combobox/nls/Combobox",{root:{"multiple-choice":"multiple choice","multiple-choice-no-selection":"Select option(s)","search-placeholder":"Search","ok-button-label":"OK","cancel-button-label":"Cancel"}}),define("requirejs-text/text!deliteful/Combobox/ComboPopup.html",[],function(){return'\n'; +}),define("deliteful/Combobox/ComboPopup",["delite/register","requirejs-dplugins/jquery!attributes/classes","delite/Widget","delite/handlebars!./ComboPopup.html"],function(a,b,c,d){return a("d-combo-popup",[HTMLElement,c],{baseClass:"d-combo-popup",template:d,combobox:null,refreshRendering:function(a){if("combobox"in a&&this.combobox){var c=this.combobox.list;c&&(c.placeAt(this.listNode,"replace"),b(c).addClass("fill")),this.combobox._prepareInput(this.inputNode)}},okHandler:function(){this.combobox._validateMultiple(this.combobox.inputNode),this.combobox.closeDropDown()},cancelHandler:function(){this.combobox.list.selectedItems=this.combobox._selectedItems,this.combobox.closeDropDown()}})}),define("requirejs-text/text!deliteful/Combobox/Combobox.html",[],function(){return'\n'}),define("deliteful/Combobox",["dcl/dcl","requirejs-dplugins/jquery!attributes/classes,event","dstore/Filter","decor/sniff","delite/register","delite/FormValueWidget","delite/HasDropDown","delite/keys","./list/List","./features!desktop-like-channel?:./Combobox/ComboPopup","delite/handlebars!./Combobox/Combobox.html","requirejs-dplugins/i18n!./Combobox/nls/Combobox","delite/theme!./Combobox/themes/{{theme}}/Combobox.css"],function(a,b,c,d,e,f,g,h,i,j,k,l){return e("d-combobox",[HTMLElement,g,f],{baseClass:"d-combobox",template:k,autoFilter:!1,filterMode:"startsWith",ignoreCase:!0,selectionMode:"single",list:null,_inputReadOnly:!0,searchPlaceHolder:l["search-placeholder"],multipleChoiceMsg:l["multiple-choice"],multipleChoiceNoSelectionMsg:l["multiple-choice-no-selection"],okMsg:l["ok-button-label"],cancelMsg:l["cancel-button-label"],preRender:function(){this.list=new i,this._defaultList=this.list},refreshRendering:function(a){var b=!1;"list"in a&&this._initList(),"selectionMode"in a&&(b=!0,this.list&&(this.list.selectionMode="single"===this.selectionMode?"radio":"multiple")),("autoFilter"in a||"readOnly"in a)&&(b=!0),b&&(this._updateInputReadOnly(),this._setSelectable(this.inputNode,!this.inputNode.readOnly))},_updateInputReadOnly:function(){var a=this._inputReadOnly;this._inputReadOnly=this.readOnly||!this.autoFilter||this._useCenteredDropDown()||"multiple"===this.selectionMode,this._inputReadOnly===a&&this.notifyCurrentValue("_inputReadOnly")},_setSelectable:function(a,c){c?(a.removeAttribute("unselectable"),b(a).css("user-select","").off("selectstart",!1)):(a.setAttribute("unselectable","on"),b(a).css("user-select","none").on("selectstart",!1))},attachedCallback:function(){if(this.valueNode.form&&this.on("reset",function(){this.defer(function(){(this.value!==this.valueNode.value||"multiple"===this.selectionMode)&&this._initValue()})}.bind(this),this.valueNode.form),this.list===this._defaultList){var a=this.querySelector("d-list");a?a.attached?this.list=a:a.addEventListener("customelement-attached",this._attachedlistener=function(){a.removeEventListener("customelement-attached",this._attachedlistener),this.list=a,this.deliver()}.bind(this)):this.notifyCurrentValue("list")}delete this._defaultList},_initList:function(){this.list.attached||this.list.attachedCallback(),b(this.list).addClass("d-combobox-list"),b(this.list).addClass("d-combobox-list-hidden"),this.list.setAttribute("role","listbox"),this.list.focusDescendants=!1,this.list.selectionMode="single"===this.selectionMode?"radio":"multiple";var a=this._createDropDown(),c=this.getAttribute("dir");c&&a.setAttribute("dir",c),this.dropDown=a,this.dropDown.focusOnOpen=!1,this.dropDown.focus=null,this._initHandlers(),this._initValue()},_initHandlers:function(){this._initHandlersDone||(this._initHandlersDone=!0,this.list.on("keynav-child-navigated",function(a){var b=this._popupInput||this.inputNode,c=a.newValue,d=this.list.getEnclosingRenderer(c),e=d.item;b.setAttribute("aria-activedescendant",c.id),"single"!==this.selectionMode||this.list.isSelected(e)||this.list.selectFromEvent(a,e,d,!0),!a.triggerEvent||"keydown"!==a.triggerEvent.type&&"keypress"!==a.triggerEvent.type||this._updateScroll(e,!0)}.bind(this)),this.list.on("click",function(a){if("single"===this.selectionMode){var b=this.list.getEnclosingRenderer(a.target);b&&!this.list.isCategoryRenderer(b)&&this.defer(function(){this.closeDropDown(!0)}.bind(this),100)}}.bind(this)),this.list.on("selection-change",function(){"single"===this.selectionMode&&this._validateSingle(),this.handleOnInput(this.value)}.bind(this)),this.list.observe(function(a){"selectedItems"in a&&("single"===this.selectionMode?this._validateSingle():"multiple"===this.selectionMode&&this._validateMultiple(this._popupInput||this.inputNode))}.bind(this)),this._prepareInput(this.inputNode))},_initValue:function(){if("single"===this.selectionMode){var a=function(){var a,b,c=this.list.selectedItem,d=!1;if(c)b=this._getItemLabel(c),a=this._getItemValue(c),d=!0;else{var e=this.list.getItemRendererByIndex(0);e&&(b=this._getItemRendererLabel(e),a=this._getItemRendererValue(e),this.list.selectedItem=e.item,d=!0)}return d&&(this.inputNode.value=b,this._set("value",a),this.valueNode.value=a),d}.bind(this);a()||this.list.on("query-success",function(){a()})}else this.inputNode.value=this.multipleChoiceNoSelectionMsg,this.value=[],this.valueNode.value=""},_getItemRendererLabel:function(a){return this._getItemLabel(a.item)},_getItemRendererValue:function(a){return this._getItemValue(a.item)},_getItemLabel:function(a){return a.label},_getItemValue:function(a){return"value"in a?a.value:a.label},_useCenteredDropDown:function(){return!!j},_createDropDown:function(){this._updateInputReadOnly();var a=this._useCenteredDropDown(),b=a?this.createCenteredDropDown():this.createAboveBelowDropDown();return this.dropDownPosition=a?["center"]:["below","above"],b},createAboveBelowDropDown:function(){return this.list},createCenteredDropDown:function(){return new j({combobox:this})},_prepareInput:function(a){this.on("input",function(b){this.filter(a.value),this.openDropDown(),b.stopPropagation(),b.preventDefault()}.bind(this),a),this.on("change",function(a){a.stopPropagation(),a.preventDefault()}.bind(this),a),this.on("keydown",function(b){if(a.readOnly&&b.keyCode===h.BACKSPACE)b.stopPropagation(),b.preventDefault();else if(b.keyCode===h.ENTER)b.stopPropagation(),b.preventDefault(),this.opened&&this.closeDropDown(!0);else if(b.keyCode===h.SPACE){if("multiple"===this.selectionMode){var c=this.list.getEnclosingRenderer(this.list.navigatedDescendant);this.list.selectFromEvent(b,c.item,c,!0)}"multiple"!==this.selectionMode&&this.autoFilter||(b.stopPropagation(),b.preventDefault())}else(b.keyCode===h.DOWN_ARROW||b.keyCode===h.UP_ARROW||b.keyCode===h.PAGE_DOWN||b.keyCode===h.PAGE_UP||b.keyCode===h.HOME||b.keyCode===h.END)&&(this._useCenteredDropDown()&&this.list.emit("keydown",b),b.stopPropagation(),b.preventDefault())}.bind(this),a)},_validateSingle:function(){var a=this.list.selectedItem;this.inputNode.value=a?this._getItemLabel(a):"",this.value=a?this._getItemValue(a):""},_validateMultiple:function(a){var b=this.list.selectedItems,c=b?b.length:0,d=[];if(c>1){a.value=this.multipleChoiceMsg;for(var e=0;c>e;e++)d.push(b[e]?this._getItemValue(b[e]):"")}else if(1===c){var f=this.list.selectedItem;a.value=this._getItemLabel(f),d.push(this._getItemValue(f))}else a.value=this.multipleChoiceNoSelectionMsg;this._set("value",d),this.valueNode.value=d,this.handleOnInput(this.value)},filter:function(a){"startsWith"===this.filterMode?a="^"+a:"is"===this.filterMode&&(a="^"+a+"$");var b=new RegExp(a,this.ignoreCase?"i":"");this.list.query=(new c).match(this.list.labelAttr,b)},openDropDown:a.superCall(function(a){return function(){this._selectedItems=this.list.selectedItems,this.opened||this.defer(function(){this.list._hideLoadingPanel(),this.focusNode.focus()}.bind(this),300);var b=a.apply(this,arguments);return b.then(function(){this._updateScroll(void 0,!0)}.bind(this))}}),closeDropDown:a.superCall(function(a){return function(){if(this._selectedItems=null,this.opened&&(this.handleOnChange(this.value),this.list.query={},"single"===this.selectionMode&&this.autoFilter)){var b=this.list.selectedItem;b&&((this._popupInput||this.inputNode).value=this._getItemLabel(this.list.selectedItem))}a.apply(this,arguments)}}),_updateScroll:function(a,b){if(!a){var c=this.list.selectedItems;a=c&&c.length>0?c[0]:null}if(a){var d=this.list.getIdentity(a),e=this.list.getRendererByItemId(d);e&&(this.list.scrollBy({y:this.list.getBottomDistance(e)}),b&&(this.list.navigatedDescendant=e.childNodes[0]))}}})}),define("dstore/Filter",["dojo/_base/declare"],function(a){function b(a){return function(){var c=this.constructor,d=new c;return d.type=a,d.args=arguments,this.type?b("and").call(c.prototype,this,d):d}}var c=a(null,{constructor:function(a){var b=typeof a;switch(b){case"object":var c=this;for(var d in a){var e=a[d];c=e instanceof this.constructor?c[e.type](d,e.args[0]):e&&e.test?c.match(d,e):c.eq(d,e)}this.type=c.type,this.args=c.args;break;case"function":case"string":this.type=b,this.args=[a]}},and:b("and"),or:b("or"),eq:b("eq"),ne:b("ne"),lt:b("lt"),lte:b("lte"),gt:b("gt"),gte:b("gte"),"in":b("in"),match:b("match")});return c.filterCreator=b,c}),define("requirejs-text/text!deliteful/Checkbox/Checkbox.html",[],function(){return'\n'}),define("deliteful/Checkbox",["dcl/dcl","delite/register","delite/FormWidget","./Toggle","delite/handlebars!./Checkbox/Checkbox.html","delite/theme!./Checkbox/themes/{{theme}}/Checkbox.css"],function(a,b,c,d,e){var f;return b("d-checkbox",[HTMLElement,c,d],{baseClass:"d-checkbox",template:e,postRender:function(){this._lbl4=null,this.on("click",this._inputClickHandler.bind(this),this.focusNode),this.on("change",this._inputClickHandler.bind(this),this.focusNode)},_inputClickHandler:function(){this.checked=this.focusNode.checked},attachedCallback:function(){f||(f=function(a){var b;if(/label/i.test(a.target.tagName)&&(b=a.target.getAttribute("for"))){var c=document.getElementById(b);c&&c.render&&void 0!==c._lbl4&&c.focusNode.click()}},this.ownerDocument.addEventListener("click",f))}})}),define("deliteful/Button/bidi/Button",["dcl/dcl","dpointer/events"],function(a){return a(null,{refreshRendering:function(a){("textDir"in a||"label"in a)&&(this.labelNode.textContent=this.applyTextDirection(this.label)),this.title&&"textDir"in a&&(this.title=this.applyTextDirection(this.title))},postRender:function(){this.on("pointerover",this._pointerOverHandler.bind(this))},_pointerOverHandler:function(){this.title&&(this.title=this.applyTextDirection(this.title))}})}),define("requirejs-text/text!deliteful/Button/Button.html",[],function(){return''}),define("deliteful/Button",["dcl/dcl","requirejs-dplugins/has","delite/register","delite/Widget","requirejs-dplugins/has!bidi?./Button/bidi/Button","delite/handlebars!./Button/Button.html","delite/theme!./Button/themes/{{theme}}/Button.css"],function(a,b,c,d,e,f){var g=a(d,{label:"",iconClass:"",baseClass:"d-button",template:f,preRender:function(){this.label||(this.label=this.textContent.trim(),this.innerHTML="")},computeProperties:function(a){("title"in a||"label"in a)&&(this.title=this.title||this.label||"")}}),h=c("d-button",b("bidi")?[HTMLButtonElement,g,e]:[HTMLButtonElement,g]);return h.Impl=g,h}); //# sourceMappingURL=layer.map var paths = {}; !require.s.contexts._.config.paths["deliteful"] && (paths["deliteful"] = "deliteful-build"); diff --git a/layer.map b/layer.map index 73aacf9..205212c 100644 --- a/layer.map +++ b/layer.map @@ -1 +1 @@ -{"version":3,"file":"layer.js","sources":["..\\requirejs-text\\text!deliteful\\list\\List\\_LoadingPanel.html.js","..\\deliteful\\list\\_LoadingPanel.js","..\\deliteful\\list\\Renderer.js","..\\requirejs-text\\text!deliteful\\list\\List\\_PageLoaderRenderer.html.js","..\\deliteful\\list\\PageableList.js","..\\dojo\\string.js","..\\dojo\\_base\\kernel.js","..\\dojo\\_base\\config.js","..\\dojo\\has.js","..\\deliteful\\list\\List\\nls\\Pageable.js","..\\deliteful\\list\\List.js","..\\requirejs-text\\text!deliteful\\list\\List\\ItemRenderer.html.js","..\\deliteful\\list\\ItemRenderer.js","..\\requirejs-text\\text!deliteful\\list\\List\\CategoryRenderer.html.js","..\\deliteful\\list\\CategoryRenderer.js","..\\deliteful\\features.js","..\\deliteful\\channelBreakpoints.js","..\\deliteful\\ViewStack.js","..\\deliteful\\ViewIndicator.js","..\\deliteful\\ToggleButton\\bidi\\ToggleButton.js","..\\requirejs-text\\text!deliteful\\ToggleButton\\ToggleButton.html.js","..\\deliteful\\ToggleButton.js","..\\deliteful\\Toggle.js","..\\requirejs-text\\text!deliteful\\Toaster\\ToasterMessage.html.js","..\\deliteful\\ToasterMessage.js","..\\requirejs-text\\text!deliteful\\Toaster\\Toaster.html.js","..\\deliteful\\Toaster.js","..\\deliteful\\Switch\\bidi\\Switch.js","..\\requirejs-text\\text!deliteful\\Switch\\Switch.html.js","..\\deliteful\\Switch.js","..\\deliteful\\SwapView.js","..\\deliteful\\Store.js","..\\deliteful\\StarRating\\nls\\StarRating.js","..\\deliteful\\StarRating\\bidi\\StarRating.js","..\\deliteful\\StarRating.js","..\\requirejs-text\\text!deliteful\\Slider\\Slider.html.js","..\\deliteful\\Slider.js","..\\deliteful\\SidePane.js","..\\requirejs-text\\text!deliteful\\Select\\Select.html.js","..\\deliteful\\Select.js","..\\deliteful\\ScrollableContainer.js","..\\deliteful\\ResponsiveColumns.js","..\\requirejs-text\\text!deliteful\\RadioButton\\RadioButton.html.js","..\\deliteful\\RadioButton.js","..\\requirejs-text\\text!deliteful\\ProgressIndicator\\ProgressIndicator.html.js","..\\deliteful\\ProgressIndicator.js","..\\requirejs-text\\text!deliteful\\ProgressBar\\ProgressBar.html.js","..\\deliteful\\ProgressBar.js","..\\deliteful\\LinearLayout.js","..\\deliteful\\Combobox\\nls\\Combobox.js","..\\requirejs-text\\text!deliteful\\Combobox\\ComboPopup.html.js","..\\deliteful\\Combobox\\ComboPopup.js","..\\requirejs-text\\text!deliteful\\Combobox\\Combobox.html.js","..\\deliteful\\Combobox.js","..\\dstore\\Filter.js","..\\requirejs-text\\text!deliteful\\Checkbox\\Checkbox.html.js","..\\deliteful\\Checkbox.js","..\\deliteful\\Button\\bidi\\Button.js","..\\requirejs-text\\text!deliteful\\Button\\Button.html.js","..\\deliteful\\Button.js"],"names":["define","dcl","register","Widget","template","_LoadingPanel","message","HTMLElement","$","item","_focusableChildren","render","after","this","renderNode","Error","tabIndex","addClass","updateFocusableChildren","getFirst","length","getLast","getNext","child","getNextFocusableChild","getPrev","i","nodes","Array","prototype","slice","call","querySelectorAll","sort","a","b","navindexA","parseInt","getAttribute","navindexB","indexOf","node","id","fromChild","dir","fromChildIndex","nextChildIndex","string","Promise","has","List","Renderer","messages","_PageLoaderRenderer","baseClass","_setItemAttr","_set","loading","_label","innerHTML","loadMessage","_setLoadingAttr","beforeLoading","_destroyed","toggleClass","loadingMessage","_progressIndicator","active","_button","setAttribute","removeAttribute","afterLoading","postRender","on","_load","bind","_list","hasAttribute","self","resolve","reject","defer","performLoading","then","error","_queryError","pageLength","maxPages","loadPreviousMessage","loadNextMessage","autoPaging","_setAutoPagingAttr","value","_autoPagingHandle","remove","_scrollHandler","hideOnPageLoad","_collection","_firstLoaded","_lastLoaded","computeProperties","props","attached","_dataLoaded","_setBusy","_empty","_idPages","_loadNextPage","_previousPageLoader","substitute","_nextPageLoader","processCollection","superCall","sup","collection","apply","arguments","_updateIdPages","add","index","identity","pageFirstIndex","pageIndex","pageLastIndex","splice","_rangeSpec","start","count","results","fetchRange","end","items","page","map","itemToRenderItem","idPage","getIdentity","push","_nextPageReadyHandler","_loadPreviousPage","previousPageIds","unshift","_previousPageReadyHandler","_unloadPage","first","shift","_removeRenderer","getItemRendererByIndex","_createPreviousPageLoader","pop","getRendererByItemId","_createNextPageLoader","renderer","_getFirstVisibleRenderer","nextRenderer","nextElementSibling","navigatedDescendant","navigateTo","_renderNewItems","destroy","placeAt","previous","previousElementSibling","currentActiveElement","ownerDocument","activeElement","scrollBy","y","getTopDistance","focus","_getLastVisibleRenderer","next","getBottomDistance","_getLastRenderer","_getFirstRenderer","isTopScroll","_atExtremity","isBottomScroll","showLoadingPanel","deliver","itemRemoved","itemAdded","_untrack","_getNextRenderer","_spaceKeydownHandler","event","contains","target","preventDefault","handleSelection","getEnclosingRenderer","kernel","lang","ESCAPE_REGEXP","ESCAPE_MAP","&","<",">","\"","'","/","setObject","escape","str","replace","c","rep","num","buf","join","pad","text","size","ch","out","String","Math","ceil","transform","thisObject","global","hitch","v","match","key","format","getObject","toString","trim","test","charAt","substring","config","require","module","p","dijit","dojox","dojo","scopeMap","packageMap","_scopeName","noGlobals","baseUrl","isAsync","async","locale","rev","version","major","minor","patch","flag","revision","NaN","Function","exit","exitcode","quit","console","tn","cn","tcn","_fake","isDebug","deprecated","experimental","behaviour","extra","removal","warn","moduleName","modulePaths","paths","moduleUrl","url","result","toUrl","_hasResource","src","rawConfig","adviseHas","featureSet","prefix","booting","dojoConfig","djConfig","navigator","language","userLanguage","toLowerCase","isBrowser","window","location","document","doc","element","createElement","cache","name","now","force","process","versions","v8","load","Packages","addEventListener","maxTouchPoints","msMaxTouchPoints","screen","availWidth","innerWidth","form","attributes","clearElement","normalize","toAbsMid","tokens","get","skip","term","parentRequire","loaded","root","default-load-message","keys","CustomElement","Selection","KeyNav","StoreMap","Scrollable","ItemRenderer","CategoryRenderer","LoadingPanel","itemRenderer","categoryRenderer","labelAttr","iconclassAttr","righttextAttr","righticonclassAttr","categoryAttr","categoryFunc","multiCharSearchDuration","attr","_applyRole","_setScrollDirectionAttr","TypeError","scrollDirection","_setSelectionModeAttr","selectionMode","_cssClasses","category","cell","selected","selectable","multiselectable","currentRole","notifyCurrentValue","attachedCallback","refreshRendering","removeClass","children","hasClass","_selectionClickHandle","_isCategorized","store","list","_hideLoadingPanel","renderers","getItemRenderers","getItemRendererIndex","nodeList","currentRenderer","currentNode","parentNode","updateRenderers","currentItem","itemSelected","isSelected","hasSelectionModifier","eventRenderer","isCategoryRenderer","selectFromEvent","role","status","hideContent","_showLoadingPanel","_loadingPanel","undefined","insertBefore","appendChild","findCustomElements","forEach","w","_previousFocusedChild","atTheTop","firstElementChild","firstRenderer","_createRenderers","fromIndex","previousItem","currentIndex","toIndex","documentFragment","createDocumentFragment","_createCategoryRenderer","_createItemRenderer","_addItemRenderer","atIndex","spec","_getInsertSpec","nodeRef","addCategoryAfter","addCategoryBefore","previousRenderer","_sameCategory","keepSelection","_getFocusedRenderer","nextFocusRenderer","removeChild","tabindex","renderer1","renderer2","querySelector","initItems","emit","renderItems","cancelable","bubbles","renderItem","newRenderer","itemUpdated","itemMoved","previousIndex","newIndex","round","offsetTop","getCurrentScroll","clientRect","getBoundingClientRect","offsetHeight","bottom","top","descendantSelector","enclosingRenderer","_keynavKeyDownHandler","before","evt","defaultPrevented","keyCode","SPACE","_searchTimer","_gridKeydownHandler","_getFirst","_keynavDeactivatedHandler","_getLast","cells","last","downArrowKeyHandler","focusedRenderer","upArrowKeyHandler","pageUpKeyHandler","navigateToFirst","pageDownKeyHandler","navigateToLast","ENTER","F2","_enterActionableMode","TAB","shiftKey","ESCAPE","_leaveActionableMode","getParent","channelBreakpoints","mqAboveSmall","matchMedia","smallScreen","mqAboveMedium","mediumScreen","matches","DisplayContainer","setVisibility","val","style","visibility","display","setReverse","cleanCSS","className","split","filter","x","transitionClass","s","transition","reverse","selectedChildId","_pendingChild","_setSelectedChildIdAttr","getElementById","show","_getSelectedChildIdAttr","_visibleChild","noTransition","_timing","_setChildrenVisibility","cdn","preRender","_transitionTiming","default","chrome","ios","android","mozilla","o","onAddChild","res","showNext","params","_showPreviousNext","showPrevious","direction","ret","_doTransition","origin","promise","_setAfterTransitionHandlers","changeDisplay","widget","isLeftToRight","dest","parent","body","holder","handle","_afterTransitionHandle","resolved","vb","removeEventListener","dpointer","viewStack","setTouchAction","e","_vsChildIndex","clientX","offsetLeft","offsetWidth","_attachViewStack","_refreshDots","_afterShowHandle","dot","oldVals","checked","checkedLabel","labelNode","textContent","applyTextDirection","label","title","_pointerOverHandler","Button","Toggle","BidiToggleButton","ToggleButton","Impl","checkedIconClass","HTMLButtonElement","CssState","initState","valueNode","focusNode","toggle","disabled","pointer","normalizeType","type","messageTypes","defaultType","messageTypeClass","normalizeDuration","duration","isNaN","defaultDuration","whichEvent","events","fakeElement","listenAnimationEvents","callback","animationendEvent","transitionendEvent","tmp","listener","el","ev","d","handler","SwipeToDismiss","_pointerDownHandler","state","startCapture","setPointerCapture","pointerId","_pointerMoveHandler","hasStarted","hasEnded","keepCapturing","_pointerUpHandler","endCapture","SwipeStateMachine","getEventLocation","clientY","opacity","distance","elementWidth","updateElement","gesture","left","clientWidth","resetElement","setUnderGestureCtrl","isExpirable","_timer","pause","releaseFromGestureCtrl","resume","MIN_HORIZONTAL","MIN_SPEED","trajectory","startTime","endTime","secondLast","speed","isLongEnough","isFastEnough","isDirectedToRight","loc","Date","getTime","isEnabled","signalDown","signalMove","signalUp","enable","disable","Timer","_start","_startDate","timer","setTimeout","_fulfilled","computeRemaining","rt","_remaining","clearTimeout","D_INVISIBLE","D_HIDDEN","D_SWIPEOUT","info","success","warning","animationendEvents","animation","-webkit-animation","-ms-animation","transitionendEvents","-webkit-transition","ToasterMessage","_setTypeAttr","_setDurationAttr","_dismissButton","dismissible","dismiss","_hideInDom","_isInserted","_hasExpired","_toBeRemoved","_isRemoved","isDismissible","_insertInDom","toaster","animated","wrapper","_wrapper","animationInitialClass","invertOrder","hasChildNodes","childNodes","own","_showInDom","animationEnterClass","swipeToDismiss","customAnimation","animationQuitClass","_removeFromDom","animationEndClass","isRemovable","m","Toaster","placementClass","_emitExpiration","_emitInsertion","_emitRemoval","_getRemovableMsg","_allExpAreRemovable","l","postMessage","args","mix","_addMessage","_setCheckedLabelAttr","wrapWithUcc","_setUncheckedLabelAttr","Checkbox","BidiSwitch","uncheckedLabel","_knobGlassNode","_clickPreventer","_cleanHandlers","stopPropagation","_startX","_curX","_pHandlers","_lostPointerCaptureHandler","h","dx","cs","getComputedStyle","_pushNode","width","_drag","abs","_innerNode","_innerWrapperNode","_knobWidth","_knobNode","_switchWidth","nw","max","min","oldCheckedValue","marginLeft","ViewStack","_dragThreshold","swapThreshold","_keyDownHandler","started","childOut","childIn","ended","rx","lv","floor","rv","right","_setTranslation","_setupTransitionEndHandlers","_setTransitionProperties","slideBack","PAGE_UP","PAGE_DOWN","_endTransitionHandler","_addTransitionEndHandlers","_endTransition","_clearTransitionProperties","_clearTranslation","webkitTransitionProperty","transitionProperty","webkitTransitionDuration","mozTransitionDuration","transitionDuration","percent","t","webkitTransform","Memory","Trackable","Store","createSubclass","STORE_TYPES","createdCallback","data","JSON","parse","j","idProperty","random","setData","_emit","_on","include","_includePropertyInSubCollection","constructor","_meta","aria-valuetext","_incrementKeyCodes","LEFT_ARROW","UP_ARROW","NUMPAD_PLUS","_decrementKeyCodes","RIGHT_ARROW","DOWN_ARROW","NUMPAD_MINUS","FormValueWidget","BidiStarRating","StarRating","editHalfValues","allowZero","_hovering","_otherEventsHandles","inputs","getElementsByTagName","parseFloat","_refreshStarsRendering","_refreshEditionEventHandlers","_updateZeroArea","createChildren","_updateStars","passive","readOnly","_keyDownHandle","_startHandles","_wireHandlers","_removeEventsHandlers","_pointerLeaveHandler","pointerType","newValue","_hoveredValue","_previousOnChangeValue","handleOnChange","_incrementValue","_decrementValue","create","stars","_zeroSettingArea","starClass","boxFromElement","domElt","step","slideRange","vertical","flip","_orientationNames","false","clientStart","progressBarStart","progressBarSize","true","_propNames","_reversed","handleMin","tabStops","_isActive","_refreshOrientation","_refreshReversed","_refreshCSS","toCSS","modifier","rootBaseClass","containerNode","progressBar","_getValueAsArray","isDual","minValue","_convert2Float","_calculateDefaultValue","maxValue","maxV","_adjustValue","resetCSS","resetReversed","_refreshValueRendering","_positionHandles","currentVal","toPercent","toPercentMin","resetClasses","_pointerCtx","offsetVal","containerBox","pointerDownHandler","pointerMoveHandler","lostCaptureHandler","keyDownHandler","keyUpHandler","onmousedown","_setMinAttr","_setMaxAttr","_setStepAttr","defaultValue","Infinity","ratio","relativeMin","_ignoreUserInput","selectedVal","_selectedValue","_startSlideRange","relativePos","elementFromPoint","handleOnInput","_formatSelection","idx","multiplier","HOME","END","altKey","ctrlKey","metaKey","uiEvent","progressBarBox","currentPos","maxPos","pixel2value","pixelValue","pixelMin","pixelMax","valMin","valMax","sourceNode","updatedValue","delta","getNextSibling","nodeType","mode","position","animate","swipeClosing","_visible","_opening","_originX","_originY","_open","hide","_close","nextElement","_openImpl","_hideImpl","_resetInteractions","_refreshMode","_refreshPosition","overflow","_isLeft","pageX","pageY","_pressHandle","_moveHandle","_releaseHandle","pos","FormWidget","textAttr","valueAttr","disabledAttr","selectedIndex","selectedItems","selectedOptions","options","option","selectedOption","selectedItem","nSelectedItems","nSelectedOptions","__visualItem","__dataItem","n","fragment","__item","dataItem","_setValueAttr","Container","breakpoints","screenClass","_breakpoints","_layouts","_mqls","widgetId","_removeListeners","mql","removeListener","_checkConfiguration","sc","SyntaxError","_parseJSONAttrs","layout","getChildren","_genCSS","thr","thresholds","sizeClasses","content","mqHeader","mediaPart","minPart","maxPart","mediaQueryList","class","addListener","styleBlockId","styleBlock","head","oldValues","_inputClickHandler","_related","input","getEnclosingWidget","r","_requestId","_lapsTime","_requestAnimationFunction","requestAnimationFrame","webkitRequestAnimationFrame","callBack","_cancelAnimationFunction","cancelAnimationFrame","webkitCancelRequestAnimationFrame","_requestRendering","animationFrame","_cancelRequestRendering","requestId","_reset","msgNode","lineNodeList","_stopAnimation","_startAnimation","frameAnimation","linesNode","symbolId","setAttributeNS","svgNode","height","textAnchor","color","getPropertyValue","currentColor","stroke","fill","correctedValue","minOpacity","Intl","displayExtMsg","fractionDigits","newMax","indicatorNode","removeProperty","msgInvertNode","formatMessage","hasExtMsg","formatExtMsg","_numberFormat","_prevLang","resolvedOptions","minimumFractionDigits","maximumFractionDigits","NumberFormat","fallbackValue","multiple-choice","multiple-choice-no-selection","search-placeholder","ok-button-label","cancel-button-label","combobox","listNode","_prepareInput","inputNode","okHandler","_validateMultiple","closeDropDown","cancelHandler","_selectedItems","Filter","HasDropDown","ComboPopup","autoFilter","filterMode","ignoreCase","_inputReadOnly","searchPlaceHolder","multipleChoiceMsg","multipleChoiceNoSelectionMsg","okMsg","cancelMsg","_defaultList","updateReadOnly","_initList","_updateInputReadOnly","_setSelectable","oldValue","_useCenteredDropDown","css","off","_initValue","_attachedlistener","focusDescendants","dropDown","_createDropDown","focusOnOpen","_initHandlers","_initHandlersDone","_popupInput","rend","setSelected","triggerEvent","_updateScroll","observe","_getItemLabel","_getItemValue","initValueSingleMode","firstItemRenderer","_getItemRendererLabel","_getItemRendererValue","centeredDropDown","createCenteredDropDown","createAboveBelowDropDown","dropDownPosition","inputElement","openDropDown","BACKSPACE","opened","filterTxt","rexExp","RegExp","query","selItem","navigate","declare","filterCreator","filterArg","argType","eq","and","or","ne","lt","lte","gt","gte","in","labelClickHandler","_lbl4","forId","tagName","elt","click","BidiButton","iconClass","ButtonElt"],"mappings":";AAAAA,OAAO,gEAAgE,WAAc,MAAO,oTCI5FA,OAAO,gCACN,UACA,kBACA,gBACA,+CACE,SAAUC,EAAKC,EAAUC,EAAQC,GAQnC,GAAIC,GAAgBJ,GAAKE,IAOxBG,QAAS,GAETF,SAAUA,GAGX,OAAOF,GAAS,wBAAyBK,YAAaF,MC5BvDL,OAAO,2BACN,UACA,+CACA,kBACA,iBACE,SAAUC,EAAKO,EAAGN,EAAUC,GAmB9B,MAAOF,IAAKE,IAOXM,QASAC,mBAAoB,KAIpBC,OAAQV,EAAIW,MAAM,WACjB,IAAKC,KAAKC,WACT,KAAM,IAAIC,OAAM,iKAIjBF,MAAKC,WAAWE,SAAW,GAC3BR,EAAEK,KAAKC,YAAYG,SAAS,eAC5BJ,KAAKK,4BAUNC,SAAU,WACT,MAAIN,MAAKH,oBAAsBG,KAAKH,mBAAmBU,OAC/CP,KAAKH,mBAAmB,GAExB,MASTW,QAAS,WACR,MAAIR,MAAKH,oBAAsBG,KAAKH,mBAAmBU,OAC/CP,KAAKH,mBAAmBG,KAAKH,mBAAmBU,OAAS,GAEzD,MAUTE,QAAS,SAAUC,GAClB,MAAOV,MAAKW,sBAAsBD,EAAO,IAS1CE,QAAS,SAAUF,GAClB,MAAOV,MAAKW,sBAAsBD,EAAO,KAY1CL,wBAAyB,WACxB,GAAIL,KAAKH,mBACR,IAAK,GAAIgB,GAAI,EAAGA,EAAIb,KAAKH,mBAAmBU,OAAQM,UAC5Cb,MAAKH,mBAAmBgB,GAAGV,QAIpC,IAAI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-text\\text!deliteful\\list\\List\\_LoadingPanel.html.js","..\\..\\tmp\\deliteful\\list\\_LoadingPanel.js","..\\..\\tmp\\deliteful\\list\\Renderer.js","..\\..\\tmp\\requirejs-text\\text!deliteful\\list\\List\\_PageLoaderRenderer.html.js","..\\..\\tmp\\deliteful\\list\\PageableList.js","..\\..\\tmp\\dojo\\string.js","..\\..\\tmp\\dojo\\_base\\kernel.js","..\\..\\tmp\\dojo\\_base\\config.js","..\\..\\tmp\\dojo\\has.js","..\\..\\tmp\\deliteful\\list\\List\\nls\\Pageable.js","..\\..\\tmp\\deliteful\\list\\List.js","..\\..\\tmp\\requirejs-text\\text!deliteful\\list\\List\\ItemRenderer.html.js","..\\..\\tmp\\deliteful\\list\\ItemRenderer.js","..\\..\\tmp\\requirejs-text\\text!deliteful\\list\\List\\CategoryRenderer.html.js","..\\..\\tmp\\deliteful\\list\\CategoryRenderer.js","..\\..\\tmp\\deliteful\\features.js","..\\..\\tmp\\deliteful\\channelBreakpoints.js","..\\..\\tmp\\deliteful\\ViewStack.js","..\\..\\tmp\\deliteful\\ViewIndicator.js","..\\..\\tmp\\deliteful\\ToggleButton\\bidi\\ToggleButton.js","..\\..\\tmp\\requirejs-text\\text!deliteful\\ToggleButton\\ToggleButton.html.js","..\\..\\tmp\\deliteful\\ToggleButton.js","..\\..\\tmp\\deliteful\\Toggle.js","..\\..\\tmp\\requirejs-text\\text!deliteful\\Toaster\\ToasterMessage.html.js","..\\..\\tmp\\deliteful\\ToasterMessage.js","..\\..\\tmp\\requirejs-text\\text!deliteful\\Toaster\\Toaster.html.js","..\\..\\tmp\\deliteful\\Toaster.js","..\\..\\tmp\\deliteful\\Switch\\bidi\\Switch.js","..\\..\\tmp\\requirejs-text\\text!deliteful\\Switch\\Switch.html.js","..\\..\\tmp\\deliteful\\Switch.js","..\\..\\tmp\\deliteful\\SwapView.js","..\\..\\tmp\\deliteful\\Store.js","..\\..\\tmp\\deliteful\\StarRating\\nls\\StarRating.js","..\\..\\tmp\\deliteful\\StarRating.js","..\\..\\tmp\\requirejs-text\\text!deliteful\\Slider\\Slider.html.js","..\\..\\tmp\\deliteful\\Slider.js","..\\..\\tmp\\deliteful\\SidePane.js","..\\..\\tmp\\requirejs-text\\text!deliteful\\Select\\Select.html.js","..\\..\\tmp\\deliteful\\Select.js","..\\..\\tmp\\deliteful\\ScrollableContainer.js","..\\..\\tmp\\deliteful\\ResponsiveColumns.js","..\\..\\tmp\\requirejs-text\\text!deliteful\\RadioButton\\RadioButton.html.js","..\\..\\tmp\\deliteful\\RadioButton.js","..\\..\\tmp\\requirejs-text\\text!deliteful\\ProgressIndicator\\ProgressIndicator.html.js","..\\..\\tmp\\deliteful\\ProgressIndicator.js","..\\..\\tmp\\requirejs-text\\text!deliteful\\ProgressBar\\ProgressBar.html.js","..\\..\\tmp\\deliteful\\ProgressBar.js","..\\..\\tmp\\deliteful\\LinearLayout.js","..\\..\\tmp\\deliteful\\Combobox\\nls\\Combobox.js","..\\..\\tmp\\requirejs-text\\text!deliteful\\Combobox\\ComboPopup.html.js","..\\..\\tmp\\deliteful\\Combobox\\ComboPopup.js","..\\..\\tmp\\requirejs-text\\text!deliteful\\Combobox\\Combobox.html.js","..\\..\\tmp\\deliteful\\Combobox.js","..\\..\\tmp\\dstore\\Filter.js","..\\..\\tmp\\requirejs-text\\text!deliteful\\Checkbox\\Checkbox.html.js","..\\..\\tmp\\deliteful\\Checkbox.js","..\\..\\tmp\\deliteful\\Button\\bidi\\Button.js","..\\..\\tmp\\requirejs-text\\text!deliteful\\Button\\Button.html.js","..\\..\\tmp\\deliteful\\Button.js"],"names":["define","dcl","register","Widget","template","_LoadingPanel","message","HTMLElement","$","item","_focusableChildren","render","after","this","renderNode","Error","tabIndex","addClass","updateFocusableChildren","getFirst","length","getLast","getNext","child","getNextFocusableChild","getPrev","i","nodes","Array","prototype","slice","call","querySelectorAll","sort","a","b","navindexA","parseInt","getAttribute","navindexB","indexOf","node","id","fromChild","dir","fromChildIndex","nextChildIndex","string","Promise","has","List","Renderer","messages","_PageLoaderRenderer","baseClass","_setItemAttr","_set","loading","_label","innerHTML","loadMessage","_setLoadingAttr","beforeLoading","_destroyed","toggleClass","loadingMessage","_progressIndicator","active","_button","setAttribute","removeAttribute","afterLoading","postRender","on","_load","bind","_list","hasAttribute","self","resolve","reject","defer","performLoading","then","error","_queryError","pageLength","maxPages","loadPreviousMessage","loadNextMessage","autoPaging","_setAutoPagingAttr","value","_autoPagingHandle","remove","_scrollHandler","hideOnPageLoad","_collection","_firstLoaded","_lastLoaded","refreshRendering","props","_dataLoaded","_setBusy","_empty","_idPages","_loadNextPage","_previousPageLoader","substitute","_nextPageLoader","processCollection","superCall","sup","collection","apply","arguments","_updateIdPages","add","index","identity","pageFirstIndex","pageIndex","pageLastIndex","splice","_rangeSpec","start","count","results","fetchRange","end","items","page","map","itemToRenderItem","idPage","getIdentity","push","_nextPageReadyHandler","_loadPreviousPage","previousPageIds","unshift","_previousPageReadyHandler","_unloadPage","first","shift","_removeRenderer","getItemRendererByIndex","_createPreviousPageLoader","pop","getRendererByItemId","_createNextPageLoader","renderer","_getFirstVisibleRenderer","nextRenderer","nextElementSibling","navigatedDescendant","navigateTo","_renderNewItems","destroy","placeAt","previous","previousElementSibling","currentActiveElement","ownerDocument","activeElement","scrollBy","y","getTopDistance","focus","_getLastVisibleRenderer","next","getBottomDistance","_getLastRenderer","_getFirstRenderer","isTopScroll","_atExtremity","isBottomScroll","showLoadingPanel","itemRemoved","itemAdded","_untrack","_getNextRenderer","_spaceKeydownHandler","event","contains","target","preventDefault","handleSelection","getEnclosingRenderer","kernel","lang","ESCAPE_REGEXP","ESCAPE_MAP","&","<",">","\"","'","/","setObject","escape","str","replace","c","rep","num","buf","join","pad","text","size","ch","out","String","Math","ceil","transform","thisObject","global","hitch","v","match","key","format","getObject","toString","trim","test","charAt","substring","config","require","module","p","dijit","dojox","dojo","scopeMap","packageMap","_scopeName","noGlobals","baseUrl","isAsync","async","locale","rev","version","major","minor","patch","flag","revision","NaN","Function","exit","exitcode","quit","console","tn","cn","tcn","_fake","isDebug","deprecated","experimental","behaviour","extra","removal","warn","moduleName","modulePaths","paths","moduleUrl","url","result","toUrl","_hasResource","src","rawConfig","adviseHas","featureSet","prefix","booting","dojoConfig","djConfig","navigator","language","userLanguage","toLowerCase","isBrowser","window","location","document","doc","element","createElement","cache","name","now","force","process","versions","v8","load","Packages","addEventListener","maxTouchPoints","msMaxTouchPoints","screen","availWidth","innerWidth","form","attributes","clearElement","normalize","toAbsMid","tokens","get","skip","term","parentRequire","loaded","root","default-load-message","keys","CustomElement","Selection","KeyNav","StoreMap","Scrollable","ItemRenderer","CategoryRenderer","LoadingPanel","itemRenderer","categoryRenderer","labelAttr","iconclassAttr","righttextAttr","righticonclassAttr","categoryAttr","categoryFunc","multiCharSearchDuration","attr","_applyRole","_setScrollDirectionAttr","TypeError","scrollDirection","_setSelectionModeAttr","selectionMode","_cssClasses","cell","selected","selectable","multiselectable","currentRole","notifyCurrentValue","attachedCallback","removeClass","children","tagName","tag","computeProperties","_selectionClickHandle","_isCategorized","store","list","_hideLoadingPanel","deliver","renderers","getItemRenderers","getItemRendererIndex","nodeList","currentRenderer","currentNode","parentNode","updateRenderers","currentItem","itemSelected","isSelected","hasSelectionModifier","eventRenderer","isCategoryRenderer","selectFromEvent","role","status","hideContent","_showLoadingPanel","_loadingPanel","undefined","insertBefore","appendChild","findCustomElements","forEach","w","_previousFocusedChild","atTheTop","firstElementChild","firstRenderer","category","_createRenderers","fromIndex","previousItem","currentIndex","toIndex","documentFragment","createDocumentFragment","_createCategoryRenderer","_createItemRenderer","_addItemRenderer","atIndex","spec","_getInsertSpec","nodeRef","addCategoryAfter","addCategoryBefore","previousRenderer","_sameCategory","keepSelection","_getFocusedRenderer","nextFocusRenderer","removeChild","tabindex","renderer1","renderer2","querySelector","initItems","emit","renderItems","cancelable","bubbles","renderItem","newRenderer","itemUpdated","itemMoved","previousIndex","newIndex","round","offsetTop","getCurrentScroll","clientRect","getBoundingClientRect","offsetHeight","bottom","top","descendantSelector","enclosingRenderer","hasClass","_keynavKeyDownHandler","before","evt","defaultPrevented","keyCode","SPACE","_searchTimer","_gridKeydownHandler","_getFirst","_keynavDeactivatedHandler","_getLast","cells","last","downArrowKeyHandler","focusedRenderer","upArrowKeyHandler","pageUpKeyHandler","navigateToFirst","pageDownKeyHandler","navigateToLast","ENTER","F2","_enterActionableMode","TAB","shiftKey","ESCAPE","_leaveActionableMode","getParent","channelBreakpoints","mqAboveSmall","matchMedia","smallScreen","mqAboveMedium","mediumScreen","matches","DisplayContainer","setVisibility","val","style","visibility","display","setReverse","cleanCSS","className","split","filter","x","transitionClass","s","transition","reverse","selectedChildId","_pendingChild","_setSelectedChildIdAttr","getElementById","attached","show","_getSelectedChildIdAttr","_visibleChild","noTransition","_timing","_setChildrenVisibility","cdn","preRender","_transitionTiming","default","chrome","ios","android","mozilla","o","onAddChild","res","showNext","params","_showPreviousNext","showPrevious","args","mix","direction","ret","_doTransition","origin","promise","_setAfterTransitionHandlers","changeDisplay","widget","effectiveDir","dest","parent","body","holder","handle","_afterTransitionHandle","resolved","vb","removeEventListener","dpointer","viewStack","setTouchAction","e","_vsChildIndex","clientX","offsetLeft","offsetWidth","_attachViewStack","_refreshDots","_afterShowHandle","dot","oldVals","checked","checkedLabel","labelNode","textContent","applyTextDirection","label","title","_pointerOverHandler","Button","Toggle","BidiToggleButton","ToggleButton","Impl","checkedIconClass","HTMLButtonElement","CssState","initState","valueNode","focusNode","toggle","disabled","pointer","normalizeType","type","messageTypes","defaultType","messageTypeClass","normalizeDuration","duration","isNaN","defaultDuration","whichEvent","events","fakeElement","listenAnimationEvents","callback","animationendEvent","transitionendEvent","tmp","listener","el","ev","d","handler","SwipeToDismiss","_pointerDownHandler","state","startCapture","setPointerCapture","pointerId","_pointerMoveHandler","hasStarted","hasEnded","keepCapturing","_pointerUpHandler","endCapture","SwipeStateMachine","getEventLocation","clientY","opacity","distance","elementWidth","updateElement","gesture","left","clientWidth","resetElement","setUnderGestureCtrl","isExpirable","_timer","pause","releaseFromGestureCtrl","resume","MIN_HORIZONTAL","MIN_SPEED","trajectory","startTime","endTime","secondLast","speed","isLongEnough","isFastEnough","isDirectedToRight","loc","Date","getTime","isEnabled","signalDown","signalMove","signalUp","enable","disable","Timer","_start","_startDate","timer","setTimeout","_fulfilled","computeRemaining","rt","_remaining","clearTimeout","PauseTimerOnHover","hovering","_pointerLeaveHandler","eventHandlers","eventHandler","D_INVISIBLE","D_HIDDEN","D_SWIPEOUT","info","success","warning","animationendEvents","animation","-webkit-animation","-ms-animation","transitionendEvents","-webkit-transition","ToasterMessage","_setTypeAttr","_setDurationAttr","_dismissButton","dismissible","dismiss","_hideInDom","_isInserted","_hasExpired","_toBeRemoved","_isRemoved","isDismissible","_insertInDom","toaster","animated","wrapper","_wrapper","animationInitialClass","invertOrder","hasChildNodes","childNodes","own","_showInDom","animationEnterClass","swipeToDismiss","pauseTimerOnHover","customAnimation","animationQuitClass","_removeFromDom","animationEndClass","isRemovable","m","Toaster","placementClass","_emitExpiration","_emitInsertion","_emitRemoval","_getRemovableMsg","_allExpAreRemovable","l","postMessage","_addMessage","_innerNode","firstChild","lastChild","uncheckedLabel","Checkbox","BidiSwitch","_knobGlassNode","_clickPreventer","_cleanHandlers","stopPropagation","_startX","_curX","_pHandlers","_lostPointerCaptureHandler","h","dx","cs","getComputedStyle","_pushNode","width","_drag","abs","_innerWrapperNode","_knobWidth","_knobNode","_switchWidth","nw","max","min","oldCheckedValue","marginLeft","ViewStack","_dragThreshold","swapThreshold","_keyDownHandler","started","childOut","childIn","ended","rx","lv","floor","rv","right","_setTranslation","_setupTransitionEndHandlers","_setTransitionProperties","slideBack","PAGE_UP","PAGE_DOWN","_endTransitionHandler","_addTransitionEndHandlers","_endTransition","_clearTransitionProperties","_clearTranslation","webkitTransitionProperty","transitionProperty","webkitTransitionDuration","mozTransitionDuration","transitionDuration","percent","t","webkitTransform","Memory","Trackable","Store","createSubclass","STORE_TYPES","createdCallback","data","JSON","parse","j","idProperty","random","setData","_emit","_on","include","_includePropertyInSubCollection","constructor","_meta","aria-valuetext","FormValueWidget","editHalfValues","allowZero","_hovering","_otherEventsHandles","_mapAttributes","inputs","getElementsByTagName","parseFloat","_refreshStarsRendering","_refreshEditionEventHandlers","_updateZeroArea","createChildren","_updateStars","passive","readOnly","_keyDownHandle","_startHandles","_wireHandlers","_removeEventsHandlers","pointerType","newValue","_hoveredValue","_previousOnChangeValue","handleOnChange","incrementArrow","RIGHT_ARROW","LEFT_ARROW","decrementArrow","UP_ARROW","NUMPAD_PLUS","_incrementValue","DOWN_ARROW","NUMPAD_MINUS","_decrementValue","create","stars","_zeroSettingArea","starClass","boxFromElement","domElt","step","slideRange","vertical","flip","_orientationNames","false","clientStart","progressBarStart","progressBarSize","true","_propNames","_reversed","handleMin","tabStops","_isActive","_refreshOrientation","_refreshCSS","toCSS","modifier","rootBaseClass","containerNode","progressBar","_getValueAsArray","isDual","minValue","_convert2Float","_calculateDefaultValue","maxValue","maxV","_adjustValue","ltr","_refreshValueRendering","_positionHandles","currentVal","toPercent","toPercentMin","_pointerCtx","offsetVal","containerBox","pointerDownHandler","pointerMoveHandler","lostCaptureHandler","keyDownHandler","keyUpHandler","onmousedown","_setMinAttr","_setMaxAttr","_setStepAttr","defaultValue","Infinity","ratio","relativeMin","_ignoreUserInput","selectedVal","_selectedValue","_startSlideRange","relativePos","elementFromPoint","handleOnInput","_formatSelection","idx","multiplier","HOME","END","altKey","ctrlKey","metaKey","uiEvent","progressBarBox","currentPos","maxPos","pixel2value","pixelValue","pixelMin","pixelMax","valMin","valMax","sourceNode","updatedValue","delta","getNextSibling","nodeType","mode","position","animate","swipeClosing","_visible","_opening","_originX","_originY","overflow","_open","hide","_close","nextElement","_openImpl","_hideImpl","_resetInteractions","_refreshMode","_refreshPosition","_isLeft","pageX","pageY","_pressHandle","_moveHandle","_releaseHandle","pos","FormWidget","textAttr","valueAttr","disabledAttr","selectedIndex","_duringInteractiveSelection","selectedItems","selectedOptions","options","option","selectedOption","selectedItem","nSelectedItems","nSelectedOptions","__visualItem","__dataItem","n","fragment","__item","dataItem","_setValueAttr","Container","breakpoints","screenClass","_breakpoints","_layouts","_mqls","widgetId","_removeListeners","mql","removeListener","_checkConfiguration","sc","_parseJSONAttrs","layout","getChildren","_genCSS","thr","thresholds","sizeClasses","content","mqHeader","mediaPart","minPart","maxPart","mediaQueryList","class","addListener","styleBlockId","styleBlock","head","oldValues","_inputClickHandler","_related","input","getEnclosingWidget","r","_requestId","_lapsTime","_requestAnimationFunction","requestAnimationFrame","webkitRequestAnimationFrame","callBack","_cancelAnimationFunction","cancelAnimationFrame","webkitCancelRequestAnimationFrame","_requestRendering","animationFrame","_cancelRequestRendering","requestId","_reset","msgNode","lineNodeList","_stopAnimation","_startAnimation","frameAnimation","linesNode","symbolId","setAttributeNS","svgNode","height","textAnchor","color","getPropertyValue","currentColor","stroke","fill","correctedValue","minOpacity","Intl","displayExtMsg","fractionDigits","newMax","indicatorNode","removeProperty","msgInvertNode","formatMessage","hasExtMsg","formatExtMsg","_numberFormat","_prevLang","resolvedOptions","minimumFractionDigits","maximumFractionDigits","NumberFormat","fallbackValue","multiple-choice","multiple-choice-no-selection","search-placeholder","ok-button-label","cancel-button-label","combobox","listNode","_prepareInput","inputNode","okHandler","_validateMultiple","closeDropDown","cancelHandler","_selectedItems","Filter","HasDropDown","ComboPopup","autoFilter","filterMode","ignoreCase","_inputReadOnly","searchPlaceHolder","multipleChoiceMsg","multipleChoiceNoSelectionMsg","okMsg","cancelMsg","_defaultList","updateReadOnly","_initList","_updateInputReadOnly","_setSelectable","oldValue","_useCenteredDropDown","css","off","_initValue","_attachedlistener","focusDescendants","dropDown","_createDropDown","focusOnOpen","_initHandlers","_initHandlersDone","_popupInput","navigatedChild","rend","triggerEvent","_updateScroll","_validateSingle","observe","initValueSingleMode","done","_getItemLabel","_getItemValue","firstItemRenderer","_getItemRendererLabel","_getItemRendererValue","centeredDropDown","createCenteredDropDown","createAboveBelowDropDown","dropDownPosition","inputElement","openDropDown","BACKSPACE","opened","filterTxt","rexExp","RegExp","query","selItem","navigate","declare","filterCreator","filterArg","argType","eq","and","or","ne","lt","lte","gt","gte","in","labelClickHandler","_lbl4","forId","elt","click","BidiButton","iconClass","ButtonElt"],"mappings":";AAAAA,OAAO,gEAAgE,WAAc,MAAO,oTCI5FA,OAAO,gCACN,UACA,kBACA,gBACA,+CACE,SAAUC,EAAKC,EAAUC,EAAQC,GAQnC,GAAIC,GAAgBJ,GAAKE,IAOxBG,QAAS,GAETF,SAAUA,GAGX,OAAOF,GAAS,wBAAyBK,YAAaF,MC5BvDL,OAAO,2BACN,UACA,+CACA,kBACA,iBACE,SAAUC,EAAKO,EAAGN,EAAUC,GAmB9B,MAAOF,IAAKE,IAOXM,QASAC,mBAAoB,KAIpBC,OAAQV,EAAIW,MAAM,WACjB,IAAKC,KAAKC,WACT,KAAM,IAAIC,OAAM,iKAIjBF,MAAKC,WAAWE,SAAW,GAC3BR,EAAEK,KAAKC,YAAYG,SAAS,eAC5BJ,KAAKK,4BAUNC,SAAU,WACT,MAAIN,MAAKH,oBAAsBG,KAAKH,mBAAmBU,OAC/CP,KAAKH,mBAAmB,GAExB,MASTW,QAAS,WACR,MAAIR,MAAKH,oBAAsBG,KAAKH,mBAAmBU,OAC/CP,KAAKH,mBAAmBG,KAAKH,mBAAmBU,OAAS,GAEzD,MAUTE,QAAS,SAAUC,GAClB,MAAOV,MAAKW,sBAAsBD,EAAO,IAS1CE,QAAS,SAAUF,GAClB,MAAOV,MAAKW,sBAAsBD,EAAO,KAY1CL,wBAAyB,WACxB,GAAIL,KAAKH,mBACR,IAAK,GAAIgB,GAAI,EAAGA,EAAIb,KAAKH,mBAAmBU,OAAQM,UAC5Cb,MAAKH,mBAAmBgB,GAAGV,QAIpC,IAAIW,GAAQC,MAAMC,UAAUC,MAAMC,KAAKlB,KAAKC,WAAWkB,iBAAiB,cAAe,EAYvF,KAXAnB,KAAKH,mBAAqBiB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Ac,MAAO,4OCClFA,OAAO,oBACN,UACA,yBACA,kBACA,gBACA,mDACA,yCACA,qDACE,SAAUC,EAAKgD,EAAK/C,EAAUC,EAAQqnC,EAAYpnC,GAkBpD,GAAIijB,GAASpjB,EAAIE,GAOhB+iB,MAAO,GAOPukB,UAAW,GAOXnkC,UAAW,WAEXlD,SAAUA,EAEV0f,UAAW,WAELjf,KAAKqiB,QACTriB,KAAKqiB,MAAQriB,KAAKmiB,YAAY9U,OAC9BrN,KAAK8C,UAAY,KAInB8S,kBAAmB,SAAUpQ,IACxB,SAAWA,IAAS,SAAWA,MAClCxF,KAAKsiB,MAAQtiB,KAAKsiB,OAAStiB,KAAKqiB,OAAS,OAKxCwkB,EAAYxnC,EAAS,WAAY+C,EAAI,SAAW0gB,kBAAmBN,EAAQmkB,IAC7E7jB,kBAAmBN,GAErB,OADAqkB,GAAUjkB,KAAOJ,EACVqkB"} \ No newline at end of file diff --git a/samples/Button.html b/samples/Button.html index 325ace2..4aee31d 100644 --- a/samples/Button.html +++ b/samples/Button.html @@ -19,12 +19,10 @@ - +

ProgressBar sample - basic

This sample shows how to declare and customize a progress bar.

diff --git a/samples/ProgressBar-handler.html b/samples/ProgressBar-handler.html index 35f1335..a1b1d5d 100644 --- a/samples/ProgressBar-handler.html +++ b/samples/ProgressBar-handler.html @@ -24,8 +24,6 @@ "delite/theme!delite/themes/{{theme}}/global.css", // page level CSS "requirejs-domready/domReady!" ], function (register) { - register.parse(); - var label = document.getElementById("lb"); var progressBar = document.getElementById("pb1"); var loadBtn = document.getElementById("loadBtn"); @@ -63,6 +61,7 @@ }; label.innerHTML = "Value: indeterminate"; + register.deliver(); progressBar.observe(updateLabel); // update label everytime widget changes document.body.style.display = ""; diff --git a/samples/ProgressBar-messages.html b/samples/ProgressBar-messages.html index 129b010..bf9be5d 100644 --- a/samples/ProgressBar-messages.html +++ b/samples/ProgressBar-messages.html @@ -19,13 +19,10 @@ + + + + + + + + + + + diff --git a/samples/ToggleButton.html b/samples/ToggleButton.html index a3d3d93..76acc17 100644 --- a/samples/ToggleButton.html +++ b/samples/ToggleButton.html @@ -19,12 +19,10 @@