'use strict';
import { fetchReportWithData } from '../fetch-report-with-data.js';
import { first } from '../../../../fd-toolbox/server/collections/single-funcs.js';

var __defProp=Object['defineProperty'],__name=(_0x3606f6,_0x476459)=>__defProp(_0x3606f6,'name',{'value':_0x476459,'configurable':!![]});async function initReportCard(_0x1310a3,_0xd7cd74,_0x33e8e9,_0x32c224){const _0x4ae7d8=_0x33e8e9?.['id']??_0x32c224;if(!_0x4ae7d8)return;const _0x29c317=await fetchReportWithData(_0x4ae7d8);if(!_0x29c317)return;_0xd7cd74(first(_0x29c317['data'])),!_0x33e8e9&&_0x1310a3(_0x29c317['report']);}__name(initReportCard,'initReportCard');

export { initReportCard };
