vue3-vuetable
Version:
Datatable component for Vue 3.x
1 lines • 70.9 kB
JavaScript
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("vue")):"function"==typeof define&&define.amd?define(["vue"],t):"object"==typeof exports?exports.Vuetable=t(require("vue")):e.Vuetable=t(e.vue)}(self,(function(e){return function(){var t={669:function(e,t,n){e.exports=n(609)},448:function(e,t,n){"use strict";var r=n(867),i=n(26),o=n(372),a=n(327),s=n(97),l=n(109),c=n(985),u=n(874),d=n(648),f=n(644),h=n(205);e.exports=function(e){return new Promise((function(t,n){var p,m=e.data,v=e.headers,b=e.responseType;function g(){e.cancelToken&&e.cancelToken.unsubscribe(p),e.signal&&e.signal.removeEventListener("abort",p)}r.isFormData(m)&&r.isStandardBrowserEnv()&&delete v["Content-Type"];var y=new XMLHttpRequest;if(e.auth){var C=e.auth.username||"",k=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";v.Authorization="Basic "+btoa(C+":"+k)}var w=s(e.baseURL,e.url);function E(){if(y){var r="getAllResponseHeaders"in y?l(y.getAllResponseHeaders()):null,o={data:b&&"text"!==b&&"json"!==b?y.response:y.responseText,status:y.status,statusText:y.statusText,headers:r,config:e,request:y};i((function(e){t(e),g()}),(function(e){n(e),g()}),o),y=null}}if(y.open(e.method.toUpperCase(),a(w,e.params,e.paramsSerializer),!0),y.timeout=e.timeout,"onloadend"in y?y.onloadend=E:y.onreadystatechange=function(){y&&4===y.readyState&&(0!==y.status||y.responseURL&&0===y.responseURL.indexOf("file:"))&&setTimeout(E)},y.onabort=function(){y&&(n(new d("Request aborted",d.ECONNABORTED,e,y)),y=null)},y.onerror=function(){n(new d("Network Error",d.ERR_NETWORK,e,y,y)),y=null},y.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",r=e.transitional||u;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new d(t,r.clarifyTimeoutError?d.ETIMEDOUT:d.ECONNABORTED,e,y)),y=null},r.isStandardBrowserEnv()){var P=(e.withCredentials||c(w))&&e.xsrfCookieName?o.read(e.xsrfCookieName):void 0;P&&(v[e.xsrfHeaderName]=P)}"setRequestHeader"in y&&r.forEach(v,(function(e,t){void 0===m&&"content-type"===t.toLowerCase()?delete v[t]:y.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(y.withCredentials=!!e.withCredentials),b&&"json"!==b&&(y.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&y.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&y.upload&&y.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(p=function(e){y&&(n(!e||e&&e.type?new f:e),y.abort(),y=null)},e.cancelToken&&e.cancelToken.subscribe(p),e.signal&&(e.signal.aborted?p():e.signal.addEventListener("abort",p))),m||(m=null);var O=h(w);O&&-1===["http","https","file"].indexOf(O)?n(new d("Unsupported protocol "+O+":",d.ERR_BAD_REQUEST,e)):y.send(m)}))}},609:function(e,t,n){"use strict";var r=n(867),i=n(849),o=n(321),a=n(185);var s=function e(t){var n=new o(t),s=i(o.prototype.request,n);return r.extend(s,o.prototype,n),r.extend(s,n),s.create=function(n){return e(a(t,n))},s}(n(546));s.Axios=o,s.CanceledError=n(644),s.CancelToken=n(972),s.isCancel=n(502),s.VERSION=n(288).version,s.toFormData=n(675),s.AxiosError=n(648),s.Cancel=s.CanceledError,s.all=function(e){return Promise.all(e)},s.spread=n(713),s.isAxiosError=n(268),e.exports=s,e.exports.default=s},972:function(e,t,n){"use strict";var r=n(644);function i(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;this.promise.then((function(e){if(n._listeners){var t,r=n._listeners.length;for(t=0;t<r;t++)n._listeners[t](e);n._listeners=null}})),this.promise.then=function(e){var t,r=new Promise((function(e){n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e){n.reason||(n.reason=new r(e),t(n.reason))}))}i.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},i.prototype.subscribe=function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]},i.prototype.unsubscribe=function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}},i.source=function(){var e;return{token:new i((function(t){e=t})),cancel:e}},e.exports=i},644:function(e,t,n){"use strict";var r=n(648);function i(e){r.call(this,null==e?"canceled":e,r.ERR_CANCELED),this.name="CanceledError"}n(867).inherits(i,r,{__CANCEL__:!0}),e.exports=i},502:function(e){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},321:function(e,t,n){"use strict";var r=n(867),i=n(327),o=n(782),a=n(572),s=n(185),l=n(97),c=n(875),u=c.validators;function d(e){this.defaults=e,this.interceptors={request:new o,response:new o}}d.prototype.request=function(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},(t=s(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var n=t.transitional;void 0!==n&&c.assertOptions(n,{silentJSONParsing:u.transitional(u.boolean),forcedJSONParsing:u.transitional(u.boolean),clarifyTimeoutError:u.transitional(u.boolean)},!1);var r=[],i=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(i=i&&e.synchronous,r.unshift(e.fulfilled,e.rejected))}));var o,l=[];if(this.interceptors.response.forEach((function(e){l.push(e.fulfilled,e.rejected)})),!i){var d=[a,void 0];for(Array.prototype.unshift.apply(d,r),d=d.concat(l),o=Promise.resolve(t);d.length;)o=o.then(d.shift(),d.shift());return o}for(var f=t;r.length;){var h=r.shift(),p=r.shift();try{f=h(f)}catch(e){p(e);break}}try{o=a(f)}catch(e){return Promise.reject(e)}for(;l.length;)o=o.then(l.shift(),l.shift());return o},d.prototype.getUri=function(e){e=s(this.defaults,e);var t=l(e.baseURL,e.url);return i(t,e.params,e.paramsSerializer)},r.forEach(["delete","get","head","options"],(function(e){d.prototype[e]=function(t,n){return this.request(s(n||{},{method:e,url:t,data:(n||{}).data}))}})),r.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,i){return this.request(s(i||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}d.prototype[e]=t(),d.prototype[e+"Form"]=t(!0)})),e.exports=d},648:function(e,t,n){"use strict";var r=n(867);function i(e,t,n,r,i){Error.call(this),this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i)}r.inherits(i,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var o=i.prototype,a={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED"].forEach((function(e){a[e]={value:e}})),Object.defineProperties(i,a),Object.defineProperty(o,"isAxiosError",{value:!0}),i.from=function(e,t,n,a,s,l){var c=Object.create(o);return r.toFlatObject(e,c,(function(e){return e!==Error.prototype})),i.call(c,e.message,t,n,a,s),c.name=e.name,l&&Object.assign(c,l),c},e.exports=i},782:function(e,t,n){"use strict";var r=n(867);function i(){this.handlers=[]}i.prototype.use=function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},i.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},i.prototype.forEach=function(e){r.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=i},97:function(e,t,n){"use strict";var r=n(793),i=n(303);e.exports=function(e,t){return e&&!r(t)?i(e,t):t}},572:function(e,t,n){"use strict";var r=n(867),i=n(527),o=n(502),a=n(546),s=n(644);function l(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new s}e.exports=function(e){return l(e),e.headers=e.headers||{},e.data=i.call(e,e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||a.adapter)(e).then((function(t){return l(e),t.data=i.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return o(t)||(l(e),t&&t.response&&(t.response.data=i.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},185:function(e,t,n){"use strict";var r=n(867);e.exports=function(e,t){t=t||{};var n={};function i(e,t){return r.isPlainObject(e)&&r.isPlainObject(t)?r.merge(e,t):r.isPlainObject(t)?r.merge({},t):r.isArray(t)?t.slice():t}function o(n){return r.isUndefined(t[n])?r.isUndefined(e[n])?void 0:i(void 0,e[n]):i(e[n],t[n])}function a(e){if(!r.isUndefined(t[e]))return i(void 0,t[e])}function s(n){return r.isUndefined(t[n])?r.isUndefined(e[n])?void 0:i(void 0,e[n]):i(void 0,t[n])}function l(n){return n in t?i(e[n],t[n]):n in e?i(void 0,e[n]):void 0}var c={url:a,method:a,data:a,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:l};return r.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){var t=c[e]||o,i=t(e);r.isUndefined(i)&&t!==l||(n[e]=i)})),n}},26:function(e,t,n){"use strict";var r=n(648);e.exports=function(e,t,n){var i=n.config.validateStatus;n.status&&i&&!i(n.status)?t(new r("Request failed with status code "+n.status,[r.ERR_BAD_REQUEST,r.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}},527:function(e,t,n){"use strict";var r=n(867),i=n(546);e.exports=function(e,t,n){var o=this||i;return r.forEach(n,(function(n){e=n.call(o,e,t)})),e}},546:function(e,t,n){"use strict";var r=n(867),i=n(16),o=n(648),a=n(874),s=n(675),l={"Content-Type":"application/x-www-form-urlencoded"};function c(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var u,d={transitional:a,adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(u=n(448)),u),transformRequest:[function(e,t){if(i(t,"Accept"),i(t,"Content-Type"),r.isFormData(e)||r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e))return e;if(r.isArrayBufferView(e))return e.buffer;if(r.isURLSearchParams(e))return c(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString();var n,o=r.isObject(e),a=t&&t["Content-Type"];if((n=r.isFileList(e))||o&&"multipart/form-data"===a){var l=this.env&&this.env.FormData;return s(n?{"files[]":e}:e,l&&new l)}return o||"application/json"===a?(c(t,"application/json"),function(e,t,n){if(r.isString(e))try{return(t||JSON.parse)(e),r.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||d.transitional,n=t&&t.silentJSONParsing,i=t&&t.forcedJSONParsing,a=!n&&"json"===this.responseType;if(a||i&&r.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(a){if("SyntaxError"===e.name)throw o.from(e,o.ERR_BAD_RESPONSE,this,null,this.response);throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:n(623)},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],(function(e){d.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){d.headers[e]=r.merge(l)})),e.exports=d},874:function(e){"use strict";e.exports={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}},288:function(e){e.exports={version:"0.27.2"}},849:function(e){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}}},327:function(e,t,n){"use strict";var r=n(867);function i(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var o;if(n)o=n(t);else if(r.isURLSearchParams(t))o=t.toString();else{var a=[];r.forEach(t,(function(e,t){null!=e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,(function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),a.push(i(t)+"="+i(e))})))})),o=a.join("&")}if(o){var s=e.indexOf("#");-1!==s&&(e=e.slice(0,s)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}},303:function(e){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},372:function(e,t,n){"use strict";var r=n(867);e.exports=r.isStandardBrowserEnv()?{write:function(e,t,n,i,o,a){var s=[];s.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(i)&&s.push("path="+i),r.isString(o)&&s.push("domain="+o),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},793:function(e){"use strict";e.exports=function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}},268:function(e,t,n){"use strict";var r=n(867);e.exports=function(e){return r.isObject(e)&&!0===e.isAxiosError}},985:function(e,t,n){"use strict";var r=n(867);e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function i(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=i(window.location.href),function(t){var n=r.isString(t)?i(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},16:function(e,t,n){"use strict";var r=n(867);e.exports=function(e,t){r.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))}},623:function(e){e.exports=null},109:function(e,t,n){"use strict";var r=n(867),i=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,o,a={};return e?(r.forEach(e.split("\n"),(function(e){if(o=e.indexOf(":"),t=r.trim(e.substr(0,o)).toLowerCase(),n=r.trim(e.substr(o+1)),t){if(a[t]&&i.indexOf(t)>=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([n]):a[t]?a[t]+", "+n:n}})),a):a}},205:function(e){"use strict";e.exports=function(e){var t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}},713:function(e){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},675:function(e,t,n){"use strict";var r=n(867);e.exports=function(e,t){t=t||new FormData;var n=[];function i(e){return null===e?"":r.isDate(e)?e.toISOString():r.isArrayBuffer(e)||r.isTypedArray(e)?"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}return function e(o,a){if(r.isPlainObject(o)||r.isArray(o)){if(-1!==n.indexOf(o))throw Error("Circular reference detected in "+a);n.push(o),r.forEach(o,(function(n,o){if(!r.isUndefined(n)){var s,l=a?a+"."+o:o;if(n&&!a&&"object"==typeof n)if(r.endsWith(o,"{}"))n=JSON.stringify(n);else if(r.endsWith(o,"[]")&&(s=r.toArray(n)))return void s.forEach((function(e){!r.isUndefined(e)&&t.append(l,i(e))}));e(n,l)}})),n.pop()}else t.append(a,i(o))}(e),t}},875:function(e,t,n){"use strict";var r=n(288).version,i=n(648),o={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){o[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var a={};o.transitional=function(e,t,n){function o(e,t){return"[Axios v"+r+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,r,s){if(!1===e)throw new i(o(r," has been removed"+(t?" in "+t:"")),i.ERR_DEPRECATED);return t&&!a[r]&&(a[r]=!0,console.warn(o(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,s)}},e.exports={assertOptions:function(e,t,n){if("object"!=typeof e)throw new i("options must be an object",i.ERR_BAD_OPTION_VALUE);for(var r=Object.keys(e),o=r.length;o-- >0;){var a=r[o],s=t[a];if(s){var l=e[a],c=void 0===l||s(l,a,e);if(!0!==c)throw new i("option "+a+" must be "+c,i.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new i("Unknown option "+a,i.ERR_BAD_OPTION)}},validators:o}},867:function(e,t,n){"use strict";var r,i=n(849),o=Object.prototype.toString,a=(r=Object.create(null),function(e){var t=o.call(e);return r[t]||(r[t]=t.slice(8,-1).toLowerCase())});function s(e){return e=e.toLowerCase(),function(t){return a(t)===e}}function l(e){return Array.isArray(e)}function c(e){return void 0===e}var u=s("ArrayBuffer");function d(e){return null!==e&&"object"==typeof e}function f(e){if("object"!==a(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}var h=s("Date"),p=s("File"),m=s("Blob"),v=s("FileList");function b(e){return"[object Function]"===o.call(e)}var g=s("URLSearchParams");function y(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),l(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.call(null,e[i],i,e)}var C,k=(C="undefined"!=typeof Uint8Array&&Object.getPrototypeOf(Uint8Array),function(e){return C&&e instanceof C});e.exports={isArray:l,isArrayBuffer:u,isBuffer:function(e){return null!==e&&!c(e)&&null!==e.constructor&&!c(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){var t="[object FormData]";return e&&("function"==typeof FormData&&e instanceof FormData||o.call(e)===t||b(e.toString)&&e.toString()===t)},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&u(e.buffer)},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:d,isPlainObject:f,isUndefined:c,isDate:h,isFile:p,isBlob:m,isFunction:b,isStream:function(e){return d(e)&&b(e.pipe)},isURLSearchParams:g,isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:y,merge:function e(){var t={};function n(n,r){f(t[r])&&f(n)?t[r]=e(t[r],n):f(n)?t[r]=e({},n):l(n)?t[r]=n.slice():t[r]=n}for(var r=0,i=arguments.length;r<i;r++)y(arguments[r],n);return t},extend:function(e,t,n){return y(t,(function(t,r){e[r]=n&&"function"==typeof t?i(t,n):t})),e},trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e},inherits:function(e,t,n,r){e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,n&&Object.assign(e.prototype,n)},toFlatObject:function(e,t,n){var r,i,o,a={};t=t||{};do{for(i=(r=Object.getOwnPropertyNames(e)).length;i-- >0;)a[o=r[i]]||(t[o]=e[o],a[o]=!0);e=Object.getPrototypeOf(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:a,kindOfTest:s,endsWith:function(e,t,n){e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;var r=e.indexOf(t,n);return-1!==r&&r===n},toArray:function(e){if(!e)return null;var t=e.length;if(c(t))return null;for(var n=new Array(t);t-- >0;)n[t]=e[t];return n},isTypedArray:k,isFileList:v}},585:function(e,t,n){"use strict";n.r(t);var r=n(645),i=n.n(r)()((function(e){return e[1]}));i.push([e.id,"\n[v-cloak] {\n display: none;\n}\ntable.vuetable.fixed-header {\n table-layout: fixed;\n}\n.vuetable th.sortable:hover {\n color: #2185d0;\n cursor: pointer;\n}\n.vuetable-head-wrapper {\n overflow-x: hidden;\n}\n.vuetable-head-wrapper table.vuetable {\n border-bottom-left-radius: 0px;\n border-bottom-right-radius: 0px;\n}\n.vuetable-body-wrapper.fixed-header {\n position:relative;\n overflow-y:auto;\n}\n.vuetable-body-wrapper table.vuetable.fixed-header {\n border-top:none !important;\n margin-top:0 !important;\n border-top-left-radius: 0px;\n border-top-right-radius: 0px;\n}\n.vuetable-empty-result {\n text-align: center;\n}\n",""]),t.default=i},981:function(e,t,n){"use strict";n.r(t);var r=n(645),i=n.n(r)()((function(e){return e[1]}));i.push([e.id,"\n.vuetable-th-gutter {\n padding: 0 !important;\n border-left: none !important;\n border-right: none !important;\n}\n",""]),t.default=i},415:function(e,t,n){"use strict";n.r(t);var r=n(645),i=n.n(r)()((function(e){return e[1]}));i.push([e.id,"\n.vuetable-pagination {\n background: #f9fafb !important;\n}\n",""]),t.default=i},615:function(e,t,n){"use strict";n.r(t);var r=n(645),i=n.n(r)()((function(e){return e[1]}));i.push([e.id,"\n.vuetable-pagination-info {\n margin-top: auto;\n margin-bottom: auto;\n}\n",""]),t.default=i},645:function(e){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=e(t);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,r){"string"==typeof e&&(e=[[null,e,""]]);var i={};if(r)for(var o=0;o<this.length;o++){var a=this[o][0];null!=a&&(i[a]=!0)}for(var s=0;s<e.length;s++){var l=[].concat(e[s]);r&&i[l[0]]||(n&&(l[2]?l[2]="".concat(n," and ").concat(l[2]):l[2]=n),t.push(l))}},t}},744:function(e,t){"use strict";t.Z=(e,t)=>{const n=e.__vccOpts||e;for(const[e,r]of t)n[e]=r;return n}},385:function(e,t,n){var r=n(585);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);(0,n(346).Z)("2a4b9696",r,!1,{})},192:function(e,t,n){var r=n(981);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);(0,n(346).Z)("193bfd97",r,!1,{})},225:function(e,t,n){var r=n(415);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);(0,n(346).Z)("2b7ecc1b",r,!1,{})},787:function(e,t,n){var r=n(615);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);(0,n(346).Z)("52ea6c9e",r,!1,{})},346:function(e,t,n){"use strict";function r(e,t){for(var n=[],r={},i=0;i<t.length;i++){var o=t[i],a=o[0],s={id:e+":"+i,css:o[1],media:o[2],sourceMap:o[3]};r[a]?r[a].parts.push(s):n.push(r[a]={id:a,parts:[s]})}return n}n.d(t,{Z:function(){return p}});var i="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!i)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var o={},a=i&&(document.head||document.getElementsByTagName("head")[0]),s=null,l=0,c=!1,u=function(){},d=null,f="data-vue-ssr-id",h="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function p(e,t,n,i){c=n,d=i||{};var a=r(e,t);return m(a),function(t){for(var n=[],i=0;i<a.length;i++){var s=a[i];(l=o[s.id]).refs--,n.push(l)}t?m(a=r(e,t)):a=[];for(i=0;i<n.length;i++){var l;if(0===(l=n[i]).refs){for(var c=0;c<l.parts.length;c++)l.parts[c]();delete o[l.id]}}}}function m(e){for(var t=0;t<e.length;t++){var n=e[t],r=o[n.id];if(r){r.refs++;for(var i=0;i<r.parts.length;i++)r.parts[i](n.parts[i]);for(;i<n.parts.length;i++)r.parts.push(b(n.parts[i]));r.parts.length>n.parts.length&&(r.parts.length=n.parts.length)}else{var a=[];for(i=0;i<n.parts.length;i++)a.push(b(n.parts[i]));o[n.id]={id:n.id,refs:1,parts:a}}}}function v(){var e=document.createElement("style");return e.type="text/css",a.appendChild(e),e}function b(e){var t,n,r=document.querySelector("style["+f+'~="'+e.id+'"]');if(r){if(c)return u;r.parentNode.removeChild(r)}if(h){var i=l++;r=s||(s=v()),t=C.bind(null,r,i,!1),n=C.bind(null,r,i,!0)}else r=v(),t=k.bind(null,r),n=function(){r.parentNode.removeChild(r)};return t(e),function(r){if(r){if(r.css===e.css&&r.media===e.media&&r.sourceMap===e.sourceMap)return;t(e=r)}else n()}}var g,y=(g=[],function(e,t){return g[e]=t,g.filter(Boolean).join("\n")});function C(e,t,n,r){var i=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=y(t,i);else{var o=document.createTextNode(i),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(o,a[t]):e.appendChild(o)}}function k(e,t){var n=t.css,r=t.media,i=t.sourceMap;if(r&&e.setAttribute("media",r),d.ssrId&&e.setAttribute(f,t.id),i&&(n+="\n/*# sourceURL="+i.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */"),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}},748:function(t){"use strict";t.exports=e}},n={};function r(e){var i=n[e];if(void 0!==i)return i.exports;var o=n[e]={id:e,exports:{}};return t[e](o,o.exports,r),o.exports}r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,{a:t}),t},r.d=function(e,t){for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return function(){"use strict";function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}r.r(i),r.d(i,{Vuetable:function(){return G},VuetableColGutter:function(){return L},VuetableFieldCheckbox:function(){return D},VuetableFieldCheckboxMixin:function(){return x},VuetableFieldHandle:function(){return T},VuetableFieldMixin:function(){return O},VuetableFieldSequence:function(){return V},VuetablePagination:function(){return ce},VuetablePaginationDropDown:function(){return fe},VuetablePaginationInfo:function(){return me},VuetablePaginationInfoMixin:function(){return te},VuetablePaginationMixin:function(){return X},VuetableRowHeader:function(){return H},default:function(){return Te},install:function(){return Fe}});var t=r(748),n={key:0,class:"vuetable-head-wrapper"},o={key:0},a={class:"vuetable-body"},s=["item-index","onClick","onDblclick","onMouseover"],l=["innerHTML","onClick","onDblclick","onContextmenu"],c=["onClick"],u=["colspan"],d={key:0},f=["colspan","innerHTML"],h={class:"blank-row"},p={key:0};function m(t){var n=function(t,n){if("object"!==e(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,n||"default");if("object"!==e(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(t)}(t,"string");return"symbol"===e(n)?n:String(n)}function v(e,t,n){return(t=m(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var b=r(669),g=r.n(b),y=["innerHTML","onClick"],C=["onClick","id","innerHTML"];var k={key:0,class:"vuetable-th-component-checkbox"},w=["checked"],E={key:1,class:"vuetable-td-component-checkbox"},P=["checked"];var O={props:{rowData:{type:Object,default:null},rowIndex:{type:Number},rowField:{type:Object},isHeader:{type:Boolean,default:!1},title:{type:String,default:""},vuetable:{type:Object,default:null}}};var x={mixins:[O],methods:{toggleCheckbox:function(e,t){this.vuetable.onCheckboxToggled(t.target.checked,this.rowField.name,e)},toggleAllCheckbox:function(e){this.vuetable.onCheckboxToggledAll(e.target.checked)},isSelected:function(e){return this.vuetable.isSelectedRow(e[this.vuetable.trackBy])},isAllItemsInCurrentPageSelected:function(){var e=this;if(this.vuetable.tableData){var t=this.vuetable.trackBy,n=this.$el.querySelector("input[type=checkbox]"),r=this.vuetable.tableData.filter((function(n){return e.vuetable.isSelectedRow(n[t])}));return r.length<=0?(n.indeterminate=!1,!1):r.length<this.vuetable.perPage?(n.indeterminate=!0,!0):(n.indeterminate=!1,!0)}}}},S={name:"vuetable-field-checkbox",mixins:[x]},B=r(744);var D=(0,B.Z)(S,[["render",function(e,n,r,i,o,a){return e.isHeader?((0,t.openBlock)(),(0,t.createElementBlock)("th",k,[(0,t.createElementVNode)("input",{type:"checkbox",onChange:n[0]||(n[0]=function(t){return e.toggleAllCheckbox(t)}),checked:e.isAllItemsInCurrentPageSelected()},null,40,w)])):((0,t.openBlock)(),(0,t.createElementBlock)("td",E,[(0,t.createElementVNode)("input",{type:"checkbox",onChange:n[1]||(n[1]=function(t){return e.toggleCheckbox(e.rowData,t)}),checked:e.isSelected(e.rowData)},null,40,P)]))}]]),R=["innerHTML"],j=["innerHTML"];var F={name:"vuetable-field-handle",mixins:[O],computed:{css:function(){return this.vuetable.customCss}},methods:{renderIconTag:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return void 0===this.css.renderIcon?'<i class="'.concat(e.join(" "),'" ').concat(t,"></i>"):this.css.renderIcon(e,t)}}};var T=(0,B.Z)(F,[["render",function(e,n,r,i,o,a){return e.isHeader?((0,t.openBlock)(),(0,t.createElementBlock)("th",{key:0,class:"vuetable-th-component-handle",innerHTML:e.title},null,8,R)):((0,t.openBlock)(),(0,t.createElementBlock)("td",{key:1,class:"vuetable-td-component-handle",innerHTML:a.renderIconTag(["handle-icon",a.css.handleIcon])},null,8,j))}]]),_=["innerHTML"],N=["innerHTML"];var A={name:"vuetable-field-sequence",mixins:[O],methods:{renderSequence:function(){return this.vuetable.tablePagination?this.vuetable.tablePagination.from+this.rowIndex:1+this.rowIndex}}};var V=(0,B.Z)(A,[["render",function(e,n,r,i,o,a){return e.isHeader?((0,t.openBlock)(),(0,t.createElementBlock)("th",{key:0,class:"vuetable-th-component-sequence",innerHTML:e.title},null,8,_)):((0,t.openBlock)(),(0,t.createElementBlock)("td",{key:1,class:"vuetable-td-component-sequence",innerHTML:a.renderSequence()},null,8,N))}]]);var I={name:"vuetable-th-gutter",computed:{vuetable:function(){return this.$parent}}};r(192);var L=(0,B.Z)(I,[["render",function(e,n,r,i,o,a){return(0,t.openBlock)(),(0,t.createElementBlock)("th",{style:(0,t.normalizeStyle)({width:a.vuetable.scrollBarWidth}),class:"vuetable-th-gutter"},null,4)}]]),M={components:{"vuetable-field-checkbox":D,"vuetable-field-handle":T,"vuetable-field-sequence":V,VuetableColGutter:L},computed:{sortOrder:function(){return this.$parent.sortOrder},css:function(){return this.$parent.customCss},vuetable:function(){return this.$parent}},methods:{stripPrefix:function(e){return e.replace(this.vuetable.fieldPrefix,"")},headerClass:function(e,t){return[e+"-"+this.toSnakeCase(t.name),t.titleClass||"",this.sortClass(t),{sortable:this.vuetable.isSortable(t)}]},toSnakeCase:function(e){return"string"==typeof e&&e.replace(/([A-Z])/g,(function(e){return"_"+e.toLowerCase()})).replace(" ","_").replace(".","_")},sortClass:function(e){var t="",n=this.currentSortOrderPosition(e);return!1!==n&&(t="asc"===this.sortOrder[n].direction?this.css.ascendingClass:this.css.descendingClass),t},sortIcon:function(e){var t=this.css.sortableIcon,n=this.currentSortOrderPosition(e);return!1!==n&&(t="asc"===this.sortOrder[n].direction?this.css.ascendingIcon:this.css.descendingIcon),t},isInCurrentSortGroup:function(e){return!1!==this.currentSortOrderPosition(e)},hasSortableIcon:function(e){return this.vuetable.isSortable(e)&&""!==this.css.sortableIcon},currentSortOrderPosition:function(e){if(!this.vuetable.isSortable(e))return!1;for(var t=0;t<this.sortOrder.length;t++)if(this.fieldIsInSortOrderPosition(e,t))return t;return!1},fieldIsInSortOrderPosition:function(e,t){return this.sortOrder[t].field===e.name&&this.sortOrder[t].sortField===e.sortField},renderTitle:function(e){var t=this.getTitle(e);if(t.length>0&&this.isInCurrentSortGroup(e)||this.hasSortableIcon(e)){var n="opacity:".concat(this.sortIconOpacity(e),";position:relative;float:right");return t+" "+(this.vuetable.showSortIcons?this.renderIconTag(["sort-icon",this.sortIcon(e)],'style="'.concat(n,'"')):"")}return t},getTitle:function(e){return"function"==typeof e.title?e.title():void 0===e.title?e.name.replace("."," "):e.title},sortIconOpacity:function(e){var t=.3,n=this.sortOrder.length;return 1-n*t<.3&&(t=.7/(n-1)),1-this.currentSortOrderPosition(e)*t},renderIconTag:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return void 0===this.css.renderIcon?'<i class="'.concat(e.join(" "),'" ').concat(t,"></i>"):this.css.renderIcon(e,t)},onColumnHeaderClicked:function(e,t){this.vuetable.orderBy(e,t)}}};var H=(0,B.Z)(M,[["render",function(e,n,r,i,o,a){var s=(0,t.resolveComponent)("vuetable-col-gutter");return(0,t.openBlock)(),(0,t.createElementBlock)("tr",null,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(a.vuetable.tableFields,(function(e,n){return(0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,null,[e.visible?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[a.vuetable.isFieldComponent(e.name)?((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e.name),{"row-field":e,"is-header":!0,title:a.renderTitle(e),vuetable:a.vuetable,key:n,class:(0,t.normalizeClass)(a.headerClass("vuetable-th-component",e)),style:(0,t.normalizeStyle)({width:e.width}),"onVuetable:headerEvent":a.vuetable.onHeaderEvent,onClick:function(t){return a.onColumnHeaderClicked(e,t)}},null,40,["row-field","title","vuetable","class","style","onVuetable:headerEvent","onClick"])):a.vuetable.isFieldSlot(e.name)?((0,t.openBlock)(),(0,t.createElementBlock)("th",{class:(0,t.normalizeClass)(a.headerClass("vuetable-th-slot",e)),key:n,style:(0,t.normalizeStyle)({width:e.width}),innerHTML:a.renderTitle(e),onClick:function(t){return a.onColumnHeaderClicked(e,t)}},null,14,y)):((0,t.openBlock)(),(0,t.createElementBlock)("th",{onClick:function(t){return a.onColumnHeaderClicked(e,t)},key:n,id:"_"+e.name,class:(0,t.normalizeClass)(a.headerClass("vuetable-th",e)),style:(0,t.normalizeStyle)({width:e.width}),innerHTML:a.renderTitle(e)},null,14,C))],64)):(0,t.createCommentVNode)("v-if",!0)],64)})),256)),a.vuetable.scrollVisible?((0,t.openBlock)(),(0,t.createBlock)(s,{key:0})):(0,t.createCommentVNode)("v-if",!0)])}]]);var z={name:"vuetable-col-group",props:{isHeader:{type:Boolean,default:!1},fieldPrefix:{type:String,default:function(){return"vuetable-field-"}}},computed:{vuetable:function(){return this.$parent}},methods:{columnClass:function(t,n){var r="object"===e(t.name)&&null!==t.name?t.name.name:t.name;return["vuetable-col-"+(r=r.replace(this.fieldPrefix,"")),t.titleClass]}}};var U={tableWrapper:"",tableHeaderClass:"fixed",tableBodyClass:"fixed",tableClass:"ui blue selectable unstackable celled table",loadingClass:"loading",ascendingIcon:"blue chevron up icon",descendingIcon:"blue chevron down icon",ascendingClass:"sorted-asc",descendingClass:"sorted-desc",sortableIcon:"grey sort icon",handleIcon:"grey sidebar icon"},q={wrapperClass:"ui right floated pagination menu",activeClass:"active large",disabledClass:"disabled",pageClass:"item",linkClass:"icon item",paginationClass:"ui bottom attached segment grid",paginationInfoClass:"left floated left aligned six wide column",dropdownClass:"ui search dropdown",icons:{first:"angle double left icon",prev:"left chevron icon",next:"right chevron icon",last:"angle double right icon"}},$={infoClass:"left floated left aligned six wide column"};function W(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Z(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?W(Object(n),!0).forEach((function(t){v(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):W(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var J={name:"Vuetable",components:{VuetableRowHeader:H,VuetableColGroup:(0,B.Z)(z,[["render",function(e,n,r,i,o,a){return(0,t.openBlock)(),(0,t.createElementBlock)("colgroup",null,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(a.vuetable.tableFields,(function(e,n){return(0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,null,[e.visible?((0,t.openBlock)(),(0,t.createElementBlock)("col",{key:n,style:(0,t.normalizeStyle)({width:e.width}),class:(0,t.normalizeClass)(a.columnClass(e,n))},null,6)):(0,t.createCommentVNode)("v-if",!0)],64)})),256)),r.isHeader&&a.vuetable.scrollVisible?((0,t.openBlock)(),(0,t.createElementBlock)("col",{key:0,style:(0,t.normalizeStyle)({width:a.vuetable.scrollBarWidth}),class:"vuetable-col-gutter"},null,4)):(0,t.createCommentVNode)("v-if",!0)])}]])},emits:["vuetable:initialized","vuetable:loading","vuetable:loaded","vuetable:load-success","vuetable:load-error","vuetable:pagination-data","vuetable:scrollbar-visible","vuetable:row-clicked","vuetable:row-dblclicked","vuetable:detail-row-clicked","vuetable:cell-clicked","vuetable:cell-dblclicked","vuetable:cell-rightclicked","vuetable:row-mouseover","vuetable:field-event","vuetable:header-event","vuetable:data-reset","vuetable:checkbox-toggled","vuetable:checkbox-toggled-all"],props:{fields:{type:Array,required:!0},loadOnStart:{type:Boolean,default:!0},apiUrl:{type:String,default:""},httpMethod:{type:String,default:"get",validator:function(e){return["get","post"].indexOf(e)>-1}},reactiveApiUrl:{type:Boolean,default:!0},apiMode:{type:Boolean,default:!0},data:{type:[Array,Object],default:null},dataManager:{type:Function,default:null},dataPath:{type:String,default:"data"},paginationPath:{type:String,default:"links.pagination"},queryParams:{type:[Object,Function],default:function(){return{sort:"sort",page:"page",perPage:"per_page"}}},appendParams:{type:Object,default:function(){return{}}},httpOptions:{type:Object,default:function(){return{}}},httpFetch:{type:Function,default:null},perPage:{type:Number,default:10},initialPage:{type:Number,default:1},firstPage:{type:Number,default:1},sortOrder:{type:Array,default:[]},multiSort:{type:Boolean,default:!1},tableHeight:{type:String,default:null},multiSortKey:{type:String,default:"alt"},rowClass:{type:[String,Function],default:""},detailRowComponent:{type:[String,Object],default:""},detailRowTransition:{type:String,default:""},detailRowClass:{type:[String,Function],default:"vuetable-detail-row"},detailRowOptions:{type:Object,default:function(){return{}}},trackBy:{type:String,default:"id"},css:{type:Object,default:function(){return{}}},minRows:{type:Number,default:0},silent:{type:Boolean,default:!1},noDataTemplate:{type:String,default:"No Data Available"},showSortIcons:{type:Boolean,default:!0},headerRows:{type:Array,default:["VuetableRowHeader"]},transform:{type:Function,default:null},sortParams:{type:Function,default:null},fieldPrefix:{type:String,default:"vuetable-field-"},eventPrefix:{type:String,default:"vuetable:"}},data:function(){return{tableFields:[],tableData:null,tablePagination:null,currentPage:this.initialPage,selectedTo:[],visibleDetailRows:[],lastScrollPosition:0,scrollBarWidth:"17px",scrollVisible:!1,customCss:{}}},computed:{version:function(){return VERSION},useDetailRow:function(){return!!this.dataIsAvailable&&""!==this.detailRowComponent},dataIsAvailable:function(){return!!this.tableData&&this.tableData.length>0},hasRowIdentifier:function(){return this.tableData&&void 0!==this.tableData[0][this.trackBy]},countVisibleFields:function(){return this.tableFields.filter((function(e){return e.visible})).length},countTableData:function(){return null===this.tableData?0:this.tableData.length},displayEmptyDataRow:function(){return 0===this.countTableData&&this.noDataTemplate.length>0},lessThanMinRows:function(){return null===this.tableData||0===this.tableData.length||this.tableData.length<this.minRows},blankRows:function(){return null===this.tableData||0===this.tableData.length?this.minRows:this.tableData.length>=this.minRows?0:this.minRows-this.tableData.length},isApiMode:function(){return this.apiMode},isDataMode:function(){return!this.apiMode},isFixedHeader:function(){return null!=this.tableHeight},vuetable:function(){return this}},created:function(){var e=this;this.mergeCss(),this.normalizeFields(),this.normalizeSortOrder(),this.$nextTick((function(){e.fireEvent("initialized",e.tableFields)}))},mounted:function(){if(this.loadOnStart&&this.loadData(),this.isFixedHeader){this.scrollBarWidth=this.getScrollBarWidth()+"px";var e=this.$el.getElementsByClassName("vuetable-body-wrapper")[0];null!=e&&e.addEventListener("scroll",this.handleScroll)}},unmounted:function(){var e=this.$el.getElementsByClassName("vuetable-body-wrapper")[0];null!=e&&e.removeEventListener("scroll",this.handleScroll)},watch:{multiSort:function(e,t){!1===e&&this.sortOrder.length>1&&(this.sortOrder.splice(1),this.loadData())},apiUrl:function(e,t){this.reactiveApiUrl&&e!==t&&this.refresh()},data:function(e,t){this.setData(e)},tableHeight:function(e,t){this.checkScrollbarVisibility()},fields:function(e,t){this.normalizeFields()},perPage:function(e,t){this.reload()}},methods:{getScrollBarWidth:function(){var e=document.createElement("div"),t=document.createElement("div");e.style.visibility="hidden",e.style.width="100px",t.style.width="100%",e.appendChild(t),document.body.appendChild(e);var n=e.offsetWidth;e.style.overflow="scroll";var r=t.offsetWidth;return document.body.removeChild(e),n-r},handleScroll:function(e){var t=e.currentTarget.scrollLeft;if(t!==this.lastScrollPosition){var n=this.$el.getElementsByClassName("vuetable-head-wrapper")[0];null!=n&&(n.scrollLeft=t),this.lastScrollPosition=t}},mergeCss:function(){this.customCss=Z(Z({},U),this.css)},bodyClass:function(e,t){return[e,t.dataClass]},normalizeFields:function(){var e=this;void 0!==this.fields?(this.tableFields=[],this.fields.forEach((function(t,n){e.tableFields.push(e.newField(t,n))}))):this.warn('You need to provide "fields" prop.')},newField:function(e,t){var n={name:"",titleClass:"",dataClass:"",sortField:null,formatter:null,visible:!0,width:null,$_index:t};if("string"==typeof e)return Object.assign({},n,{name:this.normalizeFieldName(e),title:this.makeTitle(e)});var r=Object.assign({},n,e);return r.name=this.normalizeFieldName(r.name),void 0===r.title&&(r.title=this.makeTitle(r.name)),null!==r.formatter&&"function"!=typeof r.formatter&&(console.error(r.name+" field formatter must be a function"),r.formatter=null),r},normalizeFieldName:function(e){return e instanceof Object?e:"string"==typeof e&&e.replace("__",this.fieldPrefix)},setData:function(e){var t=this;if(null!=e){if(this.fireEvent("loading"),Array.isArray(e))return this.tableData=e,void this.fireEvent("loaded");this.tableData=this.getObjectValue(e,this.dataPath,null),this.tablePagination=this.getObjectValue(e,this.paginationPath,null),this.$nextTick((function(){t.checkIfRowIdentifierExists(),t.updateHeader(),t.fireEvent("pagination-data",t.tablePagination),t.fireEvent("loaded")}))}},checkIfRowIdentifierExists:function(){if(this.dataIsAvailable)return!!this.hasRowIdentifier||(this.warn('Invalid your data! Use "track-by" prop to specify.'),!1)},makeTitle:function(e){return this.isFieldComponent(e)?"":this.titleCase(e.replace("."," "))},getFieldTitle:function(e){return"function"==typeof e.title?e.title():e.title},renderNormalField:function(e,t){return this.hasFormatter(e)?this.callFormatter(e,t):this.getObjectValue(t,e.name,"")},isFieldComponent:function(e){return e instanceof Object||(e.slice(0,this.fieldPrefix.length)===this.fieldPrefix||"__"===e.slice(0,2))},isFieldSlot:function(e){return void 0!==this.$slots[e]},titleCase:function(e){return e.replace(/\w+/g,(function(e){return e.charAt(0).toUpperCase()+e.substr(1).toLowerCase()}))},camelCase:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"_";return e.split(t).map((function(e){return self.titleCase(e)})).join("")},loadData:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.loadSuccess,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.loadFailed;if(!this.isDataMode)return this.fireEvent("loading"),this.httpOptions.params=this.getAppendParams(this.getAllQueryParams()),this.fetch(this.apiUrl,this.httpOptions).then(e,t).catch((function(){return t()}));this.handleDataMode()},fetch:function(e,t){if(this.httpFetch)return this.httpFetch(e,t);if("get"===this.httpMethod)return g().get(e,t);var n=t.params;return delete t.params,g().post(e,n,t)},loadSuccess:function(e){var t=this;this.fireEvent("load-success",e);var n=this.transform?this.transform(e.data):e.data;this.tableData=this.getObjectValue(n,this.dataPath,null),this.tablePagination=this.getObjectValue(n,this.paginationPath,null),null===this.tablePagination&&this.warn('vuetable: pagination-path "'+this.paginationPath+'" not found. It looks like the data returned from the server does not have pagination information or you may have set it incorrectly.\nYou can explicitly suppress this warning by setting pagination-path="".'),this.$nextTick((function(){t.checkIfRowIdentifierExists(),t.updateHeader(),t.fireEvent("pagination-data",t.tablePagination),t.fireEvent("loaded")}))},updateHeader:function(){setTimeout(this.checkScrollbarVisibility,80)},checkScrollbarVisibility:function(){var e=this;this.$nextTick((function(){var t=e.$el.getElementsByClassName("vuetable-body-wrapper")[0];null!=t&&(e.scrollVisible=t.scrollHeight>t.clientHeight,e.fireEvent("scrollbar-visible",e.scrollVisible))}))},loadFailed:function(e){console.error("load-error",e),this.fireEvent("load-error",e),this.fireEvent("loaded")},fireEvent:function(){if(1===arguments.length)return this.$emit(this.eventPrefix+arguments[0]);if(arguments.length>1){var e=Array.from(arguments);return e[0]=this.eventPrefix+e[0],this.$emit.apply(this,e)}},warn:function(e){this.silent||console.warn(e)},getAllQueryParams:function(){var t={};return"function"==typeof this.queryParams?"object"===e(t=this.queryParams(this.sortOrder,this.currentPage,this.perPage))?t:{}:(t[this.queryParams.sort]=this.getSortParam(),t[this.queryParams.page]=this.currentPage,t[this.queryParams.perPage]=this.perPage,t)},getSortParam:function(){return this.sortOrder&&""!==this.sortOrder.field?"function"==typeof this.sortParams?this.sortParams(this.sortOrder):this.getDefaultSortParam():""},getDefaultSortParam:function(){return this.sortOrder.map((function(e){return"".concat(e.sortField,"|").concat(e.direction)})).join(",")},getAppendParams:function(e){for(var t in this.appendParams)e[t]=this.appendParams[t];return e},isSortable:function(e){return null!==e.sortField},currentSortOrderPosition:function(e){if(!this.isSortable(e))return!1;for(var t=0;t<this.sortOrder.length;t++)if(this.fieldIsInSortOrderPosition(e,t))return t;return!1},fieldIsInSortOrderPosition:function(e,t){return this.sortOrder[t].field===e.name&&this.sortOrder[t].sortField===e.sortField},orderBy:function(e,t){if(this.isSortable(e)){var n=this.multiSortKey.toLowerCase()+"Key";this.multiSort&&t[n]?this.multiColumnSort(e):this.singleColumnSort(e),this.currentPage=this.firstPage,(this.apiMode||this.dataManager)&&this.loadData()}},addSortColumn:function(e,t){this.sortOrder.push({field:e.name,sortField:e.sortField,direction:t})},removeSortColumn:function(e){this.sortOrder.splice(e,1)},setSortColumnDirection:function(e,t){this.sortOrder[e].direction=t},multiColumnSort:function(e){var t=this.currentSortOrderPosition(e);!1===t?this.addSortColumn(e,"asc"):"asc"===this.sortOrder[t].direction?this.setSortColumnDirection(t,"desc"):this.removeSortColumn(t)},singleColumnSort:function(e){0!==this.sortOrder.length?(this.sortOrder.splice(1),this.fieldIsInSortOrderPosition(e,0)?this.sortOrder[0].direction="asc"===this.sortOrder[0].direction?"desc":"asc":this.sortOrder[0].direction="asc",this.sortOrder[0].field=e.name,this.sortOrder[0].sortField=e.sortField):this.addSortColumn(e,"asc")},clearSortOrder:function(){this.sortOrder=[]},hasFormatter:function(e){return"function"==typeof e.formatter},callFormatter:function(e,t){if(this.hasFormatter(e))return"function"==typeof e.formatter?e.formatter(this.getObjectValue(t,e.name),this):void 0},getObjectValue:function(e,t,n){n=void 0===n?null:n;var r=e;""!=t.trim()&&t.split(".").forEach((function(e){r=null!==r&&void 0!==r[e]&&null!==r[e]?r[e]:n}));return r},selectId:function(e){this.isSelectedRow(e)||this.selectedTo.push(e)},unselectId:function(e){this.selectedTo=this.selectedTo.filter((function(t){return t!==e}))},isSelectedRow:function(e){return this.selectedTo.indexOf(e)>=0},clearSelectedValues:function(){this.selectedTo=[]},gotoPreviousPage:function(){this.currentPage>this.firstPage&&(this.currentPage--,this.loadData())},gotoNextPage:function(){this.currentPage<this.tablePagination.last_page&&(this.currentPage++,this.loadData())},gotoPage:function(e){e!==this.currentPage&&e>=this.firstPage&&e<=this.tablePagination.last_page&&(this.currentPage=e,this.loadData())},isVisibleDetailRow:function(e){return this.visibleDetailRows.indexOf(e)>=0},showDetailRow:function(e){this.isVisibleDetailRow(e)||this.visibleDetailRows.push(e),this.checkScrollbarVisibility()},hideDetailRow:function(e){this.isVisibleDetailRow(e)&&(this.visibleDetailRows.splice(this.visibleDetailRows.indexOf(e),1),this.updateHeader())},toggleDetailRow:function(e){this.isVisibleDetailRow(e)?this.hideDetailRow(e):this.sh