import{g as A,a as F,b as R}from"./dashboard-DA5-etI2.js";import{_ as T}from"./alsoLickProductItem-Bg4Zu6vd.js";import{d as G,a as E,cQ as W,cR as X,o as q,cS as J,P as M,r as d,b as Q,aj as K,f as n,g as u,h as t,F as v,C as b,x as y,w as l,W as L,A as Y,j as s,i as e,y as B,I as k,ab as Z,G as g,t as w,J as I,cu as ee,m as te,l as oe,k as se,V as le,_ as ae}from"./index-N7CMQwFv.js";import{V as re}from"./VAlert-BH1al1I_.js";import{V as f}from"./VCol-xRADuXqd.js";import{V as C}from"./VRow-CGgRlzLk.js";import{V as ie}from"./VSkeletonLoader-CosFWfZp.js";import"./myImg-B3XMH9SK.js";import"./product-C59H-sk9.js";import"./VHover-p5R94ZLu.js";import"./VTooltip-Ap2rzsdn.js";import"./VChip-iaVLrPY0.js";import"./VSlideGroup-BGEgBoXK.js";/* empty css */const ne="/assets/walletDiscount-XG8GhmsX.png",ce={style:{"min-height":"302px"}},de=["innerHTML"],ue={class:"d-flex align-center gap-x-4 mb-5"},me={class:"text-h4"},fe={class:"d-flex justify-space-between"},pe={class:"d-flex align-center mt-5"},ve={class:"d-flex align-center mt-5"},ge={class:"d-flex align-center mt-5"},he={class:"d-flex align-center mt-5"},_e={class:"mt-2"},xe={class:"discount-box mt-5"},De={class:"d-flex justify-center"},be={class:"d-flex justify-space-between align-center"},ye={class:"step-title text-capitalize"},ke={class:"d-flex align-center"},Ce={key:0,class:"ga-5"},Ve={key:1,class:"ga-5"},Be=G({__name:"index",setup(we){const r=E(),O=W(),$=X();q(()=>{O.$state.app,$&&J.TitleBar.create($,{}).set({title:"Artshiney Dashboard"})}),M(()=>{O.$state.app});const U=d(!0),N=d([]);(async()=>{await A({type:1}).then(i=>{N.value=i.data.itemList}),A({type:2}).then(i=>{i.data.itemList.forEach(o=>{N.value.push(o)})})})();const P=d([{icon:"custom-refund-line",color:"warning",title:"Not Paid Order Num",value:8,change:-8.7,isHover:!1},{icon:"custom-file-list-3-line",color:"primary",title:"Total Order Num",value:42,change:18.2,isHover:!1},{icon:"custom-tools-line",color:"dashboard-card-3",title:"Production Order Num",value:27,change:4.3,isHover:!1},{icon:"custom-alarm-warning-line",color:"dashboard-card-4",title:"Onhold Order Num",value:13,change:-2.5,isHover:!1}]),h=d({});(()=>{F({}).then(i=>{h.value=i.data})})();const m=d(0),_=d(!0);M(async()=>{r.getUserBaseInfo.haveConnectShop&&(m.value+=25),r.getUserBaseInfo.haveDropshpped&&(m.value+=25),r.getUserBaseInfo.haveFittingCustomized&&(m.value+=25),r.getUserBaseInfo.haveOrder&&(m.value+=25),m.value===100&&(_.value=!1)});const z=d([]),x=d(!1);(()=>{x.value=!0,R().then(i=>{z.value=i.data.itemList,x.value=!1}).catch(i=>{x.value=!1})})();const D=Q(),V=(i,o)=>{o||(i===1&&D.push({name:"my-store"}),i===2&&D.push({name:"brand-services"}),i===3&&D.push({name:"products-calog"}),i===4&&D.push({name:"products-calog"}))},j=()=>{D.push({name:"order"})};return(i,o)=>{const H=K("RouterLink");return n(),u(v,null,[t("div",ce,[(n(!0),u(v,null,b(s(N),(a,c)=>(n(),y(re,{key:c,modelValue:s(U),"onUpdate:modelValue":o[0]||(o[0]=p=>Y(U)?U.value=p:null),class:"mb-5",density:"compact",style:L(`color: ${a.fontColor};background-color: ${a.componentColor}`),variant:"tonal",closable:a.type===2},{default:l(()=>[t("div",{class:"text-truncate valert-box",innerHTML:a.title},null,8,de)]),_:2},1032,["modelValue","style","closable"]))),128))]),e(C,{style:{"min-height":"197px"}},{default:l(()=>[e(f,{md:s(_)?"6":"12",cols:"12"},{default:l(()=>[e(C,null,{default:l(()=>[(n(!0),u(v,null,b(s(P),(a,c)=>(n(),y(f,{key:c,cols:"12",md:s(_)?"6":"3",sm:"6"},{default:l(()=>[t("div",null,[e(B,{class:"logistics-card-statistics cursor-pointer",style:L(a.isHover?`border-block-end-color: rgb(var(--v-theme-${a.color}))`:`border-block-end-color: rgba(var(--v-theme-${a.color}),0.38)`),onMouseenter:p=>a.isHover=!0,onMouseleave:p=>a.isHover=!1,onClick:j},{default:l(()=>[e(k,null,{default:l(()=>[t("div",ue,[e(Z,{variant:"tonal",color:a.color,rounded:""},{default:l(()=>[e(g,{icon:a.icon,size:"28"},null,8,["icon"])]),_:2},1032,["color"]),t("h4",me,w(c===0?s(h).notPaidOrderNum:c===1?s(h).totalOrderNum:c===2?s(h).inProductionOrderNum:s(h).onholdOrderNum),1)]),t("div",{class:"text-body-1 mb-4",style:L([`color: rgb(var(--v-theme-${a.color}))`,{"font-weight":"500"}])},w(a.title),5)]),_:2},1024)]),_:2},1032,["style","onMouseenter","onMouseleave"])])]),_:2},1032,["md"]))),128))]),_:1})]),_:1},8,["md"]),s(_)?(n(),y(f,{key:0,md:"6",cols:"12"},{default:l(()=>[e(B,null,{default:l(()=>[e(k,null,{default:l(()=>[t("div",fe,[o[6]||(o[6]=t("div",{class:"step-title"}," Guide ",-1)),t("div",{class:"cursor-pointer close-btn",onClick:o[1]||(o[1]=a=>_.value=!1)}," Close ")]),o[7]||(o[7]=t("div",{class:"mt-5"}," We provide a fairly simple operation,just complete the following steps to bringvou huge profits ",-1)),t("div",pe,[e(g,{icon:"custom-checkbox-circle-fill",color:s(r).getUserBaseInfo.haveConnectShop?"#161616":"#DDDDDD",size:"x-large"},null,8,["color"]),t("div",{class:I(["ml-5 step-text text-decoration-underline cursor-pointer",s(r).getUserBaseInfo.haveConnectShop?"text-decoration-line-through":""]),onClick:o[2]||(o[2]=a=>V(1,s(r).getUserBaseInfo.haveConnectShop))}," Link with your online store ",2)]),t("div",ve,[e(g,{icon:"custom-checkbox-circle-fill",color:s(r).getUserBaseInfo.haveDropshpped?"#161616":"#DDDDDD",size:"x-large"},null,8,["color"]),t("div",{class:I(["ml-5 step-text text-decoration-underline cursor-pointer",s(r).getUserBaseInfo.haveDropshpped?"text-decoration-line-through":""]),onClick:o[3]||(o[3]=a=>V(4,s(r).getUserBaseInfo.haveDropshpped))}," Add products to your online store ",2)]),t("div",ge,[e(g,{icon:"custom-checkbox-circle-fill",color:s(r).getUserBaseInfo.haveFittingCustomized?"#161616":"#DDDDDD",size:"x-large"},null,8,["color"]),t("div",{class:I(["ml-5 step-text text-decoration-underline cursor-pointer",s(r).getUserBaseInfo.haveFittingCustomized?"text-decoration-line-through":""]),onClick:o[4]||(o[4]=a=>V(2,s(r).getUserBaseInfo.haveFittingCustomized))}," Add or design your packaging ",2)]),t("div",he,[e(g,{icon:"custom-checkbox-circle-fill",color:s(r).getUserBaseInfo.haveOrder?"#161616":"#DDDDDD",size:"x-large"},null,8,["color"]),t("div",{class:I(["ml-5 step-text text-decoration-underline cursor-pointer",s(r).getUserBaseInfo.haveOrder?"text-decoration-line-through":""]),onClick:o[5]||(o[5]=a=>V(3,s(r).getUserBaseInfo.haveOrder))}," Create and complete an order ",2)]),e(ee,{class:"mt-5",color:"rgb(var(--v-theme-error-darken-1))","model-value":s(m),striped:""},null,8,["model-value"]),t("div",_e," Completed "+w(s(m)/25)+" of 4 steps ",1)]),_:1,__:[7]})]),_:1})]),_:1})):te("",!0)]),_:1}),e(B,{class:"mt-5"},{default:l(()=>[e(k,{class:"pa-10"},{default:l(()=>[e(C,null,{default:l(()=>[e(f,{md:"7",cols:"12",class:"d-flex align-center"},{default:l(()=>[t("div",xe,[o[9]||(o[9]=t("div",{class:"discount-title"}," Claim your discount now and save big! ",-1)),o[10]||(o[10]=t("div",{class:"discount-text mt-8"}," See what your designs look like in real life. Order up to 3 products with your exclusive discount. ",-1)),e(H,{to:"/productsCalog"},{default:l(()=>[e(oe,{class:"text-none text-subtitle-1 mt-8",color:"#000000",height:"42px",variant:"flat"},{default:l(()=>o[8]||(o[8]=[se(" Order Now ")])),_:1,__:[8]})]),_:1})])]),_:1}),e(f,{md:"5",cols:"12"},{default:l(()=>[t("div",De,[t("div",null,[e(le,{src:s(ne),width:380,height:180},null,8,["src"])])])]),_:1})]),_:1})]),_:1})]),_:1}),(n(!0),u(v,null,b(s(z),(a,c)=>(n(),y(B,{key:c,class:"mt-5"},{default:l(()=>[e(k,null,{default:l(()=>[t("div",be,[t("div",ye,w(a.title),1),e(H,{to:{name:"dashboard-details",query:{handle:a.handle}},target:"_blank"},{default:l(()=>[t("div",ke,[o[11]||(o[11]=t("div",{class:"text-decoration-underline cursor-pointer",style:{"font-weight":"500"}}," More Products ",-1)),e(g,{icon:"custom-arrow-right-double-line"})])]),_:2},1032,["to"])])]),_:2},1024),e(k,null,{default:l(()=>[t("div",null,[s(x)?(n(),u("div",Ce,[e(C,null,{default:l(()=>[(n(),u(v,null,b(4,(p,S)=>e(f,{md:"4",sm:"6",xs:"12",lg:"4",xl:"3",xxl:"3",key:S},{default:l(()=>[e(ie,{loading:s(x),height:"536",type:"image, list-item,list-item,list-item,list-item"},null,8,["loading"])]),_:2},1024)),64))]),_:2},1024)])):(n(),u("div",Ve,[e(C,null,{default:l(()=>[(n(!0),u(v,null,b(a.products,(p,S)=>(n(),y(f,{md:"4",sm:"6",xs:"12",lg:"4",xl:"3",xxl:"3",key:S},{default:l(()=>[e(T,{"product-details-item-data":p},null,8,["product-details-item-data"])]),_:2},1024))),128))]),_:2},1024)]))])]),_:2},1024)]),_:2},1024))),128))],64)}}}),Ee=ae(Be,[["__scopeId","data-v-cab17344"]]);export{Ee as default};