<?php

return [
    'manifest' => [
        'name'             => 'AsignaPro',
        'short_name'       => 'AsignaPro',
        'description'      => 'Sistema SaaS de reservas y agenda',
        'start_url'        => '/',
        'scope'            => '/',
        'display'          => 'standalone',
        'orientation'      => 'portrait-primary',
        'background_color' => '#ffffff',
        'theme_color'      => '#07377f',
        'lang'             => 'es-CO',
        'dir'              => 'ltr',
        'icons' => [
            ['src' => '/icons/icon-72x72.png',   'sizes' => '72x72',   'type' => 'image/png'],
            ['src' => '/icons/icon-96x96.png',   'sizes' => '96x96',   'type' => 'image/png'],
            ['src' => '/icons/icon-128x128.png', 'sizes' => '128x128', 'type' => 'image/png'],
            ['src' => '/icons/icon-144x144.png', 'sizes' => '144x144', 'type' => 'image/png'],
            ['src' => '/icons/icon-152x152.png', 'sizes' => '152x152', 'type' => 'image/png'],
            ['src' => '/icons/icon-192x192.png', 'sizes' => '192x192', 'type' => 'image/png', 'purpose' => 'any maskable'],
            ['src' => '/icons/icon-384x384.png', 'sizes' => '384x384', 'type' => 'image/png'],
            ['src' => '/icons/icon-512x512.png', 'sizes' => '512x512', 'type' => 'image/png', 'purpose' => 'any maskable'],
        ],
        'shortcuts' => [
            [
                'name'        => 'Mi Agenda',
                'url'         => '/empresa/dashboard',
                'description' => 'Acceso rápido a la agenda',
            ],
        ],
    ],

    'service_worker' => [
        'cache_version'   => 'v1',
        'offline_url'     => '/offline',
        'precache_assets' => [
            '/',
            '/offline',
            '/manifest.json',
        ],
        'runtime_cache' => [
            'images'  => 'StaleWhileRevalidate',
            'scripts' => 'StaleWhileRevalidate',
            'styles'  => 'StaleWhileRevalidate',
            'fonts'   => 'CacheFirst',
        ],
    ],
];
