import{C as g,K as h,Ka as U,Pa as C}from"./chunk-PJ2BYSV2.js";import{Qc as p,aa as s,ba as f,fa as d,ma as m,q as a}from"./chunk-ABTD7CBT.js";var I=(()=>{class e{constructor(r){this.configService=r}resolve(r){let t="";if(r.parent){let o=r.parent.url.join("/"),i=r.url.join("/");t=o?i?`${o}/${i}`:o:i}else t=r.url.join("/");!t&&r.routeConfig&&r.routeConfig.path==="**"&&(t=window.location.pathname.substring(1));let n=!1;n&&console.log("\u{1F50D} DUC Route full path:",t);let l=this.configService.getAllRoutes();n&&(console.log("\u{1F50D} Total DUC routes loaded:",l.length),console.log("\u{1F50D} Sample DUC routes:",l.slice(0,3).map(o=>({routeId:o.routeId,routeUrl:o.routeUrl}))));let u=l.find(o=>{let i=o.routeUrl.replace(/^\//,""),c=t.replace(/^\//,"");return n&&console.log(`\u{1F50D} Comparing "${c}" with "${i}" from route ${o.routeId}`),i===c});if(n){console.log('\u{1F50D} Looking specifically for "doc-attr/doc-rblist-names/create"');let o=l.find(i=>i.routeUrl.includes("doc-rblist-names/create"));o?console.log("\u{1F50D} Found target route:",{routeId:o.routeId,routeUrl:o.routeUrl}):console.log("\u{1F50D} Target route not found in loaded routes")}if(!u)throw console.error("\u274C No DUC configuration found for path:",t),console.error("Available DUC routes:",l.map(o=>({routeId:o.routeId,routeUrl:o.routeUrl}))),new Error(`No DUC configuration found for path: ${t}`);return n&&console.log("\u2705 Found matching route:",{routeId:u.routeId,routeUrl:u.routeUrl}),a(u)}static{this.\u0275fac=function(t){return new(t||e)(d(h))}}static{this.\u0275prov=s({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var R=[{path:"**",component:U,resolve:{ducRouteConfig:I}}],F=(()=>{class e{static{this.\u0275fac=function(t){return new(t||e)}}static{this.\u0275mod=m({type:e})}static{this.\u0275inj=f({imports:[p,C,g.forChild(R)]})}}return e})();export{F as DucModule};
