diff --git a/.github/workflows/dependabot-auto-merge.yml b/.github/workflows/dependabot-auto-merge.yml index 88fc5943..332c8dd2 100644 --- a/.github/workflows/dependabot-auto-merge.yml +++ b/.github/workflows/dependabot-auto-merge.yml @@ -13,7 +13,7 @@ jobs: - name: Dependabot metadata id: metadata - uses: dependabot/fetch-metadata@v2.3.0 + uses: dependabot/fetch-metadata@v2.4.0 with: github-token: "${{ secrets.GITHUB_TOKEN }}" - name: Auto-merge Dependabot PRs for semver-minor updates diff --git a/.gitignore b/.gitignore index bf2bdb72..cde83c54 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,3 @@ -# Node.js -# /node_modules npm-debug.log yarn-error.log @@ -8,33 +6,20 @@ package-json.lock pnpm-lock.yml /vendor composer.phar - /.idea /.vscode -/projects - -# Laravel Exclude -# .phpunit.cache .phpunit.result.cache /public/build /public/hot /public/storage /public/media -public/css/ -public/js/ +/public/css +/public/js /public/**/*.xml /storage/*.key /storage/framework/cache .env .env.backup - -# OSX -# .DS_Store Thumbs.db - -# SublimeText -# -*.sublime-project -*.sublime-workspace diff --git a/app/Filament/Resources/ArticleResource/Widgets/ArticleStatsOverview.php b/app/Filament/Resources/ArticleResource/Widgets/ArticleStatsOverview.php deleted file mode 100644 index eac5b82d..00000000 --- a/app/Filament/Resources/ArticleResource/Widgets/ArticleStatsOverview.php +++ /dev/null @@ -1,66 +0,0 @@ -startOfWeek(); - $currentWeekEnd = now()->endOfWeek(); - - return [ - Stat::make('Total Article', Article::query()->published()->count()) - ->icon('heroicon-o-newspaper') - ->chart( - Trend::query(Article::query()->published()) - ->between( - start: $currentWeekStart, - end: $currentWeekEnd, - )->perDay() - ->count() - ->map(fn (TrendValue $value) => $value->aggregate)->toArray() - )->description(__('Total des articles postés')), - - Stat::make( - 'Article récent publié', - Article::query() - ->recent() - ->whereBetween('created_at', [ - $currentWeekStart, - $currentWeekEnd, - ])->count() - ) - ->chart( - Trend::query(Article::query()) - ->between( - start: $currentWeekStart, - end: $currentWeekEnd, - ) - ->perDay() - ->count() - ->map(fn (TrendValue $value) => $value->aggregate) - ->toArray() - )->icon('heroicon-o-newspaper') - ->color('primary') - ->description('Total des articles Postés de la semaine'), - ]; - } -} diff --git a/app/Filament/Resources/ArticleResource/Widgets/MostLikedPostsChart.php b/app/Filament/Resources/ArticleResource/Widgets/MostLikedPostsChart.php deleted file mode 100644 index 264c3afb..00000000 --- a/app/Filament/Resources/ArticleResource/Widgets/MostLikedPostsChart.php +++ /dev/null @@ -1,56 +0,0 @@ -popular() - ->limit(10) - ->get(); - - return [ - 'datasets' => [ - [ - 'label' => 'Total aimé', - 'data' => $articles->pluck('reactions_count')->toArray(), - ], - ], - 'labels' => $articles->pluck('title') - ->map(fn ($title) => Str::limit($title, $this->titleLength, '...')) - ->toArray(), - ]; - } - - protected function getType(): string - { - return 'bar'; - } - - protected function getOptions(): array - { - return [ - 'scales' => [ - 'y' => [ - 'beginAtZero' => true, - ], - ], - ]; - } -} diff --git a/app/Filament/Resources/ArticleResource/Widgets/MostViewedPostsChart.php b/app/Filament/Resources/ArticleResource/Widgets/MostViewedPostsChart.php deleted file mode 100644 index bb3f934e..00000000 --- a/app/Filament/Resources/ArticleResource/Widgets/MostViewedPostsChart.php +++ /dev/null @@ -1,48 +0,0 @@ -startOfWeek(), now()->endOfWeek())) // @phpstan-ignore-line - ->published() - ->orderByDesc('views_count') - ->orderByDesc('published_at') - ->limit(10) - ->get(); - - return [ - 'datasets' => [ - [ - 'label' => 'Article le plus vu', - 'data' => $articles->pluck('views_count')->toArray(), - ], - ], - 'labels' => $articles->pluck('title') - ->map(fn ($title) => Str::limit($title, $this->titleLength, '...')) - ->toArray(), - ]; - } - - protected function getType(): string - { - return 'bar'; - } -} diff --git a/app/Filament/Resources/UserResource/Widgets/UserActivityWidget.php b/app/Filament/Resources/UserResource/Widgets/UserActivityWidget.php deleted file mode 100644 index c332d0a1..00000000 --- a/app/Filament/Resources/UserResource/Widgets/UserActivityWidget.php +++ /dev/null @@ -1,58 +0,0 @@ -withCount('activities') - ->verifiedUsers() - ->whereHas('activities', fn (Builder $query) => $query->whereBetween('created_at', [ - now()->startOfWeek(), - now()->endOfWeek(), - ])) - ->orderByDesc('activities_count') - ->limit(10) - ->get(); - - return [ - 'datasets' => [ - [ - 'label' => 'Total des activités', - 'data' => $users->pluck('activities_count')->toArray(), - ], - ], - 'labels' => $users->pluck('name')->toArray(), - ]; - } - - protected function getType(): string - { - return 'bar'; - } - - protected function getOptions(): array - { - return [ - 'scales' => [ - 'y' => [ - 'beginAtZero' => true, - ], - ], - ]; - } -} diff --git a/app/Filament/Resources/UserResource/Widgets/UserChartWidget.php b/app/Filament/Resources/UserResource/Widgets/UserChartWidget.php deleted file mode 100644 index 13f16294..00000000 --- a/app/Filament/Resources/UserResource/Widgets/UserChartWidget.php +++ /dev/null @@ -1,90 +0,0 @@ - 'Last Week', - 'month' => 'Last Month', - '3months' => 'Last 3 Months', - ]; - } - - protected function getData(): array - { - match ($this->filter) { // @phpstan-ignore-line - 'week' => $data = Trend::model(User::class) - ->between( - start: now()->subWeeks(), - end: now() - ) - ->perDay() - ->count(), - - 'month' => $data = Trend::model(User::class) - ->between( - start: now()->subMonth(), - end: now() - ) - ->perDay() - ->count(), - - '3months' => $data = Trend::model(User::class) - ->between( - start: now()->subMonths(3), - end: now() - ) - ->perMonth() - ->count(), - }; - - return [ - 'datasets' => [ - [ - 'label' => 'Compte créé', - 'data' => $data->map(fn (TrendValue $value) => $value->aggregate), // @phpstan-ignore-line - ], - ], - 'labels' => $data->map(fn (TrendValue $value) => $value->date), // @phpstan-ignore-line - ]; - } - - protected function getType(): string - { - return 'line'; - } - - protected function getOptions(): array - { - return [ - 'scales' => [ - 'y' => [ - 'beginAtZero' => true, - ], - ], - ]; - } -} diff --git a/app/Filament/Resources/UserResource/Widgets/UserStatsOverview.php b/app/Filament/Resources/UserResource/Widgets/UserStatsOverview.php deleted file mode 100644 index 2fbdbcf4..00000000 --- a/app/Filament/Resources/UserResource/Widgets/UserStatsOverview.php +++ /dev/null @@ -1,92 +0,0 @@ -count()) - ->chart( - Trend::query(User::query()) - ->between( - start: now()->startOfWeek(), - end: now()->endOfWeek(), - ) - ->perDay() - ->count() - ->map(fn (TrendValue $value) => $value->aggregate) - ->toArray() - ) - ->description('Nombre total de comptes') - ->icon('heroicon-o-user') - ->color('primary'), - - Stat::make('Compte créé cette semaine', User::query() - ->whereBetween('created_at', [now()->startOfWeek(), now()->endOfWeek()]) - ->count()) - ->chart( - Trend::query(User::query()) - ->between( - start: now()->startOfWeek(), - end: now()->endOfWeek(), - ) - ->perDay() - ->count() - ->map(fn (TrendValue $value) => $value->aggregate) - ->toArray() - ) - ->description('Nombre de comptes créés cette semaine') - ->icon('heroicon-o-user') - ->color('primary'), - - Stat::make('Utilisateurs vérifiés', User::VerifiedUsers()->count()) - ->chart( - Trend::query(User::VerifiedUsers()) - ->between( - start: now()->subMonths(3), - end: now(), - ) - ->perDay() - ->count() - ->map(fn (TrendValue $value) => $value->aggregate) - ->toArray() - ) - ->description('Nombre total de comptes vérifiés') - ->icon('heroicon-o-check-badge') - ->color('primary'), - - Stat::make('Utilisateurs non vérifiés', User::UnVerifiedUsers()->count()) - ->chart( - Trend::query(User::UnVerifiedUsers()) - ->between( - start: now()->subMonths(3), - end: now(), - ) - ->perDay() - ->count() - ->map(fn (TrendValue $value) => $value->aggregate) - ->toArray() - ) - ->description('Nombre de comptes non vérifiés') - ->icon('heroicon-o-x-mark') - ->color('warning'), - ]; - } -} diff --git a/app/Models/User.php b/app/Models/User.php index 115af9fb..4354e8bb 100644 --- a/app/Models/User.php +++ b/app/Models/User.php @@ -23,10 +23,8 @@ use Illuminate\Database\Eloquent\Relations\HasOne; use Illuminate\Foundation\Auth\User as Authenticatable; use Illuminate\Notifications\Notifiable; -use Illuminate\Notifications\Notification; use Illuminate\Support\Carbon; use Illuminate\Support\Facades\Auth; -use Laravel\Sanctum\HasApiTokens; use Laravel\Socialite\Contracts\User as SocialUser; use Laravelcm\Gamify\Traits\Gamify; use Laravelcm\Subscriptions\Traits\HasPlanSubscriptions; @@ -67,7 +65,6 @@ final class User extends Authenticatable implements FilamentUser, HasAvatar, HasMedia, HasName, MustVerifyEmail { use Gamify; - use HasApiTokens; use HasFactory; use HasPlanSubscriptions; use HasProfilePhoto; @@ -78,28 +75,7 @@ final class User extends Authenticatable implements FilamentUser, HasAvatar, Has use Notifiable; use Reacts; - protected $fillable = [ - 'name', - 'email', - 'username', - 'password', - 'bio', - 'location', - 'avatar_type', - 'reputation', - 'phone_number', - 'github_profile', - 'twitter_profile', - 'linkedin_profile', - 'website', - 'last_login_at', - 'last_login_ip', - 'email_verified_at', - 'banned_at', - 'banned_reason', - 'opt_in', - 'last_active_at', - ]; + protected $guarded = []; protected $hidden = [ 'password', @@ -109,18 +85,21 @@ final class User extends Authenticatable implements FilamentUser, HasAvatar, Has 'last_active_at', ]; - protected $casts = [ - 'email_verified_at' => 'datetime', - 'last_login_at' => 'datetime', - 'banned_at' => 'datetime', - 'settings' => 'array', - 'last_active_at' => 'datetime', - ]; - protected $with = [ 'providers', ]; + protected function casts(): array + { + return [ + 'email_verified_at' => 'datetime', + 'last_login_at' => 'datetime', + 'banned_at' => 'datetime', + 'settings' => 'array', + 'last_active_at' => 'datetime', + ]; + } + public function hasProvider(string $provider): bool { foreach ($this->providers as $p) { @@ -132,11 +111,6 @@ public function hasProvider(string $provider): bool return false; } - public function enterprise(): HasOne - { - return $this->hasOne(Enterprise::class); - } - public function hasEnterprise(): bool { return $this->enterprise !== null; @@ -250,6 +224,11 @@ public static function findOrCreateSocialUserProvider(SocialUser $socialUser, st return $user; } + public function enterprise(): HasOne + { + return $this->hasOne(Enterprise::class); + } + public function providers(): HasMany { return $this->hasMany(SocialAccount::class); @@ -383,14 +362,6 @@ public function scopeHasActivity(Builder $query): Builder }); } - /** - * Route notifications for the Slack channel. - */ - public function routeNotificationForSlack(Notification $notification): string - { - return config('lcm.slack.web_hook'); - } - public function replies(): Collection { return $this->replyAble; diff --git a/app/Providers/Filament/AdminPanelProvider.php b/app/Providers/Filament/AdminPanelProvider.php index 4e86e6db..8885ce06 100644 --- a/app/Providers/Filament/AdminPanelProvider.php +++ b/app/Providers/Filament/AdminPanelProvider.php @@ -4,8 +4,6 @@ namespace App\Providers\Filament; -use App\Filament\Resources\ArticleResource\Widgets as ArticleWidgets; -use App\Filament\Resources\UserResource\Widgets; use Filament\Http\Middleware\Authenticate; use Filament\Http\Middleware\DisableBladeIconComponents; use Filament\Http\Middleware\DispatchServingFilamentEvent; @@ -48,12 +46,7 @@ public function panel(Panel $panel): Panel Pages\Dashboard::class, ]) ->widgets([ - Widgets\UserStatsOverview::class, - Widgets\UserChartWidget::class, - Widgets\UserActivityWidget::class, - ArticleWidgets\ArticleStatsOverview::class, - ArticleWidgets\MostLikedPostsChart::class, - ArticleWidgets\MostViewedPostsChart::class, + // ]) ->plugins([ SpatieLaravelTranslatablePlugin::make() diff --git a/composer.json b/composer.json index 2f58299e..1a5e6604 100644 --- a/composer.json +++ b/composer.json @@ -14,24 +14,21 @@ "archtechx/laravel-seo": "^0.10", "awcodes/filament-badgeable-column": "^2.3", "barryvdh/laravel-debugbar": "^3.14", - "blade-ui-kit/blade-heroicons": "^2.4", "codeat3/blade-phosphor-icons": "^2.0", "cyrildewit/eloquent-viewable": "^7.0", "doctrine/dbal": "^4.2.1", "dutchcodingcompany/livewire-recaptcha": "^1.0", - "filament/filament": "^3.2", - "filament/spatie-laravel-media-library-plugin": "^3.2", - "filament/spatie-laravel-translatable-plugin": "^3.2", - "flowframe/laravel-trend": "^0.3.0", - "gehrisandro/tailwind-merge-laravel": "^1.2", - "graham-campbell/markdown": "^15.2", + "filament/filament": "^3.3", + "filament/spatie-laravel-media-library-plugin": "^3.3", + "filament/spatie-laravel-translatable-plugin": "^3.3", + "gehrisandro/tailwind-merge-laravel": "^1.3", + "graham-campbell/markdown": "^16.0", "guzzlehttp/guzzle": "^7.7.0", "internachi/modular": "^2.3", "jenssegers/agent": "^2.6.4", - "laravel-notification-channels/telegram": "^5.0", + "laravel-notification-channels/telegram": "^6.0", "laravel-notification-channels/twitter": "^8.1", - "laravel/framework": "^11.0", - "laravel/sanctum": "^4.0", + "laravel/framework": "^12.0", "laravel/socialite": "^5.6.3", "laravel/tinker": "^2.8.1", "laravelcm/gamify": "*", @@ -48,7 +45,6 @@ "spatie/laravel-permission": "^6.10.0", "spatie/laravel-sitemap": "^7.3", "stevebauman/location": "^7.4.0", - "symfony/http-client": "^7.1.8", "symfony/mailgun-mailer": "^7.1", "torchlight/torchlight-laravel": "^0.6", "vormkracht10/filament-mails": "^2.0", @@ -92,9 +88,6 @@ "@php artisan package:discover --ansi", "@php artisan filament:upgrade" ], - "post-update-cmd": [ - "Illuminate\\Foundation\\ComposerScripts::postUpdate" - ], "post-root-package-install": [ "@php -r \"file_exists('.env') || copy('.env.example', '.env');\"" ], diff --git a/composer.lock b/composer.lock index af5a294a..ba656d95 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "4412d24fdedaef41293443f2dd699c54", + "content-hash": "21a856402cacb77fe9f10bc92a3e21d7", "packages": [ { "name": "abraham/twitteroauth", @@ -1654,16 +1654,16 @@ }, { "name": "composer/composer", - "version": "2.8.8", + "version": "2.8.9", "source": { "type": "git", "url": "https://github.com/composer/composer.git", - "reference": "85ff84d6c5260ba21740a7c5c9a111890805d6e7" + "reference": "b4e6bff2db7ce756ddb77ecee958a0f41f42bd9d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/composer/composer/zipball/85ff84d6c5260ba21740a7c5c9a111890805d6e7", - "reference": "85ff84d6c5260ba21740a7c5c9a111890805d6e7", + "url": "https://api.github.com/repos/composer/composer/zipball/b4e6bff2db7ce756ddb77ecee958a0f41f42bd9d", + "reference": "b4e6bff2db7ce756ddb77ecee958a0f41f42bd9d", "shasum": "" }, "require": { @@ -1748,7 +1748,7 @@ "irc": "ircs://irc.libera.chat:6697/composer", "issues": "https://github.com/composer/composer/issues", "security": "https://github.com/composer/composer/security/policy", - "source": "https://github.com/composer/composer/tree/2.8.8" + "source": "https://github.com/composer/composer/tree/2.8.9" }, "funding": [ { @@ -1764,7 +1764,7 @@ "type": "tidelift" } ], - "time": "2025-04-04T14:56:46+00:00" + "time": "2025-05-13T12:01:37+00:00" }, { "name": "composer/metadata-minifier", @@ -1997,24 +1997,24 @@ }, { "name": "composer/spdx-licenses", - "version": "1.5.8", + "version": "1.5.9", "source": { "type": "git", "url": "https://github.com/composer/spdx-licenses.git", - "reference": "560bdcf8deb88ae5d611c80a2de8ea9d0358cc0a" + "reference": "edf364cefe8c43501e21e88110aac10b284c3c9f" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/composer/spdx-licenses/zipball/560bdcf8deb88ae5d611c80a2de8ea9d0358cc0a", - "reference": "560bdcf8deb88ae5d611c80a2de8ea9d0358cc0a", + "url": "https://api.github.com/repos/composer/spdx-licenses/zipball/edf364cefe8c43501e21e88110aac10b284c3c9f", + "reference": "edf364cefe8c43501e21e88110aac10b284c3c9f", "shasum": "" }, "require": { "php": "^5.3.2 || ^7.0 || ^8.0" }, "require-dev": { - "phpstan/phpstan": "^0.12.55", - "symfony/phpunit-bridge": "^4.2 || ^5" + "phpstan/phpstan": "^1.11", + "symfony/phpunit-bridge": "^3 || ^7" }, "type": "library", "extra": { @@ -2057,7 +2057,7 @@ "support": { "irc": "ircs://irc.libera.chat:6697/composer", "issues": "https://github.com/composer/spdx-licenses/issues", - "source": "https://github.com/composer/spdx-licenses/tree/1.5.8" + "source": "https://github.com/composer/spdx-licenses/tree/1.5.9" }, "funding": [ { @@ -2073,7 +2073,7 @@ "type": "tidelift" } ], - "time": "2023-11-20T07:44:33+00:00" + "time": "2025-05-12T21:07:07+00:00" }, { "name": "composer/xdebug-handler", @@ -2961,16 +2961,16 @@ }, { "name": "filament/actions", - "version": "v3.3.14", + "version": "v3.3.15", "source": { "type": "git", "url": "https://github.com/filamentphp/actions.git", - "reference": "08caa8dec43ebf4192dcd999cca786656a3dbc90" + "reference": "66b509aa72fa882ce91218eb743684a9350bc3fb" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/filamentphp/actions/zipball/08caa8dec43ebf4192dcd999cca786656a3dbc90", - "reference": "08caa8dec43ebf4192dcd999cca786656a3dbc90", + "url": "https://api.github.com/repos/filamentphp/actions/zipball/66b509aa72fa882ce91218eb743684a9350bc3fb", + "reference": "66b509aa72fa882ce91218eb743684a9350bc3fb", "shasum": "" }, "require": { @@ -3010,20 +3010,20 @@ "issues": "https://github.com/filamentphp/filament/issues", "source": "https://github.com/filamentphp/filament" }, - "time": "2025-04-30T09:16:43+00:00" + "time": "2025-05-19T07:25:24+00:00" }, { "name": "filament/filament", - "version": "v3.3.14", + "version": "v3.3.15", "source": { "type": "git", "url": "https://github.com/filamentphp/panels.git", - "reference": "2c4783bdd973967cc2dbc2dc518c70b04839ace3" + "reference": "bc83f6ca48340cc4127994687be121462fed9b7a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/filamentphp/panels/zipball/2c4783bdd973967cc2dbc2dc518c70b04839ace3", - "reference": "2c4783bdd973967cc2dbc2dc518c70b04839ace3", + "url": "https://api.github.com/repos/filamentphp/panels/zipball/bc83f6ca48340cc4127994687be121462fed9b7a", + "reference": "bc83f6ca48340cc4127994687be121462fed9b7a", "shasum": "" }, "require": { @@ -3075,20 +3075,20 @@ "issues": "https://github.com/filamentphp/filament/issues", "source": "https://github.com/filamentphp/filament" }, - "time": "2025-04-30T09:16:38+00:00" + "time": "2025-05-19T07:26:37+00:00" }, { "name": "filament/forms", - "version": "v3.3.14", + "version": "v3.3.15", "source": { "type": "git", "url": "https://github.com/filamentphp/forms.git", - "reference": "22e62dc2b4c68018e9846aadf7e8c5310d0e38cf" + "reference": "0e46d1d14e6f30a57dd85103d2b07aff52a75a5a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/filamentphp/forms/zipball/22e62dc2b4c68018e9846aadf7e8c5310d0e38cf", - "reference": "22e62dc2b4c68018e9846aadf7e8c5310d0e38cf", + "url": "https://api.github.com/repos/filamentphp/forms/zipball/0e46d1d14e6f30a57dd85103d2b07aff52a75a5a", + "reference": "0e46d1d14e6f30a57dd85103d2b07aff52a75a5a", "shasum": "" }, "require": { @@ -3131,11 +3131,11 @@ "issues": "https://github.com/filamentphp/filament/issues", "source": "https://github.com/filamentphp/filament" }, - "time": "2025-04-30T09:16:39+00:00" + "time": "2025-05-19T07:26:45+00:00" }, { "name": "filament/infolists", - "version": "v3.3.14", + "version": "v3.3.15", "source": { "type": "git", "url": "https://github.com/filamentphp/infolists.git", @@ -3186,7 +3186,7 @@ }, { "name": "filament/notifications", - "version": "v3.3.14", + "version": "v3.3.15", "source": { "type": "git", "url": "https://github.com/filamentphp/notifications.git", @@ -3238,7 +3238,7 @@ }, { "name": "filament/spatie-laravel-media-library-plugin", - "version": "v3.3.14", + "version": "v3.3.15", "source": { "type": "git", "url": "https://github.com/filamentphp/spatie-laravel-media-library-plugin.git", @@ -3275,7 +3275,7 @@ }, { "name": "filament/spatie-laravel-translatable-plugin", - "version": "v3.3.14", + "version": "v3.3.15", "source": { "type": "git", "url": "https://github.com/filamentphp/spatie-laravel-translatable-plugin.git", @@ -3320,7 +3320,7 @@ }, { "name": "filament/support", - "version": "v3.3.14", + "version": "v3.3.15", "source": { "type": "git", "url": "https://github.com/filamentphp/support.git", @@ -3379,16 +3379,16 @@ }, { "name": "filament/tables", - "version": "v3.3.14", + "version": "v3.3.15", "source": { "type": "git", "url": "https://github.com/filamentphp/tables.git", - "reference": "bb5fad7306c39fdbb08d97982073114ac465bf92" + "reference": "64806e3c13caeabb23a8668a7aaf1efc8395df96" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/filamentphp/tables/zipball/bb5fad7306c39fdbb08d97982073114ac465bf92", - "reference": "bb5fad7306c39fdbb08d97982073114ac465bf92", + "url": "https://api.github.com/repos/filamentphp/tables/zipball/64806e3c13caeabb23a8668a7aaf1efc8395df96", + "reference": "64806e3c13caeabb23a8668a7aaf1efc8395df96", "shasum": "" }, "require": { @@ -3427,11 +3427,11 @@ "issues": "https://github.com/filamentphp/filament/issues", "source": "https://github.com/filamentphp/filament" }, - "time": "2025-04-30T09:16:33+00:00" + "time": "2025-05-19T07:26:42+00:00" }, { "name": "filament/widgets", - "version": "v3.3.14", + "version": "v3.3.15", "source": { "type": "git", "url": "https://github.com/filamentphp/widgets.git", @@ -3536,80 +3536,6 @@ }, "time": "2025-04-09T20:32:01+00:00" }, - { - "name": "flowframe/laravel-trend", - "version": "v0.3.0", - "source": { - "type": "git", - "url": "https://github.com/Flowframe/laravel-trend.git", - "reference": "391849c27a1d4791efae930746a51d982820bd3a" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/Flowframe/laravel-trend/zipball/391849c27a1d4791efae930746a51d982820bd3a", - "reference": "391849c27a1d4791efae930746a51d982820bd3a", - "shasum": "" - }, - "require": { - "illuminate/contracts": "^8.37|^9|^10.0|^11.0", - "php": "^8.2", - "spatie/laravel-package-tools": "^1.4.3" - }, - "require-dev": { - "nunomaduro/collision": "^5.3|^6.1|^8.0", - "orchestra/testbench": "^6.15|^7.0|^8.0|^9.0", - "pestphp/pest": "^1.18|^2.34", - "pestphp/pest-plugin-laravel": "^1.1|^2.3", - "spatie/laravel-ray": "^1.23", - "vimeo/psalm": "^4.8|^5.6" - }, - "type": "library", - "extra": { - "laravel": { - "aliases": { - "Trend": "Flowframe\\Trend\\TrendFacade" - }, - "providers": [ - "Flowframe\\Trend\\TrendServiceProvider" - ] - } - }, - "autoload": { - "psr-4": { - "Flowframe\\Trend\\": "src", - "Flowframe\\Trend\\Database\\Factories\\": "database/factories" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Lars Klopstra", - "email": "lars@flowframe.nl", - "role": "Developer" - } - ], - "description": "Easily generate model trends", - "homepage": "https://github.com/flowframe/laravel-trend", - "keywords": [ - "Flowframe", - "laravel", - "laravel-trend" - ], - "support": { - "issues": "https://github.com/Flowframe/laravel-trend/issues", - "source": "https://github.com/Flowframe/laravel-trend/tree/v0.3.0" - }, - "funding": [ - { - "url": "https://github.com/larsklopstra", - "type": "github" - } - ], - "time": "2024-09-27T09:20:30+00:00" - }, { "name": "fruitcake/php-cors", "version": "v1.3.0", @@ -3826,21 +3752,21 @@ }, { "name": "geoip2/geoip2", - "version": "v3.1.0", + "version": "v3.2.0", "source": { "type": "git", "url": "https://github.com/maxmind/GeoIP2-php.git", - "reference": "c86fbeaa7e42279dd9e7af0b015384e721832b88" + "reference": "b7aa58760a6bf89a608dd92ee2d9436b52557ce2" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/maxmind/GeoIP2-php/zipball/c86fbeaa7e42279dd9e7af0b015384e721832b88", - "reference": "c86fbeaa7e42279dd9e7af0b015384e721832b88", + "url": "https://api.github.com/repos/maxmind/GeoIP2-php/zipball/b7aa58760a6bf89a608dd92ee2d9436b52557ce2", + "reference": "b7aa58760a6bf89a608dd92ee2d9436b52557ce2", "shasum": "" }, "require": { "ext-json": "*", - "maxmind-db/reader": "^1.12.0", + "maxmind-db/reader": "^1.12.1", "maxmind/web-service-common": "~0.10", "php": ">=8.1" }, @@ -3878,22 +3804,22 @@ ], "support": { "issues": "https://github.com/maxmind/GeoIP2-php/issues", - "source": "https://github.com/maxmind/GeoIP2-php/tree/v3.1.0" + "source": "https://github.com/maxmind/GeoIP2-php/tree/v3.2.0" }, - "time": "2024-11-15T16:33:31+00:00" + "time": "2025-05-05T21:18:27+00:00" }, { "name": "giggsey/libphonenumber-for-php-lite", - "version": "9.0.4", + "version": "9.0.5", "source": { "type": "git", "url": "https://github.com/giggsey/libphonenumber-for-php-lite.git", - "reference": "6b36e32fddce37738c4f6df66e49dd9a2475841c" + "reference": "342981f32855240387c44790a4d92ec8ae3153ca" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/giggsey/libphonenumber-for-php-lite/zipball/6b36e32fddce37738c4f6df66e49dd9a2475841c", - "reference": "6b36e32fddce37738c4f6df66e49dd9a2475841c", + "url": "https://api.github.com/repos/giggsey/libphonenumber-for-php-lite/zipball/342981f32855240387c44790a4d92ec8ae3153ca", + "reference": "342981f32855240387c44790a4d92ec8ae3153ca", "shasum": "" }, "require": { @@ -3958,35 +3884,35 @@ "issues": "https://github.com/giggsey/libphonenumber-for-php-lite/issues", "source": "https://github.com/giggsey/libphonenumber-for-php-lite" }, - "time": "2025-04-28T07:26:55+00:00" + "time": "2025-05-08T07:10:02+00:00" }, { "name": "graham-campbell/markdown", - "version": "v15.3.0", + "version": "v16.0.0", "source": { "type": "git", "url": "https://github.com/GrahamCampbell/Laravel-Markdown.git", - "reference": "042c23ddc5bde61ed09b77a8a17119d70c8e8419" + "reference": "040221ff01f167fbe53a047b0e9ac15cbb3b6d79" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/GrahamCampbell/Laravel-Markdown/zipball/042c23ddc5bde61ed09b77a8a17119d70c8e8419", - "reference": "042c23ddc5bde61ed09b77a8a17119d70c8e8419", + "url": "https://api.github.com/repos/GrahamCampbell/Laravel-Markdown/zipball/040221ff01f167fbe53a047b0e9ac15cbb3b6d79", + "reference": "040221ff01f167fbe53a047b0e9ac15cbb3b6d79", "shasum": "" }, "require": { - "illuminate/contracts": "^8.75 || ^9.0 || ^10.0 || ^11.0", - "illuminate/filesystem": "^8.75 || ^9.0 || ^10.0 || ^11.0", - "illuminate/support": "^8.75 || ^9.0 || ^10.0 || ^11.0", - "illuminate/view": "^8.75 || ^9.0 || ^10.0 || ^11.0", + "illuminate/contracts": "^10.44 || ^11.0 || ^12.0", + "illuminate/filesystem": "^10.44 || ^11.0 || ^12.0", + "illuminate/support": "^10.44 || ^11.0 || ^12.0", + "illuminate/view": "^10.44 || ^11.0 || ^12.0", "league/commonmark": "^2.6.1", - "php": "^7.4.15 || ^8.0.2" + "php": "^8.1" }, "require-dev": { - "graham-campbell/analyzer": "^4.2.1", + "graham-campbell/analyzer": "^5.0", "graham-campbell/testbench": "^6.2", "mockery/mockery": "^1.6.6", - "phpunit/phpunit": "^9.6.17 || ^10.5.13" + "phpunit/phpunit": "^10.5.45 || ^11.5.10" }, "type": "library", "extra": { @@ -4026,7 +3952,7 @@ ], "support": { "issues": "https://github.com/GrahamCampbell/Laravel-Markdown/issues", - "source": "https://github.com/GrahamCampbell/Laravel-Markdown/tree/v15.3.0" + "source": "https://github.com/GrahamCampbell/Laravel-Markdown/tree/v16.0.0" }, "funding": [ { @@ -4038,7 +3964,7 @@ "type": "tidelift" } ], - "time": "2025-03-02T22:13:22+00:00" + "time": "2025-03-02T23:41:30+00:00" }, { "name": "graham-campbell/result-type", @@ -4913,16 +4839,16 @@ }, { "name": "kirschbaum-development/eloquent-power-joins", - "version": "4.2.3", + "version": "4.2.4", "source": { "type": "git", "url": "https://github.com/kirschbaum-development/eloquent-power-joins.git", - "reference": "d04e06b12e5e7864c303b8a8c6045bfcd4e2c641" + "reference": "4a8012cef7abed8ac3633a180c69138a228b6c4c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/kirschbaum-development/eloquent-power-joins/zipball/d04e06b12e5e7864c303b8a8c6045bfcd4e2c641", - "reference": "d04e06b12e5e7864c303b8a8c6045bfcd4e2c641", + "url": "https://api.github.com/repos/kirschbaum-development/eloquent-power-joins/zipball/4a8012cef7abed8ac3633a180c69138a228b6c4c", + "reference": "4a8012cef7abed8ac3633a180c69138a228b6c4c", "shasum": "" }, "require": { @@ -4970,9 +4896,9 @@ ], "support": { "issues": "https://github.com/kirschbaum-development/eloquent-power-joins/issues", - "source": "https://github.com/kirschbaum-development/eloquent-power-joins/tree/4.2.3" + "source": "https://github.com/kirschbaum-development/eloquent-power-joins/tree/4.2.4" }, - "time": "2025-04-01T14:41:56+00:00" + "time": "2025-05-19T14:14:41+00:00" }, { "name": "kylewm/brevity", @@ -5016,36 +4942,35 @@ }, { "name": "laravel-notification-channels/telegram", - "version": "5.0.0", + "version": "6.0.0", "source": { "type": "git", "url": "https://github.com/laravel-notification-channels/telegram.git", - "reference": "d647f0ab28c7717ef85c0c843e95f25b1c7dc498" + "reference": "289eb825f6c918b21bbda19bffb900d882c9647a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/laravel-notification-channels/telegram/zipball/d647f0ab28c7717ef85c0c843e95f25b1c7dc498", - "reference": "d647f0ab28c7717ef85c0c843e95f25b1c7dc498", + "url": "https://api.github.com/repos/laravel-notification-channels/telegram/zipball/289eb825f6c918b21bbda19bffb900d882c9647a", + "reference": "289eb825f6c918b21bbda19bffb900d882c9647a", "shasum": "" }, "require": { "ext-json": "*", - "guzzlehttp/guzzle": "^7.2", - "illuminate/contracts": "^10 || ^11.0", - "illuminate/notifications": "^10 || ^11.0", - "illuminate/support": "^10 || ^11.0", - "php": "^8.1" + "guzzlehttp/guzzle": "^7.8", + "illuminate/contracts": "^11.0 || ^12.0", + "illuminate/notifications": "^11.0 || ^12.0", + "illuminate/support": "^11.0 || ^12.0", + "php": "^8.2" }, "require-dev": { - "larastan/larastan": "^2.9", + "larastan/larastan": "^3.0", "mockery/mockery": "^1.4.4", - "orchestra/testbench": "^8.0 || ^9.0", - "pestphp/pest": "^2.34", - "pestphp/pest-plugin-laravel": "^2.3", + "orchestra/testbench": "^10.0", + "pestphp/pest": "^3.0", + "pestphp/pest-plugin-laravel": "^3.0", "phpstan/extension-installer": "^1.2", - "phpstan/phpstan-deprecation-rules": "^1.1", - "phpstan/phpstan-phpunit": "^1.3", - "phpunit/phpunit": "^10.5 || ^11.0" + "phpstan/phpstan-deprecation-rules": "^2.0", + "phpstan/phpstan-phpunit": "^2.0" }, "type": "library", "extra": { @@ -5083,9 +5008,9 @@ ], "support": { "issues": "https://github.com/laravel-notification-channels/telegram/issues", - "source": "https://github.com/laravel-notification-channels/telegram/tree/5.0.0" + "source": "https://github.com/laravel-notification-channels/telegram/tree/6.0.0" }, - "time": "2024-03-12T05:47:13+00:00" + "time": "2025-02-25T22:59:13+00:00" }, { "name": "laravel-notification-channels/twitter", @@ -5150,20 +5075,20 @@ }, { "name": "laravel/framework", - "version": "v11.44.7", + "version": "v12.14.1", "source": { "type": "git", "url": "https://github.com/laravel/framework.git", - "reference": "00bc6ac91a6d577bf051c18ddaa638c0d221e1c7" + "reference": "84b142958d1638a7e89de94ce75c2821c601d3d7" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/laravel/framework/zipball/00bc6ac91a6d577bf051c18ddaa638c0d221e1c7", - "reference": "00bc6ac91a6d577bf051c18ddaa638c0d221e1c7", + "url": "https://api.github.com/repos/laravel/framework/zipball/84b142958d1638a7e89de94ce75c2821c601d3d7", + "reference": "84b142958d1638a7e89de94ce75c2821c601d3d7", "shasum": "" }, "require": { - "brick/math": "^0.9.3|^0.10.2|^0.11|^0.12", + "brick/math": "^0.11|^0.12", "composer-runtime-api": "^2.2", "doctrine/inflector": "^2.0.5", "dragonmantank/cron-expression": "^3.4", @@ -5178,32 +5103,32 @@ "fruitcake/php-cors": "^1.3", "guzzlehttp/guzzle": "^7.8.2", "guzzlehttp/uri-template": "^1.0", - "laravel/prompts": "^0.1.18|^0.2.0|^0.3.0", + "laravel/prompts": "^0.3.0", "laravel/serializable-closure": "^1.3|^2.0", - "league/commonmark": "^2.6", + "league/commonmark": "^2.7", "league/flysystem": "^3.25.1", "league/flysystem-local": "^3.25.1", "league/uri": "^7.5.1", "monolog/monolog": "^3.0", - "nesbot/carbon": "^2.72.6|^3.8.4", + "nesbot/carbon": "^3.8.4", "nunomaduro/termwind": "^2.0", "php": "^8.2", "psr/container": "^1.1.1|^2.0.1", "psr/log": "^1.0|^2.0|^3.0", "psr/simple-cache": "^1.0|^2.0|^3.0", "ramsey/uuid": "^4.7", - "symfony/console": "^7.0.3", - "symfony/error-handler": "^7.0.3", - "symfony/finder": "^7.0.3", + "symfony/console": "^7.2.0", + "symfony/error-handler": "^7.2.0", + "symfony/finder": "^7.2.0", "symfony/http-foundation": "^7.2.0", - "symfony/http-kernel": "^7.0.3", - "symfony/mailer": "^7.0.3", - "symfony/mime": "^7.0.3", + "symfony/http-kernel": "^7.2.0", + "symfony/mailer": "^7.2.0", + "symfony/mime": "^7.2.0", "symfony/polyfill-php83": "^1.31", - "symfony/process": "^7.0.3", - "symfony/routing": "^7.0.3", - "symfony/uid": "^7.0.3", - "symfony/var-dumper": "^7.0.3", + "symfony/process": "^7.2.0", + "symfony/routing": "^7.2.0", + "symfony/uid": "^7.2.0", + "symfony/var-dumper": "^7.2.0", "tijsverkoyen/css-to-inline-styles": "^2.2.5", "vlucas/phpdotenv": "^5.6.1", "voku/portable-ascii": "^2.0.2" @@ -5267,17 +5192,17 @@ "league/flysystem-read-only": "^3.25.1", "league/flysystem-sftp-v3": "^3.25.1", "mockery/mockery": "^1.6.10", - "orchestra/testbench-core": "^9.11.2", - "pda/pheanstalk": "^5.0.6", + "orchestra/testbench-core": "^10.0.0", + "pda/pheanstalk": "^5.0.6|^7.0.0", "php-http/discovery": "^1.15", "phpstan/phpstan": "^2.0", - "phpunit/phpunit": "^10.5.35|^11.3.6|^12.0.1", - "predis/predis": "^2.3", + "phpunit/phpunit": "^10.5.35|^11.5.3|^12.0.1", + "predis/predis": "^2.3|^3.0", "resend/resend-php": "^0.10.0", - "symfony/cache": "^7.0.3", - "symfony/http-client": "^7.0.3", - "symfony/psr-http-message-bridge": "^7.0.3", - "symfony/translation": "^7.0.3" + "symfony/cache": "^7.2.0", + "symfony/http-client": "^7.2.0", + "symfony/psr-http-message-bridge": "^7.2.0", + "symfony/translation": "^7.2.0" }, "suggest": { "ably/ably-php": "Required to use the Ably broadcast driver (^1.0).", @@ -5303,22 +5228,22 @@ "mockery/mockery": "Required to use mocking (^1.6).", "pda/pheanstalk": "Required to use the beanstalk queue driver (^5.0).", "php-http/discovery": "Required to use PSR-7 bridging features (^1.15).", - "phpunit/phpunit": "Required to use assertions and run tests (^10.5.35|^11.3.6|^12.0.1).", - "predis/predis": "Required to use the predis connector (^2.3).", + "phpunit/phpunit": "Required to use assertions and run tests (^10.5.35|^11.5.3|^12.0.1).", + "predis/predis": "Required to use the predis connector (^2.3|^3.0).", "psr/http-message": "Required to allow Storage::put to accept a StreamInterface (^1.0).", "pusher/pusher-php-server": "Required to use the Pusher broadcast driver (^6.0|^7.0).", "resend/resend-php": "Required to enable support for the Resend mail transport (^0.10.0).", - "symfony/cache": "Required to PSR-6 cache bridge (^7.0).", - "symfony/filesystem": "Required to enable support for relative symbolic links (^7.0).", - "symfony/http-client": "Required to enable support for the Symfony API mail transports (^7.0).", - "symfony/mailgun-mailer": "Required to enable support for the Mailgun mail transport (^7.0).", - "symfony/postmark-mailer": "Required to enable support for the Postmark mail transport (^7.0).", - "symfony/psr-http-message-bridge": "Required to use PSR-7 bridging features (^7.0)." + "symfony/cache": "Required to PSR-6 cache bridge (^7.2).", + "symfony/filesystem": "Required to enable support for relative symbolic links (^7.2).", + "symfony/http-client": "Required to enable support for the Symfony API mail transports (^7.2).", + "symfony/mailgun-mailer": "Required to enable support for the Mailgun mail transport (^7.2).", + "symfony/postmark-mailer": "Required to enable support for the Postmark mail transport (^7.2).", + "symfony/psr-http-message-bridge": "Required to use PSR-7 bridging features (^7.2)." }, "type": "library", "extra": { "branch-alias": { - "dev-master": "11.x-dev" + "dev-master": "12.x-dev" } }, "autoload": { @@ -5361,7 +5286,7 @@ "issues": "https://github.com/laravel/framework/issues", "source": "https://github.com/laravel/framework" }, - "time": "2025-04-25T12:40:47+00:00" + "time": "2025-05-13T17:50:51+00:00" }, { "name": "laravel/helpers", @@ -5479,70 +5404,6 @@ }, "time": "2025-02-11T13:34:40+00:00" }, - { - "name": "laravel/sanctum", - "version": "v4.1.1", - "source": { - "type": "git", - "url": "https://github.com/laravel/sanctum.git", - "reference": "a360a6a1fd2400ead4eb9b6a9c1bb272939194f5" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/laravel/sanctum/zipball/a360a6a1fd2400ead4eb9b6a9c1bb272939194f5", - "reference": "a360a6a1fd2400ead4eb9b6a9c1bb272939194f5", - "shasum": "" - }, - "require": { - "ext-json": "*", - "illuminate/console": "^11.0|^12.0", - "illuminate/contracts": "^11.0|^12.0", - "illuminate/database": "^11.0|^12.0", - "illuminate/support": "^11.0|^12.0", - "php": "^8.2", - "symfony/console": "^7.0" - }, - "require-dev": { - "mockery/mockery": "^1.6", - "orchestra/testbench": "^9.0|^10.0", - "phpstan/phpstan": "^1.10", - "phpunit/phpunit": "^11.3" - }, - "type": "library", - "extra": { - "laravel": { - "providers": [ - "Laravel\\Sanctum\\SanctumServiceProvider" - ] - } - }, - "autoload": { - "psr-4": { - "Laravel\\Sanctum\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Taylor Otwell", - "email": "taylor@laravel.com" - } - ], - "description": "Laravel Sanctum provides a featherweight authentication system for SPAs and simple APIs.", - "keywords": [ - "auth", - "laravel", - "sanctum" - ], - "support": { - "issues": "https://github.com/laravel/sanctum/issues", - "source": "https://github.com/laravel/sanctum" - }, - "time": "2025-04-23T13:03:38+00:00" - }, { "name": "laravel/serializable-closure", "version": "v2.0.4", @@ -7020,16 +6881,16 @@ }, { "name": "maxmind-db/reader", - "version": "v1.12.0", + "version": "v1.12.1", "source": { "type": "git", "url": "https://github.com/maxmind/MaxMind-DB-Reader-php.git", - "reference": "5b2d7a721dedfaef9dc20822c5fe7d26f9f8eb90" + "reference": "815939e006b7e68062b540ec9e86aaa8be2b6ce4" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/maxmind/MaxMind-DB-Reader-php/zipball/5b2d7a721dedfaef9dc20822c5fe7d26f9f8eb90", - "reference": "5b2d7a721dedfaef9dc20822c5fe7d26f9f8eb90", + "url": "https://api.github.com/repos/maxmind/MaxMind-DB-Reader-php/zipball/815939e006b7e68062b540ec9e86aaa8be2b6ce4", + "reference": "815939e006b7e68062b540ec9e86aaa8be2b6ce4", "shasum": "" }, "require": { @@ -7077,9 +6938,9 @@ ], "support": { "issues": "https://github.com/maxmind/MaxMind-DB-Reader-php/issues", - "source": "https://github.com/maxmind/MaxMind-DB-Reader-php/tree/v1.12.0" + "source": "https://github.com/maxmind/MaxMind-DB-Reader-php/tree/v1.12.1" }, - "time": "2024-11-14T22:43:47+00:00" + "time": "2025-05-05T20:56:32+00:00" }, { "name": "maxmind/web-service-common", @@ -7805,31 +7666,31 @@ }, { "name": "nunomaduro/termwind", - "version": "v2.3.0", + "version": "v2.3.1", "source": { "type": "git", "url": "https://github.com/nunomaduro/termwind.git", - "reference": "52915afe6a1044e8b9cee1bcff836fb63acf9cda" + "reference": "dfa08f390e509967a15c22493dc0bac5733d9123" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/nunomaduro/termwind/zipball/52915afe6a1044e8b9cee1bcff836fb63acf9cda", - "reference": "52915afe6a1044e8b9cee1bcff836fb63acf9cda", + "url": "https://api.github.com/repos/nunomaduro/termwind/zipball/dfa08f390e509967a15c22493dc0bac5733d9123", + "reference": "dfa08f390e509967a15c22493dc0bac5733d9123", "shasum": "" }, "require": { "ext-mbstring": "*", "php": "^8.2", - "symfony/console": "^7.1.8" + "symfony/console": "^7.2.6" }, "require-dev": { - "illuminate/console": "^11.33.2", - "laravel/pint": "^1.18.2", + "illuminate/console": "^11.44.7", + "laravel/pint": "^1.22.0", "mockery/mockery": "^1.6.12", - "pestphp/pest": "^2.36.0", - "phpstan/phpstan": "^1.12.11", - "phpstan/phpstan-strict-rules": "^1.6.1", - "symfony/var-dumper": "^7.1.8", + "pestphp/pest": "^2.36.0 || ^3.8.2", + "phpstan/phpstan": "^1.12.25", + "phpstan/phpstan-strict-rules": "^1.6.2", + "symfony/var-dumper": "^7.2.6", "thecodingmachine/phpstan-strict-rules": "^1.0.0" }, "type": "library", @@ -7872,7 +7733,7 @@ ], "support": { "issues": "https://github.com/nunomaduro/termwind/issues", - "source": "https://github.com/nunomaduro/termwind/tree/v2.3.0" + "source": "https://github.com/nunomaduro/termwind/tree/v2.3.1" }, "funding": [ { @@ -7888,7 +7749,7 @@ "type": "github" } ], - "time": "2024-11-21T10:39:51+00:00" + "time": "2025-05-08T08:14:37+00:00" }, { "name": "nyholm/psr7", @@ -9943,16 +9804,16 @@ }, { "name": "sentry/sentry", - "version": "4.11.0", + "version": "4.11.1", "source": { "type": "git", "url": "https://github.com/getsentry/sentry-php.git", - "reference": "ebf67deb9902b6da58a4b3383cbd12fed3f4f555" + "reference": "53dc0bcb6a667cac5b760b46f98d5380e63e02ca" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/getsentry/sentry-php/zipball/ebf67deb9902b6da58a4b3383cbd12fed3f4f555", - "reference": "ebf67deb9902b6da58a4b3383cbd12fed3f4f555", + "url": "https://api.github.com/repos/getsentry/sentry-php/zipball/53dc0bcb6a667cac5b760b46f98d5380e63e02ca", + "reference": "53dc0bcb6a667cac5b760b46f98d5380e63e02ca", "shasum": "" }, "require": { @@ -10016,7 +9877,7 @@ ], "support": { "issues": "https://github.com/getsentry/sentry-php/issues", - "source": "https://github.com/getsentry/sentry-php/tree/4.11.0" + "source": "https://github.com/getsentry/sentry-php/tree/4.11.1" }, "funding": [ { @@ -10028,7 +9889,7 @@ "type": "custom" } ], - "time": "2025-04-14T09:04:23+00:00" + "time": "2025-05-12T11:30:33+00:00" }, { "name": "sentry/sentry-laravel", @@ -10121,16 +9982,16 @@ }, { "name": "spatie/browsershot", - "version": "5.0.9", + "version": "5.0.10", "source": { "type": "git", "url": "https://github.com/spatie/browsershot.git", - "reference": "667b40b2a283486a7a1fc9208221e0d0471ac3e6" + "reference": "9e5ae15487b3cdc3eb03318c1c8ac38971f60e58" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/spatie/browsershot/zipball/667b40b2a283486a7a1fc9208221e0d0471ac3e6", - "reference": "667b40b2a283486a7a1fc9208221e0d0471ac3e6", + "url": "https://api.github.com/repos/spatie/browsershot/zipball/9e5ae15487b3cdc3eb03318c1c8ac38971f60e58", + "reference": "9e5ae15487b3cdc3eb03318c1c8ac38971f60e58", "shasum": "" }, "require": { @@ -10177,7 +10038,7 @@ "webpage" ], "support": { - "source": "https://github.com/spatie/browsershot/tree/5.0.9" + "source": "https://github.com/spatie/browsershot/tree/5.0.10" }, "funding": [ { @@ -10185,7 +10046,7 @@ "type": "github" } ], - "time": "2025-04-28T08:54:51+00:00" + "time": "2025-05-15T07:10:57+00:00" }, { "name": "spatie/color", @@ -11004,16 +10865,16 @@ }, { "name": "spatie/laravel-permission", - "version": "6.17.0", + "version": "6.18.0", "source": { "type": "git", "url": "https://github.com/spatie/laravel-permission.git", - "reference": "02ada8f638b643713fa2fb543384738e27346ddb" + "reference": "3c05f04d12275dfbe462c8b4aae3290e586c2dde" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/spatie/laravel-permission/zipball/02ada8f638b643713fa2fb543384738e27346ddb", - "reference": "02ada8f638b643713fa2fb543384738e27346ddb", + "url": "https://api.github.com/repos/spatie/laravel-permission/zipball/3c05f04d12275dfbe462c8b4aae3290e586c2dde", + "reference": "3c05f04d12275dfbe462c8b4aae3290e586c2dde", "shasum": "" }, "require": { @@ -11075,7 +10936,7 @@ ], "support": { "issues": "https://github.com/spatie/laravel-permission/issues", - "source": "https://github.com/spatie/laravel-permission/tree/6.17.0" + "source": "https://github.com/spatie/laravel-permission/tree/6.18.0" }, "funding": [ { @@ -11083,7 +10944,7 @@ "type": "github" } ], - "time": "2025-04-08T15:06:14+00:00" + "time": "2025-05-14T03:32:23+00:00" }, { "name": "spatie/laravel-sitemap", @@ -12365,179 +12226,6 @@ ], "time": "2025-03-31T08:29:03+00:00" }, - { - "name": "symfony/http-client", - "version": "v7.2.4", - "source": { - "type": "git", - "url": "https://github.com/symfony/http-client.git", - "reference": "78981a2ffef6437ed92d4d7e2a86a82f256c6dc6" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/symfony/http-client/zipball/78981a2ffef6437ed92d4d7e2a86a82f256c6dc6", - "reference": "78981a2ffef6437ed92d4d7e2a86a82f256c6dc6", - "shasum": "" - }, - "require": { - "php": ">=8.2", - "psr/log": "^1|^2|^3", - "symfony/deprecation-contracts": "^2.5|^3", - "symfony/http-client-contracts": "~3.4.4|^3.5.2", - "symfony/service-contracts": "^2.5|^3" - }, - "conflict": { - "amphp/amp": "<2.5", - "php-http/discovery": "<1.15", - "symfony/http-foundation": "<6.4" - }, - "provide": { - "php-http/async-client-implementation": "*", - "php-http/client-implementation": "*", - "psr/http-client-implementation": "1.0", - "symfony/http-client-implementation": "3.0" - }, - "require-dev": { - "amphp/http-client": "^4.2.1|^5.0", - "amphp/http-tunnel": "^1.0|^2.0", - "amphp/socket": "^1.1", - "guzzlehttp/promises": "^1.4|^2.0", - "nyholm/psr7": "^1.0", - "php-http/httplug": "^1.0|^2.0", - "psr/http-client": "^1.0", - "symfony/amphp-http-client-meta": "^1.0|^2.0", - "symfony/dependency-injection": "^6.4|^7.0", - "symfony/http-kernel": "^6.4|^7.0", - "symfony/messenger": "^6.4|^7.0", - "symfony/process": "^6.4|^7.0", - "symfony/rate-limiter": "^6.4|^7.0", - "symfony/stopwatch": "^6.4|^7.0" - }, - "type": "library", - "autoload": { - "psr-4": { - "Symfony\\Component\\HttpClient\\": "" - }, - "exclude-from-classmap": [ - "/Tests/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Nicolas Grekas", - "email": "p@tchwork.com" - }, - { - "name": "Symfony Community", - "homepage": "https://symfony.com/contributors" - } - ], - "description": "Provides powerful methods to fetch HTTP resources synchronously or asynchronously", - "homepage": "https://symfony.com", - "keywords": [ - "http" - ], - "support": { - "source": "https://github.com/symfony/http-client/tree/v7.2.4" - }, - "funding": [ - { - "url": "https://symfony.com/sponsor", - "type": "custom" - }, - { - "url": "https://github.com/fabpot", - "type": "github" - }, - { - "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", - "type": "tidelift" - } - ], - "time": "2025-02-13T10:27:23+00:00" - }, - { - "name": "symfony/http-client-contracts", - "version": "v3.5.2", - "source": { - "type": "git", - "url": "https://github.com/symfony/http-client-contracts.git", - "reference": "ee8d807ab20fcb51267fdace50fbe3494c31e645" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/symfony/http-client-contracts/zipball/ee8d807ab20fcb51267fdace50fbe3494c31e645", - "reference": "ee8d807ab20fcb51267fdace50fbe3494c31e645", - "shasum": "" - }, - "require": { - "php": ">=8.1" - }, - "type": "library", - "extra": { - "thanks": { - "url": "https://github.com/symfony/contracts", - "name": "symfony/contracts" - }, - "branch-alias": { - "dev-main": "3.5-dev" - } - }, - "autoload": { - "psr-4": { - "Symfony\\Contracts\\HttpClient\\": "" - }, - "exclude-from-classmap": [ - "/Test/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Nicolas Grekas", - "email": "p@tchwork.com" - }, - { - "name": "Symfony Community", - "homepage": "https://symfony.com/contributors" - } - ], - "description": "Generic abstractions related to HTTP clients", - "homepage": "https://symfony.com", - "keywords": [ - "abstractions", - "contracts", - "decoupling", - "interfaces", - "interoperability", - "standards" - ], - "support": { - "source": "https://github.com/symfony/http-client-contracts/tree/v3.5.2" - }, - "funding": [ - { - "url": "https://symfony.com/sponsor", - "type": "custom" - }, - { - "url": "https://github.com/fabpot", - "type": "github" - }, - { - "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", - "type": "tidelift" - } - ], - "time": "2024-12-07T08:49:48+00:00" - }, { "name": "symfony/http-foundation", "version": "v7.2.6", @@ -14824,16 +14512,16 @@ }, { "name": "vormkracht10/filament-mails", - "version": "v2.3.5", + "version": "v2.3.6", "source": { "type": "git", "url": "https://github.com/vormkracht10/filament-mails.git", - "reference": "7311be27b81a4a8292c9834f04dfac6d24f0a670" + "reference": "081179b64e8be3e15efcc37d554399c07886c387" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/vormkracht10/filament-mails/zipball/7311be27b81a4a8292c9834f04dfac6d24f0a670", - "reference": "7311be27b81a4a8292c9834f04dfac6d24f0a670", + "url": "https://api.github.com/repos/vormkracht10/filament-mails/zipball/081179b64e8be3e15efcc37d554399c07886c387", + "reference": "081179b64e8be3e15efcc37d554399c07886c387", "shasum": "" }, "require": { @@ -14898,7 +14586,7 @@ "type": "github" } ], - "time": "2025-04-08T11:07:35+00:00" + "time": "2025-05-19T16:17:22+00:00" }, { "name": "vormkracht10/laravel-mails", @@ -15826,16 +15514,16 @@ }, { "name": "laravel/pint", - "version": "v1.22.0", + "version": "v1.22.1", "source": { "type": "git", "url": "https://github.com/laravel/pint.git", - "reference": "7ddfaa6523a675fae5c4123ee38fc6bfb8ee4f36" + "reference": "941d1927c5ca420c22710e98420287169c7bcaf7" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/laravel/pint/zipball/7ddfaa6523a675fae5c4123ee38fc6bfb8ee4f36", - "reference": "7ddfaa6523a675fae5c4123ee38fc6bfb8ee4f36", + "url": "https://api.github.com/repos/laravel/pint/zipball/941d1927c5ca420c22710e98420287169c7bcaf7", + "reference": "941d1927c5ca420c22710e98420287169c7bcaf7", "shasum": "" }, "require": { @@ -15847,11 +15535,11 @@ }, "require-dev": { "friendsofphp/php-cs-fixer": "^3.75.0", - "illuminate/view": "^11.44.2", - "larastan/larastan": "^3.3.1", + "illuminate/view": "^11.44.7", + "larastan/larastan": "^3.4.0", "laravel-zero/framework": "^11.36.1", "mockery/mockery": "^1.6.12", - "nunomaduro/termwind": "^2.3", + "nunomaduro/termwind": "^2.3.1", "pestphp/pest": "^2.36.0" }, "bin": [ @@ -15888,7 +15576,7 @@ "issues": "https://github.com/laravel/pint/issues", "source": "https://github.com/laravel/pint" }, - "time": "2025-04-08T22:11:45+00:00" + "time": "2025-05-08T08:38:12+00:00" }, { "name": "mockery/mockery", @@ -16716,16 +16404,16 @@ }, { "name": "phpstan/phpstan", - "version": "2.1.14", + "version": "2.1.16", "source": { "type": "git", "url": "https://github.com/phpstan/phpstan.git", - "reference": "8f2e03099cac24ff3b379864d171c5acbfc6b9a2" + "reference": "b8c1cf533cba0c305d91c6ccd23f3dd0566ba5f9" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpstan/phpstan/zipball/8f2e03099cac24ff3b379864d171c5acbfc6b9a2", - "reference": "8f2e03099cac24ff3b379864d171c5acbfc6b9a2", + "url": "https://api.github.com/repos/phpstan/phpstan/zipball/b8c1cf533cba0c305d91c6ccd23f3dd0566ba5f9", + "reference": "b8c1cf533cba0c305d91c6ccd23f3dd0566ba5f9", "shasum": "" }, "require": { @@ -16770,7 +16458,7 @@ "type": "github" } ], - "time": "2025-05-02T15:32:28+00:00" + "time": "2025-05-16T09:40:10+00:00" }, { "name": "phpunit/php-code-coverage", @@ -18124,16 +17812,16 @@ }, { "name": "spatie/backtrace", - "version": "1.7.2", + "version": "1.7.4", "source": { "type": "git", "url": "https://github.com/spatie/backtrace.git", - "reference": "9807de6b8fecfaa5b3d10650985f0348b02862b2" + "reference": "cd37a49fce7137359ac30ecc44ef3e16404cccbe" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/spatie/backtrace/zipball/9807de6b8fecfaa5b3d10650985f0348b02862b2", - "reference": "9807de6b8fecfaa5b3d10650985f0348b02862b2", + "url": "https://api.github.com/repos/spatie/backtrace/zipball/cd37a49fce7137359ac30ecc44ef3e16404cccbe", + "reference": "cd37a49fce7137359ac30ecc44ef3e16404cccbe", "shasum": "" }, "require": { @@ -18171,7 +17859,7 @@ "spatie" ], "support": { - "source": "https://github.com/spatie/backtrace/tree/1.7.2" + "source": "https://github.com/spatie/backtrace/tree/1.7.4" }, "funding": [ { @@ -18183,7 +17871,7 @@ "type": "other" } ], - "time": "2025-04-28T14:55:53+00:00" + "time": "2025-05-08T15:41:09+00:00" }, { "name": "spatie/error-solutions", @@ -18733,7 +18421,7 @@ ], "aliases": [], "minimum-stability": "dev", - "stability-flags": [], + "stability-flags": {}, "prefer-stable": true, "prefer-lowest": false, "platform": { @@ -18741,6 +18429,6 @@ "ext-fileinfo": "*", "ext-json": "*" }, - "platform-dev": [], + "platform-dev": {}, "plugin-api-version": "2.6.0" } diff --git a/package.json b/package.json index 5f36f3e2..b6db61df 100644 --- a/package.json +++ b/package.json @@ -17,7 +17,6 @@ "alpinejs": "^3.12.0", "autoprefixer": "^10.4.16", "highlight.js": "^11.7.0", - "intl-tel-input": "^17.0.13", "laravel-vite-plugin": "^1.0.5", "lodash": "^4.17.19", "postcss": "^8.4.32", @@ -27,6 +26,6 @@ "prettier-plugin-tailwindcss": "^0.6.8", "tailwindcss": "^3.4.10", "tippy.js": "^6.3.7", - "vite": "^6.0.2" + "vite": "^6.3.5" } } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 5e1b5acc..a43ab629 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -38,12 +38,9 @@ importers: highlight.js: specifier: ^11.7.0 version: 11.11.1 - intl-tel-input: - specifier: ^17.0.13 - version: 17.0.21 laravel-vite-plugin: specifier: ^1.0.5 - version: 1.2.0(vite@6.3.0(jiti@1.21.7)(yaml@2.7.1)) + version: 1.2.0(vite@6.3.5(jiti@1.21.7)(yaml@2.7.1)) lodash: specifier: ^4.17.19 version: 4.17.21 @@ -69,8 +66,8 @@ importers: specifier: ^6.3.7 version: 6.3.7 vite: - specifier: ^6.0.2 - version: 6.3.0(jiti@1.21.7)(yaml@2.7.1) + specifier: ^6.3.5 + version: 6.3.5(jiti@1.21.7)(yaml@2.7.1) packages: @@ -829,8 +826,8 @@ packages: fastq@1.19.1: resolution: {integrity: sha512-GwLTyxkCXjXbxqIhTsMI2Nui8huMPtnxg7krajPJAjnEG/iiOS7i+zCtWGZR9G0NBKbXKh6X9m9UIsYX/N6vvQ==} - fdir@6.4.3: - resolution: {integrity: sha512-PMXmW2y1hDDfTSRc9gaXIuCCRpuoz3Kaz8cUelp3smouvfT632ozg2vrT6lJsHKKOF59YLbOGfAWGUcKEfRMQw==} + fdir@6.4.4: + resolution: {integrity: sha512-1NZP+GK4GfuAv3PqKvxQRDMjdSRZjnkq7KfhlNrCNNlZ0ygQFpebfrnfnq/W7fpUnAv9aGWmY1zKx7FYL3gwhg==} peerDependencies: picomatch: ^3 || ^4 peerDependenciesMeta: @@ -880,9 +877,6 @@ packages: resolution: {integrity: sha512-TR3KfrTZTYLPB6jUjfx6MF9WcWrHL9su5TObK4ZkYgBdWKPOFoSoQIdEuTuR82pmtxH2spWG9h6etwfr1pLBqQ==} engines: {node: '>=6'} - intl-tel-input@17.0.21: - resolution: {integrity: sha512-TfyPxLe41QZPOf6RqBxRE2dpQ0FThB/PBD/gRbxVhGW7IuYg30QD90x/vjmEo4vkZw7j8etxpVcjIZVRcG+Otw==} - is-arrayish@0.2.1: resolution: {integrity: sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==} @@ -1411,8 +1405,8 @@ packages: thenify@3.3.1: resolution: {integrity: sha512-RVZSIV5IG10Hk3enotrhvz0T9em6cyHBLkH/YAZuKqd8hRkKhSfCGIcP2KUY0EPxndzANBmNllzWPwak+bheSw==} - tinyglobby@0.2.12: - resolution: {integrity: sha512-qkf4trmKSIiMTs/E63cxH+ojC2unam7rJ0WrauAzpT3ECNTxGRMlaXxVbfxMUC/w0LaYk6jQ4y/nGR9uBO3tww==} + tinyglobby@0.2.13: + resolution: {integrity: sha512-mEwzpUgrLySlveBwEVDMKk5B57bhLPYovRfPAXD5gA/98Opn0rCDj3GtLwFvCvH5RK9uPCExUROW5NjDwvqkxw==} engines: {node: '>=12.0.0'} tippy.js@6.3.7: @@ -1437,8 +1431,8 @@ packages: vite-plugin-full-reload@1.2.0: resolution: {integrity: sha512-kz18NW79x0IHbxRSHm0jttP4zoO9P9gXh+n6UTwlNKnviTTEpOlum6oS9SmecrTtSr+muHEn5TUuC75UovQzcA==} - vite@6.3.0: - resolution: {integrity: sha512-9aC0n4pr6hIbvi1YOpFjwQ+QOTGssvbJKoeYkuHHGWwlXfdxQlI8L2qNMo9awEEcCPSiS+5mJZk5jH1PAqoDeQ==} + vite@6.3.5: + resolution: {integrity: sha512-cZn6NDFE7wdTpINgs++ZJ4N49W2vRp8LCKrn3Ob1kYNtOo21vfDoaV5GzBfLU4MovSAB8uNRm4jgzVQZ+mBzPQ==} engines: {node: ^18.0.0 || ^20.0.0 || >=22.0.0} hasBin: true peerDependencies: @@ -2145,7 +2139,7 @@ snapshots: dependencies: reusify: 1.1.0 - fdir@6.4.3(picomatch@4.0.2): + fdir@6.4.4(picomatch@4.0.2): optionalDependencies: picomatch: 4.0.2 @@ -2193,8 +2187,6 @@ snapshots: parent-module: 1.0.1 resolve-from: 4.0.0 - intl-tel-input@17.0.21: {} - is-arrayish@0.2.1: {} is-binary-path@2.1.0: @@ -2233,10 +2225,10 @@ snapshots: json-parse-even-better-errors@2.3.1: {} - laravel-vite-plugin@1.2.0(vite@6.3.0(jiti@1.21.7)(yaml@2.7.1)): + laravel-vite-plugin@1.2.0(vite@6.3.5(jiti@1.21.7)(yaml@2.7.1)): dependencies: picocolors: 1.1.1 - vite: 6.3.0(jiti@1.21.7)(yaml@2.7.1) + vite: 6.3.5(jiti@1.21.7)(yaml@2.7.1) vite-plugin-full-reload: 1.2.0 lilconfig@3.1.3: {} @@ -2721,9 +2713,9 @@ snapshots: dependencies: any-promise: 1.3.0 - tinyglobby@0.2.12: + tinyglobby@0.2.13: dependencies: - fdir: 6.4.3(picomatch@4.0.2) + fdir: 6.4.4(picomatch@4.0.2) picomatch: 4.0.2 tippy.js@6.3.7: @@ -2749,14 +2741,14 @@ snapshots: picocolors: 1.1.1 picomatch: 2.3.1 - vite@6.3.0(jiti@1.21.7)(yaml@2.7.1): + vite@6.3.5(jiti@1.21.7)(yaml@2.7.1): dependencies: esbuild: 0.25.2 - fdir: 6.4.3(picomatch@4.0.2) + fdir: 6.4.4(picomatch@4.0.2) picomatch: 4.0.2 postcss: 8.5.3 rollup: 4.40.0 - tinyglobby: 0.2.12 + tinyglobby: 0.2.13 optionalDependencies: fsevents: 2.3.3 jiti: 1.21.7 diff --git a/public/js/filament/forms/components/rich-editor.js b/public/js/filament/forms/components/rich-editor.js index 01ad26f2..a07fd6cb 100644 --- a/public/js/filament/forms/components/rich-editor.js +++ b/public/js/filament/forms/components/rich-editor.js @@ -1,4 +1,4 @@ -var po="2.1.12",Rt="[data-trix-attachment]",mi={preview:{presentation:"gallery",caption:{name:!0,size:!0}},file:{caption:{size:!0}}},W={default:{tagName:"div",parse:!1},quote:{tagName:"blockquote",nestable:!0},heading1:{tagName:"h1",terminal:!0,breakOnReturn:!0,group:!1},code:{tagName:"pre",terminal:!0,htmlAttributes:["language"],text:{plaintext:!0}},bulletList:{tagName:"ul",parse:!1},bullet:{tagName:"li",listAttribute:"bulletList",group:!1,nestable:!0,test(i){return Gi(i.parentNode)===W[this.listAttribute].tagName}},numberList:{tagName:"ol",parse:!1},number:{tagName:"li",listAttribute:"numberList",group:!1,nestable:!0,test(i){return Gi(i.parentNode)===W[this.listAttribute].tagName}},attachmentGallery:{tagName:"div",exclusive:!0,terminal:!0,parse:!1,group:!1}},Gi=i=>{var t;return i==null||(t=i.tagName)===null||t===void 0?void 0:t.toLowerCase()},$i=navigator.userAgent.match(/android\s([0-9]+.*Chrome)/i),Sn=$i&&parseInt($i[1]),xe={composesExistingText:/Android.*Chrome/.test(navigator.userAgent),recentAndroid:Sn&&Sn>12,samsungAndroid:Sn&&navigator.userAgent.match(/Android.*SM-/),forcesObjectResizing:/Trident.*rv:11/.test(navigator.userAgent),supportsInputEvents:typeof InputEvent<"u"&&["data","getTargetRanges","inputType"].every(i=>i in InputEvent.prototype)},Lr={ADD_ATTR:["language"],SAFE_FOR_XML:!1,RETURN_DOM:!0},m={attachFiles:"Attach Files",bold:"Bold",bullets:"Bullets",byte:"Byte",bytes:"Bytes",captionPlaceholder:"Add a caption\u2026",code:"Code",heading1:"Heading",indent:"Increase Level",italic:"Italic",link:"Link",numbers:"Numbers",outdent:"Decrease Level",quote:"Quote",redo:"Redo",remove:"Remove",strike:"Strikethrough",undo:"Undo",unlink:"Unlink",url:"URL",urlPlaceholder:"Enter a URL\u2026",GB:"GB",KB:"KB",MB:"MB",PB:"PB",TB:"TB"},fo=[m.bytes,m.KB,m.MB,m.GB,m.TB,m.PB],Dr={prefix:"IEC",precision:2,formatter(i){switch(i){case 0:return"0 ".concat(m.bytes);case 1:return"1 ".concat(m.byte);default:let t;this.prefix==="SI"?t=1e3:this.prefix==="IEC"&&(t=1024);let e=Math.floor(Math.log(i)/Math.log(t)),n=(i/Math.pow(t,e)).toFixed(this.precision).replace(/0*$/,"").replace(/\.$/,"");return"".concat(n," ").concat(fo[e])}}},ln="\uFEFF",ft="\xA0",Nr=function(i){for(let t in i){let e=i[t];this[t]=e}return this},pi=document.documentElement,bo=pi.matches,S=function(i){let{onElement:t,matchingSelector:e,withCallback:n,inPhase:r,preventDefault:o,times:s}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l=t||pi,c=e,u=r==="capturing",d=function(C){s!=null&&--s==0&&d.destroy();let T=vt(C.target,{matchingSelector:c});T!=null&&(n?.call(T,C,T),o&&C.preventDefault())};return d.destroy=()=>l.removeEventListener(i,d,u),l.addEventListener(i,d,u),d},he=function(i){let{onElement:t,bubbles:e,cancelable:n,attributes:r}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=t??pi;e=e!==!1,n=n!==!1;let s=document.createEvent("Events");return s.initEvent(i,e,n),r!=null&&Nr.call(s,r),o.dispatchEvent(s)},Ir=function(i,t){if(i?.nodeType===1)return bo.call(i,t)},vt=function(i){let{matchingSelector:t,untilNode:e}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};for(;i&&i.nodeType!==Node.ELEMENT_NODE;)i=i.parentNode;if(i!=null){if(t==null)return i;if(i.closest&&e==null)return i.closest(t);for(;i&&i!==e;){if(Ir(i,t))return i;i=i.parentNode}}},fi=i=>document.activeElement!==i&&kt(i,document.activeElement),kt=function(i,t){if(i&&t)for(;t;){if(t===i)return!0;t=t.parentNode}},kn=function(i){var t;if((t=i)===null||t===void 0||!t.parentNode)return;let e=0;for(i=i.previousSibling;i;)e++,i=i.previousSibling;return e},At=i=>{var t;return i==null||(t=i.parentNode)===null||t===void 0?void 0:t.removeChild(i)},je=function(i){let{onlyNodesOfType:t,usingFilter:e,expandEntityReferences:n}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=(()=>{switch(t){case"element":return NodeFilter.SHOW_ELEMENT;case"text":return NodeFilter.SHOW_TEXT;case"comment":return NodeFilter.SHOW_COMMENT;default:return NodeFilter.SHOW_ALL}})();return document.createTreeWalker(i,r,e??null,n===!0)},j=i=>{var t;return i==null||(t=i.tagName)===null||t===void 0?void 0:t.toLowerCase()},p=function(i){let t,e,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};typeof i=="object"?(n=i,i=n.tagName):n={attributes:n};let r=document.createElement(i);if(n.editable!=null&&(n.attributes==null&&(n.attributes={}),n.attributes.contenteditable=n.editable),n.attributes)for(t in n.attributes)e=n.attributes[t],r.setAttribute(t,e);if(n.style)for(t in n.style)e=n.style[t],r.style[t]=e;if(n.data)for(t in n.data)e=n.data[t],r.dataset[t]=e;return n.className&&n.className.split(" ").forEach(o=>{r.classList.add(o)}),n.textContent&&(r.textContent=n.textContent),n.childNodes&&[].concat(n.childNodes).forEach(o=>{r.appendChild(o)}),r},ie,de=function(){if(ie!=null)return ie;ie=[];for(let i in W){let t=W[i];t.tagName&&ie.push(t.tagName)}return ie},Rn=i=>Vt(i?.firstChild),Yi=function(i){let{strict:t}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{strict:!0};return t?Vt(i):Vt(i)||!Vt(i.firstChild)&&function(e){return de().includes(j(e))&&!de().includes(j(e.firstChild))}(i)},Vt=i=>vo(i)&&i?.data==="block",vo=i=>i?.nodeType===Node.COMMENT_NODE,zt=function(i){let{name:t}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(i)return ge(i)?i.data===ln?!t||i.parentNode.dataset.trixCursorTarget===t:void 0:zt(i.firstChild)},Tt=i=>Ir(i,Rt),Or=i=>ge(i)&&i?.data==="",ge=i=>i?.nodeType===Node.TEXT_NODE,bi={level2Enabled:!0,getLevel(){return this.level2Enabled&&xe.supportsInputEvents?2:0},pickFiles(i){let t=p("input",{type:"file",multiple:!0,hidden:!0,id:this.fileInputId});t.addEventListener("change",()=>{i(t.files),At(t)}),At(document.getElementById(this.fileInputId)),document.body.appendChild(t),t.click()}},Me={removeBlankTableCells:!1,tableCellSeparator:" | ",tableRowSeparator:` +var po="2.1.15",Rt="[data-trix-attachment]",mi={preview:{presentation:"gallery",caption:{name:!0,size:!0}},file:{caption:{size:!0}}},U={default:{tagName:"div",parse:!1},quote:{tagName:"blockquote",nestable:!0},heading1:{tagName:"h1",terminal:!0,breakOnReturn:!0,group:!1},code:{tagName:"pre",terminal:!0,htmlAttributes:["language"],text:{plaintext:!0}},bulletList:{tagName:"ul",parse:!1},bullet:{tagName:"li",listAttribute:"bulletList",group:!1,nestable:!0,test(i){return Gi(i.parentNode)===U[this.listAttribute].tagName}},numberList:{tagName:"ol",parse:!1},number:{tagName:"li",listAttribute:"numberList",group:!1,nestable:!0,test(i){return Gi(i.parentNode)===U[this.listAttribute].tagName}},attachmentGallery:{tagName:"div",exclusive:!0,terminal:!0,parse:!1,group:!1}},Gi=i=>{var t;return i==null||(t=i.tagName)===null||t===void 0?void 0:t.toLowerCase()},Yi=navigator.userAgent.match(/android\s([0-9]+.*Chrome)/i),Sn=Yi&&parseInt(Yi[1]),xe={composesExistingText:/Android.*Chrome/.test(navigator.userAgent),recentAndroid:Sn&&Sn>12,samsungAndroid:Sn&&navigator.userAgent.match(/Android.*SM-/),forcesObjectResizing:/Trident.*rv:11/.test(navigator.userAgent),supportsInputEvents:typeof InputEvent<"u"&&["data","getTargetRanges","inputType"].every(i=>i in InputEvent.prototype)},Lr={ADD_ATTR:["language"],SAFE_FOR_XML:!1,RETURN_DOM:!0},m={attachFiles:"Attach Files",bold:"Bold",bullets:"Bullets",byte:"Byte",bytes:"Bytes",captionPlaceholder:"Add a caption\u2026",code:"Code",heading1:"Heading",indent:"Increase Level",italic:"Italic",link:"Link",numbers:"Numbers",outdent:"Decrease Level",quote:"Quote",redo:"Redo",remove:"Remove",strike:"Strikethrough",undo:"Undo",unlink:"Unlink",url:"URL",urlPlaceholder:"Enter a URL\u2026",GB:"GB",KB:"KB",MB:"MB",PB:"PB",TB:"TB"},fo=[m.bytes,m.KB,m.MB,m.GB,m.TB,m.PB],Dr={prefix:"IEC",precision:2,formatter(i){switch(i){case 0:return"0 ".concat(m.bytes);case 1:return"1 ".concat(m.byte);default:let t;this.prefix==="SI"?t=1e3:this.prefix==="IEC"&&(t=1024);let e=Math.floor(Math.log(i)/Math.log(t)),n=(i/Math.pow(t,e)).toFixed(this.precision).replace(/0*$/,"").replace(/\.$/,"");return"".concat(n," ").concat(fo[e])}}},ln="\uFEFF",ft="\xA0",Nr=function(i){for(let t in i){let e=i[t];this[t]=e}return this},pi=document.documentElement,bo=pi.matches,S=function(i){let{onElement:t,matchingSelector:e,withCallback:n,inPhase:r,preventDefault:o,times:s}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l=t||pi,c=e,u=r==="capturing",d=function(C){s!=null&&--s==0&&d.destroy();let T=vt(C.target,{matchingSelector:c});T!=null&&(n?.call(T,C,T),o&&C.preventDefault())};return d.destroy=()=>l.removeEventListener(i,d,u),l.addEventListener(i,d,u),d},de=function(i){let{onElement:t,bubbles:e,cancelable:n,attributes:r}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=t??pi;e=e!==!1,n=n!==!1;let s=document.createEvent("Events");return s.initEvent(i,e,n),r!=null&&Nr.call(s,r),o.dispatchEvent(s)},Ir=function(i,t){if(i?.nodeType===1)return bo.call(i,t)},vt=function(i){let{matchingSelector:t,untilNode:e}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};for(;i&&i.nodeType!==Node.ELEMENT_NODE;)i=i.parentNode;if(i!=null){if(t==null)return i;if(i.closest&&e==null)return i.closest(t);for(;i&&i!==e;){if(Ir(i,t))return i;i=i.parentNode}}},fi=i=>document.activeElement!==i&&kt(i,document.activeElement),kt=function(i,t){if(i&&t)for(;t;){if(t===i)return!0;t=t.parentNode}},kn=function(i){var t;if((t=i)===null||t===void 0||!t.parentNode)return;let e=0;for(i=i.previousSibling;i;)e++,i=i.previousSibling;return e},At=i=>{var t;return i==null||(t=i.parentNode)===null||t===void 0?void 0:t.removeChild(i)},je=function(i){let{onlyNodesOfType:t,usingFilter:e,expandEntityReferences:n}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=(()=>{switch(t){case"element":return NodeFilter.SHOW_ELEMENT;case"text":return NodeFilter.SHOW_TEXT;case"comment":return NodeFilter.SHOW_COMMENT;default:return NodeFilter.SHOW_ALL}})();return document.createTreeWalker(i,r,e??null,n===!0)},W=i=>{var t;return i==null||(t=i.tagName)===null||t===void 0?void 0:t.toLowerCase()},p=function(i){let t,e,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};typeof i=="object"?(n=i,i=n.tagName):n={attributes:n};let r=document.createElement(i);if(n.editable!=null&&(n.attributes==null&&(n.attributes={}),n.attributes.contenteditable=n.editable),n.attributes)for(t in n.attributes)e=n.attributes[t],r.setAttribute(t,e);if(n.style)for(t in n.style)e=n.style[t],r.style[t]=e;if(n.data)for(t in n.data)e=n.data[t],r.dataset[t]=e;return n.className&&n.className.split(" ").forEach(o=>{r.classList.add(o)}),n.textContent&&(r.textContent=n.textContent),n.childNodes&&[].concat(n.childNodes).forEach(o=>{r.appendChild(o)}),r},re,ge=function(){if(re!=null)return re;re=[];for(let i in U){let t=U[i];t.tagName&&re.push(t.tagName)}return re},Rn=i=>Vt(i?.firstChild),$i=function(i){let{strict:t}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{strict:!0};return t?Vt(i):Vt(i)||!Vt(i.firstChild)&&function(e){return ge().includes(W(e))&&!ge().includes(W(e.firstChild))}(i)},Vt=i=>vo(i)&&i?.data==="block",vo=i=>i?.nodeType===Node.COMMENT_NODE,zt=function(i){let{name:t}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(i)return me(i)?i.data===ln?!t||i.parentNode.dataset.trixCursorTarget===t:void 0:zt(i.firstChild)},Tt=i=>Ir(i,Rt),Or=i=>me(i)&&i?.data==="",me=i=>i?.nodeType===Node.TEXT_NODE,bi={level2Enabled:!0,getLevel(){return this.level2Enabled&&xe.supportsInputEvents?2:0},pickFiles(i){let t=p("input",{type:"file",multiple:!0,hidden:!0,id:this.fileInputId});t.addEventListener("change",()=>{i(t.files),At(t)}),At(document.getElementById(this.fileInputId)),document.body.appendChild(t),t.click()}},Me={removeBlankTableCells:!1,tableCellSeparator:" | ",tableRowSeparator:` `},Dt={bold:{tagName:"strong",inheritable:!0,parser(i){let t=window.getComputedStyle(i);return t.fontWeight==="bold"||t.fontWeight>=600}},italic:{tagName:"em",inheritable:!0,parser:i=>window.getComputedStyle(i).fontStyle==="italic"},href:{groupTagName:"a",parser(i){let t="a:not(".concat(Rt,")"),e=i.closest(t);if(e)return e.getAttribute("href")}},strike:{tagName:"del",inheritable:!0},frozen:{style:{backgroundColor:"highlight"}}},Fr={getDefaultHTML:()=>`
- `)},Yn={interval:5e3},Ce=Object.freeze({__proto__:null,attachments:mi,blockAttributes:W,browser:xe,css:{attachment:"attachment",attachmentCaption:"attachment__caption",attachmentCaptionEditor:"attachment__caption-editor",attachmentMetadata:"attachment__metadata",attachmentMetadataContainer:"attachment__metadata-container",attachmentName:"attachment__name",attachmentProgress:"attachment__progress",attachmentSize:"attachment__size",attachmentToolbar:"attachment__toolbar",attachmentGallery:"attachment-gallery"},dompurify:Lr,fileSize:Dr,input:bi,keyNames:{8:"backspace",9:"tab",13:"return",27:"escape",37:"left",39:"right",46:"delete",68:"d",72:"h",79:"o"},lang:m,parser:Me,textAttributes:Dt,toolbar:Fr,undo:Yn}),R=class{static proxyMethod(t){let{name:e,toMethod:n,toProperty:r,optional:o}=Ao(t);this.prototype[e]=function(){let s,l;var c,u;return n?l=o?(c=this[n])===null||c===void 0?void 0:c.call(this):this[n]():r&&(l=this[r]),o?(s=(u=l)===null||u===void 0?void 0:u[e],s?Xi.call(s,l,arguments):void 0):(s=l[e],Xi.call(s,l,arguments))}}},Ao=function(i){let t=i.match(yo);if(!t)throw new Error("can't parse @proxyMethod expression: ".concat(i));let e={name:t[4]};return t[2]!=null?e.toMethod=t[1]:e.toProperty=t[1],t[3]!=null&&(e.optional=!0),e},{apply:Xi}=Function.prototype,yo=new RegExp("^(.+?)(\\(\\))?(\\?)?\\.(.+?)$"),Tn,wn,Ln,Nt=class extends R{static box(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return t instanceof this?t:this.fromUCS2String(t?.toString())}static fromUCS2String(t){return new this(t,Xn(t))}static fromCodepoints(t){return new this(Zn(t),t)}constructor(t,e){super(...arguments),this.ucs2String=t,this.codepoints=e,this.length=this.codepoints.length,this.ucs2Length=this.ucs2String.length}offsetToUCS2Offset(t){return Zn(this.codepoints.slice(0,Math.max(0,t))).length}offsetFromUCS2Offset(t){return Xn(this.ucs2String.slice(0,Math.max(0,t))).length}slice(){return this.constructor.fromCodepoints(this.codepoints.slice(...arguments))}charAt(t){return this.slice(t,t+1)}isEqualTo(t){return this.constructor.box(t).ucs2String===this.ucs2String}toJSON(){return this.ucs2String}getCacheKey(){return this.ucs2String}toString(){return this.ucs2String}},xo=((Tn=Array.from)===null||Tn===void 0?void 0:Tn.call(Array,"\u{1F47C}").length)===1,Co=((wn=" ".codePointAt)===null||wn===void 0?void 0:wn.call(" ",0))!=null,Eo=((Ln=String.fromCodePoint)===null||Ln===void 0?void 0:Ln.call(String,32,128124))===" \u{1F47C}",Xn,Zn;Xn=xo&&Co?i=>Array.from(i).map(t=>t.codePointAt(0)):function(i){let t=[],e=0,{length:n}=i;for(;e