import{I as N,o as u,A as I,a as t,w as e,f as A,ae as b,af as F,b as s,t as B,V as O,ag as q,ah as X,k as w,R as $,Z as tt,c as E,a0 as W,ai as it,M as j,N as S,s as nt,G as et,ab as G,X as st,B as L,F as T,aj as rt,U as at,ak as ct,e as J,al as R,x as H,am as Y,an as dt,Q as ut,l as ht}from"./index-CW_ph8U7.js";import{_ as Z}from"./_plugin-vue_export-helper-DlAUqK2U.js";import{d as U,P as ot}from"./ProductList-B0WIK-IR.js";import{o as mt}from"./orderApi-B3FeuXWI.js";import"./productApi-DlDyLUoc.js";import"./blankProductTypeEnum-7RSz3x1u.js";import"./images-CEcXj5Ys.js";import"./carousel-DLeEZZra.js";import"./index.esm-CeDA535l.js";const z=v=>(q("data-v-173fc225"),v=v(),X(),v),ft={class:"text-h1 font-weight-medium"},pt=z(()=>s("span",{class:"text-subtitle-1 text-medium-emphasis"},"Total Sales Amount",-1)),gt={class:"text-h1 font-weight-medium"},At=z(()=>s("span",{class:"text-subtitle-1 text-medium-emphasis"},"Received Orders",-1)),vt={class:"text-h1 font-weight-medium"},_t=z(()=>s("span",{class:"text-subtitle-1 text-medium-emphasis"},"Designed Products Quantity",-1)),xt=N({__name:"StatisticsCard",props:{statisticsInfo:Object},setup(v){const o=v;return(h,m)=>(u(),I("div",null,[t(O,null,{default:e(()=>[t(A,{cols:"12",lg:"4",sm:"12"},{default:e(()=>[t(b,{elevation:"0",style:{background:"#DFD7EF"},class:"overflow-hidden bubble-shape bubble-amount-shape"},{default:e(()=>[t(F,null,{default:e(()=>[s("h2",ft," $"+B(o.statisticsInfo.totalSalesAmount),1),pt]),_:1})]),_:1})]),_:1}),t(A,{cols:"12",lg:"4",sm:"12"},{default:e(()=>[t(b,{elevation:"0",style:{background:"#D3EAFD"},class:"overflow-hidden bubble-shape bubble-order-shape"},{default:e(()=>[t(F,null,{default:e(()=>[s("h2",gt,B(o.statisticsInfo.totalOrderNum),1),At]),_:1})]),_:1})]),_:1}),t(A,{cols:"12",lg:"4",sm:"12"},{default:e(()=>[t(b,{elevation:"0",style:{background:"#F7D8D8"},class:"overflow-hidden bubble-shape bubble-quantity-shape"},{default:e(()=>[t(F,null,{default:e(()=>[s("h2",vt,B(o.statisticsInfo.customProductNum),1),_t]),_:1})]),_:1})]),_:1})]),_:1})]))}}),bt=Z(xt,[["__scopeId","data-v-173fc225"]]),yt=s("h2",{class:"font-weight-medium me-auto"},"Data Analysis",-1),wt={class:"mt-5"},kt=N({__name:"DataAnalysis",emits:["changeDate"],setup(v,{emit:o}){const h=w(7);let m=w(!1);const _=[{state:"Last 7 Days",abbr:7},{state:"Last 14 Days",abbr:14},{state:"Last Month",abbr:30}],f=$(()=>({chart:{type:"area",height:200,fontFamily:"inherit",foreColor:"#a1aab2",sparkline:{enabled:!0}},colors:["#5E35B1","#2196F3","#C62828"],dataLabels:{enabled:!1},stroke:{curve:"smooth",width:2},xaxis:{categories:["Week one","Week two","Week three","Week four","Week five","Week six","Week seven"]},fill:{type:"gradient",gradient:{shadeIntensity:1,opacityFrom:.5,opacityTo:0,stops:[0,80,300]}},legend:{show:!1},yaxis:{min:1,max:300,labels:{formatter:function(a){if(window.isNaN(a)||Math.floor(a)!=a)return a;try{return a.toFixed(0)}catch{return a}}}}}));let n={series:[{name:"Afhliate Orders",data:[11,20,70,37,59,10,64]},{name:"Afhliate Orders",data:[11,20,70,37,59,10,64]},{name:"Afhliate Orders",data:[11,20,70,37,59,10,64]}]},c=w([]);const x=o;tt(h,a=>{x("changeDate",a),m.value=!1,c.value=[],Promise.all([y(a),g(a),P(a)]).then(i=>{n.series[0].data=[],n.series[1].data=[],n.series[2].data=[],i.forEach((r,k)=>{D(k,r.day,r.data,r.name)});let l=Math.max(...c.value);l<10?f.value.yaxis.max=10:f.value.yaxis.max=l,m.value=!0})});function d(){var a=new Date().getTimezoneOffset()/60;return a=-a,a}function p(a){const i=new Date,l=i.getTime();return i.setDate(i.getDate()-(a-1)),{start:i.getTime(),end:l}}function P(a){const i=new U,l=p(a),r={hourOffset:d(),statisticTimeStart:l.start,statisticTimeEnd:l.end,contentType:"application/json;charset=UTF-8"};return i.statisticsCustomProductNum(r).then(k=>({day:a,name:"Design",data:k.data}))}function y(a){const i=new U,l=p(a),r={hourOffset:d(),statisticTimeStart:l.start,statisticTimeEnd:l.end,contentType:"application/json;charset=UTF-8"};return i.statisticsOrderAmount(r).then(k=>({day:a,name:"Sales Amount",data:k.data}))}function g(a){const i=new U,l=p(a),r={hourOffset:d(),statisticTimeStart:l.start,statisticTimeEnd:l.end,contentType:"application/json;charset=UTF-8"};return i.statisticsOrderNum(r).then(k=>({day:a,name:"Orders",data:k.data}))}function D(a,i,l,r){if(i==7||i==14){a==0?n.series[a].name=r+"($)":n.series[a].name=r,console.log("data.series...",l.series),n.series[a].data.push(...l.series),c.value.push(...l.series);let k=[];l.xaxis.forEach(C=>{let V=new Date(C),K=V.getMonth()+1,M=V.getDate();C=K+"."+M,k.push(C)}),f.value.xaxis.categories=[...k]}if(i==30){[1,2,3,4,5,6,7].forEach((V,K)=>{let M=Q(l.statistics,V);console.log("total...",M.value),n.series[a].data.push(M.value.toFixed(2)),c.value.push(M.value.toFixed(2))}),a==0?n.series[a].name=r+"($)":n.series[a].name=r;let C=Math.max(...c.value);C<10?f.value.yaxis.max=10:f.value.yaxis.max=C,f.value.xaxis.categories=["Week one","Week two","Week three","Week four","Week five","Week six","Week seven"]}}function Q(a,i){let l={date:"",value:0,value2:0,value3:0},r=i*7-6,k=i*7;return a.forEach((C,V)=>{V+1>=r&&V<=k&&(l.date=C.label,l.value=l.value+C.value)}),console.log("param....",l),l}return Promise.all([y(7),g(7),P(7)]).then(a=>{n.series[0].data=[],n.series[1].data=[],n.series[2].data=[],console.log("promise....",a),a.forEach((l,r)=>{D(r,l.day,l.data,l.name)});let i=Math.max(...c.value);i<10?f.value.yaxis.max=10:f.value.yaxis.max=i,m.value=!0}),(a,i)=>{const l=et("apexchart");return u(),E(b,{variant:"outlined",class:"overflow-hidden bg-white",style:{"background-color":"white"}},{default:e(()=>[t(F,{style:{"padding-bottom":"40px"}},{default:e(()=>[t(W,{class:"d-flex align-center mb-3"},{default:e(()=>[yt,t(W,null,{default:e(()=>[t(it,{style:{width:"150px"},width:"150px",color:"primary",variant:"outlined","hide-details":"",modelValue:h.value,"onUpdate:modelValue":i[0]||(i[0]=r=>h.value=r),items:_,"item-title":"state","item-value":"abbr",label:"Select","persistent-hint":"","single-line":"","update:menu":"changeSlect"},null,8,["modelValue"])]),_:1})]),_:1}),t(j),s("div",wt,[S(m)?(u(),E(l,{key:0,type:"area",height:"180",options:f.value,series:S(n).series},null,8,["options","series"])):nt("",!0)])]),_:1})]),_:1})}}}),Ct="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABBCAYAAABhNaJ7AAAAAXNSR0IArs4c6QAAAoVJREFUeF7tmjFS3TAQhv+/ThOa1CE9M9ClDJPUCZwAKKghJ0hSpQw5QCbkBMkFGDgCMxwAbgA3WOafeW/G4cmW3jPPlqVV48KyLX3aXXl/LVF5Y+XzhwNwC6icgLtA5QbgQdBdINUFzOwdgC8AtgG8TH1u4H4PAP4B+EbyLuXbSRZgZgcAzlNemFGfQ5J/YuOJAjCz1wBuYy/K9P4OyeuusaUA+A3gMNMJxoZ1RXK3L4D7jH0+BuCB5EZfABZ4wQWAm9jXB76/BeD902+S7LTyFBcIATgDIAg5NU3+1AE8IeAW4C4wjRjwBsBmz4AyySCoQStwveo5+a7Hd0letXUYcxcIRu01gWj9LR4LgFb8+5pXvslSSdImSV3/a2MBGHL15xP+TFL/L1kAOAHwYU3m3vbac5JHOQMIDnAVSGam1F0pfLM5ALcAd4EJxgAzkxgjf5YmKZ1vrvktbGlzhy8mBpiZRNivgUDYqfQUASBBizwiGRRqSwEgk7/s2AZbt81SAOwB+FszAB2+SI5vO4Qp2wW08mamVPlHwAquSe60WUcRLtDY0rQNKnfQkZy2vp8AzkKZXXHb4Cp5wMxyPBfwZMizwemlw6u6fOpzWekBHwEcp478mfoF/xvG0g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nRAnAMAKv0UwCvHFaIC4lwAUPdBAXFOAAYFxDkBGBQQ5wYgOSCWCOAXgB8pixmnL13hTmxALBHACN2Df12JyIHv6VIAIPQxVwGEjEZVW/sBGT+HvwI434IftD6xd8kCopexXZBiJ7BEF6gAtrEpWi0gMoZVFygwC+xODFBVbmmzevTQlM64G3MF4EJEolKZZ1d4A4Cq3gLA3WN+93Ms/uZY3AA9822EThoDjEDMs6wehRoLFs9FhECCrQ+AqlJhVqi6apOEzb3A67rAZACM8qwaUbC+RoG4MxOE0AXAKM+xOON9jWNwrP8QpgTw3mxE9gnUPKcl7IeqNj0AfiZWpU9F5GgyAKZUTqHsRvI0v5V5Tl996/QJVnxDAAIVI257Ucm1iT90Q9c1bhP21i3ArM9pirbfe2dXVbkvz+BoW0GoYkMF7CIs38m+vGcrtwHRuOM3px//y3dwIq7b6G+BgL17ixBGsN+xPhLZj8VPKtZqqsq6AN2ys00F4DCU7lwT7BOw73lIgdji6hAArhn7ZGQO5gy4s8IMQdPcZvPu86sq40DL3D2DeuVkv74jMq4f0iftALeR5gJpcsg3frPAavRppTneNGnSBc1AaafddVfFOKnmb5RjFnDzMhciVJL3KbgbmbkgukwxBxPluQawG2MAFST4B2bmbVmo7F7KOEkADPXUAw2D1/aqmnpMJxiTQlCSARgIPMXl5nrfGBtmmzI7iavOQafLBgGwLIEQQmt0mioPLyWf27EhGQgEbq8r7C58P5WPPhNg/3kwgOYl5jgdg+VNc+87F01jFfdklmbB9Mg8+2uC3eWYsUYDSDHpEvtWACXOSk6ZqgXkpF3iWNUCSpyVnDJVC8hJu8SxqgWUOCs5ZfoH2dgpYDSbEPgAAAAASUVORK5CYII=",Bt=s("div",{class:"d-flex align-center justify-center py-7"},[s("img",{src:Ct,style:{width:"42px",height:"42px"}})],-1),Dt={class:"py-7"},St={class:"text-h3 mb-2"},Ot=s("span",{class:"text-medium-emphasis font-weight-medium d-block"},"Pending",-1),Ft=s("div",{class:"d-flex align-center justify-center py-7"},[s("img",{src:It,style:{width:"42px",height:"42px"}})],-1),Et={class:"py-7"},Pt={class:"text-h3 mb-2"},Vt=s("span",{class:"text-medium-emphasis font-weight-medium d-block"},"In Production",-1),Ut=s("div",{class:"d-flex align-center justify-center py-7"},[s("img",{src:lt,style:{width:"42px",height:"42px"}})],-1),Nt={class:"py-7"},Qt={class:"text-h3 mb-2"},Lt=s("span",{class:"text-medium-emphasis font-weight-medium d-block"},"Partially Fulflled",-1),Tt=s("div",{class:"d-flex align-center justify-center py-7"},[s("img",{src:lt,style:{width:"42px",height:"42px"}})],-1),Mt={class:"py-7"},Rt={class:"text-h3 mb-2"},Ht=s("span",{class:"text-medium-emphasis font-weight-medium d-block"},"Fulfilled",-1),Gt=N({__name:"PendingCard",props:{statisticsInfo:Object},setup(v){const o=v;return(h,m)=>(u(),E(O,null,{default:e(()=>[t(A,{cols:"12",lg:"3"},{default:e(()=>[t(b,{elevation:"0"},{default:e(()=>[t(b,{variant:"outlined",class:"overflow-hidden"},{default:e(()=>[t(O,null,{default:e(()=>[t(A,{cols:"4",class:G("d-flex align-center justify-center pr-0"),style:{"background-color":"#FFC107"}},{default:e(()=>[Bt]),_:1}),t(A,{cols:"8"},{default:e(()=>[s("div",Dt,[s("h3",St,B(o.statisticsInfo.notPaidOrderNum),1),Ot])]),_:1})]),_:1})]),_:1})]),_:1})]),_:1}),t(A,{cols:"12",lg:"3"},{default:e(()=>[t(b,{elevation:"0"},{default:e(()=>[t(b,{variant:"outlined",class:"overflow-hidden"},{default:e(()=>[t(O,null,{default:e(()=>[t(A,{cols:"4",class:G("d-flex align-center justify-center pr-0"),style:{"background-color":"#2196F3"}},{default:e(()=>[Ft]),_:1}),t(A,{cols:"8"},{default:e(()=>[s("div",Et,[s("h3",Pt,B(o.statisticsInfo.inProductionOrderNum),1),Vt])]),_:1})]),_:1})]),_:1})]),_:1})]),_:1}),t(A,{cols:"12",lg:"3"},{default:e(()=>[t(b,{elevation:"0"},{default:e(()=>[t(b,{variant:"outlined",class:"overflow-hidden"},{default:e(()=>[t(O,null,{default:e(()=>[t(A,{cols:"4",class:G("d-flex align-center justify-center pr-0"),style:{"background-color":"#59DB8F"}},{default:e(()=>[Ut]),_:1}),t(A,{cols:"8"},{default:e(()=>[s("div",Nt,[s("h3",Qt,B(o.statisticsInfo.partiallyFulfillmentOrderNum),1),Lt])]),_:1})]),_:1})]),_:1})]),_:1})]),_:1}),t(A,{cols:"12",lg:"3"},{default:e(()=>[t(b,{elevation:"0"},{default:e(()=>[t(b,{variant:"outlined",class:"overflow-hidden"},{default:e(()=>[t(O,null,{default:e(()=>[t(A,{cols:"4",class:G("d-flex align-center justify-center pr-0"),style:{"background-color":"#00AA47"}},{default:e(()=>[Tt]),_:1}),t(A,{cols:"8"},{default:e(()=>[s("div",Mt,[s("h3",Rt,B(o.statisticsInfo.fulfillmentOrderNum),1),Ht])]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1}))}}),Wt=s("thead",null,[s("tr",null,[s("th",{class:"text-left text-subtitle-1"},"#Country"),s("th",{class:"text-left text-subtitle-1"},"Order No"),s("th",{class:"text-left text-subtitle-1"},"Name"),s("th",{class:"text-left text-subtitle-1"},"Creating Date")])],-1),Jt=["src"],jt=N({__name:"RecentOrders",setup(v){const o=st([]),h=new mt,m={size:5,current:1};return h.shopapiOrderPage(m).then(_=>{_.data.records&&(console.log("res.data.records...",_.data.records),o.push(..._.data.records))}),(_,f)=>{const n=et("perfect-scrollbar");return u(),E(n,{style:{height:"320px"}},{default:e(()=>[t(rt,{class:"text-no-wrap"},{default:e(()=>[Wt,s("tbody",null,[(u(!0),I(T,null,L(o,c=>(u(),I("tr",{key:c.name},[s("td",null,[s("img",{src:c.countryLogo,width:"30"},null,8,Jt)]),s("td",null,B(c.orderNo),1),s("td",null,B(c.customerName),1),s("td",null,B(c.addDate),1)]))),128))])]),_:1})]),_:1})}}}),Yt=v=>(q("data-v-d8235640"),v=v(),X(),v),Zt={key:0},zt=Yt(()=>s("h3",{class:"font-weight-medium me-auto"},"Let's get Started !",-1)),Kt={class:"mt-2 dashboard-check"},qt=N({__name:"LetsGetStarted",props:{statisticsInfo:Object},setup(v){const o=v,h=w(0);let m=w(!1);w(!0),w(!1),w(!1),w(!1),w(!1);const _=U();let f=w({socialImage:"",socialUrl:""});tt(()=>o.statisticsInfo,x=>{console.log("props.statisticsInfo....",x),x.haveSignUp&&(h.value+=1),x.haveFavoriteBlankProduct&&(h.value+=1),x.haveCustomProduct&&(h.value+=1),x.haveOrder&&(h.value+=1),x.haveConnectShop&&(h.value+=1)});function n(){window.open(f.value.socialUrl)}function c(){_.dashboardConfig({}).then(x=>{f.value=x.data})}return c(),(x,d)=>h.value==5||S(m)?(u(),I("div",Zt,[t(at,{src:S(f).socialImage,class:"w-100",inline:!0,style:{height:"315px"},srcset:"",rounded:10,alt:"",onClick:n},null,8,["src"])])):(u(),E(b,{key:1,variant:"outlined",class:"overflow-hidden bg-white",style:{"background-color":"white"}},{default:e(()=>[t(F,null,{default:e(()=>[t(W,{class:"d-flex align-center mb-3"},{default:e(()=>[zt,t(W,{class:"text-medium-emphasis cursor-pointer more",onClick:d[0]||(d[0]=p=>ct(m)?m.value=!S(m):m=!S(m))},{default:e(()=>[J(" Dismiss ")]),_:1})]),_:1}),t(j),s("div",Kt,[t(R,{color:"primary",disabled:"",modelValue:o.statisticsInfo.haveSignUp,"onUpdate:modelValue":d[1]||(d[1]=p=>o.statisticsInfo.haveSignUp=p),"hide-details":"",class:"dis-check",readonly:""},{label:e(()=>[s("span",{style:H([{color:"#000 !important"},{"text-decoration":o.statisticsInfo.haveSignUp?"line-through":"none"}])}," Sign up for JetPrint ",4)]),_:1},8,["modelValue"]),t(R,{color:"primary",disabled:"",modelValue:o.statisticsInfo.haveFavoriteBlankProduct,"onUpdate:modelValue":d[2]||(d[2]=p=>o.statisticsInfo.haveFavoriteBlankProduct=p),"hide-details":"",readonly:""},{label:e(()=>[s("span",{style:H({"text-decoration":o.statisticsInfo.haveFavoriteBlankProduct?"line-through":"none"})}," Collect Your Liked Products ",4)]),_:1},8,["modelValue"]),t(R,{color:"primary",disabled:"",modelValue:o.statisticsInfo.haveCustomProduct,"onUpdate:modelValue":d[3]||(d[3]=p=>o.statisticsInfo.haveCustomProduct=p),"hide-details":"",readonly:""},{label:e(()=>[s("span",{style:H({"text-decoration":o.statisticsInfo.haveCustomProduct?"line-through":"none"})}," Complete 1 Designed Products ",4)]),_:1},8,["modelValue"]),t(R,{color:"primary",disabled:"",modelValue:o.statisticsInfo.haveOrder,"onUpdate:modelValue":d[4]||(d[4]=p=>o.statisticsInfo.haveOrder=p),"hide-details":"",readonly:""},{label:e(()=>[s("span",{style:H({"text-decoration":o.statisticsInfo.haveOrder?"line-through":"none"})}," Create An Order ",4)]),_:1},8,["modelValue"]),t(R,{color:"primary",disabled:"",modelValue:o.statisticsInfo.haveConnectShop,"onUpdate:modelValue":d[5]||(d[5]=p=>o.statisticsInfo.haveConnectShop=p),"hide-details":"",readonly:""},{label:e(()=>[s("span",{style:H({"text-decoration":o.statisticsInfo.haveConnectShop?"line-through":"none"})}," Connect To Your Store ",4)]),_:1},8,["modelValue"])]),t(j),t(O,{class:"mt-2 justify-space-between"},{default:e(()=>[(u(),I(T,null,L(5,(p,P)=>t(A,{cols:"2",lg:"2",sm:"12",style:{padding:"12px 0"},key:P},{default:e(()=>[s("div",{class:G(["divhr",P<h.value?"actived":""])},null,2)]),_:2},1024)),64))]),_:1})]),_:1})]),_:1}))}}),Xt=Z(qt,[["__scopeId","data-v-d8235640"]]),$t={class:"mt-4"},te=N({__name:"ActivityList",setup(v){let o=w([]);U().activityDashboardList().then(_=>{console.log("getActivityList...",_),o.value=_.data.itemList});function m(_){_.jumpUrl&&window.open(_.jumpUrl,"_blank")}return(_,f)=>(u(!0),I(T,null,L(S(o),(n,c)=>(u(),I("div",{key:c},[s("div",$t,[t(b,{variant:"outlined",class:"overflow-hidden bg-white",style:{"background-color":"white"}},{default:e(()=>[t(F,null,{default:e(()=>[(u(!0),I(T,null,L(n.images,(x,d)=>(u(),E(at,{src:x.imageUrl,key:d,width:"100%",cover:"","max-height":"248",class:"mt-4 ml-2 mr-4",onClick:p=>m(x)},null,8,["src","onClick"]))),128)),t(Y,{class:"pl-2 mt-4"},{default:e(()=>[J(B(n.metaTitle),1)]),_:2},1024),t(ot,{productList:n.products},null,8,["productList"])]),_:2},1024)]),_:2},1024)])]))),128))}}),ee={key:1},se=["src","onClick"],ae=["onClick"],oe=N({__name:"Index",setup(v){let o=w({});const h=dt(),m=$(()=>{const y=ut();return console.log("computed...",y.merchantInfoMutations),y.merchantInfoMutations.login});function _(y){const g=new Date,D=g.getFullYear().toString()+"-"+(g.getMonth()+1).toString().padStart(2,"0")+"-"+g.getDate().toString().padStart(2,"0");return g.setDate(g.getDate()-(y-1)),{start:g.getFullYear().toString()+"-"+(g.getMonth()+1).toString().padStart(2,"0")+"-"+g.getDate().toString().padStart(2,"0"),end:D}}function f(y=7){const g=_(y);U().merchantIndexStatistics({startDate:g.start,endDate:g.end}).then(Q=>{o.value=Q.data})}let n=w(!1);st({current:1,size:10});let c=w([]);function x(){n.value=!0,U().activityDashboardList({}).then(g=>{n.value=!1,c.value=g.data.itemList,console.log("activityList...",c.value)}).catch(g=>{n.value=!1})}function d(y){h.push("/activity?title="+y.handle)}function p(){h.push("/orders")}function P(y){window.open(y)}return ht(()=>{x(),f()}),(y,g)=>m.value?(u(),I("div",ee,[t(bt,{statisticsInfo:S(o)},null,8,["statisticsInfo"]),t(O,null,{default:e(()=>[t(A,{cols:"12",lg:"8",sm:"12"},{default:e(()=>[t(kt,{onChangeDate:f})]),_:1}),t(A,{cols:"12",lg:"4",sm:"12"},{default:e(()=>[t(Xt,{statisticsInfo:S(o)},null,8,["statisticsInfo"])]),_:1})]),_:1}),t(Gt,{statisticsInfo:S(o)},null,8,["statisticsInfo"]),t(b,{variant:"outlined",class:"overflow-hidden bg-white mt-4",style:{"background-color":"white"}},{default:e(()=>[t(F,null,{default:e(()=>[t(Y,{class:"d-flex",style:{padding:"0"}},{default:e(()=>[J("Recent Orders "),s("div",{class:"ml-auto more",onClick:p},"View More")]),_:1}),t(jt)]),_:1})]),_:1}),(u(!0),I(T,null,L(S(c),(D,Q)=>(u(),E(b,{variant:"outlined",class:"overflow-hidden bg-white mt-4",style:{"background-color":"white"},key:Q},{default:e(()=>[t(F,null,{default:e(()=>[(u(!0),I(T,null,L(D.images,(a,i)=>(u(),I("div",{key:i,class:"pl-2"},[s("img",{src:a.imageUrl,width:"100%",height:"270px",style:{"object-fit":"cover","border-radius":"15px"},onClick:l=>P(a.jumpUrl)},null,8,se)]))),128)),t(Y,{class:"d-flex mt-4 pl-2",style:{padding:"0"}},{default:e(()=>[J(B(D.title)+" ",1),s("div",{class:"ml-auto more",onClick:a=>d(D)},"View More",8,ae)]),_:2},1024),t(ot,{productList:D.products,activedImages:D.images,title:"Picks from JetPrint"},null,8,["productList","activedImages"])]),_:2},1024)]),_:2},1024))),128))])):(u(),E(te,{key:0}))}}),fe=Z(oe,[["__scopeId","data-v-4d83e964"]]);export{fe as default};