var e=Object.defineProperty,a=Object.defineProperties,t=Object.getOwnPropertyDescriptors,s=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable,i=(a,t,s)=>t in a?e(a,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):a[t]=s;import{_ as n,a as d,H as c,c as l}from"./index-9I638LJn.js";import{d as g,a0 as m,a3 as p,ar as v,k as u,r as b,c as f,o as w,t as h,H as j,ap as y,a1 as _}from"./vendor-DezibNX8.js";import{_ as D}from"./aidaIcon-MCM-2HyQ.js";import"./antd-CKo75OZH.js";import"./utils-D7vwahzQ.js";const I=g({components:{},setup(){const e=d(),n=y();let g,m=u(),p=b({}),v=f(()=>e.state.UserHabit.userDetail),_=()=>{clearTimeout(g),g=setTimeout(()=>{},500)};return w(()=>{window.addEventListener("resize",_)}),h(()=>{window.removeEventListener("resize",_)}),D=((e,a)=>{for(var t in a||(a={}))o.call(a,t)&&i(e,t,a[t]);if(s)for(var t of s(a))r.call(a,t)&&i(e,t,a[t]);return e})({},j(p)),a(D,t({userDetail:v,setLogin:()=>{n.push("/login")},registerModel:m,logout:()=>{let a=e.state.UserHabit.userDetail,t={userId:null==a?void 0:a.userId};e.commit("createDetail"),e.commit("createProbject"),t.userId&&c.axiosPost(c.httpUrls.accountLogout,t).then(e=>{l()})},goHome:()=>{n.push("/home")},signUp:()=>{n.push("/register")},goLearnMore:()=>{window.open("https://www.aida.com.hk/Square/works","_blank")}}));var D},data:()=>({}),watch:{},mounted(){},methods:{turnToWindow(e){window.open(e)}}}),L={class:"homeRecommend_max"},O={class:"header"};const P=n(I,[["render",function(e,a,t,s,o,r){return _(),m("div",L,[p("div",O,[p("img",{class:"homeRecommend_logo",onClick:a[0]||(a[0]=a=>e.turnToNewPage("/")),src:D}),p("div",{class:"gallery_btn login white",onClick:a[1]||(a[1]=(...a)=>e.setLogin&&e.setLogin(...a))},"Login"),p("div",{class:"gallery_btn",onClick:a[2]||(a[2]=(...a)=>e.signUp&&e.signUp(...a))},"Sign up")]),a[3]||(a[3]=v('<div class="content" data-v-da5cf614><img class="bg pc" src="/png/squareBg-Cg_MbGz0.png" alt="" data-v-da5cf614><img class="bg mobile" src="/png/squareBgMobile-DIU3VDnm.png" alt="" data-v-da5cf614><div class="beForm" data-v-da5cf614>Developed by AiDLab<br data-v-da5cf614> Commercialized by Code-Create</div><div class="title" data-v-da5cf614><img src="/png/recommendtitleMobile-Bl_H7N_X.png" alt="" data-v-da5cf614><div class="text" data-v-da5cf614> AI-based Interactive Design <br data-v-da5cf614>Assistant for Fashion </div></div><div class="learnMore" data-v-da5cf614><img src="/png/learnMore-DgSniqu6.png" alt="" data-v-da5cf614></div></div>',1))])}],["__scopeId","data-v-da5cf614"]]);export{P as default};
