const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/AdapIconImage-C0PH_JFG.js","assets/stores-BWYw2E2w.js","assets/_plugin-vue_export-helper-CnS4QQza.js","assets/vue.runtime.esm-bundler-DpGzKKN4.js","assets/preload-helper-CZ7mzbZe.js","assets/useStructurizedVersionDialog-CNAsWSWf.js","assets/dist-k7MkJyWt.js","assets/dist-CrFs1CQR.js","assets/dist-KMsbJYTV.js","assets/dist-DBLKTTor.js","assets/dist-DvR-4JEj.js","assets/dist-DrhtnWAa.js","assets/button-CHjzS7b0.js","assets/vnode-DU8g6Rf7.js","assets/style-DGCNsUJ6.js","assets/lib-DFQPi_if.js","assets/GxDialog-BUqY5Fq3.js","assets/GxPagination-DOexUzbO.js","assets/GxPagination-Be4EBDKc.css","assets/dialog-BLJqz3g4.js","assets/use-lockscreen-DhUbRdm_.js","assets/css-DxP8XCTD.js","assets/css-Csvtmyaz.css","assets/GxDialog-40SSaOyB.css","assets/form-Bb1_iOEA.js","assets/message-XPlwcXDH.js","assets/validate-CTyV86Nm.js","assets/css-DunA3L7q.js","assets/css-CFVceEj2.css","assets/message-box-DHGKoTag.js","assets/validate-BI_ul7L0.css","assets/table-C_Bpc8FZ.js","assets/css-BrGVMe3H.js","assets/css-BNQ58e4w.css","assets/switch-CGmtldbS.js","assets/css-BYms2pL-.js","assets/css-DToTBi1D.css","assets/css-j23UczC-.js","assets/css-CdbtMQVl.css","assets/directive-9SA1IQHd.js","assets/css-CW_FwBqc2.js","assets/css-Ck501s0V.css","assets/css-ropEN6qH.js","assets/css-b4Oof7rq.css","assets/css--CcZutYI.js","assets/css-DZ_yH9qq.css","assets/pinia-BBLKFt_2.js","assets/vue-router-BU7Z_qXI.js","assets/enum-CJvdFzYQ.js","assets/request-CWxGgYu0.js","assets/request-object-map-DsW7ppmf.js","assets/utils-cLZb83du.js","assets/api-CxvZE3a4.js","assets/useStructurizedVersionDialog-BbgcrZoJ.css","assets/vuedraggable.umd-DdgzD11m.js","assets/css-DREb2J8s.js","assets/css-D_6SYB2i.css","assets/date-picker-BpzsJf7t.js","assets/echarts-Borew-jb.js","assets/css-KqzzE5xt.js","assets/css-wKgXRibH.css","assets/card-DchwgQ9Y.js","assets/css-D9oiPdeo.js","assets/css-DRtlST_I.css","assets/upload-CxV36kXa.js","assets/collapse-B9-372uV.js","assets/radio-BKPEeSth.js","assets/css-70Wp40ko.js","assets/DataEntityFieldList-x1XGuNl0.css","assets/dropdown-DhM1uP7x.js","assets/css-DzBTcPHF.js","assets/css-DZ1TmOvX.css","assets/css-CqAQ0NB2.js","assets/loading-BNccgbvN.js","assets/notification-627CNIcF.js","assets/popover-BuElc_X0.js","assets/css-CL2ZB6cz.js","assets/Data_Table-Do6EiT1s.js","assets/Data_Table-Bi4DmH_H.css","assets/css-BIUTcNqp.css","assets/css-CxNX7K-C.js","assets/css-C5xIbKst.css","assets/steps-Bctkg9a-.js","assets/css-AklKJXcX.js","assets/API_Setting-pvmDBGQs.js","assets/project-DYXf60Qj.js","assets/uiController-DpxB3sua.js","assets/view_base_options-B9YSRjyH.js","assets/view_base_options-BX08zhtl.css","assets/api-9aKmC5UF.js","assets/SvgIcon-DIfOGNcW.js","assets/SvgIcon-DIYf3J-m.css","assets/router__product_manage-p8tLmQfq.js","assets/stores-B9pOmSaA.css"])))=>i.map(i=>d[i]);
import{A as e,C as t,E as n,M as r,St as i,T as a,Tt as o,Y as s,cn as c,ct as l,dt as u,j as d,k as f,kt as p,mn as m,nn as h,w as g,x as _,z as v}from"./vue.runtime.esm-bundler-DpGzKKN4.js";import{i as y}from"./vue-router-BU7Z_qXI.js";import{t as b}from"./preload-helper-CZ7mzbZe.js";import{t as x}from"./vuedraggable.umd-DdgzD11m.js";import{E as S,bt as C,d as w,ft as T,g as E,it as D,mt as O,n as k,p as A}from"./stores-CPzLVPi9.js";import{n as j,r as M}from"./use-route-PCV5XoN_.js";import{i as N,n as P,o as F}from"./vue-i18n-CZh6OFWi.js";var[I,L]=S(`tabbar-item`),R=E(d({name:I,props:O({},j,{dot:Boolean,icon:String,name:T,badge:T,badgeProps:Object,iconPrefix:String}),emits:[`click`],setup(e,{emit:t,slots:n}){let i=M(),a=r().proxy,{parent:o,index:s}=D(F);if(!o)return;let c=_(()=>{let{route:t,modelValue:n}=o.props;if(t&&`$route`in a){let{$route:t}=a,{to:n}=e,r=C(n)?n:{path:n};return t.matched.some(e=>{let t=`path`in r&&r.path===e.path,n=`name`in r&&r.name===e.name;return t||n})}return(e.name??s.value)===n}),l=n=>{c.value||o.setActive(e.name??s.value,i),t(`click`,n)},u=()=>{if(n.icon)return n.icon({active:c.value});if(e.icon)return f(w,{name:e.icon,classPrefix:e.iconPrefix},null)};return()=>{let{dot:t,badge:r}=e,{activeColor:i,inactiveColor:a}=o.props,s=c.value?i:a;return f(`div`,{role:`tab`,class:L({active:c.value}),style:{color:s},tabindex:0,"aria-selected":c.value,onClick:l},[f(A,v({dot:t,class:L(`icon`),content:r},e.badgeProps),{default:u}),f(`div`,{class:L(`text`)},[n.default?.call(n,{active:c.value})])])}}})),z=m(x(),1),B={key:0},V=d({__name:`TabBar`,setup(r){let d=e(()=>b(()=>import(`./AdapIconImage-C0PH_JFG.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93]))),{t:m}=P(),v=i(0),x=y(),S=k(),C=i([]),T=/[^\.\d]/;l(()=>S.curTabbars,e=>{C.value=(e||[]).filter(e=>e.isApplyTarbar).sort((e,t)=>{let n=e.no||``,r=t.no||``;if(T.test(n)||T.test(n))return-1;let i=parseInt(n);return isNaN(i)||isNaN(i)?-1:i-parseInt(r)})},{immediate:!0});let E=_(()=>x.name&&N.includes(x.name)),D=_(()=>S.isOnlyText||S.isPicText),O=_(()=>S.isOnlyPic||S.isPicText),A=_(()=>S.curActiveApp?.zxlPrdId);i();let j={"onUpdate:modelValue":e=>{v.value=e},modelValue:v.value,route:!0},M=e=>{let t=o(C.value);console.log(`TabBar.vue: vuedraggable - changeHandle`,t);let n=S.getPostmateInstance();if(!n)return;let r=JSON.stringify(t);n.emit(`update-tab-bar-sort`,r)},F=_(()=>{let e=location.pathname||``;return/index-mobile-runtime\.html/.test(e)});return(e,r)=>E.value?(s(),a(`div`,{key:0,class:h([`z-10 h-[50px] w-full flex-shrink-0`,F.value?` relative `:`relative`])},[f(p(z.default),{class:h(F.value?` !absolute !bottom-0`:``),tag:`van-tabbar`,"component-data":j,list:C.value,group:`tabbar-item`,"item-key":`name`,onChange:M,filter:``},{item:u(({element:e,index:r})=>[(s(),t(p(R),{replace:``,to:e.url,key:e.name},n({default:u(()=>[D.value?(s(),a(`span`,B,c(e.i18nKey?p(m)(e.i18nKey):e.name),1)):g(``,!0)]),_:2},[O.value&&e.icon?{name:`icon`,fn:u(()=>[e.iconType===`vant`?(s(),t(p(w),{key:0,name:e.icon},null,8,[`name`])):e.iconType===`adap`?(s(),t(p(d),{key:1,class:`w-5 h-5 text-base overflow-hidden flex justify-center items-center`,ref:void 0,getFileUuid:e.icon,editable:!0,zxlPrdId:A.value,onClick:e=>null},null,8,[`getFileUuid`,`zxlPrdId`])):g(``,!0)]),key:`0`}:void 0]),1032,[`to`]))]),_:1},8,[`class`,`list`])],2)):g(``,!0)}});export{V as default};