var e=Object.defineProperty,t=Object.defineProperties,a=Object.getOwnPropertyDescriptors,s=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable,l=(t,a,s)=>a in t?e(t,a,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[a]=s;import{H as i,a as r,_ as c}from"./index-DHyreyMy.js";import{d as u,r as m,k as d,o as p,ap as f,H as y,a0 as _,a3 as h,f as k,a8 as g,v,A as b,aa as K,ae as x,a1 as O,F as j,af as H,a7 as w,a6 as C,E as P,aL as S,a9 as A}from"./vendor-DezibNX8.js";import{c as I}from"./country-BL-t6jOz.js";import{w as N,x as U,y as B,z as E}from"./antd-CKo75OZH.js";import"./utils-D7vwahzQ.js";const L=u({components:{},props:["msg","sketchCatecoryList"],setup(){const e=f(),c=r(),u=m({rootSubmenuKeys:[{name:"Affiliate Home",route:"/affiliateHome",icon:"yonghu",expandIcon:"icon-xiala",key:"sub1",isShow:!0}],openKeys:[],selectedKeys:["sub1"],nowPageName:"Affiliate Home"});let _=d([]);return p(()=>{u.rootSubmenuKeys.forEach(t=>{t.children?t.children.forEach(t=>{t.route==e.currentRoute.value.path&&(u.selectedKeys[0]=t.key)}):t.route==e.currentRoute.value.path&&(u.selectedKeys[0]=t.key)}),i.axiosGet(i.httpUrls.getAllUserId).then(e=>{e&&c.commit("setAllUserList",e)});let t=I;sessionStorage.setItem("allCountry",JSON.stringify(t))}),h=((e,t)=>{for(var a in t||(t={}))n.call(t,a)&&l(e,a,t[a]);if(s)for(var a of s(t))o.call(t,a)&&l(e,a,t[a]);return e})({},y(u)),t(h,a({onOpenChange:e=>{const t=e.find(e=>-1===u.openKeys.indexOf(e));-1===u.rootSubmenuKeys.indexOf(t)?u.openKeys=e:u.openKeys=t?[t]:[]},routers:_,handleClick:t=>{u.nowPageName=t.item.name,e.push({path:t.item.route})},setBack:()=>{e.push("/home")}}));var h},data:e=>({}),mounted(){},watch:{},methods:{}}),R={class:"affiliateHome_page"},z={class:"affiliateHome_page_left"},D={class:"affiliateHome_title"},F=["title"],G=["title"],J=["title"],$={class:"affiliateHome_page_right"},q={class:"affiliateHome_page_right_header"},M={class:"page_name"},Q={key:0},T={class:"affiliateHome_page_right_content"};const V=c(L,[["render",function(e,t,a,s,n,o){const l=B,i=E,r=N,c=x("router-link"),u=U,m=x("router-view");return O(),_("div",R,[h("div",z,[h("div",D,[h("div",{class:"modal_title_text",onClick:t[0]||(t[0]=(...t)=>e.setBack&&e.setBack(...t))},t[3]||(t[3]=[h("i",{class:"fi fi-sr-left"},null,-1),h("div",{class:"modal_title_intro affiliateHome_title_text"},"Back",-1)]))]),t[4]||(t[4]=h("div",{class:"modal_title_text"},"Affiliate",-1)),k(r,{id:"dddddd",class:"menu_list_content",theme:"dark",openKeys:e.openKeys,"onUpdate:openKeys":t[1]||(t[1]=t=>e.openKeys=t),selectedKeys:e.selectedKeys,"onUpdate:selectedKeys":t[2]||(t[2]=t=>e.selectedKeys=t),mode:"inline",onClick:e.handleClick},{default:g(()=>[(O(!0),_(j,null,H(e.rootSubmenuKeys,e=>(O(),_("div",{key:e.key},[e.children?(O(),w(i,{key:e.key},{icon:g(()=>[h("span",{class:C(["icon","iconfont","menu_icon",e.icon])},null,2)]),expandIcon:g(()=>[h("span",{class:C(["icon","iconfont","menu_icon",e.expandIcon])},null,2)]),title:g(()=>[h("span",{class:"menu_title",title:e.name},K(e.name),9,G)]),default:g(()=>[h("div",null,[(O(!0),_(j,null,H(e.children,e=>(O(),w(l,{key:e.key,name:e.name,route:e.route},{default:g(()=>[h("span",{class:"menu_title",title:e.name},K(e.name),9,J)]),_:2},1032,["name","route"]))),128))])]),_:2},1024)):(O(),w(l,{key:e.key,name:e.name,route:e.route},{icon:g(()=>[h("span",{class:C(["icon","iconfont","menu_icon",e.icon])},null,2)]),default:g(()=>[h("span",{class:"menu_title",title:e.name},K(e.name),9,F)]),_:2},1032,["name","route"]))]))),128))]),_:1},8,["openKeys","selectedKeys","onClick"])]),h("div",$,[h("div",q,[h("div",M,[v(h("div",{class:"page_name_title"},K(e.nowPageName),513),[[b,!e.routers.length]]),v(k(u,{routes:e.routers},{itemRender:g(({route:e,routes:t,paths:a})=>[t.indexOf(e)===t.length-1?(O(),_("span",Q,K(e.breadcrumbName),1)):(O(),w(c,{key:1,to:`${a.join("/")}`},{default:g(()=>[P(K(e.breadcrumbName),1)]),_:2},1032,["to"]))]),_:1},8,["routes"]),[[b,e.routers.length]])])]),h("div",T,[k(m,null,{default:g(({Component:e})=>[(O(),w(S,null,[(O(),w(A(e)))],1024))]),_:1})])])])}]]);export{V as default};
