diff --git a/.env.example b/.env.example index 8c18669..e61d98f 100644 --- a/.env.example +++ b/.env.example @@ -71,3 +71,4 @@ LOCATION_TESTING=false DEV_DEFAULT_LOCATION=MY DEV_DEFAULT_IP=202.188.193.93 +INDEXNOW_KEY=xxxxxxxx-xxxx-xxxxx-xxxx-xxxxxxxxxx diff --git a/app/Http/Controllers/Admin/PostController.php b/app/Http/Controllers/Admin/PostController.php index 9009988..e3572b2 100644 --- a/app/Http/Controllers/Admin/PostController.php +++ b/app/Http/Controllers/Admin/PostController.php @@ -6,6 +6,8 @@ use App\Models\Post; use App\Models\PostCategory; use Illuminate\Http\Request; +use LaravelFreelancerNL\LaravelIndexNow\Facades\IndexNow; +use LaravelGoogleIndexing; class PostController extends Controller { @@ -35,6 +37,24 @@ public function edit(Request $request, $post_id) return redirect()->back()->with('error', 'Post does not exist.'); } + public function indexing(Request $request, $post_id) + { + $post = Post::find($post_id); + + if (! is_null($post)) { + + $post_url = route('home.country.post', ['country' => $post->post_category?->category?->country_locale_slug, 'post_slug' => $post->slug]); + + LaravelGoogleIndexing::create()->update($post_url); + IndexNow::submit($post_url); + + return redirect()->back()->with('success', 'Signalled Google for Indexing.'); + } + + return redirect()->back()->with('error', 'Something went wrong.'); + + } + public function postUpsert(Request $request) { diff --git a/composer.json b/composer.json index e972039..3121f6d 100644 --- a/composer.json +++ b/composer.json @@ -13,11 +13,13 @@ "appstract/laravel-opcache": "^4.0", "artesaos/seotools": "^1.2", "codex-team/editor.js": "^2.0", + "famdirksen/laravel-google-indexing": "^0.5.0", "genealabs/laravel-model-caching": "^0.13.4", "glhd/laravel-timezone-mapper": "^1.4", "guzzlehttp/guzzle": "^7.2", "intervention/image": "^2.7", "kalnoy/nestedset": "^6.0", + "laravel-freelancer-nl/laravel-index-now": "^1.2", "laravel/framework": "^10.10", "laravel/sanctum": "^3.2", "laravel/tinker": "^2.8", diff --git a/composer.lock b/composer.lock index dc48a18..88e0988 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": "f59f0312d1707f04742af712250d939d", + "content-hash": "6ea87c5ddbc0367ad21f400620539bf1", "packages": [ { "name": "alaminfirdows/laravel-editorjs", @@ -518,6 +518,143 @@ ], "time": "2023-06-06T12:02:59+00:00" }, + { + "name": "composer/pcre", + "version": "3.1.0", + "source": { + "type": "git", + "url": "https://github.com/composer/pcre.git", + "reference": "4bff79ddd77851fe3cdd11616ed3f92841ba5bd2" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/composer/pcre/zipball/4bff79ddd77851fe3cdd11616ed3f92841ba5bd2", + "reference": "4bff79ddd77851fe3cdd11616ed3f92841ba5bd2", + "shasum": "" + }, + "require": { + "php": "^7.4 || ^8.0" + }, + "require-dev": { + "phpstan/phpstan": "^1.3", + "phpstan/phpstan-strict-rules": "^1.1", + "symfony/phpunit-bridge": "^5" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "3.x-dev" + } + }, + "autoload": { + "psr-4": { + "Composer\\Pcre\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Jordi Boggiano", + "email": "j.boggiano@seld.be", + "homepage": "http://seld.be" + } + ], + "description": "PCRE wrapping library that offers type-safe preg_* replacements.", + "keywords": [ + "PCRE", + "preg", + "regex", + "regular expression" + ], + "support": { + "issues": "https://github.com/composer/pcre/issues", + "source": "https://github.com/composer/pcre/tree/3.1.0" + }, + "funding": [ + { + "url": "https://packagist.com", + "type": "custom" + }, + { + "url": "https://github.com/composer", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/composer/composer", + "type": "tidelift" + } + ], + "time": "2022-11-17T09:50:14+00:00" + }, + { + "name": "composer/xdebug-handler", + "version": "3.0.3", + "source": { + "type": "git", + "url": "https://github.com/composer/xdebug-handler.git", + "reference": "ced299686f41dce890debac69273b47ffe98a40c" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/composer/xdebug-handler/zipball/ced299686f41dce890debac69273b47ffe98a40c", + "reference": "ced299686f41dce890debac69273b47ffe98a40c", + "shasum": "" + }, + "require": { + "composer/pcre": "^1 || ^2 || ^3", + "php": "^7.2.5 || ^8.0", + "psr/log": "^1 || ^2 || ^3" + }, + "require-dev": { + "phpstan/phpstan": "^1.0", + "phpstan/phpstan-strict-rules": "^1.1", + "symfony/phpunit-bridge": "^6.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "Composer\\XdebugHandler\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "John Stevenson", + "email": "john-stevenson@blueyonder.co.uk" + } + ], + "description": "Restarts a process without Xdebug.", + "keywords": [ + "Xdebug", + "performance" + ], + "support": { + "irc": "irc://irc.freenode.org/composer", + "issues": "https://github.com/composer/xdebug-handler/issues", + "source": "https://github.com/composer/xdebug-handler/tree/3.0.3" + }, + "funding": [ + { + "url": "https://packagist.com", + "type": "custom" + }, + { + "url": "https://github.com/composer", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/composer/composer", + "type": "tidelift" + } + ], + "time": "2022-02-25T21:32:43+00:00" + }, { "name": "dflydev/dot-access-data", "version": "v3.0.2", @@ -950,6 +1087,138 @@ }, "time": "2022-09-18T07:06:19+00:00" }, + { + "name": "famdirksen/laravel-google-indexing", + "version": "v0.5", + "source": { + "type": "git", + "url": "https://github.com/Famdirksen/laravel-google-indexing.git", + "reference": "a5371972de9303cf66bc740b161af328c1b9c72b" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/Famdirksen/laravel-google-indexing/zipball/a5371972de9303cf66bc740b161af328c1b9c72b", + "reference": "a5371972de9303cf66bc740b161af328c1b9c72b", + "shasum": "" + }, + "require": { + "google/apiclient": "^2.0", + "php": "^7.2|^8.0" + }, + "require-dev": { + "orchestra/testbench": "^6.23|^7.0", + "phpunit/phpunit": "^9.4" + }, + "type": "library", + "extra": { + "laravel": { + "providers": [ + "Famdirksen\\LaravelGoogleIndexing\\ServiceProvider\\LaravelGoogleIndexingServiceProvider" + ], + "aliases": { + "LaravelGoogleIndexing": "Famdirksen\\LaravelGoogleIndexing\\Facade\\LaravelGoogleIndexingFacade" + } + } + }, + "autoload": { + "psr-4": { + "Famdirksen\\LaravelGoogleIndexing\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Famdirksen", + "email": "info@famdirksen.nl", + "homepage": "https://famdirksen.nl", + "role": "Company" + }, + { + "name": "Robin Dirksen", + "email": "robin@famdirksen.nl", + "homepage": "https://robindirksen.nl", + "role": "Developer" + } + ], + "description": "Index Laravel website in Google via Indexing API", + "homepage": "https://github.com/famdirksen/laravel-google-indexing", + "keywords": [ + "famdirksen", + "laravel", + "laravel-google-indexing" + ], + "support": { + "issues": "https://github.com/Famdirksen/laravel-google-indexing/issues", + "source": "https://github.com/Famdirksen/laravel-google-indexing/tree/v0.5" + }, + "time": "2022-09-27T14:52:59+00:00" + }, + { + "name": "firebase/php-jwt", + "version": "v6.8.1", + "source": { + "type": "git", + "url": "https://github.com/firebase/php-jwt.git", + "reference": "5dbc8959427416b8ee09a100d7a8588c00fb2e26" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/firebase/php-jwt/zipball/5dbc8959427416b8ee09a100d7a8588c00fb2e26", + "reference": "5dbc8959427416b8ee09a100d7a8588c00fb2e26", + "shasum": "" + }, + "require": { + "php": "^7.4||^8.0" + }, + "require-dev": { + "guzzlehttp/guzzle": "^6.5||^7.4", + "phpspec/prophecy-phpunit": "^2.0", + "phpunit/phpunit": "^9.5", + "psr/cache": "^1.0||^2.0", + "psr/http-client": "^1.0", + "psr/http-factory": "^1.0" + }, + "suggest": { + "ext-sodium": "Support EdDSA (Ed25519) signatures", + "paragonie/sodium_compat": "Support EdDSA (Ed25519) signatures when libsodium is not present" + }, + "type": "library", + "autoload": { + "psr-4": { + "Firebase\\JWT\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Neuman Vong", + "email": "neuman+pear@twilio.com", + "role": "Developer" + }, + { + "name": "Anant Narayanan", + "email": "anant@php.net", + "role": "Developer" + } + ], + "description": "A simple library to encode and decode JSON Web Tokens (JWT) in PHP. Should conform to the current spec.", + "homepage": "https://github.com/firebase/php-jwt", + "keywords": [ + "jwt", + "php" + ], + "support": { + "issues": "https://github.com/firebase/php-jwt/issues", + "source": "https://github.com/firebase/php-jwt/tree/v6.8.1" + }, + "time": "2023-07-14T18:33:00+00:00" + }, { "name": "fruitcake/php-cors", "version": "v1.2.0", @@ -1260,6 +1529,177 @@ }, "time": "2023-07-03T14:35:58+00:00" }, + { + "name": "google/apiclient", + "version": "v2.15.0", + "source": { + "type": "git", + "url": "https://github.com/googleapis/google-api-php-client.git", + "reference": "49787fa30b8d8313146a61efbf77ed1fede723c2" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/googleapis/google-api-php-client/zipball/49787fa30b8d8313146a61efbf77ed1fede723c2", + "reference": "49787fa30b8d8313146a61efbf77ed1fede723c2", + "shasum": "" + }, + "require": { + "firebase/php-jwt": "~6.0", + "google/apiclient-services": "~0.200", + "google/auth": "^1.28", + "guzzlehttp/guzzle": "~6.5||~7.0", + "guzzlehttp/psr7": "^1.8.4||^2.2.1", + "monolog/monolog": "^2.9||^3.0", + "php": "^7.4|^8.0", + "phpseclib/phpseclib": "^3.0.2" + }, + "require-dev": { + "cache/filesystem-adapter": "^1.1", + "composer/composer": "^1.10.22", + "phpcompatibility/php-compatibility": "^9.2", + "phpspec/prophecy-phpunit": "^2.0", + "phpunit/phpunit": "^9.5", + "squizlabs/php_codesniffer": "^3.0", + "symfony/css-selector": "~2.1", + "symfony/dom-crawler": "~2.1" + }, + "suggest": { + "cache/filesystem-adapter": "For caching certs and tokens (using Google\\Client::setCache)" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "2.x-dev" + } + }, + "autoload": { + "files": [ + "src/aliases.php" + ], + "psr-4": { + "Google\\": "src/" + }, + "classmap": [ + "src/aliases.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "Apache-2.0" + ], + "description": "Client library for Google APIs", + "homepage": "http://developers.google.com/api-client-library/php", + "keywords": [ + "google" + ], + "support": { + "issues": "https://github.com/googleapis/google-api-php-client/issues", + "source": "https://github.com/googleapis/google-api-php-client/tree/v2.15.0" + }, + "time": "2023-05-18T13:51:33+00:00" + }, + { + "name": "google/apiclient-services", + "version": "v0.311.0", + "source": { + "type": "git", + "url": "https://github.com/googleapis/google-api-php-client-services.git", + "reference": "b29fb9e55b1616c056e349d904ad5e6ff39b5bed" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/googleapis/google-api-php-client-services/zipball/b29fb9e55b1616c056e349d904ad5e6ff39b5bed", + "reference": "b29fb9e55b1616c056e349d904ad5e6ff39b5bed", + "shasum": "" + }, + "require": { + "php": "^7.4||^8.0" + }, + "require-dev": { + "phpunit/phpunit": "^5.7||^8.5.13" + }, + "type": "library", + "autoload": { + "files": [ + "autoload.php" + ], + "psr-4": { + "Google\\Service\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "Apache-2.0" + ], + "description": "Client library for Google APIs", + "homepage": "http://developers.google.com/api-client-library/php", + "keywords": [ + "google" + ], + "support": { + "issues": "https://github.com/googleapis/google-api-php-client-services/issues", + "source": "https://github.com/googleapis/google-api-php-client-services/tree/v0.311.0" + }, + "time": "2023-07-29T01:00:21+00:00" + }, + { + "name": "google/auth", + "version": "v1.28.0", + "source": { + "type": "git", + "url": "https://github.com/googleapis/google-auth-library-php.git", + "reference": "07f7f6305f1b7df32b2acf6e101c1225c839c7ac" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/googleapis/google-auth-library-php/zipball/07f7f6305f1b7df32b2acf6e101c1225c839c7ac", + "reference": "07f7f6305f1b7df32b2acf6e101c1225c839c7ac", + "shasum": "" + }, + "require": { + "firebase/php-jwt": "^6.0", + "guzzlehttp/guzzle": "^6.2.1|^7.0", + "guzzlehttp/psr7": "^2.4.5", + "php": "^7.4||^8.0", + "psr/cache": "^1.0||^2.0||^3.0", + "psr/http-message": "^1.1||^2.0" + }, + "require-dev": { + "guzzlehttp/promises": "^1.3", + "kelvinmo/simplejwt": "0.7.0", + "phpseclib/phpseclib": "^3.0", + "phpspec/prophecy-phpunit": "^2.0", + "phpunit/phpunit": "^9.0.0", + "sebastian/comparator": ">=1.2.3", + "squizlabs/php_codesniffer": "^3.5" + }, + "suggest": { + "phpseclib/phpseclib": "May be used in place of OpenSSL for signing strings or for token management. Please require version ^2." + }, + "type": "library", + "autoload": { + "psr-4": { + "Google\\Auth\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "Apache-2.0" + ], + "description": "Google Auth Library for PHP", + "homepage": "http://github.com/google/google-auth-library-php", + "keywords": [ + "Authentication", + "google", + "oauth2" + ], + "support": { + "docs": "https://googleapis.github.io/google-auth-library-php/main/", + "issues": "https://github.com/googleapis/google-auth-library-php/issues", + "source": "https://github.com/googleapis/google-auth-library-php/tree/v1.28.0" + }, + "time": "2023-05-11T21:58:18+00:00" + }, { "name": "graham-campbell/result-type", "version": "v1.1.1", @@ -1874,6 +2314,94 @@ }, "time": "2023-02-16T14:41:24+00:00" }, + { + "name": "laravel-freelancer-nl/laravel-index-now", + "version": "1.2", + "source": { + "type": "git", + "url": "https://github.com/LaravelFreelancerNL/laravel-index-now.git", + "reference": "175fe83895e51a57582468f17a6ad2533645c128" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/LaravelFreelancerNL/laravel-index-now/zipball/175fe83895e51a57582468f17a6ad2533645c128", + "reference": "175fe83895e51a57582468f17a6ad2533645c128", + "shasum": "" + }, + "require": { + "guzzlehttp/guzzle": "^7.4", + "illuminate/contracts": "^9.0|^10.0", + "nunomaduro/termwind": "^1.10", + "php": "^8.1", + "phpmd/phpmd": "^2.12", + "spatie/laravel-package-tools": "^1.9.2" + }, + "require-dev": { + "laravel/pint": "^1.2.1", + "nunomaduro/collision": "^6.0", + "nunomaduro/larastan": "^2.2.0", + "orchestra/testbench": "^7.0", + "pestphp/pest": "^1.21", + "pestphp/pest-plugin-faker": "^1.0", + "pestphp/pest-plugin-laravel": "^1.1|^2.0", + "phpstan/extension-installer": "^1.1", + "phpstan/phpstan": "^1.8", + "phpstan/phpstan-deprecation-rules": "^1.0", + "phpstan/phpstan-phpunit": "^1.0", + "phpunit/phpunit": "^9.5", + "scrutinizer/ocular": "^1.9", + "sebastian/phpcpd": "^6.0", + "spatie/laravel-ray": "^1.26", + "spatie/pest-plugin-test-time": "^1.1", + "timacdonald/log-fake": "^2.0" + }, + "type": "library", + "extra": { + "laravel": { + "providers": [ + "LaravelFreelancerNL\\LaravelIndexNow\\IndexNowServiceProvider" + ], + "aliases": { + "IndexNow": "LaravelFreelancerNL\\laravel-index-now\\Facades\\IndexNow" + } + } + }, + "autoload": { + "psr-4": { + "LaravelFreelancerNL\\LaravelIndexNow\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Bas", + "email": "info@laravel-freelancer.nl", + "role": "Developer" + } + ], + "description": "Alert search engines of content changes. ", + "homepage": "https://github.com/LaravelFreelancerNL/laravel-index-now", + "keywords": [ + "indexnow", + "laravel", + "search engines", + "seo" + ], + "support": { + "issues": "https://github.com/LaravelFreelancerNL/laravel-index-now/issues", + "source": "https://github.com/LaravelFreelancerNL/laravel-index-now/tree/1.2" + }, + "funding": [ + { + "url": "https://github.com/LaravelFreelancerNL", + "type": "github" + } + ], + "time": "2023-02-17T14:44:51+00:00" + }, { "name": "laravel/framework", "version": "v10.16.1", @@ -3637,6 +4165,269 @@ ], "time": "2023-02-08T01:06:31+00:00" }, + { + "name": "paragonie/constant_time_encoding", + "version": "v2.6.3", + "source": { + "type": "git", + "url": "https://github.com/paragonie/constant_time_encoding.git", + "reference": "58c3f47f650c94ec05a151692652a868995d2938" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/paragonie/constant_time_encoding/zipball/58c3f47f650c94ec05a151692652a868995d2938", + "reference": "58c3f47f650c94ec05a151692652a868995d2938", + "shasum": "" + }, + "require": { + "php": "^7|^8" + }, + "require-dev": { + "phpunit/phpunit": "^6|^7|^8|^9", + "vimeo/psalm": "^1|^2|^3|^4" + }, + "type": "library", + "autoload": { + "psr-4": { + "ParagonIE\\ConstantTime\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Paragon Initiative Enterprises", + "email": "security@paragonie.com", + "homepage": "https://paragonie.com", + "role": "Maintainer" + }, + { + "name": "Steve 'Sc00bz' Thomas", + "email": "steve@tobtu.com", + "homepage": "https://www.tobtu.com", + "role": "Original Developer" + } + ], + "description": "Constant-time Implementations of RFC 4648 Encoding (Base-64, Base-32, Base-16)", + "keywords": [ + "base16", + "base32", + "base32_decode", + "base32_encode", + "base64", + "base64_decode", + "base64_encode", + "bin2hex", + "encoding", + "hex", + "hex2bin", + "rfc4648" + ], + "support": { + "email": "info@paragonie.com", + "issues": "https://github.com/paragonie/constant_time_encoding/issues", + "source": "https://github.com/paragonie/constant_time_encoding" + }, + "time": "2022-06-14T06:56:20+00:00" + }, + { + "name": "paragonie/random_compat", + "version": "v9.99.100", + "source": { + "type": "git", + "url": "https://github.com/paragonie/random_compat.git", + "reference": "996434e5492cb4c3edcb9168db6fbb1359ef965a" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/paragonie/random_compat/zipball/996434e5492cb4c3edcb9168db6fbb1359ef965a", + "reference": "996434e5492cb4c3edcb9168db6fbb1359ef965a", + "shasum": "" + }, + "require": { + "php": ">= 7" + }, + "require-dev": { + "phpunit/phpunit": "4.*|5.*", + "vimeo/psalm": "^1" + }, + "suggest": { + "ext-libsodium": "Provides a modern crypto API that can be used to generate random bytes." + }, + "type": "library", + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Paragon Initiative Enterprises", + "email": "security@paragonie.com", + "homepage": "https://paragonie.com" + } + ], + "description": "PHP 5.x polyfill for random_bytes() and random_int() from PHP 7", + "keywords": [ + "csprng", + "polyfill", + "pseudorandom", + "random" + ], + "support": { + "email": "info@paragonie.com", + "issues": "https://github.com/paragonie/random_compat/issues", + "source": "https://github.com/paragonie/random_compat" + }, + "time": "2020-10-15T08:29:30+00:00" + }, + { + "name": "pdepend/pdepend", + "version": "2.14.0", + "source": { + "type": "git", + "url": "https://github.com/pdepend/pdepend.git", + "reference": "1121d4b04af06e33e9659bac3a6741b91cab1de1" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/pdepend/pdepend/zipball/1121d4b04af06e33e9659bac3a6741b91cab1de1", + "reference": "1121d4b04af06e33e9659bac3a6741b91cab1de1", + "shasum": "" + }, + "require": { + "php": ">=5.3.7", + "symfony/config": "^2.3.0|^3|^4|^5|^6.0", + "symfony/dependency-injection": "^2.3.0|^3|^4|^5|^6.0", + "symfony/filesystem": "^2.3.0|^3|^4|^5|^6.0" + }, + "require-dev": { + "easy-doc/easy-doc": "0.0.0|^1.2.3", + "gregwar/rst": "^1.0", + "phpunit/phpunit": "^4.8.36|^5.7.27", + "squizlabs/php_codesniffer": "^2.0.0" + }, + "bin": [ + "src/bin/pdepend" + ], + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.x-dev" + } + }, + "autoload": { + "psr-4": { + "PDepend\\": "src/main/php/PDepend" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "description": "Official version of pdepend to be handled with Composer", + "keywords": [ + "PHP Depend", + "PHP_Depend", + "dev", + "pdepend" + ], + "support": { + "issues": "https://github.com/pdepend/pdepend/issues", + "source": "https://github.com/pdepend/pdepend/tree/2.14.0" + }, + "funding": [ + { + "url": "https://tidelift.com/funding/github/packagist/pdepend/pdepend", + "type": "tidelift" + } + ], + "time": "2023-05-26T13:15:18+00:00" + }, + { + "name": "phpmd/phpmd", + "version": "2.13.0", + "source": { + "type": "git", + "url": "https://github.com/phpmd/phpmd.git", + "reference": "dad0228156856b3ad959992f9748514fa943f3e3" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/phpmd/phpmd/zipball/dad0228156856b3ad959992f9748514fa943f3e3", + "reference": "dad0228156856b3ad959992f9748514fa943f3e3", + "shasum": "" + }, + "require": { + "composer/xdebug-handler": "^1.0 || ^2.0 || ^3.0", + "ext-xml": "*", + "pdepend/pdepend": "^2.12.1", + "php": ">=5.3.9" + }, + "require-dev": { + "easy-doc/easy-doc": "0.0.0 || ^1.3.2", + "ext-json": "*", + "ext-simplexml": "*", + "gregwar/rst": "^1.0", + "mikey179/vfsstream": "^1.6.8", + "phpunit/phpunit": "^4.8.36 || ^5.7.27", + "squizlabs/php_codesniffer": "^2.0" + }, + "bin": [ + "src/bin/phpmd" + ], + "type": "library", + "autoload": { + "psr-0": { + "PHPMD\\": "src/main/php" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Manuel Pichler", + "email": "github@manuel-pichler.de", + "homepage": "https://github.com/manuelpichler", + "role": "Project Founder" + }, + { + "name": "Marc Würth", + "email": "ravage@bluewin.ch", + "homepage": "https://github.com/ravage84", + "role": "Project Maintainer" + }, + { + "name": "Other contributors", + "homepage": "https://github.com/phpmd/phpmd/graphs/contributors", + "role": "Contributors" + } + ], + "description": "PHPMD is a spin-off project of PHP Depend and aims to be a PHP equivalent of the well known Java tool PMD.", + "homepage": "https://phpmd.org/", + "keywords": [ + "mess detection", + "mess detector", + "pdepend", + "phpmd", + "pmd" + ], + "support": { + "irc": "irc://irc.freenode.org/phpmd", + "issues": "https://github.com/phpmd/phpmd/issues", + "source": "https://github.com/phpmd/phpmd/tree/2.13.0" + }, + "funding": [ + { + "url": "https://tidelift.com/funding/github/packagist/phpmd/phpmd", + "type": "tidelift" + } + ], + "time": "2022-09-10T08:44:15+00:00" + }, { "name": "phpoption/phpoption", "version": "1.9.1", @@ -3712,6 +4503,165 @@ ], "time": "2023-02-25T19:38:58+00:00" }, + { + "name": "phpseclib/phpseclib", + "version": "3.0.21", + "source": { + "type": "git", + "url": "https://github.com/phpseclib/phpseclib.git", + "reference": "4580645d3fc05c189024eb3b834c6c1e4f0f30a1" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/phpseclib/phpseclib/zipball/4580645d3fc05c189024eb3b834c6c1e4f0f30a1", + "reference": "4580645d3fc05c189024eb3b834c6c1e4f0f30a1", + "shasum": "" + }, + "require": { + "paragonie/constant_time_encoding": "^1|^2", + "paragonie/random_compat": "^1.4|^2.0|^9.99.99", + "php": ">=5.6.1" + }, + "require-dev": { + "phpunit/phpunit": "*" + }, + "suggest": { + "ext-dom": "Install the DOM extension to load XML formatted public keys.", + "ext-gmp": "Install the GMP (GNU Multiple Precision) extension in order to speed up arbitrary precision integer arithmetic operations.", + "ext-libsodium": "SSH2/SFTP can make use of some algorithms provided by the libsodium-php extension.", + "ext-mcrypt": "Install the Mcrypt extension in order to speed up a few other cryptographic operations.", + "ext-openssl": "Install the OpenSSL extension in order to speed up a wide variety of cryptographic operations." + }, + "type": "library", + "autoload": { + "files": [ + "phpseclib/bootstrap.php" + ], + "psr-4": { + "phpseclib3\\": "phpseclib/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Jim Wigginton", + "email": "terrafrost@php.net", + "role": "Lead Developer" + }, + { + "name": "Patrick Monnerat", + "email": "pm@datasphere.ch", + "role": "Developer" + }, + { + "name": "Andreas Fischer", + "email": "bantu@phpbb.com", + "role": "Developer" + }, + { + "name": "Hans-Jürgen Petrich", + "email": "petrich@tronic-media.com", + "role": "Developer" + }, + { + "name": "Graham Campbell", + "email": "graham@alt-three.com", + "role": "Developer" + } + ], + "description": "PHP Secure Communications Library - Pure-PHP implementations of RSA, AES, SSH2, SFTP, X.509 etc.", + "homepage": "http://phpseclib.sourceforge.net", + "keywords": [ + "BigInteger", + "aes", + "asn.1", + "asn1", + "blowfish", + "crypto", + "cryptography", + "encryption", + "rsa", + "security", + "sftp", + "signature", + "signing", + "ssh", + "twofish", + "x.509", + "x509" + ], + "support": { + "issues": "https://github.com/phpseclib/phpseclib/issues", + "source": "https://github.com/phpseclib/phpseclib/tree/3.0.21" + }, + "funding": [ + { + "url": "https://github.com/terrafrost", + "type": "github" + }, + { + "url": "https://www.patreon.com/phpseclib", + "type": "patreon" + }, + { + "url": "https://tidelift.com/funding/github/packagist/phpseclib/phpseclib", + "type": "tidelift" + } + ], + "time": "2023-07-09T15:24:48+00:00" + }, + { + "name": "psr/cache", + "version": "3.0.0", + "source": { + "type": "git", + "url": "https://github.com/php-fig/cache.git", + "reference": "aa5030cfa5405eccfdcb1083ce040c2cb8d253bf" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/cache/zipball/aa5030cfa5405eccfdcb1083ce040c2cb8d253bf", + "reference": "aa5030cfa5405eccfdcb1083ce040c2cb8d253bf", + "shasum": "" + }, + "require": { + "php": ">=8.0.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "Psr\\Cache\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "https://www.php-fig.org/" + } + ], + "description": "Common interface for caching libraries", + "keywords": [ + "cache", + "psr", + "psr-6" + ], + "support": { + "source": "https://github.com/php-fig/cache/tree/3.0.0" + }, + "time": "2021-02-03T23:26:27+00:00" + }, { "name": "psr/container", "version": "2.0.2", @@ -5120,6 +6070,81 @@ }, "time": "2023-07-05T19:02:02+00:00" }, + { + "name": "symfony/config", + "version": "v6.3.2", + "source": { + "type": "git", + "url": "https://github.com/symfony/config.git", + "reference": "b47ca238b03e7b0d7880ffd1cf06e8d637ca1467" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/config/zipball/b47ca238b03e7b0d7880ffd1cf06e8d637ca1467", + "reference": "b47ca238b03e7b0d7880ffd1cf06e8d637ca1467", + "shasum": "" + }, + "require": { + "php": ">=8.1", + "symfony/deprecation-contracts": "^2.5|^3", + "symfony/filesystem": "^5.4|^6.0", + "symfony/polyfill-ctype": "~1.8" + }, + "conflict": { + "symfony/finder": "<5.4", + "symfony/service-contracts": "<2.5" + }, + "require-dev": { + "symfony/event-dispatcher": "^5.4|^6.0", + "symfony/finder": "^5.4|^6.0", + "symfony/messenger": "^5.4|^6.0", + "symfony/service-contracts": "^2.5|^3", + "symfony/yaml": "^5.4|^6.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\Config\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Helps you find, load, combine, autofill and validate configuration values of any kind", + "homepage": "https://symfony.com", + "support": { + "source": "https://github.com/symfony/config/tree/v6.3.2" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2023-07-19T20:22:16+00:00" + }, { "name": "symfony/console", "version": "v6.3.0", @@ -5275,6 +6300,87 @@ ], "time": "2023-03-20T16:43:42+00:00" }, + { + "name": "symfony/dependency-injection", + "version": "v6.3.2", + "source": { + "type": "git", + "url": "https://github.com/symfony/dependency-injection.git", + "reference": "474cfbc46aba85a1ca11a27db684480d0db64ba7" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/dependency-injection/zipball/474cfbc46aba85a1ca11a27db684480d0db64ba7", + "reference": "474cfbc46aba85a1ca11a27db684480d0db64ba7", + "shasum": "" + }, + "require": { + "php": ">=8.1", + "psr/container": "^1.1|^2.0", + "symfony/deprecation-contracts": "^2.5|^3", + "symfony/service-contracts": "^2.5|^3.0", + "symfony/var-exporter": "^6.2.10" + }, + "conflict": { + "ext-psr": "<1.1|>=2", + "symfony/config": "<6.1", + "symfony/finder": "<5.4", + "symfony/proxy-manager-bridge": "<6.3", + "symfony/yaml": "<5.4" + }, + "provide": { + "psr/container-implementation": "1.1|2.0", + "symfony/service-implementation": "1.1|2.0|3.0" + }, + "require-dev": { + "symfony/config": "^6.1", + "symfony/expression-language": "^5.4|^6.0", + "symfony/yaml": "^5.4|^6.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\DependencyInjection\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Allows you to standardize and centralize the way objects are constructed in your application", + "homepage": "https://symfony.com", + "support": { + "source": "https://github.com/symfony/dependency-injection/tree/v6.3.2" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2023-07-19T20:17:28+00:00" + }, { "name": "symfony/deprecation-contracts", "version": "v3.3.0", @@ -5639,6 +6745,69 @@ ], "time": "2023-05-23T14:45:45+00:00" }, + { + "name": "symfony/filesystem", + "version": "v6.3.1", + "source": { + "type": "git", + "url": "https://github.com/symfony/filesystem.git", + "reference": "edd36776956f2a6fcf577edb5b05eb0e3bdc52ae" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/filesystem/zipball/edd36776956f2a6fcf577edb5b05eb0e3bdc52ae", + "reference": "edd36776956f2a6fcf577edb5b05eb0e3bdc52ae", + "shasum": "" + }, + "require": { + "php": ">=8.1", + "symfony/polyfill-ctype": "~1.8", + "symfony/polyfill-mbstring": "~1.8" + }, + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\Filesystem\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Provides basic utilities for the filesystem", + "homepage": "https://symfony.com", + "support": { + "source": "https://github.com/symfony/filesystem/tree/v6.3.1" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2023-06-01T08:30:39+00:00" + }, { "name": "symfony/finder", "version": "v6.3.0", @@ -7430,6 +8599,80 @@ ], "time": "2023-06-21T12:08:28+00:00" }, + { + "name": "symfony/var-exporter", + "version": "v6.3.2", + "source": { + "type": "git", + "url": "https://github.com/symfony/var-exporter.git", + "reference": "3400949782c0cb5b3e73aa64cfd71dde000beccc" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/var-exporter/zipball/3400949782c0cb5b3e73aa64cfd71dde000beccc", + "reference": "3400949782c0cb5b3e73aa64cfd71dde000beccc", + "shasum": "" + }, + "require": { + "php": ">=8.1" + }, + "require-dev": { + "symfony/var-dumper": "^5.4|^6.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\VarExporter\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Allows exporting any serializable PHP data structure to plain PHP code", + "homepage": "https://symfony.com", + "keywords": [ + "clone", + "construct", + "export", + "hydrate", + "instantiate", + "lazy-loading", + "proxy", + "serialize" + ], + "support": { + "source": "https://github.com/symfony/var-exporter/tree/v6.3.2" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2023-07-26T17:39:03+00:00" + }, { "name": "tightenco/ziggy", "version": "v1.6.0", @@ -9398,55 +10641,6 @@ ], "time": "2023-07-17T12:08:28+00:00" }, - { - "name": "psr/cache", - "version": "3.0.0", - "source": { - "type": "git", - "url": "https://github.com/php-fig/cache.git", - "reference": "aa5030cfa5405eccfdcb1083ce040c2cb8d253bf" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/php-fig/cache/zipball/aa5030cfa5405eccfdcb1083ce040c2cb8d253bf", - "reference": "aa5030cfa5405eccfdcb1083ce040c2cb8d253bf", - "shasum": "" - }, - "require": { - "php": ">=8.0.0" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.0.x-dev" - } - }, - "autoload": { - "psr-4": { - "Psr\\Cache\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "PHP-FIG", - "homepage": "https://www.php-fig.org/" - } - ], - "description": "Common interface for caching libraries", - "keywords": [ - "cache", - "psr", - "psr-6" - ], - "support": { - "source": "https://github.com/php-fig/cache/tree/3.0.0" - }, - "time": "2021-02-03T23:26:27+00:00" - }, { "name": "reliese/laravel", "version": "v1.2.2", diff --git a/config/index-now.php b/config/index-now.php new file mode 100644 index 0000000..a0152a0 --- /dev/null +++ b/config/index-now.php @@ -0,0 +1,13 @@ + env('INDEXNOW_SUBMIT_DELAY', 600), + 'host' => env('APP_URL', 'localhost'), + 'key' => env('INDEXNOW_KEY', ''), + 'key-location' => env('INDEXNOW_KEY_LOCATION', ''), + 'log-failed-submits' => env('INDEXNOW_LOG_FAILED_SUBMITS', true), + 'production-env' => env('INDEXNOW_PRODUCTION_ENV', 'production'), + 'search-engine' => env('INDEXNOW_SEARCH_ENGINE', 'api.indexnow.org'), +]; diff --git a/config/laravel-google-indexing.php b/config/laravel-google-indexing.php new file mode 100644 index 0000000..71e2c4c --- /dev/null +++ b/config/laravel-google-indexing.php @@ -0,0 +1,11 @@ + [ + 'auth_config' => storage_path('google_auth_config_indexing.json'), + + 'scopes' => [ + \Google_Service_Indexing::INDEXING, + ], + ], +]; diff --git a/public/build/assets/NativeImageBlock-c80786a0.js.gz b/public/build/assets/NativeImageBlock-c80786a0.js.gz deleted file mode 100644 index 27c0f4d..0000000 Binary files a/public/build/assets/NativeImageBlock-c80786a0.js.gz and /dev/null differ diff --git a/public/build/assets/NativeImageBlock-c80786a0.js b/public/build/assets/NativeImageBlock-f0434154.js similarity index 99% rename from public/build/assets/NativeImageBlock-c80786a0.js rename to public/build/assets/NativeImageBlock-f0434154.js index 61dd87a..2504f49 100644 --- a/public/build/assets/NativeImageBlock-c80786a0.js +++ b/public/build/assets/NativeImageBlock-f0434154.js @@ -1 +1 @@ -import{Y as m,_ as y,a as b,i as g,D as c,G as w,I as $,h as f,Z as S,$ as I}from"./admin-app-4cec6240.js";var _=m();class p{constructor(e,t,r){this.name=e,this.definition=t,this.bindings=t.bindings??{},this.wheres=t.wheres??{},this.config=r}get template(){return`${this.origin}/${this.definition.uri}`.replace(/\/+$/,"")}get origin(){return this.config.absolute?this.definition.domain?`${this.config.url.match(/^\w+:\/\//)[0]}${this.definition.domain}${this.config.port?`:${this.config.port}`:""}`:this.config.url:""}get parameterSegments(){var e;return((e=this.template.match(/{[^}?]+\??}/g))==null?void 0:e.map(t=>({name:t.replace(/{|\??}/g,""),required:!/\?}$/.test(t)})))??[]}matchesUrl(e){if(!this.definition.methods.includes("GET"))return!1;const t=this.template.replace(/(\/?){([^}?]*)(\??)}/g,(n,l,u,h)=>{var d;const a=`(?<${u}>${((d=this.wheres[u])==null?void 0:d.replace(/(^\^)|(\$$)/g,""))||"[^/?]+"})`;return h?`(${l}${a})?`:`${l}${a}`}).replace(/^\w+:\/\//,""),[r,s]=e.replace(/^\w+:\/\//,"").split("?"),i=new RegExp(`^${t}/?$`).exec(r);if(i){for(const n in i.groups)i.groups[n]=typeof i.groups[n]=="string"?decodeURIComponent(i.groups[n]):i.groups[n];return{params:i.groups,query:_.parse(s)}}return!1}compile(e){const t=this.parameterSegments;return t.length?this.template.replace(/{([^}?]+)(\??)}/g,(r,s,i)=>{if(!i&&[null,void 0].includes(e[s]))throw new Error(`Ziggy error: '${s}' parameter is required for route '${this.name}'.`);if(t[t.length-1].name===s&&this.wheres[s]===".*")return encodeURIComponent(e[s]??"").replace(/%2F/g,"/");if(this.wheres[s]&&!new RegExp(`^${i?`(${this.wheres[s]})?`:this.wheres[s]}$`).test(e[s]??""))throw new Error(`Ziggy error: '${s}' parameter does not match required format '${this.wheres[s]}' for route '${this.name}'.`);return encodeURIComponent(e[s]??"")}).replace(`${this.origin}//`,`${this.origin}/`).replace(/\/+$/,""):this.template}}class v extends String{constructor(e,t,r=!0,s){if(super(),this._config=s??(typeof Ziggy<"u"?Ziggy:globalThis==null?void 0:globalThis.Ziggy),this._config={...this._config,absolute:r},e){if(!this._config.routes[e])throw new Error(`Ziggy error: route '${e}' is not in the route list.`);this._route=new p(e,this._config.routes[e],this._config),this._params=this._parse(t)}}toString(){const e=Object.keys(this._params).filter(t=>!this._route.parameterSegments.some(({name:r})=>r===t)).filter(t=>t!=="_query").reduce((t,r)=>({...t,[r]:this._params[r]}),{});return this._route.compile(this._params)+_.stringify({...e,...this._params._query},{addQueryPrefix:!0,arrayFormat:"indices",encodeValuesOnly:!0,skipNulls:!0,encoder:(t,r)=>typeof t=="boolean"?Number(t):r(t)})}_unresolve(e){e?this._config.absolute&&e.startsWith("/")&&(e=this._location().host+e):e=this._currentUrl();let t={};const[r,s]=Object.entries(this._config.routes).find(([i,n])=>t=new p(i,n,this._config).matchesUrl(e))||[void 0,void 0];return{name:r,...t,route:s}}_currentUrl(){const{host:e,pathname:t,search:r}=this._location();return(this._config.absolute?e+t:t.replace(this._config.url.replace(/^\w*:\/\/[^/]+/,""),"").replace(/^\/+/,"/"))+r}current(e,t){const{name:r,params:s,query:i,route:n}=this._unresolve();if(!e)return r;const l=new RegExp(`^${e.replace(/\./g,"\\.").replace(/\*/g,".*")}$`).test(r);if([null,void 0].includes(t)||!l)return l;const u=new p(r,n,this._config);t=this._parse(t,u);const h={...s,...i};return Object.values(t).every(a=>!a)&&!Object.values(h).some(a=>a!==void 0)?!0:Object.entries(t).every(([a,d])=>h[a]==d)}_location(){var s,i,n;const{host:e="",pathname:t="",search:r=""}=typeof window<"u"?window.location:{};return{host:((s=this._config.location)==null?void 0:s.host)??e,pathname:((i=this._config.location)==null?void 0:i.pathname)??t,search:((n=this._config.location)==null?void 0:n.search)??r}}get params(){const{params:e,query:t}=this._unresolve();return{...e,...t}}has(e){return Object.keys(this._config.routes).includes(e)}_parse(e={},t=this._route){e??(e={}),e=["string","number"].includes(typeof e)?[e]:e;const r=t.parameterSegments.filter(({name:s})=>!this._config.defaults[s]);return Array.isArray(e)?e=e.reduce((s,i,n)=>r[n]?{...s,[r[n].name]:i}:typeof i=="object"?{...s,...i}:{...s,[i]:""},{}):r.length===1&&!e[r[0].name]&&(e.hasOwnProperty(Object.values(t.bindings)[0])||e.hasOwnProperty("id"))&&(e={[r[0].name]:e}),{...this._defaults(t),...this._substituteBindings(e,t)}}_defaults(e){return e.parameterSegments.filter(({name:t})=>this._config.defaults[t]).reduce((t,{name:r},s)=>({...t,[r]:this._config.defaults[r]}),{})}_substituteBindings(e,{bindings:t,parameterSegments:r}){return Object.entries(e).reduce((s,[i,n])=>{if(!n||typeof n!="object"||Array.isArray(n)||!r.some(({name:l})=>l===i))return{...s,[i]:n};if(!n.hasOwnProperty(t[i]))if(n.hasOwnProperty("id"))t[i]="id";else throw new Error(`Ziggy error: object passed as '${i}' parameter is missing route model binding key '${t[i]}'.`);return{...s,[i]:n[t[i]]}},{})}valueOf(){return this.toString()}check(e){return this.has(e)}}function x(o,e,t,r){const s=new v(o,e,t,r);return o?s.toString():s}const O={name:"NativeImageBlock",props:{inputImage:{type:String,default:null}},data:()=>({isLoaded:!1,isUploading:!1,imgSrc:null,placeholderSrc:"https://placekitten.com/g/2100/900"}),computed:{getButtonName(){var o;return this.imgSrc!=null&&((o=this.imgSrc)==null?void 0:o.length)>0?"Change featured image":"Upload featured image"},getBlurPx(){return this.imgSrc?0:12},bgStyle(){return{backgroundImage:`url(${this.getImgSrc})`,backgroundPosition:"center",backgroundSize:"cover",filter:`blur(${this.getBlurPx}px)`,webkitFilter:`blur(${this.getBlurPx}px)`}},getImgSrc(){var o;return this.imgSrc!=null&&((o=this.imgSrc)==null?void 0:o.length)>0?this.imgSrc:this.placeholderSrc}},methods:{openFileInput(){this.$refs.fileInput.click()},handleFileChange(o){const e=o.target.files[0];e&&this.uploadImage(e)},uploadImage(o){this.isUploading=!0;const e=new FormData;e.append("file",o),e.append("forceSize","true"),b.post(x("api.admin.upload.cloud.image"),e,{headers:{"Content-Type":"multipart/form-data"}}).then(t=>{t.data.success===1&&t.data.file&&t.data.file.url?(this.imgSrc=t.data.file.url,this.$emit("saved",t.data.file.url)):console.error("Image upload failed. Invalid response format.")}).catch(t=>{console.error("Image upload failed:",t.response)}).finally(()=>{this.isUploading=!1})},setInputImage(){var o;this.inputImage!=null&&((o=this.inputImage)==null?void 0:o.length)>0&&(this.imgSrc=this.inputImage),this.isLoaded=!0}},mounted(){this.isUploading=!1,setTimeout((function(){this.setInputImage(),this.isLoaded=!0}).bind(this),3e3)}},j=o=>(S("data-v-d3857a0e"),o=o(),I(),o),k={class:"card"},B={class:"card-body ratio ratio-21x9 bg-dark overflow-hidden"},P={class:"position-absolute w-100 h-100 d-flex justify-content-center text-center"},U={key:0,class:"align-self-center"},q=j(()=>c("div",{class:"spinner-border text-light",role:"status"},[c("span",{class:"visually-hidden"},"Loading...")],-1)),C=[q],E={key:1,class:"align-self-center"};function F(o,e,t,r,s,i){return f(),g("div",null,[c("div",k,[c("div",B,[c("div",{class:"d-flex justify-content-center text-center rounded-2",style:w(i.bgStyle)},null,4),c("div",P,[o.isUploading||!o.isLoaded?(f(),g("div",U,C)):(f(),g("div",E,[c("input",{type:"file",onChange:e[0]||(e[0]=(...n)=>i.handleFileChange&&i.handleFileChange(...n)),accept:"image/*",ref:"fileInput",style:{display:"none"}},null,544),c("button",{class:"btn btn-primary",onClick:e[1]||(e[1]=(...n)=>i.openFileInput&&i.openFileInput(...n))},$(i.getButtonName),1)]))])])])])}const N=y(O,[["render",F],["__scopeId","data-v-d3857a0e"]]),Z=Object.freeze(Object.defineProperty({__proto__:null,default:N},Symbol.toStringTag,{value:"Module"}));export{Z as N,N as _,x as r}; +import{Y as m,_ as y,a as b,i as g,D as c,G as w,I as $,h as f,Z as S,$ as I}from"./admin-app-98ae3828.js";var _=m();class p{constructor(e,t,r){this.name=e,this.definition=t,this.bindings=t.bindings??{},this.wheres=t.wheres??{},this.config=r}get template(){return`${this.origin}/${this.definition.uri}`.replace(/\/+$/,"")}get origin(){return this.config.absolute?this.definition.domain?`${this.config.url.match(/^\w+:\/\//)[0]}${this.definition.domain}${this.config.port?`:${this.config.port}`:""}`:this.config.url:""}get parameterSegments(){var e;return((e=this.template.match(/{[^}?]+\??}/g))==null?void 0:e.map(t=>({name:t.replace(/{|\??}/g,""),required:!/\?}$/.test(t)})))??[]}matchesUrl(e){if(!this.definition.methods.includes("GET"))return!1;const t=this.template.replace(/(\/?){([^}?]*)(\??)}/g,(n,l,u,h)=>{var d;const a=`(?<${u}>${((d=this.wheres[u])==null?void 0:d.replace(/(^\^)|(\$$)/g,""))||"[^/?]+"})`;return h?`(${l}${a})?`:`${l}${a}`}).replace(/^\w+:\/\//,""),[r,s]=e.replace(/^\w+:\/\//,"").split("?"),i=new RegExp(`^${t}/?$`).exec(r);if(i){for(const n in i.groups)i.groups[n]=typeof i.groups[n]=="string"?decodeURIComponent(i.groups[n]):i.groups[n];return{params:i.groups,query:_.parse(s)}}return!1}compile(e){const t=this.parameterSegments;return t.length?this.template.replace(/{([^}?]+)(\??)}/g,(r,s,i)=>{if(!i&&[null,void 0].includes(e[s]))throw new Error(`Ziggy error: '${s}' parameter is required for route '${this.name}'.`);if(t[t.length-1].name===s&&this.wheres[s]===".*")return encodeURIComponent(e[s]??"").replace(/%2F/g,"/");if(this.wheres[s]&&!new RegExp(`^${i?`(${this.wheres[s]})?`:this.wheres[s]}$`).test(e[s]??""))throw new Error(`Ziggy error: '${s}' parameter does not match required format '${this.wheres[s]}' for route '${this.name}'.`);return encodeURIComponent(e[s]??"")}).replace(`${this.origin}//`,`${this.origin}/`).replace(/\/+$/,""):this.template}}class v extends String{constructor(e,t,r=!0,s){if(super(),this._config=s??(typeof Ziggy<"u"?Ziggy:globalThis==null?void 0:globalThis.Ziggy),this._config={...this._config,absolute:r},e){if(!this._config.routes[e])throw new Error(`Ziggy error: route '${e}' is not in the route list.`);this._route=new p(e,this._config.routes[e],this._config),this._params=this._parse(t)}}toString(){const e=Object.keys(this._params).filter(t=>!this._route.parameterSegments.some(({name:r})=>r===t)).filter(t=>t!=="_query").reduce((t,r)=>({...t,[r]:this._params[r]}),{});return this._route.compile(this._params)+_.stringify({...e,...this._params._query},{addQueryPrefix:!0,arrayFormat:"indices",encodeValuesOnly:!0,skipNulls:!0,encoder:(t,r)=>typeof t=="boolean"?Number(t):r(t)})}_unresolve(e){e?this._config.absolute&&e.startsWith("/")&&(e=this._location().host+e):e=this._currentUrl();let t={};const[r,s]=Object.entries(this._config.routes).find(([i,n])=>t=new p(i,n,this._config).matchesUrl(e))||[void 0,void 0];return{name:r,...t,route:s}}_currentUrl(){const{host:e,pathname:t,search:r}=this._location();return(this._config.absolute?e+t:t.replace(this._config.url.replace(/^\w*:\/\/[^/]+/,""),"").replace(/^\/+/,"/"))+r}current(e,t){const{name:r,params:s,query:i,route:n}=this._unresolve();if(!e)return r;const l=new RegExp(`^${e.replace(/\./g,"\\.").replace(/\*/g,".*")}$`).test(r);if([null,void 0].includes(t)||!l)return l;const u=new p(r,n,this._config);t=this._parse(t,u);const h={...s,...i};return Object.values(t).every(a=>!a)&&!Object.values(h).some(a=>a!==void 0)?!0:Object.entries(t).every(([a,d])=>h[a]==d)}_location(){var s,i,n;const{host:e="",pathname:t="",search:r=""}=typeof window<"u"?window.location:{};return{host:((s=this._config.location)==null?void 0:s.host)??e,pathname:((i=this._config.location)==null?void 0:i.pathname)??t,search:((n=this._config.location)==null?void 0:n.search)??r}}get params(){const{params:e,query:t}=this._unresolve();return{...e,...t}}has(e){return Object.keys(this._config.routes).includes(e)}_parse(e={},t=this._route){e??(e={}),e=["string","number"].includes(typeof e)?[e]:e;const r=t.parameterSegments.filter(({name:s})=>!this._config.defaults[s]);return Array.isArray(e)?e=e.reduce((s,i,n)=>r[n]?{...s,[r[n].name]:i}:typeof i=="object"?{...s,...i}:{...s,[i]:""},{}):r.length===1&&!e[r[0].name]&&(e.hasOwnProperty(Object.values(t.bindings)[0])||e.hasOwnProperty("id"))&&(e={[r[0].name]:e}),{...this._defaults(t),...this._substituteBindings(e,t)}}_defaults(e){return e.parameterSegments.filter(({name:t})=>this._config.defaults[t]).reduce((t,{name:r},s)=>({...t,[r]:this._config.defaults[r]}),{})}_substituteBindings(e,{bindings:t,parameterSegments:r}){return Object.entries(e).reduce((s,[i,n])=>{if(!n||typeof n!="object"||Array.isArray(n)||!r.some(({name:l})=>l===i))return{...s,[i]:n};if(!n.hasOwnProperty(t[i]))if(n.hasOwnProperty("id"))t[i]="id";else throw new Error(`Ziggy error: object passed as '${i}' parameter is missing route model binding key '${t[i]}'.`);return{...s,[i]:n[t[i]]}},{})}valueOf(){return this.toString()}check(e){return this.has(e)}}function x(o,e,t,r){const s=new v(o,e,t,r);return o?s.toString():s}const O={name:"NativeImageBlock",props:{inputImage:{type:String,default:null}},data:()=>({isLoaded:!1,isUploading:!1,imgSrc:null,placeholderSrc:"https://placekitten.com/g/2100/900"}),computed:{getButtonName(){var o;return this.imgSrc!=null&&((o=this.imgSrc)==null?void 0:o.length)>0?"Change featured image":"Upload featured image"},getBlurPx(){return this.imgSrc?0:12},bgStyle(){return{backgroundImage:`url(${this.getImgSrc})`,backgroundPosition:"center",backgroundSize:"cover",filter:`blur(${this.getBlurPx}px)`,webkitFilter:`blur(${this.getBlurPx}px)`}},getImgSrc(){var o;return this.imgSrc!=null&&((o=this.imgSrc)==null?void 0:o.length)>0?this.imgSrc:this.placeholderSrc}},methods:{openFileInput(){this.$refs.fileInput.click()},handleFileChange(o){const e=o.target.files[0];e&&this.uploadImage(e)},uploadImage(o){this.isUploading=!0;const e=new FormData;e.append("file",o),e.append("forceSize","true"),b.post(x("api.admin.upload.cloud.image"),e,{headers:{"Content-Type":"multipart/form-data"}}).then(t=>{t.data.success===1&&t.data.file&&t.data.file.url?(this.imgSrc=t.data.file.url,this.$emit("saved",t.data.file.url)):console.error("Image upload failed. Invalid response format.")}).catch(t=>{console.error("Image upload failed:",t.response)}).finally(()=>{this.isUploading=!1})},setInputImage(){var o;this.inputImage!=null&&((o=this.inputImage)==null?void 0:o.length)>0&&(this.imgSrc=this.inputImage),this.isLoaded=!0}},mounted(){this.isUploading=!1,setTimeout((function(){this.setInputImage(),this.isLoaded=!0}).bind(this),3e3)}},j=o=>(S("data-v-d3857a0e"),o=o(),I(),o),k={class:"card"},B={class:"card-body ratio ratio-21x9 bg-dark overflow-hidden"},P={class:"position-absolute w-100 h-100 d-flex justify-content-center text-center"},U={key:0,class:"align-self-center"},q=j(()=>c("div",{class:"spinner-border text-light",role:"status"},[c("span",{class:"visually-hidden"},"Loading...")],-1)),C=[q],E={key:1,class:"align-self-center"};function F(o,e,t,r,s,i){return f(),g("div",null,[c("div",k,[c("div",B,[c("div",{class:"d-flex justify-content-center text-center rounded-2",style:w(i.bgStyle)},null,4),c("div",P,[o.isUploading||!o.isLoaded?(f(),g("div",U,C)):(f(),g("div",E,[c("input",{type:"file",onChange:e[0]||(e[0]=(...n)=>i.handleFileChange&&i.handleFileChange(...n)),accept:"image/*",ref:"fileInput",style:{display:"none"}},null,544),c("button",{class:"btn btn-primary",onClick:e[1]||(e[1]=(...n)=>i.openFileInput&&i.openFileInput(...n))},$(i.getButtonName),1)]))])])])])}const N=y(O,[["render",F],["__scopeId","data-v-d3857a0e"]]),Z=Object.freeze(Object.defineProperty({__proto__:null,default:N},Symbol.toStringTag,{value:"Module"}));export{Z as N,N as _,x as r}; diff --git a/public/build/assets/NativeImageBlock-f0434154.js.gz b/public/build/assets/NativeImageBlock-f0434154.js.gz new file mode 100644 index 0000000..a56b6d3 Binary files /dev/null and b/public/build/assets/NativeImageBlock-f0434154.js.gz differ diff --git a/public/build/assets/PostEditor-71d46622.js.gz b/public/build/assets/PostEditor-71d46622.js.gz deleted file mode 100644 index 764f11f..0000000 Binary files a/public/build/assets/PostEditor-71d46622.js.gz and /dev/null differ diff --git a/public/build/assets/PostEditor-71d46622.js b/public/build/assets/PostEditor-e067573f.js similarity index 99% rename from public/build/assets/PostEditor-71d46622.js rename to public/build/assets/PostEditor-e067573f.js index cad1286..2fa1fa6 100644 --- a/public/build/assets/PostEditor-71d46622.js +++ b/public/build/assets/PostEditor-e067573f.js @@ -1,4 +1,4 @@ -import Qn from"./VueEditorJs-d25d3072.js";import{r as Ft,_ as Mr}from"./NativeImageBlock-c80786a0.js";import{L as mn}from"./bundle-a2237f43.js";import{H as hn}from"./bundle-0252d10e.js";import{g as Cr,d as Pr,a as ua,r as zt,b as ne,c as vt,u as an,t as da,o as ct,e as nn,w as Nt,f as Z,h as R,i as Q,j as bt,k as nt,l as Fe,m as _e,n as ie,p as ze,q as ft,s as j,v as Qe,x as yn,y as Pe,z as G,A as Gn,T as Sr,B as Ce,C as he,D as K,E as rt,F as we,G as It,H as lt,I as Ve,J as Zt,K as $t,L as Mt,M as wa,N as Or,O as Nr,P as $r,_ as Ar,Q as Ir,R as Er,S as Yr,U as gn,V as Ur,W as Lr,X as wn}from"./admin-app-4cec6240.js";import"./index-8746c87e.js";var Xn={exports:{}};/*! +import Qn from"./VueEditorJs-d588a788.js";import{r as Ft,_ as Mr}from"./NativeImageBlock-f0434154.js";import{L as mn}from"./bundle-57d1f9b0.js";import{H as hn}from"./bundle-7a808777.js";import{g as Cr,d as Pr,a as ua,r as zt,b as ne,c as vt,u as an,t as da,o as ct,e as nn,w as Nt,f as Z,h as R,i as Q,j as bt,k as nt,l as Fe,m as _e,n as ie,p as ze,q as ft,s as j,v as Qe,x as yn,y as Pe,z as G,A as Gn,T as Sr,B as Ce,C as he,D as K,E as rt,F as we,G as It,H as lt,I as Ve,J as Zt,K as $t,L as Mt,M as wa,N as Or,O as Nr,P as $r,_ as Ar,Q as Ir,R as Er,S as Yr,U as gn,V as Ur,W as Lr,X as wn}from"./admin-app-98ae3828.js";import"./index-8746c87e.js";var Xn={exports:{}};/*! * Image tool * * @version 2.8.1 diff --git a/public/build/assets/PostEditor-e067573f.js.gz b/public/build/assets/PostEditor-e067573f.js.gz new file mode 100644 index 0000000..0010be8 Binary files /dev/null and b/public/build/assets/PostEditor-e067573f.js.gz differ diff --git a/public/build/assets/VueEditorJs-d25d3072.js.gz b/public/build/assets/VueEditorJs-d25d3072.js.gz deleted file mode 100644 index 543f1b1..0000000 Binary files a/public/build/assets/VueEditorJs-d25d3072.js.gz and /dev/null differ diff --git a/public/build/assets/VueEditorJs-d25d3072.js b/public/build/assets/VueEditorJs-d588a788.js similarity index 99% rename from public/build/assets/VueEditorJs-d25d3072.js rename to public/build/assets/VueEditorJs-d588a788.js index da78627..094e28e 100644 --- a/public/build/assets/VueEditorJs-d25d3072.js +++ b/public/build/assets/VueEditorJs-d588a788.js @@ -1,4 +1,4 @@ -import{_ as Le,a0 as Zt,c as Oe,i as Ne,r as Re,o as De,h as Pe}from"./admin-app-4cec6240.js";import"./index-8746c87e.js";var Fe=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function xt(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}function St(){}Object.assign(St,{default:St,register:St,revert:function(){},__esModule:!0});Element.prototype.matches||(Element.prototype.matches=Element.prototype.matchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||Element.prototype.oMatchesSelector||Element.prototype.webkitMatchesSelector||function(s){const t=(this.document||this.ownerDocument).querySelectorAll(s);let e=t.length;for(;--e>=0&&t.item(e)!==this;);return e>-1});Element.prototype.closest||(Element.prototype.closest=function(s){let t=this;if(!document.documentElement.contains(t))return null;do{if(t.matches(s))return t;t=t.parentElement||t.parentNode}while(t!==null);return null});Element.prototype.prepend||(Element.prototype.prepend=function(s){const t=document.createDocumentFragment();Array.isArray(s)||(s=[s]),s.forEach(e=>{const o=e instanceof Node;t.appendChild(o?e:document.createTextNode(e))}),this.insertBefore(t,this.firstChild)});Element.prototype.scrollIntoViewIfNeeded||(Element.prototype.scrollIntoViewIfNeeded=function(s){s=arguments.length===0?!0:!!s;const t=this.parentNode,e=window.getComputedStyle(t,null),o=parseInt(e.getPropertyValue("border-top-width")),i=parseInt(e.getPropertyValue("border-left-width")),n=this.offsetTop-t.offsetTopt.scrollTop+t.clientHeight,a=this.offsetLeft-t.offsetLeftt.scrollLeft+t.clientWidth,c=n&&!r;(n||r)&&s&&(t.scrollTop=this.offsetTop-t.offsetTop-t.clientHeight/2-o+this.clientHeight/2),(a||l)&&s&&(t.scrollLeft=this.offsetLeft-t.offsetLeft-t.clientWidth/2-i+this.clientWidth/2),(n||r||a||l)&&!s&&this.scrollIntoView(c)});let He=(s=21)=>crypto.getRandomValues(new Uint8Array(s)).reduce((t,e)=>(e&=63,e<36?t+=e.toString(36):e<62?t+=(e-26).toString(36).toUpperCase():e>62?t+="-":t+="_",t),"");var oe=(s=>(s.VERBOSE="VERBOSE",s.INFO="INFO",s.WARN="WARN",s.ERROR="ERROR",s))(oe||{});const E={BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,ESC:27,SPACE:32,LEFT:37,UP:38,DOWN:40,RIGHT:39,DELETE:46,META:91},je={LEFT:0,WHEEL:1,RIGHT:2,BACKWARD:3,FORWARD:4};function gt(s,t,e="log",o,i="color: inherit"){if(!("console"in window)||!window.console[e])return;const n=["info","log","warn","error"].includes(e),r=[];switch(gt.logLevel){case"ERROR":if(e!=="error")return;break;case"WARN":if(!["error","warn"].includes(e))return;break;case"INFO":if(!n||s)return;break}o&&r.push(o);const a="Editor.js 2.27.2",l=`line-height: 1em; +import{_ as Le,a0 as Zt,c as Oe,i as Ne,r as Re,o as De,h as Pe}from"./admin-app-98ae3828.js";import"./index-8746c87e.js";var Fe=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function xt(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}function St(){}Object.assign(St,{default:St,register:St,revert:function(){},__esModule:!0});Element.prototype.matches||(Element.prototype.matches=Element.prototype.matchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||Element.prototype.oMatchesSelector||Element.prototype.webkitMatchesSelector||function(s){const t=(this.document||this.ownerDocument).querySelectorAll(s);let e=t.length;for(;--e>=0&&t.item(e)!==this;);return e>-1});Element.prototype.closest||(Element.prototype.closest=function(s){let t=this;if(!document.documentElement.contains(t))return null;do{if(t.matches(s))return t;t=t.parentElement||t.parentNode}while(t!==null);return null});Element.prototype.prepend||(Element.prototype.prepend=function(s){const t=document.createDocumentFragment();Array.isArray(s)||(s=[s]),s.forEach(e=>{const o=e instanceof Node;t.appendChild(o?e:document.createTextNode(e))}),this.insertBefore(t,this.firstChild)});Element.prototype.scrollIntoViewIfNeeded||(Element.prototype.scrollIntoViewIfNeeded=function(s){s=arguments.length===0?!0:!!s;const t=this.parentNode,e=window.getComputedStyle(t,null),o=parseInt(e.getPropertyValue("border-top-width")),i=parseInt(e.getPropertyValue("border-left-width")),n=this.offsetTop-t.offsetTopt.scrollTop+t.clientHeight,a=this.offsetLeft-t.offsetLeftt.scrollLeft+t.clientWidth,c=n&&!r;(n||r)&&s&&(t.scrollTop=this.offsetTop-t.offsetTop-t.clientHeight/2-o+this.clientHeight/2),(a||l)&&s&&(t.scrollLeft=this.offsetLeft-t.offsetLeft-t.clientWidth/2-i+this.clientWidth/2),(n||r||a||l)&&!s&&this.scrollIntoView(c)});let He=(s=21)=>crypto.getRandomValues(new Uint8Array(s)).reduce((t,e)=>(e&=63,e<36?t+=e.toString(36):e<62?t+=(e-26).toString(36).toUpperCase():e>62?t+="-":t+="_",t),"");var oe=(s=>(s.VERBOSE="VERBOSE",s.INFO="INFO",s.WARN="WARN",s.ERROR="ERROR",s))(oe||{});const E={BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,ESC:27,SPACE:32,LEFT:37,UP:38,DOWN:40,RIGHT:39,DELETE:46,META:91},je={LEFT:0,WHEEL:1,RIGHT:2,BACKWARD:3,FORWARD:4};function gt(s,t,e="log",o,i="color: inherit"){if(!("console"in window)||!window.console[e])return;const n=["info","log","warn","error"].includes(e),r=[];switch(gt.logLevel){case"ERROR":if(e!=="error")return;break;case"WARN":if(!["error","warn"].includes(e))return;break;case"INFO":if(!n||s)return;break}o&&r.push(o);const a="Editor.js 2.27.2",l=`line-height: 1em; color: #006FEA; display: inline-block; font-size: 11px; @@ -80,4 +80,4 @@ import{_ as Le,a0 as Zt,c as Oe,i as Ne,r as Re,o as De,h as Pe}from"./admin-app * @license Apache-2.0 * @see Editor.js * @author CodeX Team - */class yi{static get version(){return"2.27.2"}constructor(t){let e=()=>{};z(t)&&D(t.onReady)&&(e=t.onReady);const o=new wi(t);this.isReady=o.isReady.then(()=>{this.exportAPI(o),e()})}exportAPI(t){const e=["configuration"],o=()=>{Object.values(t.moduleInstances).forEach(i=>{D(i.destroy)&&i.destroy(),i.listeners.removeAll()}),t=null;for(const i in this)Object.prototype.hasOwnProperty.call(this,i)&&delete this[i];Object.setPrototypeOf(this,null)};e.forEach(i=>{this[i]=t[i]}),this.destroy=o,Object.setPrototypeOf(this,t.moduleInstances.API.methods),delete this.exportAPI,Object.entries({blocks:{clear:"clear",render:"render"},caret:{focus:"focus"},events:{on:"on",off:"off",emit:"emit"},saver:{save:"save"}}).forEach(([i,n])=>{Object.entries(n).forEach(([r,a])=>{this[a]=t.moduleInstances.API.methods[i][r]})})}}const Tt={header:Zt(()=>import("./bundle-0252d10e.js").then(s=>s.b),["assets/bundle-0252d10e.js","assets/admin-app-4cec6240.js","assets/index-8746c87e.js","assets/admin-app-935fc652.css"]),list:Zt(()=>import("./bundle-a2237f43.js").then(s=>s.b),["assets/bundle-a2237f43.js","assets/admin-app-4cec6240.js","assets/index-8746c87e.js","assets/admin-app-935fc652.css"])},Ei=Oe({name:"vue-editor-js",props:{holder:{type:String,default:()=>"vue-editor-js",require:!0},config:{type:Object,default:()=>({}),require:!0},initialized:{type:Function,default:()=>{}}},setup:(s,t)=>{const e=Re({editor:null});function o(r){i(),e.editor=new yi({holder:r.holder||"vue-editor-js",...r.config,onChange:(a,l)=>{n()}}),r.initialized(e.editor)}function i(){e.editor&&(e.editor.destroy(),e.editor=null)}function n(){console.log("saveEditor"),e.editor&&e.editor.save().then(r=>{console.log(r),t.emit("saved",r)})}return De(r=>o(s)),{props:s,state:e}},methods:{useTools(s,t){const e=Object.keys(Tt),o={...s.customTools};return e.every(i=>!s[i])?(e.forEach(i=>o[i]={class:Tt[i]}),Object.keys(t).forEach(i=>{o[i]!==void 0&&o[i]!==null&&(o[i].config=t[i])}),o):(e.forEach(i=>{const n=s[i];if(n&&(o[i]={class:Tt[i]},typeof n=="object")){const r=Object.assign({},s[i]);delete r.class,o[i]=Object.assign(o[i],r)}}),Object.keys(t).forEach(i=>{o[i]!==void 0&&o[i]!==null&&(o[i].config=t[i])}),o)}}}),Si=["id"];function Ci(s,t,e,o,i,n){return Pe(),Ne("div",{id:s.holder},null,8,Si)}const Ii=Le(Ei,[["render",Ci]]);export{Tt as PLUGINS,Ii as default}; + */class yi{static get version(){return"2.27.2"}constructor(t){let e=()=>{};z(t)&&D(t.onReady)&&(e=t.onReady);const o=new wi(t);this.isReady=o.isReady.then(()=>{this.exportAPI(o),e()})}exportAPI(t){const e=["configuration"],o=()=>{Object.values(t.moduleInstances).forEach(i=>{D(i.destroy)&&i.destroy(),i.listeners.removeAll()}),t=null;for(const i in this)Object.prototype.hasOwnProperty.call(this,i)&&delete this[i];Object.setPrototypeOf(this,null)};e.forEach(i=>{this[i]=t[i]}),this.destroy=o,Object.setPrototypeOf(this,t.moduleInstances.API.methods),delete this.exportAPI,Object.entries({blocks:{clear:"clear",render:"render"},caret:{focus:"focus"},events:{on:"on",off:"off",emit:"emit"},saver:{save:"save"}}).forEach(([i,n])=>{Object.entries(n).forEach(([r,a])=>{this[a]=t.moduleInstances.API.methods[i][r]})})}}const Tt={header:Zt(()=>import("./bundle-7a808777.js").then(s=>s.b),["assets/bundle-7a808777.js","assets/admin-app-98ae3828.js","assets/index-8746c87e.js","assets/admin-app-935fc652.css"]),list:Zt(()=>import("./bundle-57d1f9b0.js").then(s=>s.b),["assets/bundle-57d1f9b0.js","assets/admin-app-98ae3828.js","assets/index-8746c87e.js","assets/admin-app-935fc652.css"])},Ei=Oe({name:"vue-editor-js",props:{holder:{type:String,default:()=>"vue-editor-js",require:!0},config:{type:Object,default:()=>({}),require:!0},initialized:{type:Function,default:()=>{}}},setup:(s,t)=>{const e=Re({editor:null});function o(r){i(),e.editor=new yi({holder:r.holder||"vue-editor-js",...r.config,onChange:(a,l)=>{n()}}),r.initialized(e.editor)}function i(){e.editor&&(e.editor.destroy(),e.editor=null)}function n(){console.log("saveEditor"),e.editor&&e.editor.save().then(r=>{console.log(r),t.emit("saved",r)})}return De(r=>o(s)),{props:s,state:e}},methods:{useTools(s,t){const e=Object.keys(Tt),o={...s.customTools};return e.every(i=>!s[i])?(e.forEach(i=>o[i]={class:Tt[i]}),Object.keys(t).forEach(i=>{o[i]!==void 0&&o[i]!==null&&(o[i].config=t[i])}),o):(e.forEach(i=>{const n=s[i];if(n&&(o[i]={class:Tt[i]},typeof n=="object")){const r=Object.assign({},s[i]);delete r.class,o[i]=Object.assign(o[i],r)}}),Object.keys(t).forEach(i=>{o[i]!==void 0&&o[i]!==null&&(o[i].config=t[i])}),o)}}}),Si=["id"];function Ci(s,t,e,o,i,n){return Pe(),Ne("div",{id:s.holder},null,8,Si)}const Ii=Le(Ei,[["render",Ci]]);export{Tt as PLUGINS,Ii as default}; diff --git a/public/build/assets/VueEditorJs-d588a788.js.gz b/public/build/assets/VueEditorJs-d588a788.js.gz new file mode 100644 index 0000000..54340a5 Binary files /dev/null and b/public/build/assets/VueEditorJs-d588a788.js.gz differ diff --git a/public/build/assets/admin-app-4cec6240.js b/public/build/assets/admin-app-98ae3828.js similarity index 93% rename from public/build/assets/admin-app-4cec6240.js rename to public/build/assets/admin-app-98ae3828.js index d780093..22331bb 100644 --- a/public/build/assets/admin-app-4cec6240.js +++ b/public/build/assets/admin-app-98ae3828.js @@ -14,4 +14,4 @@ import{P as of,c as af}from"./index-8746c87e.js";const Wp="modulepreload",qp=fun * pinia v2.1.6 * (c) 2023 Eduardo San Martin Morote * @license MIT - */let Rp;const Eo=t=>Rp=t,Fp=Symbol();function Va(t){return t&&typeof t=="object"&&Object.prototype.toString.call(t)==="[object Object]"&&typeof t.toJSON!="function"}var Ws;(function(t){t.direct="direct",t.patchObject="patch object",t.patchFunction="patch function"})(Ws||(Ws={}));function wS(){const t=ol(!0),e=t.run(()=>qt({}));let n=[],s=[];const r=br({install(i){Eo(r),r._a=i,i.provide(Fp,r),i.config.globalProperties.$pinia=r,s.forEach(o=>n.push(o)),s=[]},use(i){return!this._a&&!SS?s.push(i):n.push(i),this},_p:n,_a:null,_e:t,_s:new Map,state:e});return r}const Lp=()=>{};function Qc(t,e,n,s=Lp){t.push(e);const r=()=>{const i=t.indexOf(e);i>-1&&(t.splice(i,1),s())};return!n&&al()&&ph(r),r}function Kn(t,...e){t.slice().forEach(n=>{n(...e)})}const OS=t=>t();function Ha(t,e){t instanceof Map&&e instanceof Map&&e.forEach((n,s)=>t.set(s,n)),t instanceof Set&&e instanceof Set&&e.forEach(t.add,t);for(const n in e){if(!e.hasOwnProperty(n))continue;const s=e[n],r=t[n];Va(r)&&Va(s)&&t.hasOwnProperty(n)&&!_e(s)&&!Dt(s)?t[n]=Ha(r,s):t[n]=s}return t}const kS=Symbol();function NS(t){return!Va(t)||!t.hasOwnProperty(kS)}const{assign:Ut}=Object;function DS(t){return!!(_e(t)&&t.effect)}function PS(t,e,n,s){const{state:r,actions:i,getters:o}=e,a=n.state.value[t];let l;function u(){a||(n.state.value[t]=r?r():{});const c=Nh(n.state.value[t]);return Ut(c,i,Object.keys(o||{}).reduce((f,m)=>(f[m]=br(Fl(()=>{Eo(n);const E=n._s.get(t);return o[m].call(E,E)})),f),{}))}return l=Mp(t,u,e,n,s,!0),l}function Mp(t,e,n={},s,r,i){let o;const a=Ut({actions:{}},n),l={deep:!0};let u,c,f=[],m=[],E;const p=s.state.value[t];!i&&!p&&(s.state.value[t]={}),qt({});let h;function y(b){let w;u=c=!1,typeof b=="function"?(b(s.state.value[t]),w={type:Ws.patchFunction,storeId:t,events:E}):(Ha(s.state.value[t],b),w={type:Ws.patchObject,payload:b,storeId:t,events:E});const k=h=Symbol();Qi().then(()=>{h===k&&(u=!0)}),c=!0,Kn(f,w,s.state.value[t])}const d=i?function(){const{state:w}=n,k=w?w():{};this.$patch(P=>{Ut(P,k)})}:Lp;function _(){o.stop(),f=[],m=[],s._s.delete(t)}function v(b,w){return function(){Eo(s);const k=Array.from(arguments),P=[],N=[];function R(G){P.push(G)}function x(G){N.push(G)}Kn(m,{args:k,name:b,store:T,after:R,onError:x});let Z;try{Z=w.apply(this&&this.$id===t?this:T,k)}catch(G){throw Kn(N,G),G}return Z instanceof Promise?Z.then(G=>(Kn(P,G),G)).catch(G=>(Kn(N,G),Promise.reject(G))):(Kn(P,Z),Z)}}const g={_p:s,$id:t,$onAction:Qc.bind(null,m),$patch:y,$reset:d,$subscribe(b,w={}){const k=Qc(f,b,w.detached,()=>P()),P=o.run(()=>zt(()=>s.state.value[t],N=>{(w.flush==="sync"?c:u)&&b({storeId:t,type:Ws.direct,events:E},N)},Ut({},l,w)));return k},$dispose:_},T=vt(g);s._s.set(t,T);const O=s._a&&s._a.runWithContext||OS,S=s._e.run(()=>(o=ol(),O(()=>o.run(e))));for(const b in S){const w=S[b];if(_e(w)&&!DS(w)||Dt(w))i||(p&&NS(w)&&(_e(w)?w.value=p[b]:Ha(w,p[b])),s.state.value[t][b]=w);else if(typeof w=="function"){const k=v(b,w);S[b]=k,a.actions[b]=w}}return Ut(T,S),Ut(se(T),S),Object.defineProperty(T,"$state",{get:()=>s.state.value[t],set:b=>{y(w=>{Ut(w,b)})}}),s._p.forEach(b=>{Ut(T,o.run(()=>b({store:T,app:s._a,pinia:s,options:a})))}),p&&i&&n.hydrate&&n.hydrate(T.$state,p),u=!0,c=!0,T}function Bp(t,e,n){let s,r;const i=typeof e=="function";typeof t=="string"?(s=t,r=i?n:e):(r=t,s=t.id);function o(a,l){const u=rd();return a=a||(u?ss(Fp,null):null),a&&Eo(a),a=Rp,a._s.has(s)||(i?Mp(s,e,r,a):PS(s,r,a)),a._s.get(s)}return o.$id=s,o}function ew(t,e){return Array.isArray(e)?e.reduce((n,s)=>(n[s]=function(){return t(this.$pinia)[s]},n),{}):Object.keys(e).reduce((n,s)=>(n[s]=function(){const r=t(this.$pinia),i=e[s];return typeof i=="function"?i.call(this,r):r[i]},n),{})}function tw(t,e){return Array.isArray(e)?e.reduce((n,s)=>(n[s]=function(...r){return t(this.$pinia)[s](...r)},n),{}):Object.keys(e).reduce((n,s)=>(n[s]=function(...r){return t(this.$pinia)[e[s]](...r)},n),{})}const xp=Bp("error",{state:()=>({message:null,errors:{}})});/*! js-cookie v3.0.5 | MIT */function Jr(t){for(var e=1;e"u")){o=Jr({},e,o),typeof o.expires=="number"&&(o.expires=new Date(Date.now()+o.expires*864e5)),o.expires&&(o.expires=o.expires.toUTCString()),r=encodeURIComponent(r).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var a="";for(var l in o)o[l]&&(a+="; "+l,o[l]!==!0&&(a+="="+o[l].split(";")[0]));return document.cookie=r+"="+t.write(i,r)+a}}function s(r){if(!(typeof document>"u"||arguments.length&&!r)){for(var i=document.cookie?document.cookie.split("; "):[],o={},a=0;aqe.get("/sanctum/csrf-cookie");qe.interceptors.request.use(function(t){return xp().$reset(),Ua.get("XSRF-TOKEN")?t:RS().then(e=>t)},function(t){return Promise.reject(t)});qe.interceptors.response.use(function(t){var e,n,s,r,i,o;return(((s=(n=(e=t==null?void 0:t.data)==null?void 0:e.data)==null?void 0:n.csrf_token)==null?void 0:s.length)>0||((o=(i=(r=t==null?void 0:t.data)==null?void 0:r.data)==null?void 0:i.token)==null?void 0:o.length)>0)&&Ua.set("XSRF-TOKEN",t.data.data.csrf_token),t},function(t){switch(t.response.status){case 401:localStorage.removeItem("token"),window.location.reload();break;case 403:case 404:console.error("404");break;case 422:xp().$state=t.response.data;break;default:console.log(t.response.data)}return Promise.reject(t)});function Li(t){return Li=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Li(t)}function ui(t,e){if(!t.vueAxiosInstalled){var n=$p(e)?MS(e):e;if(BS(n)){var s=xS(t);if(s){var r=s<3?FS:LS;Object.keys(n).forEach(function(i){r(t,i,n[i])}),t.vueAxiosInstalled=!0}else console.error("[vue-axios] unknown Vue version")}else console.error("[vue-axios] configuration is invalid, expected options are either or { : }")}}function FS(t,e,n){Object.defineProperty(t.prototype,e,{get:function(){return n}}),t[e]=n}function LS(t,e,n){t.config.globalProperties[e]=n,t[e]=n}function $p(t){return t&&typeof t.get=="function"&&typeof t.post=="function"}function MS(t){return{axios:t,$http:t}}function BS(t){return Li(t)==="object"&&Object.keys(t).every(function(e){return $p(t[e])})}function xS(t){return t&&t.version&&Number(t.version.split(".")[0])}(typeof exports>"u"?"undefined":Li(exports))=="object"?module.exports=ui:typeof define=="function"&&define.amd?define([],function(){return ui}):window.Vue&&window.axios&&window.Vue.use&&Vue.use(ui,window.axios);const Zo=Bp("auth",{state:()=>({loggedIn:!!localStorage.getItem("token"),user:null}),getters:{},actions:{async login(t){await qe.get("sanctum/csrf-cookie");const e=(await qe.post("api/login",t)).data;if(e){const n=`Bearer ${e.token}`;localStorage.setItem("token",n),qe.defaults.headers.common.Authorization=n,await this.ftechUser()}},async logout(){(await qe.post("api/logout")).data&&(localStorage.removeItem("token"),this.$reset())},async ftechUser(){this.user=(await qe.get("api/me")).data,this.loggedIn=!0}}}),$S={install:({config:t})=>{t.globalProperties.$auth=Zo(),Zo().loggedIn&&Zo().ftechUser()}};function VS(t){return{all:t=t||new Map,on:function(e,n){var s=t.get(e);s?s.push(n):t.set(e,[n])},off:function(e,n){var s=t.get(e);s&&(n?s.splice(s.indexOf(n)>>>0,1):t.set(e,[]))},emit:function(e,n){var s=t.get(e);s&&s.slice().map(function(r){r(n)}),(s=t.get("*"))&&s.slice().map(function(r){r(e,n)})}}}const HS={install:(t,e)=>{t.config.globalProperties.$eventBus=VS()}},Vp={TOP_LEFT:"top-left",TOP_RIGHT:"top-right",TOP_CENTER:"top-center",BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",BOTTOM_CENTER:"bottom-center"},Mi={LIGHT:"light",DARK:"dark",COLORED:"colored",AUTO:"auto"},su={INFO:"info",SUCCESS:"success",WARNING:"warning",ERROR:"error",DEFAULT:"default"},Hp={dangerouslyHTMLString:!1,multiple:!0,position:Vp.TOP_RIGHT,autoClose:5e3,transition:"bounce",hideProgressBar:!1,pauseOnHover:!0,pauseOnFocusLoss:!0,closeOnClick:!0,className:"",bodyClassName:"",style:{},progressClassName:"",progressStyle:{},role:"alert",theme:"light"},jS={rtl:!1,newestOnTop:!1,toastClassName:""},US={...Hp,...jS};({...Hp,type:su.DEFAULT});var Bi=(t=>(t[t.COLLAPSE_DURATION=300]="COLLAPSE_DURATION",t[t.DEBOUNCE_DURATION=50]="DEBOUNCE_DURATION",t.CSS_NAMESPACE="Toastify",t))(Bi||{});vt({});vt({});vt({items:[]});const KS=vt({});vt({});function WS(...t){return Il(...t)}function qS(t={}){KS[`${Bi.CSS_NAMESPACE}-default-options`]=t}Vp.TOP_LEFT,Mi.AUTO,su.DEFAULT;su.DEFAULT,Mi.AUTO;Mi.AUTO,Mi.LIGHT;const jp={install(t,e={}){zS(e)}};typeof window<"u"&&(window.Vue3Toastify=jp);function zS(t={}){const e=WS(US,t);qS(e)}const ru={url:"https://productalert.co",port:null,defaults:{},routes:{"debugbar.openhandler":{uri:"_debugbar/open",methods:["GET","HEAD"]},"debugbar.clockwork":{uri:"_debugbar/clockwork/{id}",methods:["GET","HEAD"]},"debugbar.assets.css":{uri:"_debugbar/assets/stylesheets",methods:["GET","HEAD"]},"debugbar.assets.js":{uri:"_debugbar/assets/javascript",methods:["GET","HEAD"]},"debugbar.cache.delete":{uri:"_debugbar/cache/{key}/{tags?}",methods:["DELETE"]},"sanctum.csrf-cookie":{uri:"sanctum/csrf-cookie",methods:["GET","HEAD"]},"ignition.healthCheck":{uri:"_ignition/health-check",methods:["GET","HEAD"]},"ignition.executeSolution":{uri:"_ignition/execute-solution",methods:["POST"]},"ignition.updateConfig":{uri:"_ignition/update-config",methods:["POST"]},"api.auth.login.post":{uri:"api/login",methods:["POST"]},"api.auth.logout.post":{uri:"api/logout",methods:["POST"]},"api.admin.post.get":{uri:"api/admin/post/{id}",methods:["GET","HEAD"]},"api.admin.country-locales":{uri:"api/admin/country-locales",methods:["GET","HEAD"]},"api.admin.categories":{uri:"api/admin/categories/{country_locale_slug}",methods:["GET","HEAD"]},"api.admin.authors":{uri:"api/admin/authors",methods:["GET","HEAD"]},"api.admin.upload.cloud.image":{uri:"api/admin/image/upload",methods:["POST"]},"api.admin.post.upsert":{uri:"api/admin/admin/post/upsert",methods:["POST"]},"feeds.main":{uri:"posts.rss",methods:["GET","HEAD"]},login:{uri:"login",methods:["GET","HEAD"]},logout:{uri:"logout",methods:["POST"]},register:{uri:"register",methods:["GET","HEAD"]},"password.request":{uri:"password/reset",methods:["GET","HEAD"]},"password.email":{uri:"password/email",methods:["POST"]},"password.reset":{uri:"password/reset/{token}",methods:["GET","HEAD"]},"password.update":{uri:"password/reset",methods:["POST"]},"password.confirm":{uri:"password/confirm",methods:["GET","HEAD"]},dashboard:{uri:"admin",methods:["GET","HEAD"]},about:{uri:"admin/about",methods:["GET","HEAD"]},"users.index":{uri:"admin/users",methods:["GET","HEAD"]},"posts.manage":{uri:"admin/posts",methods:["GET","HEAD"]},"posts.manage.edit":{uri:"admin/posts/edit/{post_id}",methods:["GET","HEAD"]},"posts.manage.new":{uri:"admin/posts/new",methods:["GET","HEAD"]},"profile.show":{uri:"admin/profile",methods:["GET","HEAD"]},"profile.update":{uri:"admin/profile",methods:["PUT"]},home:{uri:"/",methods:["GET","HEAD"]},"home.country":{uri:"{country}",methods:["GET","HEAD"]},"home.country.posts":{uri:"{country}/posts",methods:["GET","HEAD"]},"home.country.post":{uri:"{country}/posts/{post_slug}",methods:["GET","HEAD"]},"home.country.category":{uri:"{country}/{category}",methods:["GET","HEAD"]}}};typeof window<"u"&&typeof window.Ziggy<"u"&&Object.assign(ru.routes,window.Ziggy.routes);var YS=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function nw(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Ka={exports:{}},Qo,ef;function iu(){if(ef)return Qo;ef=1;var t=String.prototype.replace,e=/%20/g,n={RFC1738:"RFC1738",RFC3986:"RFC3986"};return Qo={default:n.RFC3986,formatters:{RFC1738:function(s){return t.call(s,e,"+")},RFC3986:function(s){return String(s)}},RFC1738:n.RFC1738,RFC3986:n.RFC3986},Qo}var ea,tf;function Up(){if(tf)return ea;tf=1;var t=iu(),e=Object.prototype.hasOwnProperty,n=Array.isArray,s=function(){for(var h=[],y=0;y<256;++y)h.push("%"+((y<16?"0":"")+y.toString(16)).toUpperCase());return h}(),r=function(y){for(;y.length>1;){var d=y.pop(),_=d.obj[d.prop];if(n(_)){for(var v=[],g=0;g<_.length;++g)typeof _[g]<"u"&&v.push(_[g]);d.obj[d.prop]=v}}},i=function(y,d){for(var _=d&&d.plainObjects?Object.create(null):{},v=0;v=48&&b<=57||b>=65&&b<=90||b>=97&&b<=122||g===t.RFC1738&&(b===40||b===41)){O+=T.charAt(S);continue}if(b<128){O=O+s[b];continue}if(b<2048){O=O+(s[192|b>>6]+s[128|b&63]);continue}if(b<55296||b>=57344){O=O+(s[224|b>>12]+s[128|b>>6&63]+s[128|b&63]);continue}S+=1,b=65536+((b&1023)<<10|T.charCodeAt(S)&1023),O+=s[240|b>>18]+s[128|b>>12&63]+s[128|b>>6&63]+s[128|b&63]}return O},c=function(y){for(var d=[{obj:{o:y},prop:"o"}],_=[],v=0;v"u")return oe;var Oe;if(d==="comma"&&r(R))Oe=[{value:R.length>0?R.join(",")||null:void 0}];else if(r(T))Oe=T;else{var cn=Object.keys(R);Oe=O?cn.sort(O):cn}for(var ut=0;ut"u"?c.allowDots:!!h.allowDots,charset:y,charsetSentinel:typeof h.charsetSentinel=="boolean"?h.charsetSentinel:c.charsetSentinel,delimiter:typeof h.delimiter>"u"?c.delimiter:h.delimiter,encode:typeof h.encode=="boolean"?h.encode:c.encode,encoder:typeof h.encoder=="function"?h.encoder:c.encoder,encodeValuesOnly:typeof h.encodeValuesOnly=="boolean"?h.encodeValuesOnly:c.encodeValuesOnly,filter:v,format:d,formatter:_,serializeDate:typeof h.serializeDate=="function"?h.serializeDate:c.serializeDate,skipNulls:typeof h.skipNulls=="boolean"?h.skipNulls:c.skipNulls,sort:typeof h.sort=="function"?h.sort:null,strictNullHandling:typeof h.strictNullHandling=="boolean"?h.strictNullHandling:c.strictNullHandling}};return ta=function(p,h){var y=p,d=E(h),_,v;typeof d.filter=="function"?(v=d.filter,y=v("",y)):r(d.filter)&&(v=d.filter,_=v);var g=[];if(typeof y!="object"||y===null)return"";var T;h&&h.arrayFormat in s?T=h.arrayFormat:h&&"indices"in h?T=h.indices?"indices":"repeat":T="indices";var O=s[T];_||(_=Object.keys(y)),d.sort&&_.sort(d.sort);for(var S=0;S<_.length;++S){var b=_[S];d.skipNulls&&y[b]===null||a(g,m(y[b],b,O,d.strictNullHandling,d.skipNulls,d.encode?d.encoder:null,d.filter,d.sort,d.allowDots,d.serializeDate,d.format,d.formatter,d.encodeValuesOnly,d.charset))}var w=g.join(d.delimiter),k=d.addQueryPrefix===!0?"?":"";return d.charsetSentinel&&(d.charset==="iso-8859-1"?k+="utf8=%26%2310003%3B&":k+="utf8=%E2%9C%93&"),w.length>0?k+w:""},ta}var na,sf;function JS(){if(sf)return na;sf=1;var t=Up(),e=Object.prototype.hasOwnProperty,n=Array.isArray,s={allowDots:!1,allowPrototypes:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:t.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},r=function(m){return m.replace(/&#(\d+);/g,function(E,p){return String.fromCharCode(parseInt(p,10))})},i=function(m,E){return m&&typeof m=="string"&&E.comma&&m.indexOf(",")>-1?m.split(","):m},o="utf8=%26%2310003%3B",a="utf8=%E2%9C%93",l=function(E,p){var h={},y=p.ignoreQueryPrefix?E.replace(/^\?/,""):E,d=p.parameterLimit===1/0?void 0:p.parameterLimit,_=y.split(p.delimiter,d),v=-1,g,T=p.charset;if(p.charsetSentinel)for(g=0;g<_.length;++g)_[g].indexOf("utf8=")===0&&(_[g]===a?T="utf-8":_[g]===o&&(T="iso-8859-1"),v=g,g=_.length);for(g=0;g<_.length;++g)if(g!==v){var O=_[g],S=O.indexOf("]="),b=S===-1?O.indexOf("="):S+1,w,k;b===-1?(w=p.decoder(O,s.decoder,T,"key"),k=p.strictNullHandling?null:""):(w=p.decoder(O.slice(0,b),s.decoder,T,"key"),k=t.maybeMap(i(O.slice(b+1),p),function(P){return p.decoder(P,s.decoder,T,"value")})),k&&p.interpretNumericEntities&&T==="iso-8859-1"&&(k=r(k)),O.indexOf("[]=")>-1&&(k=n(k)?[k]:k),e.call(h,w)?h[w]=t.combine(h[w],k):h[w]=k}return h},u=function(m,E,p,h){for(var y=h?E:i(E,p),d=m.length-1;d>=0;--d){var _,v=m[d];if(v==="[]"&&p.parseArrays)_=[].concat(y);else{_=p.plainObjects?Object.create(null):{};var g=v.charAt(0)==="["&&v.charAt(v.length-1)==="]"?v.slice(1,-1):v,T=parseInt(g,10);!p.parseArrays&&g===""?_={0:y}:!isNaN(T)&&v!==g&&String(T)===g&&T>=0&&p.parseArrays&&T<=p.arrayLimit?(_=[],_[T]=y):g!=="__proto__"&&(_[g]=y)}y=_}return y},c=function(E,p,h,y){if(E){var d=h.allowDots?E.replace(/\.([^.[]+)/g,"[$1]"):E,_=/(\[[^[\]]*])/,v=/(\[[^[\]]*])/g,g=h.depth>0&&_.exec(d),T=g?d.slice(0,g.index):d,O=[];if(T){if(!h.plainObjects&&e.call(Object.prototype,T)&&!h.allowPrototypes)return;O.push(T)}for(var S=0;h.depth>0&&(g=v.exec(d))!==null&&S"u"?s.charset:E.charset;return{allowDots:typeof E.allowDots>"u"?s.allowDots:!!E.allowDots,allowPrototypes:typeof E.allowPrototypes=="boolean"?E.allowPrototypes:s.allowPrototypes,arrayLimit:typeof E.arrayLimit=="number"?E.arrayLimit:s.arrayLimit,charset:p,charsetSentinel:typeof E.charsetSentinel=="boolean"?E.charsetSentinel:s.charsetSentinel,comma:typeof E.comma=="boolean"?E.comma:s.comma,decoder:typeof E.decoder=="function"?E.decoder:s.decoder,delimiter:typeof E.delimiter=="string"||t.isRegExp(E.delimiter)?E.delimiter:s.delimiter,depth:typeof E.depth=="number"||E.depth===!1?+E.depth:s.depth,ignoreQueryPrefix:E.ignoreQueryPrefix===!0,interpretNumericEntities:typeof E.interpretNumericEntities=="boolean"?E.interpretNumericEntities:s.interpretNumericEntities,parameterLimit:typeof E.parameterLimit=="number"?E.parameterLimit:s.parameterLimit,parseArrays:E.parseArrays!==!1,plainObjects:typeof E.plainObjects=="boolean"?E.plainObjects:s.plainObjects,strictNullHandling:typeof E.strictNullHandling=="boolean"?E.strictNullHandling:s.strictNullHandling}};return na=function(m,E){var p=f(E);if(m===""||m===null||typeof m>"u")return p.plainObjects?Object.create(null):{};for(var h=typeof m=="string"?l(m,p):m,y=p.plainObjects?Object.create(null):{},d=Object.keys(h),_=0;_"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function c(p,h,y){return c=u()?Reflect.construct.bind():function(d,_,v){var g=[null];g.push.apply(g,_);var T=new(Function.bind.apply(d,g));return v&&l(T,v.prototype),T},c.apply(null,arguments)}function f(p){var h=typeof Map=="function"?new Map:void 0;return f=function(y){if(y===null||Function.toString.call(y).indexOf("[native code]")===-1)return y;if(typeof y!="function")throw new TypeError("Super expression must either be null or a function");if(h!==void 0){if(h.has(y))return h.get(y);h.set(y,d)}function d(){return c(y,arguments,a(this).constructor)}return d.prototype=Object.create(y.prototype,{constructor:{value:d,enumerable:!1,writable:!0,configurable:!0}}),l(d,y)},f(p)}var m=function(){function p(y,d,_){var v,g;this.name=y,this.definition=d,this.bindings=(v=d.bindings)!=null?v:{},this.wheres=(g=d.wheres)!=null?g:{},this.config=_}var h=p.prototype;return h.matchesUrl=function(y){var d=this;if(!this.definition.methods.includes("GET"))return!1;var _=this.template.replace(/(\/?){([^}?]*)(\??)}/g,function(b,w,k,P){var N,R="(?<"+k+">"+(((N=d.wheres[k])==null?void 0:N.replace(/(^\^)|(\$$)/g,""))||"[^/?]+")+")";return P?"("+w+R+")?":""+w+R}).replace(/^\w+:\/\//,""),v=y.replace(/^\w+:\/\//,"").split("?"),g=v[0],T=v[1],O=new RegExp("^"+_+"/?$").exec(g);if(O){for(var S in O.groups)O.groups[S]=typeof O.groups[S]=="string"?decodeURIComponent(O.groups[S]):O.groups[S];return{params:O.groups,query:s.parse(T)}}return!1},h.compile=function(y){var d=this,_=this.parameterSegments;return _.length?this.template.replace(/{([^}?]+)(\??)}/g,function(v,g,T){var O,S,b;if(!T&&[null,void 0].includes(y[g]))throw new Error("Ziggy error: '"+g+"' parameter is required for route '"+d.name+"'.");if(_[_.length-1].name===g&&d.wheres[g]===".*")return encodeURIComponent((b=y[g])!=null?b:"").replace(/%2F/g,"/");if(d.wheres[g]&&!new RegExp("^"+(T?"("+d.wheres[g]+")?":d.wheres[g])+"$").test((O=y[g])!=null?O:""))throw new Error("Ziggy error: '"+g+"' parameter does not match required format '"+d.wheres[g]+"' for route '"+d.name+"'.");return encodeURIComponent((S=y[g])!=null?S:"")}).replace(this.origin+"//",this.origin+"/").replace(/\/+$/,""):this.template},i(p,[{key:"template",get:function(){return(this.origin+"/"+this.definition.uri).replace(/\/+$/,"")}},{key:"origin",get:function(){return this.config.absolute?this.definition.domain?""+this.config.url.match(/^\w+:\/\//)[0]+this.definition.domain+(this.config.port?":"+this.config.port:""):this.config.url:""}},{key:"parameterSegments",get:function(){var y,d;return(y=(d=this.template.match(/{[^}?]+\??}/g))==null?void 0:d.map(function(_){return{name:_.replace(/{|\??}/g,""),required:!/\?}$/.test(_)}}))!=null?y:[]}}]),p}(),E=function(p){var h,y;function d(v,g,T,O){var S;if(T===void 0&&(T=!0),(S=p.call(this)||this).t=O??(typeof Ziggy<"u"?Ziggy:globalThis==null?void 0:globalThis.Ziggy),S.t=o({},S.t,{absolute:T}),v){if(!S.t.routes[v])throw new Error("Ziggy error: route '"+v+"' is not in the route list.");S.i=new m(v,S.t.routes[v],S.t),S.u=S.o(g)}return S}y=p,(h=d).prototype=Object.create(y.prototype),h.prototype.constructor=h,l(h,y);var _=d.prototype;return _.toString=function(){var v=this,g=Object.keys(this.u).filter(function(T){return!v.i.parameterSegments.some(function(O){return O.name===T})}).filter(function(T){return T!=="_query"}).reduce(function(T,O){var S;return o({},T,((S={})[O]=v.u[O],S))},{});return this.i.compile(this.u)+s.stringify(o({},g,this.u._query),{addQueryPrefix:!0,arrayFormat:"indices",encodeValuesOnly:!0,skipNulls:!0,encoder:function(T,O){return typeof T=="boolean"?Number(T):O(T)}})},_.l=function(v){var g=this;v?this.t.absolute&&v.startsWith("/")&&(v=this.h().host+v):v=this.v();var T={},O=Object.entries(this.t.routes).find(function(S){return T=new m(S[0],S[1],g.t).matchesUrl(v)})||[void 0,void 0];return o({name:O[0]},T,{route:O[1]})},_.v=function(){var v=this.h(),g=v.pathname,T=v.search;return(this.t.absolute?v.host+g:g.replace(this.t.url.replace(/^\w*:\/\/[^/]+/,""),"").replace(/^\/+/,"/"))+T},_.current=function(v,g){var T=this.l(),O=T.name,S=T.params,b=T.query,w=T.route;if(!v)return O;var k=new RegExp("^"+v.replace(/\./g,"\\.").replace(/\*/g,".*")+"$").test(O);if([null,void 0].includes(g)||!k)return k;var P=new m(O,w,this.t);g=this.o(g,P);var N=o({},S,b);return!(!Object.values(g).every(function(R){return!R})||Object.values(N).some(function(R){return R!==void 0}))||Object.entries(g).every(function(R){return N[R[0]]==R[1]})},_.h=function(){var v,g,T,O,S,b,w=typeof window<"u"?window.location:{},k=w.host,P=w.pathname,N=w.search;return{host:(v=(g=this.t.location)==null?void 0:g.host)!=null?v:k===void 0?"":k,pathname:(T=(O=this.t.location)==null?void 0:O.pathname)!=null?T:P===void 0?"":P,search:(S=(b=this.t.location)==null?void 0:b.search)!=null?S:N===void 0?"":N}},_.has=function(v){return Object.keys(this.t.routes).includes(v)},_.o=function(v,g){var T=this;v===void 0&&(v={}),g===void 0&&(g=this.i),v!=null||(v={}),v=["string","number"].includes(typeof v)?[v]:v;var O=g.parameterSegments.filter(function(b){return!T.t.defaults[b.name]});if(Array.isArray(v))v=v.reduce(function(b,w,k){var P,N;return o({},b,O[k]?((P={})[O[k].name]=w,P):typeof w=="object"?w:((N={})[w]="",N))},{});else if(O.length===1&&!v[O[0].name]&&(v.hasOwnProperty(Object.values(g.bindings)[0])||v.hasOwnProperty("id"))){var S;(S={})[O[0].name]=v,v=S}return o({},this.p(g),this.g(v,g))},_.p=function(v){var g=this;return v.parameterSegments.filter(function(T){return g.t.defaults[T.name]}).reduce(function(T,O,S){var b,w=O.name;return o({},T,((b={})[w]=g.t.defaults[w],b))},{})},_.g=function(v,g){var T=g.bindings,O=g.parameterSegments;return Object.entries(v).reduce(function(S,b){var w,k,P=b[0],N=b[1];if(!N||typeof N!="object"||Array.isArray(N)||!O.some(function(R){return R.name===P}))return o({},S,((k={})[P]=N,k));if(!N.hasOwnProperty(T[P])){if(!N.hasOwnProperty("id"))throw new Error("Ziggy error: object passed as '"+P+"' parameter is missing route model binding key '"+T[P]+"'.");T[P]="id"}return o({},S,((w={})[P]=N[T[P]],w))},{})},_.valueOf=function(){return this.toString()},_.check=function(v){return this.has(v)},i(d,[{key:"params",get:function(){var v=this.l();return o({},v.params,v.query)}}]),d}(f(String));n.ZiggyVue={install:function(p,h){var y=function(d,_,v,g){return g===void 0&&(g=h),function(T,O,S,b){var w=new E(T,O,S,b);return T?w.toString():w}(d,_,v,g)};p.mixin({methods:{route:y}}),parseInt(p.version)>2&&p.provide("route",y)}}})})(Ka,Ka.exports);var ZS=Ka.exports;const un=zd({AdminApp:CS}),Kp=Object.assign({"/resources/js/vue/NativeImageBlock.vue":()=>Ao(()=>import("./NativeImageBlock-c80786a0.js").then(t=>t.N),["assets/NativeImageBlock-c80786a0.js","assets/NativeImageBlock-e3b0c442.css"]),"/resources/js/vue/PostEditor.vue":()=>Ao(()=>import("./PostEditor-71d46622.js"),["assets/PostEditor-71d46622.js","assets/VueEditorJs-d25d3072.js","assets/index-8746c87e.js","assets/NativeImageBlock-c80786a0.js","assets/NativeImageBlock-e3b0c442.css","assets/bundle-a2237f43.js","assets/bundle-0252d10e.js","assets/PostEditor-8d534a4a.css"]),"/resources/js/vue/VueEditorJs.vue":()=>Ao(()=>import("./VueEditorJs-d25d3072.js"),["assets/VueEditorJs-d25d3072.js","assets/index-8746c87e.js"])});console.log(Kp);un.use(wS());un.use(ui,qe);un.use($S);un.use(HS);un.use(jp);un.use(ZS.ZiggyVue,ru);window.Ziggy=ru;Object.entries({...Kp}).forEach(([t,e])=>{const n=t.split("/").pop().replace(/\.\w+$/,"").replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();un.component(n,jh(e))});un.mount("#app");export{yv as $,jv as A,Er as B,CT as C,Nl as D,AT as E,Ne as F,_r as G,Dl as H,v0 as I,Ll as J,Qi as K,Lv as L,jd as M,zh as N,al as O,ph as P,ew as Q,tw as R,Hv as S,wA as T,Ti as U,Ml as V,NA as W,Bl as X,XS as Y,Ev as Z,vS as _,qe as a,Ao as a0,qt as b,ro as c,Bp as d,lo as e,Fl as f,nw as g,Cr as h,md as i,de as j,Wv as k,Kv as l,El as m,qv as n,Tr as o,f0 as p,Ed as q,vt as r,pl as s,lv as t,nA as u,Il as v,zt as w,_e as x,kl as y,DA as z}; + */let Rp;const Eo=t=>Rp=t,Fp=Symbol();function Va(t){return t&&typeof t=="object"&&Object.prototype.toString.call(t)==="[object Object]"&&typeof t.toJSON!="function"}var Ws;(function(t){t.direct="direct",t.patchObject="patch object",t.patchFunction="patch function"})(Ws||(Ws={}));function wS(){const t=ol(!0),e=t.run(()=>qt({}));let n=[],s=[];const r=br({install(i){Eo(r),r._a=i,i.provide(Fp,r),i.config.globalProperties.$pinia=r,s.forEach(o=>n.push(o)),s=[]},use(i){return!this._a&&!SS?s.push(i):n.push(i),this},_p:n,_a:null,_e:t,_s:new Map,state:e});return r}const Lp=()=>{};function Qc(t,e,n,s=Lp){t.push(e);const r=()=>{const i=t.indexOf(e);i>-1&&(t.splice(i,1),s())};return!n&&al()&&ph(r),r}function Kn(t,...e){t.slice().forEach(n=>{n(...e)})}const OS=t=>t();function Ha(t,e){t instanceof Map&&e instanceof Map&&e.forEach((n,s)=>t.set(s,n)),t instanceof Set&&e instanceof Set&&e.forEach(t.add,t);for(const n in e){if(!e.hasOwnProperty(n))continue;const s=e[n],r=t[n];Va(r)&&Va(s)&&t.hasOwnProperty(n)&&!_e(s)&&!Dt(s)?t[n]=Ha(r,s):t[n]=s}return t}const kS=Symbol();function NS(t){return!Va(t)||!t.hasOwnProperty(kS)}const{assign:Ut}=Object;function DS(t){return!!(_e(t)&&t.effect)}function PS(t,e,n,s){const{state:r,actions:i,getters:o}=e,a=n.state.value[t];let l;function u(){a||(n.state.value[t]=r?r():{});const c=Nh(n.state.value[t]);return Ut(c,i,Object.keys(o||{}).reduce((f,m)=>(f[m]=br(Fl(()=>{Eo(n);const E=n._s.get(t);return o[m].call(E,E)})),f),{}))}return l=Mp(t,u,e,n,s,!0),l}function Mp(t,e,n={},s,r,i){let o;const a=Ut({actions:{}},n),l={deep:!0};let u,c,f=[],m=[],E;const p=s.state.value[t];!i&&!p&&(s.state.value[t]={}),qt({});let h;function y(b){let w;u=c=!1,typeof b=="function"?(b(s.state.value[t]),w={type:Ws.patchFunction,storeId:t,events:E}):(Ha(s.state.value[t],b),w={type:Ws.patchObject,payload:b,storeId:t,events:E});const k=h=Symbol();Qi().then(()=>{h===k&&(u=!0)}),c=!0,Kn(f,w,s.state.value[t])}const d=i?function(){const{state:w}=n,k=w?w():{};this.$patch(P=>{Ut(P,k)})}:Lp;function _(){o.stop(),f=[],m=[],s._s.delete(t)}function v(b,w){return function(){Eo(s);const k=Array.from(arguments),P=[],N=[];function R(G){P.push(G)}function x(G){N.push(G)}Kn(m,{args:k,name:b,store:T,after:R,onError:x});let Z;try{Z=w.apply(this&&this.$id===t?this:T,k)}catch(G){throw Kn(N,G),G}return Z instanceof Promise?Z.then(G=>(Kn(P,G),G)).catch(G=>(Kn(N,G),Promise.reject(G))):(Kn(P,Z),Z)}}const g={_p:s,$id:t,$onAction:Qc.bind(null,m),$patch:y,$reset:d,$subscribe(b,w={}){const k=Qc(f,b,w.detached,()=>P()),P=o.run(()=>zt(()=>s.state.value[t],N=>{(w.flush==="sync"?c:u)&&b({storeId:t,type:Ws.direct,events:E},N)},Ut({},l,w)));return k},$dispose:_},T=vt(g);s._s.set(t,T);const O=s._a&&s._a.runWithContext||OS,S=s._e.run(()=>(o=ol(),O(()=>o.run(e))));for(const b in S){const w=S[b];if(_e(w)&&!DS(w)||Dt(w))i||(p&&NS(w)&&(_e(w)?w.value=p[b]:Ha(w,p[b])),s.state.value[t][b]=w);else if(typeof w=="function"){const k=v(b,w);S[b]=k,a.actions[b]=w}}return Ut(T,S),Ut(se(T),S),Object.defineProperty(T,"$state",{get:()=>s.state.value[t],set:b=>{y(w=>{Ut(w,b)})}}),s._p.forEach(b=>{Ut(T,o.run(()=>b({store:T,app:s._a,pinia:s,options:a})))}),p&&i&&n.hydrate&&n.hydrate(T.$state,p),u=!0,c=!0,T}function Bp(t,e,n){let s,r;const i=typeof e=="function";typeof t=="string"?(s=t,r=i?n:e):(r=t,s=t.id);function o(a,l){const u=rd();return a=a||(u?ss(Fp,null):null),a&&Eo(a),a=Rp,a._s.has(s)||(i?Mp(s,e,r,a):PS(s,r,a)),a._s.get(s)}return o.$id=s,o}function ew(t,e){return Array.isArray(e)?e.reduce((n,s)=>(n[s]=function(){return t(this.$pinia)[s]},n),{}):Object.keys(e).reduce((n,s)=>(n[s]=function(){const r=t(this.$pinia),i=e[s];return typeof i=="function"?i.call(this,r):r[i]},n),{})}function tw(t,e){return Array.isArray(e)?e.reduce((n,s)=>(n[s]=function(...r){return t(this.$pinia)[s](...r)},n),{}):Object.keys(e).reduce((n,s)=>(n[s]=function(...r){return t(this.$pinia)[e[s]](...r)},n),{})}const xp=Bp("error",{state:()=>({message:null,errors:{}})});/*! js-cookie v3.0.5 | MIT */function Jr(t){for(var e=1;e"u")){o=Jr({},e,o),typeof o.expires=="number"&&(o.expires=new Date(Date.now()+o.expires*864e5)),o.expires&&(o.expires=o.expires.toUTCString()),r=encodeURIComponent(r).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var a="";for(var l in o)o[l]&&(a+="; "+l,o[l]!==!0&&(a+="="+o[l].split(";")[0]));return document.cookie=r+"="+t.write(i,r)+a}}function s(r){if(!(typeof document>"u"||arguments.length&&!r)){for(var i=document.cookie?document.cookie.split("; "):[],o={},a=0;aqe.get("/sanctum/csrf-cookie");qe.interceptors.request.use(function(t){return xp().$reset(),Ua.get("XSRF-TOKEN")?t:RS().then(e=>t)},function(t){return Promise.reject(t)});qe.interceptors.response.use(function(t){var e,n,s,r,i,o;return(((s=(n=(e=t==null?void 0:t.data)==null?void 0:e.data)==null?void 0:n.csrf_token)==null?void 0:s.length)>0||((o=(i=(r=t==null?void 0:t.data)==null?void 0:r.data)==null?void 0:i.token)==null?void 0:o.length)>0)&&Ua.set("XSRF-TOKEN",t.data.data.csrf_token),t},function(t){switch(t.response.status){case 401:localStorage.removeItem("token"),window.location.reload();break;case 403:case 404:console.error("404");break;case 422:xp().$state=t.response.data;break;default:console.log(t.response.data)}return Promise.reject(t)});function Li(t){return Li=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Li(t)}function ui(t,e){if(!t.vueAxiosInstalled){var n=$p(e)?MS(e):e;if(BS(n)){var s=xS(t);if(s){var r=s<3?FS:LS;Object.keys(n).forEach(function(i){r(t,i,n[i])}),t.vueAxiosInstalled=!0}else console.error("[vue-axios] unknown Vue version")}else console.error("[vue-axios] configuration is invalid, expected options are either or { : }")}}function FS(t,e,n){Object.defineProperty(t.prototype,e,{get:function(){return n}}),t[e]=n}function LS(t,e,n){t.config.globalProperties[e]=n,t[e]=n}function $p(t){return t&&typeof t.get=="function"&&typeof t.post=="function"}function MS(t){return{axios:t,$http:t}}function BS(t){return Li(t)==="object"&&Object.keys(t).every(function(e){return $p(t[e])})}function xS(t){return t&&t.version&&Number(t.version.split(".")[0])}(typeof exports>"u"?"undefined":Li(exports))=="object"?module.exports=ui:typeof define=="function"&&define.amd?define([],function(){return ui}):window.Vue&&window.axios&&window.Vue.use&&Vue.use(ui,window.axios);const Zo=Bp("auth",{state:()=>({loggedIn:!!localStorage.getItem("token"),user:null}),getters:{},actions:{async login(t){await qe.get("sanctum/csrf-cookie");const e=(await qe.post("api/login",t)).data;if(e){const n=`Bearer ${e.token}`;localStorage.setItem("token",n),qe.defaults.headers.common.Authorization=n,await this.ftechUser()}},async logout(){(await qe.post("api/logout")).data&&(localStorage.removeItem("token"),this.$reset())},async ftechUser(){this.user=(await qe.get("api/me")).data,this.loggedIn=!0}}}),$S={install:({config:t})=>{t.globalProperties.$auth=Zo(),Zo().loggedIn&&Zo().ftechUser()}};function VS(t){return{all:t=t||new Map,on:function(e,n){var s=t.get(e);s?s.push(n):t.set(e,[n])},off:function(e,n){var s=t.get(e);s&&(n?s.splice(s.indexOf(n)>>>0,1):t.set(e,[]))},emit:function(e,n){var s=t.get(e);s&&s.slice().map(function(r){r(n)}),(s=t.get("*"))&&s.slice().map(function(r){r(e,n)})}}}const HS={install:(t,e)=>{t.config.globalProperties.$eventBus=VS()}},Vp={TOP_LEFT:"top-left",TOP_RIGHT:"top-right",TOP_CENTER:"top-center",BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",BOTTOM_CENTER:"bottom-center"},Mi={LIGHT:"light",DARK:"dark",COLORED:"colored",AUTO:"auto"},su={INFO:"info",SUCCESS:"success",WARNING:"warning",ERROR:"error",DEFAULT:"default"},Hp={dangerouslyHTMLString:!1,multiple:!0,position:Vp.TOP_RIGHT,autoClose:5e3,transition:"bounce",hideProgressBar:!1,pauseOnHover:!0,pauseOnFocusLoss:!0,closeOnClick:!0,className:"",bodyClassName:"",style:{},progressClassName:"",progressStyle:{},role:"alert",theme:"light"},jS={rtl:!1,newestOnTop:!1,toastClassName:""},US={...Hp,...jS};({...Hp,type:su.DEFAULT});var Bi=(t=>(t[t.COLLAPSE_DURATION=300]="COLLAPSE_DURATION",t[t.DEBOUNCE_DURATION=50]="DEBOUNCE_DURATION",t.CSS_NAMESPACE="Toastify",t))(Bi||{});vt({});vt({});vt({items:[]});const KS=vt({});vt({});function WS(...t){return Il(...t)}function qS(t={}){KS[`${Bi.CSS_NAMESPACE}-default-options`]=t}Vp.TOP_LEFT,Mi.AUTO,su.DEFAULT;su.DEFAULT,Mi.AUTO;Mi.AUTO,Mi.LIGHT;const jp={install(t,e={}){zS(e)}};typeof window<"u"&&(window.Vue3Toastify=jp);function zS(t={}){const e=WS(US,t);qS(e)}const ru={url:"https://productalert.co",port:null,defaults:{},routes:{"debugbar.openhandler":{uri:"_debugbar/open",methods:["GET","HEAD"]},"debugbar.clockwork":{uri:"_debugbar/clockwork/{id}",methods:["GET","HEAD"]},"debugbar.assets.css":{uri:"_debugbar/assets/stylesheets",methods:["GET","HEAD"]},"debugbar.assets.js":{uri:"_debugbar/assets/javascript",methods:["GET","HEAD"]},"debugbar.cache.delete":{uri:"_debugbar/cache/{key}/{tags?}",methods:["DELETE"]},"sanctum.csrf-cookie":{uri:"sanctum/csrf-cookie",methods:["GET","HEAD"]},"ignition.healthCheck":{uri:"_ignition/health-check",methods:["GET","HEAD"]},"ignition.executeSolution":{uri:"_ignition/execute-solution",methods:["POST"]},"ignition.updateConfig":{uri:"_ignition/update-config",methods:["POST"]},"api.auth.login.post":{uri:"api/login",methods:["POST"]},"api.auth.logout.post":{uri:"api/logout",methods:["POST"]},"api.admin.post.get":{uri:"api/admin/post/{id}",methods:["GET","HEAD"]},"api.admin.country-locales":{uri:"api/admin/country-locales",methods:["GET","HEAD"]},"api.admin.categories":{uri:"api/admin/categories/{country_locale_slug}",methods:["GET","HEAD"]},"api.admin.authors":{uri:"api/admin/authors",methods:["GET","HEAD"]},"api.admin.upload.cloud.image":{uri:"api/admin/image/upload",methods:["POST"]},"api.admin.post.upsert":{uri:"api/admin/admin/post/upsert",methods:["POST"]},"feeds.main":{uri:"posts.rss",methods:["GET","HEAD"]},login:{uri:"login",methods:["GET","HEAD"]},logout:{uri:"logout",methods:["POST"]},register:{uri:"register",methods:["GET","HEAD"]},"password.request":{uri:"password/reset",methods:["GET","HEAD"]},"password.email":{uri:"password/email",methods:["POST"]},"password.reset":{uri:"password/reset/{token}",methods:["GET","HEAD"]},"password.update":{uri:"password/reset",methods:["POST"]},"password.confirm":{uri:"password/confirm",methods:["GET","HEAD"]},dashboard:{uri:"admin",methods:["GET","HEAD"]},about:{uri:"admin/about",methods:["GET","HEAD"]},"users.index":{uri:"admin/users",methods:["GET","HEAD"]},"posts.manage":{uri:"admin/posts",methods:["GET","HEAD"]},"posts.manage.edit":{uri:"admin/posts/edit/{post_id}",methods:["GET","HEAD"]},"posts.manage.indexing":{uri:"admin/posts/indexing/{post_id}",methods:["GET","HEAD"]},"posts.manage.new":{uri:"admin/posts/new",methods:["GET","HEAD"]},"profile.show":{uri:"admin/profile",methods:["GET","HEAD"]},"profile.update":{uri:"admin/profile",methods:["PUT"]},home:{uri:"/",methods:["GET","HEAD"]},"home.country":{uri:"{country}",methods:["GET","HEAD"]},"home.country.posts":{uri:"{country}/posts",methods:["GET","HEAD"]},"home.country.post":{uri:"{country}/posts/{post_slug}",methods:["GET","HEAD"]},"home.country.category":{uri:"{country}/{category}",methods:["GET","HEAD"]}}};typeof window<"u"&&typeof window.Ziggy<"u"&&Object.assign(ru.routes,window.Ziggy.routes);var YS=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function nw(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Ka={exports:{}},Qo,ef;function iu(){if(ef)return Qo;ef=1;var t=String.prototype.replace,e=/%20/g,n={RFC1738:"RFC1738",RFC3986:"RFC3986"};return Qo={default:n.RFC3986,formatters:{RFC1738:function(s){return t.call(s,e,"+")},RFC3986:function(s){return String(s)}},RFC1738:n.RFC1738,RFC3986:n.RFC3986},Qo}var ea,tf;function Up(){if(tf)return ea;tf=1;var t=iu(),e=Object.prototype.hasOwnProperty,n=Array.isArray,s=function(){for(var h=[],y=0;y<256;++y)h.push("%"+((y<16?"0":"")+y.toString(16)).toUpperCase());return h}(),r=function(y){for(;y.length>1;){var d=y.pop(),_=d.obj[d.prop];if(n(_)){for(var v=[],g=0;g<_.length;++g)typeof _[g]<"u"&&v.push(_[g]);d.obj[d.prop]=v}}},i=function(y,d){for(var _=d&&d.plainObjects?Object.create(null):{},v=0;v=48&&b<=57||b>=65&&b<=90||b>=97&&b<=122||g===t.RFC1738&&(b===40||b===41)){O+=T.charAt(S);continue}if(b<128){O=O+s[b];continue}if(b<2048){O=O+(s[192|b>>6]+s[128|b&63]);continue}if(b<55296||b>=57344){O=O+(s[224|b>>12]+s[128|b>>6&63]+s[128|b&63]);continue}S+=1,b=65536+((b&1023)<<10|T.charCodeAt(S)&1023),O+=s[240|b>>18]+s[128|b>>12&63]+s[128|b>>6&63]+s[128|b&63]}return O},c=function(y){for(var d=[{obj:{o:y},prop:"o"}],_=[],v=0;v"u")return oe;var Oe;if(d==="comma"&&r(R))Oe=[{value:R.length>0?R.join(",")||null:void 0}];else if(r(T))Oe=T;else{var cn=Object.keys(R);Oe=O?cn.sort(O):cn}for(var ut=0;ut"u"?c.allowDots:!!h.allowDots,charset:y,charsetSentinel:typeof h.charsetSentinel=="boolean"?h.charsetSentinel:c.charsetSentinel,delimiter:typeof h.delimiter>"u"?c.delimiter:h.delimiter,encode:typeof h.encode=="boolean"?h.encode:c.encode,encoder:typeof h.encoder=="function"?h.encoder:c.encoder,encodeValuesOnly:typeof h.encodeValuesOnly=="boolean"?h.encodeValuesOnly:c.encodeValuesOnly,filter:v,format:d,formatter:_,serializeDate:typeof h.serializeDate=="function"?h.serializeDate:c.serializeDate,skipNulls:typeof h.skipNulls=="boolean"?h.skipNulls:c.skipNulls,sort:typeof h.sort=="function"?h.sort:null,strictNullHandling:typeof h.strictNullHandling=="boolean"?h.strictNullHandling:c.strictNullHandling}};return ta=function(p,h){var y=p,d=E(h),_,v;typeof d.filter=="function"?(v=d.filter,y=v("",y)):r(d.filter)&&(v=d.filter,_=v);var g=[];if(typeof y!="object"||y===null)return"";var T;h&&h.arrayFormat in s?T=h.arrayFormat:h&&"indices"in h?T=h.indices?"indices":"repeat":T="indices";var O=s[T];_||(_=Object.keys(y)),d.sort&&_.sort(d.sort);for(var S=0;S<_.length;++S){var b=_[S];d.skipNulls&&y[b]===null||a(g,m(y[b],b,O,d.strictNullHandling,d.skipNulls,d.encode?d.encoder:null,d.filter,d.sort,d.allowDots,d.serializeDate,d.format,d.formatter,d.encodeValuesOnly,d.charset))}var w=g.join(d.delimiter),k=d.addQueryPrefix===!0?"?":"";return d.charsetSentinel&&(d.charset==="iso-8859-1"?k+="utf8=%26%2310003%3B&":k+="utf8=%E2%9C%93&"),w.length>0?k+w:""},ta}var na,sf;function JS(){if(sf)return na;sf=1;var t=Up(),e=Object.prototype.hasOwnProperty,n=Array.isArray,s={allowDots:!1,allowPrototypes:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:t.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},r=function(m){return m.replace(/&#(\d+);/g,function(E,p){return String.fromCharCode(parseInt(p,10))})},i=function(m,E){return m&&typeof m=="string"&&E.comma&&m.indexOf(",")>-1?m.split(","):m},o="utf8=%26%2310003%3B",a="utf8=%E2%9C%93",l=function(E,p){var h={},y=p.ignoreQueryPrefix?E.replace(/^\?/,""):E,d=p.parameterLimit===1/0?void 0:p.parameterLimit,_=y.split(p.delimiter,d),v=-1,g,T=p.charset;if(p.charsetSentinel)for(g=0;g<_.length;++g)_[g].indexOf("utf8=")===0&&(_[g]===a?T="utf-8":_[g]===o&&(T="iso-8859-1"),v=g,g=_.length);for(g=0;g<_.length;++g)if(g!==v){var O=_[g],S=O.indexOf("]="),b=S===-1?O.indexOf("="):S+1,w,k;b===-1?(w=p.decoder(O,s.decoder,T,"key"),k=p.strictNullHandling?null:""):(w=p.decoder(O.slice(0,b),s.decoder,T,"key"),k=t.maybeMap(i(O.slice(b+1),p),function(P){return p.decoder(P,s.decoder,T,"value")})),k&&p.interpretNumericEntities&&T==="iso-8859-1"&&(k=r(k)),O.indexOf("[]=")>-1&&(k=n(k)?[k]:k),e.call(h,w)?h[w]=t.combine(h[w],k):h[w]=k}return h},u=function(m,E,p,h){for(var y=h?E:i(E,p),d=m.length-1;d>=0;--d){var _,v=m[d];if(v==="[]"&&p.parseArrays)_=[].concat(y);else{_=p.plainObjects?Object.create(null):{};var g=v.charAt(0)==="["&&v.charAt(v.length-1)==="]"?v.slice(1,-1):v,T=parseInt(g,10);!p.parseArrays&&g===""?_={0:y}:!isNaN(T)&&v!==g&&String(T)===g&&T>=0&&p.parseArrays&&T<=p.arrayLimit?(_=[],_[T]=y):g!=="__proto__"&&(_[g]=y)}y=_}return y},c=function(E,p,h,y){if(E){var d=h.allowDots?E.replace(/\.([^.[]+)/g,"[$1]"):E,_=/(\[[^[\]]*])/,v=/(\[[^[\]]*])/g,g=h.depth>0&&_.exec(d),T=g?d.slice(0,g.index):d,O=[];if(T){if(!h.plainObjects&&e.call(Object.prototype,T)&&!h.allowPrototypes)return;O.push(T)}for(var S=0;h.depth>0&&(g=v.exec(d))!==null&&S"u"?s.charset:E.charset;return{allowDots:typeof E.allowDots>"u"?s.allowDots:!!E.allowDots,allowPrototypes:typeof E.allowPrototypes=="boolean"?E.allowPrototypes:s.allowPrototypes,arrayLimit:typeof E.arrayLimit=="number"?E.arrayLimit:s.arrayLimit,charset:p,charsetSentinel:typeof E.charsetSentinel=="boolean"?E.charsetSentinel:s.charsetSentinel,comma:typeof E.comma=="boolean"?E.comma:s.comma,decoder:typeof E.decoder=="function"?E.decoder:s.decoder,delimiter:typeof E.delimiter=="string"||t.isRegExp(E.delimiter)?E.delimiter:s.delimiter,depth:typeof E.depth=="number"||E.depth===!1?+E.depth:s.depth,ignoreQueryPrefix:E.ignoreQueryPrefix===!0,interpretNumericEntities:typeof E.interpretNumericEntities=="boolean"?E.interpretNumericEntities:s.interpretNumericEntities,parameterLimit:typeof E.parameterLimit=="number"?E.parameterLimit:s.parameterLimit,parseArrays:E.parseArrays!==!1,plainObjects:typeof E.plainObjects=="boolean"?E.plainObjects:s.plainObjects,strictNullHandling:typeof E.strictNullHandling=="boolean"?E.strictNullHandling:s.strictNullHandling}};return na=function(m,E){var p=f(E);if(m===""||m===null||typeof m>"u")return p.plainObjects?Object.create(null):{};for(var h=typeof m=="string"?l(m,p):m,y=p.plainObjects?Object.create(null):{},d=Object.keys(h),_=0;_"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function c(p,h,y){return c=u()?Reflect.construct.bind():function(d,_,v){var g=[null];g.push.apply(g,_);var T=new(Function.bind.apply(d,g));return v&&l(T,v.prototype),T},c.apply(null,arguments)}function f(p){var h=typeof Map=="function"?new Map:void 0;return f=function(y){if(y===null||Function.toString.call(y).indexOf("[native code]")===-1)return y;if(typeof y!="function")throw new TypeError("Super expression must either be null or a function");if(h!==void 0){if(h.has(y))return h.get(y);h.set(y,d)}function d(){return c(y,arguments,a(this).constructor)}return d.prototype=Object.create(y.prototype,{constructor:{value:d,enumerable:!1,writable:!0,configurable:!0}}),l(d,y)},f(p)}var m=function(){function p(y,d,_){var v,g;this.name=y,this.definition=d,this.bindings=(v=d.bindings)!=null?v:{},this.wheres=(g=d.wheres)!=null?g:{},this.config=_}var h=p.prototype;return h.matchesUrl=function(y){var d=this;if(!this.definition.methods.includes("GET"))return!1;var _=this.template.replace(/(\/?){([^}?]*)(\??)}/g,function(b,w,k,P){var N,R="(?<"+k+">"+(((N=d.wheres[k])==null?void 0:N.replace(/(^\^)|(\$$)/g,""))||"[^/?]+")+")";return P?"("+w+R+")?":""+w+R}).replace(/^\w+:\/\//,""),v=y.replace(/^\w+:\/\//,"").split("?"),g=v[0],T=v[1],O=new RegExp("^"+_+"/?$").exec(g);if(O){for(var S in O.groups)O.groups[S]=typeof O.groups[S]=="string"?decodeURIComponent(O.groups[S]):O.groups[S];return{params:O.groups,query:s.parse(T)}}return!1},h.compile=function(y){var d=this,_=this.parameterSegments;return _.length?this.template.replace(/{([^}?]+)(\??)}/g,function(v,g,T){var O,S,b;if(!T&&[null,void 0].includes(y[g]))throw new Error("Ziggy error: '"+g+"' parameter is required for route '"+d.name+"'.");if(_[_.length-1].name===g&&d.wheres[g]===".*")return encodeURIComponent((b=y[g])!=null?b:"").replace(/%2F/g,"/");if(d.wheres[g]&&!new RegExp("^"+(T?"("+d.wheres[g]+")?":d.wheres[g])+"$").test((O=y[g])!=null?O:""))throw new Error("Ziggy error: '"+g+"' parameter does not match required format '"+d.wheres[g]+"' for route '"+d.name+"'.");return encodeURIComponent((S=y[g])!=null?S:"")}).replace(this.origin+"//",this.origin+"/").replace(/\/+$/,""):this.template},i(p,[{key:"template",get:function(){return(this.origin+"/"+this.definition.uri).replace(/\/+$/,"")}},{key:"origin",get:function(){return this.config.absolute?this.definition.domain?""+this.config.url.match(/^\w+:\/\//)[0]+this.definition.domain+(this.config.port?":"+this.config.port:""):this.config.url:""}},{key:"parameterSegments",get:function(){var y,d;return(y=(d=this.template.match(/{[^}?]+\??}/g))==null?void 0:d.map(function(_){return{name:_.replace(/{|\??}/g,""),required:!/\?}$/.test(_)}}))!=null?y:[]}}]),p}(),E=function(p){var h,y;function d(v,g,T,O){var S;if(T===void 0&&(T=!0),(S=p.call(this)||this).t=O??(typeof Ziggy<"u"?Ziggy:globalThis==null?void 0:globalThis.Ziggy),S.t=o({},S.t,{absolute:T}),v){if(!S.t.routes[v])throw new Error("Ziggy error: route '"+v+"' is not in the route list.");S.i=new m(v,S.t.routes[v],S.t),S.u=S.o(g)}return S}y=p,(h=d).prototype=Object.create(y.prototype),h.prototype.constructor=h,l(h,y);var _=d.prototype;return _.toString=function(){var v=this,g=Object.keys(this.u).filter(function(T){return!v.i.parameterSegments.some(function(O){return O.name===T})}).filter(function(T){return T!=="_query"}).reduce(function(T,O){var S;return o({},T,((S={})[O]=v.u[O],S))},{});return this.i.compile(this.u)+s.stringify(o({},g,this.u._query),{addQueryPrefix:!0,arrayFormat:"indices",encodeValuesOnly:!0,skipNulls:!0,encoder:function(T,O){return typeof T=="boolean"?Number(T):O(T)}})},_.l=function(v){var g=this;v?this.t.absolute&&v.startsWith("/")&&(v=this.h().host+v):v=this.v();var T={},O=Object.entries(this.t.routes).find(function(S){return T=new m(S[0],S[1],g.t).matchesUrl(v)})||[void 0,void 0];return o({name:O[0]},T,{route:O[1]})},_.v=function(){var v=this.h(),g=v.pathname,T=v.search;return(this.t.absolute?v.host+g:g.replace(this.t.url.replace(/^\w*:\/\/[^/]+/,""),"").replace(/^\/+/,"/"))+T},_.current=function(v,g){var T=this.l(),O=T.name,S=T.params,b=T.query,w=T.route;if(!v)return O;var k=new RegExp("^"+v.replace(/\./g,"\\.").replace(/\*/g,".*")+"$").test(O);if([null,void 0].includes(g)||!k)return k;var P=new m(O,w,this.t);g=this.o(g,P);var N=o({},S,b);return!(!Object.values(g).every(function(R){return!R})||Object.values(N).some(function(R){return R!==void 0}))||Object.entries(g).every(function(R){return N[R[0]]==R[1]})},_.h=function(){var v,g,T,O,S,b,w=typeof window<"u"?window.location:{},k=w.host,P=w.pathname,N=w.search;return{host:(v=(g=this.t.location)==null?void 0:g.host)!=null?v:k===void 0?"":k,pathname:(T=(O=this.t.location)==null?void 0:O.pathname)!=null?T:P===void 0?"":P,search:(S=(b=this.t.location)==null?void 0:b.search)!=null?S:N===void 0?"":N}},_.has=function(v){return Object.keys(this.t.routes).includes(v)},_.o=function(v,g){var T=this;v===void 0&&(v={}),g===void 0&&(g=this.i),v!=null||(v={}),v=["string","number"].includes(typeof v)?[v]:v;var O=g.parameterSegments.filter(function(b){return!T.t.defaults[b.name]});if(Array.isArray(v))v=v.reduce(function(b,w,k){var P,N;return o({},b,O[k]?((P={})[O[k].name]=w,P):typeof w=="object"?w:((N={})[w]="",N))},{});else if(O.length===1&&!v[O[0].name]&&(v.hasOwnProperty(Object.values(g.bindings)[0])||v.hasOwnProperty("id"))){var S;(S={})[O[0].name]=v,v=S}return o({},this.p(g),this.g(v,g))},_.p=function(v){var g=this;return v.parameterSegments.filter(function(T){return g.t.defaults[T.name]}).reduce(function(T,O,S){var b,w=O.name;return o({},T,((b={})[w]=g.t.defaults[w],b))},{})},_.g=function(v,g){var T=g.bindings,O=g.parameterSegments;return Object.entries(v).reduce(function(S,b){var w,k,P=b[0],N=b[1];if(!N||typeof N!="object"||Array.isArray(N)||!O.some(function(R){return R.name===P}))return o({},S,((k={})[P]=N,k));if(!N.hasOwnProperty(T[P])){if(!N.hasOwnProperty("id"))throw new Error("Ziggy error: object passed as '"+P+"' parameter is missing route model binding key '"+T[P]+"'.");T[P]="id"}return o({},S,((w={})[P]=N[T[P]],w))},{})},_.valueOf=function(){return this.toString()},_.check=function(v){return this.has(v)},i(d,[{key:"params",get:function(){var v=this.l();return o({},v.params,v.query)}}]),d}(f(String));n.ZiggyVue={install:function(p,h){var y=function(d,_,v,g){return g===void 0&&(g=h),function(T,O,S,b){var w=new E(T,O,S,b);return T?w.toString():w}(d,_,v,g)};p.mixin({methods:{route:y}}),parseInt(p.version)>2&&p.provide("route",y)}}})})(Ka,Ka.exports);var ZS=Ka.exports;const un=zd({AdminApp:CS}),Kp=Object.assign({"/resources/js/vue/NativeImageBlock.vue":()=>Ao(()=>import("./NativeImageBlock-f0434154.js").then(t=>t.N),["assets/NativeImageBlock-f0434154.js","assets/NativeImageBlock-e3b0c442.css"]),"/resources/js/vue/PostEditor.vue":()=>Ao(()=>import("./PostEditor-e067573f.js"),["assets/PostEditor-e067573f.js","assets/VueEditorJs-d588a788.js","assets/index-8746c87e.js","assets/NativeImageBlock-f0434154.js","assets/NativeImageBlock-e3b0c442.css","assets/bundle-57d1f9b0.js","assets/bundle-7a808777.js","assets/PostEditor-8d534a4a.css"]),"/resources/js/vue/VueEditorJs.vue":()=>Ao(()=>import("./VueEditorJs-d588a788.js"),["assets/VueEditorJs-d588a788.js","assets/index-8746c87e.js"])});console.log(Kp);un.use(wS());un.use(ui,qe);un.use($S);un.use(HS);un.use(jp);un.use(ZS.ZiggyVue,ru);window.Ziggy=ru;Object.entries({...Kp}).forEach(([t,e])=>{const n=t.split("/").pop().replace(/\.\w+$/,"").replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();un.component(n,jh(e))});un.mount("#app");export{yv as $,jv as A,Er as B,CT as C,Nl as D,AT as E,Ne as F,_r as G,Dl as H,v0 as I,Ll as J,Qi as K,Lv as L,jd as M,zh as N,al as O,ph as P,ew as Q,tw as R,Hv as S,wA as T,Ti as U,Ml as V,NA as W,Bl as X,XS as Y,Ev as Z,vS as _,qe as a,Ao as a0,qt as b,ro as c,Bp as d,lo as e,Fl as f,nw as g,Cr as h,md as i,de as j,Wv as k,Kv as l,El as m,qv as n,Tr as o,f0 as p,Ed as q,vt as r,pl as s,lv as t,nA as u,Il as v,zt as w,_e as x,kl as y,DA as z}; diff --git a/public/build/assets/admin-app-4cec6240.js.gz b/public/build/assets/admin-app-98ae3828.js.gz similarity index 73% rename from public/build/assets/admin-app-4cec6240.js.gz rename to public/build/assets/admin-app-98ae3828.js.gz index 629b644..c4c98e1 100644 Binary files a/public/build/assets/admin-app-4cec6240.js.gz and b/public/build/assets/admin-app-98ae3828.js.gz differ diff --git a/public/build/assets/bundle-0252d10e.js.gz b/public/build/assets/bundle-0252d10e.js.gz deleted file mode 100644 index 097def2..0000000 Binary files a/public/build/assets/bundle-0252d10e.js.gz and /dev/null differ diff --git a/public/build/assets/bundle-a2237f43.js b/public/build/assets/bundle-57d1f9b0.js similarity index 99% rename from public/build/assets/bundle-a2237f43.js rename to public/build/assets/bundle-57d1f9b0.js index 4c5b339..97eadcd 100644 --- a/public/build/assets/bundle-a2237f43.js +++ b/public/build/assets/bundle-57d1f9b0.js @@ -1,4 +1,4 @@ -import{g as E}from"./admin-app-4cec6240.js";function P(_,j){for(var v=0;vp[c]})}}}return Object.freeze(Object.defineProperty(_,Symbol.toStringTag,{value:"Module"}))}var T={exports:{}};(function(_,j){(function(v,p){_.exports=p()})(window,function(){return function(v){var p={};function c(o){if(p[o])return p[o].exports;var l=p[o]={i:o,l:!1,exports:{}};return v[o].call(l.exports,l,l.exports,c),l.l=!0,l.exports}return c.m=v,c.c=p,c.d=function(o,l,d){c.o(o,l)||Object.defineProperty(o,l,{enumerable:!0,get:d})},c.r=function(o){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(o,"__esModule",{value:!0})},c.t=function(o,l){if(1&l&&(o=c(o)),8&l||4&l&&typeof o=="object"&&o&&o.__esModule)return o;var d=Object.create(null);if(c.r(d),Object.defineProperty(d,"default",{enumerable:!0,value:o}),2&l&&typeof o!="string")for(var f in o)c.d(d,f,(function(b){return o[b]}).bind(null,f));return d},c.n=function(o){var l=o&&o.__esModule?function(){return o.default}:function(){return o};return c.d(l,"a",l),l},c.o=function(o,l){return Object.prototype.hasOwnProperty.call(o,l)},c.p="/",c(c.s=4)}([function(v,p,c){var o=c(1),l=c(2);typeof(l=l.__esModule?l.default:l)=="string"&&(l=[[v.i,l,""]]);var d={insert:"head",singleton:!1};o(l,d),v.exports=l.locals||{}},function(v,p,c){var o,l=function(){return o===void 0&&(o=!!(window&&document&&document.all&&!window.atob)),o},d=function(){var r={};return function(i){if(r[i]===void 0){var s=document.querySelector(i);if(window.HTMLIFrameElement&&s instanceof window.HTMLIFrameElement)try{s=s.contentDocument.head}catch{s=null}r[i]=s}return r[i]}}(),f=[];function b(r){for(var i=-1,s=0;sp[c]})}}}return Object.freeze(Object.defineProperty(_,Symbol.toStringTag,{value:"Module"}))}var T={exports:{}};(function(_,j){(function(v,p){_.exports=p()})(window,function(){return function(v){var p={};function c(o){if(p[o])return p[o].exports;var l=p[o]={i:o,l:!1,exports:{}};return v[o].call(l.exports,l,l.exports,c),l.l=!0,l.exports}return c.m=v,c.c=p,c.d=function(o,l,d){c.o(o,l)||Object.defineProperty(o,l,{enumerable:!0,get:d})},c.r=function(o){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(o,"__esModule",{value:!0})},c.t=function(o,l){if(1&l&&(o=c(o)),8&l||4&l&&typeof o=="object"&&o&&o.__esModule)return o;var d=Object.create(null);if(c.r(d),Object.defineProperty(d,"default",{enumerable:!0,value:o}),2&l&&typeof o!="string")for(var f in o)c.d(d,f,(function(b){return o[b]}).bind(null,f));return d},c.n=function(o){var l=o&&o.__esModule?function(){return o.default}:function(){return o};return c.d(l,"a",l),l},c.o=function(o,l){return Object.prototype.hasOwnProperty.call(o,l)},c.p="/",c(c.s=4)}([function(v,p,c){var o=c(1),l=c(2);typeof(l=l.__esModule?l.default:l)=="string"&&(l=[[v.i,l,""]]);var d={insert:"head",singleton:!1};o(l,d),v.exports=l.locals||{}},function(v,p,c){var o,l=function(){return o===void 0&&(o=!!(window&&document&&document.all&&!window.atob)),o},d=function(){var r={};return function(i){if(r[i]===void 0){var s=document.querySelector(i);if(window.HTMLIFrameElement&&s instanceof window.HTMLIFrameElement)try{s=s.contentDocument.head}catch{s=null}r[i]=s}return r[i]}}(),f=[];function b(r){for(var i=-1,s=0;sb[l]})}}}return Object.freeze(Object.defineProperty(x,Symbol.toStringTag,{value:"Module"}))}var E={exports:{}};(function(x,H){(function(g,b){x.exports=b()})(window,function(){return function(g){var b={};function l(n){if(b[n])return b[n].exports;var i=b[n]={i:n,l:!1,exports:{}};return g[n].call(i.exports,i,i.exports,l),i.l=!0,i.exports}return l.m=g,l.c=b,l.d=function(n,i,h){l.o(n,i)||Object.defineProperty(n,i,{enumerable:!0,get:h})},l.r=function(n){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},l.t=function(n,i){if(1&i&&(n=l(n)),8&i||4&i&&typeof n=="object"&&n&&n.__esModule)return n;var h=Object.create(null);if(l.r(h),Object.defineProperty(h,"default",{enumerable:!0,value:n}),2&i&&typeof n!="string")for(var m in n)l.d(h,m,(function(f){return n[f]}).bind(null,m));return h},l.n=function(n){var i=n&&n.__esModule?function(){return n.default}:function(){return n};return l.d(i,"a",i),i},l.o=function(n,i){return Object.prototype.hasOwnProperty.call(n,i)},l.p="/",l(l.s=5)}([function(g,b,l){var n=l(1);typeof n=="string"&&(n=[[g.i,n,""]]);var i={hmr:!0,transform:void 0,insertInto:void 0};l(3)(n,i),n.locals&&(g.exports=n.locals)},function(g,b,l){(g.exports=l(2)(!1)).push([g.i,`/** +import{g as N}from"./admin-app-98ae3828.js";function P(x,H){for(var g=0;gb[l]})}}}return Object.freeze(Object.defineProperty(x,Symbol.toStringTag,{value:"Module"}))}var E={exports:{}};(function(x,H){(function(g,b){x.exports=b()})(window,function(){return function(g){var b={};function l(n){if(b[n])return b[n].exports;var i=b[n]={i:n,l:!1,exports:{}};return g[n].call(i.exports,i,i.exports,l),i.l=!0,i.exports}return l.m=g,l.c=b,l.d=function(n,i,h){l.o(n,i)||Object.defineProperty(n,i,{enumerable:!0,get:h})},l.r=function(n){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},l.t=function(n,i){if(1&i&&(n=l(n)),8&i||4&i&&typeof n=="object"&&n&&n.__esModule)return n;var h=Object.create(null);if(l.r(h),Object.defineProperty(h,"default",{enumerable:!0,value:n}),2&i&&typeof n!="string")for(var m in n)l.d(h,m,(function(f){return n[f]}).bind(null,m));return h},l.n=function(n){var i=n&&n.__esModule?function(){return n.default}:function(){return n};return l.d(i,"a",i),i},l.o=function(n,i){return Object.prototype.hasOwnProperty.call(n,i)},l.p="/",l(l.s=5)}([function(g,b,l){var n=l(1);typeof n=="string"&&(n=[[g.i,n,""]]);var i={hmr:!0,transform:void 0,insertInto:void 0};l(3)(n,i),n.locals&&(g.exports=n.locals)},function(g,b,l){(g.exports=l(2)(!1)).push([g.i,`/** * Plugin styles */ .ce-header { diff --git a/public/build/assets/bundle-7a808777.js.gz b/public/build/assets/bundle-7a808777.js.gz new file mode 100644 index 0000000..e36a19c Binary files /dev/null and b/public/build/assets/bundle-7a808777.js.gz differ diff --git a/public/build/assets/bundle-a2237f43.js.gz b/public/build/assets/bundle-a2237f43.js.gz deleted file mode 100644 index 6f93f5c..0000000 Binary files a/public/build/assets/bundle-a2237f43.js.gz and /dev/null differ diff --git a/public/build/manifest.json b/public/build/manifest.json index 5531041..e3ed6e2 100644 --- a/public/build/manifest.json +++ b/public/build/manifest.json @@ -3,25 +3,25 @@ "file": "assets/NativeImageBlock-e3b0c442.css", "src": "NativeImageBlock.css" }, - "_NativeImageBlock-c80786a0.js": { + "_NativeImageBlock-f0434154.js": { "css": [ "assets/NativeImageBlock-e3b0c442.css" ], - "file": "assets/NativeImageBlock-c80786a0.js", + "file": "assets/NativeImageBlock-f0434154.js", "imports": [ "resources/js/admin-app.js" ], "isDynamicEntry": true }, - "_bundle-0252d10e.js": { - "file": "assets/bundle-0252d10e.js", + "_bundle-57d1f9b0.js": { + "file": "assets/bundle-57d1f9b0.js", "imports": [ "resources/js/admin-app.js" ], "isDynamicEntry": true }, - "_bundle-a2237f43.js": { - "file": "assets/bundle-a2237f43.js", + "_bundle-7a808777.js": { + "file": "assets/bundle-7a808777.js", "imports": [ "resources/js/admin-app.js" ], @@ -47,11 +47,11 @@ "assets/admin-app-935fc652.css" ], "dynamicImports": [ - "_NativeImageBlock-c80786a0.js", + "_NativeImageBlock-f0434154.js", "resources/js/vue/PostEditor.vue", "resources/js/vue/VueEditorJs.vue" ], - "file": "assets/admin-app-4cec6240.js", + "file": "assets/admin-app-98ae3828.js", "imports": [ "_index-8746c87e.js" ], @@ -74,12 +74,12 @@ "css": [ "assets/PostEditor-8d534a4a.css" ], - "file": "assets/PostEditor-71d46622.js", + "file": "assets/PostEditor-e067573f.js", "imports": [ "resources/js/vue/VueEditorJs.vue", - "_NativeImageBlock-c80786a0.js", - "_bundle-a2237f43.js", - "_bundle-0252d10e.js", + "_NativeImageBlock-f0434154.js", + "_bundle-57d1f9b0.js", + "_bundle-7a808777.js", "resources/js/admin-app.js", "_index-8746c87e.js" ], @@ -88,10 +88,10 @@ }, "resources/js/vue/VueEditorJs.vue": { "dynamicImports": [ - "_bundle-0252d10e.js", - "_bundle-a2237f43.js" + "_bundle-7a808777.js", + "_bundle-57d1f9b0.js" ], - "file": "assets/VueEditorJs-d25d3072.js", + "file": "assets/VueEditorJs-d588a788.js", "imports": [ "resources/js/admin-app.js", "_index-8746c87e.js" diff --git a/public/build/manifest.json.gz b/public/build/manifest.json.gz index 37c57a2..db9e8f6 100644 Binary files a/public/build/manifest.json.gz and b/public/build/manifest.json.gz differ diff --git a/public/f4889e55-2bf2-4ac7-abdf-24f9063ea9ac.txt b/public/f4889e55-2bf2-4ac7-abdf-24f9063ea9ac.txt new file mode 100644 index 0000000..be197f4 --- /dev/null +++ b/public/f4889e55-2bf2-4ac7-abdf-24f9063ea9ac.txt @@ -0,0 +1 @@ +f4889e55-2bf2-4ac7-abdf-24f9063ea9ac \ No newline at end of file diff --git a/resources/js/ziggy.js b/resources/js/ziggy.js index e23c7c8..b1c2512 100644 --- a/resources/js/ziggy.js +++ b/resources/js/ziggy.js @@ -1,4 +1,4 @@ -const Ziggy = {"url":"https:\/\/productalert.co","port":null,"defaults":{},"routes":{"debugbar.openhandler":{"uri":"_debugbar\/open","methods":["GET","HEAD"]},"debugbar.clockwork":{"uri":"_debugbar\/clockwork\/{id}","methods":["GET","HEAD"]},"debugbar.assets.css":{"uri":"_debugbar\/assets\/stylesheets","methods":["GET","HEAD"]},"debugbar.assets.js":{"uri":"_debugbar\/assets\/javascript","methods":["GET","HEAD"]},"debugbar.cache.delete":{"uri":"_debugbar\/cache\/{key}\/{tags?}","methods":["DELETE"]},"sanctum.csrf-cookie":{"uri":"sanctum\/csrf-cookie","methods":["GET","HEAD"]},"ignition.healthCheck":{"uri":"_ignition\/health-check","methods":["GET","HEAD"]},"ignition.executeSolution":{"uri":"_ignition\/execute-solution","methods":["POST"]},"ignition.updateConfig":{"uri":"_ignition\/update-config","methods":["POST"]},"api.auth.login.post":{"uri":"api\/login","methods":["POST"]},"api.auth.logout.post":{"uri":"api\/logout","methods":["POST"]},"api.admin.post.get":{"uri":"api\/admin\/post\/{id}","methods":["GET","HEAD"]},"api.admin.country-locales":{"uri":"api\/admin\/country-locales","methods":["GET","HEAD"]},"api.admin.categories":{"uri":"api\/admin\/categories\/{country_locale_slug}","methods":["GET","HEAD"]},"api.admin.authors":{"uri":"api\/admin\/authors","methods":["GET","HEAD"]},"api.admin.upload.cloud.image":{"uri":"api\/admin\/image\/upload","methods":["POST"]},"api.admin.post.upsert":{"uri":"api\/admin\/admin\/post\/upsert","methods":["POST"]},"feeds.main":{"uri":"posts.rss","methods":["GET","HEAD"]},"login":{"uri":"login","methods":["GET","HEAD"]},"logout":{"uri":"logout","methods":["POST"]},"register":{"uri":"register","methods":["GET","HEAD"]},"password.request":{"uri":"password\/reset","methods":["GET","HEAD"]},"password.email":{"uri":"password\/email","methods":["POST"]},"password.reset":{"uri":"password\/reset\/{token}","methods":["GET","HEAD"]},"password.update":{"uri":"password\/reset","methods":["POST"]},"password.confirm":{"uri":"password\/confirm","methods":["GET","HEAD"]},"dashboard":{"uri":"admin","methods":["GET","HEAD"]},"about":{"uri":"admin\/about","methods":["GET","HEAD"]},"users.index":{"uri":"admin\/users","methods":["GET","HEAD"]},"posts.manage":{"uri":"admin\/posts","methods":["GET","HEAD"]},"posts.manage.edit":{"uri":"admin\/posts\/edit\/{post_id}","methods":["GET","HEAD"]},"posts.manage.new":{"uri":"admin\/posts\/new","methods":["GET","HEAD"]},"profile.show":{"uri":"admin\/profile","methods":["GET","HEAD"]},"profile.update":{"uri":"admin\/profile","methods":["PUT"]},"home":{"uri":"\/","methods":["GET","HEAD"]},"home.country":{"uri":"{country}","methods":["GET","HEAD"]},"home.country.posts":{"uri":"{country}\/posts","methods":["GET","HEAD"]},"home.country.post":{"uri":"{country}\/posts\/{post_slug}","methods":["GET","HEAD"]},"home.country.category":{"uri":"{country}\/{category}","methods":["GET","HEAD"]}}}; +const Ziggy = {"url":"https:\/\/productalert.co","port":null,"defaults":{},"routes":{"debugbar.openhandler":{"uri":"_debugbar\/open","methods":["GET","HEAD"]},"debugbar.clockwork":{"uri":"_debugbar\/clockwork\/{id}","methods":["GET","HEAD"]},"debugbar.assets.css":{"uri":"_debugbar\/assets\/stylesheets","methods":["GET","HEAD"]},"debugbar.assets.js":{"uri":"_debugbar\/assets\/javascript","methods":["GET","HEAD"]},"debugbar.cache.delete":{"uri":"_debugbar\/cache\/{key}\/{tags?}","methods":["DELETE"]},"sanctum.csrf-cookie":{"uri":"sanctum\/csrf-cookie","methods":["GET","HEAD"]},"ignition.healthCheck":{"uri":"_ignition\/health-check","methods":["GET","HEAD"]},"ignition.executeSolution":{"uri":"_ignition\/execute-solution","methods":["POST"]},"ignition.updateConfig":{"uri":"_ignition\/update-config","methods":["POST"]},"api.auth.login.post":{"uri":"api\/login","methods":["POST"]},"api.auth.logout.post":{"uri":"api\/logout","methods":["POST"]},"api.admin.post.get":{"uri":"api\/admin\/post\/{id}","methods":["GET","HEAD"]},"api.admin.country-locales":{"uri":"api\/admin\/country-locales","methods":["GET","HEAD"]},"api.admin.categories":{"uri":"api\/admin\/categories\/{country_locale_slug}","methods":["GET","HEAD"]},"api.admin.authors":{"uri":"api\/admin\/authors","methods":["GET","HEAD"]},"api.admin.upload.cloud.image":{"uri":"api\/admin\/image\/upload","methods":["POST"]},"api.admin.post.upsert":{"uri":"api\/admin\/admin\/post\/upsert","methods":["POST"]},"feeds.main":{"uri":"posts.rss","methods":["GET","HEAD"]},"login":{"uri":"login","methods":["GET","HEAD"]},"logout":{"uri":"logout","methods":["POST"]},"register":{"uri":"register","methods":["GET","HEAD"]},"password.request":{"uri":"password\/reset","methods":["GET","HEAD"]},"password.email":{"uri":"password\/email","methods":["POST"]},"password.reset":{"uri":"password\/reset\/{token}","methods":["GET","HEAD"]},"password.update":{"uri":"password\/reset","methods":["POST"]},"password.confirm":{"uri":"password\/confirm","methods":["GET","HEAD"]},"dashboard":{"uri":"admin","methods":["GET","HEAD"]},"about":{"uri":"admin\/about","methods":["GET","HEAD"]},"users.index":{"uri":"admin\/users","methods":["GET","HEAD"]},"posts.manage":{"uri":"admin\/posts","methods":["GET","HEAD"]},"posts.manage.edit":{"uri":"admin\/posts\/edit\/{post_id}","methods":["GET","HEAD"]},"posts.manage.indexing":{"uri":"admin\/posts\/indexing\/{post_id}","methods":["GET","HEAD"]},"posts.manage.new":{"uri":"admin\/posts\/new","methods":["GET","HEAD"]},"profile.show":{"uri":"admin\/profile","methods":["GET","HEAD"]},"profile.update":{"uri":"admin\/profile","methods":["PUT"]},"home":{"uri":"\/","methods":["GET","HEAD"]},"home.country":{"uri":"{country}","methods":["GET","HEAD"]},"home.country.posts":{"uri":"{country}\/posts","methods":["GET","HEAD"]},"home.country.post":{"uri":"{country}\/posts\/{post_slug}","methods":["GET","HEAD"]},"home.country.category":{"uri":"{country}\/{category}","methods":["GET","HEAD"]}}}; if (typeof window !== 'undefined' && typeof window.Ziggy !== 'undefined') { Object.assign(Ziggy.routes, window.Ziggy.routes); diff --git a/resources/views/admin/partials/webmaster_announcement.blade.php b/resources/views/admin/partials/webmaster_announcement.blade.php index 71c5c0f..4031ec0 100644 --- a/resources/views/admin/partials/webmaster_announcement.blade.php +++ b/resources/views/admin/partials/webmaster_announcement.blade.php @@ -1,7 +1,16 @@