<?php

declare(strict_types=1);

return [
    'name' => '(주)지티에스정보통신',
    'legal_name' => '(주)지티에스정보통신',
    'base_url' => 'https://gtsit.co.kr',
    'base_path' => rtrim((string) (getenv('GTSIT_BASE_PATH') ?: ''), '/'),
    'app_root' => (string) (getenv('GTSIT_APP_ROOT') ?: dirname(__DIR__)),
    'public_root' => (string) (getenv('GTSIT_PUBLIC_ROOT') ?: dirname(__DIR__) . '/public'),
    'noindex' => filter_var(getenv('GTSIT_NOINDEX') ?: false, FILTER_VALIDATE_BOOL),
    'timezone' => 'Asia/Seoul',
    'session_name' => 'gtsit_session',
    'naver_maps' => [
        'client_id' => (string) (getenv('NAVER_MAPS_CLIENT_ID') ?: '0xuekem2qn'),
        'query' => '서울특별시 송파구 정의로7길 13',
        'latitude' => 37.48524,
        'longitude' => 127.11478,
    ],
    'analytics' => [
        'measurement_id' => (string) (getenv('GA4_MEASUREMENT_ID') ?: 'G-92XBR314YD'),
        'property_id' => (string) (getenv('GA4_PROPERTY_ID') ?: '549573245'),
        'stream_id' => (string) (getenv('GA4_STREAM_ID') ?: '15422491033'),
        'consent_version' => '1',
        'credentials_path' => (string) (getenv('GA4_CREDENTIALS_PATH') ?: dirname(__DIR__) . '/.secrets/ga4-service-account.json'),
        'cache_path' => (string) (getenv('GA4_CACHE_PATH') ?: dirname(__DIR__) . '/storage/cache/ga4-dashboard.json'),
        'cache_ttl' => 900,
    ],
    'contact' => [
        'phone' => '1833-4917',
        'phone_sub' => '1833-4918',
        'fax' => '02-6442-0670',
        'email' => 'gts0201@naver.com',
        'address' => '서울시 송파구 정의로7길 13, B동 오피스 1020호',
        'business_hours' => '평일 09:00–18:00',
    ],
];
