import{H as de,C as pe,L as he,T as me,g as ge,P as fe,h as ve,S as Ae,D as _e,i as W,o as t,c as r,w as e,e as C,t as g,j as ye,u as H,r as j,k as V,l as Se,m as X,a,n as Z,p as N,q as J,s as m,v as b,b as h,x as Ce,y as q,z,A as v,B as P,F as E,E as Ie,G as K,I as R,J as se,K as F,M as Q,N as s,O as ke,Q as x,R as O,U as w,W as M,X as we,Y as xe,Z as ne,d as B,_ as Ve,$ as be,a0 as T,a1 as D,a2 as $,a3 as Ee,a4 as Be,a5 as Te,a6 as Oe,a7 as Ne,a8 as Me,a9 as Re,aa as ze,ab as ee,ac as Pe,ad as De}from"./index-DZAIUlH9.js";import{u as U}from"./customizer-B0OAWo5o.js";import{c as Le}from"./index.esm-CeDA535l.js";import{_ as G}from"./_plugin-vue_export-helper-DlAUqK2U.js";import{L as Fe}from"./LogoMain-BwL1rEJL.js";import{s as S}from"./shopTypeEnum-5xzXy4lw.js";import{c as Ue}from"./cartApi-CsKrCvZJ.js";import{s as Je,_ as le,a as re,b as ie,c as ce}from"./storeApi-CzZVGIp4.js";import{e as L}from"./eventBus-r5JE4IJr.js";import{p as qe}from"./productApi-COjQy_oT.js";import{m as te}from"./index-8XKNbasA.js";import{e as Ye}from"./blankProductTypeEnum-7RSz3x1u.js";const He=[{title:"Dashboard",icon:de,type:"external",to:"/"},{title:"Catalog",icon:pe,type:"external",to:"/products"},{title:"Integrations",icon:he,type:"external",to:"/integrations"},{title:"My Products",icon:me,type:"external",rotate:90,to:"/my-products"},{title:"Orders",icon:ge,type:"external",to:"/orders"},{title:"Design Library",icon:fe,type:"external",to:"/library"},{title:"Payment",icon:ve,type:"external",to:"/payment"},{title:"Settings",icon:Ae,type:"external",to:"/settings"},{title:"Affiliate Program",icon:_e,type:"external",children:[{title:"Affiliate",icon:W,to:"/affiliate"},{title:"Commission",icon:W,to:"/withdrawal"}]}],Ke={__name:"NavGroup",props:{item:Object},setup(o){const n=o;return(l,d)=>(t(),r(ye,{color:"darkText",class:"smallCap"},{default:e(()=>[C(g(l.$t(n.item.header)),1)]),_:1}))}},Qe=Ke,Ge={__name:"IconSet",props:{item:Object,level:Number,to:String},setup(o){const n=o;return H().query,(d,p)=>n.level>0?(t(),r(j(n.item),{key:0,size:"5",fill:"currentColor","stroke-width":"1.5",class:"iconClass"})):(t(),r(j(n.item),{key:1,size:"20","stroke-width":"1.5",class:"iconClass"}))}},Y=G(Ge,[["__scopeId","data-v-31f5edbe"]]);var We={VITE_OLD_BASE_URL:"https://c.jetprintapp.com",VITE_API_URL:"https://dashboard.jetprintapp.com",VITE_APP_PAY:"production",VITE_APP_INTERCOM_APP_ID:"lv6sbolj",VITE_APP_INTERCOM_ENABLE:"true",VITE_APP_SHOPIFY_ID:"40aba1cc1873e64df90f84ba8ff63c97",VITE_BASE:"/",VITE_OUT_DIR:"dist",BASE_URL:"/",MODE:"release",DEV:!1,PROD:!0,SSR:!1};const je={__name:"NavItem",props:{item:Object,level:Number},setup(o){const n=U(),l=o,d=V(Le);let p=V("");Se(async()=>{try{console.log("relativeURL.value...",await We),d.value="https://c.jetprintapp.com"}catch(u){console.error("Error url not found:",u)}});function i(){console.log("customizer.mini_sidebar...",n.Sidebar_drawer),p.value<=1280&&(n.SET_SIDEBAR_DRAWER_False(),console.log("windowWidth....",p))}return p.value=window.innerWidth,window.addEventListener("resize",function(u){p.value=window.innerWidth}),(u,A)=>l.item.getURL===!0?(t(),r(b,{key:0,to:o.item.to,rounded:"",class:"mb-1 listitem",color:"secondary","base-color":"#f1f1f1",disabled:o.item.disabled,target:o.item.type==="external"?"_blank":""},X({prepend:e(()=>[a(Y,{item:l.item.icon,to:l.item.to,level:l.level,style:{transform:"rotate(45deg)"}},null,8,["item","to","level"])]),default:e(()=>[a(N,null,{default:e(()=>[C(g(u.$t(o.item.title)),1)]),_:1}),o.item.subCaption?(t(),r(J,{key:0,class:"text-caption mt-n1 hide-menu"},{default:e(()=>[C(g(o.item.subCaption),1)]),_:1})):m("",!0)]),_:2},[o.item.chip?{name:"append",fn:e(()=>[a(Z,{color:o.item.chipColor,class:"sidebarchip hide-menu",size:o.item.chipIcon?"small":"default",variant:o.item.chipVariant,"prepend-icon":o.item.chipIcon},{default:e(()=>[C(g(o.item.chip),1)]),_:1},8,["color","size","variant","prepend-icon"])]),key:"0"}:void 0]),1032,["to","disabled","target"])):(t(),r(b,{key:1,to:o.item.to,link:"",rounded:"",class:"mb-1 listitem",color:"secondary",disabled:o.item.disabled,onClick:q(i,["stop"])},X({prepend:e(()=>[h("div",{style:Ce({transform:l.item.rotate?"rotate("+l.item.rotate+"deg)":""})},[a(Y,{item:l.item.icon,level:l.level,to:l.item.to},null,8,["item","level","to"])],4)]),default:e(()=>[a(N,null,{default:e(()=>[C(g(u.$t(o.item.title)),1)]),_:1}),o.item.subCaption?(t(),r(J,{key:0,class:"text-caption mt-n1 hide-menu"},{default:e(()=>[C(g(o.item.subCaption),1)]),_:1})):m("",!0)]),_:2},[o.item.chip?{name:"append",fn:e(()=>[a(Z,{color:o.item.chipColor,class:"sidebarchip hide-menu",size:o.item.chipIcon?"small":"default",variant:o.item.chipVariant,"prepend-icon":o.item.chipIcon},{default:e(()=>[C(g(o.item.chip),1)]),_:1},8,["color","size","variant","prepend-icon"])]),key:"0"}:void 0]),1032,["to","disabled"]))}},ue=je,Xe={__name:"NavCollapse",props:{item:Object,level:Number},setup(o){const n=o;return(l,d)=>{const p=K("NavCollapse",!0);return t(),r(Ie,{"no-action":"",class:"listitem"},{activator:e(({props:i})=>[a(b,z(i,{value:o.item.title,rounded:"",class:"mb-1",color:"secondary"}),{prepend:e(()=>[a(Y,{item:o.item.icon,level:o.level},null,8,["item","level"])]),default:e(()=>[a(N,{class:"mr-auto"},{default:e(()=>[C(g(o.item.title),1)]),_:1}),o.item.subCaption?(t(),r(J,{key:0,class:"text-caption mt-n1 hide-menu"},{default:e(()=>[C(g(o.item.subCaption),1)]),_:1})):m("",!0)]),_:2},1040,["value"])]),default:e(()=>[(t(!0),v(E,null,P(o.item.children,(i,u)=>(t(),v(E,{key:u},[i.children?(t(),r(p,{key:0,item:i,level:n.level+1},null,8,["item","level"])):(t(),r(ue,{key:1,item:i,level:n.level+1},null,8,["item","level"]))],64))),128))]),_:1})}}},Ze=Xe,$e={class:"pa-5"},et=R({__name:"VerticalSidebar",setup(o){const n=U(),l=se(He);return(d,p)=>{const i=K("perfect-scrollbar");return t(),r(ke,{left:"",modelValue:s(n).Sidebar_drawer,"onUpdate:modelValue":p[0]||(p[0]=u=>s(n).Sidebar_drawer=u),elevation:"0","rail-width":"75","mobile-breakpoint":"lg",app:"",class:"leftSidebar",rail:s(n).mini_sidebar,"expand-on-hover":""},{default:e(()=>[h("div",$e,[a(Fe)]),a(i,{class:"scrollnavbar"},{default:e(()=>[a(F,{class:"pa-4"},{default:e(()=>[(t(!0),v(E,null,P(l.value,(u,A)=>(t(),v(E,{key:A},[u.header?(t(),r(Qe,{item:u,key:u.title},null,8,["item"])):u.divider?(t(),r(Q,{key:1,class:"my-3"})):u.children?(t(),r(Ze,{key:2,class:"leftPadding",item:u,level:0},null,8,["item"])):(t(),r(ue,{key:3,item:u,class:"leftPadding"},null,8,["item"]))],64))),128))]),_:1})]),_:1})]),_:1},8,["modelValue","rail"])}}}),tt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAAAiBJREFUWEftmP9VwjAQxy+ZACfwCAOIG+AGOgEwgW6gGwgTiBuwgTqBLtCQDcQFEnt9gRdKC+mVFniP/J0fn3zzvUsuAk68iRPngwtg3RM6XwURcSCl7APATUUVltbaL2PMvOK4wu6FCiqlXgHgqeYCJgW9M8aYOvNsASqlntMJX4JJqy6Aq7HOuZ/FYnF7aMBfAOgAAFsBpdQEAB4JzKv4yYXcUND77sNP/MD1ESJ2pJQLv9Gp1pptl12A5B/2zpVSBEjHPdNaj5tQ8AIYo2obR7zlQfIo+TMmBTUGiIj3UsqBtXYSgiAi+gACIcQoSZL3XUo2Bli2qI9wSmVZ2wfZOiBBIeJISvkWA3kUwCqQbEBvdHpMsFvqxWF6Y412KckCDI3OpisZaK29MsYs19Bhv9xVV5qo80Y/JKS1thtGPUtB7yG6xtYvFw4kRbAQgo55FdHjJElm4VxsQA5QOKbX6w2dc2sYIcQWXJaGOEfcFtxRAPMBVqZcrSCJURAR+5RG0qic5q46eitmN8k+uEYVVEp9AwDlyaLHAgXXMkwnZZtuzIOXB2vdYqcpBcnY5B2qxthFE41Py1fnfXXQoimsxlhlp78GqbbOKrm6Gy0q3Gli+llYtaqFe/ac94ON1robk5aionjVKSy8uZPTr4JzjmxSdYMbS5b+bvmMT2+164qQf9baeZ2auvSxUBGkle7n+z/YijwRi1wUjBBpZ5d/UO6bOJKJ+YAAAAAASUVORK5CYII=",at={class:"d-flex align-center"},ot=h("span",{class:"ml-2"},"Sign out",-1),st=R({__name:"LanguageDD",setup(o){let n=V("");const l=x();console.log("usersStore...",l.loginMsgmutations),n.value=l.loginMsgmutations.username;const d="https://c.jetprintapp.com/";console.log("productionUrl...","https://c.jetprintapp.com"),se([{title:"My Account",value:"en",to:d+"account?type=0"},{title:"Payment",value:"fr",to:d+"account?type=1"},{title:"My Files",value:"ro",to:d+"account?type=2"},{title:"My Stores",value:"zh",to:d+"account?type=4"},{title:"Settings",value:"zh",to:d+"account?type=3"}]);function p(){let u=window.location.pathname+window.location.search;sessionStorage.setItem("lastRoute",u),l.SET_SHOP_API_TOKEN(""),l.SET_EXIT_LOGIN(),M.push("/login")}const i=O(()=>{const u=x();return console.log("computed...",u.merchantInfoMutations.currentShop),u.merchantInfoMutations.currentShop});return(u,A)=>(t(),r(F,null,{default:e(()=>[a(b,{class:"text-medium-emphasis"},{default:e(()=>[C(g(s(n)),1)]),_:1}),i.value.shopType!=s(S).SHOPIFY.value?(t(),r(b,{key:0,color:"secondary",class:"d-flex align-center",link:"",onClick:p},{default:e(()=>[a(N,{class:"text-subtitle-1 font-weight-regular"},{default:e(()=>[h("div",at,[a(w,{src:s(tt),width:30,height:30},null,8,["src"]),ot])]),_:1})]),_:1})):m("",!0)]),_:1}))}}),nt={class:"sheet-cart",style:{"min-width":"332px"}},lt={class:"pro"},rt={class:"pa-4 d-flex"},it={class:"position-relative ml-3",style:{width:"200px"}},ct={class:"ellipsis2 font-weight-medium"},ut={class:"sku"},dt={key:0},pt={key:1},ht={key:2},mt={class:"mt-4",style:{"font-size":"14px"}},gt=R({__name:"CartDD",setup(o){let n=V(!1);const l=we({cartList:[]}),d=Ue();function p(u){n.value=!0;const A={};A.current=1,A.size=5,A.keyword="",d.cartList(A).then(c=>{n.value=!1,c.data.records.forEach(f=>{f.option1Value=f.option1Value?JSON.parse(f.option1Value):"",f.option2Value=f.option2Value?JSON.parse(f.option2Value):"",f.option3Value=f.option3Value?JSON.parse(f.option3Value):""}),console.log("res.data.records....",c.data.records),c.data.records?l.cartList=c.data.records:l.cartList=[]})}function i(){M.push("/cart")}return p(),(u,A)=>(t(),v("div",nt,[h("div",lt,[s(n)?(t(),r(xe,{key:0,class:"mt-6",size:50,color:"primary",indeterminate:""})):m("",!0)]),(t(!0),v(E,null,P(l.cartList,(c,f)=>(t(),v(E,{key:f},[h("div",rt,[a(w,{src:c.mainImageUrl,width:"80px",height:"80px",alt:"",rounded:""},null,8,["src"]),h("div",it,[h("p",ct,g(c.blankProductName),1),h("div",ut,[c.option1Value.text?(t(),v("span",dt,g(c.option1Value.text),1)):m("",!0),c.option2Value.text?(t(),v("span",pt," | "+g(c.option2Value.text),1)):m("",!0),c.option3Value.text?(t(),v("span",ht," | "+g(c.option3Value.text),1)):m("",!0)])]),h("div",null,[h("h4",null,"$"+g(c.price),1),h("p",mt,"Qty:"+g(c.quantity),1)])]),a(Q)],64))),128)),h("div",{class:"font-weight-medium text-center more",style:{"font-size":"14px",height:"50px"},onClick:i},"View More")]))}}),ft=G(gt,[["__scopeId","data-v-f8808834"]]),vt={class:"d-flex align-center"},At={class:"store-image"},_t={key:0,src:le,style:{width:"40px",height:"40px"},alt:""},yt={key:1,src:re,style:{width:"40px",height:"40px"},alt:""},St={key:2,src:ie,style:{width:"40px",height:"40px"},alt:""},Ct={key:3,src:ce,style:{width:"40px",height:"40px"},alt:""},It={class:"ml-4"},kt={class:"font-weight-medium"},wt={class:"text-subtitle-2 text-medium-emphasis"},xt={class:"d-flex align-center"},Vt=h("span",{class:"ml-3"},"Manage My Stores",-1),bt=R({__name:"StoreDD",setup(o){const n=Je(),l=O(()=>{const i=x();return console.log("computed22222...",i.merchantInfoMutations.allShops),i.merchantInfoMutations.allShops}),d=O(()=>{const i=x();return console.log("computed...",i.merchantInfoMutations.currentShop),i.merchantInfoMutations.currentShop});function p(i){console.log("storeList...",l);const u=x();n.shopChange({shopId:i}).then(A=>{l.value.forEach(c=>{if(i==c.shopId){const f={name:c.name,shopId:c.shopId,shopType:c.shopType};u.SET_MERCHANT_SHOP(f),L("refreshOrderList",!0),L("refreshMyProductsList",!0)}})})}return(i,u)=>{const A=K("SettingsIcon");return t(),r(F,null,{default:e(()=>[(t(!0),v(E,null,P(l.value,(c,f)=>(t(),r(b,{key:f,link:"",color:"primary",class:"d-flex align-center",active:c.shopId==d.value.shopId,onClick:_=>p(c.shopId)},{default:e(()=>[a(N,{class:"text-subtitle-1 font-weight-regular"},{default:e(()=>[h("div",vt,[h("div",At,[c.shopType==s(S).SHOPIFY.value?(t(),v("img",_t)):m("",!0),c.shopType==s(S).WOOCOMMERCE.value?(t(),v("img",yt)):m("",!0),c.shopType==s(S).ETSY.value?(t(),v("img",St)):m("",!0),c.shopType==s(S).GENERAL.value||s(S).NOT_BIND.value==c.shopType?(t(),v("img",Ct)):m("",!0)]),h("div",It,[h("p",kt,g(c.name),1),h("p",wt,g(c.isConnect?"Connected":"Not Connected"),1)])])]),_:2},1024)]),_:2},1032,["active","onClick"]))),128)),a(Q,{class:""}),a(b,{class:"d-flex align-center",active:!1,to:"/integrations"},{default:e(()=>[a(N,{class:"text-subtitle-1 font-weight-regular"},{default:e(()=>[h("div",xt,[a(A),Vt])]),_:1})]),_:1})]),_:1})}}}),Et=["src"],Bt={__name:"Searchbar",props:{closesearch:{type:Function,required:!1}},emits:["close"],setup(o,{emit:n}){const l=V([]),d=V(""),p=H(),i=n;ne(()=>d.value,_=>{console.log("search...",_),u(_)});function u(_){console.log("search...",_),A()}function A(_){const y=qe(),k={current:1,size:10,keyword:d.value,types:[1,2,5,3]};y.blankProductPage(k).then(I=>{l.value=I.data.records})}function c(_){console.log("router....",p.path),console.log("handleitem....",_),_.type==Ye.DIY.value?(M.push({path:"/products/diyDetail",query:te(p.query,{id:_.id})}),L("refreshProductDetail",_.id)):(M.push({path:"/products/detail",query:te(p.query,{id:_.id})}),L("refreshProductDetail",_.id))}function f(){i("close")}return(_,y)=>(t(),r(D,{"close-on-content-click":!0,location:"bottom"},{activator:e(({props:k})=>[a(be,z({modelValue:d.value,"onUpdate:modelValue":y[0]||(y[0]=I=>d.value=I),"persistent-placeholder":"",placeholder:"Search",color:"primary",variant:"outlined","hide-details":"","prepend-inner-icon":"mdi-magnify"},k,{"onClick:appendInner":u}),{"append-inner":e(()=>[a(B,{color:"lighterror",icon:"",rounded:"sm",variant:"flat",size:"small",class:"text-error SearchSetting ml-3 d-block d-lg-none",onClick:f},{default:e(()=>[a(s(Ve),{"stroke-width":"1.5",size:"20"})]),_:1})]),_:2},1040,["modelValue"])]),default:e(()=>[d.value.length!=0?(t(),r(T,{key:0,rounded:"md",elevation:"12"},{default:e(()=>[a(F,null,{default:e(()=>[(t(!0),v(E,null,P(l.value,(k,I)=>(t(),r(b,{key:I,link:"",color:"secondary ",class:"d-flex align-center",onClick:Dt=>c(k)},{append:e(()=>[C(g(k.model),1)]),prepend:e(()=>[h("img",{src:k.mainShowImageUrl,width:"30px",height:"30px",style:{"margin-right":"10px"}},null,8,Et)]),_:2},1032,["onClick"]))),128))]),_:1})]),_:1})):m("",!0)]),_:1}))}},ae=Bt,Tt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAQCAYAAAAMJL+V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MRE2uDjAAAAAElFTkSuQmCC",Ot="data:image/svg+xml,%3csvg%20width='37'%20height='36'%20viewBox='0%200%2037%2036'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Profile'%3e%3cg%20id='User-round'%3e%3cg%20id='Group%2027245'%3e%3crect%20id='Rectangle%2013211'%20x='0.5'%20width='36'%20height='36'%20rx='8'%20fill='%23D9D9D9'/%3e%3cg%20id='Group%201347'%3e%3cpath%20id='Vector'%20d='M13.0625%2013.7943C13.0625%2015.331%2013.673%2016.8048%2014.7596%2017.8915C15.8462%2018.9781%2017.32%2019.5886%2018.8568%2019.5886C20.3935%2019.5886%2021.8673%2018.9781%2022.954%2017.8915C24.0406%2016.8048%2024.6511%2015.331%2024.6511%2013.7943C24.6511%2013.0334%2024.5012%2012.2799%2024.21%2011.5769C23.9188%2010.8739%2023.492%2010.2352%2022.954%209.69711C22.4159%209.15906%2021.7772%208.73225%2021.0742%208.44106C20.3712%208.14987%2019.6177%208%2018.8568%208C18.0959%208%2017.3424%208.14987%2016.6394%208.44106C15.9364%208.73225%2015.2977%209.15906%2014.7596%209.69711C14.2216%2010.2352%2013.7948%2010.8739%2013.5036%2011.5769C13.2124%2012.2799%2013.0625%2013.0334%2013.0625%2013.7943Z'%20fill='white'/%3e%3cpath%20id='Vector_2'%20d='M23.7629%2021.7979H13.9571C11.5057%2021.7979%209.5%2023.8036%209.5%2026.255V26.7007C9.5%2027.4584%2010.0794%2028.0379%2010.8371%2028.0379H26.8829C27.6406%2028.0379%2028.22%2027.4584%2028.22%2026.7007V26.255C28.22%2023.8036%2026.2143%2021.7979%2023.7629%2021.7979Z'%20fill='white'/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e",Nt={key:1,class:"mr-5"},Mt={key:2,class:"d-flex align-center"},Rt={class:"ellipsis"},zt=R({__name:"VerticalHeader",setup(o){H();const n=U(),l=V(!1),d=V((n.setHorizontalLayout,0));function p(){l.value=!l.value}ne(d,y=>{d.value=y});const i=O(()=>{const y=x();return console.log("computed...",y.merchantInfoMutations.currentShop),y.merchantInfoMutations.currentShop}),u=O(()=>{const y=x();return console.log("computed...",y.merchantInfoMutations),y.merchantInfoMutations.login});function A(){l.value=!l.value}const c=O(()=>{const y=x();return y.SET_CART_NUM(),y.cartNum});function f(){M.push({path:"/login"})}function _(){M.push({path:"/register"})}return(y,k)=>(t(),r(Ne,{elevation:"0",priority:d.value,height:"80"},{default:e(()=>[a(B,{class:"hidden-md-and-down text-secondary",color:"lightsecondary",icon:"",rounded:"sm",variant:"flat",onClick:k[0]||(k[0]=q(I=>s(n).SET_MINI_SIDEBAR(!s(n).mini_sidebar),["stop"])),size:"small"},{default:e(()=>[a(s($),{size:"20","stroke-width":"1.5"})]),_:1}),a(B,{class:"hidden-lg-and-up text-secondary ms-3",color:"lightsecondary",icon:"",rounded:"sm",variant:"flat",onClick:q(s(n).SET_SIDEBAR_DRAWER,["stop"]),size:"small"},{default:e(()=>[a(s($),{size:"20","stroke-width":"1.5"})]),_:1},8,["onClick"]),a(B,{class:"hidden-lg-and-up text-secondary ml-3",color:"lightsecondary",icon:"",rounded:"sm",variant:"flat",size:"small",onClick:p},{default:e(()=>[a(s(Ee),{size:"17","stroke-width":"1.5"})]),_:1}),l.value?(t(),r(T,{key:0,class:"search-sheet v-col-12"},{default:e(()=>[a(ae,{closesearch:p,onClose:A})]),_:1})):m("",!0),a(T,{class:"mx-3 v-col-3 v-col-xl-2 v-col-lg-4 d-none d-lg-block"},{default:e(()=>[a(ae)]),_:1}),a(Be),u.value?(t(),v("div",Mt,[a(D,{"close-on-content-click":!0,location:"bottom"},{activator:e(({props:I})=>[i.value?(t(),r(B,z({key:0,style:{height:"48px"},class:"text-black mr-3",color:"#F7F8F9",variant:"flat"},I),{default:e(()=>[s(S).GENERAL.value==i.value.shopType||s(S).NOT_BIND.value==i.value.shopType?(t(),r(w,{key:0,src:s(ce),width:35,height:35,class:"mr-2"},null,8,["src"])):m("",!0),s(S).SHOPIFY.value==i.value.shopType?(t(),r(w,{key:1,src:s(le),width:35,height:35,class:"mr-2"},null,8,["src"])):m("",!0),s(S).WOOCOMMERCE.value==i.value.shopType?(t(),r(w,{key:2,src:s(re),width:35,height:35,class:"mr-2"},null,8,["src"])):m("",!0),s(S).ETSY.value==i.value.shopType?(t(),r(w,{key:3,src:s(ie),width:35,height:35,class:"mr-2"},null,8,["src"])):m("",!0),h("div",Rt,g(i.value.name),1),s(S).SHOPIFY.value!=i.value.shopType?(t(),r(w,{key:4,src:s(Tt),width:12,height:7.4,class:"ml-2"},null,8,["src"])):m("",!0)]),_:2},1040)):m("",!0)]),default:e(()=>[s(S).SHOPIFY.value!=i.value.shopType?(t(),r(T,{key:0,rounded:"md",elevation:"12"},{default:e(()=>[a(bt)]),_:1})):m("",!0)]),_:1}),a(D,{"close-on-content-click":!1,location:"bottom"},{activator:e(({props:I})=>[c.value>0?(t(),r(Te,z({key:0,color:"error"},I,{content:c.value}),{default:e(()=>[a(w,{src:s(oe),width:36,height:36},null,8,["src"])]),_:2},1040,["content"])):(t(),r(w,{key:1,src:s(oe),width:36,height:36,inline:""},null,8,["src"]))]),default:e(()=>[a(T,{rounded:"md",elevation:"12"},{default:e(()=>[a(ft)]),_:1})]),_:1}),a(D,{"close-on-content-click":!1,location:"bottom"},{activator:e(({props:I})=>[a(Oe,z({size:"40",color:"lightprimary",class:"text-primary mr-6 ml-4",variant:"flat",rounded:""},I),{default:e(()=>[a(w,{src:s(Ot),width:36,height:36,rounded:""},null,8,["src"])]),_:2},1040)]),default:e(()=>[a(T,{rounded:"md",elevation:"12"},{default:e(()=>[a(st)]),_:1})]),_:1})])):(t(),v("div",Nt,[a(B,{variant:"text",color:"primary",onClick:f},{default:e(()=>[C("Log In")]),_:1}),a(B,{color:"primary",variant:"flat",onClick:_},{default:e(()=>[C("Sign up")]),_:1})]))]),_:1},8,["priority"]))}}),Pt=G(zt,[["__scopeId","data-v-6ca09cd5"]]),Xt=R({__name:"FullLayout",setup(o){const n=U();return(l,d)=>(t(),r(De,null,{default:e(()=>[a(Pe,{theme:s(n).actTheme,class:ee([s(n).actTheme,s(n).fontTheme,s(n).mini_sidebar?"mini-sidebar":"",s(n).setHorizontalLayout?"horizontalLayout":"verticalLayout",s(n).inputBg?"inputWithbg":""])},{default:e(()=>[s(n).setHorizontalLayout?m("",!0):(t(),r(et,{key:0})),s(n).setHorizontalLayout?m("",!0):(t(),r(Pt,{key:1})),a(Me,null,{default:e(()=>[a(Re,{fluid:"",class:"page-wrapper"},{default:e(()=>[h("div",{class:ee(s(n).boxed?"maxWidth":"")},[a(s(ze))],2)]),_:1})]),_:1})]),_:1},8,["theme","class"])]),_:1}))}});export{Xt as default};