").appendTo("body").addClass("ui scrolling modal").css("padding","1em").html(t);e.modal({duration:100,allowMultiple:!1,onHide:function(){return e.children().remove(),!0}}).modal("show").modal("refresh")}},{key:"showErrorWindow",value:function(t){jquery__WEBPACK_IMPORTED_MODULE_0___default()('
').css({padding:"8px","background-color":"rgba(0, 0, 0, 0.5)",margin:"auto",width:"100%",height:"100%",position:"fixed",top:0,bottom:0,"z-index":"100000","overflow-y":"scroll"}).html(jquery__WEBPACK_IMPORTED_MODULE_0___default()("
").css({width:"70%","margin-top":"4%","margin-bottom":"4%","margin-left":"auto","margin-right":"auto",background:"white",padding:"4px","overflow-x":"scroll"}).html(t).prepend(jquery__WEBPACK_IMPORTED_MODULE_0___default()('
').css("float","right").click(function(){var t=jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).parents(".atk-exception");t.hide(),t.remove()}))).appendTo("body")}},{key:"getErrorHtml",value:function(t){return'
")}}]),ApiService}(),apiService=new ApiService;Object.freeze(apiService),__webpack_exports__.a=apiService},function(t,e){function n(e,n,i){var o,r,a,s,l;function u(){var t=Date.now()-s;t
>>0}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i,o,r=n(0),a=(i=r)&&i.__esModule?i:{default:i},l=(o=0,function(){return o++}),s=function t(e){var n=1 tbody > tr > td, .grip-resizable > tbody > tr > th{overflow:hidden} .grip-padding > tbody > tr > td, .grip-padding > tbody > tr > th{padding-left:0!important; padding-right:0!important;} .grip-container{ height:0px; position:relative;} .grip-handle{margin-left:-5px; position:absolute; z-index:5; } .grip-handle .grip-resizable{position:absolute;background-color:red;filter:alpha(opacity=1);opacity:0;width:10px;height:100%;cursor: col-resize;top:0px} .grip-lastgrip{position:absolute; width:1px; } .grip-drag{ border-left:1px dotted black;\t} .grip-flex{width:auto!important;} .grip-handle.grip-disabledgrip .grip-resizable{cursor:default; display:none;}"),t.hoverCursor&&"col-resize"!==t.hoverCursor){var o=".grip-handle .grip-resizable:hover{cursor:"+t.hoverCursor+"!important}";p.createStyle(i,o)}e.setAttribute(p.ID,n);var r=e.opt;e.opt=p.extendOptions(t);var a=p.getTableHeaders(e);if(p.extendTable(a),t.remoteTable&&t.remoteTable.matches("table")){var s=p.getTableHeaders(e.opt.remoteTable);a.length===s.length?p.extendRemoteTable(e.opt.remoteTable,s,e):console.warn("column count for remote table did not match")}return r},this.applyBounds=function(){var t=p.tb,n=t.columns.map(function(t){return window.getComputedStyle(t).width});t.style.width=window.getComputedStyle(t).width,t.tableWidth=Number(t.style.width.replace(/px/,"")).valueOf(),t.classList.remove(p.FLEX),t.columns.forEach(function(t,e){t.style.width=n[e],t.w=Number(n[e].replace(/px/,"")).valueOf()}),t.classList.add(p.FLEX)},this.serializeStore=function(){var t=p.store,e=p.tb;t[e.getAttribute(p.ID)]="";for(var n=0,i=0;ithead>tr:nth-of-type(1)>th"));return(n=n.concat(Array.from(t.querySelectorAll(e+">thead>tr:nth-of-type(1)>td")))).length||(n=(n=(n=(n=Array.from(t.querySelectorAll(e+">tbody>tr:nth-of-type(1)>th"))).concat(Array.from(t.querySelectorAll(e+">tr:nth-of-type(1)>th")))).concat(Array.from(t.querySelectorAll(e+">tbody>tr:nth-of-type(1)>td")))).concat(Array.from(t.querySelectorAll(e+">tr:nth-of-type(1)>td")))),p.filterInvisible(n,!1)},this.filterInvisible=function(t,i){return t.filter(function(t){var e=i?-1:t.offsetWidth,n=i?-1:t.offsetHeight;return!(0===e&&0===n||t.style&&t.style.display&&"none"===window.getComputedStyle(t).display)})},this.extendTable=function(t){var e=p.tb;e.opt.removePadding&&e.classList.add("grip-padding"),e.classList.add(p.RESIZABLE),e.insertAdjacentHTML("beforebegin",''),e.grips=[],e.columns=[],e.tableWidth=Number(window.getComputedStyle(e).width.replace(/px/,"")).valueOf(),e.gripContainer=e.previousElementSibling,e.opt.marginLeft&&(e.gripContainer.style.marginLeft=e.opt.marginLeft),e.opt.marginRight&&(e.gripContainer.style.marginRight=e.opt.marginRight),e.cellSpace=parseInt(p.legacyIE?e.cellSpacing||e.currentStyle.borderSpacing:window.getComputedStyle(e).borderSpacing.split(" ")[0].replace(/px/,""))||2,e.borderSpace=parseInt(p.legacyIE?e.border||e.currentStyle.borderLeftWidth:window.getComputedStyle(e).borderLeftWidth.replace(/px/,""))||1,e.extended=!0,p.createGrips(t)},this.extendRemoteTable=function(i,o,r){r.opt.removePadding&&i.classList.add("grip-padding"),i.classList.add(p.RESIZABLE),i.getAttribute(p.ID)||i.setAttribute(p.ID,r.getAttribute(p.ID)+"remote"),i.columns=[],o.forEach(function(t,e){var n=o[e];n.w=r.columns[e].w,n.style.width=n.w+p.PX,n.removeAttribute("width"),i.columns.push(n)}),i.tableWidth=r.tableWidth,i.cellSpace=r.cellSpace,i.borderSpace=r.borderSpace;var t=Array.from(i.querySelectorAll("col"));i.columnGrp=p.filterInvisible(t,!0),i.columnGrp.forEach(function(t,e){t.removeAttribute("width"),t.style.width=r.columnGrp[e].style.width}),r.remote=i},this.createGrips=function(r){var a=p.tb;a.columnGrp=p.filterInvisible(Array.from(a.querySelectorAll("col")),!0),a.columnGrp.forEach(function(t){t.removeAttribute("width")}),a.columnCnt=r.length,p.store[a.getAttribute(p.ID)]&&p.deserializeStore(r),a.opt.widths||(a.opt.widths=[]),r.forEach(function(t,e){var n=r[e],i=-1!==a.opt.disabledColumns.indexOf(e);p.createDiv(a.gripContainer,"grip-handle");var o=a.gripContainer.lastChild;!i&&a.opt.gripInnerHtml&&(o.innerHTML=a.opt.gripInnerHtml),p.createDiv(o,p.RESIZABLE),e===a.columnCnt-1&&(o.classList.add("grip-lastgrip"),a.opt.fixed&&(o.innerHTML="")),o.addEventListener("touchstart",p.onGripMouseDown,{capture:!0,passive:!0}),o.addEventListener("mousedown",p.onGripMouseDown,!0),i?o.classList.add("grip-disabledgrip"):(o.classList.remove("grip-disabledgrip"),o.addEventListener("touchstart",p.onGripMouseDown,{capture:!0,passive:!0}),o.addEventListener("mousedown",p.onGripMouseDown,!0)),o.t=a,o.i=e,a.opt.widths[e]?n.w=a.opt.widths[e]:(n.w=Number(window.getComputedStyle(n).width.replace(/px/,"")).valueOf(),a.opt.widths[e]=n.w),n.style.width=n.w+p.PX,n.removeAttribute("width"),o.data={i:e,t:a.getAttribute(p.ID),last:e===a.columnCnt-1},a.grips.push(o),a.columns.push(n)});var t=Array.from(a.querySelectorAll("td"));t.concat(Array.from(a.querySelectorAll("th"))),(t=(t=t.filter(function(t){for(var e=0;e\n '.concat(t,"
")}}]),t}());Object.freeze(s);var l=s;function c(t,e){for(var n=0;n\n '}}]),t}());Object.freeze(w);var S=w;function _(t,e){for(var n=0;n',baseLoaderMarkup:'
'};var q=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),G(this,H(e).apply(this,arguments))}var n,i,o;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&U(t,e)}(e,T),n=e,(i=[{key:"main",value:function(){var e=this.$el,n=this.settings.showLoader;if("undefined"!=typeof EventSource){var i=new EventSource("".concat(this.settings.uri,"&event=").concat(this.settings.event));n&&e.addClass("loading"),i.onmessage=function(t){r.a.atkSuccessTest(JSON.parse(t.data))},i.onerror=function(t){t.eventPhase===EventSource.CLOSED&&(n&&e.removeClass("loading"),i.close())},i.addEventListener("jsAction",function(t){r.a.atkSuccessTest(JSON.parse(t.data))},!1)}else this.$el.atkReloadView({uri:this.settings.uri})}}])&&W(n.prototype,i),o&&W(n,o),e}();function N(t){return(N="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function B(t,e){for(var n=0;n
').appendTo("body").html(this.getDialogHtml(t.title));e.data({uri:t.uri,type:t.mode,args:t.uri_options,needRemove:!0,needCloseTrigger:!0,label:t.label}),e.modal(t.modal).modal("show")}},{key:"getDialogHtml",value:function(t){return'
\n \n
\n
\n
')}}])&&ot(n.prototype,i),o&&ot(n,o),e}();function ut(t){return(ut="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ct(t,e){for(var n=0;n