[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: 4428.js
"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[4428],{3537:(e,t,a)=>{a.d(t,{A:()=>i});var n=a(9726);var r=a(4693);const o={name:"LoadingContentComponent",components:{VueElementLoading:a.n(r)()},props:["props"],data:function(){return{isActive:!1}}};const i=(0,a(6262).A)(o,[["render",function(e,t,a,r,o,i){var s=(0,n.resolveComponent)("VueElementLoading");return(0,n.openBlock)(),(0,n.createBlock)(s,{spinner:"bar-fade-scale",color:"#FD8B0E",active:a.props.isActive,"is-full-screen":!1},null,8,["active"])}]])},4428:(e,t,a)=>{a.r(t),a.d(t,{default:()=>f});var n=a(9726),r={class:"mb-10 sm:mb-20"},o={class:"container"},i={class:"flex items-center justify-between gap-5 mb-6 max-md:mb-8"},s={class:"flex flex-wrap items-end gap-3 max-md:flex-col max-md:items-start max-md:gap-1.5"},l={class:"text-3xl font-bold capitalize max-sm:text-lg"},p={class:"text-xl font-medium capitalize max-sm:text-sm"},u={class:"w-full max-md:p-0"},c={class:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-6 mb-12"};var d=a(7468),g=a(1811),m=a(3537),h=a(6079);const P={name:"FlashSaleProductComponent",components:{LoadingComponent:g.A,LoadingContentComponent:m.A,ProductListComponent:d.A,PaginationComponent:h.A},data:function(){return{loading:{isActive:!1},loadingContent:{isActive:!1}}},computed:{pagination:function(){return this.$store.getters["frontendProduct/popularProductPagination"]},products:function(){return this.$store.getters["frontendProduct/popularProducts"]}},mounted:function(){this.mostPopularProducts()},methods:{mostPopularProducts:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;this.loadingContent.isActive=!0,this.$store.dispatch("frontendProduct/popularProducts",{paginate:1,page:t,per_page:32,order_column:"name",order_type:"asc"}).then(function(t){e.loadingContent.isActive=!1}).catch(function(t){e.loadingContent.isActive=!1})}}};const f=(0,a(6262).A)(P,[["render",function(e,t,a,d,g,m){var h=(0,n.resolveComponent)("LoadingComponent"),P=(0,n.resolveComponent)("LoadingContentComponent"),f=(0,n.resolveComponent)("ProductListComponent"),v=(0,n.resolveComponent)("PaginationComponent");return(0,n.openBlock)(),(0,n.createElementBlock)(n.Fragment,null,[(0,n.createVNode)(h,{props:g.loading},null,8,["props"]),(0,n.createElementVNode)("section",r,[(0,n.createElementVNode)("div",o,[(0,n.createElementVNode)("div",i,[(0,n.createElementVNode)("div",s,[(0,n.createElementVNode)("h3",l,(0,n.toDisplayString)(e.$t("label.most_popular")),1),(0,n.createElementVNode)("span",p," ("+(0,n.toDisplayString)(m.products.length)+" "+(0,n.toDisplayString)(m.products.length>1?e.$t("label.products_found"):e.$t("label.product_found"))+") ",1)])]),(0,n.createElementVNode)("div",u,[(0,n.createElementVNode)("div",c,[(0,n.createVNode)(P,{props:g.loadingContent},null,8,["props"]),m.products.length>0?((0,n.openBlock)(),(0,n.createBlock)(f,{key:0,products:m.products},null,8,["products"])):(0,n.createCommentVNode)("",!0)]),(0,n.createVNode)(v,{onPaginationChangePage:m.mostPopularProducts,data:m.pagination,limit:1,"keep-length":!1},null,8,["onPaginationChangePage","data"])])])])],64)}]])},6079:(e,t,a)=>{a.d(t,{A:()=>l});var n=a(9726),r=["disabled"],o=["aria-current"],i=["disabled"];const s={name:"PaginationComponent",inheritAttrs:!1,emits:["pagination-change-page"],components:{RenderLessPagination:{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(){return this.isApiResource?this.data.meta.current_page:this.data.current_page??null},firstPageUrl(){return this.data.first_page_url??this.data.meta?.first_page_url??this.data.links?.first??null},from(){return this.isApiResource?this.data.meta.from:this.data.from??null},lastPage(){return this.isApiResource?this.data.meta.last_page:this.data.last_page??null},lastPageUrl(){return this.data.last_page_url??this.data.meta?.last_page_url??this.data.links?.last??null},nextPageUrl(){return this.data.next_page_url??this.data.meta?.next_page_url??this.data.links?.next??null},perPage(){return this.isApiResource?this.data.meta.per_page:this.data.per_page??null},prevPageUrl(){return this.data.prev_page_url??this.data.meta?.prev_page_url??this.data.links?.prev??null},to(){return this.isApiResource?this.data.meta.to:this.data.to??null},total(){return this.isApiResource?this.data.meta.total:this.data.total??null},pageRange(){if(-1===this.limit)return 0;if(0===this.limit)return this.lastPage;for(var e,t=this.currentPage,a=this.keepLength,n=this.lastPage,r=this.limit,o=t-r,i=t+r,s=2*(r+2),l=2*(r+2)-1,p=[],u=[],c=1;c<=n;c++)(1===c||c===n||c>=o&&c<=i||a&&c<s&&t<s-2||a&&c>n-l&&t>n-l+2)&&p.push(c);return p.forEach(function(t){e&&(t-e===2?u.push(e+1):t-e!==1&&u.push("...")),u.push(t),e=t}),u}},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)}})})}}},props:{data:{type:Object,default:function(){}},limit:{type:Number,default:0},keepLength:{type:Boolean,default:!1}},data:function(){return{activeClass:["bg-primary","text-white"]}},methods:{onPaginationChangePage:function(e){this.$emit("pagination-change-page",e)}}};const l=(0,a(6262).A)(s,[["render",function(e,t,a,s,l,p){var u=(0,n.resolveComponent)("RenderLessPagination");return(0,n.openBlock)(),(0,n.createBlock)(u,{data:a.data,limit:a.limit,"keep-length":a.keepLength,onPaginationChangePage:p.onPaginationChangePage},{default:(0,n.withCtx)(function(t){return[t.computed.total>t.computed.perPage?((0,n.openBlock)(),(0,n.createElementBlock)("nav",(0,n.mergeProps)({key:0},e.$attrs,{"aria-label":"Pagination",class:"flex items-center justify-center gap-4 mobile:mb-12"}),[(0,n.createElementVNode)("button",(0,n.mergeProps)({disabled:!t.computed.prevPageUrl,class:t.computed.prevPageUrl?"hover:text-white hover:bg-primary":""},(0,n.toHandlers)(t.prevButtonEvents,!0),{class:"h-10 leading-10 px-4 rounded-full font-medium capitalize bg-gray-100 transition-all duration-500"}),[(0,n.renderSlot)(e.$slots,"prev-nav",{},function(){return[(0,n.createTextVNode)((0,n.toDisplayString)(e.$t("label.previous")),1)]})],16,r),((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(t.computed.pageRange,function(e,a){return(0,n.openBlock)(),(0,n.createElementBlock)("button",(0,n.mergeProps)({class:t.computed.currentPage===e?"bg-primary text-white":"","aria-current":t.computed.currentPage?"page":null,key:a},(0,n.toHandlers)(t.pageButtonEvents(e),!0),{class:"w-10 h-10 leading-10 rounded-full font-medium capitalize text-center transition-all duration-500 hover:text-white hover:bg-primary hidden sm:block bg-gray-100"}),(0,n.toDisplayString)(e),17,o)}),128)),(0,n.createElementVNode)("button",(0,n.mergeProps)({disabled:!t.computed.nextPageUrl,class:t.computed.nextPageUrl?"hover:text-white hover:bg-primary":""},(0,n.toHandlers)(t.nextButtonEvents,!0),{class:"h-10 leading-10 px-4 rounded-full font-medium capitalize bg-gray-100 transition-all duration-500"}),[(0,n.renderSlot)(e.$slots,"next-nav",{},function(){return[(0,n.createTextVNode)((0,n.toDisplayString)(e.$t("label.next")),1)]})],16,i)],16)):(0,n.createCommentVNode)("",!0)]}),_:3},8,["data","limit","keep-length","onPaginationChangePage"])}]])}}]);
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