<?php
declare(strict_types=1);

namespace PpPhp\Resources\Vendor\ChartJs;

use PpPhp\Core\Resources\Contracts\ResourcePackInterface;

final class Pack implements ResourcePackInterface
{
    public static function id(): string { return 'chartjs'; }
    public static function label(): string { return 'Chart.js'; }
    public static function type(): string { return 'vendor'; }
    public static function version(): string { return '1.0.0'; }

    public static function metadata(): array
    {
        return ['library' => 'chartjs', 'cdn' => true];
    }

    public static function assets(): array
    {
        return ['js' => ['https://cdn.jsdelivr.net/npm/chart.js@4.4.7/dist/chart.umd.min.js']];
    }
}
