UNPKG

@ministryofjustice/hmpps-digital-prison-reporting-frontend

Version:

The Digital Prison Reporting Frontend contains templates and code to help display data effectively in UI applications.

3 lines (2 loc) 1.37 kB
var n=Object.defineProperty;var P=Object.getOwnPropertyDescriptor;var h=Object.getOwnPropertyNames;var D=Object.prototype.hasOwnProperty;var S=(o,t)=>{for(var s in t)n(o,s,{get:t[s],enumerable:!0})},g=(o,t,s,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let e of h(t))!D.call(o,e)&&e!==s&&n(o,e,{get:()=>t[e],enumerable:!(a=P(t,e))||a.enumerable});return o};var q=o=>g(n({},"__esModule",{value:!0}),o);var I={};S(I,{default:()=>w});module.exports=q(I);var x=o=>{let t=o.locals.csrfToken||"csrfToken",s=o.locals.user?.uuid?o.locals.user.uuid:"userId",a=o.locals.user?.token?o.locals.user.token:"token",e=o.locals.user?.activeCaseLoadId||"",r=o.locals.pathSuffix||"",c=o.locals.routePrefix||"",l=o.locals.definitions||[],d=o.locals.requestedReports||[],i=o.locals.recentlyViewedReports||[],u=o.locals.bookmarks||[],{bookmarkingEnabled:p,downloadingEnabled:f,definitionsPath:k,dpdPathFromQuery:m,dpdPathFromConfig:R,nestedBaseUrl:y}=o.locals;return{csrfToken:t,userId:s,token:a,definitions:l,requestedReports:d,recentlyViewedReports:i,bookmarks:u,bookmarkingEnabled:p,downloadingEnabled:f,dpdPathFromQuery:m,dpdPathFromConfig:R,definitionsPath:k,pathSuffix:r,routePrefix:c,activeCaseLoadId:e,nestedBaseUrl:y}},b=(o,t)=>(t&&(o.query={...o.query,dataProductDefinitionsPath:t}),o.query),w={getValues:x,setDdpPathToReqQuery:b}; //# sourceMappingURL=localsHelper.js.map