Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@osjs/gui

Package Overview
Dependencies
Maintainers
1
Versions
73
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@osjs/gui - npm Package Compare versions

Comparing version 4.0.31 to 4.0.32

127

CHANGELOG.md
# Changelog for osjs-gui
## 4.0.30
## 4.0.31 - 2020-03-01
* Updated README.md
* Prevent raising error when contextmenu not found
* Updated files section in package.json
* Added timestamps to CHANGELOG.md
## 4.0.30 - 2020-02-16
* Now using @osjs/dev-meta
## 4.0.29
## 4.0.29 - 2020-02-13

@@ -14,3 +21,3 @@ * Updated dependencies

## 4.0.28
## 4.0.28 - 2020-01-15

@@ -23,11 +30,11 @@ * Updated webpack config

## 4.0.27
## 4.0.27 - 2020-01-03
* Added DOM wrapper for global context menu (#19)
## 4.0.26
## 4.0.26 - 2019-10-17
* Fix text field cursors on firefox (fixes #18)
## 4.0.25
## 4.0.25 - 2019-06-17

@@ -37,3 +44,3 @@ * Added 'key' to ListView rows

## 4.0.24
## 4.0.24 - 2019-06-12

@@ -45,3 +52,3 @@ * Updated dependencies

## 4.0.23
## 4.0.23 - 2019-04-01

@@ -51,11 +58,11 @@ * Updated BoxProperties definition

## 4.0.22
## 4.0.22 - 2019-02-16
* Updated dependencies
## 4.0.21
## 4.0.21 - 2019-02-14
* Fixed a bug for radio fields value parsing
## 4.0.20
## 4.0.20 - 2019-01-01

@@ -65,27 +72,27 @@ * Added RTL support

## 4.0.19
## 4.0.19 - 2018-12-29
* Reverted a change relating to Panes
## 4.0.18
## 4.0.18 - 2018-12-29
* Attempt to fix broken build
## 4.0.17
## 4.0.17 - 2018-12-29
* Re-release as parcel messed up build
## 4.0.16
## 4.0.16 - 2018-12-29
* Fixed unused props on Panes
## 4.0.15
## 4.0.15 - 2018-12-28
* Updated ListView styles and style support
## 4.0.14
## 4.0.14 - 2018-12-22
* SelectField now supports multiple form of choices
## 4.0.13
## 4.0.13 - 2018-12-21

@@ -96,7 +103,7 @@ * Added zebra property to ListView

## 4.0.12
## 4.0.12 - 2018-12-13
* Added 'closeable' contextmenu item options (#3)
## 4.0.11
## 4.0.11 - 2018-12-05

@@ -109,3 +116,3 @@ * Updated rollup config

## 4.0.10
## 4.0.10 - 2018-12-04

@@ -115,7 +122,7 @@ * Fixed tab not showing in Tabs component (#4)

## 4.0.9
## 4.0.9 - 2018-11-29
* Fixed an issue with contextmenu props getting unset
## 4.0.8
## 4.0.8 - 2018-11-25

@@ -125,27 +132,27 @@ * Fixed some contextmenu issues

## 4.0.7
## 4.0.7 - 2018-11-11
* Added 'Expander' element
## 4.0.6
## 4.0.6 - 2018-11-09
* Fixed overlapping contextmenu issues
## 4.0.5
## 4.0.5 - 2018-10-27
* Updated sourcemap generation
## 4.0.3
## 4.0.3 - 2018-10-27
* Added esm bundle
## 4.0.0
## 4.0.0 - 2018-10-27
* Now provided as a ES library and UMD
## 3.0.0-alpha.36
## 3.0.0-alpha.36 - 2018-10-25
* Added 'created' action to *Views
## 3.0.0-alpha.35
## 3.0.0-alpha.35 - 2018-09-29

@@ -155,7 +162,7 @@ * Updated dependencies

## 3.0.0-alpha.34
## 3.0.0-alpha.34 - 2018-09-27
* Updated dependencies
## 3.0.0-alpha.33
## 3.0.0-alpha.33 - 2018-08-17

@@ -166,7 +173,7 @@ * Added double-tap support in IconView

## 3.0.0-alpha.32
## 3.0.0-alpha.32 - 2018-07-28
* Updated contextmenu provider
## 3.0.0-alpha.31
## 3.0.0-alpha.31 - 2018-07-27

@@ -177,11 +184,11 @@ * Publish in production mode

## 3.0.0-alpha.30
## 3.0.0-alpha.30 - 2018-07-24
* Removed a gitignore file leading to missing files in npm package
## 3.0.0-alpha.29
## 3.0.0-alpha.29 - 2018-07-24
* Prebuild npm package
## 3.0.0-alpha.28
## 3.0.0-alpha.28 - 2018-07-20

@@ -192,3 +199,3 @@ * Added IconView component

## 3.0.0-alpha.27
## 3.0.0-alpha.27 - 2018-07-18

@@ -201,3 +208,3 @@ * Added travis-ci badge to README

## 3.0.0-alpha.26
## 3.0.0-alpha.26 - 2018-07-16

@@ -207,7 +214,7 @@ * Updated overflow in certain containers

## 3.0.0-alpha.25
## 3.0.0-alpha.25 - 2018-07-16
* Updated image/video sizing
## 3.0.0-alpha.24
## 3.0.0-alpha.24 - 2018-07-16

@@ -217,3 +224,3 @@ * Don't wrap text on statusbar by default

## 3.0.0-alpha.23
## 3.0.0-alpha.23 - 2018-07-14

@@ -223,3 +230,3 @@ * Better Menu child rendering

## 3.0.0-alpha.22
## 3.0.0-alpha.22 - 2018-07-13

@@ -229,3 +236,3 @@ * Added 'overflow:hidden' to Toolbar by default

## 3.0.0-alpha.21
## 3.0.0-alpha.21 - 2018-07-10

@@ -235,7 +242,7 @@ * Remove overflow:none from elements by default

## 3.0.0-alpha.20
## 3.0.0-alpha.20 - 2018-07-08
* Fixed box flex basis property
## 3.0.0-alpha.19
## 3.0.0-alpha.19 - 2018-07-04

@@ -248,3 +255,3 @@ * Replaced programatic orientation setting with CSS

## 3.0.0-alpha.18
## 3.0.0-alpha.18 - 2018-07-03

@@ -255,11 +262,11 @@ * Updated docs

## 3.0.0-alpha.17
## 3.0.0-alpha.17 - 2018-07-03
* General improvements (performance, compability, abstraction)
## 3.0.0-alpha.16
## 3.0.0-alpha.16 - 2018-07-01
* Hotfix for textarea size
## 3.0.0-alpha.15
## 3.0.0-alpha.15 - 2018-07-01

@@ -270,3 +277,3 @@ * Updated default entry box styles

## 3.0.0-alpha.14
## 3.0.0-alpha.14 - 2018-06-30

@@ -278,7 +285,7 @@ * Separated Input into separate Fields

## 3.0.0-alpha.13
## 3.0.0-alpha.13 - 2018-05-10
* Added checkbox support for menu items
## 3.0.0-alpha.12
## 3.0.0-alpha.12 - 2018-05-06

@@ -288,3 +295,3 @@ * Added npmignore

## 3.0.0-alpha.11
## 3.0.0-alpha.11 - 2018-05-05

@@ -300,3 +307,3 @@ * Better icon support in ListView

## v3.0.0-alpha.10
## 3.0.0-alpha.10 - 2018-04-27

@@ -310,7 +317,7 @@ * Fixed some Safari incompabilities

## 3.0.0-alpha.9
## 3.0.0-alpha.9 - 2018-04-22
* Updated hyperapp dependency
## v3.0.0-alpha.8
## 3.0.0-alpha.8 - 2018-04-07

@@ -321,7 +328,7 @@ * Added icon support to button, some cleanups

## v3.0.0-alpha.7
## 3.0.0-alpha.7 - 2018-03-31
* Added esdoc config, updated docs
## v3.0.0-alpha.6
## 3.0.0-alpha.6 - 2018-03-25

@@ -342,4 +349,4 @@ * Added 'onenter' for Input

## v3.0.0-alpha.5
## 3.0.0-alpha.5 - 2018-03-19
Initial public release

@@ -1,2 +0,2 @@

function _arrayWithoutHoles(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}}var arrayWithoutHoles=_arrayWithoutHoles;function _iterableToArray(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}var iterableToArray=_iterableToArray;function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance")}var nonIterableSpread=_nonIterableSpread;function _toConsumableArray(e){return arrayWithoutHoles(e)||iterableToArray(e)||nonIterableSpread()}var toConsumableArray=_toConsumableArray;function h(e,t){for(var n=[],o=[],a=arguments.length;2<a--;)n.push(arguments[a]);for(;n.length;){var s=n.pop();if(s&&s.pop)for(a=s.length;a--;)n.push(s[a]);else null!=s&&!0!==s&&!1!==s&&o.push(s)}return"function"==typeof e?e(t||{},o):{nodeName:e,attributes:t||{},children:o,key:t&&t.key}}function app(e,t,n,o){function a(e){return{nodeName:e.nodeName.toLowerCase(),attributes:{},children:k.call(e.childNodes,function(e){return 3===e.nodeType?e.nodeValue:a(e)})}}function s(e){return"function"==typeof e?s(e(I,S)):null==e?"":e}function i(){b=!b;var e=s(n);for(o&&!b&&(j=x(o,j,w,w=e)),L=!1;_.length;)_.pop()()}function l(){b||(b=!0,setTimeout(i))}function c(e,t){var n={};for(var o in e)n[o]=e[o];for(var o in t)n[o]=t[o];return n}function r(e,t,n){var o={};return e.length?(o[e[0]]=1<e.length?r(e.slice(1),t,n[e[0]]):t,c(n,o)):t}function d(e,t){for(var n=0;n<e.length;)t=t[e[n++]];return t}function p(e,t,n){for(var o in n)"function"==typeof n[o]?function(o,a){n[o]=function(o){var s=a(o);return"function"==typeof s&&(s=s(d(e,I),n)),s&&s!==(t=d(e,I))&&!s.then&&l(I=r(e,c(t,s),I)),s}}(o,n[o]):p(e.concat(o),t[o]=c(t[o]),n[o]=c(n[o]));return n}function u(e){return e?e.key:null}function g(e){return e.currentTarget.events[e.type](e)}function h(e,t,n,o,a){if("key"===t);else if("style"!==t)"o"===t[0]&&"n"===t[1]?(t=t.slice(2),e.events?!o&&(o=e.events[t]):e.events={},e.events[t]=n,n?!o&&e.addEventListener(t,g):e.removeEventListener(t,g)):t in e&&"list"!==t&&"type"!==t&&"draggable"!==t&&"spellcheck"!==t&&"translate"!==t&&!a?e[t]=null==n?"":n:null!=n&&!1!==n&&e.setAttribute(t,n),(null==n||!1===n)&&e.removeAttribute(t);else if("string"==typeof n)e.style.cssText=n;else for(var s in"string"==typeof o&&(o=e.style.cssText=""),c(o,n)){var i=null==n||null==n[s]?"":n[s];"-"===s[0]?e.style.setProperty(s,i):e.style[s]=i}}function m(e,t){var n="string"==typeof e||"number"==typeof e?document.createTextNode(e):(t=t||"svg"===e.nodeName)?document.createElementNS("http://www.w3.org/2000/svg",e.nodeName):document.createElement(e.nodeName),o=e.attributes;if(o){o.oncreate&&_.push(function(){o.oncreate(n)});for(var a=0;a<e.children.length;a++)n.appendChild(m(e.children[a]=s(e.children[a]),t));for(var l in o)h(n,l,o[l],null,t)}return n}function v(e,t,n,o){for(var a in c(t,n))n[a]!==("value"==a||"checked"===a?e[a]:t[a])&&h(e,a,n[a],t[a],o);var s=L?n.oncreate:n.onupdate;s&&_.push(function(){s(e,t)})}function y(e,t){var n=t.attributes;if(n){for(var o=0;o<t.children.length;o++)y(e.childNodes[o],t.children[o]);n.ondestroy&&n.ondestroy(e)}return e}function f(e,t,n){function o(){e.removeChild(y(t,n))}var a=n.attributes&&n.attributes.onremove;a?a(t,o):o()}function x(e,t,n,o,a){if(o===n);else if(null==n||n.nodeName!==o.nodeName){var l=m(o,a);e.insertBefore(l,t),null!=n&&f(e,t,n),t=l}else if(null==n.nodeName)t.nodeValue=o;else{v(t,n.attributes,o.attributes,a=a||"svg"===o.nodeName);for(var c={},r={},d=[],p=n.children,g=o.children,h=0;h<p.length;h++){d[h]=t.childNodes[h];var y=u(p[h]);null!=y&&(c[y]=[d[h],p[h]])}for(var h=0,b=0;b<g.length;){var y=u(p[h]),j=u(g[b]=s(g[b]));if(r[y]){h++;continue}if(null!=j&&j===u(p[h+1])){null==y&&f(t,d[h],p[h]),h++;continue}if(null==j||L)null==y&&(x(t,d[h],p[h],g[b],a),b++),h++;else{var w=c[j]||[];y===j?(x(t,w[0],w[1],g[b],a),h++):w[0]?x(t,t.insertBefore(w[0],d[h]),w[1],g[b],a):x(t,d[h],null,g[b],a),r[j]=g[b],b++}}for(;h<p.length;)null==u(p[h])&&f(t,d[h],p[h]),h++;for(var h in c)r[h]||f(t,c[h][0],c[h][1])}return t}var b,k=[].map,j=o&&o.children[0]||null,w=j&&a(j),_=[],L=!0,I=c(e),S=p([],I,c(t));return l(),S}var unitValue=function(e,t){return"number"==typeof e?"".concat(e,"px"):!1===e?t:e},boxPropNames={grow:function(e){return{flexGrow:e}},shrink:function(e){return{flexShrink:e}},basis:function(e){return{flexBasis:unitValue(e,"auto")}},align:function(e){return{alignItems:e}},justify:function(e){return{justifyContent:e}},padding:function(e){return{margin:unitValue(e,"0")}},margin:function(e){return{margin:unitValue(e,"0")}}},Element$1=function(e){var t=1<arguments.length&&arguments[1]!==void 0?arguments[1]:[],n=e["class"]instanceof Array?e["class"]:[e["class"]],o=["osjs-gui"].concat(toConsumableArray(n));e.orientation&&o.push("osjs-gui-"+e.orientation);var a="string"==typeof e.style?{}:Object.assign({},e.style||{}),s=Object.keys(e).reduce(function(t,n){var o=boxPropNames[n]?boxPropNames[n](e[n]):void 0;return Object.assign({},t,o)},a);return h("div",{oncreate:e.oncreate,ondestroy:e.ondestroy,class:o.filter(function(e){return!!e}).join(" "),style:s},t)},Box=function(e,t){return h(Element$1,Object.assign({orientation:"horizontal"},e,{class:["osjs-gui-box",e["class"]]}),t)},BoxContainer=function(e,t){return h(Element$1,Object.assign({},e,{class:["osjs-gui-box-container",e["class"]]}),t)},BoxStyled=function(e,t){return h(Element$1,Object.assign({},e,{class:["osjs-gui-box-styled",e["class"]]}),t)};function createCommonjsModule(e,t){return t={exports:{}},e(t,t.exports),t.exports}var _typeof_1=createCommonjsModule(function(e){function t(n){"@babel/helpers - typeof";return e.exports="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?t=function(e){return typeof e}:t=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(n)}e.exports=t}),Icon=function(e){var t=e&&"object"===_typeof_1(e)?e.src:e,o=e&&"object"===_typeof_1(e)?e.name:void 0;return h("i",{"data-icon":o,class:"osjs-icon",style:{backgroundImage:"string"==typeof e?"url(".concat(t,")"):void 0}})};function _defineProperty(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var defineProperty=_defineProperty,filteredProps=function(e,t){var n=Object.keys(e);return n.filter(function(e){return-1===t.indexOf(e)}).reduce(function(t,n){return Object.assign(defineProperty({},n,e[n]),t)},{})},doubleTap=function(){var e,t=0<arguments.length&&arguments[0]!==void 0?arguments[0]:250,n=!1;return function(o,a){return(e=clearTimeout(e),e=setTimeout(function(){return n=!1},t),n)?(o.preventDefault(),a(o)):(n=!0,!1)}},createField=function(e,t,n,o,a){var s=t.oninput||function(){},i=t.onchange||function(){},l=t.onkeydown||function(){},c=a||function(e){return[e.target.value]},r=Object.assign({oninput:function(e){return s.apply(void 0,[e].concat(toConsumableArray(c(e))))},onchange:function(e){return i.apply(void 0,[e].concat(toConsumableArray(c(e))))},onkeydown:function(e){13===e.keyCode&&t.onenter&&t.onenter.apply(t,[e].concat(toConsumableArray(c(e)))),l(e)}},n,filteredProps(t,["choices","label","box","oninput","onchange"]));return h(Element$1,Object.assign({},t.box||{},{class:"osjs-gui-field osjs-gui-"+e}),o(r))},Button=function(){var e=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{},t=1<arguments.length&&arguments[1]!==void 0?arguments[1]:[];return createField("button",e,{},function(n){var o=[];return e.icon&&o.push(h(Icon,e.icon)),"string"==typeof e.label&&o.push(h("span",{class:"osjs-label"},e.label)),h("button",n,[].concat(o,toConsumableArray(t)))})},Progressbar=function(e){var t=1<arguments.length&&arguments[1]!==void 0?arguments[1]:[],n="number"==typeof e.value?Math.max(0,Math.abs(e.value))%100:0,o=h("div",{class:"osjs-gui-progressbar-wrapper"},[h("div",{className:"osjs-gui-progressbar-value",style:{width:n+""+"%"}}),h("div",{className:"osjs-gui-progressbar-label"},[h("span",{},[n+""+"%"])])]);return h(Element$1,Object.assign({},e.box||{},{class:["osjs-gui-progressbar",e["class"]]}),[o].concat(toConsumableArray(t)))},ul=function e(t){var n=1<arguments.length&&arguments[1]!==void 0?arguments[1]:[],o=2<arguments.length&&arguments[2]!==void 0?arguments[2]:0,a=function(e){var t=[];return"checkbox"===e.type||"boolean"==typeof e.checked?t.push(h("span",{class:"osjs-gui-menu-checkbox "+(e.checked?"active":"")})):e.icon&&t.push(h(Icon,e.icon)),t.push(h("span",{},e.label)),t},s=function(t,n){if("function"==typeof n.element)return n.element();var s="separator"===n.type?"osjs-gui-menu-separator":"osjs-gui-menu-label "+(n.disabled?"osjs__disabled":""),i=[h("span",{class:s},a(n))];return n.items&&i.push(e(t,n.items,o+1)),i};return h("ul",{class:""},n.map(function(e){return h("li",{class:"osjs-gui-menu-entry"},[h("div",{class:"osjs-gui-menu-container","data-has-image":!!e.icon||void 0,"data-has-children":!!e.items||void 0,onmouseover:e.items?t.onshow:void 0,ontouchend:e.items?t.onshow:void 0,onclick:function(n){e.items||(e.onclick&&e.onclick(e,n),t.onclick&&t.onclick(e,n,e))}},s(t,e))])}))},Menu=function(e){return h("div",{id:"osjs-context-menu",className:"osjs-gui osjs-gui-menu",oncreate:e.oncreate,onupdate:e.onupdate,style:{display:!1===e.visible?"none":"block",top:e.position?e.position.top+""+"px":0,left:e.position?e.position.left+""+"px":0}},ul(e,e.menu))},Toolbar=function(e,t){return h(Element$1,Object.assign({orientation:"vertical"},e,{class:["osjs-gui-toolbar",e["class"]]}),t)},Statusbar=function(e,t){return h(Element$1,Object.assign({},e.box||{},{class:["osjs-gui-statusbar",e["class"]]}),t)},MenubarItem=function(e){var t=1<arguments.length&&arguments[1]!==void 0?arguments[1]:[],n=e.onclick,o=e.data;return h("div",{onclick:function(e){if("function"==typeof n){var t=e.target.parentNode,a=Array.prototype.indexOf.call(t.children,e.target);n(e,o||{},a)}}},h("span",{},t))},Menubar=function(e){var t=1<arguments.length&&arguments[1]!==void 0?arguments[1]:[];return h(Element$1,Object.assign({},e,{class:["osjs-gui-menubar",e["class"]]}),[].concat(toConsumableArray((e.items||[]).map(function(t){return h(MenubarItem,{data:t.data,onclick:t.onclick||e.onclick},t.label)})),toConsumableArray(t)))};function nestable(e,t,n,o){return t._$r=function(){return{}},function(a,s){return h(o||"x-",{key:a.key,id:a.id,class:a.class,oncreate:function(o){var i=app(e,t,function(e,t){var a=n(e,t);return"function"==typeof a&&(a=a(o._$p,o._$c)),a},o);o._$p=a,o._$c=s,o._$r=i._$r,o._$u=i.uninit,i.init&&i.init(a),a.oncreate&&a.oncreate(o)},onupdate:function(e){e._$p=a,e._$c=s,e._$r(),a.onupdate&&a.onupdate(e)},ondestroy:function(e){e._$u&&e._$u()},onremove:function(e,t){return a.onremove?void a.onremove(e,t):t()}})}}var _onmousedown=function(e,t,n){var o=e.target,a=e.clientX,s=e.clientY,i=o.previousSibling,l=i.offsetWidth,c=i.offsetHeight,r=Array.from(o.parentNode.children).indexOf(i),d=.8*i.parentNode.offsetWidth,p=.8*i.parentNode.offsetHeight;if(!(0>r)){var u=function(e){var o=Math.min;e.preventDefault();var i="vertical"===n?l:c;if("vertical"===n){var u=e.clientX-a;i=o(d,i+u)}else{var g=e.clientY-s;i=o(p,i+g)}t.setSize({index:r,size:i})},g=function e(t){t.preventDefault(),document.removeEventListener("mousemove",u),document.removeEventListener("mouseup",e)};e.preventDefault(),document.addEventListener("mousemove",u),document.addEventListener("mouseup",g)}},panes=function(e,t,n,o){var a=Array(Math.ceil(n.length/2)).fill(null).map(function(){return h("div",{class:"osjs-gui-panes-spacer",onmousedown:function(e){return _onmousedown(e,t,o)}})});return n.map(function(t,n){var o=e.sizes[n]?e.sizes[n]+""+"px":void 0;return h("div",{class:"osjs-gui-panes-pane",style:{flex:o?"0 0 ".concat(o):o}},t)}).map(function(e,t){return[e,a[t]]}).reduce(function(e,t){return e.concat(t)}).filter(function(e){return"undefined"!=typeof e})},view=function(e,t){return function(n,o){var a=n.orientation||"vertical";return h(Element$1,{orientation:a,class:"osjs-gui-panes-inner"},panes(e,t,o,a))}},inner=nestable({sizes:[]},{init:function(e){return{sizes:e.sizes||[150]}},setSize:function(e){var t=e.index,n=e.size;return function(e){var o=[].concat(e.sizes);return o[t]=n,{sizes:o}}}},view,"div"),Panes=function(e,t){return h(inner,{class:"osjs-gui-panes"},t)},tapper=doubleTap(),createView=function(e){var t=function(t){return function(n,o){var a=n.columns[t]||{},s=e.selectedIndex===o,i=a.icon?h(Icon,a.icon):null,l=[h("span",{},["object"===_typeof_1(a)?a.label:a])];return i&&l.unshift(i),h("div",{key:n.key,"data-has-icon":!!a.icon||void 0,class:"osjs-gui-list-view-cell"+(s?" osjs__active":""),ontouchstart:function(t){return tapper(t,function(){return e.onactivate({data:n.data,index:o,ev:t})})},ondblclick:function(t){return e.onactivate({data:n.data,index:o,ev:t})},onclick:function(t){return e.onselect({data:n.data,index:o,ev:t})},oncontextmenu:function(t){return e.oncontextmenu({data:n.data,index:o,ev:t})},oncreate:function(t){return e.oncreate({data:n.data,index:o,el:t})}},l)}},n=function(n,o){return h("div",{class:"osjs-gui-list-view-pane",style:o.style||{}},[h("div",{class:"osjs-gui-list-view-header",style:{display:e.hideColumns?"none":void 0}},h("span",{},"object"===_typeof_1(o)?o.label:o)),h("div",{class:"rows","data-zebra":e.zebra+""},e.rows.map(t(n)))])};return h("div",{class:"osjs-gui-list-view-wrapper",oncreate:function(t){return t.scrollTop=e.scrollTop},onupdate:function(t){0>e.selectedIndex&&(t.scrollTop=e.scrollTop)}},e.columns.map(function(e,t){return n(t,e)}))},ListView=function(e){return h(Element$1,Object.assign({class:"osjs-gui-list-view"},e.box||{}),createView(filteredProps(e,["box"])))},listView={component:function(e,t){var n=Object.assign({zebra:!0,columns:[],rows:[],onselect:function(e){var n=e.data,o=e.index,a=e.ev;t.select({data:n,index:o,ev:a}),t.setSelectedIndex(o)},onactivate:function(e){var n=e.data,o=e.index,a=e.ev;t.activate({data:n,index:o,ev:a}),t.setSelectedIndex(-1)},oncontextmenu:function(e){var n=e.data,o=e.index,a=e.ev;t.select({data:n,index:o,ev:a}),t.contextmenu({data:n,index:o,ev:a}),t.setSelectedIndex(o)},oncreate:function(e){t.created(e)}},e);return function(){var e=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{};return ListView(Object.assign(n,e))}},state:function(e){return Object.assign({selectedIndex:-1,scrollTop:0},e)},actions:function(e){return Object.assign({select:function(){return function(){return{}}},activate:function(){return function(){return{}}},contextmenu:function(){return function(){return{}}},created:function(){return function(){return{}}},setRows:function(e){return{rows:e}},setColumns:function(e){return{columns:e}},setScrollTop:function(e){return function(){return{scrollTop:e}}},setSelectedIndex:function(e){return function(){return{selectedIndex:e}}}},e||{})}},tapper$1=doubleTap(),IconViewEntry=function(e,t,n){return function(){var o=e.icon||{name:"application-x-executable"},a=n.selectedIndex===t;return h("div",{class:"osjs-gui-icon-view-entry"+(a?" osjs__active":""),ontouchstart:function(o){return tapper$1(o,function(){return n.onactivate({data:e.data,index:t,ev:o})})},ondblclick:function(o){return n.onactivate({data:e.data,index:t,ev:o})},onclick:function(o){return n.onselect({data:e.data,index:t,ev:o})},oncontextmenu:function(o){return n.oncontextmenu({data:e.data,index:t,ev:o})},oncreate:function(o){return n.oncreate({data:e.data,index:t,el:o})}},[h("div",{class:"osjs__container"},[h("div",{class:"osjs__image"},[h(Icon,o)]),h("div",{class:"osjs__label"},[h("span",{},e.label)])])])}},IconView=function(e){var t=h("div",{class:"osjs-gui-icon-view-wrapper",oncreate:function(t){return t.scrollTop=e.scrollTop},onupdate:function(t){0>e.selectedIndex&&(t.scrollTop=e.scrollTop)}},e.entries.map(function(t,n){return h(IconViewEntry(t,n,e))}));return h(Element$1,Object.assign({class:"osjs-gui-icon-view"},e.box||{}),t)},iconView={component:function(e,t){var n=Object.assign({entries:[],onselect:function(e){var n=e.data,o=e.index,a=e.ev;t.select({data:n,index:o,ev:a}),t.setSelectedIndex(o)},onactivate:function(e){var n=e.data,o=e.index,a=e.ev;t.activate({data:n,index:o,ev:a}),t.setSelectedIndex(-1)},oncontextmenu:function(e){var n=e.data,o=e.index,a=e.ev;t.select({data:n,index:o,ev:a}),t.contextmenu({data:n,index:o,ev:a}),t.setSelectedIndex(o)},oncreate:function(e){t.created(e)}},e);return function(){var e=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{};return IconView(Object.assign(n,e))}},state:function(e){return Object.assign({selectedIndex:-1,scrollTop:0},e)},actions:function(e){return Object.assign({select:function(){return function(){return{}}},activate:function(){return function(){return{}}},contextmenu:function(){return function(){return{}}},created:function(){return function(){return{}}},setEntries:function(e){return function(){return{entries:e}}},setScrollTop:function(e){return function(){return{scrollTop:e}}},setSelectedIndex:function(e){return function(){return{selectedIndex:e}}}},e||{})}},Image=function(e){return h("div",{class:"osjs-gui osjs-gui-image",style:{width:e.width?e.width+""+"px":void 0,height:e.height?e.height+""+"px":void 0}},h("img",e))},sources=function(e){return e.map(function(e){return h("source",e)})},isTrue=function(e){return"undefined"==typeof e||!0===e},Video=function(e){return h("div",{class:"osjs-gui osjs-gui-video",style:{width:e.width?e.width+""+"px":void 0,height:e.height?e.height+""+"px":void 0}},[h("video",{src:e.src,width:e.width,height:e.height,poster:e.poster,loop:e.loop?"loop":void 0,muted:e.muted?"muted":void 0,controls:isTrue(e.controls)?"controls":void 0,autoplay:isTrue(e.autoplay)?"autoplay":void 0,onloadeddata:e.onload,oncreate:e.oncreate,onupdate:e.onupdate,ondestroy:e.ondestroy},sources(e.sources||[]))])},headers=function(e,t,n){var o=e.labels,a=e.onchange,s=e.oncontextmenu;return(o||[]).map(function(e,o){return h("div",{class:t.selectedIndex===o?"osjs__active":"",oncontextmenu:function(t){(s||function(){})(t,o,e)},onclick:function(t){n.setSelectedIndex(o),(a||function(){})(t,o,e)}},h("span",{},e))})},panes$1=function(e,t){return t.map(function(t,n){return h("div",{class:e.selectedIndex===n?"osjs__active":""},t)})},view$1=nestable({selectedIndex:0},{init:function(e){return{selectedIndex:e.selectedIndex||0}},setSelectedIndex:function(e){return function(){return{selectedIndex:e}}}},function(e,t){return function(n,o){return h("div",{class:"osjs-gui-tabs-wrapper"},[h("div",{class:"osjs-gui-tabs-header"},headers(n,e,t)),h("div",{class:"osjs-gui-tabs-panes"},panes$1(e,o))])}},"div"),Tabs=function(e,t){return h(view$1,Object.assign({class:"osjs-gui osjs-gui-tabs "+(e["class"]||"")},e),t)},Iframe=function(e){var t=1<arguments.length&&arguments[1]!==void 0?arguments[1]:[];return h(Element$1,Object.assign({},e.box||{},{class:["osjs-gui-iframe",e["class"]]}),[h("iframe",Object.assign({frameborder:0},filteredProps(e,["box"])))].concat(toConsumableArray(t)))},TextField=function(){var e=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{};return createField("text-field",e,{autocomplete:"off",autocorrect:"off",autocapitalize:"off",spellcheck:"false",type:"text"},function(e){return h("input",e)})},TextareaField=function(){var e=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{},t=1<arguments.length&&arguments[1]!==void 0?arguments[1]:[];return createField("textarea-field",e,{rows:4},function(e){return h("textarea",e,t)})},SelectField=function(){var e=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{},t=1<arguments.length&&arguments[1]!==void 0?arguments[1]:[],n=function(t){return t instanceof Array?t.map(function(e){return"object"===_typeof_1(e)?e:{value:e,label:e}}):Object.keys(e.choices||{}).map(function(t){return{value:t,label:e.choices[t]}})}(e.choices).map(function(t){var n=t.value,o=t.label;return h("option",{value:n,selected:e.value===n},o)});return createField("select-field",e,{selectedIndex:void 0},function(e){return h("div",{},h("select",e,[].concat(toConsumableArray(n),toConsumableArray(t))))},function(e){return[e.target.value,e.target.textContent]})},parseValue=function(t){try{return JSON.parse(t)}catch(n){return t}},ToggleField=function(){var e=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{},t=1<arguments.length&&arguments[1]!==void 0?arguments[1]:[];return createField("toggle-field",e,{type:"checkbox",checked:!1},function(n){return h("label",{},[h("input",n),h("span",{class:"osjs-toggle-input"}),h("span",{class:"osjs-toggle-label"},[e.label||""].concat(toConsumableArray(t)))])},function(t){return["radio"===e.type?parseValue(t.target.value):!!t.target.checked]})},RangeField=function(){var e=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{};return createField("range-field",e,{type:"range"},function(e){return h("input",e)})},view$2=function(e,t){return function(n,o){return h(Element$1,Object.assign({},n.box||{},{class:["osjs-gui-expander-wrapper"]}),[h("div",{class:"osjs-gui-expander-header",onclick:function(o){return t.ontoggle({ev:o,active:!e.active,ontoggle:n.ontoggle})}},[h("div",{class:"osjs-gui-expander-header-icon","data-active":e.active+""}),h("div",{class:"osjs-gui-expander-header-label"},n.label)]),h("div",{class:"osjs-gui-expander-content",style:{display:!1===e.active?"none":void 0}},o)])}},inner$1=nestable({active:!0},{init:function(e){return{ative:!1!==e.active}},ontoggle:function(e){var t=e.ev,n=e.active,o=e.ontoggle;return(o||function(){})(t,n),{active:n}}},view$2,"div"),Expander=function(e,t){return h(inner$1,Object.assign({},e,{class:"osjs-gui osjs-gui-expander"}),t)},Label=function(){var e=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{},t=1<arguments.length&&arguments[1]!==void 0?arguments[1]:[],n=e.placement||"top",o=e.text||"",a=Object.assign({class:["osjs-gui-field-label","osjs-gui-field-label-on-"+n]},e.box||{});return h(Element$1,a,[h("label",{for:e["for"]},o),t])},runtime_1=createCommonjsModule(function(e){var t=function(e){function t(e,t,n,a){var s=t&&t.prototype instanceof o?t:o,i=Object.create(s.prototype),l=new u(a||[]);return i._invoke=c(e,n,l),i}function n(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}function o(){}function a(){}function s(){}function i(e){["next","throw","return"].forEach(function(t){e[t]=function(e){return this._invoke(t,e)}})}function l(e){function t(o,a,s,i){var l=n(e[o],e,a);if("throw"===l.type)i(l.arg);else{var c=l.arg,r=c.value;return r&&"object"==typeof r&&y.call(r,"__await")?Promise.resolve(r.__await).then(function(e){t("next",e,s,i)},function(e){t("throw",e,s,i)}):Promise.resolve(r).then(function(e){c.value=e,s(c)},function(e){return t("throw",e,s,i)})}}function o(e,n){function o(){return new Promise(function(o,a){t(e,n,o,a)})}return a=a?a.then(o,o):o()}var a;this._invoke=o}function c(e,t,o){var a="suspendedStart";return function(s,i){if("executing"===a)throw new Error("Generator is already running");if("completed"===a){if("throw"===s)throw i;return h()}for(o.method=s,o.arg=i;;){var l=o.delegate;if(l){var c=r(l,o);if(c){if(c===j)continue;return c}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if("suspendedStart"===a)throw a="completed",o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);a="executing";var d=n(e,t,o);if("normal"===d.type){if(a=o.done?"completed":"suspendedYield",d.arg===j)continue;return{value:d.arg,done:o.done}}"throw"===d.type&&(a="completed",o.method="throw",o.arg=d.arg)}}}function r(e,t){var o=e.iterator[t.method];if(o===m){if(t.delegate=null,"throw"===t.method){if(e.iterator["return"]&&(t.method="return",t.arg=m,r(e,t),"throw"===t.method))return j;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return j}var a=n(o,e.iterator,t.arg);if("throw"===a.type)return t.method="throw",t.arg=a.arg,t.delegate=null,j;var s=a.arg;if(!s)return t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,j;if(s.done)t[e.resultName]=s.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=m);else return s;return t.delegate=null,j}function d(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function p(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function u(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(d,this),this.reset(!0)}function g(e){if(e){var t=e[x];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(y.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=m,t.done=!0,t};return o.next=o}}return{next:h}}function h(){return{value:m,done:!0}}var m,v=Object.prototype,y=v.hasOwnProperty,f="function"==typeof Symbol?Symbol:{},x=f.iterator||"@@iterator",b=f.asyncIterator||"@@asyncIterator",k=f.toStringTag||"@@toStringTag";e.wrap=t;var j={},w={};w[x]=function(){return this};var _=Object.getPrototypeOf,L=_&&_(_(g([])));L&&L!==v&&y.call(L,x)&&(w=L);var I=s.prototype=o.prototype=Object.create(w);return a.prototype=I.constructor=s,s.constructor=a,s[k]=a.displayName="GeneratorFunction",e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===a||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,s):(e.__proto__=s,!(k in e)&&(e[k]="GeneratorFunction")),e.prototype=Object.create(I),e},e.awrap=function(e){return{__await:e}},i(l.prototype),l.prototype[b]=function(){return this},e.AsyncIterator=l,e.async=function(n,o,a,s){var i=new l(t(n,o,a,s));return e.isGeneratorFunction(o)?i:i.next().then(function(e){return e.done?e.value:i.next()})},i(I),I[k]="Generator",I[x]=function(){return this},I.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var o=t.pop();if(o in e)return n.value=o,n.done=!1,n}return n.done=!0,n}},e.values=g,u.prototype={constructor:u,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=m,this.done=!1,this.delegate=null,this.method="next",this.arg=m,this.tryEntries.forEach(p),!e)for(var t in this)"t"===t.charAt(0)&&y.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=m)},stop:function(){this.done=!0;var e=this.tryEntries[0],t=e.completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){function t(t,o){return s.type="throw",s.arg=e,n.next=t,o&&(n.method="next",n.arg=m),!!o}if(this.done)throw e;for(var n=this,o=this.tryEntries.length-1;0<=o;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return t("end");if(a.tryLoc<=this.prev){var l=y.call(a,"catchLoc"),c=y.call(a,"finallyLoc");if(l&&c){if(this.prev<a.catchLoc)return t(a.catchLoc,!0);if(this.prev<a.finallyLoc)return t(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return t(a.catchLoc,!0);}else if(!c)throw new Error("try statement without catch or finally");else if(this.prev<a.finallyLoc)return t(a.finallyLoc)}}},abrupt:function(e,t){for(var n,o=this.tryEntries.length-1;0<=o;--o)if(n=this.tryEntries[o],n.tryLoc<=this.prev&&y.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var a=n;break}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var s=a?a.completion:{};return s.type=e,s.arg=t,a?(this.method="next",this.next=a.finallyLoc,j):this.complete(s)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),j},finish:function(e){for(var t,n=this.tryEntries.length-1;0<=n;--n)if(t=this.tryEntries[n],t.finallyLoc===e)return this.complete(t.completion,t.afterLoc),p(t),j},catch:function(e){for(var t,n=this.tryEntries.length-1;0<=n;--n)if(t=this.tryEntries[n],t.tryLoc===e){var o=t.completion;if("throw"===o.type){var a=o.arg;p(t)}return a}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:g(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=m),j}},e}(e.exports);try{regeneratorRuntime=t}catch(e){Function("r","regeneratorRuntime = r")(t)}}),regenerator=runtime_1;function asyncGeneratorStep(e,t,n,o,a,s,i){try{var l=e[s](i),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(o,a)}function _asyncToGenerator(e){return function(){var t=this,n=arguments;return new Promise(function(o,a){function s(e){asyncGeneratorStep(l,o,a,s,i,"next",e)}function i(e){asyncGeneratorStep(l,o,a,s,i,"throw",e)}var l=e.apply(t,n);s(void 0)})}}var asyncToGenerator=_asyncToGenerator;function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var classCallCheck=_classCallCheck;function _defineProperties(e,t){for(var n,o=0;o<t.length;o++)n=t[o],n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}function _createClass(e,t,n){return t&&_defineProperties(e.prototype,t),n&&_defineProperties(e,n),e}var createClass=_createClass,clampSubMenu=function(e,t){var n=t.target.querySelector("ul");if(n&&(n.classList.contains("osjs-gui-menu-container")&&(n=n.parentNode.parentNode),n&&n.offsetParent)){n.classList.remove("clamp-right");var o=n.getBoundingClientRect();o.right>e.offsetWidth&&n.classList.add("clamp-right")}},clampMenu=function(e,t,n){var o={},a=n.top+t.offsetHeight,s=n.left+t.offsetWidth,i=e.offsetHeight-n.top,l=e.offsetWidth-n.left,c=s>e.offsetWidth,r=a>e.offsetHeight;return r&&e.offsetHeight>t.offsetHeight&&(o.top=e.offsetHeight-t.offsetHeight-i),c&&(o.left=e.offsetWidth-t.offsetWidth-l),r||c?o:null},view$3=function(e){return function(t,n){return h(Menu,{position:t.position,visible:t.visible,menu:t.menu,onclick:e,onshow:n.onshow})}},timeout=function(e){return e(),setTimeout(e,100)},ContextMenu=function(){function e(t){classCallCheck(this,e),this.core=t,this.callback=function(){},this.actions=null,this.$element=document.createElement("div")}return createClass(e,[{key:"destroy",value:function(){this.callback=null,this.actions=null}},{key:"init",value:function(){var e,t=this;this.$element.className="osjs-system-context-menu",this.core.$root.appendChild(this.$element);var n=!1;this.actions=app({visible:!1,menu:[],position:{top:0,left:0}},{clamp:function(n){return function(o){if(n=n||document.querySelector("#osjs-context-menu"),clearTimeout(e),n){var a=t.core.$root,s=clampMenu(a,n,o.position);if(s)return{position:s}}return{}}},onshow:function(n){return function(){e=timeout(function(){return clampSubMenu(t.core.$root,n)})}},show:function(e){return function(o,a){var s=e.menu,i=e.position,l=e.toggle;if(l&&n)return a.hide();if(i instanceof Event)i={left:i.clientX,top:i.clientY};else if(i instanceof Element){var c=i.getBoundingClientRect();i={left:c.left,top:c.top+c.height}}return t.callback=function(t,n,o){e.callback&&e.callback(t,n),!1!==o.closeable&&a.hide()},n=!0,t.onclose=e.onclose,timeout(function(){return a.clamp()}),{visible:!0,menu:s||[],position:i||{top:0,left:0}}}},hide:function(){return function(){return n&&setTimeout(function(){return n=!1},0),t.onclose&&t.onclose(),t.onclose=null,t.callback=null,{visible:!1}}}},view$3(function(){!t.core.destroyed&&t.callback&&t.callback.apply(t,arguments)}),this.$element)}},{key:"show",value:function(){var e;return this.actions?(e=this.actions).show.apply(e,arguments):null}},{key:"hide",value:function(){var e;return this.actions?(e=this.actions).hide.apply(e,arguments):null}}]),e}(),validContextMenuTarget=function(e){var t=e.target,n="TEXTAREA"===t.tagName;return n||"INPUT"!==t.tagName||(n=-1!==["text","password","number","email"].indexOf(t.type)),n},GUIServiceProvider=function(){function e(t){classCallCheck(this,e),this.core=t,this.contextmenu=new ContextMenu(t)}return createClass(e,[{key:"destroy",value:function(){var e=document.getElementById("osjs-context-menu");e&&e.remove(),this.contextmenu.destroy()}},{key:"init",value:function(){var e=asyncToGenerator(regenerator.mark(function e(){var t,n=this;return regenerator.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:t={show:function(){var e;return(e=n.contextmenu).show.apply(e,arguments)},hide:function(){var e;return(e=n.contextmenu).hide.apply(e,arguments)}},this.core.instance("osjs/contextmenu",function(){return arguments.length?t.show.apply(t,arguments):t}),this.core.$root.addEventListener("contextmenu",function(e){validContextMenuTarget(e)||(e.stopPropagation(),e.preventDefault())});case 3:case"end":return e.stop();}},e,this)}));return function(){return e.apply(this,arguments)}}()},{key:"start",value:function(){var e=this,t=function(t){var n=document.getElementById("osjs-context-menu"),o=n.contains(t.target);!o&&e.contextmenu&&e.contextmenu.hide()};this.core.$root.addEventListener("click",t,!0),this.core.once("destroy",function(){e.core.$root.removeEventListener("click",t,!0)}),this.contextmenu.init()}}]),e}();export{Box,BoxContainer,BoxStyled,Button,Element$1 as Element,Expander,GUIServiceProvider,Icon,IconView,IconViewEntry,Iframe,Image,Label,ListView,Menu,Menubar,MenubarItem,Panes,Progressbar,RangeField,SelectField,Statusbar,Tabs,TextField,TextareaField,ToggleField,Toolbar,Video,iconView,listView};
function _arrayWithoutHoles(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}}var arrayWithoutHoles=_arrayWithoutHoles;function _iterableToArray(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}var iterableToArray=_iterableToArray;function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance")}var nonIterableSpread=_nonIterableSpread;function _toConsumableArray(e){return arrayWithoutHoles(e)||iterableToArray(e)||nonIterableSpread()}var toConsumableArray=_toConsumableArray;function h(e,t){for(var n=[],o=[],a=arguments.length;2<a--;)n.push(arguments[a]);for(;n.length;){var s=n.pop();if(s&&s.pop)for(a=s.length;a--;)n.push(s[a]);else null!=s&&!0!==s&&!1!==s&&o.push(s)}return"function"==typeof e?e(t||{},o):{nodeName:e,attributes:t||{},children:o,key:t&&t.key}}function app(e,t,n,o){function a(e){return{nodeName:e.nodeName.toLowerCase(),attributes:{},children:k.call(e.childNodes,function(e){return 3===e.nodeType?e.nodeValue:a(e)})}}function s(e){return"function"==typeof e?s(e(I,S)):null==e?"":e}function i(){b=!b;var e=s(n);for(o&&!b&&(j=x(o,j,w,w=e)),L=!1;_.length;)_.pop()()}function l(){b||(b=!0,setTimeout(i))}function c(e,t){var n={};for(var o in e)n[o]=e[o];for(var o in t)n[o]=t[o];return n}function r(e,t,n){var o={};return e.length?(o[e[0]]=1<e.length?r(e.slice(1),t,n[e[0]]):t,c(n,o)):t}function d(e,t){for(var n=0;n<e.length;)t=t[e[n++]];return t}function p(e,t,n){for(var o in n)"function"==typeof n[o]?function(o,a){n[o]=function(o){var s=a(o);return"function"==typeof s&&(s=s(d(e,I),n)),s&&s!==(t=d(e,I))&&!s.then&&l(I=r(e,c(t,s),I)),s}}(o,n[o]):p(e.concat(o),t[o]=c(t[o]),n[o]=c(n[o]));return n}function u(e){return e?e.key:null}function g(e){return e.currentTarget.events[e.type](e)}function h(e,t,n,o,a){if("key"===t);else if("style"!==t)"o"===t[0]&&"n"===t[1]?(t=t.slice(2),e.events?!o&&(o=e.events[t]):e.events={},e.events[t]=n,n?!o&&e.addEventListener(t,g):e.removeEventListener(t,g)):t in e&&"list"!==t&&"type"!==t&&"draggable"!==t&&"spellcheck"!==t&&"translate"!==t&&!a?e[t]=null==n?"":n:null!=n&&!1!==n&&e.setAttribute(t,n),(null==n||!1===n)&&e.removeAttribute(t);else if("string"==typeof n)e.style.cssText=n;else for(var s in"string"==typeof o&&(o=e.style.cssText=""),c(o,n)){var i=null==n||null==n[s]?"":n[s];"-"===s[0]?e.style.setProperty(s,i):e.style[s]=i}}function m(e,t){var n="string"==typeof e||"number"==typeof e?document.createTextNode(e):(t=t||"svg"===e.nodeName)?document.createElementNS("http://www.w3.org/2000/svg",e.nodeName):document.createElement(e.nodeName),o=e.attributes;if(o){o.oncreate&&_.push(function(){o.oncreate(n)});for(var a=0;a<e.children.length;a++)n.appendChild(m(e.children[a]=s(e.children[a]),t));for(var l in o)h(n,l,o[l],null,t)}return n}function v(e,t,n,o){for(var a in c(t,n))n[a]!==("value"==a||"checked"===a?e[a]:t[a])&&h(e,a,n[a],t[a],o);var s=L?n.oncreate:n.onupdate;s&&_.push(function(){s(e,t)})}function y(e,t){var n=t.attributes;if(n){for(var o=0;o<t.children.length;o++)y(e.childNodes[o],t.children[o]);n.ondestroy&&n.ondestroy(e)}return e}function f(e,t,n){function o(){e.removeChild(y(t,n))}var a=n.attributes&&n.attributes.onremove;a?a(t,o):o()}function x(e,t,n,o,a){if(o===n);else if(null==n||n.nodeName!==o.nodeName){var l=m(o,a);e.insertBefore(l,t),null!=n&&f(e,t,n),t=l}else if(null==n.nodeName)t.nodeValue=o;else{v(t,n.attributes,o.attributes,a=a||"svg"===o.nodeName);for(var c={},r={},d=[],p=n.children,g=o.children,h=0;h<p.length;h++){d[h]=t.childNodes[h];var y=u(p[h]);null!=y&&(c[y]=[d[h],p[h]])}for(var h=0,b=0;b<g.length;){var y=u(p[h]),j=u(g[b]=s(g[b]));if(r[y]){h++;continue}if(null!=j&&j===u(p[h+1])){null==y&&f(t,d[h],p[h]),h++;continue}if(null==j||L)null==y&&(x(t,d[h],p[h],g[b],a),b++),h++;else{var w=c[j]||[];y===j?(x(t,w[0],w[1],g[b],a),h++):w[0]?x(t,t.insertBefore(w[0],d[h]),w[1],g[b],a):x(t,d[h],null,g[b],a),r[j]=g[b],b++}}for(;h<p.length;)null==u(p[h])&&f(t,d[h],p[h]),h++;for(var h in c)r[h]||f(t,c[h][0],c[h][1])}return t}var b,k=[].map,j=o&&o.children[0]||null,w=j&&a(j),_=[],L=!0,I=c(e),S=p([],I,c(t));return l(),S}var unitValue=function(e,t){return"number"==typeof e?"".concat(e,"px"):!1===e?t:e},boxPropNames={grow:function(e){return{flexGrow:e}},shrink:function(e){return{flexShrink:e}},basis:function(e){return{flexBasis:unitValue(e,"auto")}},align:function(e){return{alignItems:e}},justify:function(e){return{justifyContent:e}},padding:function(e){return{margin:unitValue(e,"0")}},margin:function(e){return{margin:unitValue(e,"0")}}},Element$1=function(e){var t=1<arguments.length&&arguments[1]!==void 0?arguments[1]:[],n=e["class"]instanceof Array?e["class"]:[e["class"]],o=["osjs-gui"].concat(toConsumableArray(n));e.orientation&&o.push("osjs-gui-"+e.orientation);var a="string"==typeof e.style?{}:Object.assign({},e.style||{}),s=Object.keys(e).reduce(function(t,n){var o=boxPropNames[n]?boxPropNames[n](e[n]):void 0;return Object.assign({},t,o)},a);return h("div",{oncreate:e.oncreate,ondestroy:e.ondestroy,class:o.filter(function(e){return!!e}).join(" "),style:s},t)},Box=function(e,t){return h(Element$1,Object.assign({orientation:"horizontal"},e,{class:["osjs-gui-box",e["class"]]}),t)},BoxContainer=function(e,t){return h(Element$1,Object.assign({},e,{class:["osjs-gui-box-container",e["class"]]}),t)},BoxStyled=function(e,t){return h(Element$1,Object.assign({},e,{class:["osjs-gui-box-styled",e["class"]]}),t)};function createCommonjsModule(e,t){return t={exports:{}},e(t,t.exports),t.exports}var _typeof_1=createCommonjsModule(function(e){function t(n){"@babel/helpers - typeof";return e.exports="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?t=function(e){return typeof e}:t=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(n)}e.exports=t}),Icon=function(e){var t=e&&"object"===_typeof_1(e)?e.src:e,o=e&&"object"===_typeof_1(e)?e.name:void 0;return h("i",{"data-icon":o,class:"osjs-icon",style:{backgroundImage:"string"==typeof e?"url(".concat(t,")"):void 0}})};function _defineProperty(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var defineProperty=_defineProperty,filteredProps=function(e,t){var n=Object.keys(e);return n.filter(function(e){return-1===t.indexOf(e)}).reduce(function(t,n){return Object.assign(defineProperty({},n,e[n]),t)},{})},doubleTap=function(){var e,t=0<arguments.length&&arguments[0]!==void 0?arguments[0]:250,n=!1;return function(o,a){return(e=clearTimeout(e),e=setTimeout(function(){return n=!1},t),n)?(o.preventDefault(),a(o)):(n=!0,!1)}},createField=function(e,t,n,o,a){var s=t.oninput||function(){},i=t.onchange||function(){},l=t.onkeydown||function(){},c=a||function(e){return[e.target.value]},r=Object.assign({oninput:function(e){return s.apply(void 0,[e].concat(toConsumableArray(c(e))))},onchange:function(e){return i.apply(void 0,[e].concat(toConsumableArray(c(e))))},onkeydown:function(e){13===e.keyCode&&t.onenter&&t.onenter.apply(t,[e].concat(toConsumableArray(c(e)))),l(e)}},n,filteredProps(t,["choices","label","box","oninput","onchange"]));return h(Element$1,Object.assign({},t.box||{},{class:"osjs-gui-field osjs-gui-"+e}),o(r))},Button=function(){var e=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{},t=1<arguments.length&&arguments[1]!==void 0?arguments[1]:[];return createField("button",e,{},function(n){var o=[];return e.icon&&o.push(h(Icon,e.icon)),"string"==typeof e.label&&o.push(h("span",{class:"osjs-label"},e.label)),h("button",n,[].concat(o,toConsumableArray(t)))})},Progressbar=function(e){var t=1<arguments.length&&arguments[1]!==void 0?arguments[1]:[],n="number"==typeof e.value?Math.max(0,Math.abs(e.value))%100:0,o=h("div",{class:"osjs-gui-progressbar-wrapper"},[h("div",{className:"osjs-gui-progressbar-value",style:{width:n+""+"%"}}),h("div",{className:"osjs-gui-progressbar-label"},[h("span",{},[n+""+"%"])])]);return h(Element$1,Object.assign({},e.box||{},{class:["osjs-gui-progressbar",e["class"]]}),[o].concat(toConsumableArray(t)))},ul=function e(t){var n=1<arguments.length&&arguments[1]!==void 0?arguments[1]:[],o=2<arguments.length&&arguments[2]!==void 0?arguments[2]:0,a=function(e){var t=[];return"checkbox"===e.type||"boolean"==typeof e.checked?t.push(h("span",{class:"osjs-gui-menu-checkbox "+(e.checked?"active":"")})):e.icon&&t.push(h(Icon,e.icon)),t.push(h("span",{},e.label)),t},s=function(t,n){if("function"==typeof n.element)return n.element();var s="separator"===n.type?"osjs-gui-menu-separator":"osjs-gui-menu-label "+(n.disabled?"osjs__disabled":""),i=[h("span",{class:s},a(n))];return n.items&&i.push(e(t,n.items,o+1)),i};return h("ul",{class:""},n.map(function(e){return h("li",{class:"osjs-gui-menu-entry"},[h("div",{class:"osjs-gui-menu-container","data-has-image":!!e.icon||void 0,"data-has-children":!!e.items||void 0,onmouseover:e.items?t.onshow:void 0,ontouchend:e.items?t.onshow:void 0,onclick:function(n){e.items||(e.onclick&&e.onclick(e,n),t.onclick&&t.onclick(e,n,e))}},s(t,e))])}))},Menu=function(e){return h("div",{id:"osjs-context-menu",className:"osjs-gui osjs-gui-menu",oncreate:e.oncreate,onupdate:e.onupdate,style:{display:!1===e.visible?"none":"block",top:e.position?e.position.top+""+"px":0,left:e.position?e.position.left+""+"px":0}},ul(e,e.menu))},Toolbar=function(e,t){return h(Element$1,Object.assign({orientation:"vertical"},e,{class:["osjs-gui-toolbar",e["class"]]}),t)},Statusbar=function(e,t){return h(Element$1,Object.assign({},e.box||{},{class:["osjs-gui-statusbar",e["class"]]}),t)},MenubarItem=function(e){var t=1<arguments.length&&arguments[1]!==void 0?arguments[1]:[],n=e.onclick,o=e.data;return h("div",{onclick:function(e){if("function"==typeof n){var t=e.target.parentNode,a=Array.prototype.indexOf.call(t.children,e.target);n(e,o||{},a)}}},h("span",{},t))},Menubar=function(e){var t=1<arguments.length&&arguments[1]!==void 0?arguments[1]:[];return h(Element$1,Object.assign({},e,{class:["osjs-gui-menubar",e["class"]]}),[].concat(toConsumableArray((e.items||[]).map(function(t){return h(MenubarItem,{data:t.data,onclick:t.onclick||e.onclick},t.label)})),toConsumableArray(t)))};function nestable(e,t,n,o){return t._$r=function(){return{}},function(a,s){return h(o||"x-",{key:a.key,id:a.id,class:a.class,oncreate:function(o){var i=app(e,t,function(e,t){var a=n(e,t);return"function"==typeof a&&(a=a(o._$p,o._$c)),a},o);o._$p=a,o._$c=s,o._$r=i._$r,o._$u=i.uninit,i.init&&i.init(a),a.oncreate&&a.oncreate(o)},onupdate:function(e){e._$p=a,e._$c=s,e._$r(),a.onupdate&&a.onupdate(e)},ondestroy:function(e){e._$u&&e._$u()},onremove:function(e,t){return a.onremove?void a.onremove(e,t):t()}})}}var _onmousedown=function(e,t,n){var o=e.target,a=e.clientX,s=e.clientY,i=o.previousSibling,l=i.offsetWidth,c=i.offsetHeight,r=Array.from(o.parentNode.children).indexOf(i),d=.8*i.parentNode.offsetWidth,p=.8*i.parentNode.offsetHeight;if(!(0>r)){var u=function(e){var o=Math.min;e.preventDefault();var i="vertical"===n?l:c;if("vertical"===n){var u=e.clientX-a;i=o(d,i+u)}else{var g=e.clientY-s;i=o(p,i+g)}t.setSize({index:r,size:i})},g=function e(t){t.preventDefault(),document.removeEventListener("mousemove",u),document.removeEventListener("mouseup",e)};e.preventDefault(),document.addEventListener("mousemove",u),document.addEventListener("mouseup",g)}},panes=function(e,t,n,o){var a=Array(Math.ceil(n.length/2)).fill(null).map(function(){return h("div",{class:"osjs-gui-panes-spacer",onmousedown:function(e){return _onmousedown(e,t,o)}})});return n.map(function(t,n){var o=e.sizes[n]?e.sizes[n]+""+"px":void 0;return h("div",{class:"osjs-gui-panes-pane",style:{flex:o?"0 0 ".concat(o):o}},t)}).map(function(e,t){return[e,a[t]]}).reduce(function(e,t){return e.concat(t)}).filter(function(e){return"undefined"!=typeof e})},view=function(e,t){return function(n,o){var a=n.orientation||"vertical";return h(Element$1,{orientation:a,class:"osjs-gui-panes-inner"},panes(e,t,o,a))}},inner=nestable({sizes:[]},{init:function(e){return{sizes:e.sizes||[150]}},setSize:function(e){var t=e.index,n=e.size;return function(e){var o=[].concat(e.sizes);return o[t]=n,{sizes:o}}}},view,"div"),Panes=function(e,t){return h(inner,{class:"osjs-gui-panes"},t)},tapper=doubleTap(),createView=function(e){var t=function(t){return function(n,o){var a=n.columns[t]||{},s=e.selectedIndex===o,i=a.icon?h(Icon,a.icon):null,l=[h("span",{},["object"===_typeof_1(a)?a.label:a])];return i&&l.unshift(i),h("div",{key:n.key,"data-has-icon":!!a.icon||void 0,class:"osjs-gui-list-view-cell"+(s?" osjs__active":""),ontouchstart:function(t){return tapper(t,function(){return e.onactivate({data:n.data,index:o,ev:t})})},ondblclick:function(t){return e.onactivate({data:n.data,index:o,ev:t})},onclick:function(t){return e.onselect({data:n.data,index:o,ev:t})},oncontextmenu:function(t){return e.oncontextmenu({data:n.data,index:o,ev:t})},oncreate:function(t){return e.oncreate({data:n.data,index:o,el:t})}},l)}},n=function(n,o){return h("div",{class:"osjs-gui-list-view-pane",style:o.style||{}},[h("div",{class:"osjs-gui-list-view-header",style:{display:e.hideColumns?"none":void 0}},h("span",{},"object"===_typeof_1(o)?o.label:o)),h("div",{class:"rows","data-zebra":e.zebra+""},e.rows.map(t(n)))])};return h("div",{class:"osjs-gui-list-view-wrapper",oncreate:function(t){return t.scrollTop=e.scrollTop},onupdate:function(t){0>e.selectedIndex&&(t.scrollTop=e.scrollTop)}},e.columns.map(function(e,t){return n(t,e)}))},ListView=function(e){return h(Element$1,Object.assign({class:"osjs-gui-list-view"},e.box||{}),createView(filteredProps(e,["box"])))},listView={component:function(e,t){var n=Object.assign({zebra:!0,columns:[],rows:[],onselect:function(e){var n=e.data,o=e.index,a=e.ev;t.select({data:n,index:o,ev:a}),t.setSelectedIndex(o)},onactivate:function(e){var n=e.data,o=e.index,a=e.ev;t.activate({data:n,index:o,ev:a}),t.setSelectedIndex(-1)},oncontextmenu:function(e){var n=e.data,o=e.index,a=e.ev;t.select({data:n,index:o,ev:a}),t.contextmenu({data:n,index:o,ev:a}),t.setSelectedIndex(o)},oncreate:function(e){t.created(e)}},e);return function(){var e=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{};return ListView(Object.assign(n,e))}},state:function(e){return Object.assign({selectedIndex:-1,scrollTop:0},e)},actions:function(e){return Object.assign({select:function(){return function(){return{}}},activate:function(){return function(){return{}}},contextmenu:function(){return function(){return{}}},created:function(){return function(){return{}}},setRows:function(e){return{rows:e}},setColumns:function(e){return{columns:e}},setScrollTop:function(e){return function(){return{scrollTop:e}}},setSelectedIndex:function(e){return function(){return{selectedIndex:e}}}},e||{})}},tapper$1=doubleTap(),IconViewEntry=function(e,t,n){return function(){var o=e.icon||{name:"application-x-executable"},a=n.selectedIndex===t;return h("div",{class:"osjs-gui-icon-view-entry"+(a?" osjs__active":""),ontouchstart:function(o){return tapper$1(o,function(){return n.onactivate({data:e.data,index:t,ev:o})})},ondblclick:function(o){return n.onactivate({data:e.data,index:t,ev:o})},onclick:function(o){return n.onselect({data:e.data,index:t,ev:o})},oncontextmenu:function(o){return n.oncontextmenu({data:e.data,index:t,ev:o})},oncreate:function(o){return n.oncreate({data:e.data,index:t,el:o})}},[h("div",{class:"osjs__container"},[h("div",{class:"osjs__image"},[h(Icon,o)]),h("div",{class:"osjs__label"},[h("span",{},e.label)])])])}},IconView=function(e){var t=h("div",{class:"osjs-gui-icon-view-wrapper",oncreate:function(t){return t.scrollTop=e.scrollTop},onupdate:function(t){0>e.selectedIndex&&(t.scrollTop=e.scrollTop)}},e.entries.map(function(t,n){return h(IconViewEntry(t,n,e))}));return h(Element$1,Object.assign({class:"osjs-gui-icon-view"},e.box||{}),t)},iconView={component:function(e,t){var n=Object.assign({entries:[],onselect:function(e){var n=e.data,o=e.index,a=e.ev;t.select({data:n,index:o,ev:a}),t.setSelectedIndex(o)},onactivate:function(e){var n=e.data,o=e.index,a=e.ev;t.activate({data:n,index:o,ev:a}),t.setSelectedIndex(-1)},oncontextmenu:function(e){var n=e.data,o=e.index,a=e.ev;t.select({data:n,index:o,ev:a}),t.contextmenu({data:n,index:o,ev:a}),t.setSelectedIndex(o)},oncreate:function(e){t.created(e)}},e);return function(){var e=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{};return IconView(Object.assign(n,e))}},state:function(e){return Object.assign({selectedIndex:-1,scrollTop:0},e)},actions:function(e){return Object.assign({select:function(){return function(){return{}}},activate:function(){return function(){return{}}},contextmenu:function(){return function(){return{}}},created:function(){return function(){return{}}},setEntries:function(e){return function(){return{entries:e}}},setScrollTop:function(e){return function(){return{scrollTop:e}}},setSelectedIndex:function(e){return function(){return{selectedIndex:e}}}},e||{})}},Image=function(e){return h("div",{class:"osjs-gui osjs-gui-image",style:{width:e.width?e.width+""+"px":void 0,height:e.height?e.height+""+"px":void 0}},h("img",e))},sources=function(e){return e.map(function(e){return h("source",e)})},isTrue=function(e){return"undefined"==typeof e||!0===e},Video=function(e){return h("div",{class:"osjs-gui osjs-gui-video",style:{width:e.width?e.width+""+"px":void 0,height:e.height?e.height+""+"px":void 0}},[h("video",{src:e.src,width:e.width,height:e.height,poster:e.poster,loop:e.loop?"loop":void 0,muted:e.muted?"muted":void 0,controls:isTrue(e.controls)?"controls":void 0,autoplay:isTrue(e.autoplay)?"autoplay":void 0,onloadeddata:e.onload,oncreate:e.oncreate,onupdate:e.onupdate,ondestroy:e.ondestroy},sources(e.sources||[]))])},headers=function(e,t,n){var o=e.labels,a=e.onchange,s=e.oncontextmenu;return(o||[]).map(function(e,o){return h("div",{class:t.selectedIndex===o?"osjs__active":"",oncontextmenu:function(t){(s||function(){})(t,o,e)},onclick:function(t){n.setSelectedIndex(o),(a||function(){})(t,o,e)}},h("span",{},e))})},panes$1=function(e,t){return t.map(function(t,n){return h("div",{class:e.selectedIndex===n?"osjs__active":""},t)})},view$1=nestable({selectedIndex:0},{init:function(e){return{selectedIndex:e.selectedIndex||0}},setSelectedIndex:function(e){return function(){return{selectedIndex:e}}}},function(e,t){return function(n,o){return h("div",{class:"osjs-gui-tabs-wrapper"},[h("div",{class:"osjs-gui-tabs-header"},headers(n,e,t)),h("div",{class:"osjs-gui-tabs-panes"},panes$1(e,o))])}},"div"),Tabs=function(e,t){return h(view$1,Object.assign({class:"osjs-gui osjs-gui-tabs "+(e["class"]||"")},e),t)},Iframe=function(e){var t=1<arguments.length&&arguments[1]!==void 0?arguments[1]:[];return h(Element$1,Object.assign({},e.box||{},{class:["osjs-gui-iframe",e["class"]]}),[h("iframe",Object.assign({frameborder:0},filteredProps(e,["box"])))].concat(toConsumableArray(t)))},TextField=function(){var e=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{};return createField("text-field",e,{autocomplete:"off",autocorrect:"off",autocapitalize:"off",spellcheck:"false",type:"text"},function(e){return h("input",e)})},TextareaField=function(){var e=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{},t=1<arguments.length&&arguments[1]!==void 0?arguments[1]:[];return createField("textarea-field",e,{rows:4},function(e){return h("textarea",e,t)})},SelectField=function(){var e=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{},t=1<arguments.length&&arguments[1]!==void 0?arguments[1]:[],n=function(t){return t instanceof Array?t.map(function(e){return"object"===_typeof_1(e)?e:{value:e,label:e}}):Object.keys(e.choices||{}).map(function(t){return{value:t,label:e.choices[t]}})}(e.choices).map(function(t){var n=t.value,o=t.label;return h("option",{value:n,selected:e.value===n},o)});return createField("select-field",e,{selectedIndex:void 0},function(e){return h("div",{},h("select",e,[].concat(toConsumableArray(n),toConsumableArray(t))))},function(e){return[e.target.value,e.target.textContent]})},parseValue=function(t){try{return JSON.parse(t)}catch(n){return t}},ToggleField=function(){var e=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{},t=1<arguments.length&&arguments[1]!==void 0?arguments[1]:[];return createField("toggle-field",e,{type:"checkbox",checked:!1},function(n){return h("label",{},[h("input",n),h("span",{class:"osjs-toggle-input"}),h("span",{class:"osjs-toggle-label"},[e.label||""].concat(toConsumableArray(t)))])},function(t){return["radio"===e.type?parseValue(t.target.value):!!t.target.checked]})},RangeField=function(){var e=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{};return createField("range-field",e,{type:"range"},function(e){return h("input",e)})},view$2=function(e,t){return function(n,o){return h(Element$1,Object.assign({},n.box||{},{class:["osjs-gui-expander-wrapper"]}),[h("div",{class:"osjs-gui-expander-header",onclick:function(o){return t.ontoggle({ev:o,active:!e.active,ontoggle:n.ontoggle})}},[h("div",{class:"osjs-gui-expander-header-icon","data-active":e.active+""}),h("div",{class:"osjs-gui-expander-header-label"},n.label)]),h("div",{class:"osjs-gui-expander-content",style:{display:!1===e.active?"none":void 0}},o)])}},inner$1=nestable({active:!0},{init:function(e){return{ative:!1!==e.active}},ontoggle:function(e){var t=e.ev,n=e.active,o=e.ontoggle;return(o||function(){})(t,n),{active:n}}},view$2,"div"),Expander=function(e,t){return h(inner$1,Object.assign({},e,{class:"osjs-gui osjs-gui-expander"}),t)},Label=function(){var e=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{},t=1<arguments.length&&arguments[1]!==void 0?arguments[1]:[],n=e.placement||"top",o=e.text||"",a=Object.assign({class:["osjs-gui-field-label","osjs-gui-field-label-on-"+n]},e.box||{});return h(Element$1,a,[h("label",{for:e["for"]},o),t])},runtime_1=createCommonjsModule(function(e){var t=function(e){function t(e,t,n,a){var s=t&&t.prototype instanceof o?t:o,i=Object.create(s.prototype),l=new u(a||[]);return i._invoke=c(e,n,l),i}function n(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}function o(){}function a(){}function s(){}function i(e){["next","throw","return"].forEach(function(t){e[t]=function(e){return this._invoke(t,e)}})}function l(e){function t(o,a,s,i){var l=n(e[o],e,a);if("throw"===l.type)i(l.arg);else{var c=l.arg,r=c.value;return r&&"object"==typeof r&&y.call(r,"__await")?Promise.resolve(r.__await).then(function(e){t("next",e,s,i)},function(e){t("throw",e,s,i)}):Promise.resolve(r).then(function(e){c.value=e,s(c)},function(e){return t("throw",e,s,i)})}}function o(e,n){function o(){return new Promise(function(o,a){t(e,n,o,a)})}return a=a?a.then(o,o):o()}var a;this._invoke=o}function c(e,t,o){var a="suspendedStart";return function(s,i){if("executing"===a)throw new Error("Generator is already running");if("completed"===a){if("throw"===s)throw i;return h()}for(o.method=s,o.arg=i;;){var l=o.delegate;if(l){var c=r(l,o);if(c){if(c===j)continue;return c}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if("suspendedStart"===a)throw a="completed",o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);a="executing";var d=n(e,t,o);if("normal"===d.type){if(a=o.done?"completed":"suspendedYield",d.arg===j)continue;return{value:d.arg,done:o.done}}"throw"===d.type&&(a="completed",o.method="throw",o.arg=d.arg)}}}function r(e,t){var o=e.iterator[t.method];if(o===m){if(t.delegate=null,"throw"===t.method){if(e.iterator["return"]&&(t.method="return",t.arg=m,r(e,t),"throw"===t.method))return j;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return j}var a=n(o,e.iterator,t.arg);if("throw"===a.type)return t.method="throw",t.arg=a.arg,t.delegate=null,j;var s=a.arg;if(!s)return t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,j;if(s.done)t[e.resultName]=s.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=m);else return s;return t.delegate=null,j}function d(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function p(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function u(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(d,this),this.reset(!0)}function g(e){if(e){var t=e[x];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(y.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=m,t.done=!0,t};return o.next=o}}return{next:h}}function h(){return{value:m,done:!0}}var m,v=Object.prototype,y=v.hasOwnProperty,f="function"==typeof Symbol?Symbol:{},x=f.iterator||"@@iterator",b=f.asyncIterator||"@@asyncIterator",k=f.toStringTag||"@@toStringTag";e.wrap=t;var j={},w={};w[x]=function(){return this};var _=Object.getPrototypeOf,L=_&&_(_(g([])));L&&L!==v&&y.call(L,x)&&(w=L);var I=s.prototype=o.prototype=Object.create(w);return a.prototype=I.constructor=s,s.constructor=a,s[k]=a.displayName="GeneratorFunction",e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===a||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,s):(e.__proto__=s,!(k in e)&&(e[k]="GeneratorFunction")),e.prototype=Object.create(I),e},e.awrap=function(e){return{__await:e}},i(l.prototype),l.prototype[b]=function(){return this},e.AsyncIterator=l,e.async=function(n,o,a,s){var i=new l(t(n,o,a,s));return e.isGeneratorFunction(o)?i:i.next().then(function(e){return e.done?e.value:i.next()})},i(I),I[k]="Generator",I[x]=function(){return this},I.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var o=t.pop();if(o in e)return n.value=o,n.done=!1,n}return n.done=!0,n}},e.values=g,u.prototype={constructor:u,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=m,this.done=!1,this.delegate=null,this.method="next",this.arg=m,this.tryEntries.forEach(p),!e)for(var t in this)"t"===t.charAt(0)&&y.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=m)},stop:function(){this.done=!0;var e=this.tryEntries[0],t=e.completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){function t(t,o){return s.type="throw",s.arg=e,n.next=t,o&&(n.method="next",n.arg=m),!!o}if(this.done)throw e;for(var n=this,o=this.tryEntries.length-1;0<=o;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return t("end");if(a.tryLoc<=this.prev){var l=y.call(a,"catchLoc"),c=y.call(a,"finallyLoc");if(l&&c){if(this.prev<a.catchLoc)return t(a.catchLoc,!0);if(this.prev<a.finallyLoc)return t(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return t(a.catchLoc,!0);}else if(!c)throw new Error("try statement without catch or finally");else if(this.prev<a.finallyLoc)return t(a.finallyLoc)}}},abrupt:function(e,t){for(var n,o=this.tryEntries.length-1;0<=o;--o)if(n=this.tryEntries[o],n.tryLoc<=this.prev&&y.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var a=n;break}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var s=a?a.completion:{};return s.type=e,s.arg=t,a?(this.method="next",this.next=a.finallyLoc,j):this.complete(s)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),j},finish:function(e){for(var t,n=this.tryEntries.length-1;0<=n;--n)if(t=this.tryEntries[n],t.finallyLoc===e)return this.complete(t.completion,t.afterLoc),p(t),j},catch:function(e){for(var t,n=this.tryEntries.length-1;0<=n;--n)if(t=this.tryEntries[n],t.tryLoc===e){var o=t.completion;if("throw"===o.type){var a=o.arg;p(t)}return a}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:g(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=m),j}},e}(e.exports);try{regeneratorRuntime=t}catch(e){Function("r","regeneratorRuntime = r")(t)}}),regenerator=runtime_1;function asyncGeneratorStep(e,t,n,o,a,s,i){try{var l=e[s](i),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(o,a)}function _asyncToGenerator(e){return function(){var t=this,n=arguments;return new Promise(function(o,a){function s(e){asyncGeneratorStep(l,o,a,s,i,"next",e)}function i(e){asyncGeneratorStep(l,o,a,s,i,"throw",e)}var l=e.apply(t,n);s(void 0)})}}var asyncToGenerator=_asyncToGenerator;function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var classCallCheck=_classCallCheck;function _defineProperties(e,t){for(var n,o=0;o<t.length;o++)n=t[o],n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}function _createClass(e,t,n){return t&&_defineProperties(e.prototype,t),n&&_defineProperties(e,n),e}var createClass=_createClass,clampSubMenu=function(e,t){var n=t.target.querySelector("ul");if(n&&(n.classList.contains("osjs-gui-menu-container")&&(n=n.parentNode.parentNode),n&&n.offsetParent)){n.classList.remove("clamp-right");var o=n.getBoundingClientRect();o.right>e.offsetWidth&&n.classList.add("clamp-right")}},clampMenu=function(e,t,n){var o={},a=n.top+t.offsetHeight,s=n.left+t.offsetWidth,i=e.offsetHeight-n.top,l=e.offsetWidth-n.left,c=s>e.offsetWidth,r=a>e.offsetHeight;return r&&e.offsetHeight>t.offsetHeight&&(o.top=e.offsetHeight-t.offsetHeight-i),c&&(o.left=e.offsetWidth-t.offsetWidth-l),r||c?o:null},view$3=function(e){return function(t,n){return h(Menu,{position:t.position,visible:t.visible,menu:t.menu,onclick:e,onshow:n.onshow})}},timeout=function(e){return e(),setTimeout(e,100)},ContextMenu=function(){function e(t){classCallCheck(this,e),this.core=t,this.callback=function(){},this.actions=null,this.$element=document.createElement("div")}return createClass(e,[{key:"destroy",value:function(){this.callback=null,this.actions=null}},{key:"init",value:function(){var e,t=this;this.$element.className="osjs-system-context-menu",this.core.$root.appendChild(this.$element);var n=!1;this.actions=app({visible:!1,menu:[],position:{top:0,left:0}},{clamp:function(n){return function(o){if(n=n||document.querySelector("#osjs-context-menu"),clearTimeout(e),n){var a=t.core.$root,s=clampMenu(a,n,o.position);if(s)return{position:s}}return{}}},onshow:function(n){return function(){e=timeout(function(){return clampSubMenu(t.core.$root,n)})}},show:function(e){return function(o,a){var s=e.menu,i=e.position,l=e.toggle;if(l&&n)return a.hide();if(i instanceof Event)i={left:i.clientX,top:i.clientY};else if(i instanceof Element){var c=i.getBoundingClientRect();i={left:c.left,top:c.top+c.height}}return t.callback=function(t,n,o){e.callback&&e.callback(t,n),!1!==o.closeable&&a.hide()},n=!0,t.onclose=e.onclose,timeout(function(){return a.clamp()}),{visible:!0,menu:s||[],position:i||{top:0,left:0}}}},hide:function(){return function(){return n&&setTimeout(function(){return n=!1},0),t.onclose&&t.onclose(),t.onclose=null,t.callback=null,{visible:!1}}}},view$3(function(){!t.core.destroyed&&t.callback&&t.callback.apply(t,arguments)}),this.$element)}},{key:"show",value:function(){var e;return this.actions?(e=this.actions).show.apply(e,arguments):null}},{key:"hide",value:function(){var e;return this.actions?(e=this.actions).hide.apply(e,arguments):null}}]),e}(),validContextMenuTarget=function(e){var t=e.target,n="TEXTAREA"===t.tagName;return n||"INPUT"!==t.tagName||(n=-1!==["text","password","number","email"].indexOf(t.type)),n},GUIServiceProvider=function(){function e(t){classCallCheck(this,e),this.core=t,this.contextmenu=new ContextMenu(t)}return createClass(e,[{key:"destroy",value:function(){var e=document.getElementById("osjs-context-menu");e&&e.remove(),this.contextmenu.destroy()}},{key:"init",value:function(){var e=asyncToGenerator(regenerator.mark(function e(){var t,n=this;return regenerator.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:t={show:function(){var e;return(e=n.contextmenu).show.apply(e,arguments)},hide:function(){var e;return(e=n.contextmenu).hide.apply(e,arguments)}},this.core.instance("osjs/contextmenu",function(){return arguments.length?t.show.apply(t,arguments):t}),this.core.$root.addEventListener("contextmenu",function(e){validContextMenuTarget(e)||(e.stopPropagation(),e.preventDefault())});case 3:case"end":return e.stop();}},e,this)}));return function(){return e.apply(this,arguments)}}()},{key:"start",value:function(){var e=this,t=function(t){var n=document.getElementById("osjs-context-menu"),o=n&&n.contains(t.target);!o&&e.contextmenu&&e.contextmenu.hide()};this.core.$root.addEventListener("click",t,!0),this.core.once("destroy",function(){e.core.$root.removeEventListener("click",t,!0)}),this.contextmenu.init()}}]),e}();export{Box,BoxContainer,BoxStyled,Button,Element$1 as Element,Expander,GUIServiceProvider,Icon,IconView,IconViewEntry,Iframe,Image,Label,ListView,Menu,Menubar,MenubarItem,Panes,Progressbar,RangeField,SelectField,Statusbar,Tabs,TextField,TextareaField,ToggleField,Toolbar,Video,iconView,listView};
//# sourceMappingURL=esm.js.map

@@ -1,2 +0,2 @@

!function(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define("osjsGui",[],n):"object"==typeof exports?exports.osjsGui=n():t.osjsGui=n()}(window,(function(){return function(t){var n={};function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:r})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,n){if(1&n&&(t=e(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(e.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var o in t)e.d(r,o,function(n){return t[n]}.bind(null,o));return r},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},e.p="",e(e.s=7)}([function(t,n,e){var r=e(9),o=e(10),i=e(11);t.exports=function(t){return r(t)||o(t)||i()}},function(t,n){function e(n){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?t.exports=e=function(t){return typeof t}:t.exports=e=function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},e(n)}t.exports=e},function(t,n){t.exports=function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}},function(t,n){function e(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}t.exports=function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}},function(t,n,e){t.exports=e(12)},function(t,n){t.exports=function(t,n,e){return n in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}},function(t,n){function e(t,n,e,r,o,i,c){try{var u=t[i](c),a=u.value}catch(t){return void e(t)}u.done?n(a):Promise.resolve(a).then(r,o)}t.exports=function(t){return function(){var n=this,r=arguments;return new Promise((function(o,i){var c=t.apply(n,r);function u(t){e(c,o,i,u,a,"next",t)}function a(t){e(c,o,i,u,a,"throw",t)}u(void 0)}))}}},function(t,n,e){t.exports=e(13)},function(t,n,e){},function(t,n){t.exports=function(t){if(Array.isArray(t)){for(var n=0,e=new Array(t.length);n<t.length;n++)e[n]=t[n];return e}}},function(t,n){t.exports=function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}},function(t,n){t.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}},function(t,n,e){var r=function(t){"use strict";var n=Object.prototype,e=n.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",i=r.asyncIterator||"@@asyncIterator",c=r.toStringTag||"@@toStringTag";function u(t,n,e,r){var o=n&&n.prototype instanceof l?n:l,i=Object.create(o.prototype),c=new w(r||[]);return i._invoke=function(t,n,e){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return O()}for(e.method=o,e.arg=i;;){var c=e.delegate;if(c){var u=b(c,e);if(u){if(u===s)continue;return u}}if("next"===e.method)e.sent=e._sent=e.arg;else if("throw"===e.method){if("suspendedStart"===r)throw r="completed",e.arg;e.dispatchException(e.arg)}else"return"===e.method&&e.abrupt("return",e.arg);r="executing";var l=a(t,n,e);if("normal"===l.type){if(r=e.done?"completed":"suspendedYield",l.arg===s)continue;return{value:l.arg,done:e.done}}"throw"===l.type&&(r="completed",e.method="throw",e.arg=l.arg)}}}(t,e,c),i}function a(t,n,e){try{return{type:"normal",arg:t.call(n,e)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var s={};function l(){}function f(){}function d(){}var v={};v[o]=function(){return this};var p=Object.getPrototypeOf,h=p&&p(p(k([])));h&&h!==n&&e.call(h,o)&&(v=h);var g=d.prototype=l.prototype=Object.create(v);function m(t){["next","throw","return"].forEach((function(n){t[n]=function(t){return this._invoke(n,t)}}))}function y(t){var n;this._invoke=function(r,o){function i(){return new Promise((function(n,i){!function n(r,o,i,c){var u=a(t[r],t,o);if("throw"!==u.type){var s=u.arg,l=s.value;return l&&"object"==typeof l&&e.call(l,"__await")?Promise.resolve(l.__await).then((function(t){n("next",t,i,c)}),(function(t){n("throw",t,i,c)})):Promise.resolve(l).then((function(t){s.value=t,i(s)}),(function(t){return n("throw",t,i,c)}))}c(u.arg)}(r,o,n,i)}))}return n=n?n.then(i,i):i()}}function b(t,n){var e=t.iterator[n.method];if(void 0===e){if(n.delegate=null,"throw"===n.method){if(t.iterator.return&&(n.method="return",n.arg=void 0,b(t,n),"throw"===n.method))return s;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return s}var r=a(e,t.iterator,n.arg);if("throw"===r.type)return n.method="throw",n.arg=r.arg,n.delegate=null,s;var o=r.arg;return o?o.done?(n[t.resultName]=o.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=void 0),n.delegate=null,s):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,s)}function x(t){var n={tryLoc:t[0]};1 in t&&(n.catchLoc=t[1]),2 in t&&(n.finallyLoc=t[2],n.afterLoc=t[3]),this.tryEntries.push(n)}function j(t){var n=t.completion||{};n.type="normal",delete n.arg,t.completion=n}function w(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(x,this),this.reset(!0)}function k(t){if(t){var n=t[o];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function n(){for(;++r<t.length;)if(e.call(t,r))return n.value=t[r],n.done=!1,n;return n.value=void 0,n.done=!0,n};return i.next=i}}return{next:O}}function O(){return{value:void 0,done:!0}}return f.prototype=g.constructor=d,d.constructor=f,d[c]=f.displayName="GeneratorFunction",t.isGeneratorFunction=function(t){var n="function"==typeof t&&t.constructor;return!!n&&(n===f||"GeneratorFunction"===(n.displayName||n.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,c in t||(t[c]="GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},m(y.prototype),y.prototype[i]=function(){return this},t.AsyncIterator=y,t.async=function(n,e,r,o){var i=new y(u(n,e,r,o));return t.isGeneratorFunction(e)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},m(g),g[c]="Generator",g[o]=function(){return this},g.toString=function(){return"[object Generator]"},t.keys=function(t){var n=[];for(var e in t)n.push(e);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=k,w.prototype={constructor:w,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(j),!t)for(var n in this)"t"===n.charAt(0)&&e.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function r(e,r){return c.type="throw",c.arg=t,n.next=e,r&&(n.method="next",n.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],c=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var u=e.call(i,"catchLoc"),a=e.call(i,"finallyLoc");if(u&&a){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!a)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(t,n){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&e.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=n&&n<=i.finallyLoc&&(i=null);var c=i?i.completion:{};return c.type=t,c.arg=n,i?(this.method="next",this.next=i.finallyLoc,s):this.complete(c)},complete:function(t,n){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&n&&(this.next=n),s},finish:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var e=this.tryEntries[n];if(e.finallyLoc===t)return this.complete(e.completion,e.afterLoc),j(e),s}},catch:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var e=this.tryEntries[n];if(e.tryLoc===t){var r=e.completion;if("throw"===r.type){var o=r.arg;j(e)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,e){return this.delegate={iterator:k(t),resultName:n,nextLoc:e},"next"===this.method&&(this.arg=void 0),s}},t}(t.exports);try{regeneratorRuntime=r}catch(t){Function("r","regeneratorRuntime = r")(r)}},function(t,n,e){"use strict";e.r(n);e(8);var r=e(0),o=e.n(r);function i(t,n){for(var e=[],r=[],o=arguments.length;o-- >2;)e.push(arguments[o]);for(;e.length;){var i=e.pop();if(i&&i.pop)for(o=i.length;o--;)e.push(i[o]);else null!=i&&!0!==i&&!1!==i&&r.push(i)}return"function"==typeof t?t(n||{},r):{nodeName:t,attributes:n||{},children:r,key:n&&n.key}}function c(t,n,e,r){var o,i=[].map,c=r&&r.children[0]||null,u=c&&function t(n){return{nodeName:n.nodeName.toLowerCase(),attributes:{},children:i.call(n.childNodes,(function(n){return 3===n.nodeType?n.nodeValue:t(n)}))}}(c),a=[],s=!0,l=h(t),f=function t(n,e,r){for(var o in r)"function"==typeof r[o]?function(t,o){r[t]=function(t){var i=o(t);return"function"==typeof i&&(i=i(m(n,l),r)),i&&i!==(e=m(n,l))&&!i.then&&p(l=g(n,h(e,i),l)),i}}(o,r[o]):t(n.concat(o),e[o]=h(e[o]),r[o]=h(r[o]));return r}([],l,h(n));return p(),f;function d(t){return"function"==typeof t?d(t(l,f)):null!=t?t:""}function v(){o=!o;var t=d(e);for(r&&!o&&(c=function t(n,e,r,o,i){if(o===r);else if(null==r||r.nodeName!==o.nodeName){var c=function t(n,e){var r="string"==typeof n||"number"==typeof n?document.createTextNode(n):(e=e||"svg"===n.nodeName)?document.createElementNS("http://www.w3.org/2000/svg",n.nodeName):document.createElement(n.nodeName),o=n.attributes;if(o){o.oncreate&&a.push((function(){o.oncreate(r)}));for(var i=0;i<n.children.length;i++)r.appendChild(t(n.children[i]=d(n.children[i]),e));for(var c in o)x(r,c,o[c],null,e)}return r}(o,i);n.insertBefore(c,e),null!=r&&j(n,e,r),e=c}else if(null==r.nodeName)e.nodeValue=o;else{!function(t,n,e,r){for(var o in h(n,e))e[o]!==("value"===o||"checked"===o?t[o]:n[o])&&x(t,o,e[o],n[o],r);var i=s?e.oncreate:e.onupdate;i&&a.push((function(){i(t,n)}))}(e,r.attributes,o.attributes,i=i||"svg"===o.nodeName);for(var u={},l={},f=[],v=r.children,p=o.children,g=0;g<v.length;g++){f[g]=e.childNodes[g],null!=(b=y(v[g]))&&(u[b]=[f[g],v[g]])}g=0;for(var m=0;m<p.length;){var b=y(v[g]),w=y(p[m]=d(p[m]));if(l[b])g++;else if(null==w||w!==y(v[g+1]))if(null==w||s)null==b&&(t(e,f[g],v[g],p[m],i),m++),g++;else{var k=u[w]||[];b===w?(t(e,k[0],k[1],p[m],i),g++):k[0]?t(e,e.insertBefore(k[0],f[g]),k[1],p[m],i):t(e,f[g],null,p[m],i),l[w]=p[m],m++}else null==b&&j(e,f[g],v[g]),g++}for(;g<v.length;)null==y(v[g])&&j(e,f[g],v[g]),g++;for(var g in u)l[g]||j(e,u[g][0],u[g][1])}return e}(r,c,u,u=t)),s=!1;a.length;)a.pop()()}function p(){o||(o=!0,setTimeout(v))}function h(t,n){var e={};for(var r in t)e[r]=t[r];for(var r in n)e[r]=n[r];return e}function g(t,n,e){var r={};return t.length?(r[t[0]]=t.length>1?g(t.slice(1),n,e[t[0]]):n,h(e,r)):n}function m(t,n){for(var e=0;e<t.length;)n=n[t[e++]];return n}function y(t){return t?t.key:null}function b(t){return t.currentTarget.events[t.type](t)}function x(t,n,e,r,o){if("key"===n);else if("style"===n)if("string"==typeof e)t.style.cssText=e;else for(var i in"string"==typeof r&&(r=t.style.cssText=""),h(r,e)){var c=null==e||null==e[i]?"":e[i];"-"===i[0]?t.style.setProperty(i,c):t.style[i]=c}else"o"===n[0]&&"n"===n[1]?(n=n.slice(2),t.events?r||(r=t.events[n]):t.events={},t.events[n]=e,e?r||t.addEventListener(n,b):t.removeEventListener(n,b)):n in t&&"list"!==n&&"type"!==n&&"draggable"!==n&&"spellcheck"!==n&&"translate"!==n&&!o?t[n]=null==e?"":e:null!=e&&!1!==e&&t.setAttribute(n,e),null!=e&&!1!==e||t.removeAttribute(n)}function j(t,n,e){function r(){t.removeChild(function t(n,e){var r=e.attributes;if(r){for(var o=0;o<e.children.length;o++)t(n.childNodes[o],e.children[o]);r.ondestroy&&r.ondestroy(n)}return n}(n,e))}var o=e.attributes&&e.attributes.onremove;o?o(n,r):r()}}var u=function(t,n){return"number"==typeof t?"".concat(t,"px"):!1===t?n:t},a={grow:function(t){return{flexGrow:t}},shrink:function(t){return{flexShrink:t}},basis:function(t){return{flexBasis:u(t,"auto")}},align:function(t){return{alignItems:t}},justify:function(t){return{justifyContent:t}},padding:function(t){return{margin:u(t,"0")}},margin:function(t){return{margin:u(t,"0")}}},s=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],e=t.class instanceof Array?t.class:[t.class],r=["osjs-gui"].concat(o()(e));t.orientation&&r.push("osjs-gui-"+t.orientation);var c="string"==typeof t.style?{}:Object.assign({},t.style||{}),u=Object.keys(t).reduce((function(n,e){var r=a[e]?a[e](t[e]):void 0;return Object.assign({},n,r)}),c);return i("div",{oncreate:t.oncreate,ondestroy:t.ondestroy,class:r.filter((function(t){return!!t})).join(" "),style:u},n)},l=function(t,n){return i(s,Object.assign({orientation:"horizontal"},t,{class:["osjs-gui-box",t.class]}),n)},f=function(t,n){return i(s,Object.assign({},t,{class:["osjs-gui-box-container",t.class]}),n)},d=function(t,n){return i(s,Object.assign({},t,{class:["osjs-gui-box-styled",t.class]}),n)},v=e(1),p=e.n(v),h=function(t,n){var e=t&&"object"===p()(t)?t.src:t;return i("i",{"data-icon":t&&"object"===p()(t)?t.name:void 0,class:"osjs-icon",style:{backgroundImage:"string"==typeof t?"url(".concat(e,")"):void 0}})},g=e(5),m=e.n(g),y=function(t,n){return Object.keys(t).filter((function(t){return-1===n.indexOf(t)})).reduce((function(n,e){return Object.assign(m()({},e,t[e]),n)}),{})},b=function(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:250,e=!1;return function(r,o){return t=clearTimeout(t),t=setTimeout((function(){return e=!1}),n),e?(r.preventDefault(),o(r)):(e=!0,!1)}},x=function(t,n,e,r,c){var u=n.oninput||function(){},a=n.onchange||function(){},l=n.onkeydown||function(){},f=c||function(t){return[t.target.value]},d=Object.assign({oninput:function(t){return u.apply(void 0,[t].concat(o()(f(t))))},onchange:function(t){return a.apply(void 0,[t].concat(o()(f(t))))},onkeydown:function(t){13===t.keyCode&&n.onenter&&n.onenter.apply(n,[t].concat(o()(f(t)))),l(t)}},e,y(n,["choices","label","box","oninput","onchange"]));return i(s,Object.assign({},n.box||{},{class:"osjs-gui-field osjs-gui-"+t}),r(d))},j=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return x("button",t,{},(function(e){var r=[];return t.icon&&r.push(i(h,t.icon)),"string"==typeof t.label&&r.push(i("span",{class:"osjs-label"},t.label)),i("button",e,[].concat(r,o()(n)))}))},w=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],e="number"==typeof t.value?Math.max(0,Math.abs(t.value))%100:0,r=i("div",{class:"osjs-gui-progressbar-wrapper"},[i("div",{className:"osjs-gui-progressbar-value",style:{width:String(e)+"%"}}),i("div",{className:"osjs-gui-progressbar-label"},[i("span",{},[String(e)+"%"])])]);return i(s,Object.assign({},t.box||{},{class:["osjs-gui-progressbar",t.class]}),[r].concat(o()(n)))},k=function(t){return i("div",{id:"osjs-context-menu",className:"osjs-gui osjs-gui-menu",oncreate:t.oncreate,onupdate:t.onupdate,style:{display:!1!==t.visible?"block":"none",top:t.position?String(t.position.top)+"px":0,left:t.position?String(t.position.left)+"px":0}},function t(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=function(t){var n=[];return"checkbox"===t.type||"boolean"==typeof t.checked?n.push(i("span",{class:"osjs-gui-menu-checkbox "+(t.checked?"active":"")})):t.icon&&n.push(i(h,t.icon)),n.push(i("span",{},t.label)),n},c=function(n,e){if("function"==typeof e.element)return e.element();var c=[i("span",{class:"separator"===e.type?"osjs-gui-menu-separator":"osjs-gui-menu-label "+(e.disabled?"osjs__disabled":"")},o(e))];return e.items&&c.push(t(n,e.items,r+1)),c};return i("ul",{class:""},e.map((function(t){return i("li",{class:"osjs-gui-menu-entry"},[i("div",{class:"osjs-gui-menu-container","data-has-image":!!t.icon||void 0,"data-has-children":!!t.items||void 0,onmouseover:t.items?n.onshow:void 0,ontouchend:t.items?n.onshow:void 0,onclick:function(e){t.items||(t.onclick&&t.onclick(t,e),n.onclick&&n.onclick(t,e,t))}},c(n,t))])})))}(t,t.menu))},O=function(t,n){return i(s,Object.assign({orientation:"vertical"},t,{class:["osjs-gui-toolbar",t.class]}),n)},S=function(t,n){return i(s,Object.assign({},t.box||{},{class:["osjs-gui-statusbar",t.class]}),n)},_=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],e=t.onclick,r=t.data;return i("div",{onclick:function(t){if("function"==typeof e){var n=t.target.parentNode,o=Array.prototype.indexOf.call(n.children,t.target);e(t,r||{},o)}}},i("span",{},n))},E=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return i(s,Object.assign({},t,{class:["osjs-gui-menubar",t.class]}),[].concat(o()((t.items||[]).map((function(n){return i(_,{data:n.data,onclick:n.onclick||t.onclick},n.label)}))),o()(n)))};function L(t,n,e,r){return n._$r=function(){return{}},function(o,u){return i(r||"x-",{key:o.key,id:o.id,class:o.class,oncreate:function(r){var i=c(t,n,(function(t,n){var o=e(t,n);return"function"==typeof o&&(o=o(r._$p,r._$c)),o}),r);r._$p=o,r._$c=u,r._$r=i._$r,r._$u=i.uninit,i.init&&i.init(o),o.oncreate&&o.oncreate(r)},onupdate:function(t){t._$p=o,t._$c=u,t._$r(),o.onupdate&&o.onupdate(t)},ondestroy:function(t){t._$u&&t._$u()},onremove:function(t,n){if(!o.onremove)return n();o.onremove(t,n)}})}}var T=function(t,n,e,r){var o=Array(Math.ceil(e.length/2)).fill(null).map((function(){return i("div",{class:"osjs-gui-panes-spacer",onmousedown:function(t){return function(t,n,e){var r=t.target,o=t.clientX,i=t.clientY,c=r.previousSibling,u=c.offsetWidth,a=c.offsetHeight,s=Array.from(r.parentNode.children).indexOf(c),l=.8*c.parentNode.offsetWidth,f=.8*c.parentNode.offsetHeight;if(!(s<0)){var d=function(t){t.preventDefault();var r="vertical"===e?u:a;if("vertical"===e){var c=t.clientX-o;r=Math.min(l,r+c)}else{var d=t.clientY-i;r=Math.min(f,r+d)}n.setSize({index:s,size:r})};t.preventDefault(),document.addEventListener("mousemove",d),document.addEventListener("mouseup",(function t(n){n.preventDefault(),document.removeEventListener("mousemove",d),document.removeEventListener("mouseup",t)}))}}(t,n,r)}})}));return e.map((function(n,e){var r=t.sizes[e]?String(t.sizes[e])+"px":void 0;return i("div",{class:"osjs-gui-panes-pane",style:{flex:r?"0 0 ".concat(r):r}},n)})).map((function(t,n){return[t,o[n]]})).reduce((function(t,n){return t.concat(n)})).filter((function(t){return void 0!==t}))},I=L({sizes:[]},{init:function(t){return{sizes:t.sizes||[150]}},setSize:function(t){var n=t.index,e=t.size;return function(t){var r=[].concat(t.sizes);return r[n]=e,{sizes:r}}}},(function(t,n){return function(e,r){var o=e.orientation||"vertical";return i(s,{orientation:o,class:"osjs-gui-panes-inner"},T(t,n,r,o))}}),"div"),N=function(t,n){return i(I,{class:"osjs-gui-panes"},n)},P=b(),$=function(t){return i("div",{class:"osjs-gui-list-view-wrapper",oncreate:function(n){return n.scrollTop=t.scrollTop},onupdate:function(n){t.selectedIndex<0&&(n.scrollTop=t.scrollTop)}},t.columns.map((function(n,e){return r=e,i("div",{class:"osjs-gui-list-view-pane",style:(o=n).style||{}},[i("div",{class:"osjs-gui-list-view-header",style:{display:t.hideColumns?"none":void 0}},i("span",{},"object"===p()(o)?o.label:o)),i("div",{class:"rows","data-zebra":String(t.zebra)},t.rows.map((c=r,function(n,e){var r=n.columns[c]||{},o=t.selectedIndex===e,u=r.icon?i(h,r.icon):null,a=[i("span",{},["object"===p()(r)?r.label:r])];return u&&a.unshift(u),i("div",{key:n.key,"data-has-icon":!!r.icon||void 0,class:"osjs-gui-list-view-cell"+(o?" osjs__active":""),ontouchstart:function(r){return P(r,(function(){return t.onactivate({data:n.data,index:e,ev:r})}))},ondblclick:function(r){return t.onactivate({data:n.data,index:e,ev:r})},onclick:function(r){return t.onselect({data:n.data,index:e,ev:r})},oncontextmenu:function(r){return t.oncontextmenu({data:n.data,index:e,ev:r})},oncreate:function(r){return t.oncreate({data:n.data,index:e,el:r})}},a)})))]);var r,o,c})))},z=function(t){return i(s,Object.assign({class:"osjs-gui-list-view"},t.box||{}),$(y(t,["box"])))},A={component:function(t,n){var e=Object.assign({zebra:!0,columns:[],rows:[],onselect:function(t){var e=t.data,r=t.index,o=t.ev;n.select({data:e,index:r,ev:o}),n.setSelectedIndex(r)},onactivate:function(t){var e=t.data,r=t.index,o=t.ev;n.activate({data:e,index:r,ev:o}),n.setSelectedIndex(-1)},oncontextmenu:function(t){var e=t.data,r=t.index,o=t.ev;n.select({data:e,index:r,ev:o}),n.contextmenu({data:e,index:r,ev:o}),n.setSelectedIndex(r)},oncreate:function(t){n.created(t)}},t);return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return z(Object.assign(e,t))}},state:function(t){return Object.assign({selectedIndex:-1,scrollTop:0},t)},actions:function(t){return Object.assign({select:function(){return function(){return{}}},activate:function(){return function(){return{}}},contextmenu:function(){return function(){return{}}},created:function(){return function(){return{}}},setRows:function(t){return{rows:t}},setColumns:function(t){return{columns:t}},setScrollTop:function(t){return function(n){return{scrollTop:t}}},setSelectedIndex:function(t){return function(n){return{selectedIndex:t}}}},t||{})}},C=b(),G=function(t,n,e){return function(){var r=t.icon||{name:"application-x-executable"};return i("div",{class:"osjs-gui-icon-view-entry"+(e.selectedIndex===n?" osjs__active":""),ontouchstart:function(r){return C(r,(function(){return e.onactivate({data:t.data,index:n,ev:r})}))},ondblclick:function(r){return e.onactivate({data:t.data,index:n,ev:r})},onclick:function(r){return e.onselect({data:t.data,index:n,ev:r})},oncontextmenu:function(r){return e.oncontextmenu({data:t.data,index:n,ev:r})},oncreate:function(r){return e.oncreate({data:t.data,index:n,el:r})}},[i("div",{class:"osjs__container"},[i("div",{class:"osjs__image"},[i(h,r)]),i("div",{class:"osjs__label"},[i("span",{},t.label)])])])}},M=function(t){var n=i("div",{class:"osjs-gui-icon-view-wrapper",oncreate:function(n){return n.scrollTop=t.scrollTop},onupdate:function(n){t.selectedIndex<0&&(n.scrollTop=t.scrollTop)}},t.entries.map((function(n,e){return i(G(n,e,t))})));return i(s,Object.assign({class:"osjs-gui-icon-view"},t.box||{}),n)},B={component:function(t,n){var e=Object.assign({entries:[],onselect:function(t){var e=t.data,r=t.index,o=t.ev;n.select({data:e,index:r,ev:o}),n.setSelectedIndex(r)},onactivate:function(t){var e=t.data,r=t.index,o=t.ev;n.activate({data:e,index:r,ev:o}),n.setSelectedIndex(-1)},oncontextmenu:function(t){var e=t.data,r=t.index,o=t.ev;n.select({data:e,index:r,ev:o}),n.contextmenu({data:e,index:r,ev:o}),n.setSelectedIndex(r)},oncreate:function(t){n.created(t)}},t);return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return M(Object.assign(e,t))}},state:function(t){return Object.assign({selectedIndex:-1,scrollTop:0},t)},actions:function(t){return Object.assign({select:function(){return function(){return{}}},activate:function(){return function(){return{}}},contextmenu:function(){return function(){return{}}},created:function(){return function(){return{}}},setEntries:function(t){return function(){return{entries:t}}},setScrollTop:function(t){return function(n){return{scrollTop:t}}},setSelectedIndex:function(t){return function(n){return{selectedIndex:t}}}},t||{})}},F=function(t,n){return i("div",{class:"osjs-gui osjs-gui-image",style:{width:t.width?String(t.width)+"px":void 0,height:t.height?String(t.height)+"px":void 0}},i("img",t))},H=function(t){return void 0===t||!0===t},V=function(t,n){return i("div",{class:"osjs-gui osjs-gui-video",style:{width:t.width?String(t.width)+"px":void 0,height:t.height?String(t.height)+"px":void 0}},[i("video",{src:t.src,width:t.width,height:t.height,poster:t.poster,loop:t.loop?"loop":void 0,muted:t.muted?"muted":void 0,controls:H(t.controls)?"controls":void 0,autoplay:H(t.autoplay)?"autoplay":void 0,onloadeddata:t.onload,oncreate:t.oncreate,onupdate:t.onupdate,ondestroy:t.ondestroy},(e=t.sources||[],e.map((function(t){return i("source",t)}))))]);var e},W=function(t,n,e){var r=t.labels,o=t.onchange,c=t.oncontextmenu;return(r||[]).map((function(t,r){return i("div",{class:n.selectedIndex===r?"osjs__active":"",oncontextmenu:function(n){(c||function(){})(n,r,t)},onclick:function(n){e.setSelectedIndex(r),(o||function(){})(n,r,t)}},i("span",{},t))}))},R=function(t,n){return n.map((function(n,e){return i("div",{class:t.selectedIndex===e?"osjs__active":""},n)}))},D=L({selectedIndex:0},{init:function(t){return{selectedIndex:t.selectedIndex||0}},setSelectedIndex:function(t){return function(n){return{selectedIndex:t}}}},(function(t,n){return function(e,r){return i("div",{class:"osjs-gui-tabs-wrapper"},[i("div",{class:"osjs-gui-tabs-header"},W(e,t,n)),i("div",{class:"osjs-gui-tabs-panes"},R(t,r))])}}),"div"),Y=function(t,n){return i(D,Object.assign({class:"osjs-gui osjs-gui-tabs "+(t.class||"")},t),n)},X=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return i(s,Object.assign({},t.box||{},{class:["osjs-gui-iframe",t.class]}),[i("iframe",Object.assign({frameborder:0},y(t,["box"])))].concat(o()(n)))},q=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};arguments.length>1&&void 0!==arguments[1]&&arguments[1];return x("text-field",t,{autocomplete:"off",autocorrect:"off",autocapitalize:"off",spellcheck:"false",type:"text"},(function(t){return i("input",t)}))},U=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return x("textarea-field",t,{rows:4},(function(t){return i("textarea",t,n)}))},J=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],e=function(n){return n instanceof Array?n.map((function(t){return"object"===p()(t)?t:{value:t,label:t}})):Object.keys(t.choices||{}).map((function(n){return{value:n,label:t.choices[n]}}))},r=e(t.choices).map((function(n){var e=n.value,r=n.label;return i("option",{value:e,selected:t.value===e},r)})),c=function(t){return[t.target.value,t.target.textContent]},u=function(t){return i("div",{},i("select",t,[].concat(o()(r),o()(n))))};return x("select-field",t,{selectedIndex:void 0},u,c)},K=function(t){try{return JSON.parse(t)}catch(n){return t}},Q=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return x("toggle-field",t,{type:"checkbox",checked:!1},(function(e){return i("label",{},[i("input",e),i("span",{class:"osjs-toggle-input"}),i("span",{class:"osjs-toggle-label"},[t.label||""].concat(o()(n)))])}),(function(n){return["radio"===t.type?K(n.target.value):!!n.target.checked]}))},Z=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};arguments.length>1&&void 0!==arguments[1]&&arguments[1];return x("range-field",t,{type:"range"},(function(t){return i("input",t)}))},tt=L({active:!0},{init:function(t){return{ative:!1!==t.active}},ontoggle:function(t){var n=t.ev,e=t.active;return(t.ontoggle||function(){})(n,e),{active:e}}},(function(t,n){return function(e,r){return i(s,Object.assign({},e.box||{},{class:["osjs-gui-expander-wrapper"]}),[i("div",{class:"osjs-gui-expander-header",onclick:function(r){return n.ontoggle({ev:r,active:!t.active,ontoggle:e.ontoggle})}},[i("div",{class:"osjs-gui-expander-header-icon","data-active":String(t.active)}),i("div",{class:"osjs-gui-expander-header-label"},e.label)]),i("div",{class:"osjs-gui-expander-content",style:{display:!1===t.active?"none":void 0}},r)])}}),"div"),nt=function(t,n){return i(tt,Object.assign({},t,{class:"osjs-gui osjs-gui-expander"}),n)},et=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],e=t.placement||"top",r=t.text||"",o=Object.assign({class:["osjs-gui-field-label","osjs-gui-field-label-on-"+e]},t.box||{});return i(s,o,[i("label",{for:t.for},r),n])},rt=e(4),ot=e.n(rt),it=e(6),ct=e.n(it),ut=e(2),at=e.n(ut),st=e(3),lt=e.n(st),ft=function(t){return t(),setTimeout(t,100)},dt=function(){function t(n){at()(this,t),this.core=n,this.callback=function(){},this.actions=null,this.$element=document.createElement("div")}return lt()(t,[{key:"destroy",value:function(){this.callback=null,this.actions=null}},{key:"init",value:function(){var t,n=this;this.$element.className="osjs-system-context-menu",this.core.$root.appendChild(this.$element);var e,r=!1;this.actions=c({visible:!1,menu:[],position:{top:0,left:0}},{clamp:function(e){return function(r){if(e=e||document.querySelector("#osjs-context-menu"),clearTimeout(t),e){var o=function(t,n,e){var r={},o=e.top+n.offsetHeight,i=e.left+n.offsetWidth,c=t.offsetHeight-e.top,u=t.offsetWidth-e.left,a=i>t.offsetWidth,s=o>t.offsetHeight;return s&&t.offsetHeight>n.offsetHeight&&(r.top=t.offsetHeight-n.offsetHeight-c),a&&(r.left=t.offsetWidth-n.offsetWidth-u),s||a?r:null}(n.core.$root,e,r.position);if(o)return{position:o}}return{}}},onshow:function(e){return function(r){t=ft((function(){return function(t,n){var e=n.target.querySelector("ul");e&&(e.classList.contains("osjs-gui-menu-container")&&(e=e.parentNode.parentNode),e&&e.offsetParent&&(e.classList.remove("clamp-right"),e.getBoundingClientRect().right>t.offsetWidth&&e.classList.add("clamp-right")))}(n.core.$root,e)}))}},show:function(t){return function(e,o){var i=t.menu,c=t.position;if(t.toggle&&r)return o.hide();if(c instanceof Event)c={left:c.clientX,top:c.clientY};else if(c instanceof Element){var u=c.getBoundingClientRect();c={left:u.left,top:u.top+u.height}}return n.callback=function(n,e,r){t.callback&&t.callback(n,e),!1!==r.closeable&&o.hide()},r=!0,n.onclose=t.onclose,ft((function(){return o.clamp()})),{visible:!0,menu:i||[],position:c||{top:0,left:0}}}},hide:function(){return function(t){return r&&setTimeout((function(){return r=!1}),0),n.onclose&&n.onclose(),n.onclose=null,n.callback=null,{visible:!1}}}},(e=function(){n.core.destroyed||n.callback&&n.callback.apply(n,arguments)},function(t,n){return i(k,{position:t.position,visible:t.visible,menu:t.menu,onclick:e,onshow:n.onshow})}),this.$element)}},{key:"show",value:function(){var t;return this.actions?(t=this.actions).show.apply(t,arguments):null}},{key:"hide",value:function(){var t;return this.actions?(t=this.actions).hide.apply(t,arguments):null}}]),t}(),vt=function(t){var n=t.target,e="TEXTAREA"===n.tagName;return e||"INPUT"!==n.tagName||(e=-1!==["text","password","number","email"].indexOf(n.type)),e},pt=function(){function t(n){at()(this,t),this.core=n,this.contextmenu=new dt(n)}var n;return lt()(t,[{key:"destroy",value:function(){var t=document.getElementById("osjs-context-menu");t&&t.remove(),this.contextmenu.destroy()}},{key:"init",value:(n=ct()(ot.a.mark((function t(){var n,e=this;return ot.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n={show:function(){var t;return(t=e.contextmenu).show.apply(t,arguments)},hide:function(){var t;return(t=e.contextmenu).hide.apply(t,arguments)}},this.core.instance("osjs/contextmenu",(function(){return arguments.length?n.show.apply(n,arguments):n})),this.core.$root.addEventListener("contextmenu",(function(t){vt(t)||(t.stopPropagation(),t.preventDefault())}));case 3:case"end":return t.stop()}}),t,this)}))),function(){return n.apply(this,arguments)})},{key:"start",value:function(){var t=this,n=function(n){!document.getElementById("osjs-context-menu").contains(n.target)&&t.contextmenu&&t.contextmenu.hide()};this.core.$root.addEventListener("click",n,!0),this.core.once("destroy",(function(){t.core.$root.removeEventListener("click",n,!0)})),this.contextmenu.init()}}]),t}();e.d(n,"Element",(function(){return s})),e.d(n,"Box",(function(){return l})),e.d(n,"BoxContainer",(function(){return f})),e.d(n,"BoxStyled",(function(){return d})),e.d(n,"Button",(function(){return j})),e.d(n,"Progressbar",(function(){return w})),e.d(n,"Menu",(function(){return k})),e.d(n,"Toolbar",(function(){return O})),e.d(n,"Statusbar",(function(){return S})),e.d(n,"MenubarItem",(function(){return _})),e.d(n,"Menubar",(function(){return E})),e.d(n,"Panes",(function(){return N})),e.d(n,"ListView",(function(){return z})),e.d(n,"listView",(function(){return A})),e.d(n,"IconViewEntry",(function(){return G})),e.d(n,"IconView",(function(){return M})),e.d(n,"iconView",(function(){return B})),e.d(n,"Image",(function(){return F})),e.d(n,"Video",(function(){return V})),e.d(n,"Tabs",(function(){return Y})),e.d(n,"Iframe",(function(){return X})),e.d(n,"TextField",(function(){return q})),e.d(n,"TextareaField",(function(){return U})),e.d(n,"SelectField",(function(){return J})),e.d(n,"ToggleField",(function(){return Q})),e.d(n,"RangeField",(function(){return Z})),e.d(n,"Icon",(function(){return h})),e.d(n,"Expander",(function(){return nt})),e.d(n,"Label",(function(){return et})),e.d(n,"GUIServiceProvider",(function(){return pt}))}])}));
!function(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define("osjsGui",[],n):"object"==typeof exports?exports.osjsGui=n():t.osjsGui=n()}(window,(function(){return function(t){var n={};function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:r})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,n){if(1&n&&(t=e(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(e.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var o in t)e.d(r,o,function(n){return t[n]}.bind(null,o));return r},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},e.p="",e(e.s=7)}([function(t,n,e){var r=e(9),o=e(10),i=e(11);t.exports=function(t){return r(t)||o(t)||i()}},function(t,n){function e(n){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?t.exports=e=function(t){return typeof t}:t.exports=e=function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},e(n)}t.exports=e},function(t,n){t.exports=function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}},function(t,n){function e(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}t.exports=function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}},function(t,n,e){t.exports=e(12)},function(t,n){t.exports=function(t,n,e){return n in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}},function(t,n){function e(t,n,e,r,o,i,c){try{var u=t[i](c),a=u.value}catch(t){return void e(t)}u.done?n(a):Promise.resolve(a).then(r,o)}t.exports=function(t){return function(){var n=this,r=arguments;return new Promise((function(o,i){var c=t.apply(n,r);function u(t){e(c,o,i,u,a,"next",t)}function a(t){e(c,o,i,u,a,"throw",t)}u(void 0)}))}}},function(t,n,e){t.exports=e(13)},function(t,n,e){},function(t,n){t.exports=function(t){if(Array.isArray(t)){for(var n=0,e=new Array(t.length);n<t.length;n++)e[n]=t[n];return e}}},function(t,n){t.exports=function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}},function(t,n){t.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}},function(t,n,e){var r=function(t){"use strict";var n=Object.prototype,e=n.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",i=r.asyncIterator||"@@asyncIterator",c=r.toStringTag||"@@toStringTag";function u(t,n,e,r){var o=n&&n.prototype instanceof l?n:l,i=Object.create(o.prototype),c=new w(r||[]);return i._invoke=function(t,n,e){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return O()}for(e.method=o,e.arg=i;;){var c=e.delegate;if(c){var u=b(c,e);if(u){if(u===s)continue;return u}}if("next"===e.method)e.sent=e._sent=e.arg;else if("throw"===e.method){if("suspendedStart"===r)throw r="completed",e.arg;e.dispatchException(e.arg)}else"return"===e.method&&e.abrupt("return",e.arg);r="executing";var l=a(t,n,e);if("normal"===l.type){if(r=e.done?"completed":"suspendedYield",l.arg===s)continue;return{value:l.arg,done:e.done}}"throw"===l.type&&(r="completed",e.method="throw",e.arg=l.arg)}}}(t,e,c),i}function a(t,n,e){try{return{type:"normal",arg:t.call(n,e)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var s={};function l(){}function f(){}function d(){}var v={};v[o]=function(){return this};var p=Object.getPrototypeOf,h=p&&p(p(k([])));h&&h!==n&&e.call(h,o)&&(v=h);var g=d.prototype=l.prototype=Object.create(v);function m(t){["next","throw","return"].forEach((function(n){t[n]=function(t){return this._invoke(n,t)}}))}function y(t){var n;this._invoke=function(r,o){function i(){return new Promise((function(n,i){!function n(r,o,i,c){var u=a(t[r],t,o);if("throw"!==u.type){var s=u.arg,l=s.value;return l&&"object"==typeof l&&e.call(l,"__await")?Promise.resolve(l.__await).then((function(t){n("next",t,i,c)}),(function(t){n("throw",t,i,c)})):Promise.resolve(l).then((function(t){s.value=t,i(s)}),(function(t){return n("throw",t,i,c)}))}c(u.arg)}(r,o,n,i)}))}return n=n?n.then(i,i):i()}}function b(t,n){var e=t.iterator[n.method];if(void 0===e){if(n.delegate=null,"throw"===n.method){if(t.iterator.return&&(n.method="return",n.arg=void 0,b(t,n),"throw"===n.method))return s;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return s}var r=a(e,t.iterator,n.arg);if("throw"===r.type)return n.method="throw",n.arg=r.arg,n.delegate=null,s;var o=r.arg;return o?o.done?(n[t.resultName]=o.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=void 0),n.delegate=null,s):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,s)}function x(t){var n={tryLoc:t[0]};1 in t&&(n.catchLoc=t[1]),2 in t&&(n.finallyLoc=t[2],n.afterLoc=t[3]),this.tryEntries.push(n)}function j(t){var n=t.completion||{};n.type="normal",delete n.arg,t.completion=n}function w(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(x,this),this.reset(!0)}function k(t){if(t){var n=t[o];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function n(){for(;++r<t.length;)if(e.call(t,r))return n.value=t[r],n.done=!1,n;return n.value=void 0,n.done=!0,n};return i.next=i}}return{next:O}}function O(){return{value:void 0,done:!0}}return f.prototype=g.constructor=d,d.constructor=f,d[c]=f.displayName="GeneratorFunction",t.isGeneratorFunction=function(t){var n="function"==typeof t&&t.constructor;return!!n&&(n===f||"GeneratorFunction"===(n.displayName||n.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,c in t||(t[c]="GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},m(y.prototype),y.prototype[i]=function(){return this},t.AsyncIterator=y,t.async=function(n,e,r,o){var i=new y(u(n,e,r,o));return t.isGeneratorFunction(e)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},m(g),g[c]="Generator",g[o]=function(){return this},g.toString=function(){return"[object Generator]"},t.keys=function(t){var n=[];for(var e in t)n.push(e);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=k,w.prototype={constructor:w,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(j),!t)for(var n in this)"t"===n.charAt(0)&&e.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function r(e,r){return c.type="throw",c.arg=t,n.next=e,r&&(n.method="next",n.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],c=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var u=e.call(i,"catchLoc"),a=e.call(i,"finallyLoc");if(u&&a){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!a)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(t,n){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&e.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=n&&n<=i.finallyLoc&&(i=null);var c=i?i.completion:{};return c.type=t,c.arg=n,i?(this.method="next",this.next=i.finallyLoc,s):this.complete(c)},complete:function(t,n){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&n&&(this.next=n),s},finish:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var e=this.tryEntries[n];if(e.finallyLoc===t)return this.complete(e.completion,e.afterLoc),j(e),s}},catch:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var e=this.tryEntries[n];if(e.tryLoc===t){var r=e.completion;if("throw"===r.type){var o=r.arg;j(e)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,e){return this.delegate={iterator:k(t),resultName:n,nextLoc:e},"next"===this.method&&(this.arg=void 0),s}},t}(t.exports);try{regeneratorRuntime=r}catch(t){Function("r","regeneratorRuntime = r")(r)}},function(t,n,e){"use strict";e.r(n);e(8);var r=e(0),o=e.n(r);function i(t,n){for(var e=[],r=[],o=arguments.length;o-- >2;)e.push(arguments[o]);for(;e.length;){var i=e.pop();if(i&&i.pop)for(o=i.length;o--;)e.push(i[o]);else null!=i&&!0!==i&&!1!==i&&r.push(i)}return"function"==typeof t?t(n||{},r):{nodeName:t,attributes:n||{},children:r,key:n&&n.key}}function c(t,n,e,r){var o,i=[].map,c=r&&r.children[0]||null,u=c&&function t(n){return{nodeName:n.nodeName.toLowerCase(),attributes:{},children:i.call(n.childNodes,(function(n){return 3===n.nodeType?n.nodeValue:t(n)}))}}(c),a=[],s=!0,l=h(t),f=function t(n,e,r){for(var o in r)"function"==typeof r[o]?function(t,o){r[t]=function(t){var i=o(t);return"function"==typeof i&&(i=i(m(n,l),r)),i&&i!==(e=m(n,l))&&!i.then&&p(l=g(n,h(e,i),l)),i}}(o,r[o]):t(n.concat(o),e[o]=h(e[o]),r[o]=h(r[o]));return r}([],l,h(n));return p(),f;function d(t){return"function"==typeof t?d(t(l,f)):null!=t?t:""}function v(){o=!o;var t=d(e);for(r&&!o&&(c=function t(n,e,r,o,i){if(o===r);else if(null==r||r.nodeName!==o.nodeName){var c=function t(n,e){var r="string"==typeof n||"number"==typeof n?document.createTextNode(n):(e=e||"svg"===n.nodeName)?document.createElementNS("http://www.w3.org/2000/svg",n.nodeName):document.createElement(n.nodeName),o=n.attributes;if(o){o.oncreate&&a.push((function(){o.oncreate(r)}));for(var i=0;i<n.children.length;i++)r.appendChild(t(n.children[i]=d(n.children[i]),e));for(var c in o)x(r,c,o[c],null,e)}return r}(o,i);n.insertBefore(c,e),null!=r&&j(n,e,r),e=c}else if(null==r.nodeName)e.nodeValue=o;else{!function(t,n,e,r){for(var o in h(n,e))e[o]!==("value"===o||"checked"===o?t[o]:n[o])&&x(t,o,e[o],n[o],r);var i=s?e.oncreate:e.onupdate;i&&a.push((function(){i(t,n)}))}(e,r.attributes,o.attributes,i=i||"svg"===o.nodeName);for(var u={},l={},f=[],v=r.children,p=o.children,g=0;g<v.length;g++){f[g]=e.childNodes[g],null!=(b=y(v[g]))&&(u[b]=[f[g],v[g]])}g=0;for(var m=0;m<p.length;){var b=y(v[g]),w=y(p[m]=d(p[m]));if(l[b])g++;else if(null==w||w!==y(v[g+1]))if(null==w||s)null==b&&(t(e,f[g],v[g],p[m],i),m++),g++;else{var k=u[w]||[];b===w?(t(e,k[0],k[1],p[m],i),g++):k[0]?t(e,e.insertBefore(k[0],f[g]),k[1],p[m],i):t(e,f[g],null,p[m],i),l[w]=p[m],m++}else null==b&&j(e,f[g],v[g]),g++}for(;g<v.length;)null==y(v[g])&&j(e,f[g],v[g]),g++;for(var g in u)l[g]||j(e,u[g][0],u[g][1])}return e}(r,c,u,u=t)),s=!1;a.length;)a.pop()()}function p(){o||(o=!0,setTimeout(v))}function h(t,n){var e={};for(var r in t)e[r]=t[r];for(var r in n)e[r]=n[r];return e}function g(t,n,e){var r={};return t.length?(r[t[0]]=t.length>1?g(t.slice(1),n,e[t[0]]):n,h(e,r)):n}function m(t,n){for(var e=0;e<t.length;)n=n[t[e++]];return n}function y(t){return t?t.key:null}function b(t){return t.currentTarget.events[t.type](t)}function x(t,n,e,r,o){if("key"===n);else if("style"===n)if("string"==typeof e)t.style.cssText=e;else for(var i in"string"==typeof r&&(r=t.style.cssText=""),h(r,e)){var c=null==e||null==e[i]?"":e[i];"-"===i[0]?t.style.setProperty(i,c):t.style[i]=c}else"o"===n[0]&&"n"===n[1]?(n=n.slice(2),t.events?r||(r=t.events[n]):t.events={},t.events[n]=e,e?r||t.addEventListener(n,b):t.removeEventListener(n,b)):n in t&&"list"!==n&&"type"!==n&&"draggable"!==n&&"spellcheck"!==n&&"translate"!==n&&!o?t[n]=null==e?"":e:null!=e&&!1!==e&&t.setAttribute(n,e),null!=e&&!1!==e||t.removeAttribute(n)}function j(t,n,e){function r(){t.removeChild(function t(n,e){var r=e.attributes;if(r){for(var o=0;o<e.children.length;o++)t(n.childNodes[o],e.children[o]);r.ondestroy&&r.ondestroy(n)}return n}(n,e))}var o=e.attributes&&e.attributes.onremove;o?o(n,r):r()}}var u=function(t,n){return"number"==typeof t?"".concat(t,"px"):!1===t?n:t},a={grow:function(t){return{flexGrow:t}},shrink:function(t){return{flexShrink:t}},basis:function(t){return{flexBasis:u(t,"auto")}},align:function(t){return{alignItems:t}},justify:function(t){return{justifyContent:t}},padding:function(t){return{margin:u(t,"0")}},margin:function(t){return{margin:u(t,"0")}}},s=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],e=t.class instanceof Array?t.class:[t.class],r=["osjs-gui"].concat(o()(e));t.orientation&&r.push("osjs-gui-"+t.orientation);var c="string"==typeof t.style?{}:Object.assign({},t.style||{}),u=Object.keys(t).reduce((function(n,e){var r=a[e]?a[e](t[e]):void 0;return Object.assign({},n,r)}),c);return i("div",{oncreate:t.oncreate,ondestroy:t.ondestroy,class:r.filter((function(t){return!!t})).join(" "),style:u},n)},l=function(t,n){return i(s,Object.assign({orientation:"horizontal"},t,{class:["osjs-gui-box",t.class]}),n)},f=function(t,n){return i(s,Object.assign({},t,{class:["osjs-gui-box-container",t.class]}),n)},d=function(t,n){return i(s,Object.assign({},t,{class:["osjs-gui-box-styled",t.class]}),n)},v=e(1),p=e.n(v),h=function(t,n){var e=t&&"object"===p()(t)?t.src:t;return i("i",{"data-icon":t&&"object"===p()(t)?t.name:void 0,class:"osjs-icon",style:{backgroundImage:"string"==typeof t?"url(".concat(e,")"):void 0}})},g=e(5),m=e.n(g),y=function(t,n){return Object.keys(t).filter((function(t){return-1===n.indexOf(t)})).reduce((function(n,e){return Object.assign(m()({},e,t[e]),n)}),{})},b=function(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:250,e=!1;return function(r,o){return t=clearTimeout(t),t=setTimeout((function(){return e=!1}),n),e?(r.preventDefault(),o(r)):(e=!0,!1)}},x=function(t,n,e,r,c){var u=n.oninput||function(){},a=n.onchange||function(){},l=n.onkeydown||function(){},f=c||function(t){return[t.target.value]},d=Object.assign({oninput:function(t){return u.apply(void 0,[t].concat(o()(f(t))))},onchange:function(t){return a.apply(void 0,[t].concat(o()(f(t))))},onkeydown:function(t){13===t.keyCode&&n.onenter&&n.onenter.apply(n,[t].concat(o()(f(t)))),l(t)}},e,y(n,["choices","label","box","oninput","onchange"]));return i(s,Object.assign({},n.box||{},{class:"osjs-gui-field osjs-gui-"+t}),r(d))},j=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return x("button",t,{},(function(e){var r=[];return t.icon&&r.push(i(h,t.icon)),"string"==typeof t.label&&r.push(i("span",{class:"osjs-label"},t.label)),i("button",e,[].concat(r,o()(n)))}))},w=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],e="number"==typeof t.value?Math.max(0,Math.abs(t.value))%100:0,r=i("div",{class:"osjs-gui-progressbar-wrapper"},[i("div",{className:"osjs-gui-progressbar-value",style:{width:String(e)+"%"}}),i("div",{className:"osjs-gui-progressbar-label"},[i("span",{},[String(e)+"%"])])]);return i(s,Object.assign({},t.box||{},{class:["osjs-gui-progressbar",t.class]}),[r].concat(o()(n)))},k=function(t){return i("div",{id:"osjs-context-menu",className:"osjs-gui osjs-gui-menu",oncreate:t.oncreate,onupdate:t.onupdate,style:{display:!1!==t.visible?"block":"none",top:t.position?String(t.position.top)+"px":0,left:t.position?String(t.position.left)+"px":0}},function t(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=function(t){var n=[];return"checkbox"===t.type||"boolean"==typeof t.checked?n.push(i("span",{class:"osjs-gui-menu-checkbox "+(t.checked?"active":"")})):t.icon&&n.push(i(h,t.icon)),n.push(i("span",{},t.label)),n},c=function(n,e){if("function"==typeof e.element)return e.element();var c=[i("span",{class:"separator"===e.type?"osjs-gui-menu-separator":"osjs-gui-menu-label "+(e.disabled?"osjs__disabled":"")},o(e))];return e.items&&c.push(t(n,e.items,r+1)),c};return i("ul",{class:""},e.map((function(t){return i("li",{class:"osjs-gui-menu-entry"},[i("div",{class:"osjs-gui-menu-container","data-has-image":!!t.icon||void 0,"data-has-children":!!t.items||void 0,onmouseover:t.items?n.onshow:void 0,ontouchend:t.items?n.onshow:void 0,onclick:function(e){t.items||(t.onclick&&t.onclick(t,e),n.onclick&&n.onclick(t,e,t))}},c(n,t))])})))}(t,t.menu))},O=function(t,n){return i(s,Object.assign({orientation:"vertical"},t,{class:["osjs-gui-toolbar",t.class]}),n)},S=function(t,n){return i(s,Object.assign({},t.box||{},{class:["osjs-gui-statusbar",t.class]}),n)},_=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],e=t.onclick,r=t.data;return i("div",{onclick:function(t){if("function"==typeof e){var n=t.target.parentNode,o=Array.prototype.indexOf.call(n.children,t.target);e(t,r||{},o)}}},i("span",{},n))},E=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return i(s,Object.assign({},t,{class:["osjs-gui-menubar",t.class]}),[].concat(o()((t.items||[]).map((function(n){return i(_,{data:n.data,onclick:n.onclick||t.onclick},n.label)}))),o()(n)))};function L(t,n,e,r){return n._$r=function(){return{}},function(o,u){return i(r||"x-",{key:o.key,id:o.id,class:o.class,oncreate:function(r){var i=c(t,n,(function(t,n){var o=e(t,n);return"function"==typeof o&&(o=o(r._$p,r._$c)),o}),r);r._$p=o,r._$c=u,r._$r=i._$r,r._$u=i.uninit,i.init&&i.init(o),o.oncreate&&o.oncreate(r)},onupdate:function(t){t._$p=o,t._$c=u,t._$r(),o.onupdate&&o.onupdate(t)},ondestroy:function(t){t._$u&&t._$u()},onremove:function(t,n){if(!o.onremove)return n();o.onremove(t,n)}})}}var T=function(t,n,e,r){var o=Array(Math.ceil(e.length/2)).fill(null).map((function(){return i("div",{class:"osjs-gui-panes-spacer",onmousedown:function(t){return function(t,n,e){var r=t.target,o=t.clientX,i=t.clientY,c=r.previousSibling,u=c.offsetWidth,a=c.offsetHeight,s=Array.from(r.parentNode.children).indexOf(c),l=.8*c.parentNode.offsetWidth,f=.8*c.parentNode.offsetHeight;if(!(s<0)){var d=function(t){t.preventDefault();var r="vertical"===e?u:a;if("vertical"===e){var c=t.clientX-o;r=Math.min(l,r+c)}else{var d=t.clientY-i;r=Math.min(f,r+d)}n.setSize({index:s,size:r})};t.preventDefault(),document.addEventListener("mousemove",d),document.addEventListener("mouseup",(function t(n){n.preventDefault(),document.removeEventListener("mousemove",d),document.removeEventListener("mouseup",t)}))}}(t,n,r)}})}));return e.map((function(n,e){var r=t.sizes[e]?String(t.sizes[e])+"px":void 0;return i("div",{class:"osjs-gui-panes-pane",style:{flex:r?"0 0 ".concat(r):r}},n)})).map((function(t,n){return[t,o[n]]})).reduce((function(t,n){return t.concat(n)})).filter((function(t){return void 0!==t}))},I=L({sizes:[]},{init:function(t){return{sizes:t.sizes||[150]}},setSize:function(t){var n=t.index,e=t.size;return function(t){var r=[].concat(t.sizes);return r[n]=e,{sizes:r}}}},(function(t,n){return function(e,r){var o=e.orientation||"vertical";return i(s,{orientation:o,class:"osjs-gui-panes-inner"},T(t,n,r,o))}}),"div"),N=function(t,n){return i(I,{class:"osjs-gui-panes"},n)},P=b(),$=function(t){return i("div",{class:"osjs-gui-list-view-wrapper",oncreate:function(n){return n.scrollTop=t.scrollTop},onupdate:function(n){t.selectedIndex<0&&(n.scrollTop=t.scrollTop)}},t.columns.map((function(n,e){return r=e,i("div",{class:"osjs-gui-list-view-pane",style:(o=n).style||{}},[i("div",{class:"osjs-gui-list-view-header",style:{display:t.hideColumns?"none":void 0}},i("span",{},"object"===p()(o)?o.label:o)),i("div",{class:"rows","data-zebra":String(t.zebra)},t.rows.map((c=r,function(n,e){var r=n.columns[c]||{},o=t.selectedIndex===e,u=r.icon?i(h,r.icon):null,a=[i("span",{},["object"===p()(r)?r.label:r])];return u&&a.unshift(u),i("div",{key:n.key,"data-has-icon":!!r.icon||void 0,class:"osjs-gui-list-view-cell"+(o?" osjs__active":""),ontouchstart:function(r){return P(r,(function(){return t.onactivate({data:n.data,index:e,ev:r})}))},ondblclick:function(r){return t.onactivate({data:n.data,index:e,ev:r})},onclick:function(r){return t.onselect({data:n.data,index:e,ev:r})},oncontextmenu:function(r){return t.oncontextmenu({data:n.data,index:e,ev:r})},oncreate:function(r){return t.oncreate({data:n.data,index:e,el:r})}},a)})))]);var r,o,c})))},z=function(t){return i(s,Object.assign({class:"osjs-gui-list-view"},t.box||{}),$(y(t,["box"])))},A={component:function(t,n){var e=Object.assign({zebra:!0,columns:[],rows:[],onselect:function(t){var e=t.data,r=t.index,o=t.ev;n.select({data:e,index:r,ev:o}),n.setSelectedIndex(r)},onactivate:function(t){var e=t.data,r=t.index,o=t.ev;n.activate({data:e,index:r,ev:o}),n.setSelectedIndex(-1)},oncontextmenu:function(t){var e=t.data,r=t.index,o=t.ev;n.select({data:e,index:r,ev:o}),n.contextmenu({data:e,index:r,ev:o}),n.setSelectedIndex(r)},oncreate:function(t){n.created(t)}},t);return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return z(Object.assign(e,t))}},state:function(t){return Object.assign({selectedIndex:-1,scrollTop:0},t)},actions:function(t){return Object.assign({select:function(){return function(){return{}}},activate:function(){return function(){return{}}},contextmenu:function(){return function(){return{}}},created:function(){return function(){return{}}},setRows:function(t){return{rows:t}},setColumns:function(t){return{columns:t}},setScrollTop:function(t){return function(n){return{scrollTop:t}}},setSelectedIndex:function(t){return function(n){return{selectedIndex:t}}}},t||{})}},C=b(),G=function(t,n,e){return function(){var r=t.icon||{name:"application-x-executable"};return i("div",{class:"osjs-gui-icon-view-entry"+(e.selectedIndex===n?" osjs__active":""),ontouchstart:function(r){return C(r,(function(){return e.onactivate({data:t.data,index:n,ev:r})}))},ondblclick:function(r){return e.onactivate({data:t.data,index:n,ev:r})},onclick:function(r){return e.onselect({data:t.data,index:n,ev:r})},oncontextmenu:function(r){return e.oncontextmenu({data:t.data,index:n,ev:r})},oncreate:function(r){return e.oncreate({data:t.data,index:n,el:r})}},[i("div",{class:"osjs__container"},[i("div",{class:"osjs__image"},[i(h,r)]),i("div",{class:"osjs__label"},[i("span",{},t.label)])])])}},M=function(t){var n=i("div",{class:"osjs-gui-icon-view-wrapper",oncreate:function(n){return n.scrollTop=t.scrollTop},onupdate:function(n){t.selectedIndex<0&&(n.scrollTop=t.scrollTop)}},t.entries.map((function(n,e){return i(G(n,e,t))})));return i(s,Object.assign({class:"osjs-gui-icon-view"},t.box||{}),n)},B={component:function(t,n){var e=Object.assign({entries:[],onselect:function(t){var e=t.data,r=t.index,o=t.ev;n.select({data:e,index:r,ev:o}),n.setSelectedIndex(r)},onactivate:function(t){var e=t.data,r=t.index,o=t.ev;n.activate({data:e,index:r,ev:o}),n.setSelectedIndex(-1)},oncontextmenu:function(t){var e=t.data,r=t.index,o=t.ev;n.select({data:e,index:r,ev:o}),n.contextmenu({data:e,index:r,ev:o}),n.setSelectedIndex(r)},oncreate:function(t){n.created(t)}},t);return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return M(Object.assign(e,t))}},state:function(t){return Object.assign({selectedIndex:-1,scrollTop:0},t)},actions:function(t){return Object.assign({select:function(){return function(){return{}}},activate:function(){return function(){return{}}},contextmenu:function(){return function(){return{}}},created:function(){return function(){return{}}},setEntries:function(t){return function(){return{entries:t}}},setScrollTop:function(t){return function(n){return{scrollTop:t}}},setSelectedIndex:function(t){return function(n){return{selectedIndex:t}}}},t||{})}},F=function(t,n){return i("div",{class:"osjs-gui osjs-gui-image",style:{width:t.width?String(t.width)+"px":void 0,height:t.height?String(t.height)+"px":void 0}},i("img",t))},H=function(t){return void 0===t||!0===t},V=function(t,n){return i("div",{class:"osjs-gui osjs-gui-video",style:{width:t.width?String(t.width)+"px":void 0,height:t.height?String(t.height)+"px":void 0}},[i("video",{src:t.src,width:t.width,height:t.height,poster:t.poster,loop:t.loop?"loop":void 0,muted:t.muted?"muted":void 0,controls:H(t.controls)?"controls":void 0,autoplay:H(t.autoplay)?"autoplay":void 0,onloadeddata:t.onload,oncreate:t.oncreate,onupdate:t.onupdate,ondestroy:t.ondestroy},(e=t.sources||[],e.map((function(t){return i("source",t)}))))]);var e},W=function(t,n,e){var r=t.labels,o=t.onchange,c=t.oncontextmenu;return(r||[]).map((function(t,r){return i("div",{class:n.selectedIndex===r?"osjs__active":"",oncontextmenu:function(n){(c||function(){})(n,r,t)},onclick:function(n){e.setSelectedIndex(r),(o||function(){})(n,r,t)}},i("span",{},t))}))},R=function(t,n){return n.map((function(n,e){return i("div",{class:t.selectedIndex===e?"osjs__active":""},n)}))},D=L({selectedIndex:0},{init:function(t){return{selectedIndex:t.selectedIndex||0}},setSelectedIndex:function(t){return function(n){return{selectedIndex:t}}}},(function(t,n){return function(e,r){return i("div",{class:"osjs-gui-tabs-wrapper"},[i("div",{class:"osjs-gui-tabs-header"},W(e,t,n)),i("div",{class:"osjs-gui-tabs-panes"},R(t,r))])}}),"div"),Y=function(t,n){return i(D,Object.assign({class:"osjs-gui osjs-gui-tabs "+(t.class||"")},t),n)},X=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return i(s,Object.assign({},t.box||{},{class:["osjs-gui-iframe",t.class]}),[i("iframe",Object.assign({frameborder:0},y(t,["box"])))].concat(o()(n)))},q=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};arguments.length>1&&void 0!==arguments[1]&&arguments[1];return x("text-field",t,{autocomplete:"off",autocorrect:"off",autocapitalize:"off",spellcheck:"false",type:"text"},(function(t){return i("input",t)}))},U=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return x("textarea-field",t,{rows:4},(function(t){return i("textarea",t,n)}))},J=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],e=function(n){return n instanceof Array?n.map((function(t){return"object"===p()(t)?t:{value:t,label:t}})):Object.keys(t.choices||{}).map((function(n){return{value:n,label:t.choices[n]}}))},r=e(t.choices).map((function(n){var e=n.value,r=n.label;return i("option",{value:e,selected:t.value===e},r)})),c=function(t){return[t.target.value,t.target.textContent]},u=function(t){return i("div",{},i("select",t,[].concat(o()(r),o()(n))))};return x("select-field",t,{selectedIndex:void 0},u,c)},K=function(t){try{return JSON.parse(t)}catch(n){return t}},Q=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return x("toggle-field",t,{type:"checkbox",checked:!1},(function(e){return i("label",{},[i("input",e),i("span",{class:"osjs-toggle-input"}),i("span",{class:"osjs-toggle-label"},[t.label||""].concat(o()(n)))])}),(function(n){return["radio"===t.type?K(n.target.value):!!n.target.checked]}))},Z=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};arguments.length>1&&void 0!==arguments[1]&&arguments[1];return x("range-field",t,{type:"range"},(function(t){return i("input",t)}))},tt=L({active:!0},{init:function(t){return{ative:!1!==t.active}},ontoggle:function(t){var n=t.ev,e=t.active;return(t.ontoggle||function(){})(n,e),{active:e}}},(function(t,n){return function(e,r){return i(s,Object.assign({},e.box||{},{class:["osjs-gui-expander-wrapper"]}),[i("div",{class:"osjs-gui-expander-header",onclick:function(r){return n.ontoggle({ev:r,active:!t.active,ontoggle:e.ontoggle})}},[i("div",{class:"osjs-gui-expander-header-icon","data-active":String(t.active)}),i("div",{class:"osjs-gui-expander-header-label"},e.label)]),i("div",{class:"osjs-gui-expander-content",style:{display:!1===t.active?"none":void 0}},r)])}}),"div"),nt=function(t,n){return i(tt,Object.assign({},t,{class:"osjs-gui osjs-gui-expander"}),n)},et=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],e=t.placement||"top",r=t.text||"",o=Object.assign({class:["osjs-gui-field-label","osjs-gui-field-label-on-"+e]},t.box||{});return i(s,o,[i("label",{for:t.for},r),n])},rt=e(4),ot=e.n(rt),it=e(6),ct=e.n(it),ut=e(2),at=e.n(ut),st=e(3),lt=e.n(st),ft=function(t){return t(),setTimeout(t,100)},dt=function(){function t(n){at()(this,t),this.core=n,this.callback=function(){},this.actions=null,this.$element=document.createElement("div")}return lt()(t,[{key:"destroy",value:function(){this.callback=null,this.actions=null}},{key:"init",value:function(){var t,n=this;this.$element.className="osjs-system-context-menu",this.core.$root.appendChild(this.$element);var e,r=!1;this.actions=c({visible:!1,menu:[],position:{top:0,left:0}},{clamp:function(e){return function(r){if(e=e||document.querySelector("#osjs-context-menu"),clearTimeout(t),e){var o=function(t,n,e){var r={},o=e.top+n.offsetHeight,i=e.left+n.offsetWidth,c=t.offsetHeight-e.top,u=t.offsetWidth-e.left,a=i>t.offsetWidth,s=o>t.offsetHeight;return s&&t.offsetHeight>n.offsetHeight&&(r.top=t.offsetHeight-n.offsetHeight-c),a&&(r.left=t.offsetWidth-n.offsetWidth-u),s||a?r:null}(n.core.$root,e,r.position);if(o)return{position:o}}return{}}},onshow:function(e){return function(r){t=ft((function(){return function(t,n){var e=n.target.querySelector("ul");e&&(e.classList.contains("osjs-gui-menu-container")&&(e=e.parentNode.parentNode),e&&e.offsetParent&&(e.classList.remove("clamp-right"),e.getBoundingClientRect().right>t.offsetWidth&&e.classList.add("clamp-right")))}(n.core.$root,e)}))}},show:function(t){return function(e,o){var i=t.menu,c=t.position;if(t.toggle&&r)return o.hide();if(c instanceof Event)c={left:c.clientX,top:c.clientY};else if(c instanceof Element){var u=c.getBoundingClientRect();c={left:u.left,top:u.top+u.height}}return n.callback=function(n,e,r){t.callback&&t.callback(n,e),!1!==r.closeable&&o.hide()},r=!0,n.onclose=t.onclose,ft((function(){return o.clamp()})),{visible:!0,menu:i||[],position:c||{top:0,left:0}}}},hide:function(){return function(t){return r&&setTimeout((function(){return r=!1}),0),n.onclose&&n.onclose(),n.onclose=null,n.callback=null,{visible:!1}}}},(e=function(){n.core.destroyed||n.callback&&n.callback.apply(n,arguments)},function(t,n){return i(k,{position:t.position,visible:t.visible,menu:t.menu,onclick:e,onshow:n.onshow})}),this.$element)}},{key:"show",value:function(){var t;return this.actions?(t=this.actions).show.apply(t,arguments):null}},{key:"hide",value:function(){var t;return this.actions?(t=this.actions).hide.apply(t,arguments):null}}]),t}(),vt=function(t){var n=t.target,e="TEXTAREA"===n.tagName;return e||"INPUT"!==n.tagName||(e=-1!==["text","password","number","email"].indexOf(n.type)),e},pt=function(){function t(n){at()(this,t),this.core=n,this.contextmenu=new dt(n)}var n;return lt()(t,[{key:"destroy",value:function(){var t=document.getElementById("osjs-context-menu");t&&t.remove(),this.contextmenu.destroy()}},{key:"init",value:(n=ct()(ot.a.mark((function t(){var n,e=this;return ot.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n={show:function(){var t;return(t=e.contextmenu).show.apply(t,arguments)},hide:function(){var t;return(t=e.contextmenu).hide.apply(t,arguments)}},this.core.instance("osjs/contextmenu",(function(){return arguments.length?n.show.apply(n,arguments):n})),this.core.$root.addEventListener("contextmenu",(function(t){vt(t)||(t.stopPropagation(),t.preventDefault())}));case 3:case"end":return t.stop()}}),t,this)}))),function(){return n.apply(this,arguments)})},{key:"start",value:function(){var t=this,n=function(n){var e=document.getElementById("osjs-context-menu");!(e&&e.contains(n.target))&&t.contextmenu&&t.contextmenu.hide()};this.core.$root.addEventListener("click",n,!0),this.core.once("destroy",(function(){t.core.$root.removeEventListener("click",n,!0)})),this.contextmenu.init()}}]),t}();e.d(n,"Element",(function(){return s})),e.d(n,"Box",(function(){return l})),e.d(n,"BoxContainer",(function(){return f})),e.d(n,"BoxStyled",(function(){return d})),e.d(n,"Button",(function(){return j})),e.d(n,"Progressbar",(function(){return w})),e.d(n,"Menu",(function(){return k})),e.d(n,"Toolbar",(function(){return O})),e.d(n,"Statusbar",(function(){return S})),e.d(n,"MenubarItem",(function(){return _})),e.d(n,"Menubar",(function(){return E})),e.d(n,"Panes",(function(){return N})),e.d(n,"ListView",(function(){return z})),e.d(n,"listView",(function(){return A})),e.d(n,"IconViewEntry",(function(){return G})),e.d(n,"IconView",(function(){return M})),e.d(n,"iconView",(function(){return B})),e.d(n,"Image",(function(){return F})),e.d(n,"Video",(function(){return V})),e.d(n,"Tabs",(function(){return Y})),e.d(n,"Iframe",(function(){return X})),e.d(n,"TextField",(function(){return q})),e.d(n,"TextareaField",(function(){return U})),e.d(n,"SelectField",(function(){return J})),e.d(n,"ToggleField",(function(){return Q})),e.d(n,"RangeField",(function(){return Z})),e.d(n,"Icon",(function(){return h})),e.d(n,"Expander",(function(){return nt})),e.d(n,"Label",(function(){return et})),e.d(n,"GUIServiceProvider",(function(){return pt}))}])}));
//# sourceMappingURL=main.js.map
{
"name": "@osjs/gui",
"version": "4.0.31",
"description": "OS.js v3 GUI",
"version": "4.0.32",
"description": "OS.js GUI",
"module": "dist/esm.js",

@@ -32,5 +32,5 @@ "main": "dist/main.js",

"dist/main.css.map",
"CHANGELOG.md",
"README.md",
"LICENSE",
".babelrc"
"LICENSE"
],

@@ -37,0 +37,0 @@ "dependencies": {

@@ -11,5 +11,4 @@ <p align="center">

[![Donate](https://img.shields.io/badge/paypal-donate-yellow.svg)](https://paypal.me/andersevenrud)
[![Community](https://img.shields.io/badge/join-community-green.svg)](https://community.os-js.org/)
# OS.js v3 GUI Module
# OS.js GUI Module

@@ -16,0 +15,0 @@ This is the main client GUI component module of OS.js.

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc