Files
aiot-platform-ui/apps/web-antd/dist/js/data-DvywVrDG.js
lzh e7f14bd4e8
All checks were successful
Web UI CI/CD / build-and-deploy (push) Successful in 37s
chore: build and deploy web-antd
2026-03-15 17:05:46 +08:00

2 lines
1.2 KiB
JavaScript

var D=Object.defineProperty,T=Object.defineProperties;var h=Object.getOwnPropertyDescriptors;var I=Object.getOwnPropertySymbols;var N=Object.prototype.hasOwnProperty,g=Object.prototype.propertyIsEnumerable;var p=(t,n,e)=>n in t?D(t,n,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[n]=e,f=(t,n)=>{for(var e in n||(n={}))N.call(n,e)&&p(t,e,n[e]);if(I)for(var e of I(n))g.call(n,e)&&p(t,e,n[e]);return t},b=(t,n)=>T(t,h(n));var E=(t,n,e)=>new Promise((r,s)=>{var i=o=>{try{a(e.next(o))}catch(c){s(c)}},d=o=>{try{a(e.throw(o))}catch(c){s(c)}},a=o=>o.done?r(o.value):Promise.resolve(o.value).then(i,d);a((e=e.apply(t,n)).next())});const w={DIRECT:{label:"直接绑定",color:"blue"},INHERITED:{label:"继承",color:"default"}};function R(t,n,e){return E(this,null,function*(){const r=new Map(n.map(o=>[o.id,o])),s=[];let i=r.get(t);for(;i;)s.push(i),i=i.parentId?r.get(i.parentId):void 0;const d=new Set,a=[];for(const o of s){if(!o.id)continue;const c=yield e(o.id),l=o.id===t;for(const u of c)u.enabled&&(d.has(u.userId)||(d.add(u.userId),a.push(b(f({},u),{bindType:l?"DIRECT":"INHERITED",sourceAreaId:l?void 0:o.id,sourceAreaName:l?void 0:o.areaName}))))}return a})}export{w as B,R as c};