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) 698 B
var s=Object.defineProperty;var d=Object.getOwnPropertyDescriptor;var n=Object.getOwnPropertyNames;var B=Object.prototype.hasOwnProperty;var c=(r,o)=>{for(var e in o)s(r,e,{get:o[e],enumerable:!0})},p=(r,o,e,t)=>{if(o&&typeof o=="object"||typeof o=="function")for(let a of n(o))!B.call(r,a)&&a!==e&&s(r,a,{get:()=>o[a],enumerable:!(t=d(o,a))||t.enumerable});return r};var l=r=>p(s({},"__esModule",{value:!0}),r);var g={};c(g,{default:()=>f});module.exports=l(g);var S=async(r,o,e,t={})=>{let a=t[o]||[];for(let k=0;k<a.length;k+=1){let{reportId:i,variantId:m}=a[k];await e.bookmarkService.addBookmark(r,i,m,"report",!0)}return a},f={preBookmarkReportsByRoleId:S}; //# sourceMappingURL=utils.js.map