[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: 4096.js
"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[4096],{4096:(e,t,n)=>{n.r(t),n.d(t,{default:()=>$});var o=n(9726),r={class:"row"},l={class:"col-12 lg:col-8"},i={key:0,class:"p-4 mb-11 rounded-2xl shadow-card"},s={class:"flex items-start gap-3 pb-4 mb-4 border-b last:mb-0 last:pb-0 last:border-none border-gray-100"},a=["src"],c={class:"relative w-full overflow-hidden"},d={class:"font-semibold capitalize whitespace-nowrap overflow-hidden text-ellipsis mb-1"},u={key:0,class:"flex flex-wrap mb-2"},p={class:"text-xs capitalize inline-flex items-center"},m={class:"flex flex-wrap gap-3 mb-3"},f={class:"font-semibold font-sans"},g={key:0,class:"font-semibold font-sans text-[#FF6262]"},h={class:"flex items-start justify-between gap-3"},b={class:"flex items-center gap-1 w-20 p-1 rounded-full bg-[#F7F7FC]"},y=["onClick"],x=["onKeyup","value"],v=["onClick"],_=["onClick"],E={class:"text-xs font-medium capitalize hidden sm:block"},C={class:"text-right"},N={class:"col-12 lg:col-4"};var k=n(8655),V=n(4746);const w={name:"CartListComponent",components:{SummeryComponent:n(4460).A,CouponComponent:V.A},computed:{setting:function(){return this.$store.getters["frontendSetting/lists"]},carts:function(){return this.$store.getters["frontendCart/lists"]}},methods:{onlyNumber:function(e){return k.A.onlyNumber(e)},currencyFormat:function(e,t,n,o){return k.A.currencyFormat(e,t,n,o)},quantityUp:function(e,t,n){var o=n.target.value;0===o&&(o=1),o>t.stock&&(o=t.stock),this.$store.dispatch("frontendCart/quantity",{id:e,status:o}).then().catch()},quantityIncrement:function(e,t){var n=t.quantity;++n<=0&&(n=1),n>t.stock&&n--,this.$store.dispatch("frontendCart/quantity",{id:e,status:n}).then().catch()},quantityDecrement:function(e,t){var n=t.quantity;--n<=0&&(n=1),this.$store.dispatch("frontendCart/quantity",{id:e,status:n}).then().catch()},removeProduct:function(e){this.$store.dispatch("frontendCart/remove",{id:e}).then().catch()}}};const $=(0,n(6262).A)(w,[["render",function(e,t,n,k,V,w){var $=(0,o.resolveComponent)("router-link"),D=(0,o.resolveComponent)("CouponComponent"),S=(0,o.resolveComponent)("SummeryComponent");return(0,o.openBlock)(),(0,o.createElementBlock)("div",r,[(0,o.createElementVNode)("div",l,[w.carts.length>0?((0,o.openBlock)(),(0,o.createElementBlock)("ul",i,[((0,o.openBlock)(!0),(0,o.createElementBlock)(o.Fragment,null,(0,o.renderList)(w.carts,function(n,r){return(0,o.openBlock)(),(0,o.createElementBlock)("li",s,[(0,o.createElementVNode)("img",{src:n.image,alt:"products",class:"w-28 rounded-lg flex-shrink-0"},null,8,a),(0,o.createElementVNode)("div",c,[(0,o.createElementVNode)("h4",d,(0,o.toDisplayString)(n.name),1),n.variation_id>0?((0,o.openBlock)(),(0,o.createElementBlock)("div",u,[(0,o.createElementVNode)("span",p,(0,o.toDisplayString)(n.variation_names),1)])):(0,o.createCommentVNode)("",!0),(0,o.createElementVNode)("div",m,[(0,o.createElementVNode)("span",f,(0,o.toDisplayString)(w.currencyFormat(n.price,w.setting.site_digit_after_decimal_point,w.setting.site_default_currency_symbol,w.setting.site_currency_position)),1),n.discount>0?((0,o.openBlock)(),(0,o.createElementBlock)("del",g,(0,o.toDisplayString)(w.currencyFormat(n.old_price,w.setting.site_digit_after_decimal_point,w.setting.site_default_currency_symbol,w.setting.site_currency_position)),1)):(0,o.createCommentVNode)("",!0)]),(0,o.createElementVNode)("div",h,[(0,o.createElementVNode)("div",b,[(0,o.createElementVNode)("button",{onClick:(0,o.withModifiers)(function(e){return w.quantityDecrement(r,n)},["prevent"]),type:"button",class:(0,o.normalizeClass)([1===n.quantity?"cursor-not-allowed":"","lab-fill-circle-minus text-lg leading-none transition-all duration-300 hover:text-primary"])},null,10,y),(0,o.createElementVNode)("input",{onKeypress:t[0]||(t[0]=function(e){return w.onlyNumber(e)}),onKeyup:function(e){return w.quantityUp(r,n,e)},type:"number",value:n.quantity,class:"text-center w-full h-5 text-sm font-medium"},null,40,x),(0,o.createElementVNode)("button",{class:(0,o.normalizeClass)([n.quantity>=n.stock?"cursor-not-allowed":"","lab-fill-circle-plus text-lg leading-none transition-all duration-300 hover:text-primary"]),onClick:(0,o.withModifiers)(function(e){return w.quantityIncrement(r,n)},["prevent"]),type:"button"},null,10,v)]),(0,o.createElementVNode)("button",{onClick:(0,o.withModifiers)(function(e){return w.removeProduct(r)},["prevent"]),class:"flex items-center gap-1.5 px-2.5 py-1 rounded-full bg-[#FFF4F4] text-[#E93C3C] transition-all duration-300 hover:bg-[#E93C3C] hover:text-white"},[t[1]||(t[1]=(0,o.createElementVNode)("i",{class:"lab-line-trash text-sm"},null,-1)),(0,o.createElementVNode)("span",E,(0,o.toDisplayString)(e.$t("button.remove")),1)],8,_)])])])}),256))])):(0,o.createCommentVNode)("",!0),(0,o.createElementVNode)("div",C,[(0,o.createVNode)($,{to:{name:"frontend.checkout.checkout"},class:"max-lg:hidden field-button w-fit font-semibold tracking-wide normal-case"},{default:(0,o.withCtx)(function(){return[(0,o.createTextVNode)((0,o.toDisplayString)(e.$t("button.process_to_checkout")),1)]}),_:1})])]),(0,o.createElementVNode)("div",N,[(0,o.createVNode)(D),(0,o.createVNode)(S),(0,o.createVNode)($,{to:{name:"frontend.checkout.checkout"},class:"max-lg:block hidden field-button mt-6 font-semibold tracking-wide normal-case"},{default:(0,o.withCtx)(function(){return[(0,o.createTextVNode)((0,o.toDisplayString)(e.$t("button.process_to_checkout")),1)]}),_:1})])])}]])},4460:(e,t,n)=>{n.d(t,{A:()=>V});var o=n(9726),r={class:"bg-white rounded-2xl shadow-card"},l={class:"p-4 border-b border-[#EFF0F6]"},i={class:"text-lg font-semibold capitalize"},s={class:"flex flex-col gap-3 p-4 border-b border-[#EFF0F6]"},a={class:"flex items-center justify-between"},c={class:"capitalize"},d={class:"font-medium"},u={class:"flex items-center justify-between"},p={class:"capitalize"},m={class:"font-medium"},f={class:"flex items-center justify-between"},g={class:"capitalize"},h={class:"font-medium"},b={class:"flex items-center justify-between"},y={class:"capitalize"},x={class:"font-medium"},v={class:"p-4"},_={class:"flex items-center justify-between"},E={class:"font-semibold capitalize"},C={class:"font-semibold"};var N=n(8655);const k={name:"SummeryComponent",computed:{setting:function(){return this.$store.getters["frontendSetting/lists"]},subtotal:function(){return this.$store.getters["frontendCart/subtotal"]},discount:function(){return this.$store.getters["frontendCart/discount"]},totalTax:function(){return this.$store.getters["frontendCart/totalTax"]},shippingCharge:function(){return this.$store.getters["frontendCart/shippingCharge"]},total:function(){return this.$store.getters["frontendCart/total"]}},methods:{currencyFormat:function(e,t,n,o){return N.A.currencyFormat(e,t,n,o)}}};const V=(0,n(6262).A)(k,[["render",function(e,t,n,N,k,V){return(0,o.openBlock)(),(0,o.createElementBlock)("div",r,[(0,o.createElementVNode)("div",l,[(0,o.createElementVNode)("h3",i,(0,o.toDisplayString)(e.$t("label.order_summery")),1)]),(0,o.createElementVNode)("ul",s,[(0,o.createElementVNode)("li",a,[(0,o.createElementVNode)("span",c,(0,o.toDisplayString)(e.$t("label.subtotal")),1),(0,o.createElementVNode)("span",d,(0,o.toDisplayString)(V.currencyFormat(V.subtotal,V.setting.site_digit_after_decimal_point,V.setting.site_default_currency_symbol,V.setting.site_currency_position)),1)]),(0,o.createElementVNode)("li",u,[(0,o.createElementVNode)("span",p,(0,o.toDisplayString)(e.$t("label.tax")),1),(0,o.createElementVNode)("span",m,(0,o.toDisplayString)(V.currencyFormat(V.totalTax,V.setting.site_digit_after_decimal_point,V.setting.site_default_currency_symbol,V.setting.site_currency_position)),1)]),(0,o.createElementVNode)("li",f,[(0,o.createElementVNode)("span",g,(0,o.toDisplayString)(e.$t("label.shipping_charge")),1),(0,o.createElementVNode)("span",h,(0,o.toDisplayString)(V.currencyFormat(V.shippingCharge,V.setting.site_digit_after_decimal_point,V.setting.site_default_currency_symbol,V.setting.site_currency_position)),1)]),(0,o.createElementVNode)("li",b,[(0,o.createElementVNode)("span",y,(0,o.toDisplayString)(e.$t("label.discount")),1),(0,o.createElementVNode)("span",x,(0,o.toDisplayString)(V.currencyFormat(V.discount,V.setting.site_digit_after_decimal_point,V.setting.site_default_currency_symbol,V.setting.site_currency_position)),1)])]),(0,o.createElementVNode)("div",v,[(0,o.createElementVNode)("dl",_,[(0,o.createElementVNode)("dt",E,(0,o.toDisplayString)(e.$t("label.total")),1),(0,o.createElementVNode)("dd",C,(0,o.toDisplayString)(V.currencyFormat(V.total,V.setting.site_digit_after_decimal_point,V.setting.site_default_currency_symbol,V.setting.site_currency_position)),1)])])])}]])},4746:(e,t,n)=>{n.d(t,{A:()=>k});var o=n(9726),r={key:0,class:"mb-6 rounded-2xl border border-success flex items-center gap-3 p-4 cursor-pointer"},l={class:"flex-auto overflow-hidden"},i={class:"font-semibold leading-5 mb-1 whitespace-nowrap overflow-hidden text-ellipsis capitalize text-success"},s={class:"text-xs font-normal whitespace-nowrap overflow-hidden text-ellipsis"},a={class:"flex-auto overflow-hidden"},c={class:"font-semibold leading-5 mb-1 whitespace-nowrap overflow-hidden text-ellipsis capitalize text-focus"},d={class:"text-xs font-normal whitespace-nowrap overflow-hidden text-ellipsis"},u={id:"coupon-modal",class:"fixed inset-0 z-50 p-3 w-screen h-dvh overflow-y-auto bg-black/50 transition-all duration-300 opacity-0 invisible"},p={class:"w-full rounded-xl mx-auto bg-white transition-all duration-300 max-w-[360px]"},m={class:"flex items-center justify-between gap-2 py-4 px-4 border-b border-slate-100"},f={class:"text-lg font-bold capitalize"},g={type:"submit",class:"h-11 px-4 leading-11 ltr:rounded-tr-lg rtl:rounded-tl-lg rtl:rounded-bl-lg ltr:rounded-br-lg rtl:rounded-br-0 rtl:rounded-tr-0 capitalize font-semibold text-white bg-[#007FE3]"},h={key:0,class:"w-full px-4 pt-0 db-field-alert"},b={key:1,class:"p-4 pt-4 flex flex-col gap-4"},y={class:"py-1 px-2 rounded font-medium text-xs w-fit mb-2 bg-[#FFDB1F]"},x={class:"text-sm font-medium mb-3"},v={class:"text-xs text-text"},_=["onClick"];var E=n(4233),C=n(9856);const N={name:"CouponComponent",components:{LoadingComponent:n(1811).A},data:function(){return{loading:{isActive:!1},code:null,error:""}},computed:{coupons:function(){return this.$store.getters["frontendCoupon/lists"]},subtotal:function(){return this.$store.getters["frontendCart/subtotal"]},cartCoupon:function(){return this.$store.getters["frontendCart/coupon"]}},mounted:function(){var e=this;this.loading.isActive=!0,this.$store.dispatch("frontendCoupon/lists",{}).then(function(t){e.loading.isActive=!1}).catch(function(t){e.loading.isActive=!1})},methods:{showTarget:function(e,t){E.A.showTarget(e,t)},hideTarget:function(e,t){this.code=null,this.error="",E.A.hideTarget(e,t)},appCouponButton:function(e){this.code=e.code},couponChecking:function(){var e=this;this.loading.isActive=!0,this.$store.dispatch("frontendCoupon/checking",{total:this.subtotal,code:this.code}).then(function(t){e.error="",e.$store.dispatch("frontendCart/coupon",t.data.data),e.loading.isActive=!1,e.hideTarget("coupon-modal","modal-active"),C.A.success(e.$t("message.coupon_add"))}).catch(function(t){e.loading.isActive=!1,e.error=t.response.data.message})},destroyCoupon:function(){var e=this;this.loading.isActive=!0,this.$store.dispatch("frontendCart/destroyCoupon").then(function(t){e.code=null,e.loading.isActive=!1,C.A.success(e.$t("message.coupon_delete"))}).catch(function(t){e.loading.isActive=!1,C.A.error(t)})}}};const k=(0,n(6262).A)(N,[["render",function(e,t,n,E,C,N){var k=(0,o.resolveComponent)("LoadingComponent");return(0,o.openBlock)(),(0,o.createElementBlock)(o.Fragment,null,[(0,o.createVNode)(k,{props:C.loading},null,8,["props"]),0!==Object.keys(N.cartCoupon).length?((0,o.openBlock)(),(0,o.createElementBlock)("div",r,[t[5]||(t[5]=(0,o.createElementVNode)("div",{class:"relative flex-shrink-0"},[(0,o.createElementVNode)("i",{class:"lab-fill-shape lab-font-size-2xl opacity-[0.3] text-success"}),(0,o.createElementVNode)("i",{class:"lab-line-percent lab-font-size-8 absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 text-success"})],-1)),(0,o.createElementVNode)("div",l,[(0,o.createElementVNode)("h4",i,(0,o.toDisplayString)(e.$t("message.coupon_applied")),1),(0,o.createElementVNode)("h5",s,(0,o.toDisplayString)(e.$t("message.you_saved",{amount:N.cartCoupon.currency_discount})),1)]),(0,o.createElementVNode)("button",{onClick:t[0]||(t[0]=(0,o.withModifiers)(function(){return N.destroyCoupon&&N.destroyCoupon.apply(N,arguments)},["prevent"])),class:"lab-line-trash lab-font-size-xl text-danger"})])):((0,o.openBlock)(),(0,o.createElementBlock)("div",{key:1,onClick:t[1]||(t[1]=(0,o.withModifiers)(function(e){return N.showTarget("coupon-modal","modal-active")},["prevent"])),class:"mb-6 rounded-2xl border border-focus flex items-center gap-3 p-4 cursor-pointer"},[t[6]||(t[6]=(0,o.createElementVNode)("div",{class:"relative flex-shrink-0"},[(0,o.createElementVNode)("i",{class:"lab lab-fill-shape lab-font-size-2xl opacity-[0.3] text-focus"}),(0,o.createElementVNode)("i",{class:"lab lab-line-percent lab-font-size-8 absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 text-focus"})],-1)),(0,o.createElementVNode)("div",a,[(0,o.createElementVNode)("h4",c,(0,o.toDisplayString)(e.$t("message.apply_coupon")),1),(0,o.createElementVNode)("h5",d,(0,o.toDisplayString)(e.$t("message.get_discount_with_your_order")),1)]),t[7]||(t[7]=(0,o.createElementVNode)("i",{class:"lab lab-line-chevron-right rtl:rotate-180 lab-font-size-2xl text-focus"},null,-1))])),(0,o.createElementVNode)("div",u,[(0,o.createElementVNode)("div",p,[(0,o.createElementVNode)("div",m,[(0,o.createElementVNode)("h3",f,(0,o.toDisplayString)(e.$t("label.coupon_code")),1),(0,o.createElementVNode)("button",{onClick:t[2]||(t[2]=(0,o.withModifiers)(function(e){return N.hideTarget("coupon-modal","modal-active")},["prevent"])),type:"button",class:"lab-line-circle-cross text-lg text-[#E93C3C]"})]),(0,o.createElementVNode)("form",{onSubmit:t[4]||(t[4]=(0,o.withModifiers)(function(){return N.couponChecking&&N.couponChecking.apply(N,arguments)},["prevent"])),class:"w-full flex items-center px-4 mt-4"},[(0,o.withDirectives)((0,o.createElementVNode)("input",{class:(0,o.normalizeClass)([C.error?"invalid":"","h-11 w-full px-3 ltr:rounded-tl-lg rtl:rounded-tr-lg ltr:rounded-bl-lg rtl:rounded-br-lg border ltr:border-r-0 rtl:border-l-0 border-[#D9DBE9]"]),type:"text","onUpdate:modelValue":t[3]||(t[3]=function(e){return C.code=e})},null,2),[[o.vModelText,C.code]]),(0,o.createElementVNode)("button",g,(0,o.toDisplayString)(e.$t("button.apply")),1)],32),C.error?((0,o.openBlock)(),(0,o.createElementBlock)("small",h,(0,o.toDisplayString)(C.error),1)):(0,o.createCommentVNode)("",!0),N.coupons.length>0?((0,o.openBlock)(),(0,o.createElementBlock)("div",b,[((0,o.openBlock)(!0),(0,o.createElementBlock)(o.Fragment,null,(0,o.renderList)(N.coupons,function(t){return(0,o.openBlock)(),(0,o.createElementBlock)("div",{key:t,class:"bg-[#EEF7FF] p-4 relative rounded-xl"},[(0,o.createElementVNode)("h3",y,(0,o.toDisplayString)(e.$t("label.code"))+": "+(0,o.toDisplayString)(t.code),1),(0,o.createElementVNode)("h4",x,(0,o.toDisplayString)(t.description),1),(0,o.createElementVNode)("p",v,(0,o.toDisplayString)(t.convert_start_date)+" - "+(0,o.toDisplayString)(t.convert_end_date),1),(0,o.createElementVNode)("button",{onClick:(0,o.withModifiers)(function(e){return N.appCouponButton(t)},["prevent"]),type:"button",class:"absolute bottom-0 ltr:right-0 rtl:left-0 text-sm font-semibold capitalize py-1.5 px-3 rounded-br-xl rounded-tl-xl text-white bg-primary"},(0,o.toDisplayString)(e.$t("button.apply")),9,_)])}),128))])):(0,o.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