private function mapData(array $data) : array
    {
        $assets = [
            'js' => false,
            'css' => false,
        ];

        $assets_path = $this->config('paths.assets_manifest');

        if (file_exists($assets_path)) {
            $assets_data = json_decode(file_get_contents($assets_path), true);
            $assets = [
                'js' => $assets_data['/app.js'],
                'css' => $assets_data['/app.css'],
            ];
        }

        $tplData = [
            'fw' => [
                'assets' => $assets,
                'i18n' => [],
                'data' => $data,
                'lang' => $this->header('lang'),
            ],
        ];

        return $tplData;
    }