(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-42e65000"],{"01e3":function(t,e,n){"use strict";n.d(e,"a",(function(){return f}));var r=n("2b0e"),a=n("b42e"),i=n("c637"),s=n("a723"),o=n("9b76"),c=n("365c"),l=n("cf75");function u(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var b=Object(l["d"])({label:Object(l["c"])(s["t"]),role:Object(l["c"])(s["t"],"status"),small:Object(l["c"])(s["g"],!1),tag:Object(l["c"])(s["t"],"span"),type:Object(l["c"])(s["t"],"border"),variant:Object(l["c"])(s["t"])},i["ub"]),f=r["default"].extend({name:i["ub"],functional:!0,props:b,render:function(t,e){var n,r=e.props,i=e.data,s=e.slots,l=e.scopedSlots,b=s(),f=l||{},p=Object(c["b"])(o["t"],{},f,b)||r.label;return p&&(p=t("span",{staticClass:"sr-only"},p)),t(r.tag,Object(a["a"])(i,{attrs:{role:p?r.role||"status":null,"aria-hidden":p?null:"true"},class:(n={},u(n,"spinner-".concat(r.type),r.type),u(n,"spinner-".concat(r.type,"-sm"),r.small),u(n,"text-".concat(r.variant),r.variant),n)}),[p||t()])}})},"26d2":function(t,e,n){"use strict";n.d(e,"a",(function(){return K}));var r,a=n("2b0e"),i=n("c637"),s=n("0056"),o=n("a723"),c=n("6d40"),l=n("906c"),u=n("7b1e"),b=n("a8c8"),f=n("3a58"),p=n("d82f"),d=n("cf75"),h=n("9bfa"),m=n("9b76"),g=n("2326"),O=n("6b77"),v=n("58f2"),j=n("fa73"),y=n("686b"),P=n("8c18"),w=n("aa59");function C(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function k(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?C(Object(n),!0).forEach((function(e){x(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):C(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function x(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var T=Object(v["a"])("value",{type:o["h"],defaultValue:null,validator:function(t){return!(!Object(u["g"])(t)&&Object(f["c"])(t,0)<1)||(Object(y["a"])('"v-model" value must be a number greater than "0"',i["mb"]),!1)}}),_=T.mixin,S=T.props,$=T.prop,D=T.event,N=3,L=5,F=function(t,e){return Object(g["c"])(e,(function(e,n){return{number:t+n,classes:null}}))},R=function(t){var e=Object(f["c"])(t)||1;return e<1?L:e},B=function(t,e){var n=Object(f["c"])(t)||1;return n>e?e:n<1?1:n},z=function(t){if(t.keyCode===h["j"])return Object(O["f"])(t,{immediatePropagation:!0}),t.currentTarget.click(),!1},E=Object(d["d"])(Object(p["m"])(k(k({},S),{},{align:Object(d["c"])(o["t"],"left"),ariaLabel:Object(d["c"])(o["t"],"Pagination"),disabled:Object(d["c"])(o["g"],!1),ellipsisClass:Object(d["c"])(o["e"]),ellipsisText:Object(d["c"])(o["t"],"…"),firstClass:Object(d["c"])(o["e"]),firstNumber:Object(d["c"])(o["g"],!1),firstText:Object(d["c"])(o["t"],"«"),hideEllipsis:Object(d["c"])(o["g"],!1),hideGotoEndButtons:Object(d["c"])(o["g"],!1),labelFirstPage:Object(d["c"])(o["t"],"Go to first page"),labelLastPage:Object(d["c"])(o["t"],"Go to last page"),labelNextPage:Object(d["c"])(o["t"],"Go to next page"),labelPage:Object(d["c"])(o["l"],"Go to page"),labelPrevPage:Object(d["c"])(o["t"],"Go to previous page"),lastClass:Object(d["c"])(o["e"]),lastNumber:Object(d["c"])(o["g"],!1),lastText:Object(d["c"])(o["t"],"»"),limit:Object(d["c"])(o["o"],L,(function(t){return!(Object(f["c"])(t,0)<1)||(Object(y["a"])('Prop "limit" must be a number greater than "0"',i["mb"]),!1)})),nextClass:Object(d["c"])(o["e"]),nextText:Object(d["c"])(o["t"],"›"),pageClass:Object(d["c"])(o["e"]),pills:Object(d["c"])(o["g"],!1),prevClass:Object(d["c"])(o["e"]),prevText:Object(d["c"])(o["t"],"‹"),size:Object(d["c"])(o["t"])})),"pagination"),I=a["default"].extend({mixins:[_,P["a"]],props:E,data:function(){var t=Object(f["c"])(this[$],0);return t=t>0?t:-1,{currentPage:t,localNumberOfPages:1,localLimit:L}},computed:{btnSize:function(){var t=this.size;return t?"pagination-".concat(t):""},alignment:function(){var t=this.align;return"center"===t?"justify-content-center":"end"===t||"right"===t?"justify-content-end":"fill"===t?"text-center":""},styleClass:function(){return this.pills?"b-pagination-pills":""},computedCurrentPage:function(){return B(this.currentPage,this.localNumberOfPages)},paginationParams:function(){var t=this.localLimit,e=this.localNumberOfPages,n=this.computedCurrentPage,r=this.hideEllipsis,a=this.firstNumber,i=this.lastNumber,s=!1,o=!1,c=t,l=1;e<=t?c=e:n<t-1&&t>N?(r&&!i||(o=!0,c=t-(a?0:1)),c=Object(b["d"])(c,t)):e-n+2<t&&t>N?(r&&!a||(s=!0,c=t-(i?0:1)),l=e-c+1):(t>N&&(c=t-(r?0:2),s=!(r&&!a),o=!(r&&!i)),l=n-Object(b["b"])(c/2)),l<1?(l=1,s=!1):l>e-c&&(l=e-c+1,o=!1),s&&a&&l<4&&(c+=2,l=1,s=!1);var u=l+c-1;return o&&i&&u>e-3&&(c+=u===e-2?2:3,o=!1),t<=N&&(a&&1===l?c=Object(b["d"])(c+1,e,t+1):i&&e===l+c-1&&(l=Object(b["c"])(l-1,1),c=Object(b["d"])(e-l+1,e,t+1))),c=Object(b["d"])(c,e-l+1),{showFirstDots:s,showLastDots:o,numberOfLinks:c,startNumber:l}},pageList:function(){var t=this.paginationParams,e=t.numberOfLinks,n=t.startNumber,r=this.computedCurrentPage,a=F(n,e);if(a.length>3){var i=r-n,s="bv-d-xs-down-none";if(0===i)for(var o=3;o<a.length;o++)a[o].classes=s;else if(i===a.length-1)for(var c=0;c<a.length-3;c++)a[c].classes=s;else{for(var l=0;l<i-1;l++)a[l].classes=s;for(var u=a.length-1;u>i+1;u--)a[u].classes=s}}return a}},watch:(r={},x(r,$,(function(t,e){t!==e&&(this.currentPage=B(t,this.localNumberOfPages))})),x(r,"currentPage",(function(t,e){t!==e&&this.$emit(D,t>0?t:null)})),x(r,"limit",(function(t,e){t!==e&&(this.localLimit=R(t))})),r),created:function(){var t=this;this.localLimit=R(this.limit),this.$nextTick((function(){t.currentPage=t.currentPage>t.localNumberOfPages?t.localNumberOfPages:t.currentPage}))},methods:{handleKeyNav:function(t){var e=t.keyCode,n=t.shiftKey;this.isNav||(e===h["f"]||e===h["k"]?(Object(O["f"])(t,{propagation:!1}),n?this.focusFirst():this.focusPrev()):e!==h["i"]&&e!==h["a"]||(Object(O["f"])(t,{propagation:!1}),n?this.focusLast():this.focusNext()))},getButtons:function(){return Object(l["D"])("button.page-link, a.page-link",this.$el).filter((function(t){return Object(l["u"])(t)}))},focusCurrent:function(){var t=this;this.$nextTick((function(){var e=t.getButtons().find((function(e){return Object(f["c"])(Object(l["h"])(e,"aria-posinset"),0)===t.computedCurrentPage}));Object(l["d"])(e)||t.focusFirst()}))},focusFirst:function(){var t=this;this.$nextTick((function(){var e=t.getButtons().find((function(t){return!Object(l["r"])(t)}));Object(l["d"])(e)}))},focusLast:function(){var t=this;this.$nextTick((function(){var e=t.getButtons().reverse().find((function(t){return!Object(l["r"])(t)}));Object(l["d"])(e)}))},focusPrev:function(){var t=this;this.$nextTick((function(){var e=t.getButtons(),n=e.indexOf(Object(l["g"])());n>0&&!Object(l["r"])(e[n-1])&&Object(l["d"])(e[n-1])}))},focusNext:function(){var t=this;this.$nextTick((function(){var e=t.getButtons(),n=e.indexOf(Object(l["g"])());n<e.length-1&&!Object(l["r"])(e[n+1])&&Object(l["d"])(e[n+1])}))}},render:function(t){var e=this,n=this.disabled,r=this.labelPage,a=this.ariaLabel,i=this.isNav,s=this.localNumberOfPages,o=this.computedCurrentPage,c=this.pageList.map((function(t){return t.number})),l=this.paginationParams,b=l.showFirstDots,f=l.showLastDots,p="fill"===this.align,h=[],g=function(t){return t===o},O=this.currentPage<1,v=function(r,a,o,c,l,u,b){var f=n||g(u)||O||r<1||r>s,d=r<1?1:r>s?s:r,h={disabled:f,page:d,index:d-1},m=e.normalizeSlot(o,h)||Object(j["g"])(c)||t(),v=t(f?"span":i?w["a"]:"button",{staticClass:"page-link",class:{"flex-grow-1":!i&&!f&&p},props:f||!i?{}:e.linkProps(r),attrs:{role:i?null:"menuitem",type:i||f?null:"button",tabindex:f||i?null:"-1","aria-label":a,"aria-controls":e.ariaControls||null,"aria-disabled":f?"true":null},on:f?{}:{"!click":function(t){e.onClick(t,r)},keydown:z}},[m]);return t("li",{key:b,staticClass:"page-item",class:[{disabled:f,"flex-fill":p,"d-flex":p&&!i&&!f},l],attrs:{role:i?null:"presentation","aria-hidden":f?"true":null}},[v])},y=function(n){return t("li",{staticClass:"page-item",class:["disabled","bv-d-xs-down-none",p?"flex-fill":"",e.ellipsisClass],attrs:{role:"separator"},key:"ellipsis-".concat(n?"last":"first")},[t("span",{staticClass:"page-link"},[e.normalizeSlot(m["k"])||Object(j["g"])(e.ellipsisText)||t()])])},P=function(a,o){var c=a.number,l=g(c)&&!O,b=n?null:l||O&&0===o?"0":"-1",f={role:i?null:"menuitemradio",type:i||n?null:"button","aria-disabled":n?"true":null,"aria-controls":e.ariaControls||null,"aria-label":Object(d["b"])(r)?r(c):"".concat(Object(u["f"])(r)?r():r," ").concat(c),"aria-checked":i?null:l?"true":"false","aria-current":i&&l?"page":null,"aria-posinset":i?null:c,"aria-setsize":i?null:s,tabindex:i?null:b},h=Object(j["g"])(e.makePage(c)),v={page:c,index:c-1,content:h,active:l,disabled:n},y=t(n?"span":i?w["a"]:"button",{props:n||!i?{}:e.linkProps(c),staticClass:"page-link",class:{"flex-grow-1":!i&&!n&&p},attrs:f,on:n?{}:{"!click":function(t){e.onClick(t,c)},keydown:z}},[e.normalizeSlot(m["L"],v)||h]);return t("li",{staticClass:"page-item",class:[{disabled:n,active:l,"flex-fill":p,"d-flex":p&&!i&&!n},a.classes,e.pageClass],attrs:{role:i?null:"presentation"},key:"page-".concat(c)},[y])},C=t();this.firstNumber||this.hideGotoEndButtons||(C=v(1,this.labelFirstPage,m["p"],this.firstText,this.firstClass,1,"pagination-goto-first")),h.push(C),h.push(v(o-1,this.labelPrevPage,m["O"],this.prevText,this.prevClass,1,"pagination-goto-prev")),h.push(this.firstNumber&&1!==c[0]?P({number:1},0):t()),h.push(b?y(!1):t()),this.pageList.forEach((function(t,n){var r=b&&e.firstNumber&&1!==c[0]?1:0;h.push(P(t,n+r))})),h.push(f?y(!0):t()),h.push(this.lastNumber&&c[c.length-1]!==s?P({number:s},-1):t()),h.push(v(o+1,this.labelNextPage,m["J"],this.nextText,this.nextClass,s,"pagination-goto-next"));var k=t();this.lastNumber||this.hideGotoEndButtons||(k=v(s,this.labelLastPage,m["u"],this.lastText,this.lastClass,s,"pagination-goto-last")),h.push(k);var x=t("ul",{staticClass:"pagination",class:["b-pagination",this.btnSize,this.alignment,this.styleClass],attrs:{role:i?null:"menubar","aria-disabled":n?"true":"false","aria-label":i?null:a||null},on:i?{}:{keydown:this.handleKeyNav},ref:"ul"},h);return i?t("nav",{attrs:{"aria-disabled":n?"true":null,"aria-hidden":n?"true":"false","aria-label":i&&a||null}},[x]):x}});function G(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function V(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?G(Object(n),!0).forEach((function(e){H(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):G(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function H(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Y=20,M=0,q=function(t){return Object(b["c"])(Object(f["c"])(t)||Y,1)},A=function(t){return Object(b["c"])(Object(f["c"])(t)||M,0)},J=Object(d["d"])(Object(p["m"])(V(V({},E),{},{ariaControls:Object(d["c"])(o["t"]),perPage:Object(d["c"])(o["o"],Y),totalRows:Object(d["c"])(o["o"],M)})),i["mb"]),K=a["default"].extend({name:i["mb"],mixins:[I],props:J,computed:{numberOfPages:function(){var t=Object(b["a"])(A(this.totalRows)/q(this.perPage));return t<1?1:t},pageSizeNumberOfPages:function(){return{perPage:q(this.perPage),totalRows:A(this.totalRows),numberOfPages:this.numberOfPages}}},watch:{pageSizeNumberOfPages:function(t,e){Object(u["p"])(e)||(t.perPage!==e.perPage&&t.totalRows===e.totalRows||t.numberOfPages!==e.numberOfPages&&this.currentPage>t.numberOfPages)&&(this.currentPage=1),this.localNumberOfPages=t.numberOfPages}},created:function(){var t=this;this.localNumberOfPages=this.numberOfPages;var e=Object(f["c"])(this[$],0);e>0?this.currentPage=e:this.$nextTick((function(){t.currentPage=0}))},methods:{onClick:function(t,e){var n=this;if(e!==this.currentPage){var r=t.target,a=new c["a"](s["F"],{cancelable:!0,vueTarget:this,target:r});this.$emit(a.type,a,e),a.defaultPrevented||(this.currentPage=e,this.$emit(s["d"],this.currentPage),this.$nextTick((function(){Object(l["u"])(r)&&n.$el.contains(r)?Object(l["d"])(r):n.focusCurrent()})))}},makePage:function(t){return t},linkProps:function(){return{}}}})},"32ed":function(t,e,n){"use strict";n.d(e,"a",(function(){return r["a"]})),n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return i["a"]}));var r=n("426a"),a=(n("e9c4"),{methods:{cloneObject:function(t){return JSON.parse(JSON.stringify(t))}}}),i=n("b91d")},"426a":function(t,e,n){"use strict";e["a"]={methods:{renderDate:function(t){return this.$moment(t).format("YYYY-MM-DD")},renderTime:function(t){return this.$moment(t).format("HH:mm")},renderDateTime:function(t){return this.$moment(t).format("YYYY-MM-DD HH:mm")}}}},"5c0b":function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("HamletTable",{attrs:{columns:t.columns,fetch:t.fetch},on:{onRowClick:t.edit},scopedSlots:t._u([{key:"header-controls",fn:function(){return[t.$can("visit","administration-supplier-add")?n("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mt-0 btn-icon",attrs:{variant:"primary"},on:{click:t.add}},[n("feather-icon",{attrs:{icon:"PlusIcon"}})],1):t._e()]},proxy:!0},{key:"header-label",fn:function(){return[t._v(" "+t._s(t.$t("Page(Suppliers):Component(Text):page-label"))+" ")]},proxy:!0},{key:"cell-contacts",fn:function(e){return[t._v(" "+t._s(t.renderContacts(e.item.contacts))+" ")]}},{key:"cell-validFrom",fn:function(e){return[t._v(" "+t._s(e.item.validFrom?t.renderDate(e.item.validFrom):"-")+" ")]}},{key:"cell-validTo",fn:function(e){return[t._v(" "+t._s(e.item.validTo?t.renderDate(e.item.validTo):"-")+" ")]}}])})},a=[],i=(n("a15b"),n("d81d"),n("a434"),n("b0c0"),n("1947")),s=n("9824"),o=n("1123"),c=n("32ed"),l=n("e009"),u={mixins:[c["a"]],directives:{Ripple:l["a"]},components:{HamletTable:s["a"],BButton:i["a"]},data:function(){return{columns:[{key:"name",label:this.$t("Component(Grid):column-name")},{key:"state",label:this.$t("Component(Grid):column-state")},{key:"contacts",label:this.$t("Component(Grid):column-contact")},{key:"validFrom",label:this.$t("Component(Grid):column-valid-from")},{key:"validTo",label:this.$t("Component(Grid):column-valid-to")}]}},methods:{renderContacts:function(t){return t.length>2?t.splice(0,2).map((function(t){return t.name})).join(", ")+" ...":t.map((function(t){return t.name})).join(", ")},fetch:function(t,e){o["k"].getSuppliers([],{},t.page,t.perPage).then((function(t){e(t.data.totalItems,t.data.items)}))},edit:function(t){this.$router.push({name:"administration-supplier-edit",params:{type:"supplier",id:t.id}})},add:function(){this.$router.push({name:"administration-supplier-add",params:{type:"supplier"}})}}},b=u,f=n("2877"),p=Object(f["a"])(b,r,a,!1,null,null,null);e["default"]=p.exports},"5fda":function(t,e,n){"use strict";n.d(e,"a",(function(){return $}));var r,a=n("2b0e"),i=n("2f79"),s=n("c637"),o=n("0056"),c=n("a723"),l=n("9b76"),u=n("906c"),b=n("7b1e"),f=n("58f2"),p=n("3a58"),d=n("d82f"),h=n("cf75"),m=n("8c18"),g=n("f29e"),O=n("ce2a");function v(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function j(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?v(Object(n),!0).forEach((function(e){y(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function y(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var P=Object(f["a"])("show",{type:c["h"],defaultValue:!1}),w=P.mixin,C=P.props,k=P.prop,x=P.event,T=function(t){return""===t||Object(b["b"])(t)?0:(t=Object(p["c"])(t,0),t>0?t:0)},_=function(t){return""===t||!0===t||!(Object(p["c"])(t,0)<1)&&!!t},S=Object(h["d"])(Object(d["m"])(j(j({},C),{},{dismissLabel:Object(h["c"])(c["t"],"Close"),dismissible:Object(h["c"])(c["g"],!1),fade:Object(h["c"])(c["g"],!1),variant:Object(h["c"])(c["t"],"info")})),s["a"]),$=a["default"].extend({name:s["a"],mixins:[w,m["a"]],props:S,data:function(){return{countDown:0,localShow:_(this[k])}},watch:(r={},y(r,k,(function(t){this.countDown=T(t),this.localShow=_(t)})),y(r,"countDown",(function(t){var e=this;this.clearCountDownInterval();var n=this[k];Object(b["i"])(n)&&(this.$emit(o["n"],t),n!==t&&this.$emit(x,t),t>0?(this.localShow=!0,this.$_countDownTimeout=setTimeout((function(){e.countDown--}),1e3)):this.$nextTick((function(){Object(u["B"])((function(){e.localShow=!1}))})))})),y(r,"localShow",(function(t){var e=this[k];t||!this.dismissible&&!Object(b["i"])(e)||this.$emit(o["m"]),Object(b["i"])(e)||e===t||this.$emit(x,t)})),r),created:function(){this.$_filterTimer=null;var t=this[k];this.countDown=T(t),this.localShow=_(t)},beforeDestroy:function(){this.clearCountDownInterval()},methods:{dismiss:function(){this.clearCountDownInterval(),this.countDown=0,this.localShow=!1},clearCountDownInterval:function(){clearTimeout(this.$_countDownTimeout),this.$_countDownTimeout=null}},render:function(t){var e=t();if(this.localShow){var n=this.dismissible,r=this.variant,a=t();n&&(a=t(g["a"],{attrs:{"aria-label":this.dismissLabel},on:{click:this.dismiss}},[this.normalizeSlot(l["i"])])),e=t("div",{staticClass:"alert",class:y({"alert-dismissible":n},"alert-".concat(r),r),attrs:{role:"alert","aria-live":"polite","aria-atomic":!0},key:this[i["a"]]},[a,this.normalizeSlot()])}return t(O["a"],{props:{noFade:!this.fade}},[e])}})},9824:function(t,e,n){"use strict";var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("b-overlay",{attrs:{variant:"white",show:t.showLoading,"spinner-variant":"primary",blur:"0",opacity:".85",rounded:"sm"}},[n("b-card",{class:t.cardClass,attrs:{"no-body":""}},[n("div",{staticClass:"card-header"},[n("b-col",{staticClass:"pl-0",attrs:{md:"6"}},[n("b-card-title",[t._t("header-label")],2)],1),n("b-col",{staticClass:"pr-0",attrs:{md:"6"}},[n("div",{staticClass:"float-right"},[t._t("header-controls")],2)])],1),t.search?n("Transition",{attrs:{mode:"out-in",name:"fade"}},[n("div",{class:t.tableContainerClass,style:t.tableContainerStyle},[n("table",{staticClass:"table b-table table-hover table-striped bordered"},[n("thead",[n("tr",t._l(t.columns,(function(e){return n("th",[t._t("header-cell-"+e.key,[n("div",{class:e.class||"",attrs:{title:e.title}},[t._v(t._s(e.label))])],{column:e})],2)})),0)]),t.search?n("tbody",[n("tr",t._l(t.columns,(function(e){return n("td",{staticStyle:{"white-space":"nowrap"}},[t._t("filter-cell-"+e.key,null,{column:e})],2)})),0)]):t._e(),t.items.length?n("tbody",t._l(t.items,(function(e){return n("tr",{on:{click:function(n){return t.onRowClick(e)}}},t._l(t.columns,(function(r){return n("td",[t._t("cell-"+r.key,[t._v(" "+t._s(t.renderValue(e,r))+" ")],{item:e,column:r})],2)})),0)})),0):n("tbody",[n("tr",{staticClass:"bg-white"},[n("td",{attrs:{colspan:t.columns.length}},[n("b-alert",{staticClass:"m-2",attrs:{variant:"secondary",show:""}},[n("div",{staticClass:"alert-body"},[t._t("no-records",[t._v(" "+t._s(t.$t("Component(Text):nothing-found"))+" ")])],2)])],1)])])])])]):n("Transition",{attrs:{mode:"out-in",name:"fade"}},[t.items.length?n("div",{class:t.tableContainerClass,style:t.tableContainerStyle},[n("table",{staticClass:"table b-table table-hover table-striped bordered"},[n("thead",[n("tr",t._l(t.columns,(function(e){return n("th",[t._t("header-cell-"+e.key,[n("div",{class:e.class||"",attrs:{title:e.title}},[t._v(t._s(e.label))])],{column:e})],2)})),0)]),n("tbody",t._l(t.items,(function(e){return n("tr",{on:{click:function(n){return t.onRowClick(e)}}},t._l(t.columns,(function(r){return n("td",[t._t("cell-"+r.key,[t._v(" "+t._s(t.renderValue(e,r))+" ")],{item:e,column:r})],2)})),0)})),0)])]):n("b-alert",{staticClass:"m-2",attrs:{variant:"secondary",show:""}},[n("div",{staticClass:"alert-body"},[t._t("no-records",[t._v(" "+t._s(t.$t("Component(Text):nothing-found"))+" ")])],2)])],1),n("div",{staticClass:"pl-2 pr-2 pb-2 d-flex justify-content-between flex-wrap"},[n("div",{staticClass:"d-flex align-items-center justify-content-center"},[n("div",[t._v(" "+t._s(t.totalItems)+" record(s) found, ")]),n("div",{staticClass:"pl-1 pr-1"},[n("b-form-select",{attrs:{id:"perPageSelect",inline:"",options:t.pageOptions},on:{input:t.onPerPageChange},model:{value:t.perPage,callback:function(e){t.perPage=e},expression:"perPage"}})],1),n("div",[t._v("per page")])]),n("div",[n("b-pagination",{staticClass:"mb-0",attrs:{"total-rows":t.totalItems,"per-page":t.perPage,"first-number":"","last-number":"","prev-class":"prev-item","next-class":"next-item"},on:{input:t.onPageChange},scopedSlots:t._u([{key:"prev-text",fn:function(){return[n("feather-icon",{attrs:{icon:"ChevronLeftIcon",size:"18"}})]},proxy:!0},{key:"next-text",fn:function(){return[n("feather-icon",{attrs:{icon:"ChevronRightIcon",size:"18"}})]},proxy:!0}]),model:{value:t.currentPage,callback:function(e){t.currentPage=e},expression:"currentPage"}})],1)])],1)],1)},a=[],i=(n("a9e3"),n("205f")),s=n("b28b"),o=n("8361"),c=n("9b03"),l=n("5fda"),u=n("4968"),b=n("8226"),f=n("26d2"),p={components:{BCard:i["a"],BCol:s["a"],BFormSelect:o["a"],BOverlay:c["a"],BAlert:l["a"],BCardTitle:u["a"],BFormGroup:b["a"],BPagination:f["a"]},props:{cardClass:{default:""},tableContainerClass:{default:"table-responsive hamlet-table"},tableContainerStyle:{default:""},search:{default:!1},columns:{type:Array,default:function(){return[]}},fetch:{default:function(){var t=this;return function(){t.showLoading=!1}}},pageOptions:{type:Array,default:function(){return[5,10,15,30]}},defaultPerPage:{type:Number,default:10}},data:function(){return{currentPage:1,perPage:this.defaultPerPage,totalItems:0,items:[],showLoading:!1,filters:{}}},methods:{renderValue:function(t,e){return t.hasOwnProperty(e.key)?t[e.key]instanceof Object&&t[e.key].hasOwnProperty("title")?t[e.key].title:t[e.key]:""},onPerPageChange:function(){this.makeRequest()},onPageChange:function(){this.makeRequest()},makeRequest:function(){this.showLoading=!0,this.fetch(this.getConfig(),this.fetchHandler)},onRowClick:function(t){this.$emit("onRowClick",t)},filter:function(t,e){e?this.filters[t]=e:this.filters.hasOwnProperty(t)&&delete this.filters[t],this.makeRequest()},unsetFilter:function(t){delete this.filters[t],this.makeRequest()},getConfig:function(){return{filters:this.filters,page:this.currentPage,perPage:this.perPage}},fetchHandler:function(t,e){this.totalItems=t,this.items=e,this.showLoading=!1}},created:function(){this.$emit("created",this.getConfig(),this.fetchHandler),this.makeRequest()}},d=p,h=(n("a0cc"),n("2877")),m=Object(h["a"])(d,r,a,!1,null,null,null);e["a"]=m.exports},"9b03":function(t,e,n){"use strict";n.d(e,"a",(function(){return O}));var r=n("2b0e"),a=n("c637"),i=n("0056"),s=n("a723"),o=n("9b76"),c=n("3a58"),l=n("8c18"),u=n("cf75"),b=n("01e3"),f=n("ce2a");function p(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function d(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?p(Object(n),!0).forEach((function(e){h(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function h(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var m={top:0,left:0,bottom:0,right:0},g=Object(u["d"])({bgColor:Object(u["c"])(s["t"]),blur:Object(u["c"])(s["t"],"2px"),fixed:Object(u["c"])(s["g"],!1),noCenter:Object(u["c"])(s["g"],!1),noFade:Object(u["c"])(s["g"],!1),noWrap:Object(u["c"])(s["g"],!1),opacity:Object(u["c"])(s["o"],.85,(function(t){var e=Object(c["b"])(t,0);return e>=0&&e<=1})),overlayTag:Object(u["c"])(s["t"],"div"),rounded:Object(u["c"])(s["i"],!1),show:Object(u["c"])(s["g"],!1),spinnerSmall:Object(u["c"])(s["g"],!1),spinnerType:Object(u["c"])(s["t"],"border"),spinnerVariant:Object(u["c"])(s["t"]),variant:Object(u["c"])(s["t"],"light"),wrapTag:Object(u["c"])(s["t"],"div"),zIndex:Object(u["c"])(s["o"],10)},a["lb"]),O=r["default"].extend({name:a["lb"],mixins:[l["a"]],props:g,computed:{computedRounded:function(){var t=this.rounded;return!0===t||""===t?"rounded":t?"rounded-".concat(t):""},computedVariant:function(){var t=this.variant;return t&&!this.bgColor?"bg-".concat(t):""},slotScope:function(){return{spinnerType:this.spinnerType||null,spinnerVariant:this.spinnerVariant||null,spinnerSmall:this.spinnerSmall}}},methods:{defaultOverlayFn:function(t){var e=t.spinnerType,n=t.spinnerVariant,r=t.spinnerSmall;return this.$createElement(b["a"],{props:{type:e,variant:n,small:r}})}},render:function(t){var e=this,n=this.show,r=this.fixed,a=this.noFade,s=this.noWrap,c=this.slotScope,l=t();if(n){var u=t("div",{staticClass:"position-absolute",class:[this.computedVariant,this.computedRounded],style:d(d({},m),{},{opacity:this.opacity,backgroundColor:this.bgColor||null,backdropFilter:this.blur?"blur(".concat(this.blur,")"):null})}),b=t("div",{staticClass:"position-absolute",style:this.noCenter?d({},m):{top:"50%",left:"50%",transform:"translateX(-50%) translateY(-50%)"}},[this.normalizeSlot(o["K"],c)||this.defaultOverlayFn(c)]);l=t(this.overlayTag,{staticClass:"b-overlay",class:{"position-absolute":!s||s&&!r,"position-fixed":s&&r},style:d(d({},m),{},{zIndex:this.zIndex||10}),on:{click:function(t){return e.$emit(i["f"],t)}},key:"overlay"},[u,b])}return l=t(f["a"],{props:{noFade:a,appear:!0},on:{"after-enter":function(){return e.$emit(i["S"])},"after-leave":function(){return e.$emit(i["v"])}}},[l]),s?l:t(this.wrapTag,{staticClass:"b-overlay-wrap position-relative",attrs:{"aria-busy":n?"true":null}},s?[l]:[this.normalizeSlot(),l])}})},a0cc:function(t,e,n){"use strict";n("db1e")},a434:function(t,e,n){"use strict";var r=n("23e7"),a=n("23cb"),i=n("a691"),s=n("50c4"),o=n("7b0b"),c=n("65f0"),l=n("8418"),u=n("1dde"),b=n("ae40"),f=u("splice"),p=b("splice",{ACCESSORS:!0,0:0,1:2}),d=Math.max,h=Math.min,m=9007199254740991,g="Maximum allowed length exceeded";r({target:"Array",proto:!0,forced:!f||!p},{splice:function(t,e){var n,r,u,b,f,p,O=o(this),v=s(O.length),j=a(t,v),y=arguments.length;if(0===y?n=r=0:1===y?(n=0,r=v-j):(n=y-2,r=h(d(i(e),0),v-j)),v+n-r>m)throw TypeError(g);for(u=c(O,r),b=0;b<r;b++)f=j+b,f in O&&l(u,b,O[f]);if(u.length=r,n<r){for(b=j;b<v-r;b++)f=b+r,p=b+n,f in O?O[p]=O[f]:delete O[p];for(b=v;b>v-r+n;b--)delete O[b-1]}else if(n>r)for(b=v-r;b>j;b--)f=b+r-1,p=b+n-1,f in O?O[p]=O[f]:delete O[p];for(b=0;b<n;b++)O[b+j]=arguments[b+2];return O.length=v-r+n,u}})},b91d:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r={data:function(){return{passwordFieldType:"password"}},methods:{togglePasswordVisibility:function(){this.passwordFieldType="password"===this.passwordFieldType?"text":"password"}}}},db1e:function(t,e,n){}}]);
//# sourceMappingURL=chunk-42e65000.7ab48eea.js.map