[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: 6793.js
"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[6793],{3537:(e,t,a)=>{a.d(t,{A:()=>o});var n=a(9726);var r=a(4693);const i={name:"LoadingContentComponent",components:{VueElementLoading:a.n(r)()},props:["props"],data:function(){return{isActive:!1}}};const o=(0,a(6262).A)(i,[["render",function(e,t,a,r,i,o){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"])}]])},6079:(e,t,a)=>{a.d(t,{A:()=>l});var n=a(9726),r=["disabled"],i=["aria-current"],o=["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,i=t-r,o=t+r,s=2*(r+2),l=2*(r+2)-1,c=[],d=[],u=1;u<=n;u++)(1===u||u===n||u>=i&&u<=o||a&&u<s&&t<s-2||a&&u>n-l&&t>n-l+2)&&c.push(u);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)}})})}}},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,c){var d=(0,n.resolveComponent)("RenderLessPagination");return(0,n.openBlock)(),(0,n.createBlock)(d,{data:a.data,limit:a.limit,"keep-length":a.keepLength,onPaginationChangePage:c.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,i)}),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,o)],16)):(0,n.createCommentVNode)("",!0)]}),_:3},8,["data","limit","keep-length","onPaginationChangePage"])}]])},6793:(e,t,a)=>{a.r(t),a.d(t,{default:()=>E});var n=a(9726),r={key:0,class:"mb-10 sm:mb-20"},i={class:"container"},o={class:"max-md:hidden"},s={class:"flex flex-wrap items-center"},l={class:"after:content-['\\e048'] after:font-icon rtl:after:rotate-180 after:text-sm after:mx-2 last:after:hidden"},c={class:"after:content-['\\e048'] after:font-icon after:text-sm after:mx-2 last:after:hidden"},d={class:"text-base font-medium capitalize text-text"},u={class:"flex items-center justify-between gap-5 mb-6 max-md:mb-8"},p={class:"flex flex-wrap items-end gap-3 max-md:flex-col max-md:items-start max-md:gap-1.5"},g={class:"text-3xl font-bold capitalize max-sm:text-lg"},m={class:"text-xl font-medium capitalize max-sm:text-sm"},h={class:"w-full max-md:p-0"},f={class:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-6 mb-12"},P={key:0,class:"h-[calc(65vh_-_218px)] flex items-center justify-center"},v=["src"];var x=a(6079),k=a(1811),b=a(3537),C=a(7468);const y={name:"WishlistComponent",components:{PaginationComponent:x.A,LoadingComponent:k.A,LoadingContentComponent:b.A,ProductListComponent:C.A},data:function(){return{loading:{isActive:!1},loadingContent:{isActive:!1}}},computed:{logged:function(){return this.$store.getters.authStatus},products:function(){return this.$store.getters["frontendProduct/wishlistProducts"]},pagination:function(){return this.$store.getters["frontendProduct/wishlistProductPagination"]},setting:function(){return this.$store.getters["frontendSetting/lists"]}},mounted:function(){this.wishlistProducts()},methods:{wishlistProducts:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;this.loadingContent.isActive=!0,this.$store.dispatch("frontendProduct/wishlistProducts",{paginate:1,per_page:32,page:t}).then(function(t){e.loadingContent.isActive=!1}).catch(function(t){e.loadingContent.isActive=!1})}}};const E=(0,a(6262).A)(y,[["render",function(e,t,a,x,k,b){var C=(0,n.resolveComponent)("LoadingComponent"),y=(0,n.resolveComponent)("router-link"),E=(0,n.resolveComponent)("LoadingContentComponent"),_=(0,n.resolveComponent)("ProductListComponent"),N=(0,n.resolveComponent)("PaginationComponent");return(0,n.openBlock)(),(0,n.createElementBlock)(n.Fragment,null,[(0,n.createVNode)(C,{props:k.loading},null,8,["props"]),b.logged?((0,n.openBlock)(),(0,n.createElementBlock)("section",r,[(0,n.createElementVNode)("div",i,[(0,n.createElementVNode)("div",o,[(0,n.createElementVNode)("ul",s,[(0,n.createElementVNode)("li",l,[(0,n.createVNode)(y,{class:"text-base font-medium capitalize transition-all duration-500 hover:text-primary",to:{name:"frontend.home"}},{default:(0,n.withCtx)(function(){return[(0,n.createTextVNode)((0,n.toDisplayString)(e.$t("label.home")),1)]}),_:1})]),(0,n.createElementVNode)("li",c,[(0,n.createElementVNode)("span",d,(0,n.toDisplayString)(e.$t("label.wishlist")),1)])])]),(0,n.createElementVNode)("div",u,[(0,n.createElementVNode)("div",p,[(0,n.createElementVNode)("h3",g,(0,n.toDisplayString)(e.$t("label.my_wishlist")),1),(0,n.createElementVNode)("span",m," ("+(0,n.toDisplayString)(b.products.length)+" "+(0,n.toDisplayString)(b.products.length>1?e.$t("label.products_found"):e.$t("label.product_found"))+") ",1)])]),(0,n.createElementVNode)("div",h,[(0,n.createElementVNode)("div",f,[(0,n.createVNode)(E,{props:k.loadingContent},null,8,["props"]),b.products.length>0?((0,n.openBlock)(),(0,n.createBlock)(_,{key:0,products:b.products},null,8,["products"])):(0,n.createCommentVNode)("",!0)]),(0,n.createVNode)(N,{onPaginationChangePage:b.wishlistProducts,data:b.pagination,limit:1,"keep-length":!1},null,8,["onPaginationChangePage","data"])]),0===b.products.length?((0,n.openBlock)(),(0,n.createElementBlock)("div",P,[(0,n.createElementVNode)("img",{class:"w-52",src:b.setting.image_wishlist,alt:"empty"},null,8,v)])):(0,n.createCommentVNode)("",!0)])])):(0,n.createCommentVNode)("",!0)],64)}]])}}]);
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