[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: 8115.js
"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[8115],{725:(e,t,n)=>{n.d(t,{A:()=>r});var a=n(9726);const l={name:"ExcelComponent",props:{method:{type:Function}},methods:{excelDownload:function(){this.method()}}};const r=(0,n(6262).A)(l,[["render",function(e,t,n,l,r,o){return(0,a.openBlock)(),(0,a.createElementBlock)("a",{href:"#",onClick:t[0]||(t[0]=(0,a.withModifiers)(function(){return o.excelDownload&&o.excelDownload.apply(o,arguments)},["prevent"])),class:"db-card-filter-dropdown-menu"},[t[1]||(t[1]=(0,a.createElementVNode)("i",{class:"lab lab-line-file-excel lab-font-size-15"},null,-1)),(0,a.createTextVNode)(" "+(0,a.toDisplayString)(e.$t("button.excel")),1)])}]])},1017:(e,t,n)=>{n.d(t,{A:()=>r});var a=n(9726);const l={name:"PaginationBox",components:{TailwindPagination:n(1964).L5},props:{pagination:{type:Object},method:{type:Function}},data:function(){return{activeClass:["bg-blue-50","border-blue-500","text-primary"]}},methods:{page:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;this.method(e)}}};const r=(0,n(6262).A)(l,[["render",function(e,t,n,l,r,o){var i=(0,a.resolveComponent)("TailwindPagination");return(0,a.openBlock)(),(0,a.createElementBlock)("div",null,[(0,a.createVNode)(i,{data:n.pagination,onPaginationChangePage:o.page,"active-classes":r.activeClass,limit:1},null,8,["data","onPaginationChangePage","active-classes"])])}]])},1751:(e,t,n)=>{n.d(t,{A:()=>o});var a=n(9726),l={class:"flex flex-1 justify-between sm:hidden"};const r={name:"PaginationSMBox",components:{TailwindPagination:n(1964).L5},props:{pagination:{type:Object},method:{type:Function}},data:function(){return{activeClass:["bg-blue-50","border-blue-500","text-primary"]}},methods:{page:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;this.method(e)}}};const o=(0,n(6262).A)(r,[["render",function(e,t,n,r,o,i){var s=(0,a.resolveComponent)("TailwindPagination");return(0,a.openBlock)(),(0,a.createElementBlock)("div",l,[(0,a.createVNode)(s,{data:n.pagination,onPaginationChangePage:i.page,"active-classes":o.activeClass,limit:-1},null,8,["data","onPaginationChangePage","active-classes"])])}]])},1889:(e,t,n)=>{n.d(t,{A:()=>o});var a=n(9726),l={class:"text-sm text-gray-700"};const r={name:"PaginationTextComponent",props:["props"]};const o=(0,n(6262).A)(r,[["render",function(e,t,n,r,o,i){var s,c;return(0,a.openBlock)(),(0,a.createElementBlock)("div",null,[(0,a.createElementVNode)("p",l,(0,a.toDisplayString)(e.$t("message.pagination_label",{from:null!==(s=n.props.page.from)&&void 0!==s?s:0,to:null!==(c=n.props.page.to)&&void 0!==c?c:0,total:n.props.page.total})),1)])}]])},1964:(e,t,n)=>{n.d(t,{L5:()=>h});var a=n(9726);const l={emits:["pagination-change-page"],props:{data:{type:Object,default:()=>{}},limit:{type:Number,default:0},keepLength:{type:Boolean,default:!1}},computed:{isApiResource(){return!!this.data.meta},currentPage(){var e;return this.isApiResource?this.data.meta.current_page:null!=(e=this.data.current_page)?e:null},firstPageUrl(){var e,t,n,a,l;return null!=(l=null!=(a=null!=(t=this.data.first_page_url)?t:null==(e=this.data.meta)?void 0:e.first_page_url)?a:null==(n=this.data.links)?void 0:n.first)?l:null},from(){var e;return this.isApiResource?this.data.meta.from:null!=(e=this.data.from)?e:null},lastPage(){var e;return this.isApiResource?this.data.meta.last_page:null!=(e=this.data.last_page)?e:null},lastPageUrl(){var e,t,n,a,l;return null!=(l=null!=(a=null!=(t=this.data.last_page_url)?t:null==(e=this.data.meta)?void 0:e.last_page_url)?a:null==(n=this.data.links)?void 0:n.last)?l:null},nextPageUrl(){var e,t,n,a,l;return null!=(l=null!=(a=null!=(t=this.data.next_page_url)?t:null==(e=this.data.meta)?void 0:e.next_page_url)?a:null==(n=this.data.links)?void 0:n.next)?l:null},perPage(){var e;return this.isApiResource?this.data.meta.per_page:null!=(e=this.data.per_page)?e:null},prevPageUrl(){var e,t,n,a,l;return null!=(l=null!=(a=null!=(t=this.data.prev_page_url)?t:null==(e=this.data.meta)?void 0:e.prev_page_url)?a:null==(n=this.data.links)?void 0:n.prev)?l:null},to(){var e;return this.isApiResource?this.data.meta.to:null!=(e=this.data.to)?e:null},total(){var e;return this.isApiResource?this.data.meta.total:null!=(e=this.data.total)?e:null},pageRange(){if(-1===this.limit)return 0;if(0===this.limit)return this.lastPage;for(var e,t=this.currentPage,n=this.keepLength,a=this.lastPage,l=this.limit,r=t-l,o=t+l,i=2*(l+2),s=2*(l+2)-1,c=[],d=[],p=1;p<=a;p++)(1===p||p===a||p>=r&&p<=o||n&&p<i&&t<i-2||n&&p>a-s&&t>a-s+2)&&c.push(p);return c.forEach(function(t){e&&(t-e===2?d.push(e+1):t-e!==1&&d.push("...")),d.push(t),e=t}),d}},methods:{previousPage(){this.selectPage(this.currentPage-1)},nextPage(){this.selectPage(this.currentPage+1)},selectPage(e){"..."===e||e===this.currentPage||this.$emit("pagination-change-page",e)}},render(){return this.$slots.default({data:this.data,limit:this.limit,computed:{isApiResource:this.isApiResource,currentPage:this.currentPage,firstPageUrl:this.firstPageUrl,from:this.from,lastPage:this.lastPage,lastPageUrl:this.lastPageUrl,nextPageUrl:this.nextPageUrl,perPage:this.perPage,prevPageUrl:this.prevPageUrl,to:this.to,total:this.total,pageRange:this.pageRange},prevButtonEvents:{click:e=>{e.preventDefault(),this.previousPage()}},nextButtonEvents:{click:e=>{e.preventDefault(),this.nextPage()}},pageButtonEvents:e=>({click:t=>{t.preventDefault(),this.selectPage(e)}})})}},r=(e,t)=>{const n=e.__vccOpts||e;for(const[e,a]of t)n[e]=a;return n};Boolean,Boolean;Boolean,Boolean;const o={compatConfig:{MODE:3},inheritAttrs:!1,emits:["pagination-change-page"],components:{RenderlessPagination:l},props:{data:{type:Object,default:()=>{}},limit:{type:Number,default:0},keepLength:{type:Boolean,default:!1},itemClasses:{type:Array,default:()=>["bg-white","text-gray-500","border-gray-300","hover:bg-gray-50"]},activeClasses:{type:Array,default:()=>["bg-blue-50","border-blue-500","text-blue-600"]}},methods:{onPaginationChangePage(e){this.$emit("pagination-change-page",e)}}},i=["disabled"],s=(0,a.createElementVNode)("span",{class:"sr-only"},"Previous",-1),c=(0,a.createElementVNode)("svg",{class:"w-5 h-5","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},[(0,a.createElementVNode)("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15.75 19.5L8.25 12l7.5-7.5"})],-1),d=["aria-current","disabled"],p=["disabled"],u=(0,a.createElementVNode)("span",{class:"sr-only"},"Next",-1),m=(0,a.createElementVNode)("svg",{class:"w-5 h-5","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},[(0,a.createElementVNode)("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M8.25 4.5l7.5 7.5-7.5 7.5"})],-1);const h=r(o,[["render",function(e,t,n,l,r,o){const h=(0,a.resolveComponent)("RenderlessPagination");return(0,a.openBlock)(),(0,a.createBlock)(h,{data:n.data,limit:n.limit,"keep-length":n.keepLength,onPaginationChangePage:o.onPaginationChangePage},{default:(0,a.withCtx)(t=>[t.computed.total>t.computed.perPage?((0,a.openBlock)(),(0,a.createElementBlock)("nav",(0,a.mergeProps)({key:0},e.$attrs,{class:"inline-flex -space-x-px rounded-md shadow-sm isolate ltr:flex-row rtl:flex-row-reverse","aria-label":"Pagination"}),[(0,a.createElementVNode)("button",(0,a.mergeProps)({class:["relative inline-flex items-center px-2 py-2 text-sm font-medium border rounded-l-md focus:z-20 disabled:opacity-50",n.itemClasses],disabled:!t.computed.prevPageUrl},(0,a.toHandlers)(t.prevButtonEvents,!0)),[(0,a.renderSlot)(e.$slots,"prev-nav",{},()=>[s,c])],16,i),((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(t.computed.pageRange,(e,l)=>((0,a.openBlock)(),(0,a.createElementBlock)("button",(0,a.mergeProps)({class:["relative inline-flex items-center px-4 py-2 text-sm font-medium border focus:z-20",[e==t.computed.currentPage?n.activeClasses:n.itemClasses,e==t.computed.currentPage?"z-30":""]],"aria-current":t.computed.currentPage?"page":null,key:l},(0,a.toHandlers)(t.pageButtonEvents(e),!0),{disabled:e===t.computed.currentPage}),(0,a.toDisplayString)(e),17,d))),128)),(0,a.createElementVNode)("button",(0,a.mergeProps)({class:["relative inline-flex items-center px-2 py-2 text-sm font-medium border rounded-r-md focus:z-20 disabled:opacity-50",n.itemClasses],disabled:!t.computed.nextPageUrl},(0,a.toHandlers)(t.nextButtonEvents,!0)),[(0,a.renderSlot)(e.$slots,"next-nav",{},()=>[u,m])],16,p)],16)):(0,a.createCommentVNode)("",!0)]),_:3},8,["data","limit","keep-length","onPaginationChangePage"])}]])},3911:(e,t,n)=>{n.d(t,{A:()=>o});var a=n(9726),l={class:"db-card-filter-dropdown-menu"};const r={name:"PrintComponent",props:["props"],directives:{print:n(5316).A}};const o=(0,n(6262).A)(r,[["render",function(e,t,n,r,o,i){var s=(0,a.resolveDirective)("print");return(0,a.withDirectives)(((0,a.openBlock)(),(0,a.createElementBlock)("button",l,[t[0]||(t[0]=(0,a.createElementVNode)("i",{class:"lab-line-printer lab-font-size-17"},null,-1)),(0,a.createTextVNode)(" "+(0,a.toDisplayString)(e.$t("button.print")),1)])),[[s,n.props]])}]])},4579:(e,t,n)=>{n.d(t,{A:()=>o});var a=n(9726),l={class:"db-card-filter-btn table-filter-btn"};const r={name:"FilterComponent"};const o=(0,n(6262).A)(r,[["render",function(e,t,n,r,o,i){return(0,a.openBlock)(),(0,a.createElementBlock)("button",l,[t[0]||(t[0]=(0,a.createElementVNode)("i",{class:"lab lab-line-filter lab-font-size-14"},null,-1)),(0,a.createElementVNode)("span",null,(0,a.toDisplayString)(e.$t("button.filter")),1)])}]])},5316:(e,t,n)=>{n.d(t,{A:()=>r});class a{constructor(e){this.standards={strict:"strict",loose:"loose",html5:"html5"},this.previewBody=null,this.close=null,this.previewBodyUtilPrintBtn=null,this.selectArray=[],this.counter=0,this.settings={standard:this.standards.html5},Object.assign(this.settings,e),this.init()}init(){this.counter++,this.settings.id=`printArea_${this.counter}`;let e="";this.settings.url&&!this.settings.asyncUrl&&(e=this.settings.url);let t=this;if(this.settings.asyncUrl)return void t.settings.asyncUrl(function(e){let n=t.getPrintWindow(e);t.settings.preview?t.previewIfrmaeLoad():t.print(n)},t.settings.vue);let n=this.getPrintWindow(e);this.settings.url||this.write(n.doc),this.settings.preview?this.previewIfrmaeLoad():this.print(n)}addEvent(e,t,n){e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent?e.attachEvent("on"+t,n):e["on"+t]=n}previewIfrmaeLoad(){let e=document.getElementById("vue-pirnt-nb-previewBox");if(e){let t=this,n=e.querySelector("iframe");this.settings.previewBeforeOpenCallback(),this.addEvent(n,"load",function(){t.previewBoxShow(),t.removeCanvasImg(),t.settings.previewOpenCallback()}),this.addEvent(e.querySelector(".previewBodyUtilPrintBtn"),"click",function(){t.settings.beforeOpenCallback(),t.settings.openCallback(),n.contentWindow.print(),t.settings.closeCallback()})}}removeCanvasImg(){let e=this;try{if(e.elsdom){let t=e.elsdom.querySelectorAll(".canvasImg");for(let e=0;e<t.length;e++)t[e].remove()}}catch(e){console.log(e)}}print(e){var t=this;let n=document.getElementById(this.settings.id)||e.f,a=document.getElementById(this.settings.id).contentWindow||e.f.contentWindow;t.settings.beforeOpenCallback(),t.addEvent(n,"load",function(){a.focus(),t.settings.openCallback(),a.print(),n.remove(),t.settings.closeCallback(),t.removeCanvasImg()})}write(e){e.open(),e.write(`${this.docType()}<html>${this.getHead()}${this.getBody()}</html>`),e.close()}docType(){return this.settings.standard===this.standards.html5?"<!DOCTYPE html>":`<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01${this.settings.standard===this.standards.loose?" Transitional":""}//EN" "http://www.w3.org/TR/html4/${this.settings.standard===this.standards.loose?"loose":"strict"}.dtd">`}getHead(){let e="",t="",n="";this.settings.extraHead&&this.settings.extraHead.replace(/([^,]+)/g,t=>{e+=t}),[].forEach.call(document.querySelectorAll("link"),function(e){e.href.indexOf(".css")>=0&&(t+=`<link type="text/css" rel="stylesheet" href="${e.href}" >`)});let a=document.styleSheets;if(a&&a.length>0)for(let e=0;e<a.length;e++)try{if(a[e].cssRules||a[e].rules){let t=a[e].cssRules||a[e].rules;for(let e=0;e<t.length;e++)n+=t[e].cssText}}catch(t){console.log(a[e].href+t)}return this.settings.extraCss&&this.settings.extraCss.replace(/([^,\s]+)/g,e=>{t+=`<link type="text/css" rel="stylesheet" href="${e}">`}),`<head><title>${this.settings.popTitle}</title>${e}${t}<style type="text/css">${n}</style></head>`}getBody(){let e=this.settings.ids;return e=e.replace(new RegExp("#","g"),""),this.elsdom=this.beforeHanler(document.getElementById(e)),"<body>"+this.getFormData(this.elsdom).outerHTML+"</body>"}beforeHanler(e){let t=e.querySelectorAll("canvas");for(let e=0;e<t.length;e++)if(!t[e].style.display){let n=t[e].parentNode,a=t[e].toDataURL("image/png"),l=new Image;l.className="canvasImg",l.style.display="none",l.src=a,n.appendChild(l)}return e}getFormData(e){let t=e.cloneNode(!0),n=t.querySelectorAll("input,select,textarea"),a=t.querySelectorAll(".canvasImg,canvas"),l=-1;for(let e=0;e<a.length;e++){let t=a[e].parentNode,n=a[e];"canvas"===n.tagName.toLowerCase()?t.removeChild(n):n.style.display="block"}for(let t=0;t<n.length;t++){let a=n[t],r=a.getAttribute("type"),o=n[t];if(r||(r="SELECT"===a.tagName?"select":"TEXTAREA"===a.tagName?"textarea":""),"INPUT"===a.tagName)"radio"===r||"checkbox"===r?a.checked&&o.setAttribute("checked",a.checked):(o.value=a.value,o.setAttribute("value",a.value));else if("select"===r){l++;for(let t=0;t<e.querySelectorAll("select").length;t++){let n=e.querySelectorAll("select")[t];if(!n.getAttribute("newbs")&&n.setAttribute("newbs",t),n.getAttribute("newbs")==l){let t=e.querySelectorAll("select")[l].selectedIndex;a.options[t].setAttribute("selected",!0)}}}else o.innerHTML=a.value,o.setAttribute("html",a.value)}return t}getPrintWindow(e){var t=this.Iframe(e);return{f:t,win:t.contentWindow||t,doc:t.doc}}previewBoxShow(){let e=document.getElementById("vue-pirnt-nb-previewBox");e&&(document.querySelector("html").setAttribute("style","overflow: hidden"),e.style.display="block")}previewBoxHide(){let e=document.getElementById("vue-pirnt-nb-previewBox");e&&(document.querySelector("html").setAttribute("style","overflow: visible;"),e.querySelector("iframe")&&e.querySelector("iframe").remove(),e.style.display="none")}previewBox(){let e=document.getElementById("vue-pirnt-nb-previewBox");if(e)return e.querySelector("iframe")&&e.querySelector("iframe").remove(),{close:e.querySelector(".previewClose"),previewBody:e.querySelector(".previewBody")};let t=document.createElement("div");t.setAttribute("id","vue-pirnt-nb-previewBox"),t.setAttribute("style","position: fixed;top: 0px;left: 0px;width: 100%;height: 100%;background: white;display:none"),t.style.zIndex=this.settings.zIndex;let n=document.createElement("div");n.setAttribute("class","previewHeader"),n.setAttribute("style","padding: 5px 20px;"),n.innerHTML=this.settings.previewTitle,t.appendChild(n),this.close=document.createElement("div");let a=this.close;a.setAttribute("class","previewClose"),a.setAttribute("style","position: absolute;top: 5px;right: 20px;width: 25px;height: 20px;cursor: pointer;");let l=document.createElement("div"),r=document.createElement("div");l.setAttribute("class","closeBefore"),l.setAttribute("style","position: absolute;width: 3px;height: 100%;background: #040404;transform: rotate(45deg); top: 0px;left: 50%;"),r.setAttribute("class","closeAfter"),r.setAttribute("style","position: absolute;width: 3px;height: 100%;background: #040404;transform: rotate(-45deg); top: 0px;left: 50%;"),a.appendChild(l),a.appendChild(r),n.appendChild(a),this.previewBody=document.createElement("div");let o=this.previewBody;o.setAttribute("class","previewBody"),o.setAttribute("style","display: flex;flex-direction: column; height: 100%;"),t.appendChild(o);let i=document.createElement("div");i.setAttribute("class","previewBodyUtil"),i.setAttribute("style","height: 32px;background: #474747;position: relative;"),o.appendChild(i),this.previewBodyUtilPrintBtn=document.createElement("div");let s=this.previewBodyUtilPrintBtn;return s.setAttribute("class","previewBodyUtilPrintBtn"),s.innerHTML=this.settings.previewPrintBtnLabel,s.setAttribute("style","position: absolute;padding: 2px 10px;margin-top: 3px;left: 24px;font-size: 14px;color: white;cursor: pointer;background-color: rgba(0,0,0,.12);background-image: linear-gradient(hsla(0,0%,100%,.05),hsla(0,0%,100%,0));background-clip: padding-box;border: 1px solid rgba(0,0,0,.35);border-color: rgba(0,0,0,.32) rgba(0,0,0,.38) rgba(0,0,0,.42);box-shadow: inset 0 1px 0 hsla(0,0%,100%,.05), inset 0 0 1px hsla(0,0%,100%,.15), 0 1px 0 hsla(0,0%,100%,.05);"),i.appendChild(s),document.body.appendChild(t),{close:this.close,previewBody:this.previewBody}}iframeBox(e,t){let n=document.createElement("iframe");return n.style.border="0px",n.style.position="absolute",n.style.width="0px",n.style.height="0px",n.style.right="0px",n.style.top="0px",n.setAttribute("id",e),n.setAttribute("src",t),n}Iframe(e){let t=this.settings.id;e=e||(new Date).getTime();let n=this,a=this.iframeBox(t,e);try{if(this.settings.preview){a.setAttribute("style","border: 0px;flex: 1;");let e=this.previewBox(),t=e.previewBody,l=e.close;t.appendChild(a),this.addEvent(l,"click",function(){n.previewBoxHide()})}else document.body.appendChild(a);a.doc=null,a.doc=a.contentDocument?a.contentDocument:a.contentWindow?a.contentWindow.document:a.document}catch(e){throw new Error(e+". iframes may not be supported in this browser.")}if(null==a.doc)throw new Error("Cannot find document.");return a}}var l={directiveName:"print",mounted(e,t,n){let l=t.instance,r="";var o,i,s;i="click",s=()=>{if("string"==typeof t.value)r=t.value;else{if("object"!=typeof t.value||!t.value.id)return void window.print();{r=t.value.id;let e=r.replace(new RegExp("#","g"),"");document.getElementById(e)||(console.log("id in Error"),r="")}}c()},(o=e).addEventListener?o.addEventListener(i,s,!1):o.attachEvent?o.attachEvent("on"+i,s):o["on"+i]=s;const c=()=>{new a({ids:r,vue:l,url:t.value.url,standard:"",extraHead:t.value.extraHead,extraCss:t.value.extraCss,zIndex:t.value.zIndex||20002,previewTitle:t.value.previewTitle||"打印预览",previewPrintBtnLabel:t.value.previewPrintBtnLabel||"打印",popTitle:t.value.popTitle,preview:t.value.preview||!1,asyncUrl:t.value.asyncUrl,previewBeforeOpenCallback(){t.value.previewBeforeOpenCallback&&t.value.previewBeforeOpenCallback(l)},previewOpenCallback(){t.value.previewOpenCallback&&t.value.previewOpenCallback(l)},openCallback(){t.value.openCallback&&t.value.openCallback(l)},closeCallback(){t.value.closeCallback&&t.value.closeCallback(l)},beforeOpenCallback(){t.value.beforeOpenCallback&&t.value.beforeOpenCallback(l)}})}},install:function(e){e.directive("print",l)}};const r=l},6365:(e,t,n)=>{n.d(t,{A:()=>o});var a=n(9726),l={class:"db-card-filter-btn dropdown-btn"};const r={name:"ExportComponent"};const o=(0,n(6262).A)(r,[["render",function(e,t,n,r,o,i){return(0,a.openBlock)(),(0,a.createElementBlock)("button",l,[t[0]||(t[0]=(0,a.createElementVNode)("i",{class:"lab lab-line-file-export lab-font-size-17"},null,-1)),(0,a.createElementVNode)("span",null,(0,a.toDisplayString)(e.$t("button.export")),1)])}]])},8115:(e,t,n)=>{n.r(t),n.d(t,{default:()=>me});var a=n(9726),l={class:"col-12"},r={class:"db-card"},o={class:"db-card-header border-none"},i={class:"db-card-title"},s={class:"db-card-filter"},c={class:"dropdown-group"},d={class:"dropdown-list db-card-filter-dropdown-list"},p={class:"table-filter-div",id:"review-filter"},u={class:"row"},m={class:"col-12 sm:col-6 md:col-4 xl:col-3"},h={for:"name",class:"db-field-title"},g={class:"col-12 sm:col-6 md:col-4 xl:col-3"},v={for:"user_id",class:"db-field-title"},b={class:"col-12"},f={class:"flex flex-wrap gap-3 mt-4"},y={class:"db-btn py-2 text-white bg-primary"},w={class:"db-table-responsive"},x={class:"db-table stripe",id:"print"},E={class:"db-table-head"},C={class:"db-table-head-tr"},k={class:"db-table-head-th"},B={class:"db-table-head-th"},A={class:"db-table-head-th"},N={class:"db-table-head-th"},V={key:0,class:"db-table-head-th hidden-print"},P={key:0,class:"db-table-body border-b border-gray-200"},S={class:"db-table-body-td"},_={class:"db-table-body-td"},$=["innerHTML"],D={class:"db-table-body-td"},L={class:"db-table-body-td"},T={key:0,class:"db-table-body-td hidden-print"},U={key:1,class:"db-table-body"},I={class:"db-table-body-tr"},O={class:"db-table-body-td text-center",colspan:"6"},R={class:"p-4"},F={class:"max-w-[300px] mx-auto mt-2"},H=["src"],M={class:"d-block mt-3 text-lg"},q={key:0,class:"flex items-center justify-between border-t border-gray-200 bg-white px-4 py-6"},j={class:"hidden sm:flex sm:flex-1 sm:items-center sm:justify-between"};var z=n(4513),W=n.n(z),Y=n(8536),X=n(6884),G=n(9856),J=n(8655),K=n(5475),Q=n(9319),Z=n(9639),ee=n(9238),te=n(4579),ne=n(725),ae=n(6365),le=n(3911),re=n(1017),oe=n(1751),ie=n(1889);const se={name:"ReviewListComponent",components:{PaginationBox:re.A,PaginationSMBox:oe.A,PaginationTextComponent:ie.A,TableLimitComponent:Q.A,FilterComponent:te.A,PrintComponent:le.A,ExcelComponent:ne.A,ExportComponent:ae.A,SmIconViewComponent:ee.A,LoadingComponent:K.A,SmIconSidebarModalEditComponent:Z.A,starRating:W()},data:function(){return{loading:{isActive:!1},printObj:{id:"print",popTitle:this.$t("menu.reviews")},props:{search:{paginate:1,page:1,per_page:10,order_column:"id",order_type:"desc",user_id:null,product_id:null}},productSearch:{paginate:0,page:1,order_column:"id"},ENV:Y.A}},mounted:function(){var e=this;this.list(),this.loading.isActive=!0,this.$store.dispatch("product/getSimpleProduct",this.productSearch).then(function(t){e.loading.isActive=!1}).catch(function(t){e.loading.isActive=!1}),this.$store.dispatch("user/lists",{order_column:"id",order_type:"asc",status:X.A.ACTIVE})},computed:{reviews:function(){return this.$store.getters["review/lists"]},pagination:function(){return this.$store.getters["review/pagination"]},paginationPage:function(){return this.$store.getters["review/page"]},products:function(){return this.$store.getters["product/simpleList"]},customers:function(){return this.$store.getters["user/lists"]}},methods:{textShortener:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:55;return e=J.A.htmlTagRemover(e),J.A.textShortener(e,t)},search:function(){this.list()},handleSlide:function(e){return J.A.handleSlide(e)},permissionChecker:function(e){return J.A.permissionChecker(e)},list:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;this.loading.isActive=!0,this.props.search.page=t,this.$store.dispatch("review/lists",this.props.search).then(function(t){e.loading.isActive=!1}).catch(function(t){e.loading.isActive=!1})},clear:function(){this.props.search={paginate:1,page:1,per_page:10,order_column:"id",order_type:"desc",user_id:null,product_id:null},this.list()},xls:function(){var e=this;this.loading.isActive=!0,this.$store.dispatch("review/export",this.props.search).then(function(t){e.loading.isActive=!1;var n=new Blob([t.data],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}),a=document.createElement("a");a.href=URL.createObjectURL(n),a.download=e.$t("menu.reviews"),a.click(),URL.revokeObjectURL(a.href)}).catch(function(t){e.loading.isActive=!1,G.A.error(t.response.data.message)})},reset:function(){this.$store.dispatch("review/reset").then().catch()}}};var ce=n(5072),de=n.n(ce),pe=n(9473),ue={insert:"head",singleton:!1};de()(pe.A,ue);pe.A.locals;const me=(0,n(6262).A)(se,[["render",function(e,t,n,z,W,Y){var X=(0,a.resolveComponent)("LoadingComponent"),G=(0,a.resolveComponent)("TableLimitComponent"),J=(0,a.resolveComponent)("FilterComponent"),K=(0,a.resolveComponent)("ExportComponent"),Q=(0,a.resolveComponent)("PrintComponent"),Z=(0,a.resolveComponent)("ExcelComponent"),ee=(0,a.resolveComponent)("vue-select"),te=(0,a.resolveComponent)("starRating"),ne=(0,a.resolveComponent)("SmIconViewComponent"),ae=(0,a.resolveComponent)("PaginationSMBox"),le=(0,a.resolveComponent)("PaginationTextComponent"),re=(0,a.resolveComponent)("PaginationBox");return(0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,null,[(0,a.createVNode)(X,{props:W.loading},null,8,["props"]),(0,a.createElementVNode)("div",l,[(0,a.createElementVNode)("div",r,[(0,a.createElementVNode)("div",o,[(0,a.createElementVNode)("h3",i,(0,a.toDisplayString)(e.$t("menu.reviews")),1),(0,a.createElementVNode)("div",s,[(0,a.createVNode)(G,{method:Y.list,search:W.props.search,page:Y.paginationPage},null,8,["method","search","page"]),(0,a.createVNode)(J,{onClick:t[0]||(t[0]=(0,a.withModifiers)(function(e){return Y.handleSlide("review-filter")},["prevent"]))}),(0,a.createElementVNode)("div",c,[(0,a.createVNode)(K),(0,a.createElementVNode)("div",d,[(0,a.createVNode)(Q,{props:W.printObj},null,8,["props"]),(0,a.createVNode)(Z,{method:Y.xls},null,8,["method"])])])])]),(0,a.createElementVNode)("div",p,[(0,a.createElementVNode)("form",{class:"p-4 sm:p-5 mb-5 w-full d-block",onSubmit:t[4]||(t[4]=(0,a.withModifiers)(function(){return Y.search&&Y.search.apply(Y,arguments)},["prevent"]))},[(0,a.createElementVNode)("div",u,[(0,a.createElementVNode)("div",m,[(0,a.createElementVNode)("label",h,(0,a.toDisplayString)(e.$t("label.product")),1),(0,a.createVNode)(ee,{class:"db-field-control f-b-custom-select",id:"product_id",modelValue:W.props.search.product_id,"onUpdate:modelValue":t[1]||(t[1]=function(e){return W.props.search.product_id=e}),options:Y.products,"label-by":"name","value-by":"id",closeOnSelect:!0,searchable:!0,clearOnClose:!0,placeholder:"--","search-placeholder":"--"},null,8,["modelValue","options"])]),(0,a.createElementVNode)("div",g,[(0,a.createElementVNode)("label",v,(0,a.toDisplayString)(e.$t("label.customer")),1),(0,a.createVNode)(ee,{class:"db-field-control f-b-custom-select",id:"user_id",modelValue:W.props.search.user_id,"onUpdate:modelValue":t[2]||(t[2]=function(e){return W.props.search.user_id=e}),options:Y.customers,"label-by":"name","value-by":"id",closeOnSelect:!0,searchable:!0,clearOnClose:!0,placeholder:"--","search-placeholder":"--"},null,8,["modelValue","options"])]),(0,a.createElementVNode)("div",b,[(0,a.createElementVNode)("div",f,[(0,a.createElementVNode)("button",y,[t[5]||(t[5]=(0,a.createElementVNode)("i",{class:"lab lab-line-search lab-font-size-16"},null,-1)),(0,a.createElementVNode)("span",null,(0,a.toDisplayString)(e.$t("button.search")),1)]),(0,a.createElementVNode)("button",{class:"db-btn py-2 text-white bg-gray-600",onClick:t[3]||(t[3]=function(){return Y.clear&&Y.clear.apply(Y,arguments)})},[t[6]||(t[6]=(0,a.createElementVNode)("i",{class:"lab lab-line-cross lab-font-size-22"},null,-1)),(0,a.createElementVNode)("span",null,(0,a.toDisplayString)(e.$t("button.clear")),1)])])])])],32)]),(0,a.createElementVNode)("div",w,[(0,a.createElementVNode)("table",x,[(0,a.createElementVNode)("thead",E,[(0,a.createElementVNode)("tr",C,[(0,a.createElementVNode)("th",k,(0,a.toDisplayString)(e.$t("label.rating")),1),(0,a.createElementVNode)("th",B,(0,a.toDisplayString)(e.$t("label.review")),1),(0,a.createElementVNode)("th",A,(0,a.toDisplayString)(e.$t("label.product")),1),(0,a.createElementVNode)("th",N,(0,a.toDisplayString)(e.$t("label.customer")),1),Y.permissionChecker("reviews")?((0,a.openBlock)(),(0,a.createElementBlock)("th",V,(0,a.toDisplayString)(e.$t("label.action")),1)):(0,a.createCommentVNode)("",!0)])]),Y.reviews.length>0?((0,a.openBlock)(),(0,a.createElementBlock)("tbody",P,[((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(Y.reviews,function(e,t){return(0,a.openBlock)(),(0,a.createElementBlock)("tr",{class:"db-table-body-tr",key:t},[(0,a.createElementVNode)("td",S,[(0,a.createVNode)(te,{"border-color":"#FFBC1F","inactive-color":"#FFFFFF","active-color":"#FFBC1F","rounded-corners":!0,padding:2.5,"border-width":2.5,"star-size":11,class:"-mt-0.5","round-start-rating":!1,"show-rating":!1,"read-only":!0,"max-rating":5,rating:e.star},null,8,["rating"])]),(0,a.createElementVNode)("td",_,[(0,a.createElementVNode)("span",{innerHTML:Y.textShortener(e.review)},null,8,$)]),(0,a.createElementVNode)("td",D,(0,a.toDisplayString)(e.product_name),1),(0,a.createElementVNode)("td",L,(0,a.toDisplayString)(e.user_name),1),Y.permissionChecker("reviews")?((0,a.openBlock)(),(0,a.createElementBlock)("td",T,[Y.permissionChecker("reviews")?((0,a.openBlock)(),(0,a.createBlock)(ne,{key:0,link:"admin.review.show",id:e.id},null,8,["id"])):(0,a.createCommentVNode)("",!0)])):(0,a.createCommentVNode)("",!0)])}),128))])):((0,a.openBlock)(),(0,a.createElementBlock)("tbody",U,[(0,a.createElementVNode)("tr",I,[(0,a.createElementVNode)("td",O,[(0,a.createElementVNode)("div",R,[(0,a.createElementVNode)("div",F,[(0,a.createElementVNode)("img",{class:"w-full h-full",src:W.ENV.API_URL+"/images/default/not-found/not_found.png",alt:"Not Found"},null,8,H)]),(0,a.createElementVNode)("span",M,(0,a.toDisplayString)(e.$t("message.no_data_found")),1)])])])]))])]),Y.reviews.length>0?((0,a.openBlock)(),(0,a.createElementBlock)("div",q,[(0,a.createVNode)(ae,{pagination:Y.pagination,method:Y.list},null,8,["pagination","method"]),(0,a.createElementVNode)("div",j,[(0,a.createVNode)(le,{props:{page:Y.paginationPage}},null,8,["props"]),(0,a.createVNode)(re,{pagination:Y.pagination,method:Y.list},null,8,["pagination","method"])])])):(0,a.createCommentVNode)("",!0)])])],64)}],["__scopeId","data-v-d1432b7e"]])},9238:(e,t,n)=>{n.d(t,{A:()=>o});var a=n(9726),l={class:"db-tooltip"};const r={name:"SmIconViewComponent",props:{link:String,id:Number}};const o=(0,n(6262).A)(r,[["render",function(e,t,n,r,o,i){var s=(0,a.resolveComponent)("router-link");return(0,a.openBlock)(),(0,a.createBlock)(s,{class:"db-table-action view",to:{name:this.$props.link,params:{id:this.$props.id}}},{default:(0,a.withCtx)(function(){return[t[0]||(t[0]=(0,a.createElementVNode)("i",{class:"lab lab-line-eye"},null,-1)),(0,a.createElementVNode)("span",l,(0,a.toDisplayString)(e.$t("button.view")),1)]}),_:1,__:[0]},8,["to"])}]])},9319:(e,t,n)=>{n.d(t,{A:()=>u});var a=n(9726),l={key:0,class:"db-field-down-arrow"},r={value:"10"},o={value:"25"},i={value:"50"},s={value:"100"},c={value:"500"},d={value:"1000"};const p={name:"TableLimitComponent",props:{page:{type:Object},search:{type:Object},method:{type:Function}},methods:{limitChange:function(){this.method()}}};const u=(0,n(6262).A)(p,[["render",function(e,t,n,p,u,m){return n.page.total>10?((0,a.openBlock)(),(0,a.createElementBlock)("div",l,[(0,a.withDirectives)((0,a.createElementVNode)("select",{onChange:t[0]||(t[0]=function(){return m.limitChange&&m.limitChange.apply(m,arguments)}),"onUpdate:modelValue":t[1]||(t[1]=function(e){return n.search.per_page=e}),class:"db-card-filter-select"},[(0,a.createElementVNode)("option",r,(0,a.toDisplayString)(e.$t("number.10")),1),(0,a.createElementVNode)("option",o,(0,a.toDisplayString)(e.$t("number.25")),1),(0,a.createElementVNode)("option",i,(0,a.toDisplayString)(e.$t("number.50")),1),(0,a.createElementVNode)("option",s,(0,a.toDisplayString)(e.$t("number.100")),1),(0,a.createElementVNode)("option",c,(0,a.toDisplayString)(e.$t("number.500")),1),(0,a.createElementVNode)("option",d,(0,a.toDisplayString)(e.$t("number.1000")),1)],544),[[a.vModelSelect,n.search.per_page]])])):(0,a.createCommentVNode)("",!0)}]])},9473:(e,t,n)=>{n.d(t,{A:()=>r});var a=n(6314),l=n.n(a)()(function(e){return e[1]});l.push([e.id,"@media print{.hidden-print[data-v-d1432b7e]{display:none!important}}",""]);const r=l},9639:(e,t,n)=>{n.d(t,{A:()=>i});var a=n(9726),l={class:"db-tooltip"};var r=n(5457);const o={name:"SmIconSidebarModalEditComponent",data:function(){return{openCanvas:(0,r.y)().openCanvas}}};const i=(0,n(6262).A)(o,[["render",function(e,t,n,r,o,i){return(0,a.openBlock)(),(0,a.createElementBlock)("button",{class:"db-table-action edit",onClick:t[0]||(t[0]=(0,a.withModifiers)(function(e){return o.openCanvas("sidebar")},["prevent"]))},[t[1]||(t[1]=(0,a.createElementVNode)("i",{class:"lab lab-line-edit"},null,-1)),(0,a.createElementVNode)("span",l,(0,a.toDisplayString)(e.$t("button.edit")),1)])}]])}}]);
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: premium320.web-hosting.com
Server IP: 66.29.153.54
PHP Version: 8.2.29
Server Software: LiteSpeed
System: Linux premium320.web-hosting.com 4.18.0-553.50.1.lve.el8.x86_64 #1 SMP Thu Apr 17 19:10:24 UTC 2025 x86_64
HDD Total: 97.87 GB
HDD Free: 76.87 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes (py3)
gcc:
Yes
pkexec:
No
git:
Yes
User Info
Username: aoneqssk
User ID (UID): 1285
Group ID (GID): 1290
Script Owner UID: 1285
Current Dir Owner: 1285