diff --git a/app/Http/Livewire/Menu/Favorite.php b/app/Http/Livewire/Menu/Favorite.php index 785bd4b9f..e8f760fe3 100644 --- a/app/Http/Livewire/Menu/Favorite.php +++ b/app/Http/Livewire/Menu/Favorite.php @@ -70,7 +70,7 @@ class Favorite extends Component setting(['favorites.menu.' . user()->id => json_encode($favorites)])->save(); - $this->emit('addedFavorite'); + $this->dispatch('addedFavorite'); } public function removeFavorite() @@ -94,6 +94,6 @@ class Favorite extends Component setting(['favorites.menu.' . user()->id => json_encode($favorites)])->save(); - $this->emit('removedFavorite'); + $this->dispatch('removedFavorite'); } } diff --git a/app/Http/Livewire/Menu/Favorites.php b/app/Http/Livewire/Menu/Favorites.php index f4fa918fa..c609880ff 100644 --- a/app/Http/Livewire/Menu/Favorites.php +++ b/app/Http/Livewire/Menu/Favorites.php @@ -34,7 +34,7 @@ class Favorites extends Component continue; } - $favorite['id'] = $this->getId($favorite); + $favorite['id'] = $this->getFavoriteId($favorite); if ($this->isActive($favorite['url'])) { $favorite['active'] = true; @@ -87,7 +87,7 @@ class Favorites extends Component } } - public function getId($favorite) + public function getFavoriteId($favorite) { $id = Str::of($favorite['url']) ->replace(url('/'), '-') diff --git a/app/Http/Livewire/Menu/Neww.php b/app/Http/Livewire/Menu/Neww.php index 2a573e403..30f755339 100644 --- a/app/Http/Livewire/Menu/Neww.php +++ b/app/Http/Livewire/Menu/Neww.php @@ -13,9 +13,9 @@ class Neww extends Component public $keyword = ''; - public $neww = []; - - protected $listeners = ['resetKeyword']; + protected $listeners = [ + 'resetKeyword', + ]; public function render(): View { @@ -28,8 +28,6 @@ class Neww extends Component foreach($menu->getItems() as $item) { if ($this->availableInSearch($item)) { - $this->neww[] = $item; - continue; } diff --git a/app/Http/Livewire/Menu/Settings.php b/app/Http/Livewire/Menu/Settings.php index e0d76bdf2..4105b9555 100644 --- a/app/Http/Livewire/Menu/Settings.php +++ b/app/Http/Livewire/Menu/Settings.php @@ -13,11 +13,11 @@ class Settings extends Component public $keyword = ''; - public $settings = []; - public $active_menu = 0; - protected $listeners = ['resetKeyword']; + protected $listeners = [ + 'resetKeyword', + ]; public function render(): View { @@ -36,8 +36,6 @@ class Settings extends Component } if ($this->availableInSearch($item)) { - $this->settings[] = $item; - continue; } diff --git a/app/Http/Livewire/Report/Pin.php b/app/Http/Livewire/Report/Pin.php index 8c41b7e55..8232ad3d2 100644 --- a/app/Http/Livewire/Report/Pin.php +++ b/app/Http/Livewire/Report/Pin.php @@ -81,7 +81,7 @@ class Pin extends Component setting(['favorites.report.' . user()->id => json_encode($pins)])->save(); - $this->emit('addedPin'); + $this->dispatch('addedPin'); } public function removePin($report_id) @@ -105,6 +105,6 @@ class Pin extends Component setting(['favorites.report.' . user()->id => json_encode($pins)])->save(); - $this->emit('removedPin'); + $this->dispatch('removedPin'); } } diff --git a/app/Providers/App.php b/app/Providers/App.php index 4627ef62c..81c196d9f 100644 --- a/app/Providers/App.php +++ b/app/Providers/App.php @@ -47,7 +47,7 @@ class App extends Provider \Sentry\Laravel\Integration::lazyLoadingViolationReporter(); } else { $class = get_class($model); - + report("Attempted to lazy load [{$relation}] on model [{$class}]."); } }); diff --git a/app/Providers/Route.php b/app/Providers/Route.php index 69034ef4c..c6beaeaca 100644 --- a/app/Providers/Route.php +++ b/app/Providers/Route.php @@ -139,6 +139,8 @@ class Route extends Provider $this->mapPortalRoutes(); $this->mapSignedRoutes(); + + $this->mapWebRoutes(); } /** @@ -275,6 +277,20 @@ class Route extends Provider ->group(base_path('routes/signed.php')); } + /** + * Define the "web" routes for the application. + * + * These routes all receive session state, CSRF protection, etc. + * + * @return void + */ + protected function mapWebRoutes() + { + Facade::middleware('web') + ->namespace($this->namespace) + ->group(base_path('routes/web.php')); + } + /** * Configure the rate limiters for the application. * diff --git a/composer.json b/composer.json index 0bcf64b2e..9cdee421c 100644 --- a/composer.json +++ b/composer.json @@ -60,7 +60,7 @@ "league/flysystem-aws-s3-v3": "^3.0", "league/oauth2-client": "^2.6", "league/omnipay": "^3.2", - "livewire/livewire": "^2.10", + "livewire/livewire": "^3.0", "lorisleiva/laravel-search-string": "^1.2", "maatwebsite/excel": "3.1.*", "mnsami/composer-custom-directory-installer": "2.0.*", @@ -104,7 +104,7 @@ "Database\\Seeds\\": "database/seeds/", "Illuminate\\Translation\\": "overrides/Illuminate/Translation/", "Illuminate\\View\\Concerns\\": "overrides/Illuminate/View/Concerns/", - "Livewire\\": "overrides/livewire/", + "Livewire\\": "overrides/livewire/livewire/", "Maatwebsite\\Excel\\": "overrides/maatwebsite/excel/", "Modules\\": "modules/", "Symfony\\Component\\Process\\": "overrides/symfony/process/" @@ -116,7 +116,7 @@ "vendor/akaunting/laravel-module/src/Commands/InstallCommand.php", "vendor/laravel/framework/src/Illuminate/Translation/MessageSelector.php", "vendor/laravel/framework/src/Illuminate/View/Concerns/ManagesStacks.php", - "vendor/livewire/livewire/src/LivewireServiceProvider.php", + "vendor/livewire/livewire/src/Mechanisms/HandleRequests/HandleRequests.php", "vendor/maatwebsite/excel/src/Fakes/ExcelFake.php", "vendor/maatwebsite/excel/src/QueuedWriter.php", "vendor/symfony/process/PhpExecutableFinder.php" @@ -133,8 +133,7 @@ "scripts": { "post-autoload-dump": [ "Illuminate\\Foundation\\ComposerScripts::postAutoloadDump", - "@php artisan package:discover --ansi", - "@php artisan vendor:publish --force --tag=livewire:assets --ansi" + "@php artisan package:discover --ansi" ], "post-install-cmd": [ "php artisan ide-helper:generate", diff --git a/composer.lock b/composer.lock index 9fdc46d52..f2f73615e 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": "a56285f9796a942ce5b91638d2c2ddd6", + "content-hash": "eeec7bdbb152c0ed59182c1737575850", "packages": [ { "name": "akaunting/laravel-apexcharts", @@ -852,16 +852,16 @@ }, { "name": "aws/aws-sdk-php", - "version": "3.293.0", + "version": "3.293.7", "source": { "type": "git", "url": "https://github.com/aws/aws-sdk-php.git", - "reference": "4bcac7125bf72fa38aa8a537fb5b175862470c64" + "reference": "3bf86ba8b9bbea2b298f89e6f5edc58de276690b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/aws/aws-sdk-php/zipball/4bcac7125bf72fa38aa8a537fb5b175862470c64", - "reference": "4bcac7125bf72fa38aa8a537fb5b175862470c64", + "url": "https://api.github.com/repos/aws/aws-sdk-php/zipball/3bf86ba8b9bbea2b298f89e6f5edc58de276690b", + "reference": "3bf86ba8b9bbea2b298f89e6f5edc58de276690b", "shasum": "" }, "require": { @@ -941,9 +941,9 @@ "support": { "forum": "https://forums.aws.amazon.com/forum.jspa?forumID=80", "issues": "https://github.com/aws/aws-sdk-php/issues", - "source": "https://github.com/aws/aws-sdk-php/tree/3.293.0" + "source": "https://github.com/aws/aws-sdk-php/tree/3.293.7" }, - "time": "2023-11-30T01:10:12+00:00" + "time": "2023-12-08T19:11:21+00:00" }, { "name": "balping/json-raw-encoder", @@ -1592,6 +1592,75 @@ }, "time": "2022-01-12T11:07:19+00:00" }, + { + "name": "carbonphp/carbon-doctrine-types", + "version": "2.0.0", + "source": { + "type": "git", + "url": "https://github.com/CarbonPHP/carbon-doctrine-types.git", + "reference": "67a77972b9f398ae7068dabacc39c08aeee170d5" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/CarbonPHP/carbon-doctrine-types/zipball/67a77972b9f398ae7068dabacc39c08aeee170d5", + "reference": "67a77972b9f398ae7068dabacc39c08aeee170d5", + "shasum": "" + }, + "require": { + "php": "^7.4 || ^8.0" + }, + "conflict": { + "doctrine/dbal": "<3.7.0 || >=4.0.0" + }, + "require-dev": { + "doctrine/dbal": "^3.7.0", + "nesbot/carbon": "^2.71.0 || ^3.0.0", + "phpunit/phpunit": "^10.3" + }, + "type": "library", + "autoload": { + "psr-4": { + "Carbon\\Doctrine\\": "src/Carbon/Doctrine/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "KyleKatarn", + "email": "kylekatarnls@gmail.com" + } + ], + "description": "Types to use Carbon in Doctrine", + "keywords": [ + "carbon", + "date", + "datetime", + "doctrine", + "time" + ], + "support": { + "issues": "https://github.com/CarbonPHP/carbon-doctrine-types/issues", + "source": "https://github.com/CarbonPHP/carbon-doctrine-types/tree/2.0.0" + }, + "funding": [ + { + "url": "https://github.com/kylekatarnls", + "type": "github" + }, + { + "url": "https://opencollective.com/Carbon", + "type": "open_collective" + }, + { + "url": "https://tidelift.com/funding/github/packagist/nesbot/carbon", + "type": "tidelift" + } + ], + "time": "2023-10-01T14:29:01+00:00" + }, { "name": "clue/stream-filter", "version": "v1.6.0", @@ -3080,16 +3149,16 @@ }, { "name": "graham-campbell/markdown", - "version": "v15.0.0", + "version": "v15.1.0", "source": { "type": "git", "url": "https://github.com/GrahamCampbell/Laravel-Markdown.git", - "reference": "3c0bcf904ec02acb1afd0e23e7c170ac5199fc14" + "reference": "94917d0d712c26788095ad2b5eafd9b33cd43095" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/GrahamCampbell/Laravel-Markdown/zipball/3c0bcf904ec02acb1afd0e23e7c170ac5199fc14", - "reference": "3c0bcf904ec02acb1afd0e23e7c170ac5199fc14", + "url": "https://api.github.com/repos/GrahamCampbell/Laravel-Markdown/zipball/94917d0d712c26788095ad2b5eafd9b33cd43095", + "reference": "94917d0d712c26788095ad2b5eafd9b33cd43095", "shasum": "" }, "require": { @@ -3097,14 +3166,14 @@ "illuminate/filesystem": "^8.75 || ^9.0 || ^10.0", "illuminate/support": "^8.75 || ^9.0 || ^10.0", "illuminate/view": "^8.75 || ^9.0 || ^10.0", - "league/commonmark": "^2.3.9", + "league/commonmark": "^2.4.1", "php": "^7.4.15 || ^8.0.2" }, "require-dev": { - "graham-campbell/analyzer": "^4.0", - "graham-campbell/testbench": "^6.0", - "mockery/mockery": "^1.5.1", - "phpunit/phpunit": "^9.6.3 || ^10.0.12" + "graham-campbell/analyzer": "^4.1", + "graham-campbell/testbench": "^6.1", + "mockery/mockery": "^1.6.6", + "phpunit/phpunit": "^9.6.15 || ^10.4.2" }, "type": "library", "extra": { @@ -3144,7 +3213,7 @@ ], "support": { "issues": "https://github.com/GrahamCampbell/Laravel-Markdown/issues", - "source": "https://github.com/GrahamCampbell/Laravel-Markdown/tree/v15.0.0" + "source": "https://github.com/GrahamCampbell/Laravel-Markdown/tree/v15.1.0" }, "funding": [ { @@ -3156,7 +3225,7 @@ "type": "tidelift" } ], - "time": "2023-02-26T14:22:13+00:00" + "time": "2023-12-04T02:43:19+00:00" }, { "name": "graham-campbell/result-type", @@ -3222,16 +3291,16 @@ }, { "name": "guzzlehttp/guzzle", - "version": "7.8.0", + "version": "7.8.1", "source": { "type": "git", "url": "https://github.com/guzzle/guzzle.git", - "reference": "1110f66a6530a40fe7aea0378fe608ee2b2248f9" + "reference": "41042bc7ab002487b876a0683fc8dce04ddce104" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/guzzle/guzzle/zipball/1110f66a6530a40fe7aea0378fe608ee2b2248f9", - "reference": "1110f66a6530a40fe7aea0378fe608ee2b2248f9", + "url": "https://api.github.com/repos/guzzle/guzzle/zipball/41042bc7ab002487b876a0683fc8dce04ddce104", + "reference": "41042bc7ab002487b876a0683fc8dce04ddce104", "shasum": "" }, "require": { @@ -3246,11 +3315,11 @@ "psr/http-client-implementation": "1.0" }, "require-dev": { - "bamarni/composer-bin-plugin": "^1.8.1", + "bamarni/composer-bin-plugin": "^1.8.2", "ext-curl": "*", "php-http/client-integration-tests": "dev-master#2c025848417c1135031fdf9c728ee53d0a7ceaee as 3.0.999", "php-http/message-factory": "^1.1", - "phpunit/phpunit": "^8.5.29 || ^9.5.23", + "phpunit/phpunit": "^8.5.36 || ^9.6.15", "psr/log": "^1.1 || ^2.0 || ^3.0" }, "suggest": { @@ -3328,7 +3397,7 @@ ], "support": { "issues": "https://github.com/guzzle/guzzle/issues", - "source": "https://github.com/guzzle/guzzle/tree/7.8.0" + "source": "https://github.com/guzzle/guzzle/tree/7.8.1" }, "funding": [ { @@ -3344,28 +3413,28 @@ "type": "tidelift" } ], - "time": "2023-08-27T10:20:53+00:00" + "time": "2023-12-03T20:35:24+00:00" }, { "name": "guzzlehttp/promises", - "version": "2.0.1", + "version": "2.0.2", "source": { "type": "git", "url": "https://github.com/guzzle/promises.git", - "reference": "111166291a0f8130081195ac4556a5587d7f1b5d" + "reference": "bbff78d96034045e58e13dedd6ad91b5d1253223" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/guzzle/promises/zipball/111166291a0f8130081195ac4556a5587d7f1b5d", - "reference": "111166291a0f8130081195ac4556a5587d7f1b5d", + "url": "https://api.github.com/repos/guzzle/promises/zipball/bbff78d96034045e58e13dedd6ad91b5d1253223", + "reference": "bbff78d96034045e58e13dedd6ad91b5d1253223", "shasum": "" }, "require": { "php": "^7.2.5 || ^8.0" }, "require-dev": { - "bamarni/composer-bin-plugin": "^1.8.1", - "phpunit/phpunit": "^8.5.29 || ^9.5.23" + "bamarni/composer-bin-plugin": "^1.8.2", + "phpunit/phpunit": "^8.5.36 || ^9.6.15" }, "type": "library", "extra": { @@ -3411,7 +3480,7 @@ ], "support": { "issues": "https://github.com/guzzle/promises/issues", - "source": "https://github.com/guzzle/promises/tree/2.0.1" + "source": "https://github.com/guzzle/promises/tree/2.0.2" }, "funding": [ { @@ -3427,20 +3496,20 @@ "type": "tidelift" } ], - "time": "2023-08-03T15:11:55+00:00" + "time": "2023-12-03T20:19:20+00:00" }, { "name": "guzzlehttp/psr7", - "version": "2.6.1", + "version": "2.6.2", "source": { "type": "git", "url": "https://github.com/guzzle/psr7.git", - "reference": "be45764272e8873c72dbe3d2edcfdfcc3bc9f727" + "reference": "45b30f99ac27b5ca93cb4831afe16285f57b8221" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/guzzle/psr7/zipball/be45764272e8873c72dbe3d2edcfdfcc3bc9f727", - "reference": "be45764272e8873c72dbe3d2edcfdfcc3bc9f727", + "url": "https://api.github.com/repos/guzzle/psr7/zipball/45b30f99ac27b5ca93cb4831afe16285f57b8221", + "reference": "45b30f99ac27b5ca93cb4831afe16285f57b8221", "shasum": "" }, "require": { @@ -3454,9 +3523,9 @@ "psr/http-message-implementation": "1.0" }, "require-dev": { - "bamarni/composer-bin-plugin": "^1.8.1", + "bamarni/composer-bin-plugin": "^1.8.2", "http-interop/http-factory-tests": "^0.9", - "phpunit/phpunit": "^8.5.29 || ^9.5.23" + "phpunit/phpunit": "^8.5.36 || ^9.6.15" }, "suggest": { "laminas/laminas-httphandlerrunner": "Emit PSR-7 responses" @@ -3527,7 +3596,7 @@ ], "support": { "issues": "https://github.com/guzzle/psr7/issues", - "source": "https://github.com/guzzle/psr7/tree/2.6.1" + "source": "https://github.com/guzzle/psr7/tree/2.6.2" }, "funding": [ { @@ -3543,32 +3612,38 @@ "type": "tidelift" } ], - "time": "2023-08-27T10:13:57+00:00" + "time": "2023-12-03T20:05:35+00:00" }, { "name": "guzzlehttp/uri-template", - "version": "v1.0.2", + "version": "v1.0.3", "source": { "type": "git", "url": "https://github.com/guzzle/uri-template.git", - "reference": "61bf437fc2197f587f6857d3ff903a24f1731b5d" + "reference": "ecea8feef63bd4fef1f037ecb288386999ecc11c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/guzzle/uri-template/zipball/61bf437fc2197f587f6857d3ff903a24f1731b5d", - "reference": "61bf437fc2197f587f6857d3ff903a24f1731b5d", + "url": "https://api.github.com/repos/guzzle/uri-template/zipball/ecea8feef63bd4fef1f037ecb288386999ecc11c", + "reference": "ecea8feef63bd4fef1f037ecb288386999ecc11c", "shasum": "" }, "require": { "php": "^7.2.5 || ^8.0", - "symfony/polyfill-php80": "^1.17" + "symfony/polyfill-php80": "^1.24" }, "require-dev": { - "bamarni/composer-bin-plugin": "^1.8.1", - "phpunit/phpunit": "^8.5.19 || ^9.5.8", + "bamarni/composer-bin-plugin": "^1.8.2", + "phpunit/phpunit": "^8.5.36 || ^9.6.15", "uri-template/tests": "1.0.0" }, "type": "library", + "extra": { + "bamarni-bin": { + "bin-links": true, + "forward-command": false + } + }, "autoload": { "psr-4": { "GuzzleHttp\\UriTemplate\\": "src" @@ -3607,7 +3682,7 @@ ], "support": { "issues": "https://github.com/guzzle/uri-template/issues", - "source": "https://github.com/guzzle/uri-template/tree/v1.0.2" + "source": "https://github.com/guzzle/uri-template/tree/v1.0.3" }, "funding": [ { @@ -3623,7 +3698,7 @@ "type": "tidelift" } ], - "time": "2023-08-27T10:19:19+00:00" + "time": "2023-12-03T19:50:20+00:00" }, { "name": "hoa/compiler", @@ -4910,16 +4985,16 @@ }, { "name": "laravel/framework", - "version": "v10.34.2", + "version": "v10.35.0", "source": { "type": "git", "url": "https://github.com/laravel/framework.git", - "reference": "c581caa233e380610b34cc491490bfa147a3b62b" + "reference": "91ec2d92d2f6007e9084fe06438b99c91845da69" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/laravel/framework/zipball/c581caa233e380610b34cc491490bfa147a3b62b", - "reference": "c581caa233e380610b34cc491490bfa147a3b62b", + "url": "https://api.github.com/repos/laravel/framework/zipball/91ec2d92d2f6007e9084fe06438b99c91845da69", + "reference": "91ec2d92d2f6007e9084fe06438b99c91845da69", "shasum": "" }, "require": { @@ -4952,7 +5027,7 @@ "symfony/console": "^6.2", "symfony/error-handler": "^6.2", "symfony/finder": "^6.2", - "symfony/http-foundation": "^6.3", + "symfony/http-foundation": "^6.4", "symfony/http-kernel": "^6.2", "symfony/mailer": "^6.2", "symfony/mime": "^6.2", @@ -5108,7 +5183,7 @@ "issues": "https://github.com/laravel/framework/issues", "source": "https://github.com/laravel/framework" }, - "time": "2023-11-28T19:06:27+00:00" + "time": "2023-12-05T14:50:33+00:00" }, { "name": "laravel/prompts", @@ -5748,16 +5823,16 @@ }, { "name": "league/flysystem", - "version": "3.21.0", + "version": "3.23.0", "source": { "type": "git", "url": "https://github.com/thephpleague/flysystem.git", - "reference": "a326d8a2d007e4ca327a57470846e34363789258" + "reference": "d4ad81e2b67396e33dc9d7e54ec74ccf73151dcc" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/thephpleague/flysystem/zipball/a326d8a2d007e4ca327a57470846e34363789258", - "reference": "a326d8a2d007e4ca327a57470846e34363789258", + "url": "https://api.github.com/repos/thephpleague/flysystem/zipball/d4ad81e2b67396e33dc9d7e54ec74ccf73151dcc", + "reference": "d4ad81e2b67396e33dc9d7e54ec74ccf73151dcc", "shasum": "" }, "require": { @@ -5785,7 +5860,7 @@ "friendsofphp/php-cs-fixer": "^3.5", "google/cloud-storage": "^1.23", "microsoft/azure-storage-blob": "^1.1", - "phpseclib/phpseclib": "^3.0.14", + "phpseclib/phpseclib": "^3.0.34", "phpstan/phpstan": "^1.10", "phpunit/phpunit": "^9.5.11|^10.0", "sabre/dav": "^4.3.1" @@ -5822,7 +5897,7 @@ ], "support": { "issues": "https://github.com/thephpleague/flysystem/issues", - "source": "https://github.com/thephpleague/flysystem/tree/3.21.0" + "source": "https://github.com/thephpleague/flysystem/tree/3.23.0" }, "funding": [ { @@ -5834,20 +5909,20 @@ "type": "github" } ], - "time": "2023-11-18T13:59:15+00:00" + "time": "2023-12-04T10:16:17+00:00" }, { "name": "league/flysystem-aws-s3-v3", - "version": "3.21.0", + "version": "3.22.0", "source": { "type": "git", "url": "https://github.com/thephpleague/flysystem-aws-s3-v3.git", - "reference": "2a1784eec09ee8e190fc27b93e725bc518338929" + "reference": "9808919ee5d819730d9582d4e1673e8d195c38d8" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/thephpleague/flysystem-aws-s3-v3/zipball/2a1784eec09ee8e190fc27b93e725bc518338929", - "reference": "2a1784eec09ee8e190fc27b93e725bc518338929", + "url": "https://api.github.com/repos/thephpleague/flysystem-aws-s3-v3/zipball/9808919ee5d819730d9582d4e1673e8d195c38d8", + "reference": "9808919ee5d819730d9582d4e1673e8d195c38d8", "shasum": "" }, "require": { @@ -5888,7 +5963,7 @@ ], "support": { "issues": "https://github.com/thephpleague/flysystem-aws-s3-v3/issues", - "source": "https://github.com/thephpleague/flysystem-aws-s3-v3/tree/3.21.0" + "source": "https://github.com/thephpleague/flysystem-aws-s3-v3/tree/3.22.0" }, "funding": [ { @@ -5900,20 +5975,20 @@ "type": "github" } ], - "time": "2023-11-14T11:54:45+00:00" + "time": "2023-11-18T14:03:37+00:00" }, { "name": "league/flysystem-local", - "version": "3.21.0", + "version": "3.23.0", "source": { "type": "git", "url": "https://github.com/thephpleague/flysystem-local.git", - "reference": "470eb1c09eaabd49ebd908ae06f23983ba3ecfe7" + "reference": "5cf046ba5f059460e86a997c504dd781a39a109b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/thephpleague/flysystem-local/zipball/470eb1c09eaabd49ebd908ae06f23983ba3ecfe7", - "reference": "470eb1c09eaabd49ebd908ae06f23983ba3ecfe7", + "url": "https://api.github.com/repos/thephpleague/flysystem-local/zipball/5cf046ba5f059460e86a997c504dd781a39a109b", + "reference": "5cf046ba5f059460e86a997c504dd781a39a109b", "shasum": "" }, "require": { @@ -5948,7 +6023,7 @@ ], "support": { "issues": "https://github.com/thephpleague/flysystem-local/issues", - "source": "https://github.com/thephpleague/flysystem-local/tree/3.21.0" + "source": "https://github.com/thephpleague/flysystem-local/tree/3.23.0" }, "funding": [ { @@ -5960,7 +6035,7 @@ "type": "github" } ], - "time": "2023-11-18T13:41:42+00:00" + "time": "2023-12-04T10:14:46+00:00" }, { "name": "league/mime-type-detection", @@ -6153,33 +6228,34 @@ }, { "name": "livewire/livewire", - "version": "v2.12.6", + "version": "v3.2.6", "source": { "type": "git", "url": "https://github.com/livewire/livewire.git", - "reference": "7d3a57b3193299cf1a0639a3935c696f4da2cf92" + "reference": "ecded08cdc4b36bbb4b26bcc7f7a171ea2e4368c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/livewire/livewire/zipball/7d3a57b3193299cf1a0639a3935c696f4da2cf92", - "reference": "7d3a57b3193299cf1a0639a3935c696f4da2cf92", + "url": "https://api.github.com/repos/livewire/livewire/zipball/ecded08cdc4b36bbb4b26bcc7f7a171ea2e4368c", + "reference": "ecded08cdc4b36bbb4b26bcc7f7a171ea2e4368c", "shasum": "" }, "require": { - "illuminate/database": "^7.0|^8.0|^9.0|^10.0", - "illuminate/support": "^7.0|^8.0|^9.0|^10.0", - "illuminate/validation": "^7.0|^8.0|^9.0|^10.0", + "illuminate/database": "^10.0", + "illuminate/support": "^10.0", + "illuminate/validation": "^10.0", "league/mime-type-detection": "^1.9", - "php": "^7.2.5|^8.0", - "symfony/http-kernel": "^5.0|^6.0" + "php": "^8.1", + "symfony/http-kernel": "^6.2" }, "require-dev": { "calebporzio/sushi": "^2.1", - "laravel/framework": "^7.0|^8.0|^9.0|^10.0", + "laravel/framework": "^10.0", + "laravel/prompts": "^0.1.6", "mockery/mockery": "^1.3.1", - "orchestra/testbench": "^5.0|^6.0|^7.0|^8.0", - "orchestra/testbench-dusk": "^5.2|^6.0|^7.0|^8.0", - "phpunit/phpunit": "^8.4|^9.0", + "orchestra/testbench": "^8.0", + "orchestra/testbench-dusk": "^8.0", + "phpunit/phpunit": "^9.0", "psy/psysh": "@stable" }, "type": "library", @@ -6214,7 +6290,7 @@ "description": "A front-end framework for Laravel.", "support": { "issues": "https://github.com/livewire/livewire/issues", - "source": "https://github.com/livewire/livewire/tree/v2.12.6" + "source": "https://github.com/livewire/livewire/tree/v3.2.6" }, "funding": [ { @@ -6222,7 +6298,7 @@ "type": "github" } ], - "time": "2023-08-11T04:02:34+00:00" + "time": "2023-12-04T21:20:19+00:00" }, { "name": "lorisleiva/laravel-search-string", @@ -7060,19 +7136,20 @@ }, { "name": "nesbot/carbon", - "version": "2.71.0", + "version": "2.72.0", "source": { "type": "git", "url": "https://github.com/briannesbitt/Carbon.git", - "reference": "98276233188583f2ff845a0f992a235472d9466a" + "reference": "a6885fcbad2ec4360b0e200ee0da7d9b7c90786b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/briannesbitt/Carbon/zipball/98276233188583f2ff845a0f992a235472d9466a", - "reference": "98276233188583f2ff845a0f992a235472d9466a", + "url": "https://api.github.com/repos/briannesbitt/Carbon/zipball/a6885fcbad2ec4360b0e200ee0da7d9b7c90786b", + "reference": "a6885fcbad2ec4360b0e200ee0da7d9b7c90786b", "shasum": "" }, "require": { + "carbonphp/carbon-doctrine-types": "*", "ext-json": "*", "php": "^7.1.8 || ^8.0", "psr/clock": "^1.0", @@ -7084,8 +7161,8 @@ "psr/clock-implementation": "1.0" }, "require-dev": { - "doctrine/dbal": "^2.0 || ^3.1.4", - "doctrine/orm": "^2.7", + "doctrine/dbal": "^2.0 || ^3.1.4 || ^4.0", + "doctrine/orm": "^2.7 || ^3.0", "friendsofphp/php-cs-fixer": "^3.0", "kylekatarnls/multi-tester": "^2.0", "ondrejmirtes/better-reflection": "*", @@ -7162,7 +7239,7 @@ "type": "tidelift" } ], - "time": "2023-09-25T11:31:05+00:00" + "time": "2023-11-28T10:13:25+00:00" }, { "name": "nette/schema", @@ -7832,16 +7909,16 @@ }, { "name": "php-http/discovery", - "version": "1.19.1", + "version": "1.19.2", "source": { "type": "git", "url": "https://github.com/php-http/discovery.git", - "reference": "57f3de01d32085fea20865f9b16fb0e69347c39e" + "reference": "61e1a1eb69c92741f5896d9e05fb8e9d7e8bb0cb" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/php-http/discovery/zipball/57f3de01d32085fea20865f9b16fb0e69347c39e", - "reference": "57f3de01d32085fea20865f9b16fb0e69347c39e", + "url": "https://api.github.com/repos/php-http/discovery/zipball/61e1a1eb69c92741f5896d9e05fb8e9d7e8bb0cb", + "reference": "61e1a1eb69c92741f5896d9e05fb8e9d7e8bb0cb", "shasum": "" }, "require": { @@ -7904,9 +7981,9 @@ ], "support": { "issues": "https://github.com/php-http/discovery/issues", - "source": "https://github.com/php-http/discovery/tree/1.19.1" + "source": "https://github.com/php-http/discovery/tree/1.19.2" }, - "time": "2023-07-11T07:02:26+00:00" + "time": "2023-11-30T16:49:05+00:00" }, { "name": "php-http/guzzle7-adapter", @@ -9646,16 +9723,16 @@ }, { "name": "sentry/sentry", - "version": "4.0.1", + "version": "4.1.0", "source": { "type": "git", "url": "https://github.com/getsentry/sentry-php.git", - "reference": "fa41522f1fe5ff77a33a9db749c0ca7ec332f50a" + "reference": "89666f297891ff937fceb2f3d1fb967a6848cf37" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/getsentry/sentry-php/zipball/fa41522f1fe5ff77a33a9db749c0ca7ec332f50a", - "reference": "fa41522f1fe5ff77a33a9db749c0ca7ec332f50a", + "url": "https://api.github.com/repos/getsentry/sentry-php/zipball/89666f297891ff937fceb2f3d1fb967a6848cf37", + "reference": "89666f297891ff937fceb2f3d1fb967a6848cf37", "shasum": "" }, "require": { @@ -9704,7 +9781,7 @@ "email": "accounts@sentry.io" } ], - "description": "A PHP SDK for Sentry (http://sentry.io)", + "description": "PHP SDK for Sentry (http://sentry.io)", "homepage": "http://sentry.io", "keywords": [ "crash-reporting", @@ -9713,11 +9790,13 @@ "error-monitoring", "log", "logging", - "sentry" + "profiling", + "sentry", + "tracing" ], "support": { "issues": "https://github.com/getsentry/sentry-php/issues", - "source": "https://github.com/getsentry/sentry-php/tree/4.0.1" + "source": "https://github.com/getsentry/sentry-php/tree/4.1.0" }, "funding": [ { @@ -9729,7 +9808,7 @@ "type": "custom" } ], - "time": "2023-11-13T13:00:41+00:00" + "time": "2023-12-04T12:41:21+00:00" }, { "name": "sentry/sentry-laravel", @@ -9974,16 +10053,16 @@ }, { "name": "staudenmeir/eloquent-has-many-deep", - "version": "v1.18.3", + "version": "v1.19", "source": { "type": "git", "url": "https://github.com/staudenmeir/eloquent-has-many-deep.git", - "reference": "04cdf25eac68bd02c3aa382ddbf437585bd76708" + "reference": "7a858ba0bfe5d42c06c563175a7255ebb6abad27" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/staudenmeir/eloquent-has-many-deep/zipball/04cdf25eac68bd02c3aa382ddbf437585bd76708", - "reference": "04cdf25eac68bd02c3aa382ddbf437585bd76708", + "url": "https://api.github.com/repos/staudenmeir/eloquent-has-many-deep/zipball/7a858ba0bfe5d42c06c563175a7255ebb6abad27", + "reference": "7a858ba0bfe5d42c06c563175a7255ebb6abad27", "shasum": "" }, "require": { @@ -9997,6 +10076,7 @@ "illuminate/pagination": "^10.0", "korridor/laravel-has-many-merged": "^1.0", "mockery/mockery": "^1.6", + "orchestra/testbench": "^8.13", "phpstan/phpstan": "^1.10", "phpunit/phpunit": "^10.1", "staudenmeir/eloquent-eager-limit": "^1.8", @@ -10004,6 +10084,13 @@ "staudenmeir/laravel-adjacency-list": "^1.13.7" }, "type": "library", + "extra": { + "laravel": { + "providers": [ + "Staudenmeir\\EloquentHasManyDeep\\EloquentHasManyDeepServiceProvider" + ] + } + }, "autoload": { "psr-4": { "Staudenmeir\\EloquentHasManyDeep\\": "src/" @@ -10022,7 +10109,7 @@ "description": "Laravel Eloquent HasManyThrough relationships with unlimited levels", "support": { "issues": "https://github.com/staudenmeir/eloquent-has-many-deep/issues", - "source": "https://github.com/staudenmeir/eloquent-has-many-deep/tree/v1.18.3" + "source": "https://github.com/staudenmeir/eloquent-has-many-deep/tree/v1.19" }, "funding": [ { @@ -10030,7 +10117,7 @@ "type": "custom" } ], - "time": "2023-08-20T17:00:39+00:00" + "time": "2023-12-05T11:38:39+00:00" }, { "name": "staudenmeir/eloquent-has-many-deep-contracts", @@ -10075,16 +10162,16 @@ }, { "name": "symfony/console", - "version": "v6.4.0", + "version": "v6.4.1", "source": { "type": "git", "url": "https://github.com/symfony/console.git", - "reference": "cd9864b47c367450e14ab32f78fdbf98c44c26b6" + "reference": "a550a7c99daeedef3f9d23fb82e3531525ff11fd" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/console/zipball/cd9864b47c367450e14ab32f78fdbf98c44c26b6", - "reference": "cd9864b47c367450e14ab32f78fdbf98c44c26b6", + "url": "https://api.github.com/repos/symfony/console/zipball/a550a7c99daeedef3f9d23fb82e3531525ff11fd", + "reference": "a550a7c99daeedef3f9d23fb82e3531525ff11fd", "shasum": "" }, "require": { @@ -10149,7 +10236,7 @@ "terminal" ], "support": { - "source": "https://github.com/symfony/console/tree/v6.4.0" + "source": "https://github.com/symfony/console/tree/v6.4.1" }, "funding": [ { @@ -10165,7 +10252,7 @@ "type": "tidelift" } ], - "time": "2023-11-20T16:41:16+00:00" + "time": "2023-11-30T10:54:28+00:00" }, { "name": "symfony/css-selector", @@ -10844,16 +10931,16 @@ }, { "name": "symfony/http-kernel", - "version": "v6.4.0", + "version": "v6.4.1", "source": { "type": "git", "url": "https://github.com/symfony/http-kernel.git", - "reference": "16a29c453966f29466ad34444ce97970a336f3c8" + "reference": "2953274c16a229b3933ef73a6898e18388e12e1b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/http-kernel/zipball/16a29c453966f29466ad34444ce97970a336f3c8", - "reference": "16a29c453966f29466ad34444ce97970a336f3c8", + "url": "https://api.github.com/repos/symfony/http-kernel/zipball/2953274c16a229b3933ef73a6898e18388e12e1b", + "reference": "2953274c16a229b3933ef73a6898e18388e12e1b", "shasum": "" }, "require": { @@ -10937,7 +11024,7 @@ "description": "Provides a structured process for converting a Request into a Response", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/http-kernel/tree/v6.4.0" + "source": "https://github.com/symfony/http-kernel/tree/v6.4.1" }, "funding": [ { @@ -10953,7 +11040,7 @@ "type": "tidelift" } ], - "time": "2023-11-29T10:40:15+00:00" + "time": "2023-12-01T17:02:02+00:00" }, { "name": "symfony/mailer", @@ -12215,16 +12302,16 @@ }, { "name": "symfony/routing", - "version": "v6.4.0", + "version": "v6.4.1", "source": { "type": "git", "url": "https://github.com/symfony/routing.git", - "reference": "ae014d60d7c8e80be5c3b644a286e91249a3e8f4" + "reference": "0c95c164fdba18b12523b75e64199ca3503e6d40" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/routing/zipball/ae014d60d7c8e80be5c3b644a286e91249a3e8f4", - "reference": "ae014d60d7c8e80be5c3b644a286e91249a3e8f4", + "url": "https://api.github.com/repos/symfony/routing/zipball/0c95c164fdba18b12523b75e64199ca3503e6d40", + "reference": "0c95c164fdba18b12523b75e64199ca3503e6d40", "shasum": "" }, "require": { @@ -12278,7 +12365,7 @@ "url" ], "support": { - "source": "https://github.com/symfony/routing/tree/v6.4.0" + "source": "https://github.com/symfony/routing/tree/v6.4.1" }, "funding": [ { @@ -12294,7 +12381,7 @@ "type": "tidelift" } ], - "time": "2023-11-29T08:04:54+00:00" + "time": "2023-12-01T14:54:37+00:00" }, { "name": "symfony/sendgrid-mailer", @@ -12868,23 +12955,23 @@ }, { "name": "tijsverkoyen/css-to-inline-styles", - "version": "2.2.6", + "version": "v2.2.7", "source": { "type": "git", "url": "https://github.com/tijsverkoyen/CssToInlineStyles.git", - "reference": "c42125b83a4fa63b187fdf29f9c93cb7733da30c" + "reference": "83ee6f38df0a63106a9e4536e3060458b74ccedb" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/tijsverkoyen/CssToInlineStyles/zipball/c42125b83a4fa63b187fdf29f9c93cb7733da30c", - "reference": "c42125b83a4fa63b187fdf29f9c93cb7733da30c", + "url": "https://api.github.com/repos/tijsverkoyen/CssToInlineStyles/zipball/83ee6f38df0a63106a9e4536e3060458b74ccedb", + "reference": "83ee6f38df0a63106a9e4536e3060458b74ccedb", "shasum": "" }, "require": { "ext-dom": "*", "ext-libxml": "*", "php": "^5.5 || ^7.0 || ^8.0", - "symfony/css-selector": "^2.7 || ^3.0 || ^4.0 || ^5.0 || ^6.0" + "symfony/css-selector": "^2.7 || ^3.0 || ^4.0 || ^5.0 || ^6.0 || ^7.0" }, "require-dev": { "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.0 || ^7.5 || ^8.5.21 || ^9.5.10" @@ -12915,9 +13002,9 @@ "homepage": "https://github.com/tijsverkoyen/CssToInlineStyles", "support": { "issues": "https://github.com/tijsverkoyen/CssToInlineStyles/issues", - "source": "https://github.com/tijsverkoyen/CssToInlineStyles/tree/2.2.6" + "source": "https://github.com/tijsverkoyen/CssToInlineStyles/tree/v2.2.7" }, - "time": "2023-01-03T09:29:04+00:00" + "time": "2023-12-08T13:03:43+00:00" }, { "name": "vlucas/phpdotenv", @@ -14222,16 +14309,16 @@ }, { "name": "phpunit/phpunit", - "version": "10.4.2", + "version": "10.5.2", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/phpunit.git", - "reference": "cacd8b9dd224efa8eb28beb69004126c7ca1a1a1" + "reference": "5aedff46afba98dddecaa12349ec044d9103d4fe" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/cacd8b9dd224efa8eb28beb69004126c7ca1a1a1", - "reference": "cacd8b9dd224efa8eb28beb69004126c7ca1a1a1", + "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/5aedff46afba98dddecaa12349ec044d9103d4fe", + "reference": "5aedff46afba98dddecaa12349ec044d9103d4fe", "shasum": "" }, "require": { @@ -14271,7 +14358,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-main": "10.4-dev" + "dev-main": "10.5-dev" } }, "autoload": { @@ -14303,7 +14390,7 @@ "support": { "issues": "https://github.com/sebastianbergmann/phpunit/issues", "security": "https://github.com/sebastianbergmann/phpunit/security/policy", - "source": "https://github.com/sebastianbergmann/phpunit/tree/10.4.2" + "source": "https://github.com/sebastianbergmann/phpunit/tree/10.5.2" }, "funding": [ { @@ -14319,7 +14406,7 @@ "type": "tidelift" } ], - "time": "2023-10-26T07:21:45+00:00" + "time": "2023-12-05T14:54:33+00:00" }, { "name": "sebastian/cli-parser", diff --git a/config/livewire.php b/config/livewire.php index 6c7389997..ed91dd94e 100644 --- a/config/livewire.php +++ b/config/livewire.php @@ -3,156 +3,157 @@ return [ /* - |-------------------------------------------------------------------------- + |--------------------------------------------------------------------------- | Class Namespace - |-------------------------------------------------------------------------- + |--------------------------------------------------------------------------- | - | This value sets the root namespace for Livewire component classes in - | your application. This value affects component auto-discovery and - | any Livewire file helper commands, like `artisan make:livewire`. - | - | After changing this item, run: `php artisan livewire:discover`. + | This value sets the root class namespace for Livewire component classes in + | your application. This value will change where component auto-discovery + | finds components. It's also referenced by the file creation commands. | */ 'class_namespace' => 'App\\Http\\Livewire', /* - |-------------------------------------------------------------------------- + |--------------------------------------------------------------------------- | View Path - |-------------------------------------------------------------------------- + |--------------------------------------------------------------------------- | - | This value sets the path for Livewire component views. This affects - | file manipulation helper commands like `artisan make:livewire`. + | This value is used to specify where Livewire component Blade templates are + | stored when running file creation commands like `artisan make:livewire`. + | It is also used if you choose to omit a component's render() method. | */ 'view_path' => resource_path('views/livewire'), /* - |-------------------------------------------------------------------------- + |--------------------------------------------------------------------------- | Layout - |-------------------------------------------------------------------------- - | The default layout view that will be used when rendering a component via - | Route::get('/some-endpoint', SomeComponent::class);. In this case the - | the view returned by SomeComponent will be wrapped in "layouts.app" + |--------------------------------------------------------------------------- + | The view that will be used as the layout when rendering a single component + | as an entire page via `Route::get('/post/create', CreatePost::class);`. + | In this case, the view returned by CreatePost will render into $slot. | */ 'layout' => 'components.layouts.admin', /* - |-------------------------------------------------------------------------- - | Livewire Assets URL - |-------------------------------------------------------------------------- - | - | This value sets the path to Livewire JavaScript assets, for cases where - | your app's domain root is not the correct path. By default, Livewire - | will load its JavaScript assets from the app's "relative root". - | - | Examples: "/assets", "myurl.com/app". + |--------------------------------------------------------------------------- + | Lazy Loading Placeholder + |--------------------------------------------------------------------------- + | Livewire allows you to lazy load components that would otherwise slow down + | the initial page load. Every component can have a custom placeholder or + | you can define the default placeholder view for all components below. | */ - 'asset_url' => env('ASSET_URL', 'public'), + 'lazy_placeholder' => null, /* - |-------------------------------------------------------------------------- - | Livewire App URL - |-------------------------------------------------------------------------- - | - | This value should be used if livewire assets are served from CDN. - | Livewire will communicate with an app through this url. - | - | Examples: "https://my-app.com", "myurl.com/app". - | - */ - - 'app_url' => env('APP_URL', 'localhost'), - - /* - |-------------------------------------------------------------------------- - | Livewire Endpoint Middleware Group - |-------------------------------------------------------------------------- - | - | This value sets the middleware group that will be applied to the main - | Livewire "message" endpoint (the endpoint that gets hit everytime - | a Livewire component updates). It is set to "web" by default. - | - */ - - 'middleware_group' => 'admin', - - /* - |-------------------------------------------------------------------------- - | Livewire Temporary File Uploads Endpoint Configuration - |-------------------------------------------------------------------------- + |--------------------------------------------------------------------------- + | Temporary File Uploads + |--------------------------------------------------------------------------- | | Livewire handles file uploads by storing uploads in a temporary directory - | before the file is validated and stored permanently. All file uploads - | are directed to a global endpoint for temporary storage. The config - | items below are used for customizing the way the endpoint works. + | before the file is stored permanently. All file uploads are directed to + | a global endpoint for temporary storage. You may configure this below: | */ 'temporary_file_upload' => [ - 'disk' => null, // Example: 'local', 's3' Default: 'default' - 'rules' => null, // Example: ['file', 'mimes:png,jpg'] Default: ['required', 'file', 'max:12288'] (12MB) - 'directory' => null, // Example: 'tmp' Default 'livewire-tmp' - 'middleware' => null, // Example: 'throttle:5,1' Default: 'throttle:60,1' - 'preview_mimes' => [ // Supported file types for temporary pre-signed file URLs. + 'disk' => null, // Example: 'local', 's3' | Default: 'default' + 'rules' => null, // Example: ['file', 'mimes:png,jpg'] | Default: ['required', 'file', 'max:12288'] (12MB) + 'directory' => null, // Example: 'tmp' | Default: 'livewire-tmp' + 'middleware' => null, // Example: 'throttle:5,1' | Default: 'throttle:60,1' + 'preview_mimes' => [ // Supported file types for temporary pre-signed file URLs... 'png', 'gif', 'bmp', 'svg', 'wav', 'mp4', 'mov', 'avi', 'wmv', 'mp3', 'm4a', 'jpg', 'jpeg', 'mpga', 'webp', 'wma', ], - 'max_upload_time' => 5, // Max duration (in minutes) before an upload gets invalidated. + 'max_upload_time' => 5, // Max duration (in minutes) before an upload is invalidated... ], /* - |-------------------------------------------------------------------------- - | Manifest File Path - |-------------------------------------------------------------------------- - | - | This value sets the path to the Livewire manifest file. - | The default should work for most cases (which is - | "/bootstrap/cache/livewire-components.php"), but for specific - | cases like when hosting on Laravel Vapor, it could be set to a different value. - | - | Example: for Laravel Vapor, it would be "/tmp/storage/bootstrap/cache/livewire-components.php". - | - */ - - 'manifest_path' => null, - - /* - |-------------------------------------------------------------------------- - | Back Button Cache - |-------------------------------------------------------------------------- - | - | This value determines whether the back button cache will be used on pages - | that contain Livewire. By disabling back button cache, it ensures that - | the back button shows the correct state of components, instead of - | potentially stale, cached data. - | - | Setting it to "false" (default) will disable back button cache. - | - */ - - 'back_button_cache' => false, - - /* - |-------------------------------------------------------------------------- + |--------------------------------------------------------------------------- | Render On Redirect - |-------------------------------------------------------------------------- + |--------------------------------------------------------------------------- | - | This value determines whether Livewire will render before it's redirected - | or not. Setting it to "false" (default) will mean the render method is - | skipped when redirecting. And "true" will mean the render method is - | run before redirecting. Browsers bfcache can store a potentially - | stale view if render is skipped on redirect. + | This value determines if Livewire will run a component's `render()` method + | after a redirect has been triggered using something like `redirect(...)` + | Setting this to true will render the view once more before redirecting | */ 'render_on_redirect' => false, +/* + |--------------------------------------------------------------------------- + | Eloquent Model Binding + |--------------------------------------------------------------------------- + | + | Previous versions of Livewire supported binding directly to eloquent model + | properties using wire:model by default. However, this behavior has been + | deemed too "magical" and has therefore been put under a feature flag. + | + */ + + 'legacy_model_binding' => false, + + /* + |--------------------------------------------------------------------------- + | Auto-inject Frontend Assets + |--------------------------------------------------------------------------- + | + | By default, Livewire automatically injects its JavaScript and CSS into the + | and of pages containing Livewire components. By disabling + | this behavior, you need to use @livewireStyles and @livewireScripts. + | + */ + + 'inject_assets' => true, + + /* + |--------------------------------------------------------------------------- + | Navigate (SPA mode) + |--------------------------------------------------------------------------- + | + | By adding `wire:navigate` to links in your Livewire application, Livewire + | will prevent the default link handling and instead request those pages + | via AJAX, creating an SPA-like effect. Configure this behavior here. + | + */ + + 'navigate' => [ + 'show_progress_bar' => true, + 'progress_bar_color' => '#2299dd', + ], + + /* + |--------------------------------------------------------------------------- + | HTML Morph Markers + |--------------------------------------------------------------------------- + | + | Livewire intelligently "morphs" existing HTML into the newly rendered HTML + | after each update. To make this process more reliable, Livewire injects + | "markers" into the rendered Blade surrounding @if, @class & @foreach. + | + */ + + 'inject_morph_markers' => true, + + /* + |--------------------------------------------------------------------------- + | Pagination Theme + |--------------------------------------------------------------------------- + | + | When enabling Livewire's pagination feature by using the `WithPagination` + | trait, Livewire will use Tailwind templates to render pagination views + | on the page. If you want Bootstrap CSS, you can specify: "bootstrap" + | + */ + + 'pagination_theme' => 'tailwind', ]; diff --git a/overrides/livewire/LivewireServiceProvider.php b/overrides/livewire/LivewireServiceProvider.php deleted file mode 100644 index 37831154e..000000000 --- a/overrides/livewire/LivewireServiceProvider.php +++ /dev/null @@ -1,442 +0,0 @@ -registerConfig(); - $this->registerTestMacros(); - $this->registerLivewireSingleton(); - $this->registerComponentAutoDiscovery(); - } - - public function boot() - { - $this->registerViews(); - $this->registerRoutes(); - $this->registerCommands(); - $this->registerFeatures(); - $this->registerViewMacros(); - $this->registerTagCompiler(); - $this->registerPublishables(); - $this->registerBladeDirectives(); - $this->registerViewCompilerEngine(); - $this->registerHydrationMiddleware(); - $this->registerDisableBrowserCacheMiddleware(); - - // Bypass specific middlewares during Livewire requests. - // These are usually helpful during a typical request, but - // during Livewire requests, they can damage data properties. - if (! $this->attemptToBypassRequestModifyingMiddlewareViaCallbacks()) { - $this->bypassTheseMiddlewaresDuringLivewireRequests([ - TrimStrings::class, - ConvertEmptyStringsToNull::class, - // If the app overrode "TrimStrings". - \App\Http\Middleware\TrimStrings::class, - ]); - } - } - - protected function registerLivewireSingleton() - { - $this->app->singleton(LivewireManager::class); - - $this->app->alias(LivewireManager::class, 'livewire'); - } - - protected function registerComponentAutoDiscovery() - { - // Rather than forcing users to register each individual component, - // we will auto-detect the component's class based on its kebab-cased - // alias. For instance: 'examples.foo' => App\Http\Livewire\Examples\Foo - - // We will generate a manifest file so we don't have to do the lookup every time. - $defaultManifestPath = $this->app['livewire']->isRunningServerless() - ? '/tmp/storage/bootstrap/cache/livewire-components.php' - : app()->bootstrapPath('cache/livewire-components.php'); - - $this->app->singleton(LivewireComponentsFinder::class, function () use ($defaultManifestPath) { - return new LivewireComponentsFinder( - new Filesystem, - config('livewire.manifest_path') ?: $defaultManifestPath, - ComponentParser::generatePathFromNamespace( - config('livewire.class_namespace') - ) - ); - }); - } - - protected function registerConfig() - { - $this->mergeConfigFrom(__DIR__.'/../../vendor/livewire/livewire/config/livewire.php', 'livewire'); - } - - protected function registerViews() - { - // This is mainly for overriding Laravel's pagination views - // when a user applies the WithPagination trait to a component. - $this->loadViewsFrom( - __DIR__.'/../../vendor/livewire/livewire/src'.DIRECTORY_SEPARATOR.'views'.DIRECTORY_SEPARATOR.'pagination', - 'livewire' - ); - } - - protected function registerRoutes() - { - RouteFacade::post('/{company_id}/livewire/message/{name}', HttpConnectionHandler::class) - ->name('livewire.message') - ->middleware(config('livewire.middleware_group', '')); - - RouteFacade::post('/{company_id}/livewire/upload-file', [FileUploadHandler::class, 'handle']) - ->name('livewire.upload-file') - ->middleware(config('livewire.middleware_group', '')); - - RouteFacade::get('/{company_id}/livewire/preview-file/{filename}', [FilePreviewHandler::class, 'handle']) - ->name('livewire.preview-file') - ->middleware(config('livewire.middleware_group', '')); - - RouteFacade::get('/livewire/livewire.js', [LivewireJavaScriptAssets::class, 'source']); - RouteFacade::get('/livewire/livewire.js.map', [LivewireJavaScriptAssets::class, 'maps']); - } - - protected function registerCommands() - { - if (! $this->app->runningInConsole()) return; - - $this->commands([ - MakeLivewireCommand::class, // make:livewire - MakeCommand::class, // livewire:make - TouchCommand::class, // livewire:touch - CopyCommand::class, // livewire:copy - CpCommand::class, // livewire:cp - DeleteCommand::class, // livewire:delete - RmCommand::class, // livewire:rm - MoveCommand::class, // livewire:move - MvCommand::class, // livewire:mv - StubsCommand::class, // livewire:stubs - DiscoverCommand::class, // livewire:discover - S3CleanupCommand::class, // livewire:configure-s3-upload-cleanup - PublishCommand::class, // livewire:publish - ]); - } - - protected function registerTestMacros() - { - // Usage: $this->assertSeeLivewire('counter'); - TestResponse::macro('assertSeeLivewire', function ($component) { - if (is_subclass_of($component, Component::class)) { - $component = $component::getName(); - } - - $escapedComponentName = trim(htmlspecialchars(json_encode(['name' => $component])), '{}'); - - \PHPUnit\Framework\Assert::assertStringContainsString( - $escapedComponentName, - $this->getContent(), - 'Cannot find Livewire component ['.$component.'] rendered on page.' - ); - - return $this; - }); - - // Usage: $this->assertDontSeeLivewire('counter'); - TestResponse::macro('assertDontSeeLivewire', function ($component) { - if (is_subclass_of($component, Component::class)) { - $component = $component::getName(); - } - - $escapedComponentName = trim(htmlspecialchars(json_encode(['name' => $component])), '{}'); - - \PHPUnit\Framework\Assert::assertStringNotContainsString( - $escapedComponentName, - $this->getContent(), - 'Found Livewire component ['.$component.'] rendered on page.' - ); - - return $this; - }); - - if (class_exists(TestView::class)) { - TestView::macro('assertSeeLivewire', function ($component) { - if (is_subclass_of($component, Component::class)) { - $component = $component::getName(); - } - - $escapedComponentName = trim(htmlspecialchars(json_encode(['name' => $component])), '{}'); - - \PHPUnit\Framework\Assert::assertStringContainsString( - $escapedComponentName, - $this->rendered, - 'Cannot find Livewire component ['.$component.'] rendered on page.' - ); - - return $this; - }); - - TestView::macro('assertDontSeeLivewire', function ($component) { - if (is_subclass_of($component, Component::class)) { - $component = $component::getName(); - } - - $escapedComponentName = trim(htmlspecialchars(json_encode(['name' => $component])), '{}'); - - \PHPUnit\Framework\Assert::assertStringNotContainsString( - $escapedComponentName, - $this->rendered, - 'Found Livewire component ['.$component.'] rendered on page.' - ); - - return $this; - }); - } - } - - protected function registerViewMacros() - { - // Early versions of Laravel 7.x don't have this method. - if (method_exists(ComponentAttributeBag::class, 'macro')) { - ComponentAttributeBag::macro('wire', function ($name) { - $entries = head((array) $this->whereStartsWith('wire:'.$name)); - - $directive = head(array_keys($entries)); - $value = head(array_values($entries)); - - return new WireDirective($name, $directive, $value); - }); - } - - View::mixin(new ViewMacros); - } - - protected function registerTagCompiler() - { - if (method_exists($this->app['blade.compiler'], 'precompiler')) { - $this->app['blade.compiler']->precompiler(function ($string) { - return app(LivewireTagCompiler::class)->compile($string); - }); - } - } - - protected function registerPublishables() - { - $this->publishesToGroups([ - __DIR__.'/../../vendor/livewire/livewire/dist' => public_path('vendor/livewire'), - ], ['livewire', 'livewire:assets']); - - $this->publishesToGroups([ - __DIR__.'/../../vendor/livewire/livewire/config/livewire.php' => base_path('config/livewire.php'), - ], ['livewire', 'livewire:config']); - - $this->publishesToGroups([ - __DIR__.'/../../vendor/livewire/livewire/src/views/pagination' => $this->app->resourcePath('views/vendor/livewire'), - ], ['livewire', 'livewire:pagination']); - } - - protected function registerBladeDirectives() - { - Blade::directive('js', [LivewireBladeDirectives::class, 'js']); - Blade::directive('this', [LivewireBladeDirectives::class, 'this']); - Blade::directive('entangle', [LivewireBladeDirectives::class, 'entangle']); - Blade::directive('livewire', [LivewireBladeDirectives::class, 'livewire']); - Blade::directive('livewireStyles', [LivewireBladeDirectives::class, 'livewireStyles']); - Blade::directive('livewireScripts', [LivewireBladeDirectives::class, 'livewireScripts']); - - // Uncomment to get @stacks working in Livewire. - // Blade::directive('stack', [LivewireBladeDirectives::class, 'stack']); - // Blade::directive('once', [LivewireBladeDirectives::class, 'once']); - // Blade::directive('endonce', [LivewireBladeDirectives::class, 'endonce']); - // Blade::directive('push', [LivewireBladeDirectives::class, 'push']); - // Blade::directive('endpush', [LivewireBladeDirectives::class, 'endpush']); - // Blade::directive('prepend', [LivewireBladeDirectives::class, 'prepend']); - // Blade::directive('endprepend', [LivewireBladeDirectives::class, 'endprepend']); - } - - protected function registerViewCompilerEngine() - { - // This is a custom view engine that gets used when rendering - // Livewire views. Things like letting certain exceptions bubble - // to the handler, and registering custom directives like: "@this". - $this->app->make('view.engine.resolver')->register('blade', function () { - - // If the application is using Ignition, make sure Livewire's view compiler - // uses a version that extends Ignition's so it can continue to report errors - // correctly. Don't change this class without first submitting a PR to Ignition. - if (class_exists('Facade\Ignition\IgnitionServiceProvider')) { - return new CompilerEngineForIgnition($this->app['blade.compiler']); - } - - return new LivewireViewCompilerEngine($this->app['blade.compiler']); - }); - } - - protected function registerFeatures() - { - Features\SupportEvents::init(); - Features\SupportStacks::init(); - Features\SupportLocales::init(); - Features\SupportChildren::init(); - Features\SupportRedirects::init(); - Features\SupportValidation::init(); - Features\SupportBootMethod::init(); - Features\SupportFileUploads::init(); - Features\OptimizeRenderedDom::init(); - Features\SupportFileDownloads::init(); - Features\SupportActionReturns::init(); - Features\SupportBrowserHistory::init(); - Features\SupportComponentTraits::init(); - Features\SupportRootElementTracking::init(); - Features\SupportPostDeploymentInvalidation::init(); - } - - protected function registerHydrationMiddleware() - { - LifecycleManager::registerHydrationMiddleware([ - - /* This is the core middleware stack of Livewire. It's important */ - /* to understand that the request goes through each class by the */ - /* order it is listed in this array, and is reversed on response */ - /* */ - /* ↓ Incoming Request Outgoing Response ↑ */ - /* ↓ ↑ */ - /* ↓ Secure Stuff ↑ */ - /* ↓ */ SecureHydrationWithChecksum::class, /* --------------- ↑ */ - /* ↓ */ NormalizeServerMemoSansDataForJavaScript::class, /* -- ↑ */ - /* ↓ */ HashDataPropertiesForDirtyDetection::class, /* ------- ↑ */ - /* ↓ ↑ */ - /* ↓ Hydrate Stuff ↑ */ - /* ↓ */ HydratePublicProperties::class, /* ------------------- ↑ */ - /* ↓ */ CallPropertyHydrationHooks::class, /* ---------------- ↑ */ - /* ↓ */ CallHydrationHooks::class, /* ------------------------ ↑ */ - /* ↓ ↑ */ - /* ↓ Update Stuff ↑ */ - /* ↓ */ PerformDataBindingUpdates::class, /* ----------------- ↑ */ - /* ↓ */ PerformActionCalls::class, /* ------------------------ ↑ */ - /* ↓ */ PerformEventEmissions::class, /* --------------------- ↑ */ - /* ↓ ↑ */ - /* ↓ Output Stuff ↑ */ - /* ↓ */ RenderView::class, /* -------------------------------- ↑ */ - /* ↓ */ NormalizeComponentPropertiesForJavaScript::class, /* - ↑ */ - - ]); - - LifecycleManager::registerInitialDehydrationMiddleware([ - - /* Initial Response */ - /* ↑ */ [SecureHydrationWithChecksum::class, 'dehydrate'], - /* ↑ */ [NormalizeServerMemoSansDataForJavaScript::class, 'dehydrate'], - /* ↑ */ [HydratePublicProperties::class, 'dehydrate'], - /* ↑ */ [CallPropertyHydrationHooks::class, 'dehydrate'], - /* ↑ */ [CallHydrationHooks::class, 'initialDehydrate'], - /* ↑ */ [RenderView::class, 'dehydrate'], - /* ↑ */ [NormalizeComponentPropertiesForJavaScript::class, 'dehydrate'], - - ]); - - LifecycleManager::registerInitialHydrationMiddleware([ - - [CallHydrationHooks::class, 'initialHydrate'], - - ]); - } - - protected function registerDisableBrowserCacheMiddleware() - { - $kernel = $this->app->make(\Illuminate\Contracts\Http\Kernel::class); - - if ($kernel->hasMiddleware(DisableBrowserCache::class)) { - return; - } - - $kernel->pushMiddleware(DisableBrowserCache::class); - } - - protected function attemptToBypassRequestModifyingMiddlewareViaCallbacks() - { - if (method_exists(TrimStrings::class, 'skipWhen') && - method_exists(ConvertEmptyStringsToNull::class, 'skipWhen')) { - TrimStrings::skipWhen(function () { - return Livewire::isProbablyLivewireRequest(); - }); - - ConvertEmptyStringsToNull::skipWhen(function () { - return Livewire::isProbablyLivewireRequest(); - }); - - return true; - } - - return false; - } - - protected function bypassTheseMiddlewaresDuringLivewireRequests(array $middlewareToExclude) - { - if (! Livewire::isProbablyLivewireRequest()) return; - - $kernel = $this->app->make(\Illuminate\Contracts\Http\Kernel::class); - - invade($kernel)->middleware = array_diff( - invade($kernel)->middleware, - $middlewareToExclude - ); - } - - protected function publishesToGroups(array $paths, $groups = null) - { - if (is_null($groups)) { - $this->publishes($paths); - - return; - } - - foreach ((array) $groups as $group) { - $this->publishes($paths, $group); - } - } -} diff --git a/overrides/livewire/livewire/Mechanisms/HandleRequests/HandleRequests.php b/overrides/livewire/livewire/Mechanisms/HandleRequests/HandleRequests.php new file mode 100644 index 000000000..36130b587 --- /dev/null +++ b/overrides/livewire/livewire/Mechanisms/HandleRequests/HandleRequests.php @@ -0,0 +1,113 @@ +singleton($this::class); + } + + function boot() + { + app($this::class)->setUpdateRoute(function ($handle) { + return Route::post('/livewire/update', $handle)->middleware('web'); + }); + + $this->skipRequestPayloadTamperingMiddleware(); + } + + function getUpdateUri() + { + /*return (string) str( + route($this->updateRoute->getName(), [], false) + )->start('/');*/ + + // @akaunting change start + return (string) str( + route($this->updateRoute->getName()) + ); + // @akaunting change end + } + + function skipRequestPayloadTamperingMiddleware() + { + \Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull::skipWhen(function () { + return $this->isLivewireRequest(); + }); + + \Illuminate\Foundation\Http\Middleware\TrimStrings::skipWhen(function () { + return $this->isLivewireRequest(); + }); + } + + function setUpdateRoute($callback) + { + $route = $callback([self::class, 'handleUpdate']); + + // Append `livewire.update` to the existing name, if any. + if (! str($route->getName())->endsWith('livewire.update')) { + $route->name('livewire.update'); + } + + $this->updateRoute = $route; + } + + function isLivewireRequest() + { + return request()->hasHeader('X-Livewire'); + } + + function isLivewireRoute() + { + // @todo: Rename this back to `isLivewireRequest` once the need for it in tests has been fixed. + $route = request()->route(); + + if (! $route) return false; + + /* + * Check to see if route name ends with `livewire.update`, as if + * a custom update route is used and they add a name, then when + * we call `->name('livewire.update')` on the route it will + * suffix the existing name with `livewire.update`. + */ + return $route->named('*livewire.update'); + } + + function handleUpdate() + { + $components = request('components'); + + $responses = []; + + foreach ($components as $component) { + $snapshot = json_decode($component['snapshot'], associative: true); + $updates = $component['updates']; + $calls = $component['calls']; + + [ $snapshot, $effects ] = app('livewire')->update($snapshot, $updates, $calls); + + $responses[] = [ + 'snapshot' => json_encode($snapshot), + 'effects' => $effects, + ]; + } + + $response = [ + 'components' => $responses, + 'assets' => SupportScriptsAndAssets::getAssets(), + ]; + + $finish = trigger('profile.response', $response); + + return $finish($response); + } +} diff --git a/public/vendor/alpinejs/alpine.min.js b/public/vendor/alpinejs/alpine.min.js deleted file mode 100644 index 65bce2dee..000000000 --- a/public/vendor/alpinejs/alpine.min.js +++ /dev/null @@ -1,11 +0,0 @@ -/* - * 05.07.2023 - * Alpine.js version : 3.12.3 - * Original file: https://cdn.jsdelivr.net/npm/alpinejs@3.12.3/dist/cdn.min.js - */ -(()=>{var Xe=!1,Ze=!1,V=[],Qe=-1;function Kt(e){En(e)}function En(e){V.includes(e)||V.push(e),Sn()}function ye(e){let t=V.indexOf(e);t!==-1&&t>Qe&&V.splice(t,1)}function Sn(){!Ze&&!Xe&&(Xe=!0,queueMicrotask(An))}function An(){Xe=!1,Ze=!0;for(let e=0;ee.effect(t,{scheduler:r=>{tt?Kt(r):r()}}),et=e.raw}function rt(e){D=e}function Ht(e){let t=()=>{};return[n=>{let i=D(n);return e._x_effects||(e._x_effects=new Set,e._x_runEffects=()=>{e._x_effects.forEach(o=>o())}),e._x_effects.add(i),t=()=>{i!==void 0&&(e._x_effects.delete(i),$(i))},i},()=>{t()}]}var qt=[],Ut=[],Wt=[];function Gt(e){Wt.push(e)}function be(e,t){typeof t=="function"?(e._x_cleanups||(e._x_cleanups=[]),e._x_cleanups.push(t)):(t=e,Ut.push(t))}function Jt(e){qt.push(e)}function Yt(e,t,r){e._x_attributeCleanups||(e._x_attributeCleanups={}),e._x_attributeCleanups[t]||(e._x_attributeCleanups[t]=[]),e._x_attributeCleanups[t].push(r)}function nt(e,t){!e._x_attributeCleanups||Object.entries(e._x_attributeCleanups).forEach(([r,n])=>{(t===void 0||t.includes(r))&&(n.forEach(i=>i()),delete e._x_attributeCleanups[r])})}var ot=new MutationObserver(it),st=!1;function se(){ot.observe(document,{subtree:!0,childList:!0,attributes:!0,attributeOldValue:!0}),st=!0}function at(){On(),ot.disconnect(),st=!1}var ae=[],ct=!1;function On(){ae=ae.concat(ot.takeRecords()),ae.length&&!ct&&(ct=!0,queueMicrotask(()=>{Tn(),ct=!1}))}function Tn(){it(ae),ae.length=0}function h(e){if(!st)return e();at();let t=e();return se(),t}var lt=!1,ve=[];function Xt(){lt=!0}function Zt(){lt=!1,it(ve),ve=[]}function it(e){if(lt){ve=ve.concat(e);return}let t=[],r=[],n=new Map,i=new Map;for(let o=0;os.nodeType===1&&t.push(s)),e[o].removedNodes.forEach(s=>s.nodeType===1&&r.push(s))),e[o].type==="attributes")){let s=e[o].target,a=e[o].attributeName,c=e[o].oldValue,l=()=>{n.has(s)||n.set(s,[]),n.get(s).push({name:a,value:s.getAttribute(a)})},u=()=>{i.has(s)||i.set(s,[]),i.get(s).push(a)};s.hasAttribute(a)&&c===null?l():s.hasAttribute(a)?(u(),l()):u()}i.forEach((o,s)=>{nt(s,o)}),n.forEach((o,s)=>{qt.forEach(a=>a(s,o))});for(let o of r)if(!t.includes(o)&&(Ut.forEach(s=>s(o)),o._x_cleanups))for(;o._x_cleanups.length;)o._x_cleanups.pop()();t.forEach(o=>{o._x_ignoreSelf=!0,o._x_ignore=!0});for(let o of t)r.includes(o)||!o.isConnected||(delete o._x_ignoreSelf,delete o._x_ignore,Wt.forEach(s=>s(o)),o._x_ignore=!0,o._x_ignoreSelf=!0);t.forEach(o=>{delete o._x_ignoreSelf,delete o._x_ignore}),t=null,r=null,n=null,i=null}function we(e){return F(L(e))}function N(e,t,r){return e._x_dataStack=[t,...L(r||e)],()=>{e._x_dataStack=e._x_dataStack.filter(n=>n!==t)}}function L(e){return e._x_dataStack?e._x_dataStack:typeof ShadowRoot=="function"&&e instanceof ShadowRoot?L(e.host):e.parentNode?L(e.parentNode):[]}function F(e){let t=new Proxy({},{ownKeys:()=>Array.from(new Set(e.flatMap(r=>Object.keys(r)))),has:(r,n)=>e.some(i=>i.hasOwnProperty(n)),get:(r,n)=>(e.find(i=>{if(i.hasOwnProperty(n)){let o=Object.getOwnPropertyDescriptor(i,n);if(o.get&&o.get._x_alreadyBound||o.set&&o.set._x_alreadyBound)return!0;if((o.get||o.set)&&o.enumerable){let s=o.get,a=o.set,c=o;s=s&&s.bind(t),a=a&&a.bind(t),s&&(s._x_alreadyBound=!0),a&&(a._x_alreadyBound=!0),Object.defineProperty(i,n,{...c,get:s,set:a})}return!0}return!1})||{})[n],set:(r,n,i)=>{let o=e.find(s=>s.hasOwnProperty(n));return o?o[n]=i:e[e.length-1][n]=i,!0}});return t}function Ee(e){let t=n=>typeof n=="object"&&!Array.isArray(n)&&n!==null,r=(n,i="")=>{Object.entries(Object.getOwnPropertyDescriptors(n)).forEach(([o,{value:s,enumerable:a}])=>{if(a===!1||s===void 0)return;let c=i===""?o:`${i}.${o}`;typeof s=="object"&&s!==null&&s._x_interceptor?n[o]=s.initialize(e,c,o):t(s)&&s!==n&&!(s instanceof Element)&&r(s,c)})};return r(e)}function Se(e,t=()=>{}){let r={initialValue:void 0,_x_interceptor:!0,initialize(n,i,o){return e(this.initialValue,()=>Cn(n,i),s=>ut(n,i,s),i,o)}};return t(r),n=>{if(typeof n=="object"&&n!==null&&n._x_interceptor){let i=r.initialize.bind(r);r.initialize=(o,s,a)=>{let c=n.initialize(o,s,a);return r.initialValue=c,i(o,s,a)}}else r.initialValue=n;return r}}function Cn(e,t){return t.split(".").reduce((r,n)=>r[n],e)}function ut(e,t,r){if(typeof t=="string"&&(t=t.split(".")),t.length===1)e[t[0]]=r;else{if(t.length===0)throw error;return e[t[0]]||(e[t[0]]={}),ut(e[t[0]],t.slice(1),r)}}var Qt={};function y(e,t){Qt[e]=t}function ce(e,t){return Object.entries(Qt).forEach(([r,n])=>{let i=null;function o(){if(i)return i;{let[s,a]=ft(t);return i={interceptor:Se,...s},be(t,a),i}}Object.defineProperty(e,`$${r}`,{get(){return n(t,o())},enumerable:!1})}),e}function er(e,t,r,...n){try{return r(...n)}catch(i){X(i,e,t)}}function X(e,t,r=void 0){Object.assign(e,{el:t,expression:r}),console.warn(`Alpine Expression Error: ${e.message} - -${r?'Expression: "'+r+`" - -`:""}`,t),setTimeout(()=>{throw e},0)}var Ae=!0;function Oe(e){let t=Ae;Ae=!1;let r=e();return Ae=t,r}function R(e,t,r={}){let n;return x(e,t)(i=>n=i,r),n}function x(...e){return tr(...e)}var tr=dt;function rr(e){tr=e}function dt(e,t){let r={};ce(r,e);let n=[r,...L(e)],i=typeof t=="function"?Rn(n,t):Mn(n,t,e);return er.bind(null,e,t,i)}function Rn(e,t){return(r=()=>{},{scope:n={},params:i=[]}={})=>{let o=t.apply(F([n,...e]),i);Te(r,o)}}var pt={};function Nn(e,t){if(pt[e])return pt[e];let r=Object.getPrototypeOf(async function(){}).constructor,n=/^[\n\s]*if.*\(.*\)/.test(e)||/^(let|const)\s/.test(e)?`(async()=>{ ${e} })()`:e,o=(()=>{try{return new r(["__self","scope"],`with (scope) { __self.result = ${n} }; __self.finished = true; return __self.result;`)}catch(s){return X(s,t,e),Promise.resolve()}})();return pt[e]=o,o}function Mn(e,t,r){let n=Nn(t,r);return(i=()=>{},{scope:o={},params:s=[]}={})=>{n.result=void 0,n.finished=!1;let a=F([o,...e]);if(typeof n=="function"){let c=n(n,a).catch(l=>X(l,r,t));n.finished?(Te(i,n.result,a,s,r),n.result=void 0):c.then(l=>{Te(i,l,a,s,r)}).catch(l=>X(l,r,t)).finally(()=>n.result=void 0)}}}function Te(e,t,r,n,i){if(Ae&&typeof t=="function"){let o=t.apply(r,n);o instanceof Promise?o.then(s=>Te(e,s,r,n)).catch(s=>X(s,i,t)):e(o)}else typeof t=="object"&&t instanceof Promise?t.then(o=>e(o)):e(t)}var mt="x-";function O(e=""){return mt+e}function nr(e){mt=e}var ht={};function p(e,t){return ht[e]=t,{before(r){if(!ht[r]){console.warn("Cannot find directive `${directive}`. `${name}` will use the default order of execution");return}let n=H.indexOf(r);H.splice(n>=0?n:H.indexOf("DEFAULT"),0,e)}}}function le(e,t,r){if(t=Array.from(t),e._x_virtualDirectives){let o=Object.entries(e._x_virtualDirectives).map(([a,c])=>({name:a,value:c})),s=_t(o);o=o.map(a=>s.find(c=>c.name===a.name)?{name:`x-bind:${a.name}`,value:`"${a.value}"`}:a),t=t.concat(o)}let n={};return t.map(ir((o,s)=>n[o]=s)).filter(or).map(In(n,r)).sort(Dn).map(o=>Pn(e,o))}function _t(e){return Array.from(e).map(ir()).filter(t=>!or(t))}var gt=!1,ue=new Map,sr=Symbol();function ar(e){gt=!0;let t=Symbol();sr=t,ue.set(t,[]);let r=()=>{for(;ue.get(t).length;)ue.get(t).shift()();ue.delete(t)},n=()=>{gt=!1,r()};e(r),n()}function ft(e){let t=[],r=a=>t.push(a),[n,i]=Ht(e);return t.push(i),[{Alpine:j,effect:n,cleanup:r,evaluateLater:x.bind(x,e),evaluate:R.bind(R,e)},()=>t.forEach(a=>a())]}function Pn(e,t){let r=()=>{},n=ht[t.type]||r,[i,o]=ft(e);Yt(e,t.original,o);let s=()=>{e._x_ignore||e._x_ignoreSelf||(n.inline&&n.inline(e,t,i),n=n.bind(n,e,t,i),gt?ue.get(sr).push(n):n())};return s.runCleanups=o,s}var Ce=(e,t)=>({name:r,value:n})=>(r.startsWith(e)&&(r=r.replace(e,t)),{name:r,value:n}),Re=e=>e;function ir(e=()=>{}){return({name:t,value:r})=>{let{name:n,value:i}=cr.reduce((o,s)=>s(o),{name:t,value:r});return n!==t&&e(n,t),{name:n,value:i}}}var cr=[];function Z(e){cr.push(e)}function or({name:e}){return lr().test(e)}var lr=()=>new RegExp(`^${mt}([^:^.]+)\\b`);function In(e,t){return({name:r,value:n})=>{let i=r.match(lr()),o=r.match(/:([a-zA-Z0-9\-:]+)/),s=r.match(/\.[^.\]]+(?=[^\]]*$)/g)||[],a=t||e[r]||r;return{type:i?i[1]:null,value:o?o[1]:null,modifiers:s.map(c=>c.replace(".","")),expression:n,original:a}}}var xt="DEFAULT",H=["ignore","ref","data","id","bind","init","for","model","modelable","transition","show","if",xt,"teleport"];function Dn(e,t){let r=H.indexOf(e.type)===-1?xt:e.type,n=H.indexOf(t.type)===-1?xt:t.type;return H.indexOf(r)-H.indexOf(n)}function q(e,t,r={}){e.dispatchEvent(new CustomEvent(t,{detail:r,bubbles:!0,composed:!0,cancelable:!0}))}function T(e,t){if(typeof ShadowRoot=="function"&&e instanceof ShadowRoot){Array.from(e.children).forEach(i=>T(i,t));return}let r=!1;if(t(e,()=>r=!0),r)return;let n=e.firstElementChild;for(;n;)T(n,t,!1),n=n.nextElementSibling}function S(e,...t){console.warn(`Alpine Warning: ${e}`,...t)}var ur=!1;function dr(){ur&&S("Alpine has already been initialized on this page. Calling Alpine.start() more than once can cause problems."),ur=!0,document.body||S("Unable to initialize. Trying to load Alpine before `` is available. Did you forget to add `defer` in Alpine's ` - - - - -@stack('scripts_end') \ No newline at end of file +@stack('scripts_end') diff --git a/resources/views/components/layouts/auth/scripts.blade.php b/resources/views/components/layouts/auth/scripts.blade.php index 13f821e60..5213237ac 100644 --- a/resources/views/components/layouts/auth/scripts.blade.php +++ b/resources/views/components/layouts/auth/scripts.blade.php @@ -10,8 +10,4 @@ @stack('body_scripts') -@livewireScripts - - - @stack('scripts_end') diff --git a/resources/views/components/layouts/portal/scripts.blade.php b/resources/views/components/layouts/portal/scripts.blade.php index e85d09de2..50e795aa1 100644 --- a/resources/views/components/layouts/portal/scripts.blade.php +++ b/resources/views/components/layouts/portal/scripts.blade.php @@ -124,7 +124,7 @@ if (button.getAttribute("data-menu") !== menuRef && iconButton.children[0].textContent != "cancel") { button.children[0].textContent = button.children[0].getAttribute("name"); button.children[0].classList.remove("active"); // inactive icon - + let split_id = button.children[0].id.split("-cancel"); button.children[0].id = split_id[0]; } @@ -143,7 +143,7 @@ mainContent.classList.add("hidden"); toggleButton.classList.add("invisible"); menuClose.classList.remove("hidden"); - + //for hidden menu, show close icon scenario if (sideBar.classList.contains("menu-list-hidden")) { menuClose.classList.add("ltr:-right-57", "rtl:right-59"); @@ -151,7 +151,7 @@ } else { menuClose.classList.add("ltr:-right-2", "rtl:right-12"); } - + sectionContent.classList.remove("xl:ltr:ml-0", "xl:rtl:mr-0"); sectionContent.classList.add("xl:ltr:ml-64", "xl:rtl:mr-64"); //for hidden menu, show close icon scenario @@ -268,11 +268,4 @@ @livewireScripts - - - - - -@stack('scripts_end') \ No newline at end of file +@stack('scripts_end') diff --git a/resources/views/components/layouts/preview/scripts.blade.php b/resources/views/components/layouts/preview/scripts.blade.php index c0309b6cf..38d173c34 100644 --- a/resources/views/components/layouts/preview/scripts.blade.php +++ b/resources/views/components/layouts/preview/scripts.blade.php @@ -1,13 +1,13 @@ @stack('scripts_start') - @stack('body_css') - @stack('body_stylesheet') +@stack('body_css') - @stack('body_js') +@stack('body_stylesheet') - @stack('body_scripts') +@stack('body_js') + +@stack('body_scripts') + +@livewireScripts - @livewireScripts - - @stack('scripts_end') diff --git a/resources/views/components/layouts/print/scripts.blade.php b/resources/views/components/layouts/print/scripts.blade.php index f13c9a4ce..aefeb326e 100644 --- a/resources/views/components/layouts/print/scripts.blade.php +++ b/resources/views/components/layouts/print/scripts.blade.php @@ -21,9 +21,4 @@ @livewireScripts - - - @stack('scripts_end') diff --git a/resources/views/components/layouts/signed/scripts.blade.php b/resources/views/components/layouts/signed/scripts.blade.php index c0309b6cf..38d173c34 100644 --- a/resources/views/components/layouts/signed/scripts.blade.php +++ b/resources/views/components/layouts/signed/scripts.blade.php @@ -1,13 +1,13 @@ @stack('scripts_start') - @stack('body_css') - @stack('body_stylesheet') +@stack('body_css') - @stack('body_js') +@stack('body_stylesheet') - @stack('body_scripts') +@stack('body_js') + +@stack('body_scripts') + +@livewireScripts - @livewireScripts - - @stack('scripts_end') diff --git a/resources/views/components/layouts/wizard/scripts.blade.php b/resources/views/components/layouts/wizard/scripts.blade.php index 02294861e..1462c19be 100644 --- a/resources/views/components/layouts/wizard/scripts.blade.php +++ b/resources/views/components/layouts/wizard/scripts.blade.php @@ -1,27 +1,29 @@ @stack('scripts_start') - - - - - + + + + - + - @stack('body_css') + - @stack('body_stylesheet') +@stack('body_css') - @stack('body_js') +@stack('body_stylesheet') - @stack('body_scripts') +@stack('body_js') + +@stack('body_scripts') + +@livewireScripts - @livewireScripts @stack('scripts_end') diff --git a/resources/views/livewire/common/search.blade.php b/resources/views/livewire/common/search.blade.php index e40e43791..313bc0460 100644 --- a/resources/views/livewire/common/search.blade.php +++ b/resources/views/livewire/common/search.blade.php @@ -7,7 +7,7 @@ - + @if ($results)