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) 833 B
var i=Object.defineProperty;var s=Object.getOwnPropertyDescriptor;var p=Object.getOwnPropertyNames;var d=Object.prototype.hasOwnProperty;var f=(e,t)=>{for(var r in t)i(e,r,{get:t[r],enumerable:!0})},g=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of p(t))!d.call(e,a)&&a!==r&&i(e,a,{get:()=>t[a],enumerable:!(o=s(t,a))||o.enumerable});return e};var S=e=>g(i({},"__esModule",{value:!0}),e);var I={};f(I,{default:()=>n});module.exports=S(I);var n=class{constructor(t){this.reportDataStore=t;this.reportStore=t}async getState(t){return this.reportStore.getUserConfig(t)}async saveState(t,r){await this.reportStore.setUserConfig(t,r)}findIndexByExecutionId(t,r){return r.findIndex(o=>o.executionId===t)}findIndexByTableId(t,r){return r.findIndex(o=>o.tableId===t)}}; //# sourceMappingURL=reportStoreService.js.map