1 line
80 KiB
JavaScript
1 line
80 KiB
JavaScript
|
|
"use strict";var _typeof=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(obj){return typeof obj}:function(obj){return obj&&typeof Symbol==="function"&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj};function _toConsumableArray(arr){if(Array.isArray(arr)){for(var i=0,arr2=Array(arr.length);i<arr.length;i++){arr2[i]=arr[i]}return arr2}else{return Array.from(arr)}}(function(arr){arr.forEach(function(item){item.append=item.append||function(){var argArr=Array.prototype.slice.call(arguments),docFrag=document.createDocumentFragment();argArr.forEach(function(argItem){var isNode=argItem instanceof Node;docFrag.appendChild(isNode?argItem:document.createTextNode(String(argItem)))});this.appendChild(docFrag)}})})([Element.prototype,Document.prototype,DocumentFragment.prototype]);if(window.Element&&!Element.prototype.closest){Element.prototype.closest=function(s){var matches=(this.document||this.ownerDocument).querySelectorAll(s),i=void 0,el=this;do{i=matches.length;while(--i>=0&&matches.item(i)!==el){}}while(i<0&&(el=el.parentElement));return el}}if(window.NodeList&&!NodeList.prototype.forEach){NodeList.prototype.forEach=function(callback,thisArg){thisArg=thisArg||window;for(var i=0;i<this.length;i++){callback.call(thisArg,this[i],i,this)}}}if(!Object.assign){Object.defineProperty(Object,"assign",{enumerable:false,configurable:true,writable:true,value:function value(target){if(target===undefined||target===null){throw new TypeError("Cannot convert first argument to object")}var to=Object(target);for(var i=1;i<arguments.length;i++){var nextSource=arguments[i];if(nextSource===undefined||nextSource===null){continue}nextSource=Object(nextSource);var keysArray=Object.keys(Object(nextSource));for(var nextIndex=0,len=keysArray.length;nextIndex<len;nextIndex++){var nextKey=keysArray[nextIndex];var desc=Object.getOwnPropertyDescriptor(nextSource,nextKey);if(desc!==undefined&&desc.enumerable){to[nextKey]=nextSource[nextKey]}}}return to}})}(function(){if(typeof window.CustomEvent==="function")return false;function CustomEvent(event,params){params=params||{bubbles:false,cancelable:false,detail:undefined};var evt=document.createEvent("CustomEvent");evt.initCustomEvent(event,params.bubbles,params.cancelable,params.detail);return evt}CustomEvent.prototype=window.Event.prototype;window.CustomEvent=CustomEvent})();if(!String.prototype.endsWith){String.prototype.endsWith=function(searchStr,Position){if(!(Position<this.length))Position=this.length;else Position|=0;return this.substr(Position-searchStr.length,searchStr.length)===searchStr}}if(!String.prototype.startsWith){String.prototype.startsWith=function(searchString,position){return this.substr(position||0,searchString.length)===searchString}}function jsPanelError(message){this.name="jsPanelError";this.message=message||"";this.stack=(new Error).stack}jsPanelError.prototype=Object.create(Error.prototype);jsPanelError.prototype.constructor=jsPanelError;var jsPanel={version:"4.0.0-beta.1.18",date:"2017-12-28 13:01",idCounter:0,ziBase:100,themes:["default","primary","info","success","warning","danger"],mdbthemes:["secondary","elegant","stylish","unique","special"],autopositionSpacing:4,isIE:function(){return navigator.appVersion.match(/Trident/)}(),defaults:{boxShadow:3,container:document.body,contentSize:{width:"400px",height:"200px"},dragit:{cursor:"move",handles:".jsPanel-headerlogo, .jsPanel-titlebar, .jsPanel-ftr",opacity:.8,disableOnMaximized:true},headerTitle:"jsPanel",headerControls:"all",iconfont:"jsglyph",maximizedMargin:0,minimizeTo:"default",paneltype:"standard",position:"center",resizeit:{handles:"n, e, s, w, ne, se, sw, nw",minWidth:40,minHeight:40},theme:"default"},defaultSnapConfig:{sensitivity:70,trigger:"panel"},ajaxAlwaysCallbacks:[],extensions:{},ajax:function ajax(obj){var conf=obj.options.contentAjax,configDefaults={method:"GET",async:true,user:"",pwd:"",done:function done(){obj.content.innerHTML=this.responseText},autoresize:true,autoreposition:true};var config=void 0;if(typeof conf==="string"){config=Object.assign({},configDefaults,{
|