acdr-ui/dist/build/mp-weixin/utils/index.js

2 lines
787 B
JavaScript

"use strict";var e=Object.defineProperty,r=Object.defineProperties,t=Object.getOwnPropertyDescriptors,o=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable,p=(r,t,o)=>t in r?e(r,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):r[t]=o,s=(e,r)=>{for(var t in r||(r={}))a.call(r,t)&&p(e,t,r[t]);if(o)for(var t of o(r))n.call(r,t)&&p(e,t,r[t]);return e},c=(e,o)=>r(e,t(o));const i=require("../common/vendor.js"),b=((e="needLogin")=>{const r=[...i.pages.filter((r=>!e||r[e])).map((e=>c(s({},e),{path:`/${e.path}`})))],t=[];i.subPackages.forEach((r=>{const{root:o}=r;r.pages.filter((r=>!e||r[e])).forEach((e=>{t.push(c(s({},e),{path:`/${o}/${e.path}`}))}))}));return[...r,...t]})("needLogin").map((e=>e.path));exports.needLoginPages=b;