From b07a4a0b5859dd16ceb8581c1646dcac6b4d28cb Mon Sep 17 00:00:00 2001 From: salam Date: Mon, 24 Aug 2026 09:53:11 +0200 Subject: [PATCH] =?UTF-8?q?remove=20bei=20PDF=20Zusammenstellung=20auflist?= =?UTF-8?q?ung=20der=20Gescho=C3=9Fe?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Generate/Tabellen/Zusammenstellung.php | 39 +- composer.lock | 645 +++++++++--------- .../forms/components/markdown-editor.js | 2 +- 3 files changed, 356 insertions(+), 330 deletions(-) diff --git a/app/Actions/Generate/Tabellen/Zusammenstellung.php b/app/Actions/Generate/Tabellen/Zusammenstellung.php index 9b05f52..d2c1d0e 100644 --- a/app/Actions/Generate/Tabellen/Zusammenstellung.php +++ b/app/Actions/Generate/Tabellen/Zusammenstellung.php @@ -32,7 +32,7 @@ class Zusammenstellung ->get(); foreach ($objekte as $objekt) { - if(isset($geschosse[$objekt->id])){ + if (isset($geschosse[$objekt->id])) { $html .= ''; $html .= Html::td($objekt->top_nummer, 'bl bb br'); $html .= Html::td($geschosse[$objekt->id], 'center br bb'); @@ -43,12 +43,12 @@ class Zusammenstellung $summe_nutzwert[] = $nutzwert; $html .= Html::td(round($nutzwert), 'center bb br'); - $str = $nutzwert * 2 .' / '.$nutzwert_gesammt * 2 .' tel Anteil ='; + $str = $nutzwert * 2 . ' / ' . $nutzwert_gesammt * 2 . ' tel Anteil ='; $html .= Html::td($str, 'center bb br'); $prozent = ($nutzwert * 2) / ($nutzwert_gesammt * 2) * 100; $summe_prozent[] = $prozent; - $prozent = Format::dezimal($prozent, 3).'%'; + $prozent = Format::dezimal($prozent, 3) . '%'; $html .= Html::td($prozent ?? '', 'center bb br'); $html .= ''; @@ -58,8 +58,8 @@ class Zusammenstellung $html .= ''; $html .= Html::td('', 'head bl bb', 4); $html .= Html::td(array_sum($summe_nutzwert), 'head center bb'); - $html .= Html::td(array_sum($summe_nutzwert) * 2 .' / '.round($nutzwert_gesammt) * 2 .' tel Anteil =', 'head center bb'); - $html .= Html::td(round(array_sum($summe_prozent)).'%', 'head center bb br'); + $html .= Html::td(array_sum($summe_nutzwert) * 2 . ' / ' . round($nutzwert_gesammt) * 2 . ' tel Anteil =', 'head center bb'); + $html .= Html::td(round(array_sum($summe_prozent)) . '%', 'head center bb br'); $html .= ''; $html .= ''; $html .= Html::td('* Die Anteile wurden verdoppelt, sodaß die Mindestanteile jederzeit durch zwei geteilt werden können.', 'right small', 7, 'background-color: #fff !important;'); @@ -109,17 +109,28 @@ class Zusammenstellung $arr = []; foreach ($objekte as $objekt) { - $arr[$objekt->projekt_objekte_id][] = $objekt->geschoss; + if (!isset($arr[$objekt->projekt_objekte_id])) + $arr[$objekt->projekt_objekte_id] = $objekt->geschoss; } + // foreach ($objekte as $objekt) { + // if ($objekt->top_nummer->nicht_in_orientierung == 1) + // $arr[$objekt->projekt_objekte_id][] = $objekt->geschoss; + // else + // $arr[$objekt->projekt_objekte_id] = $objekt->geschoss; + // } - foreach ($arr as $key => $value) { - $value = array_unique($value); - if (count($value) > 1) { - $arr[$key] = implode('/', $value); - } else { - $arr[$key] = (string) array_first($value); - } - } + // foreach ($arr as $key => $value) { + // if (is_array($value)) { + // $value = array_unique($value); + // if (count($value) > 1) { + // $arr[$key] = implode('/', $value); + // } else { + // $arr[$key] = (string) array_first($value); + // } + // } else { + // $arr[$key] = (string) $value; + // } + // } return $arr; } diff --git a/composer.lock b/composer.lock index 6e0d8f5..de6f2f6 100644 --- a/composer.lock +++ b/composer.lock @@ -81,16 +81,16 @@ }, { "name": "anourvalar/eloquent-serialize", - "version": "1.3.10", + "version": "1.3.11", "source": { "type": "git", "url": "https://github.com/AnourValar/eloquent-serialize.git", - "reference": "2be26f176b764a2d6f20118bfa4b125f71fa88f8" + "reference": "abd890c4d1ad8e90dd454d01283fbf342f80f1e5" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/AnourValar/eloquent-serialize/zipball/2be26f176b764a2d6f20118bfa4b125f71fa88f8", - "reference": "2be26f176b764a2d6f20118bfa4b125f71fa88f8", + "url": "https://api.github.com/repos/AnourValar/eloquent-serialize/zipball/abd890c4d1ad8e90dd454d01283fbf342f80f1e5", + "reference": "abd890c4d1ad8e90dd454d01283fbf342f80f1e5", "shasum": "" }, "require": { @@ -140,9 +140,9 @@ ], "support": { "issues": "https://github.com/AnourValar/eloquent-serialize/issues", - "source": "https://github.com/AnourValar/eloquent-serialize/tree/1.3.10" + "source": "https://github.com/AnourValar/eloquent-serialize/tree/1.3.11" }, - "time": "2026-06-20T14:30:25+00:00" + "time": "2026-08-07T06:14:19+00:00" }, { "name": "awcodes/light-switch", @@ -1031,16 +1031,16 @@ }, { "name": "danharrin/livewire-rate-limiting", - "version": "v2.2.0", + "version": "v2.2.1", "source": { "type": "git", "url": "https://github.com/danharrin/livewire-rate-limiting.git", - "reference": "c03e649220089f6e5a52d422e24e3f98c73e456d" + "reference": "69436717dc70e30f80d7f8fd02504c22992a9ad5" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/danharrin/livewire-rate-limiting/zipball/c03e649220089f6e5a52d422e24e3f98c73e456d", - "reference": "c03e649220089f6e5a52d422e24e3f98c73e456d", + "url": "https://api.github.com/repos/danharrin/livewire-rate-limiting/zipball/69436717dc70e30f80d7f8fd02504c22992a9ad5", + "reference": "69436717dc70e30f80d7f8fd02504c22992a9ad5", "shasum": "" }, "require": { @@ -1048,7 +1048,7 @@ "php": "^8.0" }, "require-dev": { - "livewire/livewire": "^3.0", + "livewire/livewire": "^3.0|^4.0", "livewire/volt": "^1.3", "orchestra/testbench": "^7.0|^8.0|^9.0|^10.0|^11.0", "phpunit/phpunit": "^9.0|^10.0|^11.5.3|^12.5.12" @@ -1081,7 +1081,7 @@ "type": "github" } ], - "time": "2026-03-16T11:29:23+00:00" + "time": "2026-08-06T08:41:51+00:00" }, { "name": "danielebarbaro/laravel-vat-eu-validator", @@ -1540,16 +1540,16 @@ }, { "name": "filament/actions", - "version": "v4.12.5", + "version": "v4.12.6", "source": { "type": "git", "url": "https://github.com/filamentphp/actions.git", - "reference": "5b146757282f76e0d449b8e2d3f2b61c2d9a560c" + "reference": "537593a66af7fbc1a6f4d1bd8e58767a4b6847e9" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/filamentphp/actions/zipball/5b146757282f76e0d449b8e2d3f2b61c2d9a560c", - "reference": "5b146757282f76e0d449b8e2d3f2b61c2d9a560c", + "url": "https://api.github.com/repos/filamentphp/actions/zipball/537593a66af7fbc1a6f4d1bd8e58767a4b6847e9", + "reference": "537593a66af7fbc1a6f4d1bd8e58767a4b6847e9", "shasum": "" }, "require": { @@ -1585,20 +1585,20 @@ "issues": "https://github.com/filamentphp/filament/issues", "source": "https://github.com/filamentphp/filament" }, - "time": "2026-07-29T13:07:42+00:00" + "time": "2026-08-05T20:40:59+00:00" }, { "name": "filament/filament", - "version": "v4.12.5", + "version": "v4.12.6", "source": { "type": "git", "url": "https://github.com/filamentphp/panels.git", - "reference": "9aa8bc96138aa58c9ca1cbf046d4ebe6294d78b4" + "reference": "affce81542de43cf87573eda0667697c3bd79f0e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/filamentphp/panels/zipball/9aa8bc96138aa58c9ca1cbf046d4ebe6294d78b4", - "reference": "9aa8bc96138aa58c9ca1cbf046d4ebe6294d78b4", + "url": "https://api.github.com/repos/filamentphp/panels/zipball/affce81542de43cf87573eda0667697c3bd79f0e", + "reference": "affce81542de43cf87573eda0667697c3bd79f0e", "shasum": "" }, "require": { @@ -1642,20 +1642,20 @@ "issues": "https://github.com/filamentphp/filament/issues", "source": "https://github.com/filamentphp/filament" }, - "time": "2026-07-31T03:27:56+00:00" + "time": "2026-08-05T20:40:40+00:00" }, { "name": "filament/forms", - "version": "v4.12.5", + "version": "v4.12.6", "source": { "type": "git", "url": "https://github.com/filamentphp/forms.git", - "reference": "6a2e73857430c3728303a61e3422b91b78d9fba7" + "reference": "29b4fce3ca9faab1af9e1d65d1a0b8feafc6ae75" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/filamentphp/forms/zipball/6a2e73857430c3728303a61e3422b91b78d9fba7", - "reference": "6a2e73857430c3728303a61e3422b91b78d9fba7", + "url": "https://api.github.com/repos/filamentphp/forms/zipball/29b4fce3ca9faab1af9e1d65d1a0b8feafc6ae75", + "reference": "29b4fce3ca9faab1af9e1d65d1a0b8feafc6ae75", "shasum": "" }, "require": { @@ -1692,20 +1692,20 @@ "issues": "https://github.com/filamentphp/filament/issues", "source": "https://github.com/filamentphp/filament" }, - "time": "2026-07-31T03:24:25+00:00" + "time": "2026-08-05T20:41:13+00:00" }, { "name": "filament/infolists", - "version": "v4.12.5", + "version": "v4.12.6", "source": { "type": "git", "url": "https://github.com/filamentphp/infolists.git", - "reference": "279a84f2b775433c6126db3133340c70d16f4993" + "reference": "87a964ec71f40a195142ed28f013b241ef88ae8c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/filamentphp/infolists/zipball/279a84f2b775433c6126db3133340c70d16f4993", - "reference": "279a84f2b775433c6126db3133340c70d16f4993", + "url": "https://api.github.com/repos/filamentphp/infolists/zipball/87a964ec71f40a195142ed28f013b241ef88ae8c", + "reference": "87a964ec71f40a195142ed28f013b241ef88ae8c", "shasum": "" }, "require": { @@ -1737,20 +1737,20 @@ "issues": "https://github.com/filamentphp/filament/issues", "source": "https://github.com/filamentphp/filament" }, - "time": "2026-07-29T13:07:10+00:00" + "time": "2026-08-05T20:40:46+00:00" }, { "name": "filament/notifications", - "version": "v4.12.5", + "version": "v4.12.6", "source": { "type": "git", "url": "https://github.com/filamentphp/notifications.git", - "reference": "4b43df8132e75d949bc355db97d2d549a37599c7" + "reference": "ad33db1c66df7d88f388f3558bf216288c04f7fe" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/filamentphp/notifications/zipball/4b43df8132e75d949bc355db97d2d549a37599c7", - "reference": "4b43df8132e75d949bc355db97d2d549a37599c7", + "url": "https://api.github.com/repos/filamentphp/notifications/zipball/ad33db1c66df7d88f388f3558bf216288c04f7fe", + "reference": "ad33db1c66df7d88f388f3558bf216288c04f7fe", "shasum": "" }, "require": { @@ -1784,20 +1784,20 @@ "issues": "https://github.com/filamentphp/filament/issues", "source": "https://github.com/filamentphp/filament" }, - "time": "2026-07-29T13:07:10+00:00" + "time": "2026-08-05T20:40:49+00:00" }, { "name": "filament/query-builder", - "version": "v4.12.5", + "version": "v4.12.6", "source": { "type": "git", "url": "https://github.com/filamentphp/query-builder.git", - "reference": "a33948daa05baba542c4da93b83ef0459b88fc45" + "reference": "024843db4765b51c0edcfae1a6ca97ad80f72ee8" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/filamentphp/query-builder/zipball/a33948daa05baba542c4da93b83ef0459b88fc45", - "reference": "a33948daa05baba542c4da93b83ef0459b88fc45", + "url": "https://api.github.com/repos/filamentphp/query-builder/zipball/024843db4765b51c0edcfae1a6ca97ad80f72ee8", + "reference": "024843db4765b51c0edcfae1a6ca97ad80f72ee8", "shasum": "" }, "require": { @@ -1830,20 +1830,20 @@ "issues": "https://github.com/filamentphp/filament/issues", "source": "https://github.com/filamentphp/filament" }, - "time": "2026-07-29T13:07:48+00:00" + "time": "2026-08-05T20:42:37+00:00" }, { "name": "filament/schemas", - "version": "v4.12.5", + "version": "v4.12.6", "source": { "type": "git", "url": "https://github.com/filamentphp/schemas.git", - "reference": "573605ea8e33b2f6145bea161b30c3e255562d74" + "reference": "40cee8d1d5aa7be2c32597254013587214611d7d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/filamentphp/schemas/zipball/573605ea8e33b2f6145bea161b30c3e255562d74", - "reference": "573605ea8e33b2f6145bea161b30c3e255562d74", + "url": "https://api.github.com/repos/filamentphp/schemas/zipball/40cee8d1d5aa7be2c32597254013587214611d7d", + "reference": "40cee8d1d5aa7be2c32597254013587214611d7d", "shasum": "" }, "require": { @@ -1875,20 +1875,20 @@ "issues": "https://github.com/filamentphp/filament/issues", "source": "https://github.com/filamentphp/filament" }, - "time": "2026-07-31T03:17:07+00:00" + "time": "2026-08-05T20:40:36+00:00" }, { "name": "filament/support", - "version": "v4.12.5", + "version": "v4.12.6", "source": { "type": "git", "url": "https://github.com/filamentphp/support.git", - "reference": "bd18aa96fdbdb849a435af0f44b631a7d47dc8aa" + "reference": "9fc269265f97b3a8c9529e6e32c6f2fed0b3e62e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/filamentphp/support/zipball/bd18aa96fdbdb849a435af0f44b631a7d47dc8aa", - "reference": "bd18aa96fdbdb849a435af0f44b631a7d47dc8aa", + "url": "https://api.github.com/repos/filamentphp/support/zipball/9fc269265f97b3a8c9529e6e32c6f2fed0b3e62e", + "reference": "9fc269265f97b3a8c9529e6e32c6f2fed0b3e62e", "shasum": "" }, "require": { @@ -1933,20 +1933,20 @@ "issues": "https://github.com/filamentphp/filament/issues", "source": "https://github.com/filamentphp/filament" }, - "time": "2026-07-29T13:07:42+00:00" + "time": "2026-08-05T20:40:43+00:00" }, { "name": "filament/tables", - "version": "v4.12.5", + "version": "v4.12.6", "source": { "type": "git", "url": "https://github.com/filamentphp/tables.git", - "reference": "878f7b1cede42681f9f2469c809dd2976b97fe23" + "reference": "78c78deed4005b05f80b5d6b623ff9830704644f" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/filamentphp/tables/zipball/878f7b1cede42681f9f2469c809dd2976b97fe23", - "reference": "878f7b1cede42681f9f2469c809dd2976b97fe23", + "url": "https://api.github.com/repos/filamentphp/tables/zipball/78c78deed4005b05f80b5d6b623ff9830704644f", + "reference": "78c78deed4005b05f80b5d6b623ff9830704644f", "shasum": "" }, "require": { @@ -1979,20 +1979,20 @@ "issues": "https://github.com/filamentphp/filament/issues", "source": "https://github.com/filamentphp/filament" }, - "time": "2026-07-29T13:07:17+00:00" + "time": "2026-08-05T20:41:42+00:00" }, { "name": "filament/widgets", - "version": "v4.12.5", + "version": "v4.12.6", "source": { "type": "git", "url": "https://github.com/filamentphp/widgets.git", - "reference": "ed964c28dac61aa4c132aa95d313f9434eb5ee5f" + "reference": "70b472cee64d5eebadfd51bb81b72ee00a89fbfd" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/filamentphp/widgets/zipball/ed964c28dac61aa4c132aa95d313f9434eb5ee5f", - "reference": "ed964c28dac61aa4c132aa95d313f9434eb5ee5f", + "url": "https://api.github.com/repos/filamentphp/widgets/zipball/70b472cee64d5eebadfd51bb81b72ee00a89fbfd", + "reference": "70b472cee64d5eebadfd51bb81b72ee00a89fbfd", "shasum": "" }, "require": { @@ -2023,7 +2023,7 @@ "issues": "https://github.com/filamentphp/filament/issues", "source": "https://github.com/filamentphp/filament" }, - "time": "2026-07-29T13:07:28+00:00" + "time": "2026-08-05T20:41:58+00:00" }, { "name": "fruitcake/php-cors", @@ -2098,16 +2098,16 @@ }, { "name": "giggsey/libphonenumber-for-php-lite", - "version": "9.0.36", + "version": "9.0.37", "source": { "type": "git", "url": "https://github.com/giggsey/libphonenumber-for-php-lite.git", - "reference": "f21237b7df458b326cd5b1bac44d64cc7b1dcb2f" + "reference": "8e2514898587995033a4425683e32674f2073e1d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/giggsey/libphonenumber-for-php-lite/zipball/f21237b7df458b326cd5b1bac44d64cc7b1dcb2f", - "reference": "f21237b7df458b326cd5b1bac44d64cc7b1dcb2f", + "url": "https://api.github.com/repos/giggsey/libphonenumber-for-php-lite/zipball/8e2514898587995033a4425683e32674f2073e1d", + "reference": "8e2514898587995033a4425683e32674f2073e1d", "shasum": "" }, "require": { @@ -2172,28 +2172,28 @@ "issues": "https://github.com/giggsey/libphonenumber-for-php-lite/issues", "source": "https://github.com/giggsey/libphonenumber-for-php-lite" }, - "time": "2026-08-03T07:53:53+00:00" + "time": "2026-08-15T20:02:37+00:00" }, { "name": "graham-campbell/result-type", - "version": "v1.1.4", + "version": "v1.1.5", "source": { "type": "git", "url": "https://github.com/GrahamCampbell/Result-Type.git", - "reference": "e01f4a821471308ba86aa202fed6698b6b695e3b" + "reference": "ef5e784ad5cf6c86fb262e3231aa11d84552fa12" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/GrahamCampbell/Result-Type/zipball/e01f4a821471308ba86aa202fed6698b6b695e3b", - "reference": "e01f4a821471308ba86aa202fed6698b6b695e3b", + "url": "https://api.github.com/repos/GrahamCampbell/Result-Type/zipball/ef5e784ad5cf6c86fb262e3231aa11d84552fa12", + "reference": "ef5e784ad5cf6c86fb262e3231aa11d84552fa12", "shasum": "" }, "require": { "php": "^7.2.5 || ^8.0", - "phpoption/phpoption": "^1.9.5" + "phpoption/phpoption": "^1.9.6" }, "require-dev": { - "phpunit/phpunit": "^8.5.41 || ^9.6.22 || ^10.5.45 || ^11.5.7" + "phpunit/phpunit": "^8.5.52 || ^9.6.34 || ^10.5.63 || ^11.5.55 || ^12.5.14" }, "type": "library", "autoload": { @@ -2222,7 +2222,7 @@ ], "support": { "issues": "https://github.com/GrahamCampbell/Result-Type/issues", - "source": "https://github.com/GrahamCampbell/Result-Type/tree/v1.1.4" + "source": "https://github.com/GrahamCampbell/Result-Type/tree/v1.1.5" }, "funding": [ { @@ -2234,25 +2234,25 @@ "type": "tidelift" } ], - "time": "2025-12-27T19:43:20+00:00" + "time": "2026-08-23T22:27:24+00:00" }, { "name": "guzzlehttp/guzzle", - "version": "7.15.2", + "version": "7.15.3", "source": { "type": "git", "url": "https://github.com/guzzle/guzzle.git", - "reference": "744101956d78b7c1384d0cbf379db13e859167bf" + "reference": "ae311b8f045ea93ce7b1c9cdb7cec06c53f944bc" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/guzzle/guzzle/zipball/744101956d78b7c1384d0cbf379db13e859167bf", - "reference": "744101956d78b7c1384d0cbf379db13e859167bf", + "url": "https://api.github.com/repos/guzzle/guzzle/zipball/ae311b8f045ea93ce7b1c9cdb7cec06c53f944bc", + "reference": "ae311b8f045ea93ce7b1c9cdb7cec06c53f944bc", "shasum": "" }, "require": { "ext-json": "*", - "guzzlehttp/promises": "^2.5.1", + "guzzlehttp/promises": "^2.5.2", "guzzlehttp/psr7": "^2.13", "php": "^7.2.5 || ^8.0", "psr/http-client": "^1.0", @@ -2346,7 +2346,7 @@ ], "support": { "issues": "https://github.com/guzzle/guzzle/issues", - "source": "https://github.com/guzzle/guzzle/tree/7.15.2" + "source": "https://github.com/guzzle/guzzle/tree/7.15.3" }, "funding": [ { @@ -2362,20 +2362,20 @@ "type": "tidelift" } ], - "time": "2026-07-26T23:23:20+00:00" + "time": "2026-08-05T19:48:21+00:00" }, { "name": "guzzlehttp/promises", - "version": "2.5.1", + "version": "2.5.2", "source": { "type": "git", "url": "https://github.com/guzzle/promises.git", - "reference": "9ad1e4fc607446a055b95870c7f668e93b5cff29" + "reference": "2823687acff28b2dbe67b2508a6b300e2c3fa4ce" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/guzzle/promises/zipball/9ad1e4fc607446a055b95870c7f668e93b5cff29", - "reference": "9ad1e4fc607446a055b95870c7f668e93b5cff29", + "url": "https://api.github.com/repos/guzzle/promises/zipball/2823687acff28b2dbe67b2508a6b300e2c3fa4ce", + "reference": "2823687acff28b2dbe67b2508a6b300e2c3fa4ce", "shasum": "" }, "require": { @@ -2430,7 +2430,7 @@ ], "support": { "issues": "https://github.com/guzzle/promises/issues", - "source": "https://github.com/guzzle/promises/tree/2.5.1" + "source": "https://github.com/guzzle/promises/tree/2.5.2" }, "funding": [ { @@ -2446,7 +2446,7 @@ "type": "tidelift" } ], - "time": "2026-07-08T15:48:39+00:00" + "time": "2026-08-05T19:30:54+00:00" }, { "name": "guzzlehttp/psr7", @@ -2718,16 +2718,16 @@ }, { "name": "laravel/framework", - "version": "v12.64.0", + "version": "v12.67.0", "source": { "type": "git", "url": "https://github.com/laravel/framework.git", - "reference": "727a8ea2949c23ca8b5316b86a00984b6017b7a0" + "reference": "fe2cdaba052cbb9f350761ccefc7ac221cbdf0b5" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/laravel/framework/zipball/727a8ea2949c23ca8b5316b86a00984b6017b7a0", - "reference": "727a8ea2949c23ca8b5316b86a00984b6017b7a0", + "url": "https://api.github.com/repos/laravel/framework/zipball/fe2cdaba052cbb9f350761ccefc7ac221cbdf0b5", + "reference": "fe2cdaba052cbb9f350761ccefc7ac221cbdf0b5", "shasum": "" }, "require": { @@ -2936,20 +2936,20 @@ "issues": "https://github.com/laravel/framework/issues", "source": "https://github.com/laravel/framework" }, - "time": "2026-07-14T14:25:37+00:00" + "time": "2026-08-18T13:37:47+00:00" }, { "name": "laravel/prompts", - "version": "v0.3.21", + "version": "v0.3.23", "source": { "type": "git", "url": "https://github.com/laravel/prompts.git", - "reference": "7753c65c281c2550c7c183f14e18062073b7d821" + "reference": "b7b4c35e5bc47450f6b6238c6cc9c47ba19b2221" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/laravel/prompts/zipball/7753c65c281c2550c7c183f14e18062073b7d821", - "reference": "7753c65c281c2550c7c183f14e18062073b7d821", + "url": "https://api.github.com/repos/laravel/prompts/zipball/b7b4c35e5bc47450f6b6238c6cc9c47ba19b2221", + "reference": "b7b4c35e5bc47450f6b6238c6cc9c47ba19b2221", "shasum": "" }, "require": { @@ -2993,9 +2993,9 @@ "description": "Add beautiful and user-friendly forms to your command-line applications.", "support": { "issues": "https://github.com/laravel/prompts/issues", - "source": "https://github.com/laravel/prompts/tree/v0.3.21" + "source": "https://github.com/laravel/prompts/tree/v0.3.23" }, - "time": "2026-06-26T00:11:25+00:00" + "time": "2026-08-11T18:58:24+00:00" }, { "name": "laravel/serializable-closure", @@ -3126,16 +3126,16 @@ }, { "name": "league/commonmark", - "version": "2.8.3", + "version": "2.10.0", "source": { "type": "git", "url": "https://github.com/thephpleague/commonmark.git", - "reference": "1902f60f984235023acbe03db6ad614a37b3c3e7" + "reference": "d2d1aa8b35e072966c89bc0c66cf926e56767dc4" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/thephpleague/commonmark/zipball/1902f60f984235023acbe03db6ad614a37b3c3e7", - "reference": "1902f60f984235023acbe03db6ad614a37b3c3e7", + "url": "https://api.github.com/repos/thephpleague/commonmark/zipball/d2d1aa8b35e072966c89bc0c66cf926e56767dc4", + "reference": "d2d1aa8b35e072966c89bc0c66cf926e56767dc4", "shasum": "" }, "require": { @@ -3172,7 +3172,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-main": "2.9-dev" + "dev-main": "2.11-dev" } }, "autoload": { @@ -3229,7 +3229,7 @@ "type": "tidelift" } ], - "time": "2026-07-12T15:29:16+00:00" + "time": "2026-08-11T16:06:25+00:00" }, { "name": "league/config", @@ -3406,16 +3406,16 @@ }, { "name": "league/flysystem", - "version": "3.35.2", + "version": "3.35.3", "source": { "type": "git", "url": "https://github.com/thephpleague/flysystem.git", - "reference": "b277b5dc3d56650b68904117124e79c851e12376" + "reference": "5fc8404762179ae514678487b23494fd69b2309c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/thephpleague/flysystem/zipball/b277b5dc3d56650b68904117124e79c851e12376", - "reference": "b277b5dc3d56650b68904117124e79c851e12376", + "url": "https://api.github.com/repos/thephpleague/flysystem/zipball/5fc8404762179ae514678487b23494fd69b2309c", + "reference": "5fc8404762179ae514678487b23494fd69b2309c", "shasum": "" }, "require": { @@ -3483,22 +3483,22 @@ ], "support": { "issues": "https://github.com/thephpleague/flysystem/issues", - "source": "https://github.com/thephpleague/flysystem/tree/3.35.2" + "source": "https://github.com/thephpleague/flysystem/tree/3.35.3" }, - "time": "2026-07-06T14:42:07+00:00" + "time": "2026-08-22T12:55:54+00:00" }, { "name": "league/flysystem-local", - "version": "3.31.0", + "version": "3.35.3", "source": { "type": "git", "url": "https://github.com/thephpleague/flysystem-local.git", - "reference": "2f669db18a4c20c755c2bb7d3a7b0b2340488079" + "reference": "a099b24dce160f3b2239043d13d47c4a1a214ea4" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/thephpleague/flysystem-local/zipball/2f669db18a4c20c755c2bb7d3a7b0b2340488079", - "reference": "2f669db18a4c20c755c2bb7d3a7b0b2340488079", + "url": "https://api.github.com/repos/thephpleague/flysystem-local/zipball/a099b24dce160f3b2239043d13d47c4a1a214ea4", + "reference": "a099b24dce160f3b2239043d13d47c4a1a214ea4", "shasum": "" }, "require": { @@ -3532,9 +3532,9 @@ "local" ], "support": { - "source": "https://github.com/thephpleague/flysystem-local/tree/3.31.0" + "source": "https://github.com/thephpleague/flysystem-local/tree/3.35.3" }, - "time": "2026-01-23T15:30:45+00:00" + "time": "2026-08-12T13:29:21+00:00" }, { "name": "league/mime-type-detection", @@ -3860,16 +3860,16 @@ }, { "name": "livewire/livewire", - "version": "v3.8.3", + "version": "v3.8.5", "source": { "type": "git", "url": "https://github.com/livewire/livewire.git", - "reference": "ab9c2ac9305008aa9ab0f1beecec8ed6c3a591b2" + "reference": "038443795e69af79ba03064cbc19d76b60e2c638" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/livewire/livewire/zipball/ab9c2ac9305008aa9ab0f1beecec8ed6c3a591b2", - "reference": "ab9c2ac9305008aa9ab0f1beecec8ed6c3a591b2", + "url": "https://api.github.com/repos/livewire/livewire/zipball/038443795e69af79ba03064cbc19d76b60e2c638", + "reference": "038443795e69af79ba03064cbc19d76b60e2c638", "shasum": "" }, "require": { @@ -3924,7 +3924,7 @@ "description": "A front-end framework for Laravel.", "support": { "issues": "https://github.com/livewire/livewire/issues", - "source": "https://github.com/livewire/livewire/tree/v3.8.3" + "source": "https://github.com/livewire/livewire/tree/v3.8.5" }, "funding": [ { @@ -3932,7 +3932,7 @@ "type": "github" } ], - "time": "2026-07-31T00:08:18+00:00" + "time": "2026-08-18T11:38:50+00:00" }, { "name": "maennchen/zipstream-php", @@ -4181,24 +4181,24 @@ }, { "name": "masterminds/html5", - "version": "2.10.1", + "version": "2.11.0", "source": { "type": "git", "url": "https://github.com/Masterminds/html5-php.git", - "reference": "fd5018f6815fff903946d0564977b44ce8010e29" + "reference": "a1e7a2f88ee13635d86fc61cfbdf2306a76ddfc7" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/Masterminds/html5-php/zipball/fd5018f6815fff903946d0564977b44ce8010e29", - "reference": "fd5018f6815fff903946d0564977b44ce8010e29", + "url": "https://api.github.com/repos/Masterminds/html5-php/zipball/a1e7a2f88ee13635d86fc61cfbdf2306a76ddfc7", + "reference": "a1e7a2f88ee13635d86fc61cfbdf2306a76ddfc7", "shasum": "" }, "require": { "ext-dom": "*", - "php": ">=5.3.0" + "php": ">=7.4" }, "require-dev": { - "phpunit/phpunit": "^4.8.35 || ^5.7.21 || ^6 || ^7 || ^8 || ^9 || ^10" + "phpunit/phpunit": "^6 || ^7 || ^8 || ^9 || ^10" }, "type": "library", "extra": { @@ -4242,9 +4242,9 @@ ], "support": { "issues": "https://github.com/Masterminds/html5-php/issues", - "source": "https://github.com/Masterminds/html5-php/tree/2.10.1" + "source": "https://github.com/Masterminds/html5-php/tree/2.11.0" }, - "time": "2026-06-23T18:43:15+00:00" + "time": "2026-08-18T06:18:41+00:00" }, { "name": "monolog/monolog", @@ -4525,20 +4525,20 @@ }, { "name": "myclabs/deep-copy", - "version": "1.13.4", + "version": "1.14.0", "source": { "type": "git", "url": "https://github.com/myclabs/DeepCopy.git", - "reference": "07d290f0c47959fd5eed98c95ee5602db07e0b6a" + "reference": "8680aa248f8e07bc8fb43f56f0f5fc77a0c96aae" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/07d290f0c47959fd5eed98c95ee5602db07e0b6a", - "reference": "07d290f0c47959fd5eed98c95ee5602db07e0b6a", + "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/8680aa248f8e07bc8fb43f56f0f5fc77a0c96aae", + "reference": "8680aa248f8e07bc8fb43f56f0f5fc77a0c96aae", "shasum": "" }, "require": { - "php": "^7.1 || ^8.0" + "php": "^8.0" }, "conflict": { "doctrine/collections": "<1.6.8", @@ -4573,28 +4573,28 @@ ], "support": { "issues": "https://github.com/myclabs/DeepCopy/issues", - "source": "https://github.com/myclabs/DeepCopy/tree/1.13.4" + "source": "https://github.com/myclabs/DeepCopy/tree/1.14.0" }, "funding": [ { - "url": "https://tidelift.com/funding/github/packagist/myclabs/deep-copy", - "type": "tidelift" + "url": "https://github.com/mnapoli", + "type": "github" } ], - "time": "2025-08-01T08:46:24+00:00" + "time": "2026-08-11T10:17:44+00:00" }, { "name": "nesbot/carbon", - "version": "3.13.1", + "version": "3.13.2", "source": { "type": "git", "url": "https://github.com/CarbonPHP/carbon.git", - "reference": "2937ad3d1d2c506fd2bc97d571438a95641f44e2" + "reference": "a1c54919f5fff9800cd03c32bd01defd5a4061cb" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/CarbonPHP/carbon/zipball/2937ad3d1d2c506fd2bc97d571438a95641f44e2", - "reference": "2937ad3d1d2c506fd2bc97d571438a95641f44e2", + "url": "https://api.github.com/repos/CarbonPHP/carbon/zipball/a1c54919f5fff9800cd03c32bd01defd5a4061cb", + "reference": "a1c54919f5fff9800cd03c32bd01defd5a4061cb", "shasum": "" }, "require": { @@ -4686,7 +4686,7 @@ "type": "tidelift" } ], - "time": "2026-07-09T18:23:49+00:00" + "time": "2026-08-08T11:40:35+00:00" }, { "name": "nette/php-generator", @@ -4764,16 +4764,16 @@ }, { "name": "nette/schema", - "version": "v1.3.5", + "version": "v1.3.6", "source": { "type": "git", "url": "https://github.com/nette/schema.git", - "reference": "f0ab1a3cda782dbc5da270d28545236aa80c4002" + "reference": "c54350438cd6914616f790a49cb424605f421562" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/nette/schema/zipball/f0ab1a3cda782dbc5da270d28545236aa80c4002", - "reference": "f0ab1a3cda782dbc5da270d28545236aa80c4002", + "url": "https://api.github.com/repos/nette/schema/zipball/c54350438cd6914616f790a49cb424605f421562", + "reference": "c54350438cd6914616f790a49cb424605f421562", "shasum": "" }, "require": { @@ -4825,9 +4825,9 @@ ], "support": { "issues": "https://github.com/nette/schema/issues", - "source": "https://github.com/nette/schema/tree/v1.3.5" + "source": "https://github.com/nette/schema/tree/v1.3.6" }, - "time": "2026-02-23T03:47:12+00:00" + "time": "2026-08-16T21:58:41+00:00" }, { "name": "nette/utils", @@ -5387,16 +5387,16 @@ }, { "name": "phpoption/phpoption", - "version": "1.9.5", + "version": "1.10.0", "source": { "type": "git", "url": "https://github.com/schmittjoh/php-option.git", - "reference": "75365b91986c2405cf5e1e012c5595cd487a98be" + "reference": "67b192b6a42ec03944b972d6e633ddec78ad2c6d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/schmittjoh/php-option/zipball/75365b91986c2405cf5e1e012c5595cd487a98be", - "reference": "75365b91986c2405cf5e1e012c5595cd487a98be", + "url": "https://api.github.com/repos/schmittjoh/php-option/zipball/67b192b6a42ec03944b972d6e633ddec78ad2c6d", + "reference": "67b192b6a42ec03944b972d6e633ddec78ad2c6d", "shasum": "" }, "require": { @@ -5404,7 +5404,7 @@ }, "require-dev": { "bamarni/composer-bin-plugin": "^1.8.2", - "phpunit/phpunit": "^8.5.44 || ^9.6.25 || ^10.5.53 || ^11.5.34" + "phpunit/phpunit": "^8.5.54 || ^9.6.36 || ^10.5.64 || ^11.5.56 || ^12.5.33" }, "type": "library", "extra": { @@ -5446,7 +5446,7 @@ ], "support": { "issues": "https://github.com/schmittjoh/php-option/issues", - "source": "https://github.com/schmittjoh/php-option/tree/1.9.5" + "source": "https://github.com/schmittjoh/php-option/tree/1.10.0" }, "funding": [ { @@ -5458,20 +5458,20 @@ "type": "tidelift" } ], - "time": "2025-12-27T19:41:33+00:00" + "time": "2026-08-24T00:54:40+00:00" }, { "name": "pragmarx/google2fa", - "version": "v9.0.0", + "version": "v9.1.0", "source": { "type": "git", "url": "https://github.com/antonioribeiro/google2fa.git", - "reference": "e6bc62dd6ae83acc475f57912e27466019a1f2cf" + "reference": "f00bc788c555adfb6765c437ff3538e59cd88af1" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/antonioribeiro/google2fa/zipball/e6bc62dd6ae83acc475f57912e27466019a1f2cf", - "reference": "e6bc62dd6ae83acc475f57912e27466019a1f2cf", + "url": "https://api.github.com/repos/antonioribeiro/google2fa/zipball/f00bc788c555adfb6765c437ff3538e59cd88af1", + "reference": "f00bc788c555adfb6765c437ff3538e59cd88af1", "shasum": "" }, "require": { @@ -5479,8 +5479,11 @@ "php": "^7.1|^8.0" }, "require-dev": { - "phpstan/phpstan": "^1.9", - "phpunit/phpunit": "^7.5.15|^8.5|^9.0" + "phpstan/phpstan": "^1.0|^2.0", + "phpstan/phpstan-phpunit": "^1.0|^2.0", + "phpunit/phpunit": "~9|~10|~11|~12|~13", + "psalm/plugin-phpunit": "^0.19|^0.20", + "vimeo/psalm": "^5.26|^6.13" }, "type": "library", "autoload": { @@ -5503,14 +5506,23 @@ "keywords": [ "2fa", "Authentication", + "MFA", "Two Factor Authentication", - "google2fa" + "google-authenticator", + "google2fa", + "hotp", + "otp", + "rfc4226", + "rfc6238", + "totp" ], "support": { + "docs": "https://github.com/antonioribeiro/google2fa#readme", "issues": "https://github.com/antonioribeiro/google2fa/issues", - "source": "https://github.com/antonioribeiro/google2fa/tree/v9.0.0" + "security": "https://github.com/antonioribeiro/google2fa/security/policy", + "source": "https://github.com/antonioribeiro/google2fa" }, - "time": "2025-09-19T22:51:08+00:00" + "time": "2026-08-15T13:22:01+00:00" }, { "name": "pragmarx/google2fa-qrcode", @@ -6630,16 +6642,16 @@ }, { "name": "spatie/laravel-login-link", - "version": "1.6.6", + "version": "1.6.7", "source": { "type": "git", "url": "https://github.com/spatie/laravel-login-link.git", - "reference": "a087d9f3beee653f51e82e8570ba17664f840f8c" + "reference": "a315bd42d930516b4b8e0ad5441dba30e29155b3" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/spatie/laravel-login-link/zipball/a087d9f3beee653f51e82e8570ba17664f840f8c", - "reference": "a087d9f3beee653f51e82e8570ba17664f840f8c", + "url": "https://api.github.com/repos/spatie/laravel-login-link/zipball/a315bd42d930516b4b8e0ad5441dba30e29155b3", + "reference": "a315bd42d930516b4b8e0ad5441dba30e29155b3", "shasum": "" }, "require": { @@ -6650,8 +6662,8 @@ "require-dev": { "friendsofphp/php-cs-fixer": "^3.8", "orchestra/testbench": "^9.0|^10.0|^11.0", - "pestphp/pest": "^4.4", - "pestphp/pest-plugin-laravel": "^4.1", + "pestphp/pest": "^4.4|^5.0", + "pestphp/pest-plugin-laravel": "^4.1|^5.0", "spatie/laravel-ray": "^1.26", "spatie/pest-plugin-snapshots": "^2.1", "spatie/phpunit-snapshot-assertions": "^5.1" @@ -6688,9 +6700,9 @@ "spatie" ], "support": { - "source": "https://github.com/spatie/laravel-login-link/tree/1.6.6" + "source": "https://github.com/spatie/laravel-login-link/tree/1.6.7" }, - "time": "2026-02-27T15:26:30+00:00" + "time": "2026-08-14T12:11:54+00:00" }, { "name": "spatie/laravel-package-tools", @@ -7062,16 +7074,16 @@ }, { "name": "symfony/console", - "version": "v7.4.15", + "version": "v7.4.17", "source": { "type": "git", "url": "https://github.com/symfony/console.git", - "reference": "088ec6fe0ef6819cbc301174093b6bfa4ad26930" + "reference": "962e18f09ebe68a49039b4c82fc0ea4871824fca" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/console/zipball/088ec6fe0ef6819cbc301174093b6bfa4ad26930", - "reference": "088ec6fe0ef6819cbc301174093b6bfa4ad26930", + "url": "https://api.github.com/repos/symfony/console/zipball/962e18f09ebe68a49039b4c82fc0ea4871824fca", + "reference": "962e18f09ebe68a49039b4c82fc0ea4871824fca", "shasum": "" }, "require": { @@ -7136,7 +7148,7 @@ "terminal" ], "support": { - "source": "https://github.com/symfony/console/tree/v7.4.15" + "source": "https://github.com/symfony/console/tree/v7.4.17" }, "funding": [ { @@ -7156,20 +7168,20 @@ "type": "tidelift" } ], - "time": "2026-07-27T13:51:00+00:00" + "time": "2026-08-21T12:09:28+00:00" }, { "name": "symfony/css-selector", - "version": "v7.4.9", + "version": "v7.4.17", "source": { "type": "git", "url": "https://github.com/symfony/css-selector.git", - "reference": "b75663ed96cf4756e28e3105476f220f92886cc4" + "reference": "e3822e1cb7013a0a99b3c578130458927ec4eb89" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/css-selector/zipball/b75663ed96cf4756e28e3105476f220f92886cc4", - "reference": "b75663ed96cf4756e28e3105476f220f92886cc4", + "url": "https://api.github.com/repos/symfony/css-selector/zipball/e3822e1cb7013a0a99b3c578130458927ec4eb89", + "reference": "e3822e1cb7013a0a99b3c578130458927ec4eb89", "shasum": "" }, "require": { @@ -7205,7 +7217,7 @@ "description": "Converts CSS selectors to XPath expressions", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/css-selector/tree/v7.4.9" + "source": "https://github.com/symfony/css-selector/tree/v7.4.17" }, "funding": [ { @@ -7225,7 +7237,7 @@ "type": "tidelift" } ], - "time": "2026-04-18T13:18:21+00:00" + "time": "2026-08-21T17:40:08+00:00" }, { "name": "symfony/deprecation-contracts", @@ -7300,16 +7312,16 @@ }, { "name": "symfony/error-handler", - "version": "v7.4.15", + "version": "v7.4.17", "source": { "type": "git", "url": "https://github.com/symfony/error-handler.git", - "reference": "d49f6a19f326db41ae7103bdc38e3eb35a791261" + "reference": "8373921e231e190a88e2ad526951bbaa791576fa" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/error-handler/zipball/d49f6a19f326db41ae7103bdc38e3eb35a791261", - "reference": "d49f6a19f326db41ae7103bdc38e3eb35a791261", + "url": "https://api.github.com/repos/symfony/error-handler/zipball/8373921e231e190a88e2ad526951bbaa791576fa", + "reference": "8373921e231e190a88e2ad526951bbaa791576fa", "shasum": "" }, "require": { @@ -7358,7 +7370,7 @@ "description": "Provides tools to manage errors and ease debugging PHP code", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/error-handler/tree/v7.4.15" + "source": "https://github.com/symfony/error-handler/tree/v7.4.17" }, "funding": [ { @@ -7378,20 +7390,20 @@ "type": "tidelift" } ], - "time": "2026-07-21T15:13:06+00:00" + "time": "2026-08-21T17:40:08+00:00" }, { "name": "symfony/event-dispatcher", - "version": "v7.4.15", + "version": "v7.4.17", "source": { "type": "git", "url": "https://github.com/symfony/event-dispatcher.git", - "reference": "336e7f3b9e95aba04f93ea9143920c2186abfbb9" + "reference": "d269974ee93c61d03620ffee358355bfdb471d66" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/336e7f3b9e95aba04f93ea9143920c2186abfbb9", - "reference": "336e7f3b9e95aba04f93ea9143920c2186abfbb9", + "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/d269974ee93c61d03620ffee358355bfdb471d66", + "reference": "d269974ee93c61d03620ffee358355bfdb471d66", "shasum": "" }, "require": { @@ -7443,7 +7455,7 @@ "description": "Provides tools that allow your application components to communicate with each other by dispatching events and listening to them", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/event-dispatcher/tree/v7.4.15" + "source": "https://github.com/symfony/event-dispatcher/tree/v7.4.17" }, "funding": [ { @@ -7463,7 +7475,7 @@ "type": "tidelift" } ], - "time": "2026-07-21T15:13:06+00:00" + "time": "2026-08-21T17:40:08+00:00" }, { "name": "symfony/event-dispatcher-contracts", @@ -7547,16 +7559,16 @@ }, { "name": "symfony/finder", - "version": "v7.4.14", + "version": "v7.4.17", "source": { "type": "git", "url": "https://github.com/symfony/finder.git", - "reference": "13b38720174286f55d1761152b575a8d1436fc25" + "reference": "5ce28827081f6d1f0c32eaf3882750f19cb5bbe6" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/finder/zipball/13b38720174286f55d1761152b575a8d1436fc25", - "reference": "13b38720174286f55d1761152b575a8d1436fc25", + "url": "https://api.github.com/repos/symfony/finder/zipball/5ce28827081f6d1f0c32eaf3882750f19cb5bbe6", + "reference": "5ce28827081f6d1f0c32eaf3882750f19cb5bbe6", "shasum": "" }, "require": { @@ -7591,7 +7603,7 @@ "description": "Finds files and directories via an intuitive fluent interface", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/finder/tree/v7.4.14" + "source": "https://github.com/symfony/finder/tree/v7.4.17" }, "funding": [ { @@ -7611,7 +7623,7 @@ "type": "tidelift" } ], - "time": "2026-06-27T08:31:18+00:00" + "time": "2026-08-21T12:09:28+00:00" }, { "name": "symfony/html-sanitizer", @@ -7689,16 +7701,16 @@ }, { "name": "symfony/http-foundation", - "version": "v7.4.15", + "version": "v7.4.17", "source": { "type": "git", "url": "https://github.com/symfony/http-foundation.git", - "reference": "1f898ee8188adda9417fb52cf8425a8342c254e7" + "reference": "2ebe78c083501dfb9509b31a7aedcae4d60a391f" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/http-foundation/zipball/1f898ee8188adda9417fb52cf8425a8342c254e7", - "reference": "1f898ee8188adda9417fb52cf8425a8342c254e7", + "url": "https://api.github.com/repos/symfony/http-foundation/zipball/2ebe78c083501dfb9509b31a7aedcae4d60a391f", + "reference": "2ebe78c083501dfb9509b31a7aedcae4d60a391f", "shasum": "" }, "require": { @@ -7747,7 +7759,7 @@ "description": "Defines an object-oriented layer for the HTTP specification", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/http-foundation/tree/v7.4.15" + "source": "https://github.com/symfony/http-foundation/tree/v7.4.17" }, "funding": [ { @@ -7767,20 +7779,20 @@ "type": "tidelift" } ], - "time": "2026-07-29T07:12:33+00:00" + "time": "2026-08-20T09:55:18+00:00" }, { "name": "symfony/http-kernel", - "version": "v7.4.15", + "version": "v7.4.17", "source": { "type": "git", "url": "https://github.com/symfony/http-kernel.git", - "reference": "403275d94f94d5626c3288c599b3b48093ba24f7" + "reference": "aa160388d444210e3d01bbb4c5c53af4cd763df4" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/http-kernel/zipball/403275d94f94d5626c3288c599b3b48093ba24f7", - "reference": "403275d94f94d5626c3288c599b3b48093ba24f7", + "url": "https://api.github.com/repos/symfony/http-kernel/zipball/aa160388d444210e3d01bbb4c5c53af4cd763df4", + "reference": "aa160388d444210e3d01bbb4c5c53af4cd763df4", "shasum": "" }, "require": { @@ -7866,7 +7878,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/v7.4.15" + "source": "https://github.com/symfony/http-kernel/tree/v7.4.17" }, "funding": [ { @@ -7886,20 +7898,20 @@ "type": "tidelift" } ], - "time": "2026-07-29T11:40:42+00:00" + "time": "2026-08-22T13:41:33+00:00" }, { "name": "symfony/mailer", - "version": "v7.4.15", + "version": "v7.4.17", "source": { "type": "git", "url": "https://github.com/symfony/mailer.git", - "reference": "68c1f27c97edd0222eb8d440a6c8c4da5354ab46" + "reference": "b17c9bf3a551d5f635638a3b6c05f06c4dc87584" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/mailer/zipball/68c1f27c97edd0222eb8d440a6c8c4da5354ab46", - "reference": "68c1f27c97edd0222eb8d440a6c8c4da5354ab46", + "url": "https://api.github.com/repos/symfony/mailer/zipball/b17c9bf3a551d5f635638a3b6c05f06c4dc87584", + "reference": "b17c9bf3a551d5f635638a3b6c05f06c4dc87584", "shasum": "" }, "require": { @@ -7950,7 +7962,7 @@ "description": "Helps sending emails", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/mailer/tree/v7.4.15" + "source": "https://github.com/symfony/mailer/tree/v7.4.17" }, "funding": [ { @@ -7970,20 +7982,20 @@ "type": "tidelift" } ], - "time": "2026-07-28T07:33:02+00:00" + "time": "2026-08-21T17:40:08+00:00" }, { "name": "symfony/mime", - "version": "v7.4.15", + "version": "v7.4.17", "source": { "type": "git", "url": "https://github.com/symfony/mime.git", - "reference": "0c1daf58bc931628df0bea26840d1fc8b9a3d34b" + "reference": "bf328d82105831db3e409195db0540ff57f27c80" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/mime/zipball/0c1daf58bc931628df0bea26840d1fc8b9a3d34b", - "reference": "0c1daf58bc931628df0bea26840d1fc8b9a3d34b", + "url": "https://api.github.com/repos/symfony/mime/zipball/bf328d82105831db3e409195db0540ff57f27c80", + "reference": "bf328d82105831db3e409195db0540ff57f27c80", "shasum": "" }, "require": { @@ -8007,7 +8019,7 @@ "symfony/process": "^6.4|^7.0|^8.0", "symfony/property-access": "^6.4|^7.0|^8.0", "symfony/property-info": "^6.4|^7.0|^8.0", - "symfony/serializer": "^6.4.3|^7.0.3|^8.0" + "symfony/serializer": "^6.4.44|^7.4.17|^8.1.5" }, "type": "library", "autoload": { @@ -8039,7 +8051,7 @@ "mime-type" ], "support": { - "source": "https://github.com/symfony/mime/tree/v7.4.15" + "source": "https://github.com/symfony/mime/tree/v7.4.17" }, "funding": [ { @@ -8059,7 +8071,7 @@ "type": "tidelift" } ], - "time": "2026-07-29T07:59:49+00:00" + "time": "2026-08-22T09:04:42+00:00" }, { "name": "symfony/polyfill-ctype", @@ -8892,16 +8904,16 @@ }, { "name": "symfony/process", - "version": "v7.4.13", + "version": "v7.4.17", "source": { "type": "git", "url": "https://github.com/symfony/process.git", - "reference": "f5804be144caceb570f6747519999636b664f24c" + "reference": "058d17fc284cce14efb2385783b55014a461b176" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/process/zipball/f5804be144caceb570f6747519999636b664f24c", - "reference": "f5804be144caceb570f6747519999636b664f24c", + "url": "https://api.github.com/repos/symfony/process/zipball/058d17fc284cce14efb2385783b55014a461b176", + "reference": "058d17fc284cce14efb2385783b55014a461b176", "shasum": "" }, "require": { @@ -8933,7 +8945,7 @@ "description": "Executes commands in sub-processes", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/process/tree/v7.4.13" + "source": "https://github.com/symfony/process/tree/v7.4.17" }, "funding": [ { @@ -8953,20 +8965,20 @@ "type": "tidelift" } ], - "time": "2026-05-23T16:05:06+00:00" + "time": "2026-08-21T17:40:08+00:00" }, { "name": "symfony/routing", - "version": "v7.4.15", + "version": "v7.4.17", "source": { "type": "git", "url": "https://github.com/symfony/routing.git", - "reference": "80c0a93d3f8e7499f716204a1fb38ead942a7a2b" + "reference": "ddd558991e98f693ae6bf5063cc1b0362c6bbec3" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/routing/zipball/80c0a93d3f8e7499f716204a1fb38ead942a7a2b", - "reference": "80c0a93d3f8e7499f716204a1fb38ead942a7a2b", + "url": "https://api.github.com/repos/symfony/routing/zipball/ddd558991e98f693ae6bf5063cc1b0362c6bbec3", + "reference": "ddd558991e98f693ae6bf5063cc1b0362c6bbec3", "shasum": "" }, "require": { @@ -9018,7 +9030,7 @@ "url" ], "support": { - "source": "https://github.com/symfony/routing/tree/v7.4.15" + "source": "https://github.com/symfony/routing/tree/v7.4.17" }, "funding": [ { @@ -9038,7 +9050,7 @@ "type": "tidelift" } ], - "time": "2026-07-21T15:13:06+00:00" + "time": "2026-08-17T13:12:36+00:00" }, { "name": "symfony/service-contracts", @@ -9220,16 +9232,16 @@ }, { "name": "symfony/translation", - "version": "v7.4.14", + "version": "v7.4.17", "source": { "type": "git", "url": "https://github.com/symfony/translation.git", - "reference": "a1af4dacb24eb7ef4f1ca71b94da8ddbce572281" + "reference": "2ee1e4a3b32a528a642babe041ff7c440b213b4b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/translation/zipball/a1af4dacb24eb7ef4f1ca71b94da8ddbce572281", - "reference": "a1af4dacb24eb7ef4f1ca71b94da8ddbce572281", + "url": "https://api.github.com/repos/symfony/translation/zipball/2ee1e4a3b32a528a642babe041ff7c440b213b4b", + "reference": "2ee1e4a3b32a528a642babe041ff7c440b213b4b", "shasum": "" }, "require": { @@ -9296,7 +9308,7 @@ "description": "Provides tools to internationalize your application", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/translation/tree/v7.4.14" + "source": "https://github.com/symfony/translation/tree/v7.4.17" }, "funding": [ { @@ -9316,7 +9328,7 @@ "type": "tidelift" } ], - "time": "2026-06-06T09:33:19+00:00" + "time": "2026-08-21T17:40:08+00:00" }, { "name": "symfony/translation-contracts", @@ -9402,16 +9414,16 @@ }, { "name": "symfony/uid", - "version": "v7.4.9", + "version": "v7.4.17", "source": { "type": "git", "url": "https://github.com/symfony/uid.git", - "reference": "2676b524340abcfe4d6151ec698463cebafee439" + "reference": "69d732355a139c6f8881337d28515aa01f12b8be" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/uid/zipball/2676b524340abcfe4d6151ec698463cebafee439", - "reference": "2676b524340abcfe4d6151ec698463cebafee439", + "url": "https://api.github.com/repos/symfony/uid/zipball/69d732355a139c6f8881337d28515aa01f12b8be", + "reference": "69d732355a139c6f8881337d28515aa01f12b8be", "shasum": "" }, "require": { @@ -9456,7 +9468,7 @@ "uuid" ], "support": { - "source": "https://github.com/symfony/uid/tree/v7.4.9" + "source": "https://github.com/symfony/uid/tree/v7.4.17" }, "funding": [ { @@ -9476,20 +9488,20 @@ "type": "tidelift" } ], - "time": "2026-04-30T15:19:22+00:00" + "time": "2026-08-11T07:38:58+00:00" }, { "name": "symfony/var-dumper", - "version": "v7.4.15", + "version": "v7.4.17", "source": { "type": "git", "url": "https://github.com/symfony/var-dumper.git", - "reference": "04ba4add636a95ff437af3a5a9499bb1d6c6d4bd" + "reference": "53712df8727da1744490202eeb9cb50d4b95419d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/var-dumper/zipball/04ba4add636a95ff437af3a5a9499bb1d6c6d4bd", - "reference": "04ba4add636a95ff437af3a5a9499bb1d6c6d4bd", + "url": "https://api.github.com/repos/symfony/var-dumper/zipball/53712df8727da1744490202eeb9cb50d4b95419d", + "reference": "53712df8727da1744490202eeb9cb50d4b95419d", "shasum": "" }, "require": { @@ -9543,7 +9555,7 @@ "dump" ], "support": { - "source": "https://github.com/symfony/var-dumper/tree/v7.4.15" + "source": "https://github.com/symfony/var-dumper/tree/v7.4.17" }, "funding": [ { @@ -9563,7 +9575,7 @@ "type": "tidelift" } ], - "time": "2026-07-21T15:13:06+00:00" + "time": "2026-08-21T12:09:28+00:00" }, { "name": "tijsverkoyen/css-to-inline-styles", @@ -9979,16 +9991,16 @@ }, { "name": "ysfkaya/filament-phone-input", - "version": "v4.2.1", + "version": "v4.2.2", "source": { "type": "git", "url": "https://github.com/ysfkaya/filament-phone-input.git", - "reference": "b16d9c07f5378cb9d5abe7492ad26ffb7de1c589" + "reference": "ea69cf5a6a8259b48b9bc192bd204cecbcaec008" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/ysfkaya/filament-phone-input/zipball/b16d9c07f5378cb9d5abe7492ad26ffb7de1c589", - "reference": "b16d9c07f5378cb9d5abe7492ad26ffb7de1c589", + "url": "https://api.github.com/repos/ysfkaya/filament-phone-input/zipball/ea69cf5a6a8259b48b9bc192bd204cecbcaec008", + "reference": "ea69cf5a6a8259b48b9bc192bd204cecbcaec008", "shasum": "" }, "require": { @@ -10037,24 +10049,24 @@ ], "support": { "issues": "https://github.com/ysfkaya/filament-phone-input/issues", - "source": "https://github.com/ysfkaya/filament-phone-input/tree/v4.2.1" + "source": "https://github.com/ysfkaya/filament-phone-input/tree/v4.2.2" }, - "time": "2026-07-01T08:04:10+00:00" + "time": "2026-08-08T10:59:04+00:00" } ], "packages-dev": [ { "name": "barryvdh/laravel-debugbar", - "version": "v4.4.0", + "version": "v4.4.2", "source": { "type": "git", "url": "https://github.com/fruitcake/laravel-debugbar.git", - "reference": "80ef956bda9e1a5824037d6f2cd06e73092e5634" + "reference": "18d1c1c64cc5d7794a2c52a2165fe6121e28ed44" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/fruitcake/laravel-debugbar/zipball/80ef956bda9e1a5824037d6f2cd06e73092e5634", - "reference": "80ef956bda9e1a5824037d6f2cd06e73092e5634", + "url": "https://api.github.com/repos/fruitcake/laravel-debugbar/zipball/18d1c1c64cc5d7794a2c52a2165fe6121e28ed44", + "reference": "18d1c1c64cc5d7794a2c52a2165fe6121e28ed44", "shasum": "" }, "require": { @@ -10129,7 +10141,7 @@ ], "support": { "issues": "https://github.com/fruitcake/laravel-debugbar/issues", - "source": "https://github.com/fruitcake/laravel-debugbar/tree/v4.4.0" + "source": "https://github.com/fruitcake/laravel-debugbar/tree/v4.4.2" }, "funding": [ { @@ -10141,7 +10153,7 @@ "type": "github" } ], - "time": "2026-07-04T08:30:57+00:00" + "time": "2026-08-20T12:02:04+00:00" }, { "name": "barryvdh/laravel-ide-helper", @@ -10763,19 +10775,21 @@ }, { "name": "hamcrest/hamcrest-php", - "version": "v2.1.1", + "version": "v3.0.0", "source": { "type": "git", "url": "https://github.com/hamcrest/hamcrest-php.git", - "reference": "f8b1c0173b22fa6ec77a81fe63e5b01eba7e6487" + "reference": "b61cd040da1a4925bc90a51c074f5297e7c0fa52" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/hamcrest/hamcrest-php/zipball/f8b1c0173b22fa6ec77a81fe63e5b01eba7e6487", - "reference": "f8b1c0173b22fa6ec77a81fe63e5b01eba7e6487", + "url": "https://api.github.com/repos/hamcrest/hamcrest-php/zipball/b61cd040da1a4925bc90a51c074f5297e7c0fa52", + "reference": "b61cd040da1a4925bc90a51c074f5297e7c0fa52", "shasum": "" }, "require": { + "ext-ctype": "*", + "ext-dom": "*", "php": "^7.4|^8.0" }, "replace": { @@ -10784,13 +10798,15 @@ "kodova/hamcrest-php": "*" }, "require-dev": { + "phpstan/phpstan": "^2.1", + "phpstan/phpstan-phpunit": "^2.0", "phpunit/php-file-iterator": "^1.4 || ^2.0 || ^3.0", "phpunit/phpunit": "^4.8.36 || ^5.7 || ^6.5 || ^7.0 || ^8.0 || ^9.0" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "2.1-dev" + "dev-master": "3.0-dev" } }, "autoload": { @@ -10808,9 +10824,9 @@ ], "support": { "issues": "https://github.com/hamcrest/hamcrest-php/issues", - "source": "https://github.com/hamcrest/hamcrest-php/tree/v2.1.1" + "source": "https://github.com/hamcrest/hamcrest-php/tree/v3.0.0" }, - "time": "2025-04-30T06:54:44+00:00" + "time": "2026-03-17T11:56:53+00:00" }, { "name": "jean85/pretty-package-versions", @@ -10954,16 +10970,16 @@ }, { "name": "laravel/pint", - "version": "v1.30.3", + "version": "v1.30.5", "source": { "type": "git", "url": "https://github.com/laravel/pint.git", - "reference": "19ca6de4ce07869f61f09863e37e81562ebc0a9b" + "reference": "fe4148c503a0e266353d61396b79bbf7f35122df" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/laravel/pint/zipball/19ca6de4ce07869f61f09863e37e81562ebc0a9b", - "reference": "19ca6de4ce07869f61f09863e37e81562ebc0a9b", + "url": "https://api.github.com/repos/laravel/pint/zipball/fe4148c503a0e266353d61396b79bbf7f35122df", + "reference": "fe4148c503a0e266353d61396b79bbf7f35122df", "shasum": "" }, "require": { @@ -10971,19 +10987,19 @@ "ext-mbstring": "*", "ext-tokenizer": "*", "ext-xml": "*", - "php": "^8.2.0" + "php": "^8.3.0" }, "require-dev": { "composer/semver": "^3.4.4", "friendsofphp/php-cs-fixer": "^3.95.18", - "illuminate/view": "^12.64.0", + "illuminate/view": "^13.24.0", "larastan/larastan": "^3.10.0", - "laravel-zero/framework": "^12.1.0", + "laravel-zero/framework": "^13.0.0", "laravel/agent-detector": "^2.0.2", - "laravel/prompts": "^0.3.21", + "laravel/prompts": "^0.3.22", "mockery/mockery": "^1.6.12", "nunomaduro/termwind": "^2.4.0", - "pestphp/pest": "^3.8.7" + "pestphp/pest": "^4.7.8" }, "bin": [ "builds/pint" @@ -11020,20 +11036,20 @@ "issues": "https://github.com/laravel/pint/issues", "source": "https://github.com/laravel/pint" }, - "time": "2026-08-02T01:28:21+00:00" + "time": "2026-08-10T15:35:50+00:00" }, { "name": "laravel/sail", - "version": "v1.64.0", + "version": "v1.67.0", "source": { "type": "git", "url": "https://github.com/laravel/sail.git", - "reference": "08cacd3e72d6798df3fa8bd4b5d55d0f7f920625" + "reference": "639e03ac12cf23def171770bcab05758045b2642" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/laravel/sail/zipball/08cacd3e72d6798df3fa8bd4b5d55d0f7f920625", - "reference": "08cacd3e72d6798df3fa8bd4b5d55d0f7f920625", + "url": "https://api.github.com/repos/laravel/sail/zipball/639e03ac12cf23def171770bcab05758045b2642", + "reference": "639e03ac12cf23def171770bcab05758045b2642", "shasum": "" }, "require": { @@ -11083,33 +11099,32 @@ "issues": "https://github.com/laravel/sail/issues", "source": "https://github.com/laravel/sail" }, - "time": "2026-07-17T15:09:35+00:00" + "time": "2026-08-12T13:55:56+00:00" }, { "name": "mockery/mockery", - "version": "1.6.12", + "version": "1.6.15", "source": { "type": "git", "url": "https://github.com/mockery/mockery.git", - "reference": "1f4efdd7d3beafe9807b08156dfcb176d18f1699" + "reference": "967a801bd188989a5669bd280f252d51c0fdc9ee" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/mockery/mockery/zipball/1f4efdd7d3beafe9807b08156dfcb176d18f1699", - "reference": "1f4efdd7d3beafe9807b08156dfcb176d18f1699", + "url": "https://api.github.com/repos/mockery/mockery/zipball/967a801bd188989a5669bd280f252d51c0fdc9ee", + "reference": "967a801bd188989a5669bd280f252d51c0fdc9ee", "shasum": "" }, "require": { - "hamcrest/hamcrest-php": "^2.0.1", - "lib-pcre": ">=7.0", + "hamcrest/hamcrest-php": "^2.0 || ^3.0", "php": ">=7.3" }, "conflict": { "phpunit/phpunit": "<8.0" }, "require-dev": { - "phpunit/phpunit": "^8.5 || ^9.6.17", - "symplify/easy-coding-standard": "^12.1.14" + "phpunit/phpunit": "^9.6.36", + "symplify/easy-coding-standard": "^13.2.17" }, "type": "library", "autoload": { @@ -11166,7 +11181,7 @@ "security": "https://github.com/mockery/mockery/security/advisories", "source": "https://github.com/mockery/mockery" }, - "time": "2024-05-16T03:13:13+00:00" + "time": "2026-08-19T19:37:52+00:00" }, { "name": "nunomaduro/collision", @@ -11266,16 +11281,16 @@ }, { "name": "pestphp/pest", - "version": "v4.7.7", + "version": "v4.7.8", "source": { "type": "git", "url": "https://github.com/pestphp/pest.git", - "reference": "7d187dd50a92bcc52caacc8af32a1b9f3f87dd95" + "reference": "5b2293f67adcf1b2320b33f521b94a692d18f360" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/pestphp/pest/zipball/7d187dd50a92bcc52caacc8af32a1b9f3f87dd95", - "reference": "7d187dd50a92bcc52caacc8af32a1b9f3f87dd95", + "url": "https://api.github.com/repos/pestphp/pest/zipball/5b2293f67adcf1b2320b33f521b94a692d18f360", + "reference": "5b2293f67adcf1b2320b33f521b94a692d18f360", "shasum": "" }, "require": { @@ -11368,7 +11383,7 @@ ], "support": { "issues": "https://github.com/pestphp/pest/issues", - "source": "https://github.com/pestphp/pest/tree/v4.7.7" + "source": "https://github.com/pestphp/pest/tree/v4.7.8" }, "funding": [ { @@ -11380,7 +11395,7 @@ "type": "github" } ], - "time": "2026-08-01T01:52:59+00:00" + "time": "2026-08-03T20:49:44+00:00" }, { "name": "pestphp/pest-plugin", @@ -13635,16 +13650,16 @@ }, { "name": "symfony/yaml", - "version": "v7.4.15", + "version": "v7.4.17", "source": { "type": "git", "url": "https://github.com/symfony/yaml.git", - "reference": "e101850ded5d2c0d44bf32abb8996404afec2dec" + "reference": "0b040d7b66ceb10b7bb24c8e6656257932693a12" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/yaml/zipball/e101850ded5d2c0d44bf32abb8996404afec2dec", - "reference": "e101850ded5d2c0d44bf32abb8996404afec2dec", + "url": "https://api.github.com/repos/symfony/yaml/zipball/0b040d7b66ceb10b7bb24c8e6656257932693a12", + "reference": "0b040d7b66ceb10b7bb24c8e6656257932693a12", "shasum": "" }, "require": { @@ -13687,7 +13702,7 @@ "description": "Loads and dumps YAML files", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/yaml/tree/v7.4.15" + "source": "https://github.com/symfony/yaml/tree/v7.4.17" }, "funding": [ { @@ -13707,7 +13722,7 @@ "type": "tidelift" } ], - "time": "2026-07-21T15:13:06+00:00" + "time": "2026-08-21T12:09:28+00:00" }, { "name": "ta-tikoma/phpunit-architecture-test", diff --git a/public/js/filament/forms/components/markdown-editor.js b/public/js/filament/forms/components/markdown-editor.js index b8b5be7..cf6e689 100644 --- a/public/js/filament/forms/components/markdown-editor.js +++ b/public/js/filament/forms/components/markdown-editor.js @@ -48,4 +48,4 @@ b`.split(/\n/).length!=3?function(e){for(var t=0,n=[],r=e.length;t<=r;){var i=e. ----- `]},jd={link:"URL for the link:",image:"URL of the image:"},Rd={locale:"en-US",format:{hour:"2-digit",minute:"2-digit"}},Hd={bold:"**",code:"```",italic:"*"},Wd={sbInit:"Attach files by drag and dropping or pasting from clipboard.",sbOnDragEnter:"Drop image to upload it.",sbOnDrop:"Uploading image #images_names#...",sbProgress:"Uploading #file_name#: #progress#%",sbOnUploaded:"Uploaded #image_name#",sizeUnits:" B, KB, MB"},Ud={noFileGiven:"You must select a file.",typeNotAllowed:"This image type is not allowed.",fileTooLarge:`Image #image_name# is too big (#image_size#). -Maximum file size is #image_max_size#.`,importError:"Something went wrong when uploading the image #image_name#."};Te.prototype.uploadImages=function(o,p,v){if(o.length!==0){for(var L=[],b=0;b!(q.closest&&q.closest(".editor-toolbar")||q.offsetParent===null)),re=J.indexOf(N);re!==-1&&re+1!(q.closest&&q.closest(".editor-toolbar")||q.offsetParent===null)),re=J.indexOf(N);if(re!==-1)for(let q=re-1;q>=0;q--){let F=J[q];if(F){F.focus();break}}}}for(var s in p.shortcuts)p.shortcuts[s]!==null&&Vn[s]!==null&&(function(E){L[vc(p.shortcuts[E])]=function(){var N=Vn[E];typeof N=="function"?N(v):typeof N=="string"&&window.open(N,"_blank")}})(s);L.Enter="newlineAndIndentContinueMarkdownList",L.Tab=E=>{let N=E.getSelection();N&&N.length>0?E.execCommand("indentMore"):b(E)},L["Shift-Tab"]=E=>{let N=E.getSelection();N&&N.length>0?E.execCommand("indentLess"):S(E)},L.Esc=function(E){E.getOption("fullScreen")&&Br(v)},this.documentOnKeyDown=function(E){E=E||window.event,E.keyCode==27&&v.codemirror.getOption("fullScreen")&&Br(v)},document.addEventListener("keydown",this.documentOnKeyDown,!1);var h,g;p.overlayMode?(CodeMirror.defineMode("overlay-mode",function(E){return CodeMirror.overlayMode(CodeMirror.getMode(E,p.spellChecker!==!1?"spell-checker":"gfm"),p.overlayMode.mode,p.overlayMode.combine)}),h="overlay-mode",g=p.parsingConfig,g.gitHubSpice=!1):(h=p.parsingConfig,h.name="gfm",h.gitHubSpice=!1),p.spellChecker!==!1&&(h="spell-checker",g=p.parsingConfig,g.name="gfm",g.gitHubSpice=!1,typeof p.spellChecker=="function"?p.spellChecker({codeMirrorInstance:CodeMirror}):CodeMirrorSpellChecker({codeMirrorInstance:CodeMirror}));function C(E,N,K){return{addNew:!1}}if(CodeMirror.getMode("php").mime="text/x-php",this.codemirror=CodeMirror.fromTextArea(o,{mode:h,backdrop:g,theme:p.theme!=null?p.theme:"easymde",tabSize:p.tabSize!=null?p.tabSize:2,indentUnit:p.tabSize!=null?p.tabSize:2,indentWithTabs:p.indentWithTabs!==!1,lineNumbers:p.lineNumbers===!0,autofocus:p.autofocus===!0,extraKeys:L,direction:p.direction,lineWrapping:p.lineWrapping!==!1,allowDropFileTypes:["text/plain"],placeholder:p.placeholder||o.getAttribute("placeholder")||"",styleSelectedText:p.styleSelectedText!=null?p.styleSelectedText:!ra(),scrollbarStyle:p.scrollbarStyle!=null?p.scrollbarStyle:"native",configureMouse:C,inputStyle:p.inputStyle!=null?p.inputStyle:ra()?"contenteditable":"textarea",spellcheck:p.nativeSpellcheck!=null?p.nativeSpellcheck:!0,autoRefresh:p.autoRefresh!=null?p.autoRefresh:!1}),this.codemirror.getScrollerElement().style.minHeight=p.minHeight,typeof p.maxHeight<"u"&&this.codemirror.getScrollerElement().style.setProperty(this.hasExplicitMinHeight?"max-height":"height",p.maxHeight),p.forceSync===!0){var k=this.codemirror;k.on("change",function(){k.save()})}this.gui={};var c=document.createElement("div");c.classList.add("EasyMDEContainer"),c.setAttribute("role","application");var d=this.codemirror.getWrapperElement();d.parentNode.insertBefore(c,d),c.appendChild(d),p.toolbar!==!1&&(this.gui.toolbar=this.createToolbar()),p.status!==!1&&(this.gui.statusbar=this.createStatusbar()),p.autosave!=null&&p.autosave.enabled===!0&&(this.autosave(),this.codemirror.on("change",function(){clearTimeout(v._autosave_timeout),v._autosave_timeout=setTimeout(function(){v.autosave()},v.options.autosave.submit_delay||v.options.autosave.delay||1e3)}));function x(E,N){var K,J=window.getComputedStyle(document.querySelector(".CodeMirror-sizer")).width.replace("px","");return E=2){var J=K[1];if(p.imagesPreviewHandler){var re=p.imagesPreviewHandler(K[1]);typeof re=="string"&&(J=re)}if(window.EMDEimagesCache[J])M(N,window.EMDEimagesCache[J]);else{var q=document.createElement("img");q.onload=function(){window.EMDEimagesCache[J]={naturalWidth:q.naturalWidth,naturalHeight:q.naturalHeight,url:J},M(N,window.EMDEimagesCache[J])},q.src=J}}}})}this.codemirror.on("update",function(){w()}),this.gui.sideBySide=this.createSideBySide(),this._rendered=this.element,(p.autofocus===!0||o.autofocus)&&this.codemirror.focus();var W=this.codemirror;setTimeout(function(){W.refresh()}.bind(W),0)};Te.prototype.cleanup=function(){document.removeEventListener("keydown",this.documentOnKeyDown)};Te.prototype.autosave=function(){if(kc()){var o=this;if(this.options.autosave.uniqueId==null||this.options.autosave.uniqueId==""){console.log("EasyMDE: You must set a uniqueId to use the autosave feature");return}this.options.autosave.binded!==!0&&(o.element.form!=null&&o.element.form!=null&&o.element.form.addEventListener("submit",function(){clearTimeout(o.autosaveTimeoutId),o.autosaveTimeoutId=void 0,localStorage.removeItem("smde_"+o.options.autosave.uniqueId)}),this.options.autosave.binded=!0),this.options.autosave.loaded!==!0&&(typeof localStorage.getItem("smde_"+this.options.autosave.uniqueId)=="string"&&localStorage.getItem("smde_"+this.options.autosave.uniqueId)!=""&&(this.codemirror.setValue(localStorage.getItem("smde_"+this.options.autosave.uniqueId)),this.options.autosave.foundSavedValue=!0),this.options.autosave.loaded=!0);var p=o.value();p!==""?localStorage.setItem("smde_"+this.options.autosave.uniqueId,p):localStorage.removeItem("smde_"+this.options.autosave.uniqueId);var v=document.getElementById("autosaved");if(v!=null&&v!=null&&v!=""){var L=new Date,b=new Intl.DateTimeFormat([this.options.autosave.timeFormat.locale,"en-US"],this.options.autosave.timeFormat.format).format(L),S=this.options.autosave.text==null?"Autosaved: ":this.options.autosave.text;v.innerHTML=S+b}}else console.log("EasyMDE: localStorage not available, cannot autosave")};Te.prototype.clearAutosavedValue=function(){if(kc()){if(this.options.autosave==null||this.options.autosave.uniqueId==null||this.options.autosave.uniqueId==""){console.log("EasyMDE: You must set a uniqueId to clear the autosave value");return}localStorage.removeItem("smde_"+this.options.autosave.uniqueId)}else console.log("EasyMDE: localStorage not available, cannot autosave")};Te.prototype.openBrowseFileWindow=function(o,p){var v=this,L=this.gui.toolbar.getElementsByClassName("imageInput")[0];L.click();function b(S){v.options.imageUploadFunction?v.uploadImagesUsingCustomFunction(v.options.imageUploadFunction,S.target.files):v.uploadImages(S.target.files,o,p),L.removeEventListener("change",b)}L.addEventListener("change",b)};Te.prototype.uploadImage=function(o,p,v){var L=this;p=p||function(C){yc(L,C)};function b(g){L.updateStatusBar("upload-image",g),setTimeout(function(){L.updateStatusBar("upload-image",L.options.imageTexts.sbInit)},1e4),v&&typeof v=="function"&&v(g),L.options.errorCallback(g)}function S(g){var C=L.options.imageTexts.sizeUnits.split(",");return g.replace("#image_name#",o.name).replace("#image_size#",Fi(o.size,C)).replace("#image_max_size#",Fi(L.options.imageMaxSize,C))}if(o.size>this.options.imageMaxSize){b(S(this.options.errorMessages.fileTooLarge));return}var s=new FormData;s.append("image",o),L.options.imageCSRFToken&&!L.options.imageCSRFHeader&&s.append(L.options.imageCSRFName,L.options.imageCSRFToken);var h=new XMLHttpRequest;h.upload.onprogress=function(g){if(g.lengthComputable){var C=""+Math.round(g.loaded*100/g.total);L.updateStatusBar("upload-image",L.options.imageTexts.sbProgress.replace("#file_name#",o.name).replace("#progress#",C))}},h.open("POST",this.options.imageUploadEndpoint),L.options.imageCSRFToken&&L.options.imageCSRFHeader&&h.setRequestHeader(L.options.imageCSRFName,L.options.imageCSRFToken),h.onload=function(){try{var g=JSON.parse(this.responseText)}catch{console.error("EasyMDE: The server did not return a valid json."),b(S(L.options.errorMessages.importError));return}this.status===200&&g&&!g.error&&g.data&&g.data.filePath?p((L.options.imagePathAbsolute?"":window.location.origin+"/")+g.data.filePath):g.error&&g.error in L.options.errorMessages?b(S(L.options.errorMessages[g.error])):g.error?b(S(g.error)):(console.error("EasyMDE: Received an unexpected response after uploading the image."+this.status+" ("+this.statusText+")"),b(S(L.options.errorMessages.importError)))},h.onerror=function(g){console.error("EasyMDE: An unexpected error occurred when trying to upload the image."+g.target.status+" ("+g.target.statusText+")"),b(L.options.errorMessages.importError)},h.send(s)};Te.prototype.uploadImageUsingCustomFunction=function(o,p){var v=this;function L(s){yc(v,s)}function b(s){var h=S(s);v.updateStatusBar("upload-image",h),setTimeout(function(){v.updateStatusBar("upload-image",v.options.imageTexts.sbInit)},1e4),v.options.errorCallback(h)}function S(s){var h=v.options.imageTexts.sizeUnits.split(",");return s.replace("#image_name#",p.name).replace("#image_size#",Fi(p.size,h)).replace("#image_max_size#",Fi(v.options.imageMaxSize,h))}o.apply(this,[p,L,b])};Te.prototype.setPreviewMaxHeight=function(){var o=this.codemirror,p=o.getWrapperElement(),v=p.nextSibling,L=window.getComputedStyle(p);v.style.setProperty(this.hasExplicitMinHeight?"max-height":"height","calc("+this.options.maxHeight+" + "+L.paddingTop+" + "+L.paddingBottom+" + "+L.borderTopWidth+" + "+L.borderBottomWidth+")")};Te.prototype.createSideBySide=function(){var o=this.codemirror,p=o.getWrapperElement(),v=p.nextSibling;if(!v||!v.classList.contains("editor-preview-side")){if(v=document.createElement("div"),v.className="editor-preview-side",this.options.previewClass)if(Array.isArray(this.options.previewClass))for(var L=0;LsetTimeout(z,300)),this.$root._editor&&(this.$root._editor.toTextArea(),this.$root._editor=null),this.$root._editor=this.editor=new EasyMDE({autoDownloadFontAwesome:!1,autoRefresh:!0,autoSave:!1,element:this.$refs.editor,imageAccept:"image/png, image/jpeg, image/gif, image/avif, image/webp",imageUploadFunction:d,initialValue:this.state??"",maxHeight:S,minHeight:s,placeholder:h,previewImagesInEditor:!0,spellChecker:!1,status:[{className:"upload-image",defaultValue:""}],toolbar:this.getToolbar(),uploadImage:o}),L){let z=this.editor.codemirror.getInputField();z&&z.setAttribute("aria-label",L)}this.editor.codemirror.setOption("direction",document.documentElement?.dir??"ltr"),this.editor.codemirror.on("changes",(z,M)=>{try{let w=M[M.length-1];if(w.origin==="+input"){let W="(https://)",E=w.text[w.text.length-1];if(E.endsWith(W)&&E!=="[]"+W){let N=w.from,K=w.to,re=w.text.length>1?0:N.ch;setTimeout(()=>{z.setSelection({line:K.line,ch:re+E.lastIndexOf("(")+1},{line:K.line,ch:re+E.lastIndexOf(")")})},25)}}}catch{}});let x=Alpine.debounce(()=>{this.editor&&this.$wire.commit()},b??300);this.editor.codemirror.on("change",(z,M)=>{this.editor&&M.origin!=="setValue"&&(this.state=this.editor.value(),p&&x())}),v&&this.editor.codemirror.on("blur",()=>this.$wire.commit()),this.$watch("state",()=>{this.editor&&(this.state??"")!==this.editor.value()&&Alpine.raw(this.editor).value(this.state??"")}),g&&g(this),this.wasEditorVisible=this.isEditorVisible(),this.resizeObserver=new ResizeObserver(()=>this.handleEditorVisibilityChange()),this.resizeObserver.observe(this.$el),this.intersectionObserver=new IntersectionObserver(()=>this.handleEditorVisibilityChange()),this.intersectionObserver.observe(this.$el)},isEditorVisible(){return this.$el.offsetParent!==null&&getComputedStyle(this.$el).visibility!=="hidden"},handleEditorVisibilityChange(){let x=this.isEditorVisible();x&&!this.wasEditorVisible&&this.editor?.codemirror?.refresh(),this.wasEditorVisible=x},destroy(){this.resizeObserver?.disconnect(),this.resizeObserver=null,this.intersectionObserver?.disconnect(),this.intersectionObserver=null,this.editor.cleanup(),this.editor=null},getToolbar(){let x=[];return c.forEach(z=>{z.forEach(M=>x.push(this.getToolbarButton(M))),z.length>0&&x.push("|")}),x[x.length-1]==="|"&&x.pop(),x},getToolbarButton(x){if(x==="bold")return this.getBoldToolbarButton();if(x==="italic")return this.getItalicToolbarButton();if(x==="strike")return this.getStrikeToolbarButton();if(x==="link")return this.getLinkToolbarButton();if(x==="heading")return this.getHeadingToolbarButton();if(x==="blockquote")return this.getBlockquoteToolbarButton();if(x==="codeBlock")return this.getCodeBlockToolbarButton();if(x==="bulletList")return this.getBulletListToolbarButton();if(x==="orderedList")return this.getOrderedListToolbarButton();if(x==="table")return this.getTableToolbarButton();if(x==="attachFiles")return this.getAttachFilesToolbarButton();if(x==="undo")return this.getUndoToolbarButton();if(x==="redo")return this.getRedoToolbarButton();console.error(`Markdown editor toolbar button "${x}" not found.`)},getBoldToolbarButton(){return{name:"bold",action:EasyMDE.toggleBold,title:k.tools?.bold}},getItalicToolbarButton(){return{name:"italic",action:EasyMDE.toggleItalic,title:k.tools?.italic}},getStrikeToolbarButton(){return{name:"strikethrough",action:EasyMDE.toggleStrikethrough,title:k.tools?.strike}},getLinkToolbarButton(){return{name:"link",action:EasyMDE.drawLink,title:k.tools?.link}},getHeadingToolbarButton(){return{name:"heading",action:EasyMDE.toggleHeadingSmaller,title:k.tools?.heading}},getBlockquoteToolbarButton(){return{name:"quote",action:EasyMDE.toggleBlockquote,title:k.tools?.blockquote}},getCodeBlockToolbarButton(){return{name:"code",action:EasyMDE.toggleCodeBlock,title:k.tools?.code_block}},getBulletListToolbarButton(){return{name:"unordered-list",action:EasyMDE.toggleUnorderedList,title:k.tools?.bullet_list}},getOrderedListToolbarButton(){return{name:"ordered-list",action:EasyMDE.toggleOrderedList,title:k.tools?.ordered_list}},getTableToolbarButton(){return{name:"table",action:EasyMDE.drawTable,title:k.tools?.table}},getAttachFilesToolbarButton(){return{name:"upload-image",action:EasyMDE.drawUploadedImage,title:k.tools?.attach_files}},getUndoToolbarButton(){return{name:"undo",action:EasyMDE.undo,title:k.tools?.undo}},getRedoToolbarButton(){return{name:"redo",action:EasyMDE.redo,title:k.tools?.redo}}}}export{Kd as default}; +Maximum file size is #image_max_size#.`,importError:"Something went wrong when uploading the image #image_name#."};Te.prototype.uploadImages=function(o,p,v){if(o.length!==0){for(var L=[],b=0;b!(q.closest&&q.closest(".editor-toolbar")||q.offsetParent===null)),re=J.indexOf(N);re!==-1&&re+1!(q.closest&&q.closest(".editor-toolbar")||q.offsetParent===null)),re=J.indexOf(N);if(re!==-1)for(let q=re-1;q>=0;q--){let F=J[q];if(F){F.focus();break}}}}for(var s in p.shortcuts)p.shortcuts[s]!==null&&Vn[s]!==null&&(function(E){L[vc(p.shortcuts[E])]=function(){var N=Vn[E];typeof N=="function"?N(v):typeof N=="string"&&window.open(N,"_blank")}})(s);L.Enter="newlineAndIndentContinueMarkdownList",L.Tab=E=>{let N=E.getSelection();N&&N.length>0?E.execCommand("indentMore"):b(E)},L["Shift-Tab"]=E=>{let N=E.getSelection();N&&N.length>0?E.execCommand("indentLess"):S(E)},L.Esc=function(E){E.getOption("fullScreen")&&Br(v)},this.documentOnKeyDown=function(E){E=E||window.event,E.keyCode==27&&v.codemirror.getOption("fullScreen")&&Br(v)},document.addEventListener("keydown",this.documentOnKeyDown,!1);var h,g;p.overlayMode?(CodeMirror.defineMode("overlay-mode",function(E){return CodeMirror.overlayMode(CodeMirror.getMode(E,p.spellChecker!==!1?"spell-checker":"gfm"),p.overlayMode.mode,p.overlayMode.combine)}),h="overlay-mode",g=p.parsingConfig,g.gitHubSpice=!1):(h=p.parsingConfig,h.name="gfm",h.gitHubSpice=!1),p.spellChecker!==!1&&(h="spell-checker",g=p.parsingConfig,g.name="gfm",g.gitHubSpice=!1,typeof p.spellChecker=="function"?p.spellChecker({codeMirrorInstance:CodeMirror}):CodeMirrorSpellChecker({codeMirrorInstance:CodeMirror}));function C(E,N,K){return{addNew:!1}}if(CodeMirror.getMode("php").mime="text/x-php",this.codemirror=CodeMirror.fromTextArea(o,{mode:h,backdrop:g,theme:p.theme!=null?p.theme:"easymde",tabSize:p.tabSize!=null?p.tabSize:2,indentUnit:p.tabSize!=null?p.tabSize:2,indentWithTabs:p.indentWithTabs!==!1,lineNumbers:p.lineNumbers===!0,autofocus:p.autofocus===!0,extraKeys:L,direction:p.direction,lineWrapping:p.lineWrapping!==!1,allowDropFileTypes:["text/plain"],placeholder:p.placeholder||o.getAttribute("placeholder")||"",styleSelectedText:p.styleSelectedText!=null?p.styleSelectedText:!ra(),scrollbarStyle:p.scrollbarStyle!=null?p.scrollbarStyle:"native",configureMouse:C,inputStyle:p.inputStyle!=null?p.inputStyle:ra()?"contenteditable":"textarea",spellcheck:p.nativeSpellcheck!=null?p.nativeSpellcheck:!0,autoRefresh:p.autoRefresh!=null?p.autoRefresh:!1}),this.codemirror.getScrollerElement().style.minHeight=p.minHeight,typeof p.maxHeight<"u"&&this.codemirror.getScrollerElement().style.setProperty(this.hasExplicitMinHeight?"max-height":"height",p.maxHeight),p.forceSync===!0){var k=this.codemirror;k.on("change",function(){k.save()})}this.gui={};var c=document.createElement("div");c.classList.add("EasyMDEContainer"),c.setAttribute("role","application");var d=this.codemirror.getWrapperElement();d.parentNode.insertBefore(c,d),c.appendChild(d),p.toolbar!==!1&&(this.gui.toolbar=this.createToolbar()),p.status!==!1&&(this.gui.statusbar=this.createStatusbar()),p.autosave!=null&&p.autosave.enabled===!0&&(this.autosave(),this.codemirror.on("change",function(){clearTimeout(v._autosave_timeout),v._autosave_timeout=setTimeout(function(){v.autosave()},v.options.autosave.submit_delay||v.options.autosave.delay||1e3)}));function x(E,N){var K,J=window.getComputedStyle(document.querySelector(".CodeMirror-sizer")).width.replace("px","");return E=2){var J=K[1];if(p.imagesPreviewHandler){var re=p.imagesPreviewHandler(K[1]);typeof re=="string"&&(J=re)}if(window.EMDEimagesCache[J])M(N,window.EMDEimagesCache[J]);else{var q=document.createElement("img");q.onload=function(){window.EMDEimagesCache[J]={naturalWidth:q.naturalWidth,naturalHeight:q.naturalHeight,url:J},M(N,window.EMDEimagesCache[J])},q.src=J}}}})}this.codemirror.on("update",function(){w()}),this.gui.sideBySide=this.createSideBySide(),this._rendered=this.element,(p.autofocus===!0||o.autofocus)&&this.codemirror.focus();var W=this.codemirror;setTimeout(function(){W.refresh()}.bind(W),0)};Te.prototype.cleanup=function(){document.removeEventListener("keydown",this.documentOnKeyDown)};Te.prototype.autosave=function(){if(kc()){var o=this;if(this.options.autosave.uniqueId==null||this.options.autosave.uniqueId==""){console.log("EasyMDE: You must set a uniqueId to use the autosave feature");return}this.options.autosave.binded!==!0&&(o.element.form!=null&&o.element.form!=null&&o.element.form.addEventListener("submit",function(){clearTimeout(o.autosaveTimeoutId),o.autosaveTimeoutId=void 0,localStorage.removeItem("smde_"+o.options.autosave.uniqueId)}),this.options.autosave.binded=!0),this.options.autosave.loaded!==!0&&(typeof localStorage.getItem("smde_"+this.options.autosave.uniqueId)=="string"&&localStorage.getItem("smde_"+this.options.autosave.uniqueId)!=""&&(this.codemirror.setValue(localStorage.getItem("smde_"+this.options.autosave.uniqueId)),this.options.autosave.foundSavedValue=!0),this.options.autosave.loaded=!0);var p=o.value();p!==""?localStorage.setItem("smde_"+this.options.autosave.uniqueId,p):localStorage.removeItem("smde_"+this.options.autosave.uniqueId);var v=document.getElementById("autosaved");if(v!=null&&v!=null&&v!=""){var L=new Date,b=new Intl.DateTimeFormat([this.options.autosave.timeFormat.locale,"en-US"],this.options.autosave.timeFormat.format).format(L),S=this.options.autosave.text==null?"Autosaved: ":this.options.autosave.text;v.innerHTML=S+b}}else console.log("EasyMDE: localStorage not available, cannot autosave")};Te.prototype.clearAutosavedValue=function(){if(kc()){if(this.options.autosave==null||this.options.autosave.uniqueId==null||this.options.autosave.uniqueId==""){console.log("EasyMDE: You must set a uniqueId to clear the autosave value");return}localStorage.removeItem("smde_"+this.options.autosave.uniqueId)}else console.log("EasyMDE: localStorage not available, cannot autosave")};Te.prototype.openBrowseFileWindow=function(o,p){var v=this,L=this.gui.toolbar.getElementsByClassName("imageInput")[0];L.click();function b(S){v.options.imageUploadFunction?v.uploadImagesUsingCustomFunction(v.options.imageUploadFunction,S.target.files):v.uploadImages(S.target.files,o,p),L.removeEventListener("change",b)}L.addEventListener("change",b)};Te.prototype.uploadImage=function(o,p,v){var L=this;p=p||function(C){yc(L,C)};function b(g){L.updateStatusBar("upload-image",g),setTimeout(function(){L.updateStatusBar("upload-image",L.options.imageTexts.sbInit)},1e4),v&&typeof v=="function"&&v(g),L.options.errorCallback(g)}function S(g){var C=L.options.imageTexts.sizeUnits.split(",");return g.replace("#image_name#",o.name).replace("#image_size#",Fi(o.size,C)).replace("#image_max_size#",Fi(L.options.imageMaxSize,C))}if(o.size>this.options.imageMaxSize){b(S(this.options.errorMessages.fileTooLarge));return}var s=new FormData;s.append("image",o),L.options.imageCSRFToken&&!L.options.imageCSRFHeader&&s.append(L.options.imageCSRFName,L.options.imageCSRFToken);var h=new XMLHttpRequest;h.upload.onprogress=function(g){if(g.lengthComputable){var C=""+Math.round(g.loaded*100/g.total);L.updateStatusBar("upload-image",L.options.imageTexts.sbProgress.replace("#file_name#",o.name).replace("#progress#",C))}},h.open("POST",this.options.imageUploadEndpoint),L.options.imageCSRFToken&&L.options.imageCSRFHeader&&h.setRequestHeader(L.options.imageCSRFName,L.options.imageCSRFToken),h.onload=function(){try{var g=JSON.parse(this.responseText)}catch{console.error("EasyMDE: The server did not return a valid json."),b(S(L.options.errorMessages.importError));return}this.status===200&&g&&!g.error&&g.data&&g.data.filePath?p((L.options.imagePathAbsolute?"":window.location.origin+"/")+g.data.filePath):g.error&&g.error in L.options.errorMessages?b(S(L.options.errorMessages[g.error])):g.error?b(S(g.error)):(console.error("EasyMDE: Received an unexpected response after uploading the image."+this.status+" ("+this.statusText+")"),b(S(L.options.errorMessages.importError)))},h.onerror=function(g){console.error("EasyMDE: An unexpected error occurred when trying to upload the image."+g.target.status+" ("+g.target.statusText+")"),b(L.options.errorMessages.importError)},h.send(s)};Te.prototype.uploadImageUsingCustomFunction=function(o,p){var v=this;function L(s){yc(v,s)}function b(s){var h=S(s);v.updateStatusBar("upload-image",h),setTimeout(function(){v.updateStatusBar("upload-image",v.options.imageTexts.sbInit)},1e4),v.options.errorCallback(h)}function S(s){var h=v.options.imageTexts.sizeUnits.split(",");return s.replace("#image_name#",p.name).replace("#image_size#",Fi(p.size,h)).replace("#image_max_size#",Fi(v.options.imageMaxSize,h))}o.apply(this,[p,L,b])};Te.prototype.setPreviewMaxHeight=function(){var o=this.codemirror,p=o.getWrapperElement(),v=p.nextSibling,L=window.getComputedStyle(p);v.style.setProperty(this.hasExplicitMinHeight?"max-height":"height","calc("+this.options.maxHeight+" + "+L.paddingTop+" + "+L.paddingBottom+" + "+L.borderTopWidth+" + "+L.borderBottomWidth+")")};Te.prototype.createSideBySide=function(){var o=this.codemirror,p=o.getWrapperElement(),v=p.nextSibling;if(!v||!v.classList.contains("editor-preview-side")){if(v=document.createElement("div"),v.className="editor-preview-side",this.options.previewClass)if(Array.isArray(this.options.previewClass))for(var L=0;LsetTimeout(z,300)),this.$root._editor&&(this.$root._editor.toTextArea(),this.$root._editor=null),this.$root._editor=this.editor=new EasyMDE({autoDownloadFontAwesome:!1,autoRefresh:!0,autoSave:!1,element:this.$refs.editor,imageAccept:"image/png, image/jpeg, image/gif, image/avif, image/webp",imageUploadFunction:d,initialValue:this.state??"",maxHeight:S,minHeight:s,placeholder:h,previewImagesInEditor:!0,spellChecker:!1,status:[{className:"upload-image",defaultValue:""}],toolbar:this.getToolbar(),uploadImage:o}),L){let z=this.editor.codemirror.getInputField();z&&z.setAttribute("aria-label",L)}this.editor.codemirror.setOption("direction",document.documentElement?.dir??"ltr"),this.editor.codemirror.on("changes",(z,M)=>{try{let w=M[M.length-1];if(w.origin==="+input"){let W="(https://)",E=w.text[w.text.length-1];if(E.endsWith(W)&&E!=="[]"+W){let N=w.from,K=w.to,re=w.text.length>1?0:N.ch;setTimeout(()=>{z.setSelection({line:K.line,ch:re+E.lastIndexOf("(")+1},{line:K.line,ch:re+E.lastIndexOf(")")})},25)}}}catch{}});let x=Alpine.debounce(()=>{this.editor&&this.$wire.commit()},b??300);this.editor.codemirror.on("change",(z,M)=>{this.editor&&M.origin!=="setValue"&&(this.state=this.editor.value(),p&&x())}),v&&this.editor.codemirror.on("blur",()=>this.$wire.commit()),this.$watch("state",()=>{this.editor&&(this.state??"")!==this.editor.value()&&Alpine.raw(this.editor).value(this.state??"")}),g&&g(this),this.wasEditorVisible=this.isEditorVisible(),this.resizeObserver=new ResizeObserver(()=>this.handleEditorVisibilityChange()),this.resizeObserver.observe(this.$el),this.intersectionObserver=new IntersectionObserver(()=>this.handleEditorVisibilityChange()),this.intersectionObserver.observe(this.$el)},isEditorVisible(){return this.$el.offsetParent!==null&&getComputedStyle(this.$el).visibility!=="hidden"},handleEditorVisibilityChange(){let x=this.isEditorVisible();x&&!this.wasEditorVisible&&Alpine.raw(this.editor)?.codemirror?.refresh(),this.wasEditorVisible=x},destroy(){this.resizeObserver?.disconnect(),this.resizeObserver=null,this.intersectionObserver?.disconnect(),this.intersectionObserver=null,this.editor.cleanup(),this.editor=null},getToolbar(){let x=[];return c.forEach(z=>{z.forEach(M=>x.push(this.getToolbarButton(M))),z.length>0&&x.push("|")}),x[x.length-1]==="|"&&x.pop(),x},getToolbarButton(x){if(x==="bold")return this.getBoldToolbarButton();if(x==="italic")return this.getItalicToolbarButton();if(x==="strike")return this.getStrikeToolbarButton();if(x==="link")return this.getLinkToolbarButton();if(x==="heading")return this.getHeadingToolbarButton();if(x==="blockquote")return this.getBlockquoteToolbarButton();if(x==="codeBlock")return this.getCodeBlockToolbarButton();if(x==="bulletList")return this.getBulletListToolbarButton();if(x==="orderedList")return this.getOrderedListToolbarButton();if(x==="table")return this.getTableToolbarButton();if(x==="attachFiles")return this.getAttachFilesToolbarButton();if(x==="undo")return this.getUndoToolbarButton();if(x==="redo")return this.getRedoToolbarButton();console.error(`Markdown editor toolbar button "${x}" not found.`)},getBoldToolbarButton(){return{name:"bold",action:EasyMDE.toggleBold,title:k.tools?.bold}},getItalicToolbarButton(){return{name:"italic",action:EasyMDE.toggleItalic,title:k.tools?.italic}},getStrikeToolbarButton(){return{name:"strikethrough",action:EasyMDE.toggleStrikethrough,title:k.tools?.strike}},getLinkToolbarButton(){return{name:"link",action:EasyMDE.drawLink,title:k.tools?.link}},getHeadingToolbarButton(){return{name:"heading",action:EasyMDE.toggleHeadingSmaller,title:k.tools?.heading}},getBlockquoteToolbarButton(){return{name:"quote",action:EasyMDE.toggleBlockquote,title:k.tools?.blockquote}},getCodeBlockToolbarButton(){return{name:"code",action:EasyMDE.toggleCodeBlock,title:k.tools?.code_block}},getBulletListToolbarButton(){return{name:"unordered-list",action:EasyMDE.toggleUnorderedList,title:k.tools?.bullet_list}},getOrderedListToolbarButton(){return{name:"ordered-list",action:EasyMDE.toggleOrderedList,title:k.tools?.ordered_list}},getTableToolbarButton(){return{name:"table",action:EasyMDE.drawTable,title:k.tools?.table}},getAttachFilesToolbarButton(){return{name:"upload-image",action:EasyMDE.drawUploadedImage,title:k.tools?.attach_files}},getUndoToolbarButton(){return{name:"undo",action:EasyMDE.undo,title:k.tools?.undo}},getRedoToolbarButton(){return{name:"redo",action:EasyMDE.redo,title:k.tools?.redo}}}}export{Kd as default};