관리-도구
편집 파일: StoreOrders.1a5c97a32ce998b7.js
/*! For license information please see StoreOrders.1a5c97a32ce998b7.js.LICENSE.txt */ "use strict";(self.webpackChunk=self.webpackChunk||[]).push([[8189],{52078:(t,r,e)=>{e.d(r,{A:()=>o});var n=e(76314),a=e.n(n)()((function(t){return t[1]}));a.push([t.id,".wrapper[data-v-c9d37498]{overflow:visible}",""]);const o=a},87627:(t,r,e)=>{e.r(r),e.d(r,{default:()=>g});var n=e(72505),a=e.n(n);function o(){o=function(){return r};var t,r={},e=Object.prototype,n=e.hasOwnProperty,a=Object.defineProperty||function(t,r,e){t[r]=e.value},i="function"==typeof Symbol?Symbol:{},s=i.iterator||"@@iterator",l=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function f(t,r,e){return Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{f({},"")}catch(t){f=function(t,r,e){return t[r]=e}}function d(t,r,e,n){var o=r&&r.prototype instanceof b?r:b,i=Object.create(o.prototype),s=new j(n||[]);return a(i,"_invoke",{value:$(t,e,s)}),i}function h(t,r,e){try{return{type:"normal",arg:t.call(r,e)}}catch(t){return{type:"throw",arg:t}}}r.wrap=d;var p="suspendedStart",v="suspendedYield",m="executing",g="completed",y={};function b(){}function w(){}function _(){}var x={};f(x,s,(function(){return this}));var S=Object.getPrototypeOf,C=S&&S(S(A([])));C&&C!==e&&n.call(C,s)&&(x=C);var k=_.prototype=b.prototype=Object.create(x);function O(t){["next","throw","return"].forEach((function(r){f(t,r,(function(t){return this._invoke(r,t)}))}))}function P(t,r){function e(a,o,i,s){var l=h(t[a],t,o);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==c(f)&&n.call(f,"__await")?r.resolve(f.__await).then((function(t){e("next",t,i,s)}),(function(t){e("throw",t,i,s)})):r.resolve(f).then((function(t){u.value=t,i(u)}),(function(t){return e("throw",t,i,s)}))}s(l.arg)}var o;a(this,"_invoke",{value:function(t,n){function a(){return new r((function(r,a){e(t,n,r,a)}))}return o=o?o.then(a,a):a()}})}function $(r,e,n){var a=p;return function(o,i){if(a===m)throw Error("Generator is already running");if(a===g){if("throw"===o)throw i;return{value:t,done:!0}}for(n.method=o,n.arg=i;;){var s=n.delegate;if(s){var c=E(s,n);if(c){if(c===y)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(a===p)throw a=g,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a=m;var l=h(r,e,n);if("normal"===l.type){if(a=n.done?g:v,l.arg===y)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(a=g,n.method="throw",n.arg=l.arg)}}}function E(r,e){var n=e.method,a=r.iterator[n];if(a===t)return e.delegate=null,"throw"===n&&r.iterator.return&&(e.method="return",e.arg=t,E(r,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var o=h(a,r.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,y;var i=o.arg;return i?i.done?(e[r.resultName]=i.value,e.next=r.nextLoc,"return"!==e.method&&(e.method="next",e.arg=t),e.delegate=null,y):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,y)}function L(t){var r={tryLoc:t[0]};1 in t&&(r.catchLoc=t[1]),2 in t&&(r.finallyLoc=t[2],r.afterLoc=t[3]),this.tryEntries.push(r)}function T(t){var r=t.completion||{};r.type="normal",delete r.arg,t.completion=r}function j(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(L,this),this.reset(!0)}function A(r){if(r||""===r){var e=r[s];if(e)return e.call(r);if("function"==typeof r.next)return r;if(!isNaN(r.length)){var a=-1,o=function e(){for(;++a<r.length;)if(n.call(r,a))return e.value=r[a],e.done=!1,e;return e.value=t,e.done=!0,e};return o.next=o}}throw new TypeError(c(r)+" is not iterable")}return w.prototype=_,a(k,"constructor",{value:_,configurable:!0}),a(_,"constructor",{value:w,configurable:!0}),w.displayName=f(_,u,"GeneratorFunction"),r.isGeneratorFunction=function(t){var r="function"==typeof t&&t.constructor;return!!r&&(r===w||"GeneratorFunction"===(r.displayName||r.name))},r.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,_):(t.__proto__=_,f(t,u,"GeneratorFunction")),t.prototype=Object.create(k),t},r.awrap=function(t){return{__await:t}},O(P.prototype),f(P.prototype,l,(function(){return this})),r.AsyncIterator=P,r.async=function(t,e,n,a,o){void 0===o&&(o=Promise);var i=new P(d(t,e,n,a),o);return r.isGeneratorFunction(e)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},O(k),f(k,u,"Generator"),f(k,s,(function(){return this})),f(k,"toString",(function(){return"[object Generator]"})),r.keys=function(t){var r=Object(t),e=[];for(var n in r)e.push(n);return e.reverse(),function t(){for(;e.length;){var n=e.pop();if(n in r)return t.value=n,t.done=!1,t}return t.done=!0,t}},r.values=A,j.prototype={constructor:j,reset:function(r){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(T),!r)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(r){if(this.done)throw r;var e=this;function a(n,a){return s.type="throw",s.arg=r,e.next=n,a&&(e.method="next",e.arg=t),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],s=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),l=n.call(i,"finallyLoc");if(c&&l){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!l)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return a(i.finallyLoc)}}}},abrupt:function(t,r){for(var e=this.tryEntries.length-1;e>=0;--e){var a=this.tryEntries[e];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=r&&r<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=t,i.arg=r,o?(this.method="next",this.next=o.finallyLoc,y):this.complete(i)},complete:function(t,r){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&r&&(this.next=r),y},finish:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var e=this.tryEntries[r];if(e.finallyLoc===t)return this.complete(e.completion,e.afterLoc),T(e),y}},catch:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var e=this.tryEntries[r];if(e.tryLoc===t){var n=e.completion;if("throw"===n.type){var a=n.arg;T(e)}return a}}throw Error("illegal catch attempt")},delegateYield:function(r,e,n){return this.delegate={iterator:A(r),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=t),y}},r}function i(t,r,e,n,a,o,i){try{var s=t[o](i),c=s.value}catch(t){return void e(t)}s.done?r(c):Promise.resolve(c).then(n,a)}function s(t){return function(){var r=this,e=arguments;return new Promise((function(n,a){var o=t.apply(r,e);function s(t){i(o,n,a,s,c,"next",t)}function c(t){i(o,n,a,s,c,"throw",t)}s(void 0)}))}}function c(t){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},c(t)}function l(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),e.push.apply(e,n)}return e}function u(t){for(var r=1;r<arguments.length;r++){var e=null!=arguments[r]?arguments[r]:{};r%2?l(Object(e),!0).forEach((function(r){f(t,r,e[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):l(Object(e)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}))}return t}function f(t,r,e){return(r=function(t){var r=function(t,r){if("object"!=c(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,r||"default");if("object"!=c(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==c(r)?r:r+""}(r))in t?Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[r]=e,t}const d={metaInfo:{title:"Store Orders"},data:function(){return{isLoading:!0,rows:[],totalRows:0,errorTitle:"",errors:[],search:"",status:"",dateFrom:null,dateTo:null,actionBusyId:null,statusOptions:[{value:"",text:this.$t("All_Status")},{value:"pending",text:this.$t("pending")},{value:"confirmed",text:this.$t("confirmed")},{value:"cancelled",text:this.$t("cancelled")}],columns:[{label:this.$t("Order"),field:"code",sortable:!0},{label:this.$t("Customer"),field:"customer_name",sortable:!0},{label:this.$t("Status"),field:"status",sortable:!0},{label:this.$t("Total"),field:"total",sortable:!0,type:"number"},{label:this.$t("Date"),field:"created_at",sortable:!0},{label:this.$t("Actions"),field:"actions"}],serverParams:{page:1,perPage:10,sort:[{field:"created_at",type:"desc"}]}}},mounted:function(){this.fetch()},computed:u(u({},(0,e(95353).L8)(["currentUser"])),{},{hasError:function(){return this.errorTitle&&this.errorTitle.length||this.errors.length>0}}),methods:{currency:function(t){var r=this.currentUser.currency;try{return new Intl.NumberFormat(void 0,{style:"currency",currency:r}).format(t||0)}catch(e){return r+" "+Number(t||0).toFixed(2)}},badgeVariant:function(t){return{pending:"warning",confirmed:"success",cancelled:"danger"}[t]||"secondary"},toDateStr:function(t){if(!t)return"";var r=t instanceof Date?t:new Date(t);return isNaN(r.getTime())?"":r.getFullYear()+"-"+("0"+(r.getMonth()+1)).slice(-2)+"-"+("0"+r.getDate()).slice(-2)},_headers:function(){var t={Accept:"application/json"},r=document.querySelector('meta[name="csrf-token"]');return r&&r.content&&(t["X-CSRF-TOKEN"]=r.content),t},_postPatch:function(t,r){var e=r||{};return e._method="PATCH",a().post(t,e,{headers:this._headers(),withCredentials:!0,validateStatus:function(){return!0}})},clearErrors:function(){this.errorTitle="",this.errors=[]},setErrorState:function(t,r){this.errorTitle=t||"",this.errors=Array.isArray(r)?r:[]},_flattenErrors:function(t){var r=[];if(!t)return r;if(Array.isArray(t))for(var e=0;e<t.length;e++)t[e]&&r.push(String(t[e]));else if("object"===c(t))for(var n=Object.keys(t),a=0;a<n.length;a++){var o=t[n[a]];if(Array.isArray(o))for(var i=0;i<o.length;i++)o[i]?r.push(String(o[i])):o&&r.push(String(o))}else"string"==typeof t&&r.push(t);for(var s={},l=[],u=0;u<r.length;u++){var f=String(r[u]).trim();f&&!s[f]&&(s[f]=1,l.push(f))}return l},_parseItems:function(t){var r=[];if(Array.isArray(t))for(var e=0;e<t.length;e++){var n=t[e]||{},a=n.name?n.name:"#"+(void 0!==n.product_id?n.product_id:""),o=void 0!==n.required?n.required:"-",i=void 0!==n.available?n.available:"-";r.push(a+": Required "+o+" — Available "+i)}return r},_stripHtml:function(t){try{return String(t).replace(/<[^>]*>/g," ").replace(/\s+/g," ").trim()}catch(r){return String(t)}},_parsePayloadToState:function(t){var r="",e=[];if(!t)return{title:"",list:[]};if("string"==typeof t){var n=this._stripHtml(t);return n&&"validation failed"!==n.toLowerCase()&&(r=n),{title:r,list:[]}}if(t.errors)return{title:r="string"==typeof t.message&&"validation failed"!==t.message.toLowerCase()?this._stripHtml(t.message):r||this.$t("Validation_failed")||"Validation failed",list:e=this._flattenErrors(t.errors)};if("string"==typeof t.error&&t.error.trim()&&(r=t.error.trim()),t.items&&(e=this._parseItems(t.items)),!e.length&&Array.isArray(t.messages))for(var a=0;a<t.messages.length;a++)t.messages[a]&&e.push(String(t.messages[a]));if(!e.length&&t.details)if(Array.isArray(t.details))for(var o=0;o<t.details.length;o++)t.details[o]&&e.push(String(t.details[o]));else"string"==typeof t.details&&e.push(t.details);if(!r&&"string"==typeof t.message){var i=this._stripHtml(t.message);"validation failed"!==i.toLowerCase()&&(r=i)}for(var s={},c=[],l=0;l<e.length;l++){var u=String(e[l]).trim();u&&!s[u]&&(s[u]=1,c.push(u))}return{title:r,list:c}},_asErrorState:function(t){var r=t&&t.status?t.status:0,e=t&&t.data?t.data:null,n=e&&(e.errors||e.items||"string"==typeof e.error&&e.error.trim()||!1===e.status||!1===e.ok);return 0===r?{title:this.$t("Network_error")||"Network error",list:[]}:n||r>=400?this._parsePayloadToState(e):{title:"",list:[]}},fetch:function(){var t=this;return s(o().mark((function r(){var e,n,i,s,c;return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return t.isLoading=!0,t.clearErrors(),r.prev=2,e=t.serverParams.sort&&t.serverParams.sort[0]?t.serverParams.sort[0]:null,n={page:t.serverParams.page,per_page:t.serverParams.perPage,sort:e?e.field:"created_at",dir:e?e.type:"desc",q:t.search||"",status:t.status||"",from:t.toDateStr(t.dateFrom),to:t.toDateStr(t.dateTo)},r.next=7,a().get("/store/orders",{params:n,headers:t._headers(),withCredentials:!0,validateStatus:function(){return!0}});case 7:i=r.sent,(s=t._asErrorState(i)).title||s.list.length?t.setErrorState(s.title,s.list):(c=i&&i.data?i.data:{},t.rows=c.data||c.rows||[],t.totalRows=c.meta&&c.meta.total?c.meta.total:t.rows.length),r.next=15;break;case 12:r.prev=12,r.t0=r.catch(2),t.setErrorState(t.$t("Network_error")||"Network error",[]);case 15:return r.prev=15,t.isLoading=!1,r.finish(15);case 18:case"end":return r.stop()}}),r,null,[[2,12,15,18]])})))()},reload:function(){this.serverParams.page=1,this.fetch()},onPageChange:function(t){this.serverParams.page=t&&t.currentPage?t.currentPage:1,this.fetch()},onPerPageChange:function(t){this.serverParams.perPage=t&&t.currentPerPage?t.currentPerPage:10,this.fetch()},onSortChange:function(t){this.serverParams.sort=t&&t[0]?[t[0]]:[],this.fetch()},clearFilters:function(){this.search="",this.status="",this.dateFrom=null,this.dateTo=null,this.clearErrors(),this.reload()},confirmOrder:function(t){var r=this;return s(o().mark((function e(){var n,a,i,s;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t&&"pending"===t.status){e.next=2;break}return e.abrupt("return");case 2:if(n=!0,!r.$swal){e.next=8;break}return e.next=6,r.$swal({title:r.$t("Confirm_this_order_Q")||"Confirm this order?",text:r.$t("Confirm_to_sale_hint")||"",icon:"warning",showCancelButton:!0,confirmButtonText:r.$t("Confirm")||"Confirm",cancelButtonText:r.$t("Cancel")||"Cancel"});case 6:a=e.sent,n=!(!a||!a.isConfirmed&&!0!==a.value);case 8:if(n){e.next=10;break}return e.abrupt("return");case 10:return r.actionBusyId=t.id,e.prev=11,e.next=14,r._postPatch("/store/orders/"+t.id,{status:"confirmed"});case 14:if(i=e.sent,!(s=r._asErrorState(i)).title&&!s.list.length){e.next=19;break}return r.setErrorState(s.title,s.list),e.abrupt("return");case 19:t.status="confirmed",r.clearErrors(),r.$bvToast?r.$bvToast.toast(r.$t("Order_confirmed")||"Order confirmed.",{title:r.$t("Success")||"Success",variant:"success",solid:!0}):r.$swal&&r.$swal({icon:"success",title:r.$t("Success")||"Success",text:r.$t("Order_confirmed")||"Order confirmed."}),e.next=27;break;case 24:e.prev=24,e.t0=e.catch(11),r.setErrorState(r.$t("Network_error")||"Network error",[]);case 27:return e.prev=27,r.actionBusyId=null,e.finish(27);case 30:case"end":return e.stop()}}),e,null,[[11,24,27,30]])})))()},cancelOrder:function(t){var r=this;return s(o().mark((function e(){var n,a,i,s;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t&&"pending"===t.status){e.next=2;break}return e.abrupt("return");case 2:if(n=!0,!r.$swal){e.next=8;break}return e.next=6,r.$swal({title:r.$t("Cancel_this_order_Q")||"Cancel this order?",text:r.$t("Cancel_order_hint")||"",icon:"warning",showCancelButton:!0,confirmButtonText:r.$t("Cancel")||"Cancel",cancelButtonText:r.$t("Keep")||"Keep"});case 6:a=e.sent,n=!(!a||!a.isConfirmed&&!0!==a.value);case 8:if(n){e.next=10;break}return e.abrupt("return");case 10:return r.actionBusyId=t.id,e.prev=11,e.next=14,r._postPatch("/store/orders/"+t.id,{status:"cancelled"});case 14:if(i=e.sent,!(s=r._asErrorState(i)).title&&!s.list.length){e.next=19;break}return r.setErrorState(s.title,s.list),e.abrupt("return");case 19:t.status="cancelled",r.clearErrors(),r.$bvToast?r.$bvToast.toast(r.$t("Order_cancelled")||"Order cancelled.",{title:r.$t("Success")||"Success",variant:"success",solid:!0}):r.$swal&&r.$swal({icon:"success",title:r.$t("Success")||"Success",text:r.$t("Order_cancelled")||"Order cancelled."}),e.next=27;break;case 24:e.prev=24,e.t0=e.catch(11),r.setErrorState(r.$t("Network_error")||"Network error",[]);case 27:return e.prev=27,r.actionBusyId=null,e.finish(27);case 30:case"end":return e.stop()}}),e,null,[[11,24,27,30]])})))()}}};var h=e(85072),p=e.n(h),v=e(52078),m={insert:"head",singleton:!1};p()(v.A,m);v.A.locals;const g=(0,e(14486).A)(d,(function(){var t=this,r=t._self._c;return r("div",{staticClass:"main-content"},[r("breadcumb",{attrs:{page:t.$t("Orders"),folder:t.$t("Store")}}),t._v(" "),t.isLoading?r("div",{staticClass:"loading_page spinner spinner-primary mr-3"}):r("b-card",{staticClass:"wrapper"},[r("b-alert",{staticClass:"mb-3",attrs:{variant:"danger",show:t.hasError,dismissible:""},on:{dismissed:t.clearErrors}},[t.errorTitle?r("div",{staticClass:"font-weight-bold mb-2"},[t._v("\n "+t._s(t.errorTitle)+"\n ")]):t._e(),t._v(" "),t.errors.length?r("ul",{staticClass:"mb-0 pl-3"},t._l(t.errors,(function(e,n){return r("li",{key:n},[t._v(t._s(e))])})),0):t._e()]),t._v(" "),r("div",{staticClass:"row mb-3"},[r("div",{staticClass:"col-md-3"},[r("b-form-input",{attrs:{placeholder:t.$t("Search")},on:{keyup:function(r){return!r.type.indexOf("key")&&t._k(r.keyCode,"enter",13,r.key,"Enter")?null:t.reload.apply(null,arguments)}},model:{value:t.search,callback:function(r){t.search=r},expression:"search"}})],1),t._v(" "),r("div",{staticClass:"col-md-3"},[r("b-form-select",{attrs:{options:t.statusOptions},on:{change:t.reload},model:{value:t.status,callback:function(r){t.status=r},expression:"status"}})],1),t._v(" "),r("div",{staticClass:"col-md-3"},[r("b-form-datepicker",{attrs:{placeholder:t.$t("From")},on:{input:t.reload},model:{value:t.dateFrom,callback:function(r){t.dateFrom=r},expression:"dateFrom"}})],1),t._v(" "),r("div",{staticClass:"col-md-3"},[r("b-form-datepicker",{attrs:{placeholder:t.$t("To")},on:{input:t.reload},model:{value:t.dateTo,callback:function(r){t.dateTo=r},expression:"dateTo"}})],1)]),t._v(" "),r("vue-good-table",{attrs:{mode:"remote",columns:t.columns,rows:t.rows,totalRows:t.totalRows,"pagination-options":{enabled:!0,perPage:t.serverParams.perPage},"search-options":{enabled:!1},styleClass:"table-hover tableOne vgt-table"},on:{"on-page-change":t.onPageChange,"on-per-page-change":t.onPerPageChange,"on-sort-change":t.onSortChange},scopedSlots:t._u([{key:"table-row",fn:function(e){return["status"===e.column.field?r("span",[r("b-badge",{attrs:{variant:t.badgeVariant(e.row.status)}},[t._v(t._s(e.row.status))])],1):"total"===e.column.field?r("span",[t._v("\n "+t._s(t.currency(e.row.total))+"\n ")]):"actions"===e.column.field?r("span",[r("div",{staticClass:"btn-group btn-group-sm"},["pending"===e.row.status?[r("b-button",{attrs:{disabled:t.actionBusyId===e.row.id,variant:"outline-success"},on:{click:function(r){return t.confirmOrder(e.row)}}},[t.actionBusyId===e.row.id?r("span",{staticClass:"spinner-border spinner-border-sm"}):r("span",[t._v(t._s(t.$t("Confirm")))])]),t._v(" "),r("b-button",{attrs:{disabled:t.actionBusyId===e.row.id,variant:"outline-danger"},on:{click:function(r){return t.cancelOrder(e.row)}}},[t.actionBusyId===e.row.id?r("span",{staticClass:"spinner-border spinner-border-sm"}):r("span",[t._v(t._s(t.$t("Cancel")))])])]:t._e(),t._v(" "),r("router-link",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover",modifiers:{hover:!0}}],staticClass:"btn btn-outline-primary btn-sm",attrs:{to:{name:"StoreOrderShow",params:{id:e.row.id}},title:t.$t("Details")}},[r("i",{staticClass:"i-Eye"})])],2)]):r("span",[t._v("\n "+t._s(e.formattedRow[e.column.field])+"\n ")])]}}])},[r("div",{staticClass:"mt-2 mb-3",attrs:{slot:"table-actions"},slot:"table-actions"},[r("b-button",{staticClass:"btn-rounded",attrs:{size:"sm",variant:"btn btn-outline-secondary"},on:{click:t.clearFilters}},[r("i",{staticClass:"i-Reload"}),t._v(" "+t._s(t.$t("Clear"))+"\n ")])],1)])],1)],1)}),[],!1,null,"c9d37498",null).exports}}]);