vue-laravel-crud 1.4.39 → 1.4.40
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -17035,7 +17035,7 @@ var InfiniteLoading = /*@__PURE__*/getDefaultExportFromCjs(vueInfiniteLoadingExp
|
|
|
17035
17035
|
|
|
17036
17036
|
var e=[],t=[];function n(n,r){if(n&&"undefined"!=typeof document){var a,s=!0===r.prepend?"prepend":"append",d=!0===r.singleTag,i="string"==typeof r.container?document.querySelector(r.container):document.getElementsByTagName("head")[0];if(d){var u=e.indexOf(i);-1===u&&(u=e.push(i)-1,t[u]={}),a=t[u]&&t[u][s]?t[u][s]:t[u][s]=c();}else a=c();65279===n.charCodeAt(0)&&(n=n.substring(1)),a.styleSheet?a.styleSheet.cssText+=n:a.appendChild(document.createTextNode(n));}function c(){var e=document.createElement("style");if(e.setAttribute("type","text/css"),r.attributes)for(var t=Object.keys(r.attributes),n=0;n<t.length;n++)e.setAttribute(t[n],r.attributes[t[n]]);var a="prepend"===s?"afterbegin":"beforeend";return i.insertAdjacentElement(a,e),e}}
|
|
17037
17037
|
|
|
17038
|
-
var css = "tr td[data-v-
|
|
17038
|
+
var css = "tr td[data-v-7bd60172]:last-child,\ntr td[data-v-7bd60172]:first-child {\n width: 1%;\n white-space: nowrap; }\n\n.crud-pagination[data-v-7bd60172] {\n display: flex;\n justify-content: center; }\n\n.crud-header[data-v-7bd60172] {\n display: flex;\n justify-content: space-between;\n max-height: 3rem; }\n .crud-header[data-v-7bd60172] .crud-title[data-v-7bd60172] {\n margin: 0; }\n .crud-header[data-v-7bd60172] .crud-search[data-v-7bd60172] {\n max-width: 15rem; }\n .crud-header[data-v-7bd60172] .crud-search[data-v-7bd60172] .btn[data-v-7bd60172] {\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n border-top-right-radius: 0.375rem;\n border-bottom-right-radius: 0.375rem; }\n .crud-header[data-v-7bd60172] .crud-search[data-v-7bd60172] .btn[data-v-7bd60172].open[data-v-7bd60172] {\n border-top-right-radius: 0;\n border-bottom-right-radius: 0; }\n .crud-header[data-v-7bd60172] .table-options[data-v-7bd60172] {\n margin-bottom: 1rem;\n display: flex;\n align-items: center;\n justify-content: flex-end; }\n\n.custom-control[data-v-7bd60172] {\n position: relative;\n top: -15px; }\n\n@media (min-width: 992px) {\n .table[data-v-7bd60172] {\n table-layout: auto; }\n .table[data-v-7bd60172] tbody[data-v-7bd60172] td[data-v-7bd60172] {\n overflow: scroll;\n -ms-overflow-style: none;\n /* IE and Edge */\n scrollbar-width: none;\n /* Firefox */ }\n .table[data-v-7bd60172] tbody[data-v-7bd60172] td[data-v-7bd60172]::-webkit-scrollbar {\n display: none; } }\n";
|
|
17039
17039
|
n(css, {});
|
|
17040
17040
|
|
|
17041
17041
|
function normalizeComponent (
|
|
@@ -18565,7 +18565,7 @@ var _sfc_render = function render() {
|
|
|
18565
18565
|
},
|
|
18566
18566
|
expression: "items"
|
|
18567
18567
|
}
|
|
18568
|
-
}, _vm._l(_vm.itemsList, function (item, index) {
|
|
18568
|
+
}, [_vm._l(_vm.itemsList, function (item, index) {
|
|
18569
18569
|
return _c('tr', {
|
|
18570
18570
|
key: index,
|
|
18571
18571
|
staticClass: "item",
|
|
@@ -18656,7 +18656,7 @@ var _sfc_render = function render() {
|
|
|
18656
18656
|
}, {
|
|
18657
18657
|
"item": item
|
|
18658
18658
|
})], 2);
|
|
18659
|
-
}),
|
|
18659
|
+
}), _vm.infiniteScroll ? _c('infinite-loading', {
|
|
18660
18660
|
on: {
|
|
18661
18661
|
"infinite": _vm.infiniteHandler
|
|
18662
18662
|
}
|
|
@@ -18681,7 +18681,7 @@ var _sfc_render = function render() {
|
|
|
18681
18681
|
slot: "no-results"
|
|
18682
18682
|
}, [_c('div', {
|
|
18683
18683
|
staticClass: "text-center"
|
|
18684
|
-
}, [_vm._v(_vm._s(_vm.messageEmptyResults))])])]) : _vm._e()], 1), !_vm.loading && _vm.items.length == 0 && !_vm.infiniteScroll ? _c('p', {
|
|
18684
|
+
}, [_vm._v(_vm._s(_vm.messageEmptyResults))])])]) : _vm._e()], 2)], 1), !_vm.loading && _vm.items.length == 0 && !_vm.infiniteScroll ? _c('p', {
|
|
18685
18685
|
staticClass: "p-3"
|
|
18686
18686
|
}, [_vm._v(" " + _vm._s(_vm.messageEmptyResults) + " ")]) : _vm._e()]) : _vm._e(), _vm.displayMode == _vm.displayModes.MODE_CARDS ? _c('div', [!_vm.loading && _vm.items.length == 0 && !_vm.infiniteScroll ? _c('p', {
|
|
18687
18687
|
staticClass: "p-3"
|
|
@@ -18716,7 +18716,7 @@ var _sfc_render = function render() {
|
|
|
18716
18716
|
},
|
|
18717
18717
|
expression: "items"
|
|
18718
18718
|
}
|
|
18719
|
-
}, _vm._l(_vm.itemsList, function (item, index) {
|
|
18719
|
+
}, [_vm._l(_vm.itemsList, function (item, index) {
|
|
18720
18720
|
return _c('b-col', {
|
|
18721
18721
|
key: index,
|
|
18722
18722
|
staticClass: "item",
|
|
@@ -18801,7 +18801,7 @@ var _sfc_render = function render() {
|
|
|
18801
18801
|
}, {
|
|
18802
18802
|
"item": item
|
|
18803
18803
|
})], 2)], 1);
|
|
18804
|
-
}),
|
|
18804
|
+
}), _vm.infiniteScroll ? _c('infinite-loading', {
|
|
18805
18805
|
on: {
|
|
18806
18806
|
"infinite": _vm.infiniteHandler
|
|
18807
18807
|
}
|
|
@@ -18811,22 +18811,22 @@ var _sfc_render = function render() {
|
|
|
18811
18811
|
},
|
|
18812
18812
|
slot: "spinner"
|
|
18813
18813
|
}, [_c('div', {
|
|
18814
|
-
staticClass: "text-center"
|
|
18814
|
+
staticClass: "text-center col-12"
|
|
18815
18815
|
}, [_vm._v(_vm._s(_vm.messageLoading))])]), _c('div', {
|
|
18816
18816
|
attrs: {
|
|
18817
18817
|
"slot": "no-more"
|
|
18818
18818
|
},
|
|
18819
18819
|
slot: "no-more"
|
|
18820
18820
|
}, [_c('div', {
|
|
18821
|
-
staticClass: "text-center"
|
|
18821
|
+
staticClass: "text-center col-12"
|
|
18822
18822
|
}, [_vm._v(_vm._s(_vm.messageNoMore))])]), _c('div', {
|
|
18823
18823
|
attrs: {
|
|
18824
18824
|
"slot": "no-results"
|
|
18825
18825
|
},
|
|
18826
18826
|
slot: "no-results"
|
|
18827
18827
|
}, [_c('div', {
|
|
18828
|
-
staticClass: "text-center"
|
|
18829
|
-
}, [_vm._v(_vm._s(_vm.messageEmptyResults))])])]) : _vm._e()], 1) : _vm._e(), _vm.displayMode == _vm.displayModes.MODE_CUSTOM ? _c('div', [_c('div', {
|
|
18828
|
+
staticClass: "text-center col-12"
|
|
18829
|
+
}, [_vm._v(_vm._s(_vm.messageEmptyResults))])])]) : _vm._e()], 2)], 1) : _vm._e(), _vm.displayMode == _vm.displayModes.MODE_CUSTOM ? _c('div', [_c('div', {
|
|
18830
18830
|
class: _vm.listContainerClass
|
|
18831
18831
|
}, [_vm.items.length == 0 ? _c('p', {
|
|
18832
18832
|
staticClass: "p-3"
|
|
@@ -18978,7 +18978,7 @@ var _sfc_render = function render() {
|
|
|
18978
18978
|
}) : _vm._e()], 2)], 1);
|
|
18979
18979
|
};
|
|
18980
18980
|
var _sfc_staticRenderFns = [];
|
|
18981
|
-
var __component__ = /*#__PURE__*/normalizeComponent(_sfc_main, _sfc_render, _sfc_staticRenderFns, false, null, "
|
|
18981
|
+
var __component__ = /*#__PURE__*/normalizeComponent(_sfc_main, _sfc_render, _sfc_staticRenderFns, false, null, "7bd60172", null, null);
|
|
18982
18982
|
var component = __component__.exports;
|
|
18983
18983
|
|
|
18984
18984
|
// Import vue component
|
|
@@ -13,4 +13,4 @@ r.version="2.29.4",i(Xn),r.fn=uo,r.min=Qn,r.max=tr,r.now=er,r.utc=p,r.unix=co,r.
|
|
|
13
13
|
* (c) 2016-2020 PeachScript
|
|
14
14
|
* MIT License
|
|
15
15
|
*/
|
|
16
|
-
!function(t,e){t.exports=function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=9)}([function(t,e,n){var r=n(6);"string"==typeof r&&(r=[[t.i,r,""]]),r.locals&&(t.exports=r.locals),(0,n(3).default)("6223ff68",r,!0,{})},function(t,e,n){var r=n(8);"string"==typeof r&&(r=[[t.i,r,""]]),r.locals&&(t.exports=r.locals),(0,n(3).default)("27f0e51f",r,!0,{})},function(t,e){t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n=function(t,e){var n,r=t[1]||"",i=t[3];if(!i)return r;if(e&&"function"==typeof btoa){var o=(n=i,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(n))))+" */"),a=i.sources.map((function(t){return"/*# sourceURL="+i.sourceRoot+t+" */"}));return[r].concat(a).concat([o]).join("\n")}return[r].join("\n")}(e,t);return e[2]?"@media "+e[2]+"{"+n+"}":n})).join("")},e.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var r={},i=0;i<this.length;i++){var o=this[i][0];"number"==typeof o&&(r[o]=!0)}for(i=0;i<t.length;i++){var a=t[i];"number"==typeof a[0]&&r[a[0]]||(n&&!a[2]?a[2]=n:n&&(a[2]="("+a[2]+") and ("+n+")"),e.push(a))}},e}},function(t,e,n){function r(t,e){for(var n=[],r={},i=0;i<e.length;i++){var o=e[i],a=o[0],s={id:t+":"+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.r(e),n.d(e,"default",(function(){return h}));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,u=!1,c=function(){},d=null,f="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function h(t,e,n,i){u=n,d=i||{};var a=r(t,e);return p(a),function(e){for(var n=[],i=0;i<a.length;i++){var s=a[i];(l=o[s.id]).refs--,n.push(l)}for(e?p(a=r(t,e)):a=[],i=0;i<n.length;i++){var l;if(0===(l=n[i]).refs){for(var u=0;u<l.parts.length;u++)l.parts[u]();delete o[l.id]}}}}function p(t){for(var e=0;e<t.length;e++){var n=t[e],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(g(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(g(n.parts[i]));o[n.id]={id:n.id,refs:1,parts:a}}}}function m(){var t=document.createElement("style");return t.type="text/css",a.appendChild(t),t}function g(t){var e,n,r=document.querySelector('style[data-vue-ssr-id~="'+t.id+'"]');if(r){if(u)return c;r.parentNode.removeChild(r)}if(f){var i=l++;r=s||(s=m()),e=b.bind(null,r,i,!1),n=b.bind(null,r,i,!0)}else r=m(),e=_.bind(null,r),n=function(){r.parentNode.removeChild(r)};return e(t),function(r){if(r){if(r.css===t.css&&r.media===t.media&&r.sourceMap===t.sourceMap)return;e(t=r)}else n()}}var v,y=(v=[],function(t,e){return v[t]=e,v.filter(Boolean).join("\n")});function b(t,e,n,r){var i=n?"":r.css;if(t.styleSheet)t.styleSheet.cssText=y(e,i);else{var o=document.createTextNode(i),a=t.childNodes;a[e]&&t.removeChild(a[e]),a.length?t.insertBefore(o,a[e]):t.appendChild(o)}}function _(t,e){var n=e.css,r=e.media,i=e.sourceMap;if(r&&t.setAttribute("media",r),d.ssrId&&t.setAttribute("data-vue-ssr-id",e.id),i&&(n+="\n/*# sourceURL="+i.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */"),t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}},function(t,e){function n(e){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?t.exports=n=function(t){return typeof t}:t.exports=n=function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(e)}t.exports=n},function(t,e,n){n.r(e);var r=n(0),i=n.n(r);for(var o in r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);e.default=i.a},function(t,e,n){(t.exports=n(2)(!1)).push([t.i,'.loading-wave-dots[data-v-46b20d22]{position:relative}.loading-wave-dots[data-v-46b20d22] .wave-item{position:absolute;top:50%;left:50%;display:inline-block;margin-top:-4px;width:8px;height:8px;border-radius:50%;-webkit-animation:loading-wave-dots-data-v-46b20d22 linear 2.8s infinite;animation:loading-wave-dots-data-v-46b20d22 linear 2.8s infinite}.loading-wave-dots[data-v-46b20d22] .wave-item:first-child{margin-left:-36px}.loading-wave-dots[data-v-46b20d22] .wave-item:nth-child(2){margin-left:-20px;-webkit-animation-delay:.14s;animation-delay:.14s}.loading-wave-dots[data-v-46b20d22] .wave-item:nth-child(3){margin-left:-4px;-webkit-animation-delay:.28s;animation-delay:.28s}.loading-wave-dots[data-v-46b20d22] .wave-item:nth-child(4){margin-left:12px;-webkit-animation-delay:.42s;animation-delay:.42s}.loading-wave-dots[data-v-46b20d22] .wave-item:last-child{margin-left:28px;-webkit-animation-delay:.56s;animation-delay:.56s}@-webkit-keyframes loading-wave-dots-data-v-46b20d22{0%{-webkit-transform:translateY(0);transform:translateY(0);background:#bbb}10%{-webkit-transform:translateY(-6px);transform:translateY(-6px);background:#999}20%{-webkit-transform:translateY(0);transform:translateY(0);background:#bbb}to{-webkit-transform:translateY(0);transform:translateY(0);background:#bbb}}@keyframes loading-wave-dots-data-v-46b20d22{0%{-webkit-transform:translateY(0);transform:translateY(0);background:#bbb}10%{-webkit-transform:translateY(-6px);transform:translateY(-6px);background:#999}20%{-webkit-transform:translateY(0);transform:translateY(0);background:#bbb}to{-webkit-transform:translateY(0);transform:translateY(0);background:#bbb}}.loading-circles[data-v-46b20d22] .circle-item{width:5px;height:5px;-webkit-animation:loading-circles-data-v-46b20d22 linear .75s infinite;animation:loading-circles-data-v-46b20d22 linear .75s infinite}.loading-circles[data-v-46b20d22] .circle-item:first-child{margin-top:-14.5px;margin-left:-2.5px}.loading-circles[data-v-46b20d22] .circle-item:nth-child(2){margin-top:-11.26px;margin-left:6.26px}.loading-circles[data-v-46b20d22] .circle-item:nth-child(3){margin-top:-2.5px;margin-left:9.5px}.loading-circles[data-v-46b20d22] .circle-item:nth-child(4){margin-top:6.26px;margin-left:6.26px}.loading-circles[data-v-46b20d22] .circle-item:nth-child(5){margin-top:9.5px;margin-left:-2.5px}.loading-circles[data-v-46b20d22] .circle-item:nth-child(6){margin-top:6.26px;margin-left:-11.26px}.loading-circles[data-v-46b20d22] .circle-item:nth-child(7){margin-top:-2.5px;margin-left:-14.5px}.loading-circles[data-v-46b20d22] .circle-item:last-child{margin-top:-11.26px;margin-left:-11.26px}@-webkit-keyframes loading-circles-data-v-46b20d22{0%{background:#dfdfdf}90%{background:#505050}to{background:#dfdfdf}}@keyframes loading-circles-data-v-46b20d22{0%{background:#dfdfdf}90%{background:#505050}to{background:#dfdfdf}}.loading-bubbles[data-v-46b20d22] .bubble-item{background:#666;-webkit-animation:loading-bubbles-data-v-46b20d22 linear .75s infinite;animation:loading-bubbles-data-v-46b20d22 linear .75s infinite}.loading-bubbles[data-v-46b20d22] .bubble-item:first-child{margin-top:-12.5px;margin-left:-.5px}.loading-bubbles[data-v-46b20d22] .bubble-item:nth-child(2){margin-top:-9.26px;margin-left:8.26px}.loading-bubbles[data-v-46b20d22] .bubble-item:nth-child(3){margin-top:-.5px;margin-left:11.5px}.loading-bubbles[data-v-46b20d22] .bubble-item:nth-child(4){margin-top:8.26px;margin-left:8.26px}.loading-bubbles[data-v-46b20d22] .bubble-item:nth-child(5){margin-top:11.5px;margin-left:-.5px}.loading-bubbles[data-v-46b20d22] .bubble-item:nth-child(6){margin-top:8.26px;margin-left:-9.26px}.loading-bubbles[data-v-46b20d22] .bubble-item:nth-child(7){margin-top:-.5px;margin-left:-12.5px}.loading-bubbles[data-v-46b20d22] .bubble-item:last-child{margin-top:-9.26px;margin-left:-9.26px}@-webkit-keyframes loading-bubbles-data-v-46b20d22{0%{width:1px;height:1px;box-shadow:0 0 0 3px #666}90%{width:1px;height:1px;box-shadow:0 0 0 0 #666}to{width:1px;height:1px;box-shadow:0 0 0 3px #666}}@keyframes loading-bubbles-data-v-46b20d22{0%{width:1px;height:1px;box-shadow:0 0 0 3px #666}90%{width:1px;height:1px;box-shadow:0 0 0 0 #666}to{width:1px;height:1px;box-shadow:0 0 0 3px #666}}.loading-default[data-v-46b20d22]{position:relative;border:1px solid #999;-webkit-animation:loading-rotating-data-v-46b20d22 ease 1.5s infinite;animation:loading-rotating-data-v-46b20d22 ease 1.5s infinite}.loading-default[data-v-46b20d22]:before{content:"";position:absolute;display:block;top:0;left:50%;margin-top:-3px;margin-left:-3px;width:6px;height:6px;background-color:#999;border-radius:50%}.loading-spiral[data-v-46b20d22]{border:2px solid #777;border-right-color:transparent;-webkit-animation:loading-rotating-data-v-46b20d22 linear .85s infinite;animation:loading-rotating-data-v-46b20d22 linear .85s infinite}@-webkit-keyframes loading-rotating-data-v-46b20d22{0%{-webkit-transform:rotate(0);transform:rotate(0)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes loading-rotating-data-v-46b20d22{0%{-webkit-transform:rotate(0);transform:rotate(0)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}.loading-bubbles[data-v-46b20d22],.loading-circles[data-v-46b20d22]{position:relative}.loading-bubbles[data-v-46b20d22] .bubble-item,.loading-circles[data-v-46b20d22] .circle-item{position:absolute;top:50%;left:50%;display:inline-block;border-radius:50%}.loading-bubbles[data-v-46b20d22] .bubble-item:nth-child(2),.loading-circles[data-v-46b20d22] .circle-item:nth-child(2){-webkit-animation-delay:93ms;animation-delay:93ms}.loading-bubbles[data-v-46b20d22] .bubble-item:nth-child(3),.loading-circles[data-v-46b20d22] .circle-item:nth-child(3){-webkit-animation-delay:.186s;animation-delay:.186s}.loading-bubbles[data-v-46b20d22] .bubble-item:nth-child(4),.loading-circles[data-v-46b20d22] .circle-item:nth-child(4){-webkit-animation-delay:.279s;animation-delay:.279s}.loading-bubbles[data-v-46b20d22] .bubble-item:nth-child(5),.loading-circles[data-v-46b20d22] .circle-item:nth-child(5){-webkit-animation-delay:.372s;animation-delay:.372s}.loading-bubbles[data-v-46b20d22] .bubble-item:nth-child(6),.loading-circles[data-v-46b20d22] .circle-item:nth-child(6){-webkit-animation-delay:.465s;animation-delay:.465s}.loading-bubbles[data-v-46b20d22] .bubble-item:nth-child(7),.loading-circles[data-v-46b20d22] .circle-item:nth-child(7){-webkit-animation-delay:.558s;animation-delay:.558s}.loading-bubbles[data-v-46b20d22] .bubble-item:last-child,.loading-circles[data-v-46b20d22] .circle-item:last-child{-webkit-animation-delay:.651s;animation-delay:.651s}',""])},function(t,e,n){n.r(e);var r=n(1),i=n.n(r);for(var o in r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);e.default=i.a},function(t,e,n){(t.exports=n(2)(!1)).push([t.i,".infinite-loading-container[data-v-644ea9c9]{clear:both;text-align:center}.infinite-loading-container[data-v-644ea9c9] [class^=loading-]{display:inline-block;margin:5px 0;width:28px;height:28px;font-size:28px;line-height:28px;border-radius:50%}.btn-try-infinite[data-v-644ea9c9]{margin-top:5px;padding:5px 10px;color:#999;font-size:14px;line-height:1;background:transparent;border:1px solid #ccc;border-radius:3px;outline:none;cursor:pointer}.btn-try-infinite[data-v-644ea9c9]:not(:active):hover{opacity:.8}",""])},function(t,e,n){n.r(e);var r={throttleLimit:50,loopCheckTimeout:1e3,loopCheckMaxCalls:10},i=function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){return t={passive:!0},!0}});window.addEventListener("testpassive",e,e),window.remove("testpassive",e,e)}catch(t){}return t}(),o={STATE_CHANGER:["emit `loaded` and `complete` event through component instance of `$refs` may cause error, so it will be deprecated soon, please use the `$state` argument instead (`$state` just the special `$event` variable):","\ntemplate:",'<infinite-loading @infinite="infiniteHandler"></infinite-loading>',"\nscript:\n...\ninfiniteHandler($state) {\n ajax('https://www.example.com/api/news')\n .then((res) => {\n if (res.data.length) {\n $state.loaded();\n } else {\n $state.complete();\n }\n });\n}\n...","","more details: https://github.com/PeachScript/vue-infinite-loading/issues/57#issuecomment-324370549"].join("\n"),INFINITE_EVENT:"`:on-infinite` property will be deprecated soon, please use `@infinite` event instead.",IDENTIFIER:"the `reset` event will be deprecated soon, please reset this component by change the `identifier` property."},a={INFINITE_LOOP:["executed the callback function more than ".concat(r.loopCheckMaxCalls," times for a short time, it looks like searched a wrong scroll wrapper that doest not has fixed height or maximum height, please check it. If you want to force to set a element as scroll wrapper ranther than automatic searching, you can do this:"),'\n\x3c!-- add a special attribute for the real scroll wrapper --\x3e\n<div infinite-wrapper>\n ...\n \x3c!-- set force-use-infinite-wrapper --\x3e\n <infinite-loading force-use-infinite-wrapper></infinite-loading>\n</div>\nor\n<div class="infinite-wrapper">\n ...\n \x3c!-- set force-use-infinite-wrapper as css selector of the real scroll wrapper --\x3e\n <infinite-loading force-use-infinite-wrapper=".infinite-wrapper"></infinite-loading>\n</div>\n ',"more details: https://github.com/PeachScript/vue-infinite-loading/issues/55#issuecomment-316934169"].join("\n")},s={READY:0,LOADING:1,COMPLETE:2,ERROR:3},l={color:"#666",fontSize:"14px",padding:"10px 0"},u={mode:"development",props:{spinner:"default",distance:100,forceUseInfiniteWrapper:!1},system:r,slots:{noResults:"No results :(",noMore:"No more data :)",error:"Opps, something went wrong :(",errorBtnText:"Retry",spinner:""},WARNINGS:o,ERRORS:a,STATUS:s},c=n(4),d=n.n(c),f={BUBBLES:{render:function(t){return t("span",{attrs:{class:"loading-bubbles"}},Array.apply(Array,Array(8)).map((function(){return t("span",{attrs:{class:"bubble-item"}})})))}},CIRCLES:{render:function(t){return t("span",{attrs:{class:"loading-circles"}},Array.apply(Array,Array(8)).map((function(){return t("span",{attrs:{class:"circle-item"}})})))}},DEFAULT:{render:function(t){return t("i",{attrs:{class:"loading-default"}})}},SPIRAL:{render:function(t){return t("i",{attrs:{class:"loading-spiral"}})}},WAVEDOTS:{render:function(t){return t("span",{attrs:{class:"loading-wave-dots"}},Array.apply(Array,Array(5)).map((function(){return t("span",{attrs:{class:"wave-item"}})})))}}};function h(t,e,n,r,i,o,a,s){var l,u="function"==typeof t?t.options:t;if(e&&(u.render=e,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),a?(l=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},u._ssrRegister=l):i&&(l=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(t,e){return l.call(e),c(t,e)}}else{var d=u.beforeCreate;u.beforeCreate=d?[].concat(d,l):[l]}return{exports:t,options:u}}var p=h({name:"Spinner",computed:{spinnerView:function(){return f[(this.$attrs.spinner||"").toUpperCase()]||this.spinnerInConfig},spinnerInConfig:function(){return u.slots.spinner&&"string"==typeof u.slots.spinner?{render:function(){return this._v(u.slots.spinner)}}:"object"===d()(u.slots.spinner)?u.slots.spinner:f[u.props.spinner.toUpperCase()]||f.DEFAULT}}},(function(){var t=this.$createElement;return(this._self._c||t)(this.spinnerView,{tag:"component"})}),[],!1,(function(t){var e=n(5);e.__inject__&&e.__inject__(t)}),"46b20d22",null).exports;function m(t){"production"!==u.mode&&console.warn("[Vue-infinite-loading warn]: ".concat(t))}function g(t){console.error("[Vue-infinite-loading error]: ".concat(t))}var v={timers:[],caches:[],throttle:function(t){var e=this;-1===this.caches.indexOf(t)&&(this.caches.push(t),this.timers.push(setTimeout((function(){t(),e.caches.splice(e.caches.indexOf(t),1),e.timers.shift()}),u.system.throttleLimit)))},reset:function(){this.timers.forEach((function(t){clearTimeout(t)})),this.timers.length=0,this.caches=[]}},y={isChecked:!1,timer:null,times:0,track:function(){var t=this;this.times+=1,clearTimeout(this.timer),this.timer=setTimeout((function(){t.isChecked=!0}),u.system.loopCheckTimeout),this.times>u.system.loopCheckMaxCalls&&(g(a.INFINITE_LOOP),this.isChecked=!0)}},b={key:"_infiniteScrollHeight",getScrollElm:function(t){return t===window?document.documentElement:t},save:function(t){var e=this.getScrollElm(t);e[this.key]=e.scrollHeight},restore:function(t){var e=this.getScrollElm(t);"number"==typeof e[this.key]&&(e.scrollTop=e.scrollHeight-e[this.key]+e.scrollTop),this.remove(e)},remove:function(t){void 0!==t[this.key]&&delete t[this.key]}};function _(t){return t.replace(/[A-Z]/g,(function(t){return"-".concat(t.toLowerCase())}))}function w(t){return t.offsetWidth+t.offsetHeight>0}var S=h({name:"InfiniteLoading",data:function(){return{scrollParent:null,scrollHandler:null,isFirstLoad:!0,status:s.READY,slots:u.slots}},components:{Spinner:p},computed:{isShowSpinner:function(){return this.status===s.LOADING},isShowError:function(){return this.status===s.ERROR},isShowNoResults:function(){return this.status===s.COMPLETE&&this.isFirstLoad},isShowNoMore:function(){return this.status===s.COMPLETE&&!this.isFirstLoad},slotStyles:function(){var t=this,e={};return Object.keys(u.slots).forEach((function(n){var r=_(n);(!t.$slots[r]&&!u.slots[n].render||t.$slots[r]&&!t.$slots[r][0].tag)&&(e[n]=l)})),e}},props:{distance:{type:Number,default:u.props.distance},spinner:String,direction:{type:String,default:"bottom"},forceUseInfiniteWrapper:{type:[Boolean,String],default:u.props.forceUseInfiniteWrapper},identifier:{default:+new Date},onInfinite:Function},watch:{identifier:function(){this.stateChanger.reset()}},mounted:function(){var t=this;this.$watch("forceUseInfiniteWrapper",(function(){t.scrollParent=t.getScrollParent()}),{immediate:!0}),this.scrollHandler=function(e){t.status===s.READY&&(e&&e.constructor===Event&&w(t.$el)?v.throttle(t.attemptLoad):t.attemptLoad())},setTimeout((function(){t.scrollHandler(),t.scrollParent.addEventListener("scroll",t.scrollHandler,i)}),1),this.$on("$InfiniteLoading:loaded",(function(e){t.isFirstLoad=!1,"top"===t.direction&&t.$nextTick((function(){b.restore(t.scrollParent)})),t.status===s.LOADING&&t.$nextTick(t.attemptLoad.bind(null,!0)),e&&e.target===t||m(o.STATE_CHANGER)})),this.$on("$InfiniteLoading:complete",(function(e){t.status=s.COMPLETE,t.$nextTick((function(){t.$forceUpdate()})),t.scrollParent.removeEventListener("scroll",t.scrollHandler,i),e&&e.target===t||m(o.STATE_CHANGER)})),this.$on("$InfiniteLoading:reset",(function(e){t.status=s.READY,t.isFirstLoad=!0,b.remove(t.scrollParent),t.scrollParent.addEventListener("scroll",t.scrollHandler,i),setTimeout((function(){v.reset(),t.scrollHandler()}),1),e&&e.target===t||m(o.IDENTIFIER)})),this.stateChanger={loaded:function(){t.$emit("$InfiniteLoading:loaded",{target:t})},complete:function(){t.$emit("$InfiniteLoading:complete",{target:t})},reset:function(){t.$emit("$InfiniteLoading:reset",{target:t})},error:function(){t.status=s.ERROR,v.reset()}},this.onInfinite&&m(o.INFINITE_EVENT)},deactivated:function(){this.status===s.LOADING&&(this.status=s.READY),this.scrollParent.removeEventListener("scroll",this.scrollHandler,i)},activated:function(){this.scrollParent.addEventListener("scroll",this.scrollHandler,i)},methods:{attemptLoad:function(t){var e=this;this.status!==s.COMPLETE&&w(this.$el)&&this.getCurrentDistance()<=this.distance?(this.status=s.LOADING,"top"===this.direction&&this.$nextTick((function(){b.save(e.scrollParent)})),"function"==typeof this.onInfinite?this.onInfinite.call(null,this.stateChanger):this.$emit("infinite",this.stateChanger),!t||this.forceUseInfiniteWrapper||y.isChecked||y.track()):this.status===s.LOADING&&(this.status=s.READY)},getCurrentDistance:function(){return"top"===this.direction?"number"==typeof this.scrollParent.scrollTop?this.scrollParent.scrollTop:this.scrollParent.pageYOffset:this.$el.getBoundingClientRect().top-(this.scrollParent===window?window.innerHeight:this.scrollParent.getBoundingClientRect().bottom)},getScrollParent:function(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.$el;return"string"==typeof this.forceUseInfiniteWrapper&&(t=document.querySelector(this.forceUseInfiniteWrapper)),t||("BODY"===e.tagName?t=window:(!this.forceUseInfiniteWrapper&&["scroll","auto"].indexOf(getComputedStyle(e).overflowY)>-1||e.hasAttribute("infinite-wrapper")||e.hasAttribute("data-infinite-wrapper"))&&(t=e)),t||this.getScrollParent(e.parentNode)}},destroyed:function(){!this.status!==s.COMPLETE&&(v.reset(),b.remove(this.scrollParent),this.scrollParent.removeEventListener("scroll",this.scrollHandler,i))}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"infinite-loading-container"},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.isShowSpinner,expression:"isShowSpinner"}],staticClass:"infinite-status-prompt",style:t.slotStyles.spinner},[t._t("spinner",[n("spinner",{attrs:{spinner:t.spinner}})])],2),t._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:t.isShowNoResults,expression:"isShowNoResults"}],staticClass:"infinite-status-prompt",style:t.slotStyles.noResults},[t._t("no-results",[t.slots.noResults.render?n(t.slots.noResults,{tag:"component"}):[t._v(t._s(t.slots.noResults))]])],2),t._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:t.isShowNoMore,expression:"isShowNoMore"}],staticClass:"infinite-status-prompt",style:t.slotStyles.noMore},[t._t("no-more",[t.slots.noMore.render?n(t.slots.noMore,{tag:"component"}):[t._v(t._s(t.slots.noMore))]])],2),t._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:t.isShowError,expression:"isShowError"}],staticClass:"infinite-status-prompt",style:t.slotStyles.error},[t._t("error",[t.slots.error.render?n(t.slots.error,{tag:"component",attrs:{trigger:t.attemptLoad}}):[t._v("\n "+t._s(t.slots.error)+"\n "),n("br"),t._v(" "),n("button",{staticClass:"btn-try-infinite",domProps:{textContent:t._s(t.slots.errorBtnText)},on:{click:t.attemptLoad}})]],{trigger:t.attemptLoad})],2)])}),[],!1,(function(t){var e=n(7);e.__inject__&&e.__inject__(t)}),"644ea9c9",null).exports;function x(t){u.mode=t.config.productionTip?"development":"production"}Object.defineProperty(S,"install",{configurable:!1,enumerable:!1,value:function(t,e){Object.assign(u.props,e&&e.props),Object.assign(u.slots,e&&e.slots),Object.assign(u.system,e&&e.system),t.component("infinite-loading",S),x(t)}}),"undefined"!=typeof window&&window.Vue&&(window.Vue.component("infinite-loading",S),x(window.Vue)),e.default=S}])}({get exports(){return li},set exports(t){li=t}});var ui=l(li),ci=[],di=[];function fi(t,e,n,r,i,o,a,s){var l,u="function"==typeof t?t.options:t;if(e&&(u.render=e,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),a?(l=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},u._ssrRegister=l):i&&(l=s?function(){i.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:i),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(t,e){return l.call(e),c(t,e)}}else{var d=u.beforeCreate;u.beforeCreate=d?[].concat(d,l):[l]}return{exports:t,options:u}}!function(t,e){if(t&&"undefined"!=typeof document){var n,r=!0===e.prepend?"prepend":"append",i=!0===e.singleTag,o="string"==typeof e.container?document.querySelector(e.container):document.getElementsByTagName("head")[0];if(i){var a=ci.indexOf(o);-1===a&&(a=ci.push(o)-1,di[a]={}),n=di[a]&&di[a][r]?di[a][r]:di[a][r]=s()}else n=s();65279===t.charCodeAt(0)&&(t=t.substring(1)),n.styleSheet?n.styleSheet.cssText+=t:n.appendChild(document.createTextNode(t))}function s(){var t=document.createElement("style");if(t.setAttribute("type","text/css"),e.attributes)for(var n=Object.keys(e.attributes),i=0;i<n.length;i++)t.setAttribute(n[i],e.attributes[n[i]]);var a="prepend"===r?"afterbegin":"beforeend";return o.insertAdjacentElement(a,t),t}}("tr td[data-v-6bec1b4d]:last-child,\ntr td[data-v-6bec1b4d]:first-child {\n width: 1%;\n white-space: nowrap; }\n\n.crud-pagination[data-v-6bec1b4d] {\n display: flex;\n justify-content: center; }\n\n.crud-header[data-v-6bec1b4d] {\n display: flex;\n justify-content: space-between;\n max-height: 3rem; }\n .crud-header[data-v-6bec1b4d] .crud-title[data-v-6bec1b4d] {\n margin: 0; }\n .crud-header[data-v-6bec1b4d] .crud-search[data-v-6bec1b4d] {\n max-width: 15rem; }\n .crud-header[data-v-6bec1b4d] .crud-search[data-v-6bec1b4d] .btn[data-v-6bec1b4d] {\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n border-top-right-radius: 0.375rem;\n border-bottom-right-radius: 0.375rem; }\n .crud-header[data-v-6bec1b4d] .crud-search[data-v-6bec1b4d] .btn[data-v-6bec1b4d].open[data-v-6bec1b4d] {\n border-top-right-radius: 0;\n border-bottom-right-radius: 0; }\n .crud-header[data-v-6bec1b4d] .table-options[data-v-6bec1b4d] {\n margin-bottom: 1rem;\n display: flex;\n align-items: center;\n justify-content: flex-end; }\n\n.custom-control[data-v-6bec1b4d] {\n position: relative;\n top: -15px; }\n\n@media (min-width: 992px) {\n .table[data-v-6bec1b4d] {\n table-layout: auto; }\n .table[data-v-6bec1b4d] tbody[data-v-6bec1b4d] td[data-v-6bec1b4d] {\n overflow: scroll;\n -ms-overflow-style: none;\n /* IE and Edge */\n scrollbar-width: none;\n /* Firefox */ }\n .table[data-v-6bec1b4d] tbody[data-v-6bec1b4d] td[data-v-6bec1b4d]::-webkit-scrollbar {\n display: none; } }\n",{});var hi={name:"VueLaravelCrud",components:{draggable:Pe,InfiniteLoading:ui},data:function(){return{moment:si,loading:!1,item:{id:null},items:[],selectedItems:[],pagination:{current_page:1,last_page:1,next_page_url:"",prev_page_url:"",per_page:21,total:0},displaySearch:!1,itemDefault:null,filters:[],filtersVisible:!1,filterSidebarOpen:!1,internalFilters:[],forceRecomputeCounter:0,displayModes:{MODE_TABLE:1,MODE_CARDS:2,MODE_CUSTOM:3}}},watch:{search:function(t){t&&""!=t?(this.filters=[],this.filters.push(["search","LIKE",t]),this.fetchItems()):(this.filters=[],this.fetchItems())}},props:{modelName:String,title:String,model:{type:Object|Function,default:function(){return{id:0}}},models:{type:Array,default:function(){return[]}},ajax:{type:Boolean,default:!0},useVuexORM:{type:Boolean,default:!1},columns:{type:Array,default:function(){return[{label:"Id",prop:"id",type:"number"}]}},filter:{type:Array,default:function(){return[]}},enableFilters:{type:Boolean,default:!1},infiniteScroll:{type:Boolean,default:!1},sortable:{type:Boolean,default:!1},orderable:{type:Boolean,default:!1},validate:{type:Boolean,default:!1},orderProp:{type:String,default:"order"},createMultipart:{type:Boolean,default:!1},apiUrl:{type:String,default:"/api"},search:{type:String,default:""},hideModalAfterSave:{type:Boolean,default:!0},refreshAfterSave:{type:Boolean,default:!0},showPaginator:{type:Boolean,default:!0},showCreateBtn:{type:Boolean,default:!0},showSearch:{type:Boolean,default:!0},showHeader:{type:Boolean,default:!0},showTitle:{type:Boolean,default:!0},limit:{type:Number,default:20},displayMode:{type:Number,default:1},displayModeToggler:{type:Boolean,default:!1},colXs:{default:12,type:Number},colSm:{default:12,type:Number},colMd:{default:6,type:Number},colLg:{default:4,type:Number},colXl:{default:3,type:Number},selectHover:{type:Boolean,default:!1},selectClick:{type:Boolean,default:!1},cardClass:{type:String,default:""},listContainerClass:{type:String,default:""},listItemClass:{type:String,default:""},cardHideFooter:{type:Boolean,default:!1},messageRemoveConfirm:{type:String,default:"¿Esta seguro de borrar este elemento?"},messageRemove:{type:String,default:"BORRAR"},messageNew:{type:String,default:"Nuevo"},messageEmptyResults:{type:String,default:"No se han encontrado resultados"},messageNoMore:{type:String,default:"No hay mas elementos para mostrar."},messageLoading:{type:String,default:"Cargando..."},messageSave:{type:String,default:"Guardar"},messageDefaultValidationError:{type:String,default:"Por favor controle el formulario, contiene errores."},searchPlaceholder:{type:String,default:"Buscar..."},tableContainerClass:{type:String,default:""},tableClass:{type:String,default:""},grouped:{type:Boolean,default:!1},groupedAttribute:{type:String,default:"name"},groupedLabelPre:{type:String,default:""},groupedLabelAfter:{type:String,default:""},draggableGroup:{type:String,default:"people"},draggableOptions:{type:Object,default:function(){return{clone:!1}}}},mounted:function(){this.useVuexORM?this.item=new this.model:(this.item=this.model,this.itemDefault=JSON.parse(JSON.stringify(this.item))),console.debug("crud mounted columns",this.columns),this.internalFilters=[],this.setupFilters(),this.ajax?this.fetchItems():(this.items=this.models,this.pagination.total=this.items.length)},computed:{itemValue:function(){return function(t,e){return t.prop&&t.prop.split(".").length>1&&t.prop.split(".")[1]?e[t.prop.split(".")[0]]&&e[t.prop.split(".")[0]][t.prop.split(".")[1]]?e[t.prop.split(".")[0]][t.prop.split(".")[1]]:"":e[t.prop]}},itemsList:function(){return this.ajax?this.items:this.items.slice(this.paginationIndexStart,this.paginationIndexEnd)},paginationIndexStart:function(){return(this.pagination.current_page-1)*this.pagination.per_page},paginationIndexEnd:function(){return this.paginationIndexStart+this.pagination.per_page},finalFilters:function(){return[].concat(o(this.filters),o(this.filter),o(this.internalFilter))},internalFilter:function(){var t=[];return this.forceRecomputeCounter,this.internalFilters.forEach((function(e){e.value&&t.push([e.column,e.op,e.value])})),t},internalFilterByProp:function(){var t=this;return function(e){return t.internalFilters.find((function(t){return t.column==e}))}}},methods:{infiniteHandler:function(t){if(this.pagination.current_page*this.pagination.per_page<this.pagination.total){var e=this.pagination.current_page+1;this.fetchItems(e,!0).then((function(){t.loaded()}))}else t.complete()},onDraggableAdded:function(t){console.log("Se agregó un nuevo elemento a la lista",t),this.$emit("draggableAdded",t)},onDraggableChange:function(t){console.log("Lista change",t),this.$emit("draggableChange",t)},setupFilters:function(){var t=this;this.columns.forEach((function(e){t.isColumnHasFilter(e)&&("date"==e.type?(t.internalFilters.push({column:e.prop+"_from",op:e.filterOp?e.filterOp:"=",value:null}),t.internalFilters.push({column:e.prop+"_to",op:e.filterOp?e.filterOp:"=",value:null})):t.internalFilters.push({column:e.prop,op:e.filterOp?e.filterOp:"=",value:null})),t.sortable&&t.internalFilters.push({column:e.prop+"_sort",op:e.filterOp?e.filterOp:"=",value:null})}))},toggleSortFilter:function(t){var e=this.internalFilterByProp(t.prop+"_sort").value;e?"ASC"==e?this.internalFilterByProp(t.prop+"_sort").value="DESC":"DESC"==e&&(this.internalFilterByProp(t.prop+"_sort").value=null):this.internalFilterByProp(t.prop+"_sort").value="ASC"},toggleFilters:function(){this.filtersVisible=!this.filtersVisible,this.displayMode==this.displayModes.MODE_CARDS?this.filterSidebarOpen=this.filtersVisible:this.filterSidebarOpen=!1},resetFilters:function(){var t=this;this.internalFilters=[],this.setupFilters(),this.forceRecomputeCounter++,setTimeout((function(){t.refresh()}),1)},toggleDisplayMode:function(){this.displayMode==this.displayModes.MODE_TABLE?this.displayMode=this.displayModes.MODE_CARDS:this.displayMode==this.displayModes.MODE_CARDS&&(this.displayMode=this.displayModes.MODE_TABLE)},onRowHover:function(t,e){this.selectHover&&(this.item=this.items[e],this.selectItem(),this.onSelect())},onRowClick:function(t,e){this.selectClick&&(this.item=this.items[e],this.selectItem(),this.onSelect())},onSort:function(){var t=this,e=this.pagination.current_page*this.pagination.per_page-this.pagination.per_page+1;this.items.forEach((function(n,r){n[t.orderProp]=e,e++})),this.$emit("sort",{})},onCheckSelect:function(t,e){console.debug("ON CHECK SELECT",t,e),this.item=e,this.selectItem(),this.onSelect()},toggleAll:function(){this.selectedItems.length>0?this.selectedItems=[]:this.selectedItems=this.items},selectItem:function(){var t=this,e=this.selectedItems.find((function(e){return e.id==t.item.id}));e?(this.item.selected=!1,this.selectedItems=this.selectedItems.filter((function(e){return e.id!=t.item.id}))):(this.item.selected=!0,this.selectedItems.push(this.item))},externalUpdate:function(t){var e=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"id";t.forEach((function(t){var i=e.items.find((function(e){return e[r]===t[r]}));i?Object.assign(i,t):n&&e.items.push(t)}))},getSelectedItems:function(){return this.selectedItems},onSelect:function(){this.$emit("select",this.item)},showItem:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(null==e){var n=this.items.find((function(e){return e.id==t}));this.item=n}else this.item=this.items[e];this.onSelect(),this.$bvModal.show("modal-show-item-"+this.modelName)},createItem:function(){this.useVuexORM?this.item=new this.model:this.item=JSON.parse(JSON.stringify(this.itemDefault)),this.onSelect(),this.$bvModal.show("modal-form-item-"+this.modelName)},updateItem:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(null==e){var n=this.items.find((function(e){return e.id==t}));this.item=n}else this.item=this.items[e];this.onSelect(),this.$bvModal.show("modal-form-item-"+this.modelName)},refresh:function(){this.$emit("refresh",{}),this.ajax&&this.fetchItems(this.pagination.current_page)},isColumnHasFilter:function(t){return t&&!t.hideFilter&&"actions"!=t.type},setFilter:function(t,e){var n=this;this.filter.find((function(e){return e.column==t})).value=e,this.forceRecomputeCounter++,setTimeout((function(){n.refresh()}),1)},fetchItemsVuex:function(){var e=arguments,n=this;return r(t().mark((function r(){var i,o;return t().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=e.length>0&&void 0!==e[0]?e[0]:1,n.loading=!0,n.$emit("beforeFetch",{}),t.next=6,n.model.api().get("",{params:{page:i,limit:n.pagination.perPage,filters:JSON.stringify(n.finalFilters)}});case 6:o=t.sent,n.items=o.entities[n.model.entity],console.debug("fetch page vuex ",i,n.items),n.loading=!1;case 10:case"end":return t.stop()}}),r)})))()},fetchItems:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(this.ajax)return this.$emit("beforeFetch",{}),this.useVuexORM?this.fetchItemsVuex(e,n):(this.loading=!0,ii.get(this.apiUrl+"/"+this.modelName,{params:{page:e,limit:this.limit,filters:JSON.stringify(this.finalFilters)}}).then((function(e){t.makePagination(e.data);var r=e.data.data;if(t.grouped){var i=[],o=null,a=t.groupedAttribute,s=t.groupedLabelPre,l=t.groupedLabelAfter;r.forEach((function(t,e){Array.isArray(t)?(i.push({label:s+e+l,group:!0}),t.forEach((function(t){i.push(t)}))):(o!=t[a]&&(o=t[a],i.push({label:s+o+l,group:!0})),i.push(t))})),t.items=n?t.items.concat(i):i}else t.items=n?t.items.concat(r):r;t.loading=!1,t.$emit("afterFetch",{})})).catch((function(e){t.toastError(e),t.loading=!1})))},removeItem:function(t,e){var n=this;this.$bvModal.msgBoxConfirm(this.messageRemoveConfirm,{size:"sm",buttonSize:"sm",okVariant:"danger",okTitle:this.messageRemove,cancelTitle:"NO",centered:!0}).then((function(r){r&&n.deleteItem(t,e)})).catch((function(t){n.toastError(t),n.loading=!1}))},deleteItem:function(t,e){var n=this;if(this.useVuexORM)return this.deleteItemVuex(t,e);this.loading=!0,ii.delete(this.apiUrl+"/"+this.modelName+"/"+t).then((function(t){n.items.splice(e,1),n.toastSuccess("Elemento eliminado."),n.$emit("itemDeleted",{}),n.loading=!1})).catch((function(t){n.toastError(t),n.loading=!1}))},deleteItemVuex:function(e,n){var i=this;return r(t().mark((function n(){var r;return t().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,i.model.api().delete("/"+e,{delete:1});case 2:if(r=t.sent,console.debug("delete item vuex",r),r.response.status,!r.response.data.error){t.next=8;break}return i.toastError(r.response.data.error),t.abrupt("return");case 8:i.toastSuccess("Elemento eliminado.");case 9:case"end":return t.stop()}}),n)})))()},saveSort:function(){var t=this;if(this.orderable){this.loading=!0;var e=[];this.items.forEach((function(n,r){e.push({id:n.id,order:n[t.orderProp]})})),ii.post(this.apiUrl+"/"+this.modelName+"/sort",{order:e}).then((function(e){e.data,t.toastSuccess("Orden Actualizado"),t.refreshAfterSave&&t.refresh(),t.loading=!1})).catch((function(e){t.toastError(e),t.loading=!1}))}},getArrayValue:function(t,n){return Array.isArray(t)?t.length>0?"object"===e(t[0])&&n?t.map((function(t){return t[n]})).join(","):t.join(","):"":"N/A"},getStateValue:function(t,e){if(!e)return console.debug("State Column Not hast options returning value",t,e),t;var n=e.filter((function(e){return Array.isArray(t)?t.includes(e.id):e.id==t}));return(n=n.map((function(t){return t.text?t.text:t.label?t.label:""}))).join(", ")},saveItemVuex:function(){var e=this;return r(t().mark((function n(){var r,i;return t().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(console.debug("save item 1",e.item),r=e.item.$toJson(),console.debug("save item 2",e.item,r),!e.item.id){t.next=10;break}return t.next=7,e.model.api().put("/"+e.item.id,r);case 7:i=t.sent,t.next=13;break;case 10:return t.next=12,e.model.api().post("",r);case 12:i=t.sent;case 13:if(i.response.status,!i.response.data.error){t.next=17;break}return e.toastError(i.response.data.error),t.abrupt("return");case 17:i.save(),e.refreshAfterSave&&e.refresh(),e.toastSuccess("Elemento Modificado");case 20:case"end":return t.stop()}}),n)})))()},saveItem:function(){var e=arguments,n=this;return r(t().mark((function r(){var i,o;return t().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i=e.length>0&&void 0!==e[0]?e[0]:null,n.loading=!0,!n.validate){t.next=10;break}!0,n.messageDefaultValidationError,t.next=8;break;case 8:t.next=11;break;case 10:i&&i.preventDefault();case 11:if(!n.useVuexORM){t.next=13;break}return t.abrupt("return",n.saveItemVuex());case 13:n.item.id?ii.put(n.apiUrl+"/"+n.modelName+"/"+n.item.id,n.item).then((function(t){n.hideModalAfterSave&&n.$bvModal.hide("modal-form-item-"+n.modelName);var e=t.data,r=n.items.findIndex((function(t){return t.id==n.item.id}));n.items[r]=e,n.item=e,n.loading=!1,n.refreshAfterSave&&n.refresh(),n.toastSuccess("Elemento Modificado"),n.$emit("itemSaved",{item:n.item}),n.$emit("itemUpdated",{item:n.item})})).catch((function(t){n.toastError(t),n.loading=!1})):n.createMultipart?(o=new FormData,Object.keys(n.item).forEach((function(t){if(n.item[t][0]&&n.item[t][0].name)for(var e=n.item[t],r=0;r<e.length;r++)o.append(t+"[]",n.item[t][r],n.item[t][r].name);else o.append(t,n.item[t])})),ii.post(n.apiUrl+"/"+n.modelName,o).then((function(t){if(n.loading=!1,n.hideModalAfterSave&&n.$bvModal.hide("modal-form-item-"+n.modelName),t.data.success)t.data.message&&n.toastSuccess(t.data.message);else{var e=t.data;n.items.push(e),n.item=e,n.refreshAfterSave&&n.refresh(),n.toastSuccess("Elemento Creado"),n.$emit("itemSaved",{item:n.item}),n.$emit("itemCreated",{item:n.item})}})).catch((function(t){n.toastError(t),n.loading=!1}))):ii.post(n.apiUrl+"/"+n.modelName,n.item).then((function(t){if(n.loading=!1,n.hideModalAfterSave&&n.$bvModal.hide("modal-form-item-"+n.modelName),t.data.success)t.data.message&&n.toastSuccess(t.data.message);else{var e=t.data;n.items.push(e),n.item=e,n.refreshAfterSave&&n.refresh(),n.toastSuccess("Elemento Creado"),n.$emit("itemSaved",{item:n.item}),n.$emit("itemCreated",{item:n.item})}})).catch((function(t){n.toastError(t),n.loading=!1})),i&&i.preventDefault();case 15:case"end":return t.stop()}}),r)})))()},toastError:function(t){var n="Ha ocurrido un error";if("string"==typeof t)n=t;else if(t.response){if(401===t.response.status?n="No estás autorizado para realizar esta acción":404===t.response.status?n="El recurso solicitado no se encontró":t.response.status>=400&&t.response.status<500?n="Hubo un problema con la solicitud realizada":t.response.status>=500&&(n="El servidor no pudo procesar la solicitud"),t.response.data)if("object"===e(t.response.data))if(t.response.data.errors){var r=t.response.data.errors;this.responseErrors=r,n=Object.values(r)[0][0]}else t.response.data.message&&(n=t.response.data.message);else"string"==typeof t.response.data&&(n=t.response.data)}else t.request?n="No se pudo conectar con el servidor. Verifique su conexión a Internet.":t.message&&(n=t.message);this.$bvToast.toast(n,{title:"Error",toaster:"b-toaster-bottom-right",variant:"danger",solid:!0,appendToast:!0})},toastSuccess:function(t){this.$bvToast.toast(t,{title:"Listo",toaster:"b-toaster-bottom-right",variant:"success",solid:!0,appendToast:!0})},onChangeFilter:function(t){var e=this;this.forceRecomputeCounter++,console.debug("Filters debug ",this.finalFilters,this.internalFilter,this.internalFilters,this.filter,this.filters),setTimeout((function(){e.refresh()}),1)},onPaginationChange:function(t){this.fetchItems(t)},makePagination:function(t){var e={current_page:t.current_page,last_page:t.last_page,next_page_url:t.next_page_url,prev_page_url:t.prev_page_url,total:t.total,per_page:t.per_page};this.pagination=e}}},pi=function(){var t=this,e=t._self._c;return e("div",{staticClass:"crud"},[t.showHeader?e("div",{staticClass:"crud-header"},[t.showTitle?e("h4",{staticClass:"crud-title"},[t._v(t._s(t.title))]):t._e(),e("b-sidebar",{attrs:{title:"Filtrar",right:"",shadow:""},model:{value:t.filterSidebarOpen,callback:function(e){t.filterSidebarOpen=e},expression:"filterSidebarOpen"}},[t._t("sidebarFilters",(function(){return[e("div",{staticClass:"px-3 py-2"},[t._l(t.columns,(function(n,r){return e("div",{key:r},[t.isColumnHasFilter(n)?e("div",[t.internalFilterByProp(n.prop)?t._t("sidebar-filter-"+n.prop,(function(){return["boolean"==n.type?e("div",{staticClass:"form-group"},[e("label",[t._v(t._s(n.label))]),e("select",{directives:[{name:"model",rawName:"v-model",value:t.internalFilterByProp(n.prop).value,expression:"internalFilterByProp(column.prop).value"}],staticClass:"form-control",on:{change:[function(e){var r=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.$set(t.internalFilterByProp(n.prop),"value",e.target.multiple?r:r[0])},function(e){return t.onChangeFilter(e)}]}},[e("option",{attrs:{value:""}}),e("option",{attrs:{value:"1"}},[t._v("Sí")]),e("option",{attrs:{value:"0"}},[t._v("No")])])]):"date"==n.type?e("div",{staticClass:"form-group"},[e("div",{staticClass:"row"},[e("div",{staticClass:"col-6"},[e("b-form-datepicker",{attrs:{"today-button":"","reset-button":"","close-button":"",locale:"es"},model:{value:t.internalFilterByProp(n.prop+"_from").value,callback:function(e){t.$set(t.internalFilterByProp(n.prop+"_from"),"value",e)},expression:"internalFilterByProp(column.prop + '_from').value\n "}})],1),e("div",{staticClass:"col-6"},[e("b-form-datepicker",{attrs:{"today-button":"","reset-button":"","close-button":"",locale:"es"},model:{value:t.internalFilterByProp(n.prop+"_to").value,callback:function(e){t.$set(t.internalFilterByProp(n.prop+"_to"),"value",e)},expression:"internalFilterByProp(column.prop + '_to').value\n "}})],1)])]):"state"==n.type?e("div",{staticClass:"form-group"},[e("label",[t._v(t._s(n.label))]),e("div",{staticClass:"d-none"},[t._v(t._s(n.options))]),e("select",{directives:[{name:"model",rawName:"v-model",value:t.internalFilterByProp(n.prop).value,expression:"internalFilterByProp(column.prop).value"}],staticClass:"form-control",on:{change:[function(e){var r=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.$set(t.internalFilterByProp(n.prop),"value",e.target.multiple?r:r[0])},function(e){return t.onChangeFilter(e)}]}},[e("option",{attrs:{value:""}}),t._l(n.options,(function(n){return e("option",{key:n.id?n.id:n.value,domProps:{value:n.id?n.id:n.value}},[t._v(" "+t._s(n.text?n.text:n.label?n.label:"")+" ")])}))],2)]):"array"==n.type?e("div",{staticClass:"form-group"},[e("label",[t._v(t._s(n.label))]),e("div",{staticClass:"d-none"},[t._v(t._s(n.options))]),e("select",{directives:[{name:"model",rawName:"v-model",value:t.internalFilterByProp(n.prop).value,expression:"internalFilterByProp(column.prop).value"}],staticClass:"form-control",on:{change:[function(e){var r=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.$set(t.internalFilterByProp(n.prop),"value",e.target.multiple?r:r[0])},function(e){return t.onChangeFilter(e)}]}},[e("option",{attrs:{value:""}}),n.options?t._l(n.options,(function(n){return e("option",{key:n.id?n.id:n.value,domProps:{value:n.id?n.id:n.value}},[t._v(" "+t._s(n.text?n.text:n.label?n.label:"")+" ")])})):t._e()],2)]):e("div",{staticClass:"form-group"},[e("label",[t._v(t._s(n.label))]),e("input",{directives:[{name:"model",rawName:"v-model.lazy",value:t.internalFilterByProp(n.prop).value,expression:"internalFilterByProp(column.prop).value",modifiers:{lazy:!0}}],staticClass:"form-control",domProps:{value:t.internalFilterByProp(n.prop).value},on:{change:[function(e){t.$set(t.internalFilterByProp(n.prop),"value",e.target.value)},function(e){return t.onChangeFilter(e)}]}})])]}),{column:n,filter:t.filter,internalFilterByProp:t.internalFilterByProp}):t._e()],2):t._e()])})),e("div",{staticClass:"mt-3 d-flex justify-content-center"},[e("button",{staticClass:"btn btn-light",on:{click:function(e){return t.resetFilters()}}},[t._v(" Reset ")]),e("button",{staticClass:"btn btn-info",on:{click:function(e){return t.onChangeFilter(e)}}},[t._v(" Filtrar ")])])],2)]}),{createItem:t.createItem,toggleDisplayMode:t.toggleDisplayMode,loading:t.loading,isColumnHasFilter:t.isColumnHasFilter,setFilter:t.setFilter})],2),e("div",{staticClass:"table-options"},[e("b-button-group",{staticClass:"mr-1"},[t._t("tableActions",(function(){return[t._t("tableActionsPrepend",null,{loading:t.loading}),t.showCreateBtn?e("b-button",{attrs:{variant:"success",disabled:t.loading},on:{click:function(e){return t.createItem()}}},[e("b-icon-plus"),t._v(t._s(t.messageNew)+" ")],1):t._e(),t.enableFilters?e("b-button",{on:{click:function(e){return t.toggleFilters()}}},[t._v("Filtros")]):t._e(),e("b-button",{on:{click:function(e){return t.refresh()}}},[e("b-icon-arrow-clockwise")],1),t.displayModeToggler?e("b-button",{attrs:{variant:"info",disabled:t.loading},on:{click:function(e){return t.toggleDisplayMode()}}},[t.displayMode==t.displayModes.MODE_TABLE?e("b-icon-card-list"):t._e(),t.displayMode==t.displayModes.MODE_CARDS?e("b-icon-table"):t._e()],1):t._e(),t.showSearch?e("div",{staticClass:"crud-search m-0"},[e("b-input-group",[e("b-input-group-prepend",[e("b-button",{class:{open:t.displaySearch},attrs:{variant:"info"},on:{click:function(e){t.displaySearch=!t.displaySearch}}},[e("b-icon-search")],1)],1),t.displaySearch?e("b-form-input",{staticClass:"pl-2",attrs:{type:"search",required:"",placeholder:t.searchPlaceholder,debounce:"500"},model:{value:t.search,callback:function(e){t.search=e},expression:"search"}}):t._e()],1),t._t("tableActionsAppend",null,{loading:t.loading})],2):t._e()]}),{createItem:t.createItem,toggleDisplayMode:t.toggleDisplayMode,loading:t.loading})],2)],1)],1):t._e(),t.displayMode==t.displayModes.MODE_TABLE?e("div",{class:["table-responsive",t.tableContainerClass]},[e("table",{class:["table table-hover table-striped w-100",t.tableClass]},[e("thead",{staticClass:"thead-light"},[e("tr",[t._t("rowHead",(function(){return t._l(t.columns,(function(n,r){return e("th",{key:r,style:{width:n.width?n.width:"inherit"},attrs:{scope:"col"}},[t.enableFilters&&t.filtersVisible&&t.isColumnHasFilter(n)&&t.internalFilterByProp(n.prop)?t._t("filter-"+n.prop,(function(){return[e("div",{staticClass:"form-group"},["boolean"==n.type?e("select",{directives:[{name:"model",rawName:"v-model",value:t.internalFilterByProp(n.prop).value,expression:"internalFilterByProp(column.prop).value"}],staticClass:"form-control form-control-md p-2",on:{change:[function(e){var r=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.$set(t.internalFilterByProp(n.prop),"value",e.target.multiple?r:r[0])},function(e){return t.onChangeFilter(e)}]}},[e("option",{attrs:{value:""}},[t._v(t._s(n.label))]),e("option",{attrs:{value:"1"}},[t._v("Sí")]),e("option",{attrs:{value:"0"}},[t._v("No")])]):"date"==n.type?e("div",{staticClass:"row"},[e("div",{staticClass:"col-6"},[e("b-form-datepicker",{staticClass:"form-control-md p-2",attrs:{"today-button":"","reset-button":"","close-button":"",locale:"es"},model:{value:t.internalFilterByProp(n.prop+"_from").value,callback:function(e){t.$set(t.internalFilterByProp(n.prop+"_from"),"value",e)},expression:"internalFilterByProp(column.prop + '_from').value\n "}})],1),e("div",{staticClass:"col-6"},[e("b-form-datepicker",{staticClass:"form-control-md p-2",attrs:{"today-button":"","reset-button":"","close-button":"",locale:"es"},model:{value:t.internalFilterByProp(n.prop+"_to").value,callback:function(e){t.$set(t.internalFilterByProp(n.prop+"_to"),"value",e)},expression:"internalFilterByProp(column.prop + '_to').value\n "}})],1)]):"state"==n.type?e("select",{directives:[{name:"model",rawName:"v-model",value:t.internalFilterByProp(n.prop).value,expression:"internalFilterByProp(column.prop).value"}],staticClass:"form-control form-control-md p-2",on:{change:[function(e){var r=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.$set(t.internalFilterByProp(n.prop),"value",e.target.multiple?r:r[0])},function(e){return t.onChangeFilter(e)}]}},[e("option",{attrs:{value:""}},[t._v(t._s(n.label))]),t._l(n.options,(function(n,r){return e("option",{key:r,domProps:{value:n.id}},[t._v(" "+t._s(n.text?n.text:n.label?n.label:"")+" ")])}))],2):"array"==n.type?e("select",{directives:[{name:"model",rawName:"v-model",value:t.internalFilterByProp(n.prop).value,expression:"internalFilterByProp(column.prop).value"}],staticClass:"form-control form-control-md p-2",on:{change:[function(e){var r=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.$set(t.internalFilterByProp(n.prop),"value",e.target.multiple?r:r[0])},function(e){return t.onChangeFilter(e)}]}},[e("option",{attrs:{value:""}},[t._v(t._s(n.label))]),t._l(n.options,(function(n,r){return e("option",{key:r,domProps:{value:n.id}},[t._v(" "+t._s(n.text?n.text:n.label?n.label:"")+" ")])}))],2):"checkbox"==n.type?e("b-form-checkbox",{attrs:{name:"select-all"},on:{change:function(e){return t.toggleAll()}}}):e("input",{directives:[{name:"model",rawName:"v-model",value:t.internalFilterByProp(n.prop).value,expression:"internalFilterByProp(column.prop).value"}],staticClass:"form-control form-control-md p-2",attrs:{placeholder:n.label},domProps:{value:t.internalFilterByProp(n.prop).value},on:{change:function(e){return t.onChangeFilter(e)},input:function(e){e.target.composing||t.$set(t.internalFilterByProp(n.prop),"value",e.target.value)}}})],1)]}),{column:n,filter:t.filter,internalFilterByProp:t.internalFilterByProp}):e("span",[t._v(t._s(n.label))]),t.sortable&&t.internalFilterByProp(n.prop+"_sort")?e("span",{staticClass:"sort-filter",on:{click:function(e){return t.toggleSortFilter(n)}}},[t.internalFilterByProp(n.prop+"_sort").value?t._e():e("b-icon-sort-down"),"ASC"==t.internalFilterByProp(n.prop+"_sort").value?e("b-icon-sort-up"):t._e(),"DESC"==t.internalFilterByProp(n.prop+"_sort").value?e("b-icon-sort-down"):t._e()],1):t._e()],2)}))}))],2)]),e("draggable",{attrs:{group:t.draggableGroup,tag:"tbody",draggable:t.orderable?".item":".none",options:t.draggableOptions},on:{start:function(e){t.drag=!0},end:function(e){t.drag=!1},sort:function(e){return t.onSort()},add:function(e){return t.onDraggableAdded(e)},change:function(e){return t.onDraggableChange(e)}},model:{value:t.items,callback:function(e){t.items=e},expression:"items"}},t._l(t.itemsList,(function(n,r){return e("tr",{key:r,staticClass:"item",on:{mouseover:function(e){return t.onRowHover(n,r)},click:function(e){return t.onRowClick(n,r)}}},[n.group?e("th",{attrs:{colspan:t.columns.length}},[e("span",[t._v(t._s(n.label))])]):t._t("row",(function(){return t._l(t.columns,(function(i,o){return e("td",{key:o,attrs:{scope:"id"==i.prop?"row":""}},[t._t("cell-"+i.prop,(function(){return["boolean"==i.type?e("span",["true"==t.itemValue(i,n)||1==t.itemValue(i,n)||"1"==t.itemValue(i,n)?e("b-badge",{attrs:{variant:"success"}},[e("b-icon-check-circle")],1):t._e(),t.itemValue(i,n)&&"0"!=t.itemValue(i,n)&&"false"!=t.itemValue(i,n)?t._e():e("b-badge",{attrs:{variant:"danger"}},[e("b-icon-x-circle")],1)],1):"date"==i.type?e("span",[t._v(" "+t._s(t.itemValue(i,n)?t.moment(t.itemValue(i,n)).format(i.format?i.format:"L LT"):t.itemValue(i,n))+" ")]):"select"==i.type?e("span",[e("b-form-checkbox",{on:{change:function(e){return t.onCheckSelect(e,n)}},model:{value:n.selected,callback:function(e){t.$set(n,"selected",e)},expression:"item.selected"}})],1):"state"==i.type?e("span",[t._v(" "+t._s(t.getStateValue(t.itemValue(i,n),i.options))+" ")]):"array"==i.type?e("span",[t._v(" "+t._s(t.getArrayValue(t.itemValue(i,n),i.displayProp))+" ")]):e("span",[t._v(" "+t._s(t.itemValue(i,n))+" ")])]}),{item:n,index:r,itemindex:r,columnindex:o}),"actions"==i.type?e("b-button-group",[t._t("rowAction",(function(){return[e("b-button",{attrs:{variant:"primary"},on:{click:function(e){return t.showItem(n.id,r)}}},[e("b-icon-eye")],1),e("b-button",{attrs:{variant:"secondary"},on:{click:function(e){return t.updateItem(n.id,r)}}},[e("b-icon-pencil")],1),e("b-button",{attrs:{variant:"danger"},on:{click:function(e){return t.removeItem(n.id,r)}}},[e("b-icon-trash")],1)]}),{item:n,index:r,showItem:t.showItem,updateItem:t.updateItem,removeItem:t.removeItem})],2):t._e()],2)}))}),{item:n})],2)})),0),t.infiniteScroll?e("infinite-loading",{on:{infinite:t.infiniteHandler}},[e("div",{attrs:{slot:"spinner"},slot:"spinner"},[e("div",{staticClass:"text-center"},[t._v(t._s(t.messageLoading))])]),e("div",{attrs:{slot:"no-more"},slot:"no-more"},[e("div",{staticClass:"text-center"},[t._v(t._s(t.messageNoMore))])]),e("div",{attrs:{slot:"no-results"},slot:"no-results"},[e("div",{staticClass:"text-center"},[t._v(t._s(t.messageEmptyResults))])])]):t._e()],1),t.loading||0!=t.items.length||t.infiniteScroll?t._e():e("p",{staticClass:"p-3"},[t._v(" "+t._s(t.messageEmptyResults)+" ")])]):t._e(),t.displayMode==t.displayModes.MODE_CARDS?e("div",[t.loading||0!=t.items.length||t.infiniteScroll?t._e():e("p",{staticClass:"p-3"},[t._v(" "+t._s(t.messageEmptyResults)+" ")]),e("draggable",{staticClass:"row",attrs:{group:t.draggableGroup,draggable:t.orderable?".item":".none",options:t.draggableOptions},on:{start:function(e){t.drag=!0},end:function(e){t.drag=!1},sort:function(e){return t.onSort()},add:function(e){return t.onDraggableAdded(e)},change:function(e){return t.onDraggableChange(e)}},model:{value:t.items,callback:function(e){t.items=e},expression:"items"}},t._l(t.itemsList,(function(n,r){return e("b-col",{key:r,staticClass:"item",attrs:{cols:t.colXs,sm:t.colSm,md:t.colMd,lg:t.colLg,xl:t.colXl}},[e("b-card",{staticClass:"mb-2 card-crud",class:t.cardClass,attrs:{title:n.title,tag:"article",hideFooter:t.cardHideFooter},scopedSlots:t._u([{key:"footer",fn:function(){return[e("b-button-group",[t._t("rowAction",(function(){return[e("b-button",{attrs:{variant:"primary"},on:{click:function(e){return t.showItem(n.id,r)}}},[e("b-icon-eye")],1),e("b-button",{attrs:{variant:"secondary"},on:{click:function(e){return t.updateItem(n.id,r)}}},[e("b-icon-pencil")],1),e("b-button",{attrs:{variant:"danger"},on:{click:function(e){return t.removeItem(n.id,r)}}},[e("b-icon-trash")],1)]}),{item:n,index:r,showItem:t.showItem,updateItem:t.updateItem,removeItem:t.removeItem})],2)]},proxy:!0}],null,!0)},[t._t("card",(function(){return t._l(t.columns,(function(i,o){return e("div",{key:o},["actions"!=i.type?e("b-card-text",[t._v(t._s(i.label)+": "),t._t("cell-"+i.prop,(function(){return["boolean"==i.type?e("span",["true"==t.itemValue(i,n)||1==t.itemValue(i,n)||"1"==t.itemValue(i,n)?e("b-badge",{attrs:{variant:"success"}},[e("b-icon-check-circle")],1):t._e(),t.itemValue(i,n)&&"0"!=t.itemValue(i,n)&&"false"!=t.itemValue(i,n)?t._e():e("b-badge",{attrs:{variant:"danger"}},[e("b-icon-x-circle")],1)],1):"date"==i.type?e("span",[t._v(" "+t._s(t.itemValue(i,n))+" ")]):"state"==i.type?e("span",[t._v(" "+t._s(t.getStateValue(t.itemValue(i,n),i.options))+" ")]):"array"==i.type?e("span",[t._v(" "+t._s(t.getArrayValue(t.itemValue(i,n),i.displayProp))+" ")]):e("span",[t._v(" "+t._s(t.itemValue(i,n))+" ")])]}),{item:n,index:r,itemindex:r,columnindex:o})],2):t._e()],1)}))}),{item:n})],2)],1)})),1),t.infiniteScroll?e("infinite-loading",{on:{infinite:t.infiniteHandler}},[e("div",{attrs:{slot:"spinner"},slot:"spinner"},[e("div",{staticClass:"text-center"},[t._v(t._s(t.messageLoading))])]),e("div",{attrs:{slot:"no-more"},slot:"no-more"},[e("div",{staticClass:"text-center"},[t._v(t._s(t.messageNoMore))])]),e("div",{attrs:{slot:"no-results"},slot:"no-results"},[e("div",{staticClass:"text-center"},[t._v(t._s(t.messageEmptyResults))])])]):t._e()],1):t._e(),t.displayMode==t.displayModes.MODE_CUSTOM?e("div",[e("div",{class:t.listContainerClass},[0==t.items.length?e("p",{staticClass:"p-3"},[t._v(" "+t._s(t.messageEmptyResults)+" ")]):t._e(),t._l(t.itemsList,(function(n,r){return e("div",{key:r,class:t.listItemClass},[t._t("card",null,{item:n})],2)}))],2)]):t._e(),e("b-overlay",{attrs:{show:t.loading,rounded:"sm"}}),t.infiniteScroll?t._e():e("div",{staticClass:"crud-paginator"},[t.showPaginator?e("b-pagination",{attrs:{"total-rows":t.pagination.total,"per-page":t.pagination.per_page},on:{change:function(e){return t.onPaginationChange(e)}},model:{value:t.pagination.current_page,callback:function(e){t.$set(t.pagination,"current_page",e)},expression:"pagination.current_page"}}):t._e()],1),e("b-modal",{attrs:{id:"modal-form-item-"+t.modelName,"hide-footer":"",size:"xl",title:t.title,"no-close-on-backdrop":""}},[e("b-overlay",{attrs:{show:t.loading,rounded:"sm"}},[t.validate?[e("form",{on:{submit:t.saveItem}},[t.item?t._t("form",(function(){return[e("b-form-group",{attrs:{label:"Nombre:",description:"Nombre "}},[e("b-form-input",{attrs:{type:"text",required:"",placeholder:"Nombre"},model:{value:t.item.title,callback:function(e){t.$set(t.item,"title",e)},expression:"item.title"}})],1)]}),{item:t.item}):t._e(),e("b-button",{attrs:{block:"",type:"submit",variant:"success",disabled:t.loading}},[t.loading?e("b-spinner",{attrs:{small:""}}):t._e(),t._v(t._s(t.messageSave)+" ")],1)],2)]:t._e(),t.validate?t._e():[t.item?t._t("form",(function(){return t._l(t.item,(function(n,r){return e("b-form-group",{key:r,attrs:{label:r}},[e("b-form-input",{attrs:{type:"text",required:""},model:{value:t.item[r],callback:function(e){t.$set(t.item,r,e)},expression:"item[key]"}})],1)}))}),{item:t.item}):t._e(),e("b-button",{attrs:{block:"",type:"submit",variant:"success",disabled:t.loading},on:{click:function(e){return t.saveItem()}}},[t.loading?e("b-spinner",{attrs:{small:""}}):t._e(),t._v(t._s(t.messageSave)+" ")],1)]],2)],1),e("b-modal",{attrs:{id:"modal-show-item-"+t.modelName,"hide-footer":"",size:"xl",title:t.title,"no-close-on-backdrop":""}},[t.item?t._t("show",(function(){return[e("b-list-group",t._l(t.item,(function(n,r){return e("b-list-group-item",{key:r},[e("b-row",[e("b-col",{staticClass:"font-weight-bold",attrs:{cols:"4"}},[t._v(t._s(r))]),e("b-col",{attrs:{cols:"8"}},[t._v(t._s(JSON.stringify(n)))])],1)],1)})),1)]}),{item:t.item}):t._e()],2)],1)},mi=fi(hi,pi,[],!1,null,"6bec1b4d",null,null).exports,gi=function(){var t=mi;return t.install=function(e){e.component("VueLaravelCrud",t)},t}(),vi=Object.freeze({__proto__:null,default:gi});return Object.entries(vi).forEach((function(t){var e=i(t,2),n=e[0],r=e[1];"default"!==n&&(gi[n]=r)})),gi}();
|
|
16
|
+
!function(t,e){t.exports=function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=9)}([function(t,e,n){var r=n(6);"string"==typeof r&&(r=[[t.i,r,""]]),r.locals&&(t.exports=r.locals),(0,n(3).default)("6223ff68",r,!0,{})},function(t,e,n){var r=n(8);"string"==typeof r&&(r=[[t.i,r,""]]),r.locals&&(t.exports=r.locals),(0,n(3).default)("27f0e51f",r,!0,{})},function(t,e){t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n=function(t,e){var n,r=t[1]||"",i=t[3];if(!i)return r;if(e&&"function"==typeof btoa){var o=(n=i,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(n))))+" */"),a=i.sources.map((function(t){return"/*# sourceURL="+i.sourceRoot+t+" */"}));return[r].concat(a).concat([o]).join("\n")}return[r].join("\n")}(e,t);return e[2]?"@media "+e[2]+"{"+n+"}":n})).join("")},e.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var r={},i=0;i<this.length;i++){var o=this[i][0];"number"==typeof o&&(r[o]=!0)}for(i=0;i<t.length;i++){var a=t[i];"number"==typeof a[0]&&r[a[0]]||(n&&!a[2]?a[2]=n:n&&(a[2]="("+a[2]+") and ("+n+")"),e.push(a))}},e}},function(t,e,n){function r(t,e){for(var n=[],r={},i=0;i<e.length;i++){var o=e[i],a=o[0],s={id:t+":"+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.r(e),n.d(e,"default",(function(){return h}));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,u=!1,c=function(){},d=null,f="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function h(t,e,n,i){u=n,d=i||{};var a=r(t,e);return p(a),function(e){for(var n=[],i=0;i<a.length;i++){var s=a[i];(l=o[s.id]).refs--,n.push(l)}for(e?p(a=r(t,e)):a=[],i=0;i<n.length;i++){var l;if(0===(l=n[i]).refs){for(var u=0;u<l.parts.length;u++)l.parts[u]();delete o[l.id]}}}}function p(t){for(var e=0;e<t.length;e++){var n=t[e],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(g(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(g(n.parts[i]));o[n.id]={id:n.id,refs:1,parts:a}}}}function m(){var t=document.createElement("style");return t.type="text/css",a.appendChild(t),t}function g(t){var e,n,r=document.querySelector('style[data-vue-ssr-id~="'+t.id+'"]');if(r){if(u)return c;r.parentNode.removeChild(r)}if(f){var i=l++;r=s||(s=m()),e=b.bind(null,r,i,!1),n=b.bind(null,r,i,!0)}else r=m(),e=_.bind(null,r),n=function(){r.parentNode.removeChild(r)};return e(t),function(r){if(r){if(r.css===t.css&&r.media===t.media&&r.sourceMap===t.sourceMap)return;e(t=r)}else n()}}var v,y=(v=[],function(t,e){return v[t]=e,v.filter(Boolean).join("\n")});function b(t,e,n,r){var i=n?"":r.css;if(t.styleSheet)t.styleSheet.cssText=y(e,i);else{var o=document.createTextNode(i),a=t.childNodes;a[e]&&t.removeChild(a[e]),a.length?t.insertBefore(o,a[e]):t.appendChild(o)}}function _(t,e){var n=e.css,r=e.media,i=e.sourceMap;if(r&&t.setAttribute("media",r),d.ssrId&&t.setAttribute("data-vue-ssr-id",e.id),i&&(n+="\n/*# sourceURL="+i.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */"),t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}},function(t,e){function n(e){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?t.exports=n=function(t){return typeof t}:t.exports=n=function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(e)}t.exports=n},function(t,e,n){n.r(e);var r=n(0),i=n.n(r);for(var o in r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);e.default=i.a},function(t,e,n){(t.exports=n(2)(!1)).push([t.i,'.loading-wave-dots[data-v-46b20d22]{position:relative}.loading-wave-dots[data-v-46b20d22] .wave-item{position:absolute;top:50%;left:50%;display:inline-block;margin-top:-4px;width:8px;height:8px;border-radius:50%;-webkit-animation:loading-wave-dots-data-v-46b20d22 linear 2.8s infinite;animation:loading-wave-dots-data-v-46b20d22 linear 2.8s infinite}.loading-wave-dots[data-v-46b20d22] .wave-item:first-child{margin-left:-36px}.loading-wave-dots[data-v-46b20d22] .wave-item:nth-child(2){margin-left:-20px;-webkit-animation-delay:.14s;animation-delay:.14s}.loading-wave-dots[data-v-46b20d22] .wave-item:nth-child(3){margin-left:-4px;-webkit-animation-delay:.28s;animation-delay:.28s}.loading-wave-dots[data-v-46b20d22] .wave-item:nth-child(4){margin-left:12px;-webkit-animation-delay:.42s;animation-delay:.42s}.loading-wave-dots[data-v-46b20d22] .wave-item:last-child{margin-left:28px;-webkit-animation-delay:.56s;animation-delay:.56s}@-webkit-keyframes loading-wave-dots-data-v-46b20d22{0%{-webkit-transform:translateY(0);transform:translateY(0);background:#bbb}10%{-webkit-transform:translateY(-6px);transform:translateY(-6px);background:#999}20%{-webkit-transform:translateY(0);transform:translateY(0);background:#bbb}to{-webkit-transform:translateY(0);transform:translateY(0);background:#bbb}}@keyframes loading-wave-dots-data-v-46b20d22{0%{-webkit-transform:translateY(0);transform:translateY(0);background:#bbb}10%{-webkit-transform:translateY(-6px);transform:translateY(-6px);background:#999}20%{-webkit-transform:translateY(0);transform:translateY(0);background:#bbb}to{-webkit-transform:translateY(0);transform:translateY(0);background:#bbb}}.loading-circles[data-v-46b20d22] .circle-item{width:5px;height:5px;-webkit-animation:loading-circles-data-v-46b20d22 linear .75s infinite;animation:loading-circles-data-v-46b20d22 linear .75s infinite}.loading-circles[data-v-46b20d22] .circle-item:first-child{margin-top:-14.5px;margin-left:-2.5px}.loading-circles[data-v-46b20d22] .circle-item:nth-child(2){margin-top:-11.26px;margin-left:6.26px}.loading-circles[data-v-46b20d22] .circle-item:nth-child(3){margin-top:-2.5px;margin-left:9.5px}.loading-circles[data-v-46b20d22] .circle-item:nth-child(4){margin-top:6.26px;margin-left:6.26px}.loading-circles[data-v-46b20d22] .circle-item:nth-child(5){margin-top:9.5px;margin-left:-2.5px}.loading-circles[data-v-46b20d22] .circle-item:nth-child(6){margin-top:6.26px;margin-left:-11.26px}.loading-circles[data-v-46b20d22] .circle-item:nth-child(7){margin-top:-2.5px;margin-left:-14.5px}.loading-circles[data-v-46b20d22] .circle-item:last-child{margin-top:-11.26px;margin-left:-11.26px}@-webkit-keyframes loading-circles-data-v-46b20d22{0%{background:#dfdfdf}90%{background:#505050}to{background:#dfdfdf}}@keyframes loading-circles-data-v-46b20d22{0%{background:#dfdfdf}90%{background:#505050}to{background:#dfdfdf}}.loading-bubbles[data-v-46b20d22] .bubble-item{background:#666;-webkit-animation:loading-bubbles-data-v-46b20d22 linear .75s infinite;animation:loading-bubbles-data-v-46b20d22 linear .75s infinite}.loading-bubbles[data-v-46b20d22] .bubble-item:first-child{margin-top:-12.5px;margin-left:-.5px}.loading-bubbles[data-v-46b20d22] .bubble-item:nth-child(2){margin-top:-9.26px;margin-left:8.26px}.loading-bubbles[data-v-46b20d22] .bubble-item:nth-child(3){margin-top:-.5px;margin-left:11.5px}.loading-bubbles[data-v-46b20d22] .bubble-item:nth-child(4){margin-top:8.26px;margin-left:8.26px}.loading-bubbles[data-v-46b20d22] .bubble-item:nth-child(5){margin-top:11.5px;margin-left:-.5px}.loading-bubbles[data-v-46b20d22] .bubble-item:nth-child(6){margin-top:8.26px;margin-left:-9.26px}.loading-bubbles[data-v-46b20d22] .bubble-item:nth-child(7){margin-top:-.5px;margin-left:-12.5px}.loading-bubbles[data-v-46b20d22] .bubble-item:last-child{margin-top:-9.26px;margin-left:-9.26px}@-webkit-keyframes loading-bubbles-data-v-46b20d22{0%{width:1px;height:1px;box-shadow:0 0 0 3px #666}90%{width:1px;height:1px;box-shadow:0 0 0 0 #666}to{width:1px;height:1px;box-shadow:0 0 0 3px #666}}@keyframes loading-bubbles-data-v-46b20d22{0%{width:1px;height:1px;box-shadow:0 0 0 3px #666}90%{width:1px;height:1px;box-shadow:0 0 0 0 #666}to{width:1px;height:1px;box-shadow:0 0 0 3px #666}}.loading-default[data-v-46b20d22]{position:relative;border:1px solid #999;-webkit-animation:loading-rotating-data-v-46b20d22 ease 1.5s infinite;animation:loading-rotating-data-v-46b20d22 ease 1.5s infinite}.loading-default[data-v-46b20d22]:before{content:"";position:absolute;display:block;top:0;left:50%;margin-top:-3px;margin-left:-3px;width:6px;height:6px;background-color:#999;border-radius:50%}.loading-spiral[data-v-46b20d22]{border:2px solid #777;border-right-color:transparent;-webkit-animation:loading-rotating-data-v-46b20d22 linear .85s infinite;animation:loading-rotating-data-v-46b20d22 linear .85s infinite}@-webkit-keyframes loading-rotating-data-v-46b20d22{0%{-webkit-transform:rotate(0);transform:rotate(0)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes loading-rotating-data-v-46b20d22{0%{-webkit-transform:rotate(0);transform:rotate(0)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}.loading-bubbles[data-v-46b20d22],.loading-circles[data-v-46b20d22]{position:relative}.loading-bubbles[data-v-46b20d22] .bubble-item,.loading-circles[data-v-46b20d22] .circle-item{position:absolute;top:50%;left:50%;display:inline-block;border-radius:50%}.loading-bubbles[data-v-46b20d22] .bubble-item:nth-child(2),.loading-circles[data-v-46b20d22] .circle-item:nth-child(2){-webkit-animation-delay:93ms;animation-delay:93ms}.loading-bubbles[data-v-46b20d22] .bubble-item:nth-child(3),.loading-circles[data-v-46b20d22] .circle-item:nth-child(3){-webkit-animation-delay:.186s;animation-delay:.186s}.loading-bubbles[data-v-46b20d22] .bubble-item:nth-child(4),.loading-circles[data-v-46b20d22] .circle-item:nth-child(4){-webkit-animation-delay:.279s;animation-delay:.279s}.loading-bubbles[data-v-46b20d22] .bubble-item:nth-child(5),.loading-circles[data-v-46b20d22] .circle-item:nth-child(5){-webkit-animation-delay:.372s;animation-delay:.372s}.loading-bubbles[data-v-46b20d22] .bubble-item:nth-child(6),.loading-circles[data-v-46b20d22] .circle-item:nth-child(6){-webkit-animation-delay:.465s;animation-delay:.465s}.loading-bubbles[data-v-46b20d22] .bubble-item:nth-child(7),.loading-circles[data-v-46b20d22] .circle-item:nth-child(7){-webkit-animation-delay:.558s;animation-delay:.558s}.loading-bubbles[data-v-46b20d22] .bubble-item:last-child,.loading-circles[data-v-46b20d22] .circle-item:last-child{-webkit-animation-delay:.651s;animation-delay:.651s}',""])},function(t,e,n){n.r(e);var r=n(1),i=n.n(r);for(var o in r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);e.default=i.a},function(t,e,n){(t.exports=n(2)(!1)).push([t.i,".infinite-loading-container[data-v-644ea9c9]{clear:both;text-align:center}.infinite-loading-container[data-v-644ea9c9] [class^=loading-]{display:inline-block;margin:5px 0;width:28px;height:28px;font-size:28px;line-height:28px;border-radius:50%}.btn-try-infinite[data-v-644ea9c9]{margin-top:5px;padding:5px 10px;color:#999;font-size:14px;line-height:1;background:transparent;border:1px solid #ccc;border-radius:3px;outline:none;cursor:pointer}.btn-try-infinite[data-v-644ea9c9]:not(:active):hover{opacity:.8}",""])},function(t,e,n){n.r(e);var r={throttleLimit:50,loopCheckTimeout:1e3,loopCheckMaxCalls:10},i=function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){return t={passive:!0},!0}});window.addEventListener("testpassive",e,e),window.remove("testpassive",e,e)}catch(t){}return t}(),o={STATE_CHANGER:["emit `loaded` and `complete` event through component instance of `$refs` may cause error, so it will be deprecated soon, please use the `$state` argument instead (`$state` just the special `$event` variable):","\ntemplate:",'<infinite-loading @infinite="infiniteHandler"></infinite-loading>',"\nscript:\n...\ninfiniteHandler($state) {\n ajax('https://www.example.com/api/news')\n .then((res) => {\n if (res.data.length) {\n $state.loaded();\n } else {\n $state.complete();\n }\n });\n}\n...","","more details: https://github.com/PeachScript/vue-infinite-loading/issues/57#issuecomment-324370549"].join("\n"),INFINITE_EVENT:"`:on-infinite` property will be deprecated soon, please use `@infinite` event instead.",IDENTIFIER:"the `reset` event will be deprecated soon, please reset this component by change the `identifier` property."},a={INFINITE_LOOP:["executed the callback function more than ".concat(r.loopCheckMaxCalls," times for a short time, it looks like searched a wrong scroll wrapper that doest not has fixed height or maximum height, please check it. If you want to force to set a element as scroll wrapper ranther than automatic searching, you can do this:"),'\n\x3c!-- add a special attribute for the real scroll wrapper --\x3e\n<div infinite-wrapper>\n ...\n \x3c!-- set force-use-infinite-wrapper --\x3e\n <infinite-loading force-use-infinite-wrapper></infinite-loading>\n</div>\nor\n<div class="infinite-wrapper">\n ...\n \x3c!-- set force-use-infinite-wrapper as css selector of the real scroll wrapper --\x3e\n <infinite-loading force-use-infinite-wrapper=".infinite-wrapper"></infinite-loading>\n</div>\n ',"more details: https://github.com/PeachScript/vue-infinite-loading/issues/55#issuecomment-316934169"].join("\n")},s={READY:0,LOADING:1,COMPLETE:2,ERROR:3},l={color:"#666",fontSize:"14px",padding:"10px 0"},u={mode:"development",props:{spinner:"default",distance:100,forceUseInfiniteWrapper:!1},system:r,slots:{noResults:"No results :(",noMore:"No more data :)",error:"Opps, something went wrong :(",errorBtnText:"Retry",spinner:""},WARNINGS:o,ERRORS:a,STATUS:s},c=n(4),d=n.n(c),f={BUBBLES:{render:function(t){return t("span",{attrs:{class:"loading-bubbles"}},Array.apply(Array,Array(8)).map((function(){return t("span",{attrs:{class:"bubble-item"}})})))}},CIRCLES:{render:function(t){return t("span",{attrs:{class:"loading-circles"}},Array.apply(Array,Array(8)).map((function(){return t("span",{attrs:{class:"circle-item"}})})))}},DEFAULT:{render:function(t){return t("i",{attrs:{class:"loading-default"}})}},SPIRAL:{render:function(t){return t("i",{attrs:{class:"loading-spiral"}})}},WAVEDOTS:{render:function(t){return t("span",{attrs:{class:"loading-wave-dots"}},Array.apply(Array,Array(5)).map((function(){return t("span",{attrs:{class:"wave-item"}})})))}}};function h(t,e,n,r,i,o,a,s){var l,u="function"==typeof t?t.options:t;if(e&&(u.render=e,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),a?(l=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},u._ssrRegister=l):i&&(l=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(t,e){return l.call(e),c(t,e)}}else{var d=u.beforeCreate;u.beforeCreate=d?[].concat(d,l):[l]}return{exports:t,options:u}}var p=h({name:"Spinner",computed:{spinnerView:function(){return f[(this.$attrs.spinner||"").toUpperCase()]||this.spinnerInConfig},spinnerInConfig:function(){return u.slots.spinner&&"string"==typeof u.slots.spinner?{render:function(){return this._v(u.slots.spinner)}}:"object"===d()(u.slots.spinner)?u.slots.spinner:f[u.props.spinner.toUpperCase()]||f.DEFAULT}}},(function(){var t=this.$createElement;return(this._self._c||t)(this.spinnerView,{tag:"component"})}),[],!1,(function(t){var e=n(5);e.__inject__&&e.__inject__(t)}),"46b20d22",null).exports;function m(t){"production"!==u.mode&&console.warn("[Vue-infinite-loading warn]: ".concat(t))}function g(t){console.error("[Vue-infinite-loading error]: ".concat(t))}var v={timers:[],caches:[],throttle:function(t){var e=this;-1===this.caches.indexOf(t)&&(this.caches.push(t),this.timers.push(setTimeout((function(){t(),e.caches.splice(e.caches.indexOf(t),1),e.timers.shift()}),u.system.throttleLimit)))},reset:function(){this.timers.forEach((function(t){clearTimeout(t)})),this.timers.length=0,this.caches=[]}},y={isChecked:!1,timer:null,times:0,track:function(){var t=this;this.times+=1,clearTimeout(this.timer),this.timer=setTimeout((function(){t.isChecked=!0}),u.system.loopCheckTimeout),this.times>u.system.loopCheckMaxCalls&&(g(a.INFINITE_LOOP),this.isChecked=!0)}},b={key:"_infiniteScrollHeight",getScrollElm:function(t){return t===window?document.documentElement:t},save:function(t){var e=this.getScrollElm(t);e[this.key]=e.scrollHeight},restore:function(t){var e=this.getScrollElm(t);"number"==typeof e[this.key]&&(e.scrollTop=e.scrollHeight-e[this.key]+e.scrollTop),this.remove(e)},remove:function(t){void 0!==t[this.key]&&delete t[this.key]}};function _(t){return t.replace(/[A-Z]/g,(function(t){return"-".concat(t.toLowerCase())}))}function w(t){return t.offsetWidth+t.offsetHeight>0}var S=h({name:"InfiniteLoading",data:function(){return{scrollParent:null,scrollHandler:null,isFirstLoad:!0,status:s.READY,slots:u.slots}},components:{Spinner:p},computed:{isShowSpinner:function(){return this.status===s.LOADING},isShowError:function(){return this.status===s.ERROR},isShowNoResults:function(){return this.status===s.COMPLETE&&this.isFirstLoad},isShowNoMore:function(){return this.status===s.COMPLETE&&!this.isFirstLoad},slotStyles:function(){var t=this,e={};return Object.keys(u.slots).forEach((function(n){var r=_(n);(!t.$slots[r]&&!u.slots[n].render||t.$slots[r]&&!t.$slots[r][0].tag)&&(e[n]=l)})),e}},props:{distance:{type:Number,default:u.props.distance},spinner:String,direction:{type:String,default:"bottom"},forceUseInfiniteWrapper:{type:[Boolean,String],default:u.props.forceUseInfiniteWrapper},identifier:{default:+new Date},onInfinite:Function},watch:{identifier:function(){this.stateChanger.reset()}},mounted:function(){var t=this;this.$watch("forceUseInfiniteWrapper",(function(){t.scrollParent=t.getScrollParent()}),{immediate:!0}),this.scrollHandler=function(e){t.status===s.READY&&(e&&e.constructor===Event&&w(t.$el)?v.throttle(t.attemptLoad):t.attemptLoad())},setTimeout((function(){t.scrollHandler(),t.scrollParent.addEventListener("scroll",t.scrollHandler,i)}),1),this.$on("$InfiniteLoading:loaded",(function(e){t.isFirstLoad=!1,"top"===t.direction&&t.$nextTick((function(){b.restore(t.scrollParent)})),t.status===s.LOADING&&t.$nextTick(t.attemptLoad.bind(null,!0)),e&&e.target===t||m(o.STATE_CHANGER)})),this.$on("$InfiniteLoading:complete",(function(e){t.status=s.COMPLETE,t.$nextTick((function(){t.$forceUpdate()})),t.scrollParent.removeEventListener("scroll",t.scrollHandler,i),e&&e.target===t||m(o.STATE_CHANGER)})),this.$on("$InfiniteLoading:reset",(function(e){t.status=s.READY,t.isFirstLoad=!0,b.remove(t.scrollParent),t.scrollParent.addEventListener("scroll",t.scrollHandler,i),setTimeout((function(){v.reset(),t.scrollHandler()}),1),e&&e.target===t||m(o.IDENTIFIER)})),this.stateChanger={loaded:function(){t.$emit("$InfiniteLoading:loaded",{target:t})},complete:function(){t.$emit("$InfiniteLoading:complete",{target:t})},reset:function(){t.$emit("$InfiniteLoading:reset",{target:t})},error:function(){t.status=s.ERROR,v.reset()}},this.onInfinite&&m(o.INFINITE_EVENT)},deactivated:function(){this.status===s.LOADING&&(this.status=s.READY),this.scrollParent.removeEventListener("scroll",this.scrollHandler,i)},activated:function(){this.scrollParent.addEventListener("scroll",this.scrollHandler,i)},methods:{attemptLoad:function(t){var e=this;this.status!==s.COMPLETE&&w(this.$el)&&this.getCurrentDistance()<=this.distance?(this.status=s.LOADING,"top"===this.direction&&this.$nextTick((function(){b.save(e.scrollParent)})),"function"==typeof this.onInfinite?this.onInfinite.call(null,this.stateChanger):this.$emit("infinite",this.stateChanger),!t||this.forceUseInfiniteWrapper||y.isChecked||y.track()):this.status===s.LOADING&&(this.status=s.READY)},getCurrentDistance:function(){return"top"===this.direction?"number"==typeof this.scrollParent.scrollTop?this.scrollParent.scrollTop:this.scrollParent.pageYOffset:this.$el.getBoundingClientRect().top-(this.scrollParent===window?window.innerHeight:this.scrollParent.getBoundingClientRect().bottom)},getScrollParent:function(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.$el;return"string"==typeof this.forceUseInfiniteWrapper&&(t=document.querySelector(this.forceUseInfiniteWrapper)),t||("BODY"===e.tagName?t=window:(!this.forceUseInfiniteWrapper&&["scroll","auto"].indexOf(getComputedStyle(e).overflowY)>-1||e.hasAttribute("infinite-wrapper")||e.hasAttribute("data-infinite-wrapper"))&&(t=e)),t||this.getScrollParent(e.parentNode)}},destroyed:function(){!this.status!==s.COMPLETE&&(v.reset(),b.remove(this.scrollParent),this.scrollParent.removeEventListener("scroll",this.scrollHandler,i))}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"infinite-loading-container"},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.isShowSpinner,expression:"isShowSpinner"}],staticClass:"infinite-status-prompt",style:t.slotStyles.spinner},[t._t("spinner",[n("spinner",{attrs:{spinner:t.spinner}})])],2),t._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:t.isShowNoResults,expression:"isShowNoResults"}],staticClass:"infinite-status-prompt",style:t.slotStyles.noResults},[t._t("no-results",[t.slots.noResults.render?n(t.slots.noResults,{tag:"component"}):[t._v(t._s(t.slots.noResults))]])],2),t._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:t.isShowNoMore,expression:"isShowNoMore"}],staticClass:"infinite-status-prompt",style:t.slotStyles.noMore},[t._t("no-more",[t.slots.noMore.render?n(t.slots.noMore,{tag:"component"}):[t._v(t._s(t.slots.noMore))]])],2),t._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:t.isShowError,expression:"isShowError"}],staticClass:"infinite-status-prompt",style:t.slotStyles.error},[t._t("error",[t.slots.error.render?n(t.slots.error,{tag:"component",attrs:{trigger:t.attemptLoad}}):[t._v("\n "+t._s(t.slots.error)+"\n "),n("br"),t._v(" "),n("button",{staticClass:"btn-try-infinite",domProps:{textContent:t._s(t.slots.errorBtnText)},on:{click:t.attemptLoad}})]],{trigger:t.attemptLoad})],2)])}),[],!1,(function(t){var e=n(7);e.__inject__&&e.__inject__(t)}),"644ea9c9",null).exports;function x(t){u.mode=t.config.productionTip?"development":"production"}Object.defineProperty(S,"install",{configurable:!1,enumerable:!1,value:function(t,e){Object.assign(u.props,e&&e.props),Object.assign(u.slots,e&&e.slots),Object.assign(u.system,e&&e.system),t.component("infinite-loading",S),x(t)}}),"undefined"!=typeof window&&window.Vue&&(window.Vue.component("infinite-loading",S),x(window.Vue)),e.default=S}])}({get exports(){return li},set exports(t){li=t}});var ui=l(li),ci=[],di=[];function fi(t,e,n,r,i,o,a,s){var l,u="function"==typeof t?t.options:t;if(e&&(u.render=e,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),a?(l=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},u._ssrRegister=l):i&&(l=s?function(){i.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:i),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(t,e){return l.call(e),c(t,e)}}else{var d=u.beforeCreate;u.beforeCreate=d?[].concat(d,l):[l]}return{exports:t,options:u}}!function(t,e){if(t&&"undefined"!=typeof document){var n,r=!0===e.prepend?"prepend":"append",i=!0===e.singleTag,o="string"==typeof e.container?document.querySelector(e.container):document.getElementsByTagName("head")[0];if(i){var a=ci.indexOf(o);-1===a&&(a=ci.push(o)-1,di[a]={}),n=di[a]&&di[a][r]?di[a][r]:di[a][r]=s()}else n=s();65279===t.charCodeAt(0)&&(t=t.substring(1)),n.styleSheet?n.styleSheet.cssText+=t:n.appendChild(document.createTextNode(t))}function s(){var t=document.createElement("style");if(t.setAttribute("type","text/css"),e.attributes)for(var n=Object.keys(e.attributes),i=0;i<n.length;i++)t.setAttribute(n[i],e.attributes[n[i]]);var a="prepend"===r?"afterbegin":"beforeend";return o.insertAdjacentElement(a,t),t}}("tr td[data-v-7bd60172]:last-child,\ntr td[data-v-7bd60172]:first-child {\n width: 1%;\n white-space: nowrap; }\n\n.crud-pagination[data-v-7bd60172] {\n display: flex;\n justify-content: center; }\n\n.crud-header[data-v-7bd60172] {\n display: flex;\n justify-content: space-between;\n max-height: 3rem; }\n .crud-header[data-v-7bd60172] .crud-title[data-v-7bd60172] {\n margin: 0; }\n .crud-header[data-v-7bd60172] .crud-search[data-v-7bd60172] {\n max-width: 15rem; }\n .crud-header[data-v-7bd60172] .crud-search[data-v-7bd60172] .btn[data-v-7bd60172] {\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n border-top-right-radius: 0.375rem;\n border-bottom-right-radius: 0.375rem; }\n .crud-header[data-v-7bd60172] .crud-search[data-v-7bd60172] .btn[data-v-7bd60172].open[data-v-7bd60172] {\n border-top-right-radius: 0;\n border-bottom-right-radius: 0; }\n .crud-header[data-v-7bd60172] .table-options[data-v-7bd60172] {\n margin-bottom: 1rem;\n display: flex;\n align-items: center;\n justify-content: flex-end; }\n\n.custom-control[data-v-7bd60172] {\n position: relative;\n top: -15px; }\n\n@media (min-width: 992px) {\n .table[data-v-7bd60172] {\n table-layout: auto; }\n .table[data-v-7bd60172] tbody[data-v-7bd60172] td[data-v-7bd60172] {\n overflow: scroll;\n -ms-overflow-style: none;\n /* IE and Edge */\n scrollbar-width: none;\n /* Firefox */ }\n .table[data-v-7bd60172] tbody[data-v-7bd60172] td[data-v-7bd60172]::-webkit-scrollbar {\n display: none; } }\n",{});var hi={name:"VueLaravelCrud",components:{draggable:Pe,InfiniteLoading:ui},data:function(){return{moment:si,loading:!1,item:{id:null},items:[],selectedItems:[],pagination:{current_page:1,last_page:1,next_page_url:"",prev_page_url:"",per_page:21,total:0},displaySearch:!1,itemDefault:null,filters:[],filtersVisible:!1,filterSidebarOpen:!1,internalFilters:[],forceRecomputeCounter:0,displayModes:{MODE_TABLE:1,MODE_CARDS:2,MODE_CUSTOM:3}}},watch:{search:function(t){t&&""!=t?(this.filters=[],this.filters.push(["search","LIKE",t]),this.fetchItems()):(this.filters=[],this.fetchItems())}},props:{modelName:String,title:String,model:{type:Object|Function,default:function(){return{id:0}}},models:{type:Array,default:function(){return[]}},ajax:{type:Boolean,default:!0},useVuexORM:{type:Boolean,default:!1},columns:{type:Array,default:function(){return[{label:"Id",prop:"id",type:"number"}]}},filter:{type:Array,default:function(){return[]}},enableFilters:{type:Boolean,default:!1},infiniteScroll:{type:Boolean,default:!1},sortable:{type:Boolean,default:!1},orderable:{type:Boolean,default:!1},validate:{type:Boolean,default:!1},orderProp:{type:String,default:"order"},createMultipart:{type:Boolean,default:!1},apiUrl:{type:String,default:"/api"},search:{type:String,default:""},hideModalAfterSave:{type:Boolean,default:!0},refreshAfterSave:{type:Boolean,default:!0},showPaginator:{type:Boolean,default:!0},showCreateBtn:{type:Boolean,default:!0},showSearch:{type:Boolean,default:!0},showHeader:{type:Boolean,default:!0},showTitle:{type:Boolean,default:!0},limit:{type:Number,default:20},displayMode:{type:Number,default:1},displayModeToggler:{type:Boolean,default:!1},colXs:{default:12,type:Number},colSm:{default:12,type:Number},colMd:{default:6,type:Number},colLg:{default:4,type:Number},colXl:{default:3,type:Number},selectHover:{type:Boolean,default:!1},selectClick:{type:Boolean,default:!1},cardClass:{type:String,default:""},listContainerClass:{type:String,default:""},listItemClass:{type:String,default:""},cardHideFooter:{type:Boolean,default:!1},messageRemoveConfirm:{type:String,default:"¿Esta seguro de borrar este elemento?"},messageRemove:{type:String,default:"BORRAR"},messageNew:{type:String,default:"Nuevo"},messageEmptyResults:{type:String,default:"No se han encontrado resultados"},messageNoMore:{type:String,default:"No hay mas elementos para mostrar."},messageLoading:{type:String,default:"Cargando..."},messageSave:{type:String,default:"Guardar"},messageDefaultValidationError:{type:String,default:"Por favor controle el formulario, contiene errores."},searchPlaceholder:{type:String,default:"Buscar..."},tableContainerClass:{type:String,default:""},tableClass:{type:String,default:""},grouped:{type:Boolean,default:!1},groupedAttribute:{type:String,default:"name"},groupedLabelPre:{type:String,default:""},groupedLabelAfter:{type:String,default:""},draggableGroup:{type:String,default:"people"},draggableOptions:{type:Object,default:function(){return{clone:!1}}}},mounted:function(){this.useVuexORM?this.item=new this.model:(this.item=this.model,this.itemDefault=JSON.parse(JSON.stringify(this.item))),console.debug("crud mounted columns",this.columns),this.internalFilters=[],this.setupFilters(),this.ajax?this.fetchItems():(this.items=this.models,this.pagination.total=this.items.length)},computed:{itemValue:function(){return function(t,e){return t.prop&&t.prop.split(".").length>1&&t.prop.split(".")[1]?e[t.prop.split(".")[0]]&&e[t.prop.split(".")[0]][t.prop.split(".")[1]]?e[t.prop.split(".")[0]][t.prop.split(".")[1]]:"":e[t.prop]}},itemsList:function(){return this.ajax?this.items:this.items.slice(this.paginationIndexStart,this.paginationIndexEnd)},paginationIndexStart:function(){return(this.pagination.current_page-1)*this.pagination.per_page},paginationIndexEnd:function(){return this.paginationIndexStart+this.pagination.per_page},finalFilters:function(){return[].concat(o(this.filters),o(this.filter),o(this.internalFilter))},internalFilter:function(){var t=[];return this.forceRecomputeCounter,this.internalFilters.forEach((function(e){e.value&&t.push([e.column,e.op,e.value])})),t},internalFilterByProp:function(){var t=this;return function(e){return t.internalFilters.find((function(t){return t.column==e}))}}},methods:{infiniteHandler:function(t){if(this.pagination.current_page*this.pagination.per_page<this.pagination.total){var e=this.pagination.current_page+1;this.fetchItems(e,!0).then((function(){t.loaded()}))}else t.complete()},onDraggableAdded:function(t){console.log("Se agregó un nuevo elemento a la lista",t),this.$emit("draggableAdded",t)},onDraggableChange:function(t){console.log("Lista change",t),this.$emit("draggableChange",t)},setupFilters:function(){var t=this;this.columns.forEach((function(e){t.isColumnHasFilter(e)&&("date"==e.type?(t.internalFilters.push({column:e.prop+"_from",op:e.filterOp?e.filterOp:"=",value:null}),t.internalFilters.push({column:e.prop+"_to",op:e.filterOp?e.filterOp:"=",value:null})):t.internalFilters.push({column:e.prop,op:e.filterOp?e.filterOp:"=",value:null})),t.sortable&&t.internalFilters.push({column:e.prop+"_sort",op:e.filterOp?e.filterOp:"=",value:null})}))},toggleSortFilter:function(t){var e=this.internalFilterByProp(t.prop+"_sort").value;e?"ASC"==e?this.internalFilterByProp(t.prop+"_sort").value="DESC":"DESC"==e&&(this.internalFilterByProp(t.prop+"_sort").value=null):this.internalFilterByProp(t.prop+"_sort").value="ASC"},toggleFilters:function(){this.filtersVisible=!this.filtersVisible,this.displayMode==this.displayModes.MODE_CARDS?this.filterSidebarOpen=this.filtersVisible:this.filterSidebarOpen=!1},resetFilters:function(){var t=this;this.internalFilters=[],this.setupFilters(),this.forceRecomputeCounter++,setTimeout((function(){t.refresh()}),1)},toggleDisplayMode:function(){this.displayMode==this.displayModes.MODE_TABLE?this.displayMode=this.displayModes.MODE_CARDS:this.displayMode==this.displayModes.MODE_CARDS&&(this.displayMode=this.displayModes.MODE_TABLE)},onRowHover:function(t,e){this.selectHover&&(this.item=this.items[e],this.selectItem(),this.onSelect())},onRowClick:function(t,e){this.selectClick&&(this.item=this.items[e],this.selectItem(),this.onSelect())},onSort:function(){var t=this,e=this.pagination.current_page*this.pagination.per_page-this.pagination.per_page+1;this.items.forEach((function(n,r){n[t.orderProp]=e,e++})),this.$emit("sort",{})},onCheckSelect:function(t,e){console.debug("ON CHECK SELECT",t,e),this.item=e,this.selectItem(),this.onSelect()},toggleAll:function(){this.selectedItems.length>0?this.selectedItems=[]:this.selectedItems=this.items},selectItem:function(){var t=this,e=this.selectedItems.find((function(e){return e.id==t.item.id}));e?(this.item.selected=!1,this.selectedItems=this.selectedItems.filter((function(e){return e.id!=t.item.id}))):(this.item.selected=!0,this.selectedItems.push(this.item))},externalUpdate:function(t){var e=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"id";t.forEach((function(t){var i=e.items.find((function(e){return e[r]===t[r]}));i?Object.assign(i,t):n&&e.items.push(t)}))},getSelectedItems:function(){return this.selectedItems},onSelect:function(){this.$emit("select",this.item)},showItem:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(null==e){var n=this.items.find((function(e){return e.id==t}));this.item=n}else this.item=this.items[e];this.onSelect(),this.$bvModal.show("modal-show-item-"+this.modelName)},createItem:function(){this.useVuexORM?this.item=new this.model:this.item=JSON.parse(JSON.stringify(this.itemDefault)),this.onSelect(),this.$bvModal.show("modal-form-item-"+this.modelName)},updateItem:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(null==e){var n=this.items.find((function(e){return e.id==t}));this.item=n}else this.item=this.items[e];this.onSelect(),this.$bvModal.show("modal-form-item-"+this.modelName)},refresh:function(){this.$emit("refresh",{}),this.ajax&&this.fetchItems(this.pagination.current_page)},isColumnHasFilter:function(t){return t&&!t.hideFilter&&"actions"!=t.type},setFilter:function(t,e){var n=this;this.filter.find((function(e){return e.column==t})).value=e,this.forceRecomputeCounter++,setTimeout((function(){n.refresh()}),1)},fetchItemsVuex:function(){var e=arguments,n=this;return r(t().mark((function r(){var i,o;return t().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=e.length>0&&void 0!==e[0]?e[0]:1,n.loading=!0,n.$emit("beforeFetch",{}),t.next=6,n.model.api().get("",{params:{page:i,limit:n.pagination.perPage,filters:JSON.stringify(n.finalFilters)}});case 6:o=t.sent,n.items=o.entities[n.model.entity],console.debug("fetch page vuex ",i,n.items),n.loading=!1;case 10:case"end":return t.stop()}}),r)})))()},fetchItems:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(this.ajax)return this.$emit("beforeFetch",{}),this.useVuexORM?this.fetchItemsVuex(e,n):(this.loading=!0,ii.get(this.apiUrl+"/"+this.modelName,{params:{page:e,limit:this.limit,filters:JSON.stringify(this.finalFilters)}}).then((function(e){t.makePagination(e.data);var r=e.data.data;if(t.grouped){var i=[],o=null,a=t.groupedAttribute,s=t.groupedLabelPre,l=t.groupedLabelAfter;r.forEach((function(t,e){Array.isArray(t)?(i.push({label:s+e+l,group:!0}),t.forEach((function(t){i.push(t)}))):(o!=t[a]&&(o=t[a],i.push({label:s+o+l,group:!0})),i.push(t))})),t.items=n?t.items.concat(i):i}else t.items=n?t.items.concat(r):r;t.loading=!1,t.$emit("afterFetch",{})})).catch((function(e){t.toastError(e),t.loading=!1})))},removeItem:function(t,e){var n=this;this.$bvModal.msgBoxConfirm(this.messageRemoveConfirm,{size:"sm",buttonSize:"sm",okVariant:"danger",okTitle:this.messageRemove,cancelTitle:"NO",centered:!0}).then((function(r){r&&n.deleteItem(t,e)})).catch((function(t){n.toastError(t),n.loading=!1}))},deleteItem:function(t,e){var n=this;if(this.useVuexORM)return this.deleteItemVuex(t,e);this.loading=!0,ii.delete(this.apiUrl+"/"+this.modelName+"/"+t).then((function(t){n.items.splice(e,1),n.toastSuccess("Elemento eliminado."),n.$emit("itemDeleted",{}),n.loading=!1})).catch((function(t){n.toastError(t),n.loading=!1}))},deleteItemVuex:function(e,n){var i=this;return r(t().mark((function n(){var r;return t().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,i.model.api().delete("/"+e,{delete:1});case 2:if(r=t.sent,console.debug("delete item vuex",r),r.response.status,!r.response.data.error){t.next=8;break}return i.toastError(r.response.data.error),t.abrupt("return");case 8:i.toastSuccess("Elemento eliminado.");case 9:case"end":return t.stop()}}),n)})))()},saveSort:function(){var t=this;if(this.orderable){this.loading=!0;var e=[];this.items.forEach((function(n,r){e.push({id:n.id,order:n[t.orderProp]})})),ii.post(this.apiUrl+"/"+this.modelName+"/sort",{order:e}).then((function(e){e.data,t.toastSuccess("Orden Actualizado"),t.refreshAfterSave&&t.refresh(),t.loading=!1})).catch((function(e){t.toastError(e),t.loading=!1}))}},getArrayValue:function(t,n){return Array.isArray(t)?t.length>0?"object"===e(t[0])&&n?t.map((function(t){return t[n]})).join(","):t.join(","):"":"N/A"},getStateValue:function(t,e){if(!e)return console.debug("State Column Not hast options returning value",t,e),t;var n=e.filter((function(e){return Array.isArray(t)?t.includes(e.id):e.id==t}));return(n=n.map((function(t){return t.text?t.text:t.label?t.label:""}))).join(", ")},saveItemVuex:function(){var e=this;return r(t().mark((function n(){var r,i;return t().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(console.debug("save item 1",e.item),r=e.item.$toJson(),console.debug("save item 2",e.item,r),!e.item.id){t.next=10;break}return t.next=7,e.model.api().put("/"+e.item.id,r);case 7:i=t.sent,t.next=13;break;case 10:return t.next=12,e.model.api().post("",r);case 12:i=t.sent;case 13:if(i.response.status,!i.response.data.error){t.next=17;break}return e.toastError(i.response.data.error),t.abrupt("return");case 17:i.save(),e.refreshAfterSave&&e.refresh(),e.toastSuccess("Elemento Modificado");case 20:case"end":return t.stop()}}),n)})))()},saveItem:function(){var e=arguments,n=this;return r(t().mark((function r(){var i,o;return t().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i=e.length>0&&void 0!==e[0]?e[0]:null,n.loading=!0,!n.validate){t.next=10;break}!0,n.messageDefaultValidationError,t.next=8;break;case 8:t.next=11;break;case 10:i&&i.preventDefault();case 11:if(!n.useVuexORM){t.next=13;break}return t.abrupt("return",n.saveItemVuex());case 13:n.item.id?ii.put(n.apiUrl+"/"+n.modelName+"/"+n.item.id,n.item).then((function(t){n.hideModalAfterSave&&n.$bvModal.hide("modal-form-item-"+n.modelName);var e=t.data,r=n.items.findIndex((function(t){return t.id==n.item.id}));n.items[r]=e,n.item=e,n.loading=!1,n.refreshAfterSave&&n.refresh(),n.toastSuccess("Elemento Modificado"),n.$emit("itemSaved",{item:n.item}),n.$emit("itemUpdated",{item:n.item})})).catch((function(t){n.toastError(t),n.loading=!1})):n.createMultipart?(o=new FormData,Object.keys(n.item).forEach((function(t){if(n.item[t][0]&&n.item[t][0].name)for(var e=n.item[t],r=0;r<e.length;r++)o.append(t+"[]",n.item[t][r],n.item[t][r].name);else o.append(t,n.item[t])})),ii.post(n.apiUrl+"/"+n.modelName,o).then((function(t){if(n.loading=!1,n.hideModalAfterSave&&n.$bvModal.hide("modal-form-item-"+n.modelName),t.data.success)t.data.message&&n.toastSuccess(t.data.message);else{var e=t.data;n.items.push(e),n.item=e,n.refreshAfterSave&&n.refresh(),n.toastSuccess("Elemento Creado"),n.$emit("itemSaved",{item:n.item}),n.$emit("itemCreated",{item:n.item})}})).catch((function(t){n.toastError(t),n.loading=!1}))):ii.post(n.apiUrl+"/"+n.modelName,n.item).then((function(t){if(n.loading=!1,n.hideModalAfterSave&&n.$bvModal.hide("modal-form-item-"+n.modelName),t.data.success)t.data.message&&n.toastSuccess(t.data.message);else{var e=t.data;n.items.push(e),n.item=e,n.refreshAfterSave&&n.refresh(),n.toastSuccess("Elemento Creado"),n.$emit("itemSaved",{item:n.item}),n.$emit("itemCreated",{item:n.item})}})).catch((function(t){n.toastError(t),n.loading=!1})),i&&i.preventDefault();case 15:case"end":return t.stop()}}),r)})))()},toastError:function(t){var n="Ha ocurrido un error";if("string"==typeof t)n=t;else if(t.response){if(401===t.response.status?n="No estás autorizado para realizar esta acción":404===t.response.status?n="El recurso solicitado no se encontró":t.response.status>=400&&t.response.status<500?n="Hubo un problema con la solicitud realizada":t.response.status>=500&&(n="El servidor no pudo procesar la solicitud"),t.response.data)if("object"===e(t.response.data))if(t.response.data.errors){var r=t.response.data.errors;this.responseErrors=r,n=Object.values(r)[0][0]}else t.response.data.message&&(n=t.response.data.message);else"string"==typeof t.response.data&&(n=t.response.data)}else t.request?n="No se pudo conectar con el servidor. Verifique su conexión a Internet.":t.message&&(n=t.message);this.$bvToast.toast(n,{title:"Error",toaster:"b-toaster-bottom-right",variant:"danger",solid:!0,appendToast:!0})},toastSuccess:function(t){this.$bvToast.toast(t,{title:"Listo",toaster:"b-toaster-bottom-right",variant:"success",solid:!0,appendToast:!0})},onChangeFilter:function(t){var e=this;this.forceRecomputeCounter++,console.debug("Filters debug ",this.finalFilters,this.internalFilter,this.internalFilters,this.filter,this.filters),setTimeout((function(){e.refresh()}),1)},onPaginationChange:function(t){this.fetchItems(t)},makePagination:function(t){var e={current_page:t.current_page,last_page:t.last_page,next_page_url:t.next_page_url,prev_page_url:t.prev_page_url,total:t.total,per_page:t.per_page};this.pagination=e}}},pi=function(){var t=this,e=t._self._c;return e("div",{staticClass:"crud"},[t.showHeader?e("div",{staticClass:"crud-header"},[t.showTitle?e("h4",{staticClass:"crud-title"},[t._v(t._s(t.title))]):t._e(),e("b-sidebar",{attrs:{title:"Filtrar",right:"",shadow:""},model:{value:t.filterSidebarOpen,callback:function(e){t.filterSidebarOpen=e},expression:"filterSidebarOpen"}},[t._t("sidebarFilters",(function(){return[e("div",{staticClass:"px-3 py-2"},[t._l(t.columns,(function(n,r){return e("div",{key:r},[t.isColumnHasFilter(n)?e("div",[t.internalFilterByProp(n.prop)?t._t("sidebar-filter-"+n.prop,(function(){return["boolean"==n.type?e("div",{staticClass:"form-group"},[e("label",[t._v(t._s(n.label))]),e("select",{directives:[{name:"model",rawName:"v-model",value:t.internalFilterByProp(n.prop).value,expression:"internalFilterByProp(column.prop).value"}],staticClass:"form-control",on:{change:[function(e){var r=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.$set(t.internalFilterByProp(n.prop),"value",e.target.multiple?r:r[0])},function(e){return t.onChangeFilter(e)}]}},[e("option",{attrs:{value:""}}),e("option",{attrs:{value:"1"}},[t._v("Sí")]),e("option",{attrs:{value:"0"}},[t._v("No")])])]):"date"==n.type?e("div",{staticClass:"form-group"},[e("div",{staticClass:"row"},[e("div",{staticClass:"col-6"},[e("b-form-datepicker",{attrs:{"today-button":"","reset-button":"","close-button":"",locale:"es"},model:{value:t.internalFilterByProp(n.prop+"_from").value,callback:function(e){t.$set(t.internalFilterByProp(n.prop+"_from"),"value",e)},expression:"internalFilterByProp(column.prop + '_from').value\n "}})],1),e("div",{staticClass:"col-6"},[e("b-form-datepicker",{attrs:{"today-button":"","reset-button":"","close-button":"",locale:"es"},model:{value:t.internalFilterByProp(n.prop+"_to").value,callback:function(e){t.$set(t.internalFilterByProp(n.prop+"_to"),"value",e)},expression:"internalFilterByProp(column.prop + '_to').value\n "}})],1)])]):"state"==n.type?e("div",{staticClass:"form-group"},[e("label",[t._v(t._s(n.label))]),e("div",{staticClass:"d-none"},[t._v(t._s(n.options))]),e("select",{directives:[{name:"model",rawName:"v-model",value:t.internalFilterByProp(n.prop).value,expression:"internalFilterByProp(column.prop).value"}],staticClass:"form-control",on:{change:[function(e){var r=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.$set(t.internalFilterByProp(n.prop),"value",e.target.multiple?r:r[0])},function(e){return t.onChangeFilter(e)}]}},[e("option",{attrs:{value:""}}),t._l(n.options,(function(n){return e("option",{key:n.id?n.id:n.value,domProps:{value:n.id?n.id:n.value}},[t._v(" "+t._s(n.text?n.text:n.label?n.label:"")+" ")])}))],2)]):"array"==n.type?e("div",{staticClass:"form-group"},[e("label",[t._v(t._s(n.label))]),e("div",{staticClass:"d-none"},[t._v(t._s(n.options))]),e("select",{directives:[{name:"model",rawName:"v-model",value:t.internalFilterByProp(n.prop).value,expression:"internalFilterByProp(column.prop).value"}],staticClass:"form-control",on:{change:[function(e){var r=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.$set(t.internalFilterByProp(n.prop),"value",e.target.multiple?r:r[0])},function(e){return t.onChangeFilter(e)}]}},[e("option",{attrs:{value:""}}),n.options?t._l(n.options,(function(n){return e("option",{key:n.id?n.id:n.value,domProps:{value:n.id?n.id:n.value}},[t._v(" "+t._s(n.text?n.text:n.label?n.label:"")+" ")])})):t._e()],2)]):e("div",{staticClass:"form-group"},[e("label",[t._v(t._s(n.label))]),e("input",{directives:[{name:"model",rawName:"v-model.lazy",value:t.internalFilterByProp(n.prop).value,expression:"internalFilterByProp(column.prop).value",modifiers:{lazy:!0}}],staticClass:"form-control",domProps:{value:t.internalFilterByProp(n.prop).value},on:{change:[function(e){t.$set(t.internalFilterByProp(n.prop),"value",e.target.value)},function(e){return t.onChangeFilter(e)}]}})])]}),{column:n,filter:t.filter,internalFilterByProp:t.internalFilterByProp}):t._e()],2):t._e()])})),e("div",{staticClass:"mt-3 d-flex justify-content-center"},[e("button",{staticClass:"btn btn-light",on:{click:function(e){return t.resetFilters()}}},[t._v(" Reset ")]),e("button",{staticClass:"btn btn-info",on:{click:function(e){return t.onChangeFilter(e)}}},[t._v(" Filtrar ")])])],2)]}),{createItem:t.createItem,toggleDisplayMode:t.toggleDisplayMode,loading:t.loading,isColumnHasFilter:t.isColumnHasFilter,setFilter:t.setFilter})],2),e("div",{staticClass:"table-options"},[e("b-button-group",{staticClass:"mr-1"},[t._t("tableActions",(function(){return[t._t("tableActionsPrepend",null,{loading:t.loading}),t.showCreateBtn?e("b-button",{attrs:{variant:"success",disabled:t.loading},on:{click:function(e){return t.createItem()}}},[e("b-icon-plus"),t._v(t._s(t.messageNew)+" ")],1):t._e(),t.enableFilters?e("b-button",{on:{click:function(e){return t.toggleFilters()}}},[t._v("Filtros")]):t._e(),e("b-button",{on:{click:function(e){return t.refresh()}}},[e("b-icon-arrow-clockwise")],1),t.displayModeToggler?e("b-button",{attrs:{variant:"info",disabled:t.loading},on:{click:function(e){return t.toggleDisplayMode()}}},[t.displayMode==t.displayModes.MODE_TABLE?e("b-icon-card-list"):t._e(),t.displayMode==t.displayModes.MODE_CARDS?e("b-icon-table"):t._e()],1):t._e(),t.showSearch?e("div",{staticClass:"crud-search m-0"},[e("b-input-group",[e("b-input-group-prepend",[e("b-button",{class:{open:t.displaySearch},attrs:{variant:"info"},on:{click:function(e){t.displaySearch=!t.displaySearch}}},[e("b-icon-search")],1)],1),t.displaySearch?e("b-form-input",{staticClass:"pl-2",attrs:{type:"search",required:"",placeholder:t.searchPlaceholder,debounce:"500"},model:{value:t.search,callback:function(e){t.search=e},expression:"search"}}):t._e()],1),t._t("tableActionsAppend",null,{loading:t.loading})],2):t._e()]}),{createItem:t.createItem,toggleDisplayMode:t.toggleDisplayMode,loading:t.loading})],2)],1)],1):t._e(),t.displayMode==t.displayModes.MODE_TABLE?e("div",{class:["table-responsive",t.tableContainerClass]},[e("table",{class:["table table-hover table-striped w-100",t.tableClass]},[e("thead",{staticClass:"thead-light"},[e("tr",[t._t("rowHead",(function(){return t._l(t.columns,(function(n,r){return e("th",{key:r,style:{width:n.width?n.width:"inherit"},attrs:{scope:"col"}},[t.enableFilters&&t.filtersVisible&&t.isColumnHasFilter(n)&&t.internalFilterByProp(n.prop)?t._t("filter-"+n.prop,(function(){return[e("div",{staticClass:"form-group"},["boolean"==n.type?e("select",{directives:[{name:"model",rawName:"v-model",value:t.internalFilterByProp(n.prop).value,expression:"internalFilterByProp(column.prop).value"}],staticClass:"form-control form-control-md p-2",on:{change:[function(e){var r=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.$set(t.internalFilterByProp(n.prop),"value",e.target.multiple?r:r[0])},function(e){return t.onChangeFilter(e)}]}},[e("option",{attrs:{value:""}},[t._v(t._s(n.label))]),e("option",{attrs:{value:"1"}},[t._v("Sí")]),e("option",{attrs:{value:"0"}},[t._v("No")])]):"date"==n.type?e("div",{staticClass:"row"},[e("div",{staticClass:"col-6"},[e("b-form-datepicker",{staticClass:"form-control-md p-2",attrs:{"today-button":"","reset-button":"","close-button":"",locale:"es"},model:{value:t.internalFilterByProp(n.prop+"_from").value,callback:function(e){t.$set(t.internalFilterByProp(n.prop+"_from"),"value",e)},expression:"internalFilterByProp(column.prop + '_from').value\n "}})],1),e("div",{staticClass:"col-6"},[e("b-form-datepicker",{staticClass:"form-control-md p-2",attrs:{"today-button":"","reset-button":"","close-button":"",locale:"es"},model:{value:t.internalFilterByProp(n.prop+"_to").value,callback:function(e){t.$set(t.internalFilterByProp(n.prop+"_to"),"value",e)},expression:"internalFilterByProp(column.prop + '_to').value\n "}})],1)]):"state"==n.type?e("select",{directives:[{name:"model",rawName:"v-model",value:t.internalFilterByProp(n.prop).value,expression:"internalFilterByProp(column.prop).value"}],staticClass:"form-control form-control-md p-2",on:{change:[function(e){var r=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.$set(t.internalFilterByProp(n.prop),"value",e.target.multiple?r:r[0])},function(e){return t.onChangeFilter(e)}]}},[e("option",{attrs:{value:""}},[t._v(t._s(n.label))]),t._l(n.options,(function(n,r){return e("option",{key:r,domProps:{value:n.id}},[t._v(" "+t._s(n.text?n.text:n.label?n.label:"")+" ")])}))],2):"array"==n.type?e("select",{directives:[{name:"model",rawName:"v-model",value:t.internalFilterByProp(n.prop).value,expression:"internalFilterByProp(column.prop).value"}],staticClass:"form-control form-control-md p-2",on:{change:[function(e){var r=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.$set(t.internalFilterByProp(n.prop),"value",e.target.multiple?r:r[0])},function(e){return t.onChangeFilter(e)}]}},[e("option",{attrs:{value:""}},[t._v(t._s(n.label))]),t._l(n.options,(function(n,r){return e("option",{key:r,domProps:{value:n.id}},[t._v(" "+t._s(n.text?n.text:n.label?n.label:"")+" ")])}))],2):"checkbox"==n.type?e("b-form-checkbox",{attrs:{name:"select-all"},on:{change:function(e){return t.toggleAll()}}}):e("input",{directives:[{name:"model",rawName:"v-model",value:t.internalFilterByProp(n.prop).value,expression:"internalFilterByProp(column.prop).value"}],staticClass:"form-control form-control-md p-2",attrs:{placeholder:n.label},domProps:{value:t.internalFilterByProp(n.prop).value},on:{change:function(e){return t.onChangeFilter(e)},input:function(e){e.target.composing||t.$set(t.internalFilterByProp(n.prop),"value",e.target.value)}}})],1)]}),{column:n,filter:t.filter,internalFilterByProp:t.internalFilterByProp}):e("span",[t._v(t._s(n.label))]),t.sortable&&t.internalFilterByProp(n.prop+"_sort")?e("span",{staticClass:"sort-filter",on:{click:function(e){return t.toggleSortFilter(n)}}},[t.internalFilterByProp(n.prop+"_sort").value?t._e():e("b-icon-sort-down"),"ASC"==t.internalFilterByProp(n.prop+"_sort").value?e("b-icon-sort-up"):t._e(),"DESC"==t.internalFilterByProp(n.prop+"_sort").value?e("b-icon-sort-down"):t._e()],1):t._e()],2)}))}))],2)]),e("draggable",{attrs:{group:t.draggableGroup,tag:"tbody",draggable:t.orderable?".item":".none",options:t.draggableOptions},on:{start:function(e){t.drag=!0},end:function(e){t.drag=!1},sort:function(e){return t.onSort()},add:function(e){return t.onDraggableAdded(e)},change:function(e){return t.onDraggableChange(e)}},model:{value:t.items,callback:function(e){t.items=e},expression:"items"}},[t._l(t.itemsList,(function(n,r){return e("tr",{key:r,staticClass:"item",on:{mouseover:function(e){return t.onRowHover(n,r)},click:function(e){return t.onRowClick(n,r)}}},[n.group?e("th",{attrs:{colspan:t.columns.length}},[e("span",[t._v(t._s(n.label))])]):t._t("row",(function(){return t._l(t.columns,(function(i,o){return e("td",{key:o,attrs:{scope:"id"==i.prop?"row":""}},[t._t("cell-"+i.prop,(function(){return["boolean"==i.type?e("span",["true"==t.itemValue(i,n)||1==t.itemValue(i,n)||"1"==t.itemValue(i,n)?e("b-badge",{attrs:{variant:"success"}},[e("b-icon-check-circle")],1):t._e(),t.itemValue(i,n)&&"0"!=t.itemValue(i,n)&&"false"!=t.itemValue(i,n)?t._e():e("b-badge",{attrs:{variant:"danger"}},[e("b-icon-x-circle")],1)],1):"date"==i.type?e("span",[t._v(" "+t._s(t.itemValue(i,n)?t.moment(t.itemValue(i,n)).format(i.format?i.format:"L LT"):t.itemValue(i,n))+" ")]):"select"==i.type?e("span",[e("b-form-checkbox",{on:{change:function(e){return t.onCheckSelect(e,n)}},model:{value:n.selected,callback:function(e){t.$set(n,"selected",e)},expression:"item.selected"}})],1):"state"==i.type?e("span",[t._v(" "+t._s(t.getStateValue(t.itemValue(i,n),i.options))+" ")]):"array"==i.type?e("span",[t._v(" "+t._s(t.getArrayValue(t.itemValue(i,n),i.displayProp))+" ")]):e("span",[t._v(" "+t._s(t.itemValue(i,n))+" ")])]}),{item:n,index:r,itemindex:r,columnindex:o}),"actions"==i.type?e("b-button-group",[t._t("rowAction",(function(){return[e("b-button",{attrs:{variant:"primary"},on:{click:function(e){return t.showItem(n.id,r)}}},[e("b-icon-eye")],1),e("b-button",{attrs:{variant:"secondary"},on:{click:function(e){return t.updateItem(n.id,r)}}},[e("b-icon-pencil")],1),e("b-button",{attrs:{variant:"danger"},on:{click:function(e){return t.removeItem(n.id,r)}}},[e("b-icon-trash")],1)]}),{item:n,index:r,showItem:t.showItem,updateItem:t.updateItem,removeItem:t.removeItem})],2):t._e()],2)}))}),{item:n})],2)})),t.infiniteScroll?e("infinite-loading",{on:{infinite:t.infiniteHandler}},[e("div",{attrs:{slot:"spinner"},slot:"spinner"},[e("div",{staticClass:"text-center"},[t._v(t._s(t.messageLoading))])]),e("div",{attrs:{slot:"no-more"},slot:"no-more"},[e("div",{staticClass:"text-center"},[t._v(t._s(t.messageNoMore))])]),e("div",{attrs:{slot:"no-results"},slot:"no-results"},[e("div",{staticClass:"text-center"},[t._v(t._s(t.messageEmptyResults))])])]):t._e()],2)],1),t.loading||0!=t.items.length||t.infiniteScroll?t._e():e("p",{staticClass:"p-3"},[t._v(" "+t._s(t.messageEmptyResults)+" ")])]):t._e(),t.displayMode==t.displayModes.MODE_CARDS?e("div",[t.loading||0!=t.items.length||t.infiniteScroll?t._e():e("p",{staticClass:"p-3"},[t._v(" "+t._s(t.messageEmptyResults)+" ")]),e("draggable",{staticClass:"row",attrs:{group:t.draggableGroup,draggable:t.orderable?".item":".none",options:t.draggableOptions},on:{start:function(e){t.drag=!0},end:function(e){t.drag=!1},sort:function(e){return t.onSort()},add:function(e){return t.onDraggableAdded(e)},change:function(e){return t.onDraggableChange(e)}},model:{value:t.items,callback:function(e){t.items=e},expression:"items"}},[t._l(t.itemsList,(function(n,r){return e("b-col",{key:r,staticClass:"item",attrs:{cols:t.colXs,sm:t.colSm,md:t.colMd,lg:t.colLg,xl:t.colXl}},[e("b-card",{staticClass:"mb-2 card-crud",class:t.cardClass,attrs:{title:n.title,tag:"article",hideFooter:t.cardHideFooter},scopedSlots:t._u([{key:"footer",fn:function(){return[e("b-button-group",[t._t("rowAction",(function(){return[e("b-button",{attrs:{variant:"primary"},on:{click:function(e){return t.showItem(n.id,r)}}},[e("b-icon-eye")],1),e("b-button",{attrs:{variant:"secondary"},on:{click:function(e){return t.updateItem(n.id,r)}}},[e("b-icon-pencil")],1),e("b-button",{attrs:{variant:"danger"},on:{click:function(e){return t.removeItem(n.id,r)}}},[e("b-icon-trash")],1)]}),{item:n,index:r,showItem:t.showItem,updateItem:t.updateItem,removeItem:t.removeItem})],2)]},proxy:!0}],null,!0)},[t._t("card",(function(){return t._l(t.columns,(function(i,o){return e("div",{key:o},["actions"!=i.type?e("b-card-text",[t._v(t._s(i.label)+": "),t._t("cell-"+i.prop,(function(){return["boolean"==i.type?e("span",["true"==t.itemValue(i,n)||1==t.itemValue(i,n)||"1"==t.itemValue(i,n)?e("b-badge",{attrs:{variant:"success"}},[e("b-icon-check-circle")],1):t._e(),t.itemValue(i,n)&&"0"!=t.itemValue(i,n)&&"false"!=t.itemValue(i,n)?t._e():e("b-badge",{attrs:{variant:"danger"}},[e("b-icon-x-circle")],1)],1):"date"==i.type?e("span",[t._v(" "+t._s(t.itemValue(i,n))+" ")]):"state"==i.type?e("span",[t._v(" "+t._s(t.getStateValue(t.itemValue(i,n),i.options))+" ")]):"array"==i.type?e("span",[t._v(" "+t._s(t.getArrayValue(t.itemValue(i,n),i.displayProp))+" ")]):e("span",[t._v(" "+t._s(t.itemValue(i,n))+" ")])]}),{item:n,index:r,itemindex:r,columnindex:o})],2):t._e()],1)}))}),{item:n})],2)],1)})),t.infiniteScroll?e("infinite-loading",{on:{infinite:t.infiniteHandler}},[e("div",{attrs:{slot:"spinner"},slot:"spinner"},[e("div",{staticClass:"text-center col-12"},[t._v(t._s(t.messageLoading))])]),e("div",{attrs:{slot:"no-more"},slot:"no-more"},[e("div",{staticClass:"text-center col-12"},[t._v(t._s(t.messageNoMore))])]),e("div",{attrs:{slot:"no-results"},slot:"no-results"},[e("div",{staticClass:"text-center col-12"},[t._v(t._s(t.messageEmptyResults))])])]):t._e()],2)],1):t._e(),t.displayMode==t.displayModes.MODE_CUSTOM?e("div",[e("div",{class:t.listContainerClass},[0==t.items.length?e("p",{staticClass:"p-3"},[t._v(" "+t._s(t.messageEmptyResults)+" ")]):t._e(),t._l(t.itemsList,(function(n,r){return e("div",{key:r,class:t.listItemClass},[t._t("card",null,{item:n})],2)}))],2)]):t._e(),e("b-overlay",{attrs:{show:t.loading,rounded:"sm"}}),t.infiniteScroll?t._e():e("div",{staticClass:"crud-paginator"},[t.showPaginator?e("b-pagination",{attrs:{"total-rows":t.pagination.total,"per-page":t.pagination.per_page},on:{change:function(e){return t.onPaginationChange(e)}},model:{value:t.pagination.current_page,callback:function(e){t.$set(t.pagination,"current_page",e)},expression:"pagination.current_page"}}):t._e()],1),e("b-modal",{attrs:{id:"modal-form-item-"+t.modelName,"hide-footer":"",size:"xl",title:t.title,"no-close-on-backdrop":""}},[e("b-overlay",{attrs:{show:t.loading,rounded:"sm"}},[t.validate?[e("form",{on:{submit:t.saveItem}},[t.item?t._t("form",(function(){return[e("b-form-group",{attrs:{label:"Nombre:",description:"Nombre "}},[e("b-form-input",{attrs:{type:"text",required:"",placeholder:"Nombre"},model:{value:t.item.title,callback:function(e){t.$set(t.item,"title",e)},expression:"item.title"}})],1)]}),{item:t.item}):t._e(),e("b-button",{attrs:{block:"",type:"submit",variant:"success",disabled:t.loading}},[t.loading?e("b-spinner",{attrs:{small:""}}):t._e(),t._v(t._s(t.messageSave)+" ")],1)],2)]:t._e(),t.validate?t._e():[t.item?t._t("form",(function(){return t._l(t.item,(function(n,r){return e("b-form-group",{key:r,attrs:{label:r}},[e("b-form-input",{attrs:{type:"text",required:""},model:{value:t.item[r],callback:function(e){t.$set(t.item,r,e)},expression:"item[key]"}})],1)}))}),{item:t.item}):t._e(),e("b-button",{attrs:{block:"",type:"submit",variant:"success",disabled:t.loading},on:{click:function(e){return t.saveItem()}}},[t.loading?e("b-spinner",{attrs:{small:""}}):t._e(),t._v(t._s(t.messageSave)+" ")],1)]],2)],1),e("b-modal",{attrs:{id:"modal-show-item-"+t.modelName,"hide-footer":"",size:"xl",title:t.title,"no-close-on-backdrop":""}},[t.item?t._t("show",(function(){return[e("b-list-group",t._l(t.item,(function(n,r){return e("b-list-group-item",{key:r},[e("b-row",[e("b-col",{staticClass:"font-weight-bold",attrs:{cols:"4"}},[t._v(t._s(r))]),e("b-col",{attrs:{cols:"8"}},[t._v(t._s(JSON.stringify(n)))])],1)],1)})),1)]}),{item:t.item}):t._e()],2)],1)},mi=fi(hi,pi,[],!1,null,"7bd60172",null,null).exports,gi=function(){var t=mi;return t.install=function(e){e.component("VueLaravelCrud",t)},t}(),vi=Object.freeze({__proto__:null,default:gi});return Object.entries(vi).forEach((function(t){var e=i(t,2),n=e[0],r=e[1];"default"!==n&&(gi[n]=r)})),gi}();
|
|
@@ -17319,7 +17319,7 @@ var vueInfiniteLoading = {
|
|
|
17319
17319
|
!function(t,e){module.exports=e();}(commonjsGlobal,(function(){return function(t){var e={};function n(i){if(e[i])return e[i].exports;var a=e[i]={i:i,l:!1,exports:{}};return t[i].call(a.exports,a,a.exports,n),a.l=!0,a.exports}return n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i});},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0});},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var a in t)n.d(i,a,function(e){return t[e]}.bind(null,a));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=9)}([function(t,e,n){var i=n(6);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);(0, n(3).default)("6223ff68",i,!0,{});},function(t,e,n){var i=n(8);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);(0, n(3).default)("27f0e51f",i,!0,{});},function(t,e){t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n=function(t,e){var n=t[1]||"",i=t[3];if(!i)return n;if(e&&"function"==typeof btoa){var a=(o=i,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */"),r=i.sources.map((function(t){return "/*# sourceURL="+i.sourceRoot+t+" */"}));return [n].concat(r).concat([a]).join("\n")}var o;return [n].join("\n")}(e,t);return e[2]?"@media "+e[2]+"{"+n+"}":n})).join("")},e.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var i={},a=0;a<this.length;a++){var r=this[a][0];"number"==typeof r&&(i[r]=!0);}for(a=0;a<t.length;a++){var o=t[a];"number"==typeof o[0]&&i[o[0]]||(n&&!o[2]?o[2]=n:n&&(o[2]="("+o[2]+") and ("+n+")"),e.push(o));}},e};},function(t,e,n){function i(t,e){for(var n=[],i={},a=0;a<e.length;a++){var r=e[a],o=r[0],s={id:t+":"+a,css:r[1],media:r[2],sourceMap:r[3]};i[o]?i[o].parts.push(s):n.push(i[o]={id:o,parts:[s]});}return n}n.r(e),n.d(e,"default",(function(){return f}));var a="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!a)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 r={},o=a&&(document.head||document.getElementsByTagName("head")[0]),s=null,l=0,d=!1,c=function(){},u=null,p="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function f(t,e,n,a){d=n,u=a||{};var o=i(t,e);return b(o),function(e){for(var n=[],a=0;a<o.length;a++){var s=o[a];(l=r[s.id]).refs--,n.push(l);}e?b(o=i(t,e)):o=[];for(a=0;a<n.length;a++){var l;if(0===(l=n[a]).refs){for(var d=0;d<l.parts.length;d++)l.parts[d]();delete r[l.id];}}}}function b(t){for(var e=0;e<t.length;e++){var n=t[e],i=r[n.id];if(i){i.refs++;for(var a=0;a<i.parts.length;a++)i.parts[a](n.parts[a]);for(;a<n.parts.length;a++)i.parts.push(m(n.parts[a]));i.parts.length>n.parts.length&&(i.parts.length=n.parts.length);}else {var o=[];for(a=0;a<n.parts.length;a++)o.push(m(n.parts[a]));r[n.id]={id:n.id,refs:1,parts:o};}}}function h(){var t=document.createElement("style");return t.type="text/css",o.appendChild(t),t}function m(t){var e,n,i=document.querySelector('style[data-vue-ssr-id~="'+t.id+'"]');if(i){if(d)return c;i.parentNode.removeChild(i);}if(p){var a=l++;i=s||(s=h()),e=w.bind(null,i,a,!1),n=w.bind(null,i,a,!0);}else i=h(),e=y.bind(null,i),n=function(){i.parentNode.removeChild(i);};return e(t),function(i){if(i){if(i.css===t.css&&i.media===t.media&&i.sourceMap===t.sourceMap)return;e(t=i);}else n();}}var g,v=(g=[],function(t,e){return g[t]=e,g.filter(Boolean).join("\n")});function w(t,e,n,i){var a=n?"":i.css;if(t.styleSheet)t.styleSheet.cssText=v(e,a);else {var r=document.createTextNode(a),o=t.childNodes;o[e]&&t.removeChild(o[e]),o.length?t.insertBefore(r,o[e]):t.appendChild(r);}}function y(t,e){var n=e.css,i=e.media,a=e.sourceMap;if(i&&t.setAttribute("media",i),u.ssrId&&t.setAttribute("data-vue-ssr-id",e.id),a&&(n+="\n/*# sourceURL="+a.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(a))))+" */"),t.styleSheet)t.styleSheet.cssText=n;else {for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n));}}},function(t,e){function n(e){return "function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?t.exports=n=function(t){return typeof t}:t.exports=n=function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(e)}t.exports=n;},function(t,e,n){n.r(e);var i=n(0),a=n.n(i);for(var r in i)"default"!==r&&function(t){n.d(e,t,(function(){return i[t]}));}(r);e.default=a.a;},function(t,e,n){(t.exports=n(2)(!1)).push([t.i,'.loading-wave-dots[data-v-46b20d22]{position:relative}.loading-wave-dots[data-v-46b20d22] .wave-item{position:absolute;top:50%;left:50%;display:inline-block;margin-top:-4px;width:8px;height:8px;border-radius:50%;-webkit-animation:loading-wave-dots-data-v-46b20d22 linear 2.8s infinite;animation:loading-wave-dots-data-v-46b20d22 linear 2.8s infinite}.loading-wave-dots[data-v-46b20d22] .wave-item:first-child{margin-left:-36px}.loading-wave-dots[data-v-46b20d22] .wave-item:nth-child(2){margin-left:-20px;-webkit-animation-delay:.14s;animation-delay:.14s}.loading-wave-dots[data-v-46b20d22] .wave-item:nth-child(3){margin-left:-4px;-webkit-animation-delay:.28s;animation-delay:.28s}.loading-wave-dots[data-v-46b20d22] .wave-item:nth-child(4){margin-left:12px;-webkit-animation-delay:.42s;animation-delay:.42s}.loading-wave-dots[data-v-46b20d22] .wave-item:last-child{margin-left:28px;-webkit-animation-delay:.56s;animation-delay:.56s}@-webkit-keyframes loading-wave-dots-data-v-46b20d22{0%{-webkit-transform:translateY(0);transform:translateY(0);background:#bbb}10%{-webkit-transform:translateY(-6px);transform:translateY(-6px);background:#999}20%{-webkit-transform:translateY(0);transform:translateY(0);background:#bbb}to{-webkit-transform:translateY(0);transform:translateY(0);background:#bbb}}@keyframes loading-wave-dots-data-v-46b20d22{0%{-webkit-transform:translateY(0);transform:translateY(0);background:#bbb}10%{-webkit-transform:translateY(-6px);transform:translateY(-6px);background:#999}20%{-webkit-transform:translateY(0);transform:translateY(0);background:#bbb}to{-webkit-transform:translateY(0);transform:translateY(0);background:#bbb}}.loading-circles[data-v-46b20d22] .circle-item{width:5px;height:5px;-webkit-animation:loading-circles-data-v-46b20d22 linear .75s infinite;animation:loading-circles-data-v-46b20d22 linear .75s infinite}.loading-circles[data-v-46b20d22] .circle-item:first-child{margin-top:-14.5px;margin-left:-2.5px}.loading-circles[data-v-46b20d22] .circle-item:nth-child(2){margin-top:-11.26px;margin-left:6.26px}.loading-circles[data-v-46b20d22] .circle-item:nth-child(3){margin-top:-2.5px;margin-left:9.5px}.loading-circles[data-v-46b20d22] .circle-item:nth-child(4){margin-top:6.26px;margin-left:6.26px}.loading-circles[data-v-46b20d22] .circle-item:nth-child(5){margin-top:9.5px;margin-left:-2.5px}.loading-circles[data-v-46b20d22] .circle-item:nth-child(6){margin-top:6.26px;margin-left:-11.26px}.loading-circles[data-v-46b20d22] .circle-item:nth-child(7){margin-top:-2.5px;margin-left:-14.5px}.loading-circles[data-v-46b20d22] .circle-item:last-child{margin-top:-11.26px;margin-left:-11.26px}@-webkit-keyframes loading-circles-data-v-46b20d22{0%{background:#dfdfdf}90%{background:#505050}to{background:#dfdfdf}}@keyframes loading-circles-data-v-46b20d22{0%{background:#dfdfdf}90%{background:#505050}to{background:#dfdfdf}}.loading-bubbles[data-v-46b20d22] .bubble-item{background:#666;-webkit-animation:loading-bubbles-data-v-46b20d22 linear .75s infinite;animation:loading-bubbles-data-v-46b20d22 linear .75s infinite}.loading-bubbles[data-v-46b20d22] .bubble-item:first-child{margin-top:-12.5px;margin-left:-.5px}.loading-bubbles[data-v-46b20d22] .bubble-item:nth-child(2){margin-top:-9.26px;margin-left:8.26px}.loading-bubbles[data-v-46b20d22] .bubble-item:nth-child(3){margin-top:-.5px;margin-left:11.5px}.loading-bubbles[data-v-46b20d22] .bubble-item:nth-child(4){margin-top:8.26px;margin-left:8.26px}.loading-bubbles[data-v-46b20d22] .bubble-item:nth-child(5){margin-top:11.5px;margin-left:-.5px}.loading-bubbles[data-v-46b20d22] .bubble-item:nth-child(6){margin-top:8.26px;margin-left:-9.26px}.loading-bubbles[data-v-46b20d22] .bubble-item:nth-child(7){margin-top:-.5px;margin-left:-12.5px}.loading-bubbles[data-v-46b20d22] .bubble-item:last-child{margin-top:-9.26px;margin-left:-9.26px}@-webkit-keyframes loading-bubbles-data-v-46b20d22{0%{width:1px;height:1px;box-shadow:0 0 0 3px #666}90%{width:1px;height:1px;box-shadow:0 0 0 0 #666}to{width:1px;height:1px;box-shadow:0 0 0 3px #666}}@keyframes loading-bubbles-data-v-46b20d22{0%{width:1px;height:1px;box-shadow:0 0 0 3px #666}90%{width:1px;height:1px;box-shadow:0 0 0 0 #666}to{width:1px;height:1px;box-shadow:0 0 0 3px #666}}.loading-default[data-v-46b20d22]{position:relative;border:1px solid #999;-webkit-animation:loading-rotating-data-v-46b20d22 ease 1.5s infinite;animation:loading-rotating-data-v-46b20d22 ease 1.5s infinite}.loading-default[data-v-46b20d22]:before{content:"";position:absolute;display:block;top:0;left:50%;margin-top:-3px;margin-left:-3px;width:6px;height:6px;background-color:#999;border-radius:50%}.loading-spiral[data-v-46b20d22]{border:2px solid #777;border-right-color:transparent;-webkit-animation:loading-rotating-data-v-46b20d22 linear .85s infinite;animation:loading-rotating-data-v-46b20d22 linear .85s infinite}@-webkit-keyframes loading-rotating-data-v-46b20d22{0%{-webkit-transform:rotate(0);transform:rotate(0)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes loading-rotating-data-v-46b20d22{0%{-webkit-transform:rotate(0);transform:rotate(0)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}.loading-bubbles[data-v-46b20d22],.loading-circles[data-v-46b20d22]{position:relative}.loading-bubbles[data-v-46b20d22] .bubble-item,.loading-circles[data-v-46b20d22] .circle-item{position:absolute;top:50%;left:50%;display:inline-block;border-radius:50%}.loading-bubbles[data-v-46b20d22] .bubble-item:nth-child(2),.loading-circles[data-v-46b20d22] .circle-item:nth-child(2){-webkit-animation-delay:93ms;animation-delay:93ms}.loading-bubbles[data-v-46b20d22] .bubble-item:nth-child(3),.loading-circles[data-v-46b20d22] .circle-item:nth-child(3){-webkit-animation-delay:.186s;animation-delay:.186s}.loading-bubbles[data-v-46b20d22] .bubble-item:nth-child(4),.loading-circles[data-v-46b20d22] .circle-item:nth-child(4){-webkit-animation-delay:.279s;animation-delay:.279s}.loading-bubbles[data-v-46b20d22] .bubble-item:nth-child(5),.loading-circles[data-v-46b20d22] .circle-item:nth-child(5){-webkit-animation-delay:.372s;animation-delay:.372s}.loading-bubbles[data-v-46b20d22] .bubble-item:nth-child(6),.loading-circles[data-v-46b20d22] .circle-item:nth-child(6){-webkit-animation-delay:.465s;animation-delay:.465s}.loading-bubbles[data-v-46b20d22] .bubble-item:nth-child(7),.loading-circles[data-v-46b20d22] .circle-item:nth-child(7){-webkit-animation-delay:.558s;animation-delay:.558s}.loading-bubbles[data-v-46b20d22] .bubble-item:last-child,.loading-circles[data-v-46b20d22] .circle-item:last-child{-webkit-animation-delay:.651s;animation-delay:.651s}',""]);},function(t,e,n){n.r(e);var i=n(1),a=n.n(i);for(var r in i)"default"!==r&&function(t){n.d(e,t,(function(){return i[t]}));}(r);e.default=a.a;},function(t,e,n){(t.exports=n(2)(!1)).push([t.i,".infinite-loading-container[data-v-644ea9c9]{clear:both;text-align:center}.infinite-loading-container[data-v-644ea9c9] [class^=loading-]{display:inline-block;margin:5px 0;width:28px;height:28px;font-size:28px;line-height:28px;border-radius:50%}.btn-try-infinite[data-v-644ea9c9]{margin-top:5px;padding:5px 10px;color:#999;font-size:14px;line-height:1;background:transparent;border:1px solid #ccc;border-radius:3px;outline:none;cursor:pointer}.btn-try-infinite[data-v-644ea9c9]:not(:active):hover{opacity:.8}",""]);},function(t,e,n){n.r(e);var i={throttleLimit:50,loopCheckTimeout:1e3,loopCheckMaxCalls:10},a=function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){return t={passive:!0},!0}});window.addEventListener("testpassive",e,e),window.remove("testpassive",e,e);}catch(t){}return t}(),r={STATE_CHANGER:["emit `loaded` and `complete` event through component instance of `$refs` may cause error, so it will be deprecated soon, please use the `$state` argument instead (`$state` just the special `$event` variable):","\ntemplate:",'<infinite-loading @infinite="infiniteHandler"></infinite-loading>',"\nscript:\n...\ninfiniteHandler($state) {\n ajax('https://www.example.com/api/news')\n .then((res) => {\n if (res.data.length) {\n $state.loaded();\n } else {\n $state.complete();\n }\n });\n}\n...","","more details: https://github.com/PeachScript/vue-infinite-loading/issues/57#issuecomment-324370549"].join("\n"),INFINITE_EVENT:"`:on-infinite` property will be deprecated soon, please use `@infinite` event instead.",IDENTIFIER:"the `reset` event will be deprecated soon, please reset this component by change the `identifier` property."},o={INFINITE_LOOP:["executed the callback function more than ".concat(i.loopCheckMaxCalls," times for a short time, it looks like searched a wrong scroll wrapper that doest not has fixed height or maximum height, please check it. If you want to force to set a element as scroll wrapper ranther than automatic searching, you can do this:"),'\n\x3c!-- add a special attribute for the real scroll wrapper --\x3e\n<div infinite-wrapper>\n ...\n \x3c!-- set force-use-infinite-wrapper --\x3e\n <infinite-loading force-use-infinite-wrapper></infinite-loading>\n</div>\nor\n<div class="infinite-wrapper">\n ...\n \x3c!-- set force-use-infinite-wrapper as css selector of the real scroll wrapper --\x3e\n <infinite-loading force-use-infinite-wrapper=".infinite-wrapper"></infinite-loading>\n</div>\n ',"more details: https://github.com/PeachScript/vue-infinite-loading/issues/55#issuecomment-316934169"].join("\n")},s={READY:0,LOADING:1,COMPLETE:2,ERROR:3},l={color:"#666",fontSize:"14px",padding:"10px 0"},d={mode:"development",props:{spinner:"default",distance:100,forceUseInfiniteWrapper:!1},system:i,slots:{noResults:"No results :(",noMore:"No more data :)",error:"Opps, something went wrong :(",errorBtnText:"Retry",spinner:""},WARNINGS:r,ERRORS:o,STATUS:s},c=n(4),u=n.n(c),p={BUBBLES:{render:function(t){return t("span",{attrs:{class:"loading-bubbles"}},Array.apply(Array,Array(8)).map((function(){return t("span",{attrs:{class:"bubble-item"}})})))}},CIRCLES:{render:function(t){return t("span",{attrs:{class:"loading-circles"}},Array.apply(Array,Array(8)).map((function(){return t("span",{attrs:{class:"circle-item"}})})))}},DEFAULT:{render:function(t){return t("i",{attrs:{class:"loading-default"}})}},SPIRAL:{render:function(t){return t("i",{attrs:{class:"loading-spiral"}})}},WAVEDOTS:{render:function(t){return t("span",{attrs:{class:"loading-wave-dots"}},Array.apply(Array,Array(5)).map((function(){return t("span",{attrs:{class:"wave-item"}})})))}}};function f(t,e,n,i,a,r,o,s){var l,d="function"==typeof t?t.options:t;if(e&&(d.render=e,d.staticRenderFns=n,d._compiled=!0),i&&(d.functional=!0),r&&(d._scopeId="data-v-"+r),o?(l=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),a&&a.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(o);},d._ssrRegister=l):a&&(l=s?function(){a.call(this,this.$root.$options.shadowRoot);}:a),l)if(d.functional){d._injectStyles=l;var c=d.render;d.render=function(t,e){return l.call(e),c(t,e)};}else {var u=d.beforeCreate;d.beforeCreate=u?[].concat(u,l):[l];}return {exports:t,options:d}}var b=f({name:"Spinner",computed:{spinnerView:function(){return p[(this.$attrs.spinner||"").toUpperCase()]||this.spinnerInConfig},spinnerInConfig:function(){return d.slots.spinner&&"string"==typeof d.slots.spinner?{render:function(){return this._v(d.slots.spinner)}}:"object"===u()(d.slots.spinner)?d.slots.spinner:p[d.props.spinner.toUpperCase()]||p.DEFAULT}}},(function(){var t=this.$createElement;return (this._self._c||t)(this.spinnerView,{tag:"component"})}),[],!1,(function(t){var e=n(5);e.__inject__&&e.__inject__(t);}),"46b20d22",null).exports;function h(t){"production"!==d.mode&&console.warn("[Vue-infinite-loading warn]: ".concat(t));}function m(t){console.error("[Vue-infinite-loading error]: ".concat(t));}var g={timers:[],caches:[],throttle:function(t){var e=this;-1===this.caches.indexOf(t)&&(this.caches.push(t),this.timers.push(setTimeout((function(){t(),e.caches.splice(e.caches.indexOf(t),1),e.timers.shift();}),d.system.throttleLimit)));},reset:function(){this.timers.forEach((function(t){clearTimeout(t);})),this.timers.length=0,this.caches=[];}},v={isChecked:!1,timer:null,times:0,track:function(){var t=this;this.times+=1,clearTimeout(this.timer),this.timer=setTimeout((function(){t.isChecked=!0;}),d.system.loopCheckTimeout),this.times>d.system.loopCheckMaxCalls&&(m(o.INFINITE_LOOP),this.isChecked=!0);}},w={key:"_infiniteScrollHeight",getScrollElm:function(t){return t===window?document.documentElement:t},save:function(t){var e=this.getScrollElm(t);e[this.key]=e.scrollHeight;},restore:function(t){var e=this.getScrollElm(t);"number"==typeof e[this.key]&&(e.scrollTop=e.scrollHeight-e[this.key]+e.scrollTop),this.remove(e);},remove:function(t){void 0!==t[this.key]&&delete t[this.key];}};function y(t){return t.replace(/[A-Z]/g,(function(t){return "-".concat(t.toLowerCase())}))}function x(t){return t.offsetWidth+t.offsetHeight>0}var k=f({name:"InfiniteLoading",data:function(){return {scrollParent:null,scrollHandler:null,isFirstLoad:!0,status:s.READY,slots:d.slots}},components:{Spinner:b},computed:{isShowSpinner:function(){return this.status===s.LOADING},isShowError:function(){return this.status===s.ERROR},isShowNoResults:function(){return this.status===s.COMPLETE&&this.isFirstLoad},isShowNoMore:function(){return this.status===s.COMPLETE&&!this.isFirstLoad},slotStyles:function(){var t=this,e={};return Object.keys(d.slots).forEach((function(n){var i=y(n);(!t.$slots[i]&&!d.slots[n].render||t.$slots[i]&&!t.$slots[i][0].tag)&&(e[n]=l);})),e}},props:{distance:{type:Number,default:d.props.distance},spinner:String,direction:{type:String,default:"bottom"},forceUseInfiniteWrapper:{type:[Boolean,String],default:d.props.forceUseInfiniteWrapper},identifier:{default:+new Date},onInfinite:Function},watch:{identifier:function(){this.stateChanger.reset();}},mounted:function(){var t=this;this.$watch("forceUseInfiniteWrapper",(function(){t.scrollParent=t.getScrollParent();}),{immediate:!0}),this.scrollHandler=function(e){t.status===s.READY&&(e&&e.constructor===Event&&x(t.$el)?g.throttle(t.attemptLoad):t.attemptLoad());},setTimeout((function(){t.scrollHandler(),t.scrollParent.addEventListener("scroll",t.scrollHandler,a);}),1),this.$on("$InfiniteLoading:loaded",(function(e){t.isFirstLoad=!1,"top"===t.direction&&t.$nextTick((function(){w.restore(t.scrollParent);})),t.status===s.LOADING&&t.$nextTick(t.attemptLoad.bind(null,!0)),e&&e.target===t||h(r.STATE_CHANGER);})),this.$on("$InfiniteLoading:complete",(function(e){t.status=s.COMPLETE,t.$nextTick((function(){t.$forceUpdate();})),t.scrollParent.removeEventListener("scroll",t.scrollHandler,a),e&&e.target===t||h(r.STATE_CHANGER);})),this.$on("$InfiniteLoading:reset",(function(e){t.status=s.READY,t.isFirstLoad=!0,w.remove(t.scrollParent),t.scrollParent.addEventListener("scroll",t.scrollHandler,a),setTimeout((function(){g.reset(),t.scrollHandler();}),1),e&&e.target===t||h(r.IDENTIFIER);})),this.stateChanger={loaded:function(){t.$emit("$InfiniteLoading:loaded",{target:t});},complete:function(){t.$emit("$InfiniteLoading:complete",{target:t});},reset:function(){t.$emit("$InfiniteLoading:reset",{target:t});},error:function(){t.status=s.ERROR,g.reset();}},this.onInfinite&&h(r.INFINITE_EVENT);},deactivated:function(){this.status===s.LOADING&&(this.status=s.READY),this.scrollParent.removeEventListener("scroll",this.scrollHandler,a);},activated:function(){this.scrollParent.addEventListener("scroll",this.scrollHandler,a);},methods:{attemptLoad:function(t){var e=this;this.status!==s.COMPLETE&&x(this.$el)&&this.getCurrentDistance()<=this.distance?(this.status=s.LOADING,"top"===this.direction&&this.$nextTick((function(){w.save(e.scrollParent);})),"function"==typeof this.onInfinite?this.onInfinite.call(null,this.stateChanger):this.$emit("infinite",this.stateChanger),!t||this.forceUseInfiniteWrapper||v.isChecked||v.track()):this.status===s.LOADING&&(this.status=s.READY);},getCurrentDistance:function(){var t;"top"===this.direction?t="number"==typeof this.scrollParent.scrollTop?this.scrollParent.scrollTop:this.scrollParent.pageYOffset:t=this.$el.getBoundingClientRect().top-(this.scrollParent===window?window.innerHeight:this.scrollParent.getBoundingClientRect().bottom);return t},getScrollParent:function(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.$el;return "string"==typeof this.forceUseInfiniteWrapper&&(t=document.querySelector(this.forceUseInfiniteWrapper)),t||("BODY"===e.tagName?t=window:!this.forceUseInfiniteWrapper&&["scroll","auto"].indexOf(getComputedStyle(e).overflowY)>-1?t=e:(e.hasAttribute("infinite-wrapper")||e.hasAttribute("data-infinite-wrapper"))&&(t=e)),t||this.getScrollParent(e.parentNode)}},destroyed:function(){!this.status!==s.COMPLETE&&(g.reset(),w.remove(this.scrollParent),this.scrollParent.removeEventListener("scroll",this.scrollHandler,a));}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"infinite-loading-container"},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.isShowSpinner,expression:"isShowSpinner"}],staticClass:"infinite-status-prompt",style:t.slotStyles.spinner},[t._t("spinner",[n("spinner",{attrs:{spinner:t.spinner}})])],2),t._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:t.isShowNoResults,expression:"isShowNoResults"}],staticClass:"infinite-status-prompt",style:t.slotStyles.noResults},[t._t("no-results",[t.slots.noResults.render?n(t.slots.noResults,{tag:"component"}):[t._v(t._s(t.slots.noResults))]])],2),t._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:t.isShowNoMore,expression:"isShowNoMore"}],staticClass:"infinite-status-prompt",style:t.slotStyles.noMore},[t._t("no-more",[t.slots.noMore.render?n(t.slots.noMore,{tag:"component"}):[t._v(t._s(t.slots.noMore))]])],2),t._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:t.isShowError,expression:"isShowError"}],staticClass:"infinite-status-prompt",style:t.slotStyles.error},[t._t("error",[t.slots.error.render?n(t.slots.error,{tag:"component",attrs:{trigger:t.attemptLoad}}):[t._v("\n "+t._s(t.slots.error)+"\n "),n("br"),t._v(" "),n("button",{staticClass:"btn-try-infinite",domProps:{textContent:t._s(t.slots.errorBtnText)},on:{click:t.attemptLoad}})]],{trigger:t.attemptLoad})],2)])}),[],!1,(function(t){var e=n(7);e.__inject__&&e.__inject__(t);}),"644ea9c9",null).exports;function E(t){d.mode=t.config.productionTip?"development":"production";}Object.defineProperty(k,"install",{configurable:!1,enumerable:!1,value:function(t,e){Object.assign(d.props,e&&e.props),Object.assign(d.slots,e&&e.slots),Object.assign(d.system,e&&e.system),t.component("infinite-loading",k),E(t);}}),"undefined"!=typeof window&&window.Vue&&(window.Vue.component("infinite-loading",k),E(window.Vue));e.default=k;}])}));
|
|
17320
17320
|
} (vueInfiniteLoading));
|
|
17321
17321
|
|
|
17322
|
-
var InfiniteLoading = /*@__PURE__*/getDefaultExportFromCjs(vueInfiniteLoadingExports);var e=[],t=[];function n(n,r){if(n&&"undefined"!=typeof document){var a,s=!0===r.prepend?"prepend":"append",d=!0===r.singleTag,i="string"==typeof r.container?document.querySelector(r.container):document.getElementsByTagName("head")[0];if(d){var u=e.indexOf(i);-1===u&&(u=e.push(i)-1,t[u]={}),a=t[u]&&t[u][s]?t[u][s]:t[u][s]=c();}else a=c();65279===n.charCodeAt(0)&&(n=n.substring(1)),a.styleSheet?a.styleSheet.cssText+=n:a.appendChild(document.createTextNode(n));}function c(){var e=document.createElement("style");if(e.setAttribute("type","text/css"),r.attributes)for(var t=Object.keys(r.attributes),n=0;n<t.length;n++)e.setAttribute(t[n],r.attributes[t[n]]);var a="prepend"===s?"afterbegin":"beforeend";return i.insertAdjacentElement(a,e),e}}var css = "tr td[data-v-
|
|
17322
|
+
var InfiniteLoading = /*@__PURE__*/getDefaultExportFromCjs(vueInfiniteLoadingExports);var e=[],t=[];function n(n,r){if(n&&"undefined"!=typeof document){var a,s=!0===r.prepend?"prepend":"append",d=!0===r.singleTag,i="string"==typeof r.container?document.querySelector(r.container):document.getElementsByTagName("head")[0];if(d){var u=e.indexOf(i);-1===u&&(u=e.push(i)-1,t[u]={}),a=t[u]&&t[u][s]?t[u][s]:t[u][s]=c();}else a=c();65279===n.charCodeAt(0)&&(n=n.substring(1)),a.styleSheet?a.styleSheet.cssText+=n:a.appendChild(document.createTextNode(n));}function c(){var e=document.createElement("style");if(e.setAttribute("type","text/css"),r.attributes)for(var t=Object.keys(r.attributes),n=0;n<t.length;n++)e.setAttribute(t[n],r.attributes[t[n]]);var a="prepend"===s?"afterbegin":"beforeend";return i.insertAdjacentElement(a,e),e}}var css = "tr td[data-v-7bd60172]:last-child,\ntr td[data-v-7bd60172]:first-child {\n width: 1%;\n white-space: nowrap; }\n\n.crud-pagination[data-v-7bd60172] {\n display: flex;\n justify-content: center; }\n\n.crud-header[data-v-7bd60172] {\n display: flex;\n justify-content: space-between;\n max-height: 3rem; }\n .crud-header[data-v-7bd60172] .crud-title[data-v-7bd60172] {\n margin: 0; }\n .crud-header[data-v-7bd60172] .crud-search[data-v-7bd60172] {\n max-width: 15rem; }\n .crud-header[data-v-7bd60172] .crud-search[data-v-7bd60172] .btn[data-v-7bd60172] {\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n border-top-right-radius: 0.375rem;\n border-bottom-right-radius: 0.375rem; }\n .crud-header[data-v-7bd60172] .crud-search[data-v-7bd60172] .btn[data-v-7bd60172].open[data-v-7bd60172] {\n border-top-right-radius: 0;\n border-bottom-right-radius: 0; }\n .crud-header[data-v-7bd60172] .table-options[data-v-7bd60172] {\n margin-bottom: 1rem;\n display: flex;\n align-items: center;\n justify-content: flex-end; }\n\n.custom-control[data-v-7bd60172] {\n position: relative;\n top: -15px; }\n\n@media (min-width: 992px) {\n .table[data-v-7bd60172] {\n table-layout: auto; }\n .table[data-v-7bd60172] tbody[data-v-7bd60172] td[data-v-7bd60172] {\n overflow: scroll;\n -ms-overflow-style: none;\n /* IE and Edge */\n scrollbar-width: none;\n /* Firefox */ }\n .table[data-v-7bd60172] tbody[data-v-7bd60172] td[data-v-7bd60172]::-webkit-scrollbar {\n display: none; } }\n";
|
|
17323
17323
|
n(css, {});function normalizeComponent (
|
|
17324
17324
|
scriptExports,
|
|
17325
17325
|
render,
|
|
@@ -18961,7 +18961,7 @@ var _sfc_render = function render() {
|
|
|
18961
18961
|
},
|
|
18962
18962
|
expression: "items"
|
|
18963
18963
|
}
|
|
18964
|
-
}, _vm._l(_vm.itemsList, function (item, index) {
|
|
18964
|
+
}, [_vm._l(_vm.itemsList, function (item, index) {
|
|
18965
18965
|
return _c('tr', {
|
|
18966
18966
|
key: index,
|
|
18967
18967
|
staticClass: "item",
|
|
@@ -19052,7 +19052,7 @@ var _sfc_render = function render() {
|
|
|
19052
19052
|
}, {
|
|
19053
19053
|
"item": item
|
|
19054
19054
|
})], 2);
|
|
19055
|
-
}),
|
|
19055
|
+
}), _vm.infiniteScroll ? _c('infinite-loading', {
|
|
19056
19056
|
on: {
|
|
19057
19057
|
"infinite": _vm.infiniteHandler
|
|
19058
19058
|
}
|
|
@@ -19077,7 +19077,7 @@ var _sfc_render = function render() {
|
|
|
19077
19077
|
slot: "no-results"
|
|
19078
19078
|
}, [_c('div', {
|
|
19079
19079
|
staticClass: "text-center"
|
|
19080
|
-
}, [_vm._v(_vm._s(_vm.messageEmptyResults))])])]) : _vm._e()], 1), !_vm.loading && _vm.items.length == 0 && !_vm.infiniteScroll ? _c('p', {
|
|
19080
|
+
}, [_vm._v(_vm._s(_vm.messageEmptyResults))])])]) : _vm._e()], 2)], 1), !_vm.loading && _vm.items.length == 0 && !_vm.infiniteScroll ? _c('p', {
|
|
19081
19081
|
staticClass: "p-3"
|
|
19082
19082
|
}, [_vm._v(" " + _vm._s(_vm.messageEmptyResults) + " ")]) : _vm._e()]) : _vm._e(), _vm.displayMode == _vm.displayModes.MODE_CARDS ? _c('div', [!_vm.loading && _vm.items.length == 0 && !_vm.infiniteScroll ? _c('p', {
|
|
19083
19083
|
staticClass: "p-3"
|
|
@@ -19112,7 +19112,7 @@ var _sfc_render = function render() {
|
|
|
19112
19112
|
},
|
|
19113
19113
|
expression: "items"
|
|
19114
19114
|
}
|
|
19115
|
-
}, _vm._l(_vm.itemsList, function (item, index) {
|
|
19115
|
+
}, [_vm._l(_vm.itemsList, function (item, index) {
|
|
19116
19116
|
return _c('b-col', {
|
|
19117
19117
|
key: index,
|
|
19118
19118
|
staticClass: "item",
|
|
@@ -19197,7 +19197,7 @@ var _sfc_render = function render() {
|
|
|
19197
19197
|
}, {
|
|
19198
19198
|
"item": item
|
|
19199
19199
|
})], 2)], 1);
|
|
19200
|
-
}),
|
|
19200
|
+
}), _vm.infiniteScroll ? _c('infinite-loading', {
|
|
19201
19201
|
on: {
|
|
19202
19202
|
"infinite": _vm.infiniteHandler
|
|
19203
19203
|
}
|
|
@@ -19207,22 +19207,22 @@ var _sfc_render = function render() {
|
|
|
19207
19207
|
},
|
|
19208
19208
|
slot: "spinner"
|
|
19209
19209
|
}, [_c('div', {
|
|
19210
|
-
staticClass: "text-center"
|
|
19210
|
+
staticClass: "text-center col-12"
|
|
19211
19211
|
}, [_vm._v(_vm._s(_vm.messageLoading))])]), _c('div', {
|
|
19212
19212
|
attrs: {
|
|
19213
19213
|
"slot": "no-more"
|
|
19214
19214
|
},
|
|
19215
19215
|
slot: "no-more"
|
|
19216
19216
|
}, [_c('div', {
|
|
19217
|
-
staticClass: "text-center"
|
|
19217
|
+
staticClass: "text-center col-12"
|
|
19218
19218
|
}, [_vm._v(_vm._s(_vm.messageNoMore))])]), _c('div', {
|
|
19219
19219
|
attrs: {
|
|
19220
19220
|
"slot": "no-results"
|
|
19221
19221
|
},
|
|
19222
19222
|
slot: "no-results"
|
|
19223
19223
|
}, [_c('div', {
|
|
19224
|
-
staticClass: "text-center"
|
|
19225
|
-
}, [_vm._v(_vm._s(_vm.messageEmptyResults))])])]) : _vm._e()], 1) : _vm._e(), _vm.displayMode == _vm.displayModes.MODE_CUSTOM ? _c('div', [_c('div', {
|
|
19224
|
+
staticClass: "text-center col-12"
|
|
19225
|
+
}, [_vm._v(_vm._s(_vm.messageEmptyResults))])])]) : _vm._e()], 2)], 1) : _vm._e(), _vm.displayMode == _vm.displayModes.MODE_CUSTOM ? _c('div', [_c('div', {
|
|
19226
19226
|
class: _vm.listContainerClass
|
|
19227
19227
|
}, [_vm.items.length == 0 ? _c('p', {
|
|
19228
19228
|
staticClass: "p-3"
|
|
@@ -19374,7 +19374,7 @@ var _sfc_render = function render() {
|
|
|
19374
19374
|
}) : _vm._e()], 2)], 1);
|
|
19375
19375
|
};
|
|
19376
19376
|
var _sfc_staticRenderFns = [];
|
|
19377
|
-
var __component__ = /*#__PURE__*/normalizeComponent(_sfc_main, _sfc_render, _sfc_staticRenderFns, false, null, "
|
|
19377
|
+
var __component__ = /*#__PURE__*/normalizeComponent(_sfc_main, _sfc_render, _sfc_staticRenderFns, false, null, "7bd60172", null, null);
|
|
19378
19378
|
var component$1 = __component__.exports;// Import vue component
|
|
19379
19379
|
|
|
19380
19380
|
// Default export is installable instance of component.
|
package/package.json
CHANGED
package/src/vue-laravel-crud.vue
CHANGED
|
@@ -1288,13 +1288,13 @@ export default /*#__PURE__*/ {
|
|
|
1288
1288
|
</slot>
|
|
1289
1289
|
|
|
1290
1290
|
</tr>
|
|
1291
|
-
|
|
1292
|
-
</draggable>
|
|
1293
|
-
<infinite-loading @infinite="infiniteHandler" v-if="infiniteScroll" >
|
|
1291
|
+
<infinite-loading @infinite="infiniteHandler" v-if="infiniteScroll" >
|
|
1294
1292
|
<div slot="spinner"><div class="text-center">{{ messageLoading }}</div></div>
|
|
1295
1293
|
<div slot="no-more"><div class="text-center">{{ messageNoMore }}</div></div>
|
|
1296
1294
|
<div slot="no-results"><div class="text-center">{{ messageEmptyResults }}</div></div>
|
|
1297
1295
|
</infinite-loading>
|
|
1296
|
+
</draggable>
|
|
1297
|
+
|
|
1298
1298
|
</table>
|
|
1299
1299
|
<p v-if="!loading && items.length == 0 && !infiniteScroll" class="p-3">
|
|
1300
1300
|
{{ messageEmptyResults }}
|
|
@@ -1370,13 +1370,13 @@ export default /*#__PURE__*/ {
|
|
|
1370
1370
|
</template>
|
|
1371
1371
|
</b-card>
|
|
1372
1372
|
</b-col>
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
<div slot="
|
|
1377
|
-
<div slot="no-more"><div class="text-center">{{ messageNoMore }}</div></div>
|
|
1378
|
-
<div slot="no-results"><div class="text-center">{{ messageEmptyResults }}</div></div>
|
|
1373
|
+
<infinite-loading @infinite="infiniteHandler" v-if="infiniteScroll" >
|
|
1374
|
+
<div slot="spinner"><div class="text-center col-12">{{ messageLoading }}</div></div>
|
|
1375
|
+
<div slot="no-more"><div class="text-center col-12">{{ messageNoMore }}</div></div>
|
|
1376
|
+
<div slot="no-results"><div class="text-center col-12">{{ messageEmptyResults }}</div></div>
|
|
1379
1377
|
</infinite-loading>
|
|
1378
|
+
</draggable>
|
|
1379
|
+
|
|
1380
1380
|
</div>
|
|
1381
1381
|
|
|
1382
1382
|
<div v-if="displayMode == displayModes.MODE_CUSTOM">
|