This commit is contained in:
Charles 2025-07-17 06:15:47 -04:00
parent fec9c470f1
commit 6c0124f5ca
12 changed files with 223 additions and 121 deletions

View File

@ -2,7 +2,7 @@
namespace App\Extensions\Captcha\Schemas;
use Filament\Forms\Components\Component;
use Filament\Schemas\Components\Component;
use Filament\Forms\Components\TextInput;
use Illuminate\Support\Str;

View File

@ -178,7 +178,7 @@ class EditProfile extends \Filament\Auth\Pages\EditProfile
$actions[] = Action::make("oauth_$id")
->label(($unlink ? trans('profile.unlink') : trans('profile.link')) . $name)
->icon($unlink ? 'tabler-unlink' : 'tabler-link')
->color(Color::hex($schema->getHexColor()))
->color(Color::generateV3Palette($schema->getHexColor()))
->action(function (UserUpdateService $updateService) use ($id, $name, $unlink) {
if ($unlink) {
$oauth = auth()->user()->oauth;

View File

@ -111,7 +111,7 @@ class AppServiceProvider extends ServiceProvider
'primary' => Color::Blue,
'success' => Color::Green,
'warning' => Color::Amber,
'blurple' => Color::hex('#5865F2'),
'blurple' => Color::generateV3Palette('#5865F2'),
]);
FilamentView::registerRenderHook(

View File

@ -48,6 +48,7 @@
"require-dev": {
"barryvdh/laravel-ide-helper": "^3.5",
"fakerphp/faker": "^1.23.1",
"filament/upgrade": "~4.0",
"larastan/larastan": "^3.4",
"laravel/pail": "^1.2.2",
"laravel/pint": "^1.15.3",

263
composer.lock generated
View File

@ -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": "44ca5408a3688f615e50e54e06a703d6",
"content-hash": "b9e82fbc3adc61d381f2faa6c82f3155",
"packages": [
{
"name": "amphp/amp",
@ -936,16 +936,16 @@
},
{
"name": "aws/aws-sdk-php",
"version": "3.349.3",
"version": "3.351.0",
"source": {
"type": "git",
"url": "https://github.com/aws/aws-sdk-php.git",
"reference": "b2d4718786398f47626add9c29840fc416175ef2"
"reference": "a7b6ed6936317dc112531ec6f6119418e0575464"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/aws/aws-sdk-php/zipball/b2d4718786398f47626add9c29840fc416175ef2",
"reference": "b2d4718786398f47626add9c29840fc416175ef2",
"url": "https://api.github.com/repos/aws/aws-sdk-php/zipball/a7b6ed6936317dc112531ec6f6119418e0575464",
"reference": "a7b6ed6936317dc112531ec6f6119418e0575464",
"shasum": ""
},
"require": {
@ -1027,9 +1027,9 @@
"support": {
"forum": "https://github.com/aws/aws-sdk-php/discussions",
"issues": "https://github.com/aws/aws-sdk-php/issues",
"source": "https://github.com/aws/aws-sdk-php/tree/3.349.3"
"source": "https://github.com/aws/aws-sdk-php/tree/3.351.0"
},
"time": "2025-07-09T18:10:17+00:00"
"time": "2025-07-16T15:14:44+00:00"
},
{
"name": "blade-ui-kit/blade-heroicons",
@ -2474,16 +2474,16 @@
},
{
"name": "filament/actions",
"version": "v4.0.0-beta15",
"version": "v4.0.0-beta16",
"source": {
"type": "git",
"url": "https://github.com/filamentphp/actions.git",
"reference": "a3a0277b6f7fa0fb2af8c3592bc0d7ccc0919727"
"reference": "e4a245e26fc0fc4edcd607b9c37afe2394215190"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/filamentphp/actions/zipball/a3a0277b6f7fa0fb2af8c3592bc0d7ccc0919727",
"reference": "a3a0277b6f7fa0fb2af8c3592bc0d7ccc0919727",
"url": "https://api.github.com/repos/filamentphp/actions/zipball/e4a245e26fc0fc4edcd607b9c37afe2394215190",
"reference": "e4a245e26fc0fc4edcd607b9c37afe2394215190",
"shasum": ""
},
"require": {
@ -2519,20 +2519,20 @@
"issues": "https://github.com/filamentphp/filament/issues",
"source": "https://github.com/filamentphp/filament"
},
"time": "2025-07-08T21:00:13+00:00"
"time": "2025-07-16T13:41:19+00:00"
},
{
"name": "filament/filament",
"version": "v4.0.0-beta15",
"version": "v4.0.0-beta16",
"source": {
"type": "git",
"url": "https://github.com/filamentphp/panels.git",
"reference": "14e17cc6a88c1062ed6088700c5087f99dd4a4c4"
"reference": "9d7dc825da982619cea67213a1d3bcd428fe1b07"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/filamentphp/panels/zipball/14e17cc6a88c1062ed6088700c5087f99dd4a4c4",
"reference": "14e17cc6a88c1062ed6088700c5087f99dd4a4c4",
"url": "https://api.github.com/repos/filamentphp/panels/zipball/9d7dc825da982619cea67213a1d3bcd428fe1b07",
"reference": "9d7dc825da982619cea67213a1d3bcd428fe1b07",
"shasum": ""
},
"require": {
@ -2576,20 +2576,20 @@
"issues": "https://github.com/filamentphp/filament/issues",
"source": "https://github.com/filamentphp/filament"
},
"time": "2025-07-08T20:59:46+00:00"
"time": "2025-07-16T13:41:41+00:00"
},
{
"name": "filament/forms",
"version": "v4.0.0-beta15",
"version": "v4.0.0-beta16",
"source": {
"type": "git",
"url": "https://github.com/filamentphp/forms.git",
"reference": "11186d695e03a65ae4bdd83228b48f5d7074cb43"
"reference": "d77cbddb6c42e92045e40505f6f8ffc0af46b5da"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/filamentphp/forms/zipball/11186d695e03a65ae4bdd83228b48f5d7074cb43",
"reference": "11186d695e03a65ae4bdd83228b48f5d7074cb43",
"url": "https://api.github.com/repos/filamentphp/forms/zipball/d77cbddb6c42e92045e40505f6f8ffc0af46b5da",
"reference": "d77cbddb6c42e92045e40505f6f8ffc0af46b5da",
"shasum": ""
},
"require": {
@ -2626,20 +2626,20 @@
"issues": "https://github.com/filamentphp/filament/issues",
"source": "https://github.com/filamentphp/filament"
},
"time": "2025-07-08T21:00:25+00:00"
"time": "2025-07-16T13:41:20+00:00"
},
{
"name": "filament/infolists",
"version": "v4.0.0-beta15",
"version": "v4.0.0-beta16",
"source": {
"type": "git",
"url": "https://github.com/filamentphp/infolists.git",
"reference": "c9078b42af24ba683c42097cd8ec4b9d736a0183"
"reference": "f033f94ebf9259cf10ea8c680309d9c6a806fffd"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/filamentphp/infolists/zipball/c9078b42af24ba683c42097cd8ec4b9d736a0183",
"reference": "c9078b42af24ba683c42097cd8ec4b9d736a0183",
"url": "https://api.github.com/repos/filamentphp/infolists/zipball/f033f94ebf9259cf10ea8c680309d9c6a806fffd",
"reference": "f033f94ebf9259cf10ea8c680309d9c6a806fffd",
"shasum": ""
},
"require": {
@ -2672,20 +2672,20 @@
"issues": "https://github.com/filamentphp/filament/issues",
"source": "https://github.com/filamentphp/filament"
},
"time": "2025-07-08T12:08:51+00:00"
"time": "2025-07-16T13:41:17+00:00"
},
{
"name": "filament/notifications",
"version": "v4.0.0-beta15",
"version": "v4.0.0-beta16",
"source": {
"type": "git",
"url": "https://github.com/filamentphp/notifications.git",
"reference": "2af39994a90b0a85f9e7356161604606676ec3a0"
"reference": "9b9022c6f682755317092b289a61928348310737"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/filamentphp/notifications/zipball/2af39994a90b0a85f9e7356161604606676ec3a0",
"reference": "2af39994a90b0a85f9e7356161604606676ec3a0",
"url": "https://api.github.com/repos/filamentphp/notifications/zipball/9b9022c6f682755317092b289a61928348310737",
"reference": "9b9022c6f682755317092b289a61928348310737",
"shasum": ""
},
"require": {
@ -2719,20 +2719,20 @@
"issues": "https://github.com/filamentphp/filament/issues",
"source": "https://github.com/filamentphp/filament"
},
"time": "2025-07-08T21:00:05+00:00"
"time": "2025-07-16T13:41:20+00:00"
},
{
"name": "filament/schemas",
"version": "v4.0.0-beta15",
"version": "v4.0.0-beta16",
"source": {
"type": "git",
"url": "https://github.com/filamentphp/schemas.git",
"reference": "d39a90918083ad0f20bcc09f293bb77c767b1e53"
"reference": "3b95968d124403b080f50c02d0c595b814b120f5"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/filamentphp/schemas/zipball/d39a90918083ad0f20bcc09f293bb77c767b1e53",
"reference": "d39a90918083ad0f20bcc09f293bb77c767b1e53",
"url": "https://api.github.com/repos/filamentphp/schemas/zipball/3b95968d124403b080f50c02d0c595b814b120f5",
"reference": "3b95968d124403b080f50c02d0c595b814b120f5",
"shasum": ""
},
"require": {
@ -2764,20 +2764,20 @@
"issues": "https://github.com/filamentphp/filament/issues",
"source": "https://github.com/filamentphp/filament"
},
"time": "2025-07-08T21:00:09+00:00"
"time": "2025-07-16T13:41:24+00:00"
},
{
"name": "filament/support",
"version": "v4.0.0-beta15",
"version": "v4.0.0-beta16",
"source": {
"type": "git",
"url": "https://github.com/filamentphp/support.git",
"reference": "44e0820e598593417ef4cab22bb0bda33fe3eea6"
"reference": "42f7f9f3d334b63142393198c6604787c0618fde"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/filamentphp/support/zipball/44e0820e598593417ef4cab22bb0bda33fe3eea6",
"reference": "44e0820e598593417ef4cab22bb0bda33fe3eea6",
"url": "https://api.github.com/repos/filamentphp/support/zipball/42f7f9f3d334b63142393198c6604787c0618fde",
"reference": "42f7f9f3d334b63142393198c6604787c0618fde",
"shasum": ""
},
"require": {
@ -2822,20 +2822,20 @@
"issues": "https://github.com/filamentphp/filament/issues",
"source": "https://github.com/filamentphp/filament"
},
"time": "2025-07-08T21:00:16+00:00"
"time": "2025-07-16T13:41:18+00:00"
},
{
"name": "filament/tables",
"version": "v4.0.0-beta15",
"version": "v4.0.0-beta16",
"source": {
"type": "git",
"url": "https://github.com/filamentphp/tables.git",
"reference": "8977c5662f15656855a360acfc5c74c93b24d11c"
"reference": "12ac31006652f59832a98939bc9a68e0997990f4"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/filamentphp/tables/zipball/8977c5662f15656855a360acfc5c74c93b24d11c",
"reference": "8977c5662f15656855a360acfc5c74c93b24d11c",
"url": "https://api.github.com/repos/filamentphp/tables/zipball/12ac31006652f59832a98939bc9a68e0997990f4",
"reference": "12ac31006652f59832a98939bc9a68e0997990f4",
"shasum": ""
},
"require": {
@ -2867,20 +2867,20 @@
"issues": "https://github.com/filamentphp/filament/issues",
"source": "https://github.com/filamentphp/filament"
},
"time": "2025-07-08T21:00:37+00:00"
"time": "2025-07-16T13:41:19+00:00"
},
{
"name": "filament/widgets",
"version": "v4.0.0-beta15",
"version": "v4.0.0-beta16",
"source": {
"type": "git",
"url": "https://github.com/filamentphp/widgets.git",
"reference": "5149e44e247f150eda4f9da665e4cee1029a9f34"
"reference": "6387ca79404450712fede8d80eccc4e70a45fea7"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/filamentphp/widgets/zipball/5149e44e247f150eda4f9da665e4cee1029a9f34",
"reference": "5149e44e247f150eda4f9da665e4cee1029a9f34",
"url": "https://api.github.com/repos/filamentphp/widgets/zipball/6387ca79404450712fede8d80eccc4e70a45fea7",
"reference": "6387ca79404450712fede8d80eccc4e70a45fea7",
"shasum": ""
},
"require": {
@ -2911,7 +2911,7 @@
"issues": "https://github.com/filamentphp/filament/issues",
"source": "https://github.com/filamentphp/filament"
},
"time": "2025-07-08T21:00:37+00:00"
"time": "2025-07-16T13:41:17+00:00"
},
{
"name": "firebase/php-jwt",
@ -5411,16 +5411,16 @@
},
{
"name": "livewire/livewire",
"version": "v3.6.3",
"version": "v3.6.4",
"source": {
"type": "git",
"url": "https://github.com/livewire/livewire.git",
"reference": "56aa1bb63a46e06181c56fa64717a7287e19115e"
"reference": "ef04be759da41b14d2d129e670533180a44987dc"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/livewire/livewire/zipball/56aa1bb63a46e06181c56fa64717a7287e19115e",
"reference": "56aa1bb63a46e06181c56fa64717a7287e19115e",
"url": "https://api.github.com/repos/livewire/livewire/zipball/ef04be759da41b14d2d129e670533180a44987dc",
"reference": "ef04be759da41b14d2d129e670533180a44987dc",
"shasum": ""
},
"require": {
@ -5475,7 +5475,7 @@
"description": "A front-end framework for Laravel.",
"support": {
"issues": "https://github.com/livewire/livewire/issues",
"source": "https://github.com/livewire/livewire/tree/v3.6.3"
"source": "https://github.com/livewire/livewire/tree/v3.6.4"
},
"funding": [
{
@ -5483,7 +5483,7 @@
"type": "github"
}
],
"time": "2025-04-12T22:26:52+00:00"
"time": "2025-07-17T05:12:15+00:00"
},
{
"name": "masterminds/html5",
@ -6946,16 +6946,16 @@
},
{
"name": "phpstan/phpdoc-parser",
"version": "2.1.0",
"version": "2.2.0",
"source": {
"type": "git",
"url": "https://github.com/phpstan/phpdoc-parser.git",
"reference": "9b30d6fd026b2c132b3985ce6b23bec09ab3aa68"
"reference": "b9e61a61e39e02dd90944e9115241c7f7e76bfd8"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/phpstan/phpdoc-parser/zipball/9b30d6fd026b2c132b3985ce6b23bec09ab3aa68",
"reference": "9b30d6fd026b2c132b3985ce6b23bec09ab3aa68",
"url": "https://api.github.com/repos/phpstan/phpdoc-parser/zipball/b9e61a61e39e02dd90944e9115241c7f7e76bfd8",
"reference": "b9e61a61e39e02dd90944e9115241c7f7e76bfd8",
"shasum": ""
},
"require": {
@ -6987,9 +6987,9 @@
"description": "PHPDoc parser with support for nullable, intersection and generic types",
"support": {
"issues": "https://github.com/phpstan/phpdoc-parser/issues",
"source": "https://github.com/phpstan/phpdoc-parser/tree/2.1.0"
"source": "https://github.com/phpstan/phpdoc-parser/tree/2.2.0"
},
"time": "2025-02-19T13:28:12+00:00"
"time": "2025-07-13T07:04:09+00:00"
},
{
"name": "pragmarx/google2fa",
@ -8932,16 +8932,16 @@
},
{
"name": "spatie/laravel-package-tools",
"version": "1.92.4",
"version": "1.92.6",
"source": {
"type": "git",
"url": "https://github.com/spatie/laravel-package-tools.git",
"reference": "d20b1969f836d210459b78683d85c9cd5c5f508c"
"reference": "afa90e37741a953d33728e7106a1f24a13fdd808"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/spatie/laravel-package-tools/zipball/d20b1969f836d210459b78683d85c9cd5c5f508c",
"reference": "d20b1969f836d210459b78683d85c9cd5c5f508c",
"url": "https://api.github.com/repos/spatie/laravel-package-tools/zipball/afa90e37741a953d33728e7106a1f24a13fdd808",
"reference": "afa90e37741a953d33728e7106a1f24a13fdd808",
"shasum": ""
},
"require": {
@ -8981,7 +8981,7 @@
],
"support": {
"issues": "https://github.com/spatie/laravel-package-tools/issues",
"source": "https://github.com/spatie/laravel-package-tools/tree/1.92.4"
"source": "https://github.com/spatie/laravel-package-tools/tree/1.92.6"
},
"funding": [
{
@ -8989,7 +8989,7 @@
"type": "github"
}
],
"time": "2025-04-11T15:27:14+00:00"
"time": "2025-07-14T08:02:47+00:00"
},
{
"name": "spatie/laravel-permission",
@ -9076,16 +9076,16 @@
},
{
"name": "spatie/laravel-query-builder",
"version": "6.3.2",
"version": "6.3.3",
"source": {
"type": "git",
"url": "https://github.com/spatie/laravel-query-builder.git",
"reference": "3675f7bace346dc5243f58fa7c531e36471200f4"
"reference": "0d80323d2b2ffc410f06bf73c2e3a6ad763e4b8d"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/spatie/laravel-query-builder/zipball/3675f7bace346dc5243f58fa7c531e36471200f4",
"reference": "3675f7bace346dc5243f58fa7c531e36471200f4",
"url": "https://api.github.com/repos/spatie/laravel-query-builder/zipball/0d80323d2b2ffc410f06bf73c2e3a6ad763e4b8d",
"reference": "0d80323d2b2ffc410f06bf73c2e3a6ad763e4b8d",
"shasum": ""
},
"require": {
@ -9097,6 +9097,7 @@
},
"require-dev": {
"ext-json": "*",
"larastan/larastan": "^2.7 || ^3.3",
"mockery/mockery": "^1.4",
"orchestra/testbench": "^7.0|^8.0|^10.0",
"pestphp/pest": "^2.0|^3.7",
@ -9145,7 +9146,7 @@
"type": "custom"
}
],
"time": "2025-04-16T07:30:03+00:00"
"time": "2025-07-14T08:31:42+00:00"
},
{
"name": "spatie/php-structure-discoverer",
@ -12541,16 +12542,16 @@
},
{
"name": "barryvdh/reflection-docblock",
"version": "v2.3.1",
"version": "v2.4.0",
"source": {
"type": "git",
"url": "https://github.com/barryvdh/ReflectionDocBlock.git",
"reference": "b6ff9f93603561f50e53b64310495d20b8dff5d8"
"reference": "d103774cbe7e94ddee7e4870f97f727b43fe7201"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/barryvdh/ReflectionDocBlock/zipball/b6ff9f93603561f50e53b64310495d20b8dff5d8",
"reference": "b6ff9f93603561f50e53b64310495d20b8dff5d8",
"url": "https://api.github.com/repos/barryvdh/ReflectionDocBlock/zipball/d103774cbe7e94ddee7e4870f97f727b43fe7201",
"reference": "d103774cbe7e94ddee7e4870f97f727b43fe7201",
"shasum": ""
},
"require": {
@ -12587,9 +12588,9 @@
}
],
"support": {
"source": "https://github.com/barryvdh/ReflectionDocBlock/tree/v2.3.1"
"source": "https://github.com/barryvdh/ReflectionDocBlock/tree/v2.4.0"
},
"time": "2025-01-18T19:26:32+00:00"
"time": "2025-07-17T06:07:30+00:00"
},
{
"name": "brianium/paratest",
@ -12960,6 +12961,46 @@
],
"time": "2024-08-06T10:04:20+00:00"
},
{
"name": "filament/upgrade",
"version": "v4.0.0-beta16",
"source": {
"type": "git",
"url": "https://github.com/filamentphp/upgrade.git",
"reference": "0f27d29790ae5124694ea796184fc2aec7940cd6"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/filamentphp/upgrade/zipball/0f27d29790ae5124694ea796184fc2aec7940cd6",
"reference": "0f27d29790ae5124694ea796184fc2aec7940cd6",
"shasum": ""
},
"require": {
"nunomaduro/termwind": "^2.0",
"php": "^8.2",
"rector/rector": "^2.0"
},
"bin": [
"bin/filament-v4"
],
"type": "library",
"autoload": {
"psr-4": {
"Filament\\Upgrade\\": "src"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"description": "Upgrade Filament v3 code to Filament v4.",
"homepage": "https://github.com/filamentphp/filament",
"support": {
"issues": "https://github.com/filamentphp/filament/issues",
"source": "https://github.com/filamentphp/filament"
},
"time": "2025-06-15T21:55:22+00:00"
},
{
"name": "filp/whoops",
"version": "2.18.3",
@ -14732,6 +14773,66 @@
],
"time": "2025-03-23T16:02:11+00:00"
},
{
"name": "rector/rector",
"version": "2.1.1",
"source": {
"type": "git",
"url": "https://github.com/rectorphp/rector.git",
"reference": "d0917c069bb0d9bb06ed111cf052510f609015a4"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/rectorphp/rector/zipball/d0917c069bb0d9bb06ed111cf052510f609015a4",
"reference": "d0917c069bb0d9bb06ed111cf052510f609015a4",
"shasum": ""
},
"require": {
"php": "^7.4|^8.0",
"phpstan/phpstan": "^2.1.17"
},
"conflict": {
"rector/rector-doctrine": "*",
"rector/rector-downgrade-php": "*",
"rector/rector-phpunit": "*",
"rector/rector-symfony": "*"
},
"suggest": {
"ext-dom": "To manipulate phpunit.xml via the custom-rule command"
},
"bin": [
"bin/rector"
],
"type": "library",
"autoload": {
"files": [
"bootstrap.php"
]
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"description": "Instant Upgrade and Automated Refactoring of any PHP code",
"homepage": "https://getrector.com/",
"keywords": [
"automation",
"dev",
"migration",
"refactoring"
],
"support": {
"issues": "https://github.com/rectorphp/rector/issues",
"source": "https://github.com/rectorphp/rector/tree/2.1.1"
},
"funding": [
{
"url": "https://github.com/tomasvotruba",
"type": "github"
}
],
"time": "2025-07-10T11:31:31+00:00"
},
{
"name": "sebastian/cli-parser",
"version": "3.0.2",

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1 +1 @@
function c({livewireId:s}){return{areAllCheckboxesChecked:!1,checkboxListOptions:[],search:"",visibleCheckboxListOptions:[],init(){this.checkboxListOptions=Array.from(this.$root.querySelectorAll(".fi-fo-checkbox-list-option")),this.updateVisibleCheckboxListOptions(),this.$nextTick(()=>{this.checkIfAllCheckboxesAreChecked()}),Livewire.hook("commit",({component:e,commit:t,succeed:i,fail:o,respond:h})=>{i(({snapshot:r,effect:l})=>{this.$nextTick(()=>{e.id===s&&(this.checkboxListOptions=Array.from(this.$root.querySelectorAll(".fi-fo-checkbox-list-option")),this.updateVisibleCheckboxListOptions(),this.checkIfAllCheckboxesAreChecked())})})}),this.$watch("search",()=>{this.updateVisibleCheckboxListOptions(),this.checkIfAllCheckboxesAreChecked()})},checkIfAllCheckboxesAreChecked(){this.areAllCheckboxesChecked=this.visibleCheckboxListOptions.length===this.visibleCheckboxListOptions.filter(e=>e.querySelector("input[type=checkbox]:checked")).length},toggleAllCheckboxes(){this.checkIfAllCheckboxesAreChecked();let e=!this.areAllCheckboxesChecked;this.visibleCheckboxListOptions.forEach(t=>{let i=t.querySelector("input[type=checkbox]");i.disabled||(i.checked=e,i.dispatchEvent(new Event("change")))}),this.areAllCheckboxesChecked=e},updateVisibleCheckboxListOptions(){this.visibleCheckboxListOptions=this.checkboxListOptions.filter(e=>["",null,void 0].includes(this.search)||e.querySelector(".fi-fo-checkbox-list-option-label")?.innerText.toLowerCase().includes(this.search.toLowerCase())?!0:e.querySelector(".fi-fo-checkbox-list-option-description")?.innerText.toLowerCase().includes(this.search.toLowerCase()))}}}export{c as default};
function c({livewireId:s}){return{areAllCheckboxesChecked:!1,checkboxListOptions:[],search:"",visibleCheckboxListOptions:[],init(){this.checkboxListOptions=Array.from(this.$root.querySelectorAll(".fi-fo-checkbox-list-option")),this.updateVisibleCheckboxListOptions(),this.$nextTick(()=>{this.checkIfAllCheckboxesAreChecked()}),Livewire.hook("commit",({component:e,commit:t,succeed:i,fail:o,respond:h})=>{i(({snapshot:r,effect:l})=>{this.$nextTick(()=>{e.id===s&&(this.checkboxListOptions=Array.from(this.$root.querySelectorAll(".fi-fo-checkbox-list-option")),this.updateVisibleCheckboxListOptions(),this.checkIfAllCheckboxesAreChecked())})})}),this.$watch("search",()=>{this.updateVisibleCheckboxListOptions(),this.checkIfAllCheckboxesAreChecked()})},checkIfAllCheckboxesAreChecked(){this.areAllCheckboxesChecked=this.visibleCheckboxListOptions.length===this.visibleCheckboxListOptions.filter(e=>e.querySelector("input[type=checkbox]:checked, input[type=checkbox]:disabled")).length},toggleAllCheckboxes(){this.checkIfAllCheckboxesAreChecked();let e=!this.areAllCheckboxesChecked;this.visibleCheckboxListOptions.forEach(t=>{let i=t.querySelector("input[type=checkbox]");i.disabled||(i.checked=e,i.dispatchEvent(new Event("change")))}),this.areAllCheckboxesChecked=e},updateVisibleCheckboxListOptions(){this.visibleCheckboxListOptions=this.checkboxListOptions.filter(e=>["",null,void 0].includes(this.search)||e.querySelector(".fi-fo-checkbox-list-option-label")?.innerText.toLowerCase().includes(this.search.toLowerCase())?!0:e.querySelector(".fi-fo-checkbox-list-option-description")?.innerText.toLowerCase().includes(this.search.toLowerCase()))}}}export{c as default};

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long