Compare commits
3
Commits
438e5a3f43
...
88fdc3aa7f
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
88fdc3aa7f | ||
|
|
183916a62a | ||
|
|
a9490e132d |
No files matched your search
+1
@@ -22,6 +22,7 @@
|
||||
use Filament\Schemas\Schema;
|
||||
use Filament\Support\Icons\Heroicon;
|
||||
use Illuminate\Support\Facades\Auth;
|
||||
use RalphJSmit\Filament\Upload\Filament\Forms\Components\AdvancedFileUpload;
|
||||
|
||||
class VisaMasterPaymentOrderForm
|
||||
{
|
||||
|
||||
+34
-26
@@ -15,7 +15,10 @@
|
||||
use Filament\Schemas\Components\Tabs\Tab;
|
||||
use Filament\Schemas\Schema;
|
||||
use Filament\Support\Icons\Heroicon;
|
||||
use Hugomyb\FilamentMediaAction\Actions\MediaAction;
|
||||
use Illuminate\Support\Str;
|
||||
use RalphJSmit\Filament\Upload\Filament\Forms\Components\AdvancedFileUpload;
|
||||
use RalphJSmit\Filament\Upload\Filament\Infolists\Entries\PdfEntry;
|
||||
|
||||
class VisaMasterPaymentOrderInfolist
|
||||
{
|
||||
@@ -70,36 +73,41 @@ public static function configure(Schema $schema): Schema
|
||||
Tab::make(__('Payment sender data'))
|
||||
->columns(8)
|
||||
->schema([
|
||||
TextEntry::make('sender_full_name')
|
||||
->label(__('Name, Surname, Patronic name'))
|
||||
->columnSpan(4)
|
||||
->placeholder('-'),
|
||||
Fieldset::make(__('Data'))
|
||||
->columnSpan(8)
|
||||
->columns(8)
|
||||
->schema([
|
||||
TextEntry::make('sender_full_name')
|
||||
->label(__('Name, Surname, Patronic name'))
|
||||
->columnSpan(4)
|
||||
->placeholder('-'),
|
||||
|
||||
TextEntry::make('sender_passport')
|
||||
->label(__('Passport serie and number'))
|
||||
->formatStateUsing(function ($record) {
|
||||
$serie = TurkmenPassportRepository::values()[$record->sender_passport_serie] ?? $record->sender_passport_serie;
|
||||
TextEntry::make('sender_passport')
|
||||
->label(__('Passport serie and number'))
|
||||
->formatStateUsing(function ($record) {
|
||||
$serie = TurkmenPassportRepository::values()[$record->sender_passport_serie] ?? $record->sender_passport_serie;
|
||||
|
||||
return $serie.' '.$record->sender_passport_number;
|
||||
})
|
||||
->columnSpan(2)
|
||||
->placeholder('-'),
|
||||
return $serie.' '.$record->sender_passport_number;
|
||||
})
|
||||
->columnSpan(2)
|
||||
->placeholder('-'),
|
||||
|
||||
TextEntry::make('phone')
|
||||
->label(__('Phone'))
|
||||
->formatStateUsing(fn ($state) => '+993 '.$state)
|
||||
->columnSpan(2)
|
||||
->placeholder('-'),
|
||||
TextEntry::make('phone')
|
||||
->label(__('Phone'))
|
||||
->formatStateUsing(fn ($state) => '+993 '.$state)
|
||||
->columnSpan(2)
|
||||
->placeholder('-'),
|
||||
|
||||
TextEntry::make('sender_deposit_account')
|
||||
->label(__('Deposit account'))
|
||||
->columnSpan(4)
|
||||
->placeholder('-'),
|
||||
TextEntry::make('sender_deposit_account')
|
||||
->label(__('Deposit account'))
|
||||
->columnSpan(4)
|
||||
->placeholder('-'),
|
||||
|
||||
TextEntry::make('address')
|
||||
->label(__('Address'))
|
||||
->columnSpan(4)
|
||||
->placeholder('-'),
|
||||
TextEntry::make('address')
|
||||
->label(__('Address'))
|
||||
->columnSpan(4)
|
||||
->placeholder('-'),
|
||||
]),
|
||||
|
||||
Section::make(__('Files'))
|
||||
->description('PNG, JPEG, PDF')
|
||||
@@ -109,7 +117,7 @@ public static function configure(Schema $schema): Schema
|
||||
SpatieMediaLibraryImageEntry::make('sender_passport_local')
|
||||
->collection('sender_passport_local')
|
||||
->label(__('Ugradyja degişli Türkmenistanyň raýatynyň (içki milli) pasportynyň asyl görnüşi we göçürmesi')),
|
||||
|
||||
|
||||
SpatieMediaLibraryImageEntry::make('sender_passport_international')
|
||||
->collection('sender_passport_international')
|
||||
->label(__('Ugradyja degişli Türkmenistandan çykmak we Türkmenistana girmek üçin pasportynyň asyl görnüşi we göçürmesi')),
|
||||
|
||||
@@ -85,6 +85,7 @@ public function panel(Panel $panel): Panel
|
||||
'primary' => Color::Indigo,
|
||||
'success' => Color::Emerald,
|
||||
'warning' => Color::Orange,
|
||||
]);
|
||||
])
|
||||
->viteTheme('resources/css/filament/work/theme.css');
|
||||
}
|
||||
}
|
||||
+9
-1
@@ -18,6 +18,7 @@
|
||||
"laravel/ui": "^4.6",
|
||||
"mpdf/mpdf": "^8.2",
|
||||
"phpoffice/phpword": "dev-master",
|
||||
"ralphjsmit/laravel-filament-upload": "^1.1",
|
||||
"spatie/laravel-medialibrary": "^11.17",
|
||||
"spatie/laravel-translatable": "^6.11",
|
||||
"stevebauman/location": "^7.6"
|
||||
@@ -49,6 +50,12 @@
|
||||
"Tests\\": "tests/"
|
||||
}
|
||||
},
|
||||
"repositories": [
|
||||
{
|
||||
"type": "composer",
|
||||
"url": "https://satis.ralphjsmit.com"
|
||||
}
|
||||
],
|
||||
"scripts": {
|
||||
"post-autoload-dump": [
|
||||
"Illuminate\\Foundation\\ComposerScripts::postAutoloadDump",
|
||||
@@ -89,7 +96,8 @@
|
||||
"sort-packages": true,
|
||||
"allow-plugins": {
|
||||
"pestphp/pest-plugin": true,
|
||||
"php-http/discovery": true
|
||||
"php-http/discovery": true,
|
||||
"ralphjsmit/packages": true
|
||||
}
|
||||
},
|
||||
"minimum-stability": "stable",
|
||||
|
||||
Generated
+461
-1
@@ -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": "d2a574fdd5c95390e8843b9dbd8659e5",
|
||||
"content-hash": "8042e9992721acbf0c76d534136007cd",
|
||||
"packages": [
|
||||
{
|
||||
"name": "abdulmajeed-jamaan/filament-translatable-tabs",
|
||||
@@ -142,6 +142,157 @@
|
||||
},
|
||||
"time": "2025-07-30T15:45:57+00:00"
|
||||
},
|
||||
{
|
||||
"name": "aws/aws-crt-php",
|
||||
"version": "v1.2.7",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/awslabs/aws-crt-php.git",
|
||||
"reference": "d71d9906c7bb63a28295447ba12e74723bd3730e"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/awslabs/aws-crt-php/zipball/d71d9906c7bb63a28295447ba12e74723bd3730e",
|
||||
"reference": "d71d9906c7bb63a28295447ba12e74723bd3730e",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"php": ">=5.5"
|
||||
},
|
||||
"require-dev": {
|
||||
"phpunit/phpunit": "^4.8.35||^5.6.3||^9.5",
|
||||
"yoast/phpunit-polyfills": "^1.0"
|
||||
},
|
||||
"suggest": {
|
||||
"ext-awscrt": "Make sure you install awscrt native extension to use any of the functionality."
|
||||
},
|
||||
"type": "library",
|
||||
"autoload": {
|
||||
"classmap": [
|
||||
"src/"
|
||||
]
|
||||
},
|
||||
"notification-url": "https://packagist.org/downloads/",
|
||||
"license": [
|
||||
"Apache-2.0"
|
||||
],
|
||||
"authors": [
|
||||
{
|
||||
"name": "AWS SDK Common Runtime Team",
|
||||
"email": "aws-sdk-common-runtime@amazon.com"
|
||||
}
|
||||
],
|
||||
"description": "AWS Common Runtime for PHP",
|
||||
"homepage": "https://github.com/awslabs/aws-crt-php",
|
||||
"keywords": [
|
||||
"amazon",
|
||||
"aws",
|
||||
"crt",
|
||||
"sdk"
|
||||
],
|
||||
"support": {
|
||||
"issues": "https://github.com/awslabs/aws-crt-php/issues",
|
||||
"source": "https://github.com/awslabs/aws-crt-php/tree/v1.2.7"
|
||||
},
|
||||
"time": "2024-10-18T22:15:13+00:00"
|
||||
},
|
||||
{
|
||||
"name": "aws/aws-sdk-php",
|
||||
"version": "3.360.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/aws/aws-sdk-php.git",
|
||||
"reference": "a21055795be59f3d7c5ca6e4d52a80930dcf8c20"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/aws/aws-sdk-php/zipball/a21055795be59f3d7c5ca6e4d52a80930dcf8c20",
|
||||
"reference": "a21055795be59f3d7c5ca6e4d52a80930dcf8c20",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"aws/aws-crt-php": "^1.2.3",
|
||||
"ext-json": "*",
|
||||
"ext-pcre": "*",
|
||||
"ext-simplexml": "*",
|
||||
"guzzlehttp/guzzle": "^7.4.5",
|
||||
"guzzlehttp/promises": "^2.0",
|
||||
"guzzlehttp/psr7": "^2.4.5",
|
||||
"mtdowling/jmespath.php": "^2.8.0",
|
||||
"php": ">=8.1",
|
||||
"psr/http-message": "^1.0 || ^2.0"
|
||||
},
|
||||
"require-dev": {
|
||||
"andrewsville/php-token-reflection": "^1.4",
|
||||
"aws/aws-php-sns-message-validator": "~1.0",
|
||||
"behat/behat": "~3.0",
|
||||
"composer/composer": "^2.7.8",
|
||||
"dms/phpunit-arraysubset-asserts": "^0.4.0",
|
||||
"doctrine/cache": "~1.4",
|
||||
"ext-dom": "*",
|
||||
"ext-openssl": "*",
|
||||
"ext-pcntl": "*",
|
||||
"ext-sockets": "*",
|
||||
"phpunit/phpunit": "^5.6.3 || ^8.5 || ^9.5",
|
||||
"psr/cache": "^2.0 || ^3.0",
|
||||
"psr/simple-cache": "^2.0 || ^3.0",
|
||||
"sebastian/comparator": "^1.2.3 || ^4.0 || ^5.0",
|
||||
"symfony/filesystem": "^v6.4.0 || ^v7.1.0",
|
||||
"yoast/phpunit-polyfills": "^2.0"
|
||||
},
|
||||
"suggest": {
|
||||
"aws/aws-php-sns-message-validator": "To validate incoming SNS notifications",
|
||||
"doctrine/cache": "To use the DoctrineCacheAdapter",
|
||||
"ext-curl": "To send requests using cURL",
|
||||
"ext-openssl": "Allows working with CloudFront private distributions and verifying received SNS messages",
|
||||
"ext-sockets": "To use client-side monitoring"
|
||||
},
|
||||
"type": "library",
|
||||
"extra": {
|
||||
"branch-alias": {
|
||||
"dev-master": "3.0-dev"
|
||||
}
|
||||
},
|
||||
"autoload": {
|
||||
"files": [
|
||||
"src/functions.php"
|
||||
],
|
||||
"psr-4": {
|
||||
"Aws\\": "src/"
|
||||
},
|
||||
"exclude-from-classmap": [
|
||||
"src/data/"
|
||||
]
|
||||
},
|
||||
"notification-url": "https://packagist.org/downloads/",
|
||||
"license": [
|
||||
"Apache-2.0"
|
||||
],
|
||||
"authors": [
|
||||
{
|
||||
"name": "Amazon Web Services",
|
||||
"homepage": "http://aws.amazon.com"
|
||||
}
|
||||
],
|
||||
"description": "AWS SDK for PHP - Use Amazon Web Services in your PHP project",
|
||||
"homepage": "http://aws.amazon.com/sdkforphp",
|
||||
"keywords": [
|
||||
"amazon",
|
||||
"aws",
|
||||
"cloud",
|
||||
"dynamodb",
|
||||
"ec2",
|
||||
"glacier",
|
||||
"s3",
|
||||
"sdk"
|
||||
],
|
||||
"support": {
|
||||
"forum": "https://github.com/aws/aws-sdk-php/discussions",
|
||||
"issues": "https://github.com/aws/aws-sdk-php/issues",
|
||||
"source": "https://github.com/aws/aws-sdk-php/tree/3.360.0"
|
||||
},
|
||||
"time": "2025-11-17T19:46:19+00:00"
|
||||
},
|
||||
{
|
||||
"name": "bezhansalleh/filament-language-switch",
|
||||
"version": "4.0.0",
|
||||
@@ -4679,6 +4830,72 @@
|
||||
},
|
||||
"time": "2023-05-03T06:19:36+00:00"
|
||||
},
|
||||
{
|
||||
"name": "mtdowling/jmespath.php",
|
||||
"version": "2.8.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/jmespath/jmespath.php.git",
|
||||
"reference": "a2a865e05d5f420b50cc2f85bb78d565db12a6bc"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/jmespath/jmespath.php/zipball/a2a865e05d5f420b50cc2f85bb78d565db12a6bc",
|
||||
"reference": "a2a865e05d5f420b50cc2f85bb78d565db12a6bc",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"php": "^7.2.5 || ^8.0",
|
||||
"symfony/polyfill-mbstring": "^1.17"
|
||||
},
|
||||
"require-dev": {
|
||||
"composer/xdebug-handler": "^3.0.3",
|
||||
"phpunit/phpunit": "^8.5.33"
|
||||
},
|
||||
"bin": [
|
||||
"bin/jp.php"
|
||||
],
|
||||
"type": "library",
|
||||
"extra": {
|
||||
"branch-alias": {
|
||||
"dev-master": "2.8-dev"
|
||||
}
|
||||
},
|
||||
"autoload": {
|
||||
"files": [
|
||||
"src/JmesPath.php"
|
||||
],
|
||||
"psr-4": {
|
||||
"JmesPath\\": "src/"
|
||||
}
|
||||
},
|
||||
"notification-url": "https://packagist.org/downloads/",
|
||||
"license": [
|
||||
"MIT"
|
||||
],
|
||||
"authors": [
|
||||
{
|
||||
"name": "Graham Campbell",
|
||||
"email": "hello@gjcampbell.co.uk",
|
||||
"homepage": "https://github.com/GrahamCampbell"
|
||||
},
|
||||
{
|
||||
"name": "Michael Dowling",
|
||||
"email": "mtdowling@gmail.com",
|
||||
"homepage": "https://github.com/mtdowling"
|
||||
}
|
||||
],
|
||||
"description": "Declaratively specify how to extract elements from a JSON document",
|
||||
"keywords": [
|
||||
"json",
|
||||
"jsonpath"
|
||||
],
|
||||
"support": {
|
||||
"issues": "https://github.com/jmespath/jmespath.php/issues",
|
||||
"source": "https://github.com/jmespath/jmespath.php/tree/2.8.0"
|
||||
},
|
||||
"time": "2024-09-04T18:46:31+00:00"
|
||||
},
|
||||
{
|
||||
"name": "myclabs/deep-copy",
|
||||
"version": "1.13.4",
|
||||
@@ -6316,6 +6533,137 @@
|
||||
},
|
||||
"time": "2019-03-08T08:55:37+00:00"
|
||||
},
|
||||
{
|
||||
"name": "ralphjsmit/laravel-filament-upload",
|
||||
"version": "1.1.1",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "git@github.com:ralphjsmit/laravel-filament-upload.git",
|
||||
"reference": "a4d296ff97577c922a5f99bfdf48802c95aac628"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://satis.ralphjsmit.com/dist/ralphjsmit/laravel-filament-upload/ralphjsmit-laravel-filament-upload-a4d296ff97577c922a5f99bfdf48802c95aac628-zip-37caec.zip",
|
||||
"reference": "a4d296ff97577c922a5f99bfdf48802c95aac628",
|
||||
"shasum": "be92377b964b7ae2c448f5692c69c836f558b15b"
|
||||
},
|
||||
"require": {
|
||||
"aws/aws-sdk-php": "^3.336",
|
||||
"filament/filament": "^v4.0.0-beta7",
|
||||
"illuminate/contracts": "^10.0|^11.0|^12.0",
|
||||
"php": "^8.1",
|
||||
"ralphjsmit/packages": "^1.4",
|
||||
"spatie/laravel-package-tools": "^1.16",
|
||||
"symfony/mime": "^7.3"
|
||||
},
|
||||
"require-dev": {
|
||||
"laravel/pint": "^1.14",
|
||||
"league/flysystem-path-prefixing": "^3.28",
|
||||
"nunomaduro/collision": "^7.10|^8.1",
|
||||
"orchestra/testbench": "^8.22|^9.0|^10.0",
|
||||
"pestphp/pest": "^3.0",
|
||||
"pestphp/pest-plugin-arch": "^3.0",
|
||||
"pestphp/pest-plugin-laravel": "^3.0",
|
||||
"pestphp/pest-plugin-livewire": "^3.0",
|
||||
"spatie/laravel-medialibrary": "^11.13",
|
||||
"spatie/laravel-ray": "^1.35"
|
||||
},
|
||||
"type": "library",
|
||||
"extra": {
|
||||
"laravel": {
|
||||
"providers": [
|
||||
"RalphJSmit\\Filament\\Upload\\FilamentUploadServiceProvider"
|
||||
]
|
||||
}
|
||||
},
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"RalphJSmit\\Filament\\Upload\\": "src/",
|
||||
"RalphJSmit\\Filament\\Upload\\Database\\Factories\\": "database/factories/"
|
||||
}
|
||||
},
|
||||
"autoload-dev": {
|
||||
"psr-4": {
|
||||
"RalphJSmit\\Filament\\Upload\\Tests\\": "tests/"
|
||||
}
|
||||
},
|
||||
"scripts": {
|
||||
"test": [
|
||||
"vendor/bin/pest --order-by random --stop-on-failure --stop-on-error --fail-on-risky"
|
||||
],
|
||||
"format": [
|
||||
"vendor/bin/pint"
|
||||
]
|
||||
},
|
||||
"license": [
|
||||
"MIT"
|
||||
],
|
||||
"authors": [
|
||||
{
|
||||
"name": "Ralph J. Smit",
|
||||
"email": "rjs@ralphjsmit.com",
|
||||
"role": "Developer"
|
||||
}
|
||||
],
|
||||
"description": "Advanced upload component for Filament.",
|
||||
"homepage": "https://github.com/ralphjsmit/laravel-filament-upload",
|
||||
"keywords": [
|
||||
"Ralph J. Smit",
|
||||
"laravel",
|
||||
"laravel-filament-upload"
|
||||
],
|
||||
"support": {
|
||||
"source": "https://github.com/ralphjsmit/laravel-filament-upload/tree/1.1.1",
|
||||
"issues": "https://github.com/ralphjsmit/laravel-filament-upload/issues"
|
||||
},
|
||||
"time": "2025-10-22T20:05:23+00:00"
|
||||
},
|
||||
{
|
||||
"name": "ralphjsmit/packages",
|
||||
"version": "1.4.2",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "git@github.com:ralphjsmit/packages.git",
|
||||
"reference": "69650da1603c282ee71bfac969293e3faca36e3f"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://satis.ralphjsmit.com/dist/ralphjsmit/packages/ralphjsmit-packages-69650da1603c282ee71bfac969293e3faca36e3f-zip-06dcad.zip",
|
||||
"reference": "69650da1603c282ee71bfac969293e3faca36e3f",
|
||||
"shasum": "a1e35fea977f8e1bbfc6ac0d82ece7268aa11b10"
|
||||
},
|
||||
"require": {
|
||||
"composer-plugin-api": "^2.0",
|
||||
"php": "^8.0",
|
||||
"spatie/url": "^2.4"
|
||||
},
|
||||
"require-dev": {
|
||||
"composer/composer": "^2.0",
|
||||
"mockery/mockery": "^1.6",
|
||||
"pestphp/pest": "^2.30",
|
||||
"spatie/ray": "^1.40"
|
||||
},
|
||||
"type": "composer-plugin",
|
||||
"extra": {
|
||||
"class": "RalphJSmit\\Packages\\Plugin",
|
||||
"plugin-modifies-downloads": true
|
||||
},
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"RalphJSmit\\Packages\\": "src/"
|
||||
}
|
||||
},
|
||||
"scripts": {
|
||||
"test": [
|
||||
"vendor/bin/pest"
|
||||
]
|
||||
},
|
||||
"support": {
|
||||
"source": "https://github.com/ralphjsmit/packages/tree/1.4.2",
|
||||
"issues": "https://github.com/ralphjsmit/packages/issues"
|
||||
},
|
||||
"time": "2024-06-05T09:41:46+00:00"
|
||||
},
|
||||
{
|
||||
"name": "ramsey/collection",
|
||||
"version": "2.1.1",
|
||||
@@ -7222,6 +7570,56 @@
|
||||
],
|
||||
"time": "2025-02-20T15:51:22+00:00"
|
||||
},
|
||||
{
|
||||
"name": "spatie/macroable",
|
||||
"version": "2.0.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/spatie/macroable.git",
|
||||
"reference": "ec2c320f932e730607aff8052c44183cf3ecb072"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/spatie/macroable/zipball/ec2c320f932e730607aff8052c44183cf3ecb072",
|
||||
"reference": "ec2c320f932e730607aff8052c44183cf3ecb072",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"php": "^8.0"
|
||||
},
|
||||
"require-dev": {
|
||||
"phpunit/phpunit": "^8.0|^9.3"
|
||||
},
|
||||
"type": "library",
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"Spatie\\Macroable\\": "src"
|
||||
}
|
||||
},
|
||||
"notification-url": "https://packagist.org/downloads/",
|
||||
"license": [
|
||||
"MIT"
|
||||
],
|
||||
"authors": [
|
||||
{
|
||||
"name": "Freek Van der Herten",
|
||||
"email": "freek@spatie.be",
|
||||
"homepage": "https://spatie.be",
|
||||
"role": "Developer"
|
||||
}
|
||||
],
|
||||
"description": "A trait to dynamically add methods to a class",
|
||||
"homepage": "https://github.com/spatie/macroable",
|
||||
"keywords": [
|
||||
"macroable",
|
||||
"spatie"
|
||||
],
|
||||
"support": {
|
||||
"issues": "https://github.com/spatie/macroable/issues",
|
||||
"source": "https://github.com/spatie/macroable/tree/2.0.0"
|
||||
},
|
||||
"time": "2021-03-26T22:39:02+00:00"
|
||||
},
|
||||
{
|
||||
"name": "spatie/shiki-php",
|
||||
"version": "2.3.2",
|
||||
@@ -7348,6 +7746,68 @@
|
||||
],
|
||||
"time": "2025-01-13T13:04:43+00:00"
|
||||
},
|
||||
{
|
||||
"name": "spatie/url",
|
||||
"version": "2.4.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/spatie/url.git",
|
||||
"reference": "93a51db743cdec22b081c64593e193887c9cd395"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/spatie/url/zipball/93a51db743cdec22b081c64593e193887c9cd395",
|
||||
"reference": "93a51db743cdec22b081c64593e193887c9cd395",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"php": "^8.0",
|
||||
"psr/http-message": "^1.0 || ^2.0",
|
||||
"spatie/macroable": "^1.0 || ^2.0"
|
||||
},
|
||||
"require-dev": {
|
||||
"pestphp/pest": "^1.21"
|
||||
},
|
||||
"type": "library",
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"Spatie\\Url\\": "src"
|
||||
}
|
||||
},
|
||||
"notification-url": "https://packagist.org/downloads/",
|
||||
"license": [
|
||||
"MIT"
|
||||
],
|
||||
"authors": [
|
||||
{
|
||||
"name": "Sebastian De Deyne",
|
||||
"email": "sebastian@spatie.be",
|
||||
"homepage": "https://spatie.be",
|
||||
"role": "Developer"
|
||||
}
|
||||
],
|
||||
"description": "Parse, build and manipulate URL's",
|
||||
"homepage": "https://github.com/spatie/url",
|
||||
"keywords": [
|
||||
"spatie",
|
||||
"url"
|
||||
],
|
||||
"support": {
|
||||
"issues": "https://github.com/spatie/url/issues",
|
||||
"source": "https://github.com/spatie/url/tree/2.4.0"
|
||||
},
|
||||
"funding": [
|
||||
{
|
||||
"url": "https://spatie.be/open-source/support-us",
|
||||
"type": "custom"
|
||||
},
|
||||
{
|
||||
"url": "https://github.com/spatie",
|
||||
"type": "github"
|
||||
}
|
||||
],
|
||||
"time": "2024-03-08T11:35:19+00:00"
|
||||
},
|
||||
{
|
||||
"name": "stevebauman/location",
|
||||
"version": "v7.6.0",
|
||||
|
||||
+2
-1
@@ -727,5 +727,6 @@
|
||||
"Payment": "Töleg",
|
||||
"Online payments": "Onlaýn tölegler",
|
||||
"USD rate": "USD kursy",
|
||||
"Total": "Jemi"
|
||||
"Total": "Jemi",
|
||||
"Data": "Maglumatlar"
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
<?php
|
||||
|
||||
// translations for Hugomyb/FilamentMediaAction
|
||||
return [
|
||||
'loading' => 'Loading...',
|
||||
'unsupported-media-type' => 'Unsupported media type.',
|
||||
];
|
||||
@@ -0,0 +1,6 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
'loading' => 'Chargement...',
|
||||
'unsupported-media-type' => 'Type de média non pris en charge.',
|
||||
];
|
||||
@@ -0,0 +1,7 @@
|
||||
<?php
|
||||
|
||||
// translations for Hugomyb/FilamentMediaAction
|
||||
return [
|
||||
'loading' => 'Caricamento...',
|
||||
'unsupported-media-type' => 'Tipo di file non supportato.',
|
||||
];
|
||||
Generated
+2226
File diff suppressed because it is too large.
Load diff
+2
-2
@@ -7,11 +7,11 @@
|
||||
"dev": "vite"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@tailwindcss/vite": "^4.0.0",
|
||||
"@tailwindcss/vite": "^4.1.17",
|
||||
"axios": "^1.11.0",
|
||||
"concurrently": "^9.0.1",
|
||||
"laravel-vite-plugin": "^2.0.0",
|
||||
"tailwindcss": "^4.0.0",
|
||||
"tailwindcss": "^4.1.17",
|
||||
"vite": "^7.0.7"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
.FIE_topbar-buttons-wrapper,.FIE_topbar-reset-button{display:none!important}.FIE_canvas-node{background:none!important}
|
||||
@@ -0,0 +1 @@
|
||||
function v({wire:o,state:u,statePath:p,key:h,isMultiple:r,maxFiles:f,uploadingMessage:c,chunkSize:d,storeFileChunkUrl:m,shouldUseAmazonS3MultipartUpload:g,acceptedFileTypes:F}){return{wire:o,state:u,statePath:p,key:h,isMultiple:r,maxFiles:f,uploadingMessage:c,chunkSize:d,storeFileChunkUrl:m,shouldUseAmazonS3MultipartUpload:g,acceptedFileTypes:F,inputFiles:r?{}:null,retries:3,init:function(){this.$refs.inputLabel&&(this.$refs.inputLabel.addEventListener("dragover",t=>{t.preventDefault(),t.stopPropagation(),this.$refs.inputLabel.setAttribute("data-dragover","true")}),this.$refs.inputLabel.addEventListener("dragleave",t=>{t.preventDefault(),t.stopPropagation(),this.$refs.inputLabel.removeAttribute("data-dragover")}),this.$refs.inputLabel.addEventListener("drop",t=>{t.preventDefault(),t.stopPropagation(),this.$refs.inputLabel.removeAttribute("data-dragover");const e=t.dataTransfer.files;e.length>0&&this.createFiles(e)})),this.wire.hook("morphed",({el:t,component:e})=>{if(!this.isMultiple)return;const i={};Object.entries(this.state).sort(([,s],[,n])=>s.order-n.order).forEach(([s,n])=>{n.order=null,i[s]=n}),this.state=i})},reorderFiles(t){t.forEach((e,i)=>{const s=e.split("file-")[1];this.state[s]&&(this.state[s].order=i)})},get hasReachedMaxFiles(){return this.isMultiple?this.maxFiles?Object.keys(this.state).length>=this.maxFiles:!1:this.state!==null},createFiles:function(t){Array.from(t).forEach(e=>{this.createFile(e)})},createFile:async function(t){if(!this.isFileTypeAccepted(t))return;let e=this.generateFileId();this.isMultiple?this.inputFiles[e]=t:this.inputFiles=t;let i={type:"chunked",id:e,originalFilename:t.name,serverFilename:null,size:t.size,finishedChunks:0,totalChunks:Math.ceil(t.size/this.chunkSize),status:"created",error:null,amazonS3MultipartUploadData:null,amazonS3MultipartUploadParts:[]};if(this.isMultiple?this.state[e]=i:this.state=i,this.dispatchFormProcessingStartedEvent(),this.shouldUseAmazonS3MultipartUpload){i=this.updateFile(e,"awaiting_amazon_s3_multipart_create");let{serverFilename:s,amazonS3MultipartUploadData:n}=await this.wire.callSchemaComponentMethod(this.key,"createAmazonS3Multipart",{queuedFileId:i.id,originalFilename:i.originalFilename,mimeType:this.getFileMimeType(e),totalChunks:i.totalChunks,fileSize:i.size});i=this.updateFile(e,"uploading",null,s,n)}this.uploadChunks(e)},uploadChunks:async function(t){let e=this.getFile(t);for(e=this.updateFile(t,"uploading");e.finishedChunks<e.totalChunks;){let i=this.retries;if(e.status==="pending_pause"){e=this.updateFile(t,"paused");break}try{if(await this.uploadNextChunk(t),e=this.getFile(t),!e)return}catch(s){if(i>0){if(i--,await this.uploadNextChunk(t),e=this.getFile(t),!e)return}else e=this.updateFile(t,"error",s)}e=this.getFile(t)}e.finishedChunks===e.totalChunks&&(this.shouldUseAmazonS3MultipartUpload&&(e=this.updateFile(t,"awaiting_amazon_s3_multipart_complete"),await this.wire.callSchemaComponentMethod(this.key,"completeAmazonS3Multipart",{queuedFileId:e.originalFilename,amazonS3MultipartUploadId:e.amazonS3MultipartUploadData.amazonS3MultipartUploadId,amazonS3MultipartUploadKey:e.amazonS3MultipartUploadData.amazonS3MultipartUploadKey,amazonS3MultipartUploadParts:e.amazonS3MultipartUploadParts})),e=this.updateFile(t,"completed"),this.dispatchFormProcessingFinishedEvent())},uploadNextChunk:async function(t){let e=this.getFile(t),i=this.getInputFile(t).slice(e.finishedChunks*this.chunkSize,(e.finishedChunks+1)*this.chunkSize);if(this.shouldUseAmazonS3MultipartUpload){let s=e.amazonS3MultipartUploadData.amazonS3MultipartUploadPresignedUrls[e.finishedChunks];if(!s){e=this.updateFile(t,"error","Missing presigned URL for uploading.");return}const n=await fetch(s,{method:"PUT",body:i});if(!n.ok){e=this.updateFile(t,"error",`Failed to upload chunk: ${n.statusText}`);return}const a=n.headers.get("Etag");a?e.amazonS3MultipartUploadParts.push({PartNumber:e.finishedChunks+1,ETag:a}):console.error("No `ETag` header found in response for S3 Multipart part upload. Please check the `ExposeHeaders` to contain the `ETag` header in your bucket CORS configuration."),e=this.updateFile(t,null,null,null,null,e.finishedChunks+1)}else{let s=new FormData;s.append("id",t),s.append("original_filename",e.originalFilename),s.append("server_filename",e.serverFilename),s.append("current_chunk",e.finishedChunks),s.append("total_chunks",e.totalChunks),s.append("file",i);const n=await fetch(this.storeFileChunkUrl.replace("-ID-",t),{method:"POST",body:s});if(n.ok){const a=await n.json();e=this.updateFile(t,null,null,a.serverFilename,null,e.finishedChunks+1)}else{if(n.status===406){this.removeFile(t);return}e=this.updateFile(t,"error",`${n.statusText} (${n.status})`)}}},pause:function(t){let e=this.getFile(t);e&&e.status==="uploading"&&(e=this.updateFile(t,"pending_pause"),this.refresh())},resume:async function(t){let e=this.getFile(t);e&&e.status==="paused"&&(e=this.updateFile(t,"uploading"),this.uploadChunks(t))},generateFileId:function(){const t="ABCDEFGHIJKLMNOPQRLine truncated
|
||||
@@ -0,0 +1,319 @@
|
||||
function Un(t){"@babel/helpers - typeof";return Un=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},Un(t)}function YL(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ZL(t,e){if(Un(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Un(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function EE(t){var e=ZL(t,"string");return Un(e)=="symbol"?e:e+""}function qL(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,EE(n.key),n)}}function QL(t,e,r){return e&&qL(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function A(t,e,r){return(e=EE(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var gs=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ql(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var OE={exports:{}},_t={};/**
|
||||
* @license React
|
||||
* react.production.min.js
|
||||
*
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/var mh=Symbol.for("react.element"),JL=Symbol.for("react.portal"),eM=Symbol.for("react.fragment"),tM=Symbol.for("react.strict_mode"),rM=Symbol.for("react.profiler"),nM=Symbol.for("react.provider"),iM=Symbol.for("react.context"),oM=Symbol.for("react.forward_ref"),aM=Symbol.for("react.suspense"),sM=Symbol.for("react.memo"),lM=Symbol.for("react.lazy"),pC=Symbol.iterator;function cM(t){return t===null||typeof t!="object"?null:(t=pC&&t[pC]||t["@@iterator"],typeof t=="function"?t:null)}var PE={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},kE=Object.assign,TE={};function od(t,e,r){this.props=t,this.context=e,this.refs=TE,this.updater=r||PE}od.prototype.isReactComponent={};od.prototype.setState=function(t,e){if(typeof t!="object"&&typeof t!="function"&&t!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,t,e,"setState")};od.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};function IE(){}IE.prototype=od.prototype;function h6(t,e,r){this.props=t,this.context=e,this.refs=TE,this.updater=r||PE}var f6=h6.prototype=new IE;f6.constructor=h6;kE(f6,od.prototype);f6.isPureReactComponent=!0;var gC=Array.isArray,AE=Object.prototype.hasOwnProperty,p6={current:null},LE={key:!0,ref:!0,__self:!0,__source:!0};function ME(t,e,r){var n,i={},o=null,a=null;if(e!=null)for(n in e.ref!==void 0&&(a=e.ref),e.key!==void 0&&(o=""+e.key),e)AE.call(e,n)&&!LE.hasOwnProperty(n)&&(i[n]=e[n]);var s=arguments.length-2;if(s===1)i.children=r;else if(1<s){for(var c=Array(s),d=0;d<s;d++)c[d]=arguments[d+2];i.children=c}if(t&&t.defaultProps)for(n in s=t.defaultProps,s)i[n]===void 0&&(i[n]=s[n]);return{$$typeof:mh,type:t,key:o,ref:a,props:i,_owner:p6.current}}function uM(t,e){return{$$typeof:mh,type:t.type,key:e,ref:t.ref,props:t.props,_owner:t._owner}}function g6(t){return typeof t=="object"&&t!==null&&t.$$typeof===mh}function dM(t){var e={"=":"=0",":":"=2"};return"$"+t.replace(/[=:]/g,function(r){return e[r]})}var mC=/\/+/g;function n4(t,e){return typeof t=="object"&&t!==null&&t.key!=null?dM(""+t.key):e.toString(36)}function kf(t,e,r,n,i){var o=typeof t;(o==="undefined"||o==="boolean")&&(t=null);var a=!1;if(t===null)a=!0;else switch(o){case"string":case"number":a=!0;break;case"object":switch(t.$$typeof){case mh:case JL:a=!0}}if(a)return a=t,i=i(a),t=n===""?"."+n4(a,0):n,gC(i)?(r="",t!=null&&(r=t.replace(mC,"$&/")+"/"),kf(i,e,r,"",function(d){return d})):i!=null&&(g6(i)&&(i=uM(i,r+(!i.key||a&&a.key===i.key?"":(""+i.key).replace(mC,"$&/")+"/")+t)),e.push(i)),1;if(a=0,n=n===""?".":n+":",gC(t))for(var s=0;s<t.length;s++){o=t[s];var c=n+n4(o,s);a+=kf(o,e,r,c,i)}else if(c=cM(t),typeof c=="function")for(t=c.call(t),s=0;!(o=t.next()).done;)o=o.value,c=n+n4(o,s++),a+=kf(o,e,r,c,i);else if(o==="object")throw e=String(t),Error("Objects are not valid as a React child (found: "+(e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)+"). If you meant to render a collection of children, use an array instead.");return a}function k1(t,e,r){if(t==null)return t;var n=[],i=0;return kf(t,n,"","",function(o){return e.call(r,o,i++)}),n}function hM(t){if(t._status===-1){var e=t._result;e=e(),e.then(function(r){(t._status===0||t._status===-1)&&(t._status=1,t._result=r)},function(r){(t._status===0||t._status===-1)&&(t._status=2,t._result=r)}),t._status===-1&&(t._status=0,t._result=e)}if(t._status===1)return t._result.default;throw t._result}var Wn={current:null},Tf={transition:null},fM={ReactCurrentDispatcher:Wn,ReactCurrentBatchConfig:Tf,ReactCurrentOwner:p6};function RE(){throw Error("act(...) is not supported in production builds of React.")}_t.Children={map:k1,forEach:function(t,e,r){k1(t,function(){e.apply(this,arguments)},r)},count:function(t){var e=0;return k1(t,function(){e++}),e},toArray:function(t){return k1(t,function(e){return e})||[]},only:function(t){if(!g6(t))throw Error("React.Children.only expected to receive a single React element child.");return t}};_t.Component=od;_t.Fragment=eM;_t.Profiler=rM;_t.PureComponent=h6;_t.StrictMode=tM;_t.Suspense=aM;_t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=fM;_t.act=RE;_t.cloneElement=function(t,e,r){if(t==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+t+".");var n=kE({},t.props),i=t.key,o=t.ref,a=t._owner;if(e!=null){if(e.ref!==void 0&&(o=e.ref,a=p6.current),e.key!==void 0&&(i=""+e.key),t.type&&t.type.defaultProps)var s=t.type.defaultProps;for(c in e)AE.call(e,c)&&!LE.hasOwnProperty(c)&&(n[c]=e[c]===void 0&&s!==void 0?s[c]:e[c])}var c=arguments.length-2;if(c===1)n.children=r;else if(1<c){s=Array(c);for(var d=0;d<c;d++)s[d]=arguments[d+2];n.children=s}return{$$typeof:mh,type:t.type,key:i,ref:o,props:n,_owner:a}};_t.createContext=function(t){return t={$$typeof:iM,_currentValue:t,_currentValue2:t,_threadCountLine truncated
|
||||
* @license React
|
||||
* scheduler.production.min.js
|
||||
*
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/(function(t){function e(K,ue){var ne=K.length;K.push(ue);e:for(;0<ne;){var ae=ne-1>>>1,J=K[ae];if(0<i(J,ue))K[ae]=ue,K[ne]=J,ne=ae;else break e}}function r(K){return K.length===0?null:K[0]}function n(K){if(K.length===0)return null;var ue=K[0],ne=K.pop();if(ne!==ue){K[0]=ne;e:for(var ae=0,J=K.length,Q=J>>>1;ae<Q;){var te=2*(ae+1)-1,we=K[te],U=te+1,F=K[U];if(0>i(we,ne))U<J&&0>i(F,we)?(K[ae]=F,K[U]=ne,ae=U):(K[ae]=we,K[te]=ne,ae=te);else if(U<J&&0>i(F,ne))K[ae]=F,K[U]=ne,ae=U;else break e}}return ue}function i(K,ue){var ne=K.sortIndex-ue.sortIndex;return ne!==0?ne:K.id-ue.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;t.unstable_now=function(){return o.now()}}else{var a=Date,s=a.now();t.unstable_now=function(){return a.now()-s}}var c=[],d=[],h=1,C=null,v=3,g=!1,m=!1,w=!1,x=typeof setTimeout=="function"?setTimeout:null,b=typeof clearTimeout=="function"?clearTimeout:null,O=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function f(K){for(var ue=r(d);ue!==null;){if(ue.callback===null)n(d);else if(ue.startTime<=K)n(d),ue.sortIndex=ue.expirationTime,e(c,ue);else break;ue=r(d)}}function S(K){if(w=!1,f(K),!m)if(r(c)!==null)m=!0,q(E);else{var ue=r(d);ue!==null&&ee(S,ue.startTime-K)}}function E(K,ue){m=!1,w&&(w=!1,b(k),k=-1),g=!0;var ne=v;try{for(f(ue),C=r(c);C!==null&&(!(C.expirationTime>ue)||K&&!D());){var ae=C.callback;if(typeof ae=="function"){C.callback=null,v=C.priorityLevel;var J=ae(C.expirationTime<=ue);ue=t.unstable_now(),typeof J=="function"?C.callback=J:C===r(c)&&n(c),f(ue)}else n(c);C=r(c)}if(C!==null)var Q=!0;else{var te=r(d);te!==null&&ee(S,te.startTime-ue),Q=!1}return Q}finally{C=null,v=ne,g=!1}}var I=!1,R=null,k=-1,N=5,T=-1;function D(){return!(t.unstable_now()-T<N)}function z(){if(R!==null){var K=t.unstable_now();T=K;var ue=!0;try{ue=R(!0,K)}finally{ue?B():(I=!1,R=null)}}else I=!1}var B;if(typeof O=="function")B=function(){O(z)};else if(typeof MessageChannel<"u"){var Y=new MessageChannel,W=Y.port2;Y.port1.onmessage=z,B=function(){W.postMessage(null)}}else B=function(){x(z,0)};function q(K){R=K,I||(I=!0,B())}function ee(K,ue){k=x(function(){K(t.unstable_now())},ue)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(K){K.callback=null},t.unstable_continueExecution=function(){m||g||(m=!0,q(E))},t.unstable_forceFrameRate=function(K){0>K||125<K?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):N=0<K?Math.floor(1e3/K):5},t.unstable_getCurrentPriorityLevel=function(){return v},t.unstable_getFirstCallbackNode=function(){return r(c)},t.unstable_next=function(K){switch(v){case 1:case 2:case 3:var ue=3;break;default:ue=v}var ne=v;v=ue;try{return K()}finally{v=ne}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(K,ue){switch(K){case 1:case 2:case 3:case 4:case 5:break;default:K=3}var ne=v;v=K;try{return ue()}finally{v=ne}},t.unstable_scheduleCallback=function(K,ue,ne){var ae=t.unstable_now();switch(typeof ne=="object"&&ne!==null?(ne=ne.delay,ne=typeof ne=="number"&&0<ne?ae+ne:ae):ne=ae,K){case 1:var J=-1;break;case 2:J=250;break;case 5:J=1073741823;break;case 4:J=1e4;break;default:J=5e3}return J=ne+J,K={id:h++,callback:ue,priorityLevel:K,startTime:ne,expirationTime:J,sortIndex:-1},ne>ae?(K.sortIndex=ne,e(d,K),r(c)===null&&K===r(d)&&(w?(b(k),k=-1):w=!0,ee(S,ne-ae))):(K.sortIndex=J,e(c,K),m||g||(m=!0,q(E))),K},t.unstable_shouldYield=D,t.unstable_wrapCallback=function(K){var ue=v;return function(){var ne=v;v=ue;try{return K.apply(this,arguments)}finally{v=ne}}}})(DE);FE.exports=DE;var T0=FE.exports;/**
|
||||
* @license React
|
||||
* react-dom.production.min.js
|
||||
*
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/var pM=G,_i=T0;function Oe(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,r=1;r<arguments.length;r++)e+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var jE=new Set,V0={};function Ql(t,e){Ru(t,e),Ru(t+"Capture",e)}function Ru(t,e){for(V0[t]=e,t=0;t<e.length;t++)jE.add(e[t])}var ka=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Rm=Object.prototype.hasOwnProperty,gM=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,vC={},yC={};function mM(t){return Rm.call(yC,t)?!0:Rm.call(vC,t)?!1:gM.test(t)?yC[t]=!0:(vC[t]=!0,!1)}function vM(t,e,r,n){if(r!==null&&r.type===0)return!1;switch(typeof e){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(t=t.toLowerCase().slice(0,5),t!=="data-"&&t!=="aria-");default:return!1}}function yM(t,e,r,n){if(e===null||typeof e>"u"||vM(t,e,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!e;case 4:return e===!1;case 5:return isNaN(e);case 6:return isNaN(e)||1>e}return!1}function Xn(t,e,r,n,i,o,a){this.acceptsBooleans=e===2||e===3||e===4,this.attributeName=n,this.attributeNamespace=i,this.mustUseProperty=r,this.propertyName=t,this.type=e,this.sanitizeURL=o,this.removeEmptyString=a}var Cn={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){Cn[t]=new Xn(t,0,!1,t,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var e=t[0];Cn[e]=new Xn(e,1,!1,t[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(t){Cn[t]=new Xn(t,2,!1,t.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){Cn[t]=new Xn(t,2,!1,t,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(t){Cn[t]=new Xn(t,3,!1,t.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(t){Cn[t]=new Xn(t,3,!0,t,null,!1,!1)});["capture","download"].forEach(function(t){Cn[t]=new Xn(t,4,!1,t,null,!1,!1)});["cols","rows","size","span"].forEach(function(t){Cn[t]=new Xn(t,6,!1,t,null,!1,!1)});["rowSpan","start"].forEach(function(t){Cn[t]=new Xn(t,5,!1,t.toLowerCase(),null,!1,!1)});var m6=/[\-:]([a-z])/g;function v6(t){return t[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(t){var e=t.replace(m6,v6);Cn[e]=new Xn(e,1,!1,t,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(t){var e=t.replace(m6,v6);Cn[e]=new Xn(e,1,!1,t,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(t){var e=t.replace(m6,v6);Cn[e]=new Xn(e,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(t){Cn[t]=new Xn(t,1,!1,t.toLowerCase(),null,!1,!1)});Cn.xlinkHref=new Xn("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(t){Cn[t]=new Xn(t,1,!1,t.toLowerCase(),null,!0,!0)});function y6(t,e,r,n){var i=Cn.hasOwnProperty(e)?Cn[e]:null;(i!==null?i.type!==0:n||!(2<e.length)||e[0]!=="o"&&e[0]!==
Line truncated
|
||||
`+i4+t}var o4=!1;function a4(t,e){if(!t||o4)return"";o4=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(e)if(e=function(){throw Error()},Object.defineProperty(e.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(e,[])}catch(d){var n=d}Reflect.construct(t,[],e)}else{try{e.call()}catch(d){n=d}t.call(e.prototype)}else{try{throw Error()}catch(d){n=d}t()}}catch(d){if(d&&n&&typeof d.stack=="string"){for(var i=d.stack.split(`
|
||||
`),o=n.stack.split(`
|
||||
`),a=i.length-1,s=o.length-1;1<=a&&0<=s&&i[a]!==o[s];)s--;for(;1<=a&&0<=s;a--,s--)if(i[a]!==o[s]){if(a!==1||s!==1)do if(a--,s--,0>s||i[a]!==o[s]){var c=`
|
||||
`+i[a].replace(" at new "," at ");return t.displayName&&c.includes("<anonymous>")&&(c=c.replace("<anonymous>",t.displayName)),c}while(1<=a&&0<=s);break}}}finally{o4=!1,Error.prepareStackTrace=r}return(t=t?t.displayName||t.name:"")?b0(t):""}function CM(t){switch(t.tag){case 5:return b0(t.type);case 16:return b0("Lazy");case 13:return b0("Suspense");case 19:return b0("SuspenseList");case 0:case 2:case 15:return t=a4(t.type,!1),t;case 11:return t=a4(t.type.render,!1),t;case 1:return t=a4(t.type,!0),t;default:return""}}function jm(t){if(t==null)return null;if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case cu:return"Fragment";case lu:return"Portal";case Nm:return"Profiler";case C6:return"StrictMode";case Fm:return"Suspense";case Dm:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case $E:return(t.displayName||"Context")+".Consumer";case zE:return(t._context.displayName||"Context")+".Provider";case w6:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case S6:return e=t.displayName||null,e!==null?e:jm(t.type)||"Memo";case us:e=t._payload,t=t._init;try{return jm(t(e))}catch{}}return null}function wM(t){var e=t.type;switch(t.tag){case 24:return"Cache";case 9:return(e.displayName||"Context")+".Consumer";case 10:return(e._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return t=e.render,t=t.displayName||t.name||"",e.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case 7:return"Fragment";case 5:return e;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return jm(e);case 8:return e===C6?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e}return null}function ks(t){switch(typeof t){case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function HE(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function SM(t){var e=HE(t)?"checked":"value",r=Object.getOwnPropertyDescriptor(t.constructor.prototype,e),n=""+t[e];if(!t.hasOwnProperty(e)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var i=r.get,o=r.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return i.call(this)},set:function(a){n=""+a,o.call(this,a)}}),Object.defineProperty(t,e,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(a){n=""+a},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function I1(t){t._valueTracker||(t._valueTracker=SM(t))}function GE(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var r=e.getValue(),n="";return t&&(n=HE(t)?t.checked?"true":"false":t.value),t=n,t!==r?(e.setValue(t),!0):!1}function e2(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}function zm(t,e){var r=e.checked;return Er({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??t._wrapperState.initialChecked})}function wC(t,e){var r=e.defaultValue==null?"":e.defaultValue,n=e.checked!=null?e.checked:e.defaultChecked;r=ks(e.value!=null?e.value:r),t._wrapperState={initialChecked:n,initialValue:r,controlled:e.type==="checkbox"||e.type==="radio"?e.checked!=null:e.value!=null}}function VE(t,e){e=e.checked,e!=null&&y6(t,"checked",e,!1)}function $m(t,e){VE(t,e);var r=ks(e.value),n=e.type;if(r!=null)n==="number"?(r===0&&t.value===""||t.value!=r)&&(t.value=""+r):t.value!==""+r&&(t.value=""+r);else if(n==="submit"||n==="reset"){t.removeAttribute("value");return}e.hasOwnProperty("value")?Bm(t,e.type,r):e.hasOwnProperty("defaultValue")&&Bm(t,e.type,ks(e.defaultValue)),e.checked==null&&e.defaultChecked!=null&&(t.defaultChecked=!!e.defaultChecked)}function SC(t,e,r){if(e.hasOwnProperty("value")||e.hasOwnProperty("defaultValue")){var n=e.type;if(!(n!=="submit"&&n!=="reset"||e.value!==void 0&&e.value!==null))return;e=""+t._wrapperState.initialValue,r||e===t.value||(t.value=e),t.defaultValue=e}r=t.name,r!==""&&(t.name=""),t.defaultChecked=!!t._wrapperState.initialChecked,r!==""&&(t.name=r)}function Bm(t,e,r){(e!=="number"||e2(t.ownerDocument)!==t)&&(r==null?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+r&&(t.defaultValue=""+r))}var _0=Array.isArray;function _u(t,e,r,n){if(t=t.options,e){e={};for(var i=0;i<r.length;i++)e["$"+r[i]]=!0;for(r=0;r<t.length;r++)i=e.hasOwnProperty("$"+t[r].value),t[r].selected!==i&&(t[r].selected=i),i&&n&&(t[r].defaultSelected=!0)}else{for(r=""+ks(r),e=null,i=0;i<t.length;i++){if(t[i].value===r){t[i].selected=!0,n&&(t[i].defaultSelected=!0);return}e!==null||t[i].disabled||(e=t[i])}e!==null&&(e.selected=!0)}}function Hm(t,e){if(e.dan
Line truncated
|
||||
`).replace(AR,"")}function j1(t,e,r){if(e=VC(e),VC(t)!==e&&r)throw Error(Oe(425))}function l2(){}var tv=null,rv=null;function nv(t,e){return t==="textarea"||t==="noscript"||typeof e.children=="string"||typeof e.children=="number"||typeof e.dangerouslySetInnerHTML=="object"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}var iv=typeof setTimeout=="function"?setTimeout:void 0,LR=typeof clearTimeout=="function"?clearTimeout:void 0,UC=typeof Promise=="function"?Promise:void 0,MR=typeof queueMicrotask=="function"?queueMicrotask:typeof UC<"u"?function(t){return UC.resolve(null).then(t).catch(RR)}:iv;function RR(t){setTimeout(function(){throw t})}function C4(t,e){var r=e,n=0;do{var i=r.nextSibling;if(t.removeChild(r),i&&i.nodeType===8)if(r=i.data,r==="/$"){if(n===0){t.removeChild(i),Y0(e);return}n--}else r!=="$"&&r!=="$?"&&r!=="$!"||n++;r=i}while(r);Y0(e)}function Ss(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break;if(e===8){if(e=t.data,e==="$"||e==="$!"||e==="$?")break;if(e==="/$")return null}}return t}function WC(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var r=t.data;if(r==="$"||r==="$!"||r==="$?"){if(e===0)return t;e--}else r==="/$"&&e++}t=t.previousSibling}return null}var sd=Math.random().toString(36).slice(2),Bo="__reactFiber$"+sd,eh="__reactProps$"+sd,Ta="__reactContainer$"+sd,ov="__reactEvents$"+sd,NR="__reactListeners$"+sd,FR="__reactHandles$"+sd;function Il(t){var e=t[Bo];if(e)return e;for(var r=t.parentNode;r;){if(e=r[Ta]||r[Bo]){if(r=e.alternate,e.child!==null||r!==null&&r.child!==null)for(t=WC(t);t!==null;){if(r=t[Bo])return r;t=WC(t)}return e}t=r,r=t.parentNode}return null}function Ch(t){return t=t[Bo]||t[Ta],!t||t.tag!==5&&t.tag!==6&&t.tag!==13&&t.tag!==3?null:t}function fu(t){if(t.tag===5||t.tag===6)return t.stateNode;throw Error(Oe(33))}function q2(t){return t[eh]||null}var av=[],pu=-1;function Ns(t){return{current:t}}function lr(t){0>pu||(t.current=av[pu],av[pu]=null,pu--)}function ir(t,e){pu++,av[pu]=t.current,t.current=e}var Ts={},Dn=Ns(Ts),ci=Ns(!1),Bl=Ts;function Nu(t,e){var r=t.type.contextTypes;if(!r)return Ts;var n=t.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===e)return n.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in r)i[o]=e[o];return n&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=e,t.__reactInternalMemoizedMaskedChildContext=i),i}function ui(t){return t=t.childContextTypes,t!=null}function c2(){lr(ci),lr(Dn)}function XC(t,e,r){if(Dn.current!==Ts)throw Error(Oe(168));ir(Dn,e),ir(ci,r)}function LO(t,e,r){var n=t.stateNode;if(e=e.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var i in n)if(!(i in e))throw Error(Oe(108,wM(t)||"Unknown",i));return Er({},r,n)}function u2(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||Ts,Bl=Dn.current,ir(Dn,t),ir(ci,ci.current),!0}function KC(t,e,r){var n=t.stateNode;if(!n)throw Error(Oe(169));r?(t=LO(t,e,Bl),n.__reactInternalMemoizedMergedChildContext=t,lr(ci),lr(Dn),ir(Dn,t)):lr(ci),ir(ci,r)}var Ca=null,Q2=!1,w4=!1;function MO(t){Ca===null?Ca=[t]:Ca.push(t)}function DR(t){Q2=!0,MO(t)}function Fs(){if(!w4&&Ca!==null){w4=!0;var t=0,e=Ht;try{var r=Ca;for(Ht=1;t<r.length;t++){var n=r[t];do n=n(!0);while(n!==null)}Ca=null,Q2=!1}catch(i){throw Ca!==null&&(Ca=Ca.slice(t+1)),iO(_6,Fs),i}finally{Ht=e,w4=!1}}return null}var gu=[],mu=0,d2=null,h2=0,Hi=[],Gi=0,Hl=null,Sa=1,ba="";function Ol(t,e){gu[mu++]=h2,gu[mu++]=d2,d2=t,h2=e}function RO(t,e,r){Hi[Gi++]=Sa,Hi[Gi++]=ba,Hi[Gi++]=Hl,Hl=t;var n=Sa;t=ba;var i=32-fo(n)-1;n&=~(1<<i),r+=1;var o=32-fo(e)+i;if(30<o){var a=i-i%5;o=(n&(1<<a)-1).toString(32),n>>=a,i-=a,Sa=1<<32-fo(e)+i|r<<i|n,ba=o+t}else Sa=1<<o|r<<i|n,ba=t}function L6(t){t.return!==null&&(Ol(t,1),RO(t,1,0))}function M6(t){for(;t===d2;)d2=gu[--mu],gu[mu]=null,h2=gu[--mu],gu[mu]=null;for(;t===Hl;)Hl=Hi[--Gi],Hi[Gi]=null,ba=Hi[--Gi],Hi[Gi]=null,Sa=Hi[--Gi],Hi[Gi]=null}var bi=null,Si=null,hr=!1,co=null;function NO(t,e){var r=Vi(5,null,null,0);r.elementType="DELETED",r.stateNode=e,r.return=t,e=t.deletions,e===null?(t.deletions=[r],t.flags|=16):e.push(r)}function YC(t,e){switch(t.tag){case 5:var r=t.type;return e=e.nodeType!==1||r.toLowerCase()!==e.nodeName.toLowerCase()?null:e,e!==null?(t.stateNode=e,bi=t,Si=Ss(e.firstChild),!0):!1;case 6:return e=t.pendingProps===""||e.nodeType!==3?null:e,e!==null?(t.stateNode=e,bi=t,Si=null,!0):!1;case 13:return e=e.nodeType!==8?null:e,e!==null?(r=Hl!==null?{id:Sa,overflow:ba}:null,t.memoizedState={dehydrated:e,treeContext:r,retryLane:1073741824},r=Vi(18,null,null,0),r.stateNode=e,r.return=t,t.child=r,bi=t,Si=null,!0):!1;default:return!1}}function sv(t){return(t.mode&1)!==0&&(t.flags&128)===0}function lv(t){if(hr){var e=Si;if(e){var r=e;if(!YC(t,e)){if(sv(t))throw Error(Oe(418));e=Ss(r.nextSibling);var n=bi;e&&YC(t,e)?NO(n,r):(t.flags=t.flags&-4097|2,hr=!1,bi=t)}}else{if(sv(t))throw Error(Oe(418));t.flags=t.flags&-4097|2,hr=!1,bi=t}}}function ZC(t){
Line truncated
|
||||
Error generating stack: `+o.message+`
|
||||
`+o.stack}return{value:t,source:e,stack:i,digest:null}}function E4(t,e,r){return{value:t,source:null,stack:r??null,digest:e??null}}function hv(t,e){try{console.error(e.value)}catch(r){setTimeout(function(){throw r})}}var WR=typeof WeakMap=="function"?WeakMap:Map;function lP(t,e,r){r=Ea(-1,r),r.tag=3,r.payload={element:null};var n=e.value;return r.callback=function(){w2||(w2=!0,bv=n),hv(t,e)},r}function cP(t,e,r){r=Ea(-1,r),r.tag=3;var n=t.type.getDerivedStateFromError;if(typeof n=="function"){var i=e.value;r.payload=function(){return n(i)},r.callback=function(){hv(t,e)}}var o=t.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(r.callback=function(){hv(t,e),typeof n!="function"&&(_s===null?_s=new Set([this]):_s.add(this));var a=e.stack;this.componentDidCatch(e.value,{componentStack:a!==null?a:""})}),r}function iw(t,e,r){var n=t.pingCache;if(n===null){n=t.pingCache=new WR;var i=new Set;n.set(e,i)}else i=n.get(e),i===void 0&&(i=new Set,n.set(e,i));i.has(r)||(i.add(r),t=aN.bind(null,t,e,r),e.then(t,t))}function ow(t){do{var e;if((e=t.tag===13)&&(e=t.memoizedState,e=e!==null?e.dehydrated!==null:!0),e)return t;t=t.return}while(t!==null);return null}function aw(t,e,r,n,i){return t.mode&1?(t.flags|=65536,t.lanes=i,t):(t===e?t.flags|=65536:(t.flags|=128,r.flags|=131072,r.flags&=-52805,r.tag===1&&(r.alternate===null?r.tag=17:(e=Ea(-1,1),e.tag=2,bs(r,e,1))),r.lanes|=1),t)}var XR=Ma.ReactCurrentOwner,si=!1;function Gn(t,e,r,n){e.child=t===null?jO(e,null,r,n):Du(e,t.child,r,n)}function sw(t,e,r,n,i){r=r.render;var o=e.ref;return Pu(e,i),n=V6(t,e,r,n,o,i),r=U6(),t!==null&&!si?(e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~i,Aa(t,e,i)):(hr&&r&&L6(e),e.flags|=1,Gn(t,e,n,i),e.child)}function lw(t,e,r,n,i){if(t===null){var o=r.type;return typeof o=="function"&&!t8(o)&&o.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(e.tag=15,e.type=o,uP(t,e,o,n,i)):(t=zf(r.type,null,n,e,e.mode,i),t.ref=e.ref,t.return=e,e.child=t)}if(o=t.child,!(t.lanes&i)){var a=o.memoizedProps;if(r=r.compare,r=r!==null?r:q0,r(a,n)&&t.ref===e.ref)return Aa(t,e,i)}return e.flags|=1,t=Es(o,n),t.ref=e.ref,t.return=e,e.child=t}function uP(t,e,r,n,i){if(t!==null){var o=t.memoizedProps;if(q0(o,n)&&t.ref===e.ref)if(si=!1,e.pendingProps=n=o,(t.lanes&i)!==0)t.flags&131072&&(si=!0);else return e.lanes=t.lanes,Aa(t,e,i)}return fv(t,e,r,n,i)}function dP(t,e,r){var n=e.pendingProps,i=n.children,o=t!==null?t.memoizedState:null;if(n.mode==="hidden")if(!(e.mode&1))e.memoizedState={baseLanes:0,cachePool:null,transitions:null},ir(Cu,Ci),Ci|=r;else{if(!(r&1073741824))return t=o!==null?o.baseLanes|r:r,e.lanes=e.childLanes=1073741824,e.memoizedState={baseLanes:t,cachePool:null,transitions:null},e.updateQueue=null,ir(Cu,Ci),Ci|=t,null;e.memoizedState={baseLanes:0,cachePool:null,transitions:null},n=o!==null?o.baseLanes:r,ir(Cu,Ci),Ci|=n}else o!==null?(n=o.baseLanes|r,e.memoizedState=null):n=r,ir(Cu,Ci),Ci|=n;return Gn(t,e,i,r),e.child}function hP(t,e){var r=e.ref;(t===null&&r!==null||t!==null&&t.ref!==r)&&(e.flags|=512,e.flags|=2097152)}function fv(t,e,r,n,i){var o=ui(r)?Bl:Dn.current;return o=Nu(e,o),Pu(e,i),r=V6(t,e,r,n,o,i),n=U6(),t!==null&&!si?(e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~i,Aa(t,e,i)):(hr&&n&&L6(e),e.flags|=1,Gn(t,e,r,i),e.child)}function cw(t,e,r,n,i){if(ui(r)){var o=!0;u2(e)}else o=!1;if(Pu(e,i),e.stateNode===null)Ff(t,e),sP(e,r,n),dv(e,r,n,i),n=!0;else if(t===null){var a=e.stateNode,s=e.memoizedProps;a.props=s;var c=a.context,d=r.contextType;typeof d=="object"&&d!==null?d=Xi(d):(d=ui(r)?Bl:Dn.current,d=Nu(e,d));var h=r.getDerivedStateFromProps,C=typeof h=="function"||typeof a.getSnapshotBeforeUpdate=="function";C||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==n||c!==d)&&nw(e,a,n,d),ds=!1;var v=e.memoizedState;a.state=v,g2(e,n,a,i),c=e.memoizedState,s!==n||v!==c||ci.current||ds?(typeof h=="function"&&(uv(e,r,h,n),c=e.memoizedState),(s=ds||rw(e,r,s,n,v,c,d))?(C||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount=="function"&&(e.flags|=4194308)):(typeof a.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=n,e.memoizedState=c),a.props=n,a.state=c,a.context=d,n=s):(typeof a.componentDidMount=="function"&&(e.flags|=4194308),n=!1)}else{a=e.stateNode,$O(t,e),s=e.memoizedProps,d=e.type===e.elementType?s:so(e.type,s),a.props=d,C=e.pendingProps,v=a.context,c=r.contextType,typeof c=="object"&&c!==null?c=Xi(c):(c=ui(r)?Bl:Dn.current,c=Nu(e,c));var g=r.getDerivedStateFromProps;(h=typeof g=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==C||v!==c)&&nw(e,a,n,c),ds=!1,v=e.memoizedState,a.state=v,g2(e,n,a,i);var m=e.memoizedS
Line truncated
|
||||
* @license React
|
||||
* react-is.production.js
|
||||
*
|
||||
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/var a8=Symbol.for("react.transitional.element"),s8=Symbol.for("react.portal"),lp=Symbol.for("react.fragment"),cp=Symbol.for("react.strict_mode"),up=Symbol.for("react.profiler"),dp=Symbol.for("react.consumer"),hp=Symbol.for("react.context"),fp=Symbol.for("react.forward_ref"),pp=Symbol.for("react.suspense"),gp=Symbol.for("react.suspense_list"),mp=Symbol.for("react.memo"),vp=Symbol.for("react.lazy"),_N=Symbol.for("react.view_transition"),xN=Symbol.for("react.client.reference");function qi(t){if(typeof t=="object"&&t!==null){var e=t.$$typeof;switch(e){case a8:switch(t=t.type,t){case lp:case up:case cp:case pp:case gp:case _N:return t;default:switch(t=t&&t.$$typeof,t){case hp:case fp:case vp:case mp:return t;case dp:return t;default:return e}}case s8:return e}}}Qt.ContextConsumer=dp;Qt.ContextProvider=hp;Qt.Element=a8;Qt.ForwardRef=fp;Qt.Fragment=lp;Qt.Lazy=vp;Qt.Memo=mp;Qt.Portal=s8;Qt.Profiler=up;Qt.StrictMode=cp;Qt.Suspense=pp;Qt.SuspenseList=gp;Qt.isContextConsumer=function(t){return qi(t)===dp};Qt.isContextProvider=function(t){return qi(t)===hp};Qt.isElement=function(t){return typeof t=="object"&&t!==null&&t.$$typeof===a8};Qt.isForwardRef=function(t){return qi(t)===fp};Qt.isFragment=function(t){return qi(t)===lp};Qt.isLazy=function(t){return qi(t)===vp};Qt.isMemo=function(t){return qi(t)===mp};Qt.isPortal=function(t){return qi(t)===s8};Qt.isProfiler=function(t){return qi(t)===up};Qt.isStrictMode=function(t){return qi(t)===cp};Qt.isSuspense=function(t){return qi(t)===pp};Qt.isSuspenseList=function(t){return qi(t)===gp};Qt.isValidElementType=function(t){return typeof t=="string"||typeof t=="function"||t===lp||t===up||t===cp||t===pp||t===gp||typeof t=="object"&&t!==null&&(t.$$typeof===vp||t.$$typeof===mp||t.$$typeof===hp||t.$$typeof===dp||t.$$typeof===fp||t.$$typeof===xN||t.getModuleId!==void 0)};Qt.typeOf=qi;zP.exports=Qt;var $P=zP.exports;function EN(t){function e(J,Q,te,we,U){for(var F=0,$=0,ie=0,pe=0,ce,le,xe=0,Ne=0,_e,He=_e=ce=0,Ee=0,Ve=0,We=0,Me=0,gt=te.length,St=gt-1,qe,je="",Ke="",bt="",Lt="",tr;Ee<gt;){if(le=te.charCodeAt(Ee),Ee===St&&$+pe+ie+F!==0&&($!==0&&(le=$===47?10:47),pe=ie=F=0,gt++,St++),$+pe+ie+F===0){if(Ee===St&&(0<Ve&&(je=je.replace(v,"")),0<je.trim().length)){switch(le){case 32:case 9:case 59:case 13:case 10:break;default:je+=te.charAt(Ee)}le=59}switch(le){case 123:for(je=je.trim(),ce=je.charCodeAt(0),_e=1,Me=++Ee;Ee<gt;){switch(le=te.charCodeAt(Ee)){case 123:_e++;break;case 125:_e--;break;case 47:switch(le=te.charCodeAt(Ee+1)){case 42:case 47:e:{for(He=Ee+1;He<St;++He)switch(te.charCodeAt(He)){case 47:if(le===42&&te.charCodeAt(He-1)===42&&Ee+2!==He){Ee=He+1;break e}break;case 10:if(le===47){Ee=He+1;break e}}Ee=He}}break;case 91:le++;case 40:le++;case 34:case 39:for(;Ee++<St&&te.charCodeAt(Ee)!==le;);}if(_e===0)break;Ee++}switch(_e=te.substring(Me,Ee),ce===0&&(ce=(je=je.replace(C,"").trim()).charCodeAt(0)),ce){case 64:switch(0<Ve&&(je=je.replace(v,"")),le=je.charCodeAt(1),le){case 100:case 109:case 115:case 45:Ve=Q;break;default:Ve=q}if(_e=e(Q,Ve,_e,le,U+1),Me=_e.length,0<K&&(Ve=r(q,je,We),tr=s(3,_e,Ve,Q,B,z,Me,le,U,we),je=Ve.join(""),tr!==void 0&&(Me=(_e=tr.trim()).length)===0&&(le=0,_e="")),0<Me)switch(le){case 115:je=je.replace(I,a);case 100:case 109:case 45:_e=je+"{"+_e+"}";break;case 107:je=je.replace(O,"$1 $2"),_e=je+"{"+_e+"}",_e=W===1||W===2&&o("@"+_e,3)?"@-webkit-"+_e+"@"+_e:"@"+_e;break;default:_e=je+_e,we===112&&(_e=(Ke+=_e,""))}else _e="";break;default:_e=e(Q,r(Q,je,We),_e,we,U+1)}bt+=_e,_e=We=Ve=He=ce=0,je="",le=te.charCodeAt(++Ee);break;case 125:case 59:if(je=(0<Ve?je.replace(v,""):je).trim(),1<(Me=je.length))switch(He===0&&(ce=je.charCodeAt(0),ce===45||96<ce&&123>ce)&&(Me=(je=je.replace(" ",":")).length),0<K&&(tr=s(1,je,Q,J,B,z,Ke.length,we,U,we))!==void 0&&(Me=(je=tr.trim()).length)===0&&(je="\0\0"),ce=je.charCodeAt(0),le=je.charCodeAt(1),ce){case 0:break;case 64:if(le===105||le===99){Lt+=je+te.charAt(Ee);break}default:je.charCodeAt(Me-1)!==58&&(Ke+=i(je,ce,le,je.charCodeAt(2)))}We=Ve=He=ce=0,je="",le=te.charCodeAt(++Ee)}}switch(le){case 13:case 10:$===47?$=0:1+ce===0&&we!==107&&0<je.length&&(Ve=1,je+="\0"),0<K*ne&&s(0,je,Q,J,B,z,Ke.length,we,U,we),z=1,B++;break;case 59:case 125:if($+pe+ie+F===0){z++;break}default:switch(z++,qe=te.charAt(Ee),le){case 9:case 32:if(pe+F+$===0)switch(xe){case 44:case 58:case 9:case 32:qe="";break;default:le!==32&&(qe=" ")}break;case 0:qe="\\0";break;case 12:qe="\\f";break;case 11:qe="\\v";break;case 38:pe+$+F===0&&(Ve=We=1,qe="\f"+qe);break;case 108:if(pe+$+F+Y===0&&0<He)switch(Ee-He){case 2:xe===112&&te.charCodeAt(Ee-3)===58&&(Y=xe);case 8:Ne===111&&(Y=Ne)}break;case 58:pe+$+F===0&&(He=Ee);break;case 44:$+ie+pe+F===0&&(Ve=1,qe+="\r");break;case 34:case 39:$===0&&(pe=pe===le?0:pe===0?le:pe);break;case 91:pe+$+ie===0&&F++;break;case 93:pe+$+ie===0&&F--;break;case 41:pe+$+F===0&&ie--;break;case 40:if(pe+$+F===0){if(ce===0)switch(2*xe+3*Ne){case 533:break;default:ce=1}ie++}break;case 64:$+ie+pe+F+He+_e===0&&(_e=1);break;case 42:case 47:if(!(0Line truncated
|
||||
* react-is.production.min.js
|
||||
*
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/var fn=typeof Symbol=="function"&&Symbol.for,l8=fn?Symbol.for("react.element"):60103,c8=fn?Symbol.for("react.portal"):60106,yp=fn?Symbol.for("react.fragment"):60107,Cp=fn?Symbol.for("react.strict_mode"):60108,wp=fn?Symbol.for("react.profiler"):60114,Sp=fn?Symbol.for("react.provider"):60109,bp=fn?Symbol.for("react.context"):60110,u8=fn?Symbol.for("react.async_mode"):60111,_p=fn?Symbol.for("react.concurrent_mode"):60111,xp=fn?Symbol.for("react.forward_ref"):60112,Ep=fn?Symbol.for("react.suspense"):60113,TN=fn?Symbol.for("react.suspense_list"):60120,Op=fn?Symbol.for("react.memo"):60115,Pp=fn?Symbol.for("react.lazy"):60116,IN=fn?Symbol.for("react.block"):60121,AN=fn?Symbol.for("react.fundamental"):60117,LN=fn?Symbol.for("react.responder"):60118,MN=fn?Symbol.for("react.scope"):60119;function ki(t){if(typeof t=="object"&&t!==null){var e=t.$$typeof;switch(e){case l8:switch(t=t.type,t){case u8:case _p:case yp:case wp:case Cp:case Ep:return t;default:switch(t=t&&t.$$typeof,t){case bp:case xp:case Pp:case Op:case Sp:return t;default:return e}}case c8:return e}}}function HP(t){return ki(t)===_p}Gt.AsyncMode=u8;Gt.ConcurrentMode=_p;Gt.ContextConsumer=bp;Gt.ContextProvider=Sp;Gt.Element=l8;Gt.ForwardRef=xp;Gt.Fragment=yp;Gt.Lazy=Pp;Gt.Memo=Op;Gt.Portal=c8;Gt.Profiler=wp;Gt.StrictMode=Cp;Gt.Suspense=Ep;Gt.isAsyncMode=function(t){return HP(t)||ki(t)===u8};Gt.isConcurrentMode=HP;Gt.isContextConsumer=function(t){return ki(t)===bp};Gt.isContextProvider=function(t){return ki(t)===Sp};Gt.isElement=function(t){return typeof t=="object"&&t!==null&&t.$$typeof===l8};Gt.isForwardRef=function(t){return ki(t)===xp};Gt.isFragment=function(t){return ki(t)===yp};Gt.isLazy=function(t){return ki(t)===Pp};Gt.isMemo=function(t){return ki(t)===Op};Gt.isPortal=function(t){return ki(t)===c8};Gt.isProfiler=function(t){return ki(t)===wp};Gt.isStrictMode=function(t){return ki(t)===Cp};Gt.isSuspense=function(t){return ki(t)===Ep};Gt.isValidElementType=function(t){return typeof t=="string"||typeof t=="function"||t===yp||t===_p||t===wp||t===Cp||t===Ep||t===TN||typeof t=="object"&&t!==null&&(t.$$typeof===Pp||t.$$typeof===Op||t.$$typeof===Sp||t.$$typeof===bp||t.$$typeof===xp||t.$$typeof===AN||t.$$typeof===LN||t.$$typeof===MN||t.$$typeof===IN)};Gt.typeOf=ki;BP.exports=Gt;var RN=BP.exports,d8=RN,NN={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},FN={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},DN={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},GP={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},h8={};h8[d8.ForwardRef]=DN;h8[d8.Memo]=GP;function xw(t){return d8.isMemo(t)?GP:h8[t.$$typeof]||NN}var jN=Object.defineProperty,zN=Object.getOwnPropertyNames,Ew=Object.getOwnPropertySymbols,$N=Object.getOwnPropertyDescriptor,BN=Object.getPrototypeOf,Ow=Object.prototype;function VP(t,e,r){if(typeof e!="string"){if(Ow){var n=BN(e);n&&n!==Ow&&VP(t,n,r)}var i=zN(e);Ew&&(i=i.concat(Ew(e)));for(var o=xw(t),a=xw(e),s=0;s<i.length;++s){var c=i[s];if(!FN[c]&&!(r&&r[c])&&!(a&&a[c])&&!(o&&o[c])){var d=$N(e,c);try{jN(t,c,d)}catch{}}}}return t}var HN=VP;const GN=ql(HN);var $i={};function ho(){return(ho=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t}).apply(this,arguments)}var Pw=function(t,e){for(var r=[t[0]],n=0,i=e.length;n<i;n+=1)r.push(e[n],t[n+1]);return r},Pv=function(t){return t!==null&&typeof t=="object"&&(t.toString?t.toString():Object.prototype.toString.call(t))==="[object Object]"&&!$P.typeOf(t)},x2=Object.freeze([]),Os=Object.freeze({});function Bu(t){return typeof t=="function"}function kw(t){return t.displayName||t.name||"Component"}function f8(t){return t&&typeof t.styledComponentId=="string"}var Hu=typeof process<"u"&&$i!==void 0&&($i.REACT_APP_SC_ATTR||$i.SC_ATTR)||"data-styled",p8=typeof window<"u"&&"HTMLElement"in window,VN=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process<"u"&&$i!==void 0&&($i.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&$i.REACT_APP_SC_DISABLE_SPEEDY!==""?$i.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&$i.REACT_APP_SC_DISABLE_SPEEDY:$i.SC_DISABLE_SPEEDY!==void 0&&$i.SC_DISABLE_SPEEDY!==""&&$i.SC_DISABLE_SPEEDY!=="false"&&$i.SC_DISABLE_SPEEDY)),UN={};function Wl(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];throw new Error("An error occurred. See https://git.io/JUIaE#"+t+" for more information."+(r.length>0?" Args: "+r.join(", "):""))}var WN=function(){function t(r){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=r}var e=t.prototype;return e.indexOfGroup=function(r){for(var n=0,i=0;i<r;i++)n+=this.groupSizes[i];return n},e.insertRules=function(r,n){if(r>=this.groupSizes.length){for(var i=this.groupSizes,o=i.length,a=o;r>=a;)(a<<=1)<0&&Wl(16,""+r);Line truncated
|
||||
`;return n},t}(),$f=new Map,E2=new Map,z0=1,U1=function(t){if($f.has(t))return $f.get(t);for(;E2.has(z0);)z0++;var e=z0++;return $f.set(t,e),E2.set(e,t),e},XN=function(t){return E2.get(t)},KN=function(t,e){e>=z0&&(z0=e+1),$f.set(t,e),E2.set(e,t)},YN="style["+Hu+'][data-styled-version="5.3.11"]',ZN=new RegExp("^"+Hu+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),qN=function(t,e,r){for(var n,i=r.split(","),o=0,a=i.length;o<a;o++)(n=i[o])&&t.registerName(e,n)},QN=function(t,e){for(var r=(e.textContent||"").split(`/*!sc*/
|
||||
`),n=[],i=0,o=r.length;i<o;i++){var a=r[i].trim();if(a){var s=a.match(ZN);if(s){var c=0|parseInt(s[1],10),d=s[2];c!==0&&(KN(d,c),qN(t,d,s[3]),t.getTag().insertRules(c,n)),n.length=0}else n.push(a)}}},JN=function(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null},UP=function(t){var e=document.head,r=t||e,n=document.createElement("style"),i=function(s){for(var c=s.childNodes,d=c.length;d>=0;d--){var h=c[d];if(h&&h.nodeType===1&&h.hasAttribute(Hu))return h}}(r),o=i!==void 0?i.nextSibling:null;n.setAttribute(Hu,"active"),n.setAttribute("data-styled-version","5.3.11");var a=JN();return a&&n.setAttribute("nonce",a),r.insertBefore(n,o),n},eF=function(){function t(r){var n=this.element=UP(r);n.appendChild(document.createTextNode("")),this.sheet=function(i){if(i.sheet)return i.sheet;for(var o=document.styleSheets,a=0,s=o.length;a<s;a++){var c=o[a];if(c.ownerNode===i)return c}Wl(17)}(n),this.length=0}var e=t.prototype;return e.insertRule=function(r,n){try{return this.sheet.insertRule(n,r),this.length++,!0}catch{return!1}},e.deleteRule=function(r){this.sheet.deleteRule(r),this.length--},e.getRule=function(r){var n=this.sheet.cssRules[r];return n!==void 0&&typeof n.cssText=="string"?n.cssText:""},t}(),tF=function(){function t(r){var n=this.element=UP(r);this.nodes=n.childNodes,this.length=0}var e=t.prototype;return e.insertRule=function(r,n){if(r<=this.length&&r>=0){var i=document.createTextNode(n),o=this.nodes[r];return this.element.insertBefore(i,o||null),this.length++,!0}return!1},e.deleteRule=function(r){this.element.removeChild(this.nodes[r]),this.length--},e.getRule=function(r){return r<this.length?this.nodes[r].textContent:""},t}(),rF=function(){function t(r){this.rules=[],this.length=0}var e=t.prototype;return e.insertRule=function(r,n){return r<=this.length&&(this.rules.splice(r,0,n),this.length++,!0)},e.deleteRule=function(r){this.rules.splice(r,1),this.length--},e.getRule=function(r){return r<this.length?this.rules[r]:""},t}(),Tw=p8,nF={isServer:!p8,useCSSOMInjection:!VN},O2=function(){function t(r,n,i){r===void 0&&(r=Os),n===void 0&&(n={}),this.options=ho({},nF,{},r),this.gs=n,this.names=new Map(i),this.server=!!r.isServer,!this.server&&p8&&Tw&&(Tw=!1,function(o){for(var a=document.querySelectorAll(YN),s=0,c=a.length;s<c;s++){var d=a[s];d&&d.getAttribute(Hu)!=="active"&&(QN(o,d),d.parentNode&&d.parentNode.removeChild(d))}}(this))}t.registerId=function(r){return U1(r)};var e=t.prototype;return e.reconstructWithOptions=function(r,n){return n===void 0&&(n=!0),new t(ho({},this.options,{},r),this.gs,n&&this.names||void 0)},e.allocateGSInstance=function(r){return this.gs[r]=(this.gs[r]||0)+1},e.getTag=function(){return this.tag||(this.tag=(i=(n=this.options).isServer,o=n.useCSSOMInjection,a=n.target,r=i?new rF(a):o?new eF(a):new tF(a),new WN(r)));var r,n,i,o,a},e.hasNameForId=function(r,n){return this.names.has(r)&&this.names.get(r).has(n)},e.registerName=function(r,n){if(U1(r),this.names.has(r))this.names.get(r).add(n);else{var i=new Set;i.add(n),this.names.set(r,i)}},e.insertRules=function(r,n,i){this.registerName(r,n),this.getTag().insertRules(U1(r),i)},e.clearNames=function(r){this.names.has(r)&&this.names.get(r).clear()},e.clearRules=function(r){this.getTag().clearGroup(U1(r)),this.clearNames(r)},e.clearTag=function(){this.tag=void 0},e.toString=function(){return function(r){for(var n=r.getTag(),i=n.length,o="",a=0;a<i;a++){var s=XN(a);if(s!==void 0){var c=r.names.get(s),d=n.getGroup(a);if(c&&d&&c.size){var h=Hu+".g"+a+'[id="'+s+'"]',C="";c!==void 0&&c.forEach(function(v){v.length>0&&(C+=v+",")}),o+=""+d+h+'{content:"'+C+`"}/*!sc*/
|
||||
`}}}return o}(this)},t}(),iF=/(a)(d)/gi,Iw=function(t){return String.fromCharCode(t+(t>25?39:97))};function kv(t){var e,r="";for(e=Math.abs(t);e>52;e=e/52|0)r=Iw(e%52)+r;return(Iw(e%52)+r).replace(iF,"$1-$2")}var wu=function(t,e){for(var r=e.length;r;)t=33*t^e.charCodeAt(--r);return t},WP=function(t){return wu(5381,t)};function XP(t){for(var e=0;e<t.length;e+=1){var r=t[e];if(Bu(r)&&!f8(r))return!1}return!0}var oF=WP("5.3.11"),aF=function(){function t(e,r,n){this.rules=e,this.staticRulesId="",this.isStatic=(n===void 0||n.isStatic)&&XP(e),this.componentId=r,this.baseHash=wu(oF,r),this.baseStyle=n,O2.registerId(r)}return t.prototype.generateAndInjectStyles=function(e,r,n){var i=this.componentId,o=[];if(this.baseStyle&&o.push(this.baseStyle.generateAndInjectStyles(e,r,n)),this.isStatic&&!n.hash)if(this.staticRulesId&&r.hasNameForId(i,this.staticRulesId))o.push(this.staticRulesId);else{var a=Xl(this.rules,e,r,n).join(""),s=kv(wu(this.baseHash,a)>>>0);if(!r.hasNameForId(i,s)){var c=n(a,"."+s,void 0,i);r.insertRules(i,s,c)}o.push(s),this.staticRulesId=s}else{for(var d=this.rules.length,h=wu(this.baseHash,n.hash),C="",v=0;v<d;v++){var g=this.rules[v];if(typeof g=="string")C+=g;else if(g){var m=Xl(g,e,r,n),w=Array.isArray(m)?m.join(""):m;h=wu(h,w+v),C+=w}}if(C){var x=kv(h>>>0);if(!r.hasNameForId(i,x)){var b=n(C,"."+x,void 0,i);r.insertRules(i,x,b)}o.push(x)}}return o.join(" ")},t}(),sF=/^\s*\/\/.*$/gm,lF=[":","[",".","#"];function cF(t){var e,r,n,i,o=Os,a=o.options,s=a===void 0?Os:a,c=o.plugins,d=c===void 0?x2:c,h=new EN(s),C=[],v=function(w){function x(b){if(b)try{w(b+"}")}catch{}}return function(b,O,f,S,E,I,R,k,N,T){switch(b){case 1:if(N===0&&O.charCodeAt(0)===64)return w(O+";"),"";break;case 2:if(k===0)return O+"/*|*/";break;case 3:switch(k){case 102:case 112:return w(f[0]+O),"";default:return O+(T===0?"/*|*/":"")}case-2:O.split("/*|*/}").forEach(x)}}}(function(w){C.push(w)}),g=function(w,x,b){return x===0&&lF.indexOf(b[r.length])!==-1||b.match(i)?w:"."+e};function m(w,x,b,O){O===void 0&&(O="&");var f=w.replace(sF,""),S=x&&b?b+" "+x+" { "+f+" }":f;return e=O,r=x,n=new RegExp("\\"+r+"\\b","g"),i=new RegExp("(\\"+r+"\\b){2,}"),h(b||!x?"":x,S)}return h.use([].concat(d,[function(w,x,b){w===2&&b.length&&b[0].lastIndexOf(r)>0&&(b[0]=b[0].replace(n,g))},v,function(w){if(w===-2){var x=C;return C=[],x}}])),m.hash=d.length?d.reduce(function(w,x){return x.name||Wl(15),wu(w,x.name)},5381).toString():"",m}var KP=y.createContext();KP.Consumer;var YP=y.createContext(),uF=(YP.Consumer,new O2),Tv=cF();function ZP(){return G.useContext(KP)||uF}function qP(){return G.useContext(YP)||Tv}var QP=function(){function t(e,r){var n=this;this.inject=function(i,o){o===void 0&&(o=Tv);var a=n.name+o.hash;i.hasNameForId(n.id,a)||i.insertRules(n.id,a,o(n.rules,a,"@keyframes"))},this.toString=function(){return Wl(12,String(n.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=r}return t.prototype.getName=function(e){return e===void 0&&(e=Tv),this.name+e.hash},t}(),dF=/([A-Z])/,hF=/([A-Z])/g,fF=/^ms-/,pF=function(t){return"-"+t.toLowerCase()};function Aw(t){return dF.test(t)?t.replace(hF,pF).replace(fF,"-ms-"):t}var Lw=function(t){return t==null||t===!1||t===""};function Xl(t,e,r,n){if(Array.isArray(t)){for(var i,o=[],a=0,s=t.length;a<s;a+=1)(i=Xl(t[a],e,r,n))!==""&&(Array.isArray(i)?o.push.apply(o,i):o.push(i));return o}if(Lw(t))return"";if(f8(t))return"."+t.styledComponentId;if(Bu(t)){if(typeof(d=t)!="function"||d.prototype&&d.prototype.isReactComponent||!e)return t;var c=t(e);return Xl(c,e,r,n)}var d;return t instanceof QP?r?(t.inject(r,n),t.getName(n)):t:Pv(t)?function h(C,v){var g,m,w=[];for(var x in C)C.hasOwnProperty(x)&&!Lw(C[x])&&(Array.isArray(C[x])&&C[x].isCss||Bu(C[x])?w.push(Aw(x)+":",C[x],";"):Pv(C[x])?w.push.apply(w,h(C[x],x)):w.push(Aw(x)+": "+(g=x,(m=C[x])==null||typeof m=="boolean"||m===""?"":typeof m!="number"||m===0||g in ON||g.startsWith("--")?String(m).trim():m+"px")+";"));return v?[v+" {"].concat(w,["}"]):w}(t):t.toString()}var Mw=function(t){return Array.isArray(t)&&(t.isCss=!0),t};function X(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];return Bu(t)||Pv(t)?Mw(Xl(Pw(x2,[t].concat(r)))):r.length===0&&t.length===1&&typeof t[0]=="string"?t:Mw(Xl(Pw(t,r)))}var JP=function(t,e,r){return r===void 0&&(r=Os),t.theme!==r.theme&&t.theme||e||r.theme},gF=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,mF=/(^-|-$)/g;function T4(t){return t.replace(gF,"-").replace(mF,"")}var g8=function(t){return kv(WP(t)>>>0)};function W1(t){return typeof t=="string"&&!0}var Iv=function(t){return typeof t=="function"||typeof t=="object"&&t!==null&&!Array.isArray(t)},vF=function(t){return t!=="__proto__"&&t!=="constructor"&&t!=="prototype"};function yF(t,e,r){var n=t[r];Iv(e)&&Iv(n)?ek(n,e):t[r]=e}function ek(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];for(var i=0,o=r;i<o.length;i++){var a=o[i];if(Iv(a))for(var s in a)vF(s)&&yF(t,a[s],s)}return t}var Gu=y.createContext();Gu.CLine truncated
|
||||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function cr(t){return xF(t)||rk(t)||v8(t)||EF()}function Se(t,e){var r=function(o){return"Sfx".concat(t).concat(o?"-".concat(o):"")},n=[];return e&&(Array.isArray(e)?n.push.apply(n,cr(e.filter(function(i){return typeof i=="string"}).map(function(i){return r(i)}))):typeof e=="string"&&n.push(r(e))),n.length===0&&n.push(r()),n.join(" ")}function pt(t,e){var r=G.forwardRef(t);return r.displayName=t.name,r}function OF(t){return Object.keys(t)}function ht(t){return Object.values(t)}function PF(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];return typeof t=="function"?t.apply(void 0,r):t}function Bt(t){return Object.keys(t).reduce(function(e,r){var n=t[r];return n.displayName="".concat(r),Object.assign(e,A({},r,n))},{})}function Rw(t,e){typeof t=="function"?t(e):t&&(t.current=e)}function y8(t,e){return G.useMemo(function(){return t==null&&e==null?null:function(r){Rw(t,r),Rw(e,r)}},[t,e])}function Hc(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=arguments.length>2?arguments[2]:void 0,n=r||1e6,i=+t;return Math.min(Math.max(e,i),n)}function A4(t,e,r,n,i){return(t-e)*(i-n)/(r-e)+n}var C8=function(e){return e.replaceAll(/[^\d,]/gi,"").split(",").map(function(r){return+r})},Bf=function(e){return e?[Number.parseInt(e.slice(1,3),16),Number.parseInt(e.slice(3,5),16),Number.parseInt(e.slice(5,7),16)]:[0,0,0]},nk=function(e){return e.toString(16).padStart(2,"0")},ik=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return"#".concat(r.map(nk).join(""))},kF=function(e,r,n){var i=n/100,o=r*Math.min(i,1-i)/100,a=function(c){var d=(c+e/30)%12,h=i-o*Math.max(Math.min(d-3,9-d,1),-1);return nk(Math.round(255*h))};return"#".concat(a(0)).concat(a(8)).concat(a(4))},Nw=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i=r[0],o=r[1],a=r[2];i/=255,o/=255,a/=255;var s=Math.min(i,o,a),c=Math.max(i,o,a),d,h,C=(c+s)/2;if(c===s)d=0,h=0;else{var v=c-s;switch(h=C>.5?v/(2-c-s):v/(c+s),c){case i:d=(o-a)/v+(o<a?6:0);break;case o:d=(a-i)/v+2;break;case a:d=(i-o)/v+4;break;default:d=0}d/=6}return[Math.round(d*360),Math.round(h*100),Math.round(C*100)]},L4=function(e){if(e.startsWith("#")){var r=e;return e.length===4&&(r="#".concat(e[1]).concat(e[1]).concat(e[2]).concat(e[2]).concat(e[3]).concat(e[3])),Nw.apply(void 0,cr(Bf(r)))}if(e.startsWith("rgb")){var n=C8(e);return Nw.apply(void 0,cr(n))}return typeof e=="string"?[0,0,0]:e},Fw=function(e){return e.startsWith("#")?e.length===7?e:"#".concat(e[0]).concat(e[0]).concat(e[1]).concat(e[1]).concat(e[2]).concat(e[2]):e.startsWith("rgb")?ik.apply(void 0,cr(C8(e))):typeof e=="string"?"#000000":e},ok=function(e,r){return r===0&&(e===0||e===1)},ak=function(e,r){return e===0&&r===1},TF=function(e,r,n){var i=r,o=(2-r)*n/2;o!==0&&(o===1?i=0:o<.5?i=i*n/(o*2):i=i*n/(2-o*2));var a=ok(i,o);return[a||ak(i,o)?0:e,a?0:Math.round(i*100),Math.round(o*100)]},IF=function(e,r,n){var i=r,o=n*2;i*=o<=1?o:2-o;var a=(o+i)/2;i=2*i/(o+i);var s=ok(i,n);return[s||ak(i,n)?0:e,s?0:Math.round(i*100),Math.round(a*100)]},Dw=function(e){return/^#[\da-f]{6}$/i.test(e)};function Cl(t){if(!t)return null;var e=t.getBoundingClientRect(),r=document,n=r.body,i=document.documentElement,o=window.pageYOffset||i.scrollTop||n.scrollTop,a=window.pageXOffset||i.scrollLeft||n.scrollLeft,s=i.clientTop||n.clientTop||0,c=i.clientLeft||n.clientLeft||0,d=e.top+o-s,h=e.left+a-c;return{top:Math.round(d),left:Math.round(h),width:e.width,height:e.height}}function sk(t,e){return t-e}function M4(t,e,r){return(t-e)*100/(r-e)}function AF(t,e,r){return(r-e)*t+e}function LF(t){if(Math.abs(t)<1){var e=t.toExponential().split("e-"),r=e[0].split(".")[1];return(r?r.length:0)+Number.parseInt(e[1],10)}var n=t.toString().split(".")[1];return n?n.length:0}function MF(t,e,r){var n=Math.round((t-r)/e)*e+r;return Number(n.toFixed(LF(e)))}function jw(t){var e=t.values,r=t.newValue,n=t.index,i=e.slice();return i[n]=r,i.sort(sk)}function RF(t,e){var r=t.reduce(function(i,o,a){var s=Math.abs(e-o);return i===null||s<i.distance||s===i.distance?{distance:s,index:a}:i},null),n=r.index;return n}function Hf(t){return t&&t.ownerDocument||document}function R4(t,e,r){return t==null?e:Math.min(Math.max(e,t),r)}function X1(t,e){if(e.current!==void 0&&t.changedTouches){for(var r=0;r<t.changedTouches.length;r+=1){var n=t.changedTouches[r];if(n.identifier===e.current)return{x:n.clientX,y:n.clientY}}return!1}return{x:t.clientX,y:t.clientY}}var N4={horizontal:{offset:function(e){return{left:"".concat(e,"%")}},leap:function(e){return{width:"".concat(e,"%")}}},"horizontal-reverse":{offset:function(e){return{right:"".concat(e,"%")}},leap:function(e){return{width:"".concat(e,"%")}}},vertical:{offset:function(e){return{bottom:"".concat(e,"%")}},leap:function(e){return{height:"".concat(e,"%")}}}};function K1(t){var e=t.sliderRef,r=t.activeIndex,n=t.setActive,i=Hf(e.current);if(!e.current.co
Line truncated
|
||||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ie(t,e){return hk(t)||KF(t,e)||v8(t,e)||fk()}function he(){return he=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)({}).hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},he.apply(null,arguments)}var pk={exports:{}},Tp={},k2={},ft={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t._registerNode=t.Konva=t.glob=void 0;const e=Math.PI/180;function r(){return typeof window<"u"&&({}.toString.call(window)==="[object Window]"||{}.toString.call(window)==="[object global]")}t.glob=typeof gs<"u"?gs:typeof window<"u"?window:typeof WorkerGlobalScope<"u"?self:{},t.Konva={_global:t.glob,version:"9.3.20",isBrowser:r(),isUnminified:/param/.test((function(i){}).toString()),dblClickWindow:400,getAngle(i){return t.Konva.angleDeg?i*e:i},enableTrace:!1,pointerEventsEnabled:!0,autoDrawEnabled:!0,hitOnDragEnabled:!1,capturePointerEventsEnabled:!1,_mouseListenClick:!1,_touchListenClick:!1,_pointerListenClick:!1,_mouseInDblClickWindow:!1,_touchInDblClickWindow:!1,_pointerInDblClickWindow:!1,_mouseDblClickPointerId:null,_touchDblClickPointerId:null,_pointerDblClickPointerId:null,_fixTextRendering:!1,pixelRatio:typeof window<"u"&&window.devicePixelRatio||1,dragDistance:3,angleDeg:!0,showWarnings:!0,dragButtons:[0,1],isDragging(){return t.Konva.DD.isDragging},isTransforming(){var i;return(i=t.Konva.Transformer)===null||i===void 0?void 0:i.isTransforming()},isDragReady(){return!!t.Konva.DD.node},releaseCanvasOnDestroy:!0,document:t.glob.document,_injectGlobal(i){t.glob.Konva=i}};const n=i=>{t.Konva[i.prototype.getClassName()]=i};t._registerNode=n,t.Konva._injectGlobal(t.Konva)})(ft);var Or={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.Util=t.Transform=void 0;const e=ft;class r{constructor(S=[1,0,0,1,0,0]){this.dirty=!1,this.m=S&&S.slice()||[1,0,0,1,0,0]}reset(){this.m[0]=1,this.m[1]=0,this.m[2]=0,this.m[3]=1,this.m[4]=0,this.m[5]=0}copy(){return new r(this.m)}copyInto(S){S.m[0]=this.m[0],S.m[1]=this.m[1],S.m[2]=this.m[2],S.m[3]=this.m[3],S.m[4]=this.m[4],S.m[5]=this.m[5]}point(S){const E=this.m;return{x:E[0]*S.x+E[2]*S.y+E[4],y:E[1]*S.x+E[3]*S.y+E[5]}}translate(S,E){return this.m[4]+=this.m[0]*S+this.m[2]*E,this.m[5]+=this.m[1]*S+this.m[3]*E,this}scale(S,E){return this.m[0]*=S,this.m[1]*=S,this.m[2]*=E,this.m[3]*=E,this}rotate(S){const E=Math.cos(S),I=Math.sin(S),R=this.m[0]*E+this.m[2]*I,k=this.m[1]*E+this.m[3]*I,N=this.m[0]*-I+this.m[2]*E,T=this.m[1]*-I+this.m[3]*E;return this.m[0]=R,this.m[1]=k,this.m[2]=N,this.m[3]=T,this}getTranslation(){return{x:this.m[4],y:this.m[5]}}skew(S,E){const I=this.m[0]+this.m[2]*E,R=this.m[1]+this.m[3]*E,k=this.m[2]+this.m[0]*S,N=this.m[3]+this.m[1]*S;return this.m[0]=I,this.m[1]=R,this.m[2]=k,this.m[3]=N,this}multiply(S){const E=this.m[0]*S.m[0]+this.m[2]*S.m[1],I=this.m[1]*S.m[0]+this.m[3]*S.m[1],R=this.m[0]*S.m[2]+this.m[2]*S.m[3],k=this.m[1]*S.m[2]+this.m[3]*S.m[3],N=this.m[0]*S.m[4]+this.m[2]*S.m[5]+this.m[4],T=this.m[1]*S.m[4]+this.m[3]*S.m[5]+this.m[5];return this.m[0]=E,this.m[1]=I,this.m[2]=R,this.m[3]=k,this.m[4]=N,this.m[5]=T,this}invert(){const S=1/(this.m[0]*this.m[3]-this.m[1]*this.m[2]),E=this.m[3]*S,I=-this.m[1]*S,R=-this.m[2]*S,k=this.m[0]*S,N=S*(this.m[2]*this.m[5]-this.m[3]*this.m[4]),T=S*(this.m[1]*this.m[4]-this.m[0]*this.m[5]);return this.m[0]=E,this.m[1]=I,this.m[2]=R,this.m[3]=k,this.m[4]=N,this.m[5]=T,this}getMatrix(){return this.m}decompose(){const S=this.m[0],E=this.m[1],I=this.m[2],R=this.m[3],k=this.m[4],N=this.m[5],T=S*R-E*I,D={x:k,y:N,rotation:0,scaleX:0,scaleY:0,skewX:0,skewY:0};if(S!=0||E!=0){const z=Math.sqrt(S*S+E*E);D.rotation=E>0?Math.acos(S/z):-Math.acos(S/z),D.scaleX=z,D.scaleY=T/z,D.skewX=(S*I+E*R)/T,D.skewY=0}else if(I!=0||R!=0){const z=Math.sqrt(I*I+R*R);D.rotation=Math.PI/2-(R>0?Math.acos(-I/z):-Math.acos(I/z)),D.scaleX=T/z,D.scaleY=z,D.skewX=0,D.skewY=(S*I+E*R)/T}return D.rotation=t.Util._getRotation(D.rotation),D}}t.Transform=r;const n="[object Array]",i="[object Number]",o="[object String]",a="[object Boolean]",s=Math.PI/180,c=180/Math.PI,d="#",h="",C="0",v="Konva warning: ",g="Konva error: ",m="rgb(",w={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,132,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,1
Line truncated
|
||||
`),r=+this.fontSize(),n=0,i=this.lineHeight()*r,o=this.attrs.width,a=this.attrs.height,s=o!==Uc&&o!==void 0,c=a!==Uc&&a!==void 0,d=this.padding(),h=o-d*2,C=a-d*2,v=0,g=this.wrap(),m=g!==oS,w=g!==zj&&m,x=this.ellipsis();this.textArr=[],V4().font=this._getContextFont();const b=x?this._getTextWidth(G4):0;for(let O=0,f=e.length;O<f;++O){let S=e[O],E=this._getTextWidth(S);if(s&&E>h)for(;S.length>0;){let I=0,R=kl(S).length,k="",N=0;for(;I<R;){const T=I+R>>>1,D=kl(S),z=D.slice(0,T+1).join(""),B=this._getTextWidth(z);(x&&c&&v+i>C?B+b:B)<=h?(I=T+1,k=z,N=B):R=T}if(k){if(w){const z=kl(S),B=kl(k),Y=z[B.length],W=Y===q1||Y===rS;let q;if(W&&N<=h)q=B.length;else{const ee=B.lastIndexOf(q1),K=B.lastIndexOf(rS);q=Math.max(ee,K)+1}q>0&&(I=q,k=z.slice(0,I).join(""),N=this._getTextWidth(k))}if(k=k.trimRight(),this._addTextLine(k),n=Math.max(n,N),v+=i,this._shouldHandleEllipsis(v)){this._tryToAddEllipsisToLastLine();break}if(S=kl(S).slice(I).join("").trimLeft(),S.length>0&&(E=this._getTextWidth(S),E<=h)){this._addTextLine(S),v+=i,n=Math.max(n,E);break}}else break}else this._addTextLine(S),v+=i,n=Math.max(n,E),this._shouldHandleEllipsis(v)&&O<f-1&&this._tryToAddEllipsisToLastLine();if(this.textArr[this.textArr.length-1]&&(this.textArr[this.textArr.length-1].lastInParagraph=!0),c&&v+i>C)break}this.textHeight=r,this.textWidth=n}_shouldHandleEllipsis(e){const r=+this.fontSize(),n=this.lineHeight()*r,i=this.attrs.height,o=i!==Uc&&i!==void 0,a=this.padding(),s=i-a*2;return!(this.wrap()!==oS)||o&&e+n>s}_tryToAddEllipsisToLastLine(){const e=this.attrs.width,r=e!==Uc&&e!==void 0,n=this.padding(),i=e-n*2,o=this.ellipsis(),a=this.textArr[this.textArr.length-1];!a||!o||(r&&(this._getTextWidth(a.text+G4)<i||(a.text=a.text.slice(0,a.text.length-3))),this.textArr.splice(this.textArr.length-1,1),this._addTextLine(a.text+G4))}getStrokeScaleEnabled(){return!0}_useBufferCanvas(){const e=this.textDecoration().indexOf("underline")!==-1||this.textDecoration().indexOf("line-through")!==-1,r=this.hasShadow();return e&&r?!0:super._useBufferCanvas()}};pd.Text=Ar;Ar.prototype._fillFunc=Hj;Ar.prototype._strokeFunc=Gj;Ar.prototype.className=Mj;Ar.prototype._attrsAffectingSize=["text","fontSize","padding","wrap","lineHeight","letterSpacing"];(0,kj._registerNode)(Ar);jn.Factory.overWriteSetter(Ar,"width",(0,Bs.getNumberOrAutoValidator)());jn.Factory.overWriteSetter(Ar,"height",(0,Bs.getNumberOrAutoValidator)());jn.Factory.addGetterSetter(Ar,"direction",Nk);jn.Factory.addGetterSetter(Ar,"fontFamily","Arial");jn.Factory.addGetterSetter(Ar,"fontSize",12,(0,Bs.getNumberValidator)());jn.Factory.addGetterSetter(Ar,"fontStyle",Dk);jn.Factory.addGetterSetter(Ar,"fontVariant",Dk);jn.Factory.addGetterSetter(Ar,"padding",0,(0,Bs.getNumberValidator)());jn.Factory.addGetterSetter(Ar,"align",Fk);jn.Factory.addGetterSetter(Ar,"verticalAlign",Rj);jn.Factory.addGetterSetter(Ar,"lineHeight",1,(0,Bs.getNumberValidator)());jn.Factory.addGetterSetter(Ar,"wrap",jj);jn.Factory.addGetterSetter(Ar,"ellipsis",!1,(0,Bs.getBooleanValidator)());jn.Factory.addGetterSetter(Ar,"letterSpacing",0,(0,Bs.getNumberValidator)());jn.Factory.addGetterSetter(Ar,"text","",(0,Bs.getStringValidator)());jn.Factory.addGetterSetter(Ar,"textDecoration","");var Zp={};Object.defineProperty(Zp,"__esModule",{value:!0});Zp.TextPath=void 0;const U4=Or,So=wt,Uj=Jr,s0=hd,W4=pd,zk=Xe,Wj=ft,Xj="",$k="normal";function Bk(t){t.fillText(this.partialText,0,0)}function Hk(t){t.strokeText(this.partialText,0,0)}let en=class extends Uj.Shape{constructor(e){super(e),this.dummyCanvas=U4.Util.createCanvasElement(),this.dataArray=[],this._readDataAttribute(),this.on("dataChange.konva",function(){this._readDataAttribute(),this._setTextData()}),this.on("textChange.konva alignChange.konva letterSpacingChange.konva kerningFuncChange.konva fontSizeChange.konva fontFamilyChange.konva",this._setTextData),this._setTextData()}_getTextPathLength(){return s0.Path.getPathLength(this.dataArray)}_getPointAtLength(e){if(!this.attrs.data)return null;const r=this.pathLength;return e-1>r?null:s0.Path.getPointAtLengthOfDataArray(e,this.dataArray)}_readDataAttribute(){this.dataArray=s0.Path.parsePathData(this.attrs.data),this.pathLength=this._getTextPathLength()}_sceneFunc(e){e.setAttr("font",this._getContextFont()),e.setAttr("textBaseline",this.textBaseline()),e.setAttr("textAlign","left"),e.save();const r=this.textDecoration(),n=this.fill(),i=this.fontSize(),o=this.glyphInfo;r==="underline"&&e.beginPath();for(let a=0;a<o.length;a++){e.save();const s=o[a].p0;e.translate(s.x,s.y),e.rotate(o[a].rotation),this.partialText=o[a].text,e.fillStrokeShape(this),r==="underline"&&(a===0&&e.moveTo(0,i/2+1),e.lineTo(i,i/2+1)),e.restore()}r==="underline"&&(e.strokeStyle=n,e.lineWidth=i/20,e.stroke()),e.restore()}_hitFunc(e){e.beginPath();const r=this.glyphInfo;if(r.length>=1){const n=r[0].p0;e.moveTo(n.x,n.y)}for(let n=0;n<r.length;n++){const i=r[n].p1;e.lineTo(i.x,i.y)}e.setAttr("lineWidth",this.fontSize()),e.setAttr("strokeStyle",this.colorKey),e.stroke()}g
Line truncated
|
||||
* @license React
|
||||
* react-reconciler.production.min.js
|
||||
*
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/var U$=function(e){var r={},n=G,i=T0,o=Object.assign;function a(l){for(var u="https://reactjs.org/docs/error-decoder.html?invariant="+l,p=1;p<arguments.length;p++)u+="&args[]="+encodeURIComponent(arguments[p]);return"Minified React error #"+l+"; visit "+u+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var s=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,c=Symbol.for("react.element"),d=Symbol.for("react.portal"),h=Symbol.for("react.fragment"),C=Symbol.for("react.strict_mode"),v=Symbol.for("react.profiler"),g=Symbol.for("react.provider"),m=Symbol.for("react.context"),w=Symbol.for("react.forward_ref"),x=Symbol.for("react.suspense"),b=Symbol.for("react.suspense_list"),O=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),S=Symbol.for("react.offscreen"),E=Symbol.iterator;function I(l){return l===null||typeof l!="object"?null:(l=E&&l[E]||l["@@iterator"],typeof l=="function"?l:null)}function R(l){if(l==null)return null;if(typeof l=="function")return l.displayName||l.name||null;if(typeof l=="string")return l;switch(l){case h:return"Fragment";case d:return"Portal";case v:return"Profiler";case C:return"StrictMode";case x:return"Suspense";case b:return"SuspenseList"}if(typeof l=="object")switch(l.$$typeof){case m:return(l.displayName||"Context")+".Consumer";case g:return(l._context.displayName||"Context")+".Provider";case w:var u=l.render;return l=l.displayName,l||(l=u.displayName||u.name||"",l=l!==""?"ForwardRef("+l+")":"ForwardRef"),l;case O:return u=l.displayName||null,u!==null?u:R(l.type)||"Memo";case f:u=l._payload,l=l._init;try{return R(l(u))}catch{}}return null}function k(l){var u=l.type;switch(l.tag){case 24:return"Cache";case 9:return(u.displayName||"Context")+".Consumer";case 10:return(u._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return l=u.render,l=l.displayName||l.name||"",u.displayName||(l!==""?"ForwardRef("+l+")":"ForwardRef");case 7:return"Fragment";case 5:return u;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return R(u);case 8:return u===C?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof u=="function")return u.displayName||u.name||null;if(typeof u=="string")return u}return null}function N(l){var u=l,p=l;if(l.alternate)for(;u.return;)u=u.return;else{l=u;do u=l,u.flags&4098&&(p=u.return),l=u.return;while(l)}return u.tag===3?p:null}function T(l){if(N(l)!==l)throw Error(a(188))}function D(l){var u=l.alternate;if(!u){if(u=N(l),u===null)throw Error(a(188));return u!==l?null:l}for(var p=l,_=u;;){var P=p.return;if(P===null)break;var L=P.alternate;if(L===null){if(_=P.return,_!==null){p=_;continue}break}if(P.child===L.child){for(L=P.child;L;){if(L===p)return T(P),l;if(L===_)return T(P),u;L=L.sibling}throw Error(a(188))}if(p.return!==_.return)p=P,_=L;else{for(var H=!1,oe=P.child;oe;){if(oe===p){H=!0,p=P,_=L;break}if(oe===_){H=!0,_=P,p=L;break}oe=oe.sibling}if(!H){for(oe=L.child;oe;){if(oe===p){H=!0,p=L,_=P;break}if(oe===_){H=!0,_=L,p=P;break}oe=oe.sibling}if(!H)throw Error(a(189))}}if(p.alternate!==_)throw Error(a(190))}if(p.tag!==3)throw Error(a(188));return p.stateNode.current===p?l:u}function z(l){return l=D(l),l!==null?B(l):null}function B(l){if(l.tag===5||l.tag===6)return l;for(l=l.child;l!==null;){var u=B(l);if(u!==null)return u;l=l.sibling}return null}function Y(l){if(l.tag===5||l.tag===6)return l;for(l=l.child;l!==null;){if(l.tag!==4){var u=Y(l);if(u!==null)return u}l=l.sibling}return null}var W=Array.isArray,q=e.getPublicInstance,ee=e.getRootHostContext,K=e.getChildHostContext,ue=e.prepareForCommit,ne=e.resetAfterCommit,ae=e.createInstance,J=e.appendInitialChild,Q=e.finalizeInitialChildren,te=e.prepareUpdate,we=e.shouldSetTextContent,U=e.createTextInstance,F=e.scheduleTimeout,$=e.cancelTimeout,ie=e.noTimeout,pe=e.isPrimaryRenderer,ce=e.supportsMutation,le=e.supportsPersistence,xe=e.supportsHydration,Ne=e.getInstanceFromNode,_e=e.preparePortalMount,He=e.getCurrentEventPriority,Ee=e.detachDeletedInstance,Ve=e.supportsMicrotasks,We=e.scheduleMicrotask,Me=e.supportsTestSelectors,gt=e.findFiberRoot,St=e.getBoundingRect,qe=e.getTextContent,je=e.isHiddenSubtree,Ke=e.matchAccessibilityRole,bt=e.setFocusIfFocusable,Lt=e.setupIntersectionObserver,tr=e.appendChild,Ii=e.appendChildToContainer,mt=e.commitTextUpdate,Pe=e.commitMount,at=e.commitUpdate,ct=e.insertBefore,Tt=e.insertInContainerBefore,It=e.removeChild,or=e.removeChildFromContainer,gr=e.resetTextContent,nn=e.hideInstance,pi=e.hideTextInstance,Qe=e.unhideInstance,Je=e.unhideTextInstance,jt=e.clearContainer,ut=e.cloneInstance,Dr=e.createContainerChildSet,jr=e.appendChildToContainerChildSet,Qi=e.finalizeContainerChildren,Ai=e.replaceContainerChildren,Va=e.cloneHiddenInstance,Sn=e.cloneHiddenTextInstance,rl=e.canHydrateInstance,nl=e.canHyLine truncated
|
||||
`+Pd+l}var bc=!1;function kd(l,u){if(!l||bc)return"";bc=!0;var p=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(u)if(u=function(){throw Error()},Object.defineProperty(u.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(u,[])}catch(Te){var _=Te}Reflect.construct(l,[],u)}else{try{u.call()}catch(Te){_=Te}l.call(u.prototype)}else{try{throw Error()}catch(Te){_=Te}l()}}catch(Te){if(Te&&_&&typeof Te.stack=="string"){for(var P=Te.stack.split(`
|
||||
`),L=_.stack.split(`
|
||||
`),H=P.length-1,oe=L.length-1;1<=H&&0<=oe&&P[H]!==L[oe];)oe--;for(;1<=H&&0<=oe;H--,oe--)if(P[H]!==L[oe]){if(H!==1||oe!==1)do if(H--,oe--,0>oe||P[H]!==L[oe]){var me=`
|
||||
`+P[H].replace(" at new "," at ");return l.displayName&&me.includes("<anonymous>")&&(me=me.replace("<anonymous>",l.displayName)),me}while(1<=H&&0<=oe);break}}}finally{bc=!1,Error.prepareStackTrace=p}return(l=l?l.displayName||l.name:"")?Oo(l):""}var K3=Object.prototype.hasOwnProperty,Td=[],ea=-1;function Po(l){return{current:l}}function Xt(l){0>ea||(l.current=Td[ea],Td[ea]=null,ea--)}function Vt(l,u){ea++,Td[ea]=l.current,l.current=u}var ko={},on=Po(ko),bn=Po(!1),ta=ko;function Wa(l,u){var p=l.type.contextTypes;if(!p)return ko;var _=l.stateNode;if(_&&_.__reactInternalMemoizedUnmaskedChildContext===u)return _.__reactInternalMemoizedMaskedChildContext;var P={},L;for(L in p)P[L]=u[L];return _&&(l=l.stateNode,l.__reactInternalMemoizedUnmaskedChildContext=u,l.__reactInternalMemoizedMaskedChildContext=P),P}function _n(l){return l=l.childContextTypes,l!=null}function _c(){Xt(bn),Xt(on)}function il(l,u,p){if(on.current!==ko)throw Error(a(168));Vt(on,u),Vt(bn,p)}function xc(l,u,p){var _=l.stateNode;if(u=u.childContextTypes,typeof _.getChildContext!="function")return p;_=_.getChildContext();for(var P in _)if(!(P in u))throw Error(a(108,k(l)||"Unknown",P));return o({},p,_)}function Ec(l){return l=(l=l.stateNode)&&l.__reactInternalMemoizedMergedChildContext||ko,ta=on.current,Vt(on,l),Vt(bn,bn.current),!0}function Vh(l,u,p){var _=l.stateNode;if(!_)throw Error(a(169));p?(l=xc(l,u,ta),_.__reactInternalMemoizedMergedChildContext=l,Xt(bn),Xt(on),Vt(on,l)):Xt(bn),Vt(bn,p)}var Yn=Math.clz32?Math.clz32:q3,Y3=Math.log,Z3=Math.LN2;function q3(l){return l>>>=0,l===0?32:31-(Y3(l)/Z3|0)|0}var ol=64,Oc=4194304;function al(l){switch(l&-l){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return l&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return l&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return l}}function Pc(l,u){var p=l.pendingLanes;if(p===0)return 0;var _=0,P=l.suspendedLanes,L=l.pingedLanes,H=p&268435455;if(H!==0){var oe=H&~P;oe!==0?_=al(oe):(L&=H,L!==0&&(_=al(L)))}else H=p&~P,H!==0?_=al(H):L!==0&&(_=al(L));if(_===0)return 0;if(u!==0&&u!==_&&!(u&P)&&(P=_&-_,L=u&-u,P>=L||P===16&&(L&4194240)!==0))return u;if(_&4&&(_|=p&16),u=l.entangledLanes,u!==0)for(l=l.entanglements,u&=_;0<u;)p=31-Yn(u),P=1<<p,_|=l[p],u&=~P;return _}function Id(l,u){switch(l){case 1:case 2:case 4:return u+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return u+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Q3(l,u){for(var p=l.suspendedLanes,_=l.pingedLanes,P=l.expirationTimes,L=l.pendingLanes;0<L;){var H=31-Yn(L),oe=1<<H,me=P[H];me===-1?(!(oe&p)||oe&_)&&(P[H]=Id(oe,u)):me<=u&&(l.expiredLanes|=oe),L&=~oe}}function Ad(l){return l=l.pendingLanes&-1073741825,l!==0?l:l&1073741824?1073741824:0}function Uh(){var l=ol;return ol<<=1,!(ol&4194240)&&(ol=64),l}function Xa(l){for(var u=[],p=0;31>p;p++)u.push(l);return u}function ra(l,u,p){l.pendingLanes|=u,u!==536870912&&(l.suspendedLanes=0,l.pingedLanes=0),l=l.eventTimes,u=31-Yn(u),l[u]=p}function Ld(l,u){var p=l.pendingLanes&~u;l.pendingLanes=u,l.suspendedLanes=0,l.pingedLanes=0,l.expiredLanes&=u,l.mutableReadLanes&=u,l.entangledLanes&=u,u=l.entanglements;var _=l.eventTimes;for(l=l.expirationTimes;0<p;){var P=31-Yn(p),L=1<<P;u[P]=0,_[P]=-1,l[P]=-1,p&=~L}}function sl(l,u){var p=l.entangledLanes|=u;for(l=l.entanglements;p;){var _=31-Yn(p),P=1<<_;P&u|l[_]&u&&(l[_]|=u),p&=~P}}var kt=0;function Md(l){return l&=-l,1<l?4<l?l&268435455?16:536870912:4:1}var ll=i.unstable_scheduleCallback,Rd=i.unstable_cancelCallback,na=i.unstable_shouldYield,cl=i.unstable_requestPaint,zr=i.unstable_now,kc=i.unstable_ImmediatePriority,J3=i.unstable_UserBlockingPriority,Tc=i.unstable_NormalPriority,e5=i.unstable_IdlePriority,Ic=null,gi=null;function t5(l){if(gi&&typeof gi.onCommitFiberRoot=="function")try{gi.onCommitFiberRoot(Ic,l,void 0,(l.current.flags&128)===128)}catch{}}function V(l,u){return l===u&&(l!==0||1/l===1/u)||l!==l&&u!==u}var re=typeof Object.is=="function"?Object.is:V,fe=null,ze=!1,vt=!1;function zt(l){fe===null?fe=[l]:fe.push(l)}function rr(l){ze=!0,zt(l)}function st(){if(!vt&&fe!==null){vt=!0;var l=0,u=kt;try{var p=fe;for(kt=1;l<p.length;l++){var _=p[l];do _=_(!0);while(_!==null)}fe=null,ze=!1}catch(P){throw fe!==null&&(fe=fe.slice(l+1)),ll(kc,st),P}finally{kt=u,vt=!1}}return null}var Nt=[],an=0,sn=null,To=0,xn=[],En=0,Io=null,ia=1,oa="";function ul(l,u){Nt[an++]=To,Nt[an++]=sn,sn=l,To=u}function $9(l,u,p
Line truncated
|
||||
Error generating stack: `+L.message+`
|
||||
`+L.stack}return{value:l,source:u,stack:P,digest:null}}function P5(l,u,p){return{value:l,source:null,stack:p??null,digest:u??null}}function k5(l,u){try{console.error(u.value)}catch(p){setTimeout(function(){throw p})}}var OL=typeof WeakMap=="function"?WeakMap:Map;function xy(l,u,p){p=aa(-1,p),p.tag=3,p.payload={element:null};var _=u.value;return p.callback=function(){C1||(C1=!0,K5=_),k5(l,u)},p}function Ey(l,u,p){p=aa(-1,p),p.tag=3;var _=l.type.getDerivedStateFromError;if(typeof _=="function"){var P=u.value;p.payload=function(){return _(P)},p.callback=function(){k5(l,u)}}var L=l.stateNode;return L!==null&&typeof L.componentDidCatch=="function"&&(p.callback=function(){k5(l,u),typeof _!="function"&&(Za===null?Za=new Set([this]):Za.add(this));var H=u.stack;this.componentDidCatch(u.value,{componentStack:H!==null?H:""})}),p}function Oy(l,u,p){var _=l.pingCache;if(_===null){_=l.pingCache=new OL;var P=new Set;_.set(u,P)}else P=_.get(u),P===void 0&&(P=new Set,_.set(u,P));P.has(p)||(P.add(p),l=$L.bind(null,l,u,p),u.then(l,l))}function Py(l){do{var u;if((u=l.tag===13)&&(u=l.memoizedState,u=u!==null?u.dehydrated!==null:!0),u)return l;l=l.return}while(l!==null);return null}function ky(l,u,p,_,P){return l.mode&1?(l.flags|=65536,l.lanes=P,l):(l===u?l.flags|=65536:(l.flags|=128,p.flags|=131072,p.flags&=-52805,p.tag===1&&(p.alternate===null?p.tag=17:(u=aa(-1,1),u.tag=2,Ya(p,u,1))),p.lanes|=1),l)}var PL=s.ReactCurrentOwner,Zn=!1;function $n(l,u,p,_){u.child=l===null?X9(u,null,p,_):Lc(u,l.child,p,_)}function Ty(l,u,p,_,P){p=p.render;var L=u.ref;return Rc(u,P),_=C5(l,u,p,_,L,P),p=w5(),l!==null&&!Zn?(u.updateQueue=l.updateQueue,u.flags&=-2053,l.lanes&=~P,sa(l,u,P)):(ur&&p&&r5(u),u.flags|=1,$n(l,u,_,P),u.child)}function Iy(l,u,p,_,P){if(l===null){var L=p.type;return typeof L=="function"&&!e4(L)&&L.defaultProps===void 0&&p.compare===null&&p.defaultProps===void 0?(u.tag=15,u.type=L,Ay(l,u,L,_,P)):(l=E1(p.type,null,_,u,u.mode,P),l.ref=u.ref,l.return=u,u.child=l)}if(L=l.child,!(l.lanes&P)){var H=L.memoizedProps;if(p=p.compare,p=p!==null?p:Xh,p(H,_)&&l.ref===u.ref)return sa(l,u,P)}return u.flags|=1,l=es(L,_),l.ref=u.ref,l.return=u,u.child=l}function Ay(l,u,p,_,P){if(l!==null){var L=l.memoizedProps;if(Xh(L,_)&&l.ref===u.ref)if(Zn=!1,u.pendingProps=_=L,(l.lanes&P)!==0)l.flags&131072&&(Zn=!0);else return u.lanes=l.lanes,sa(l,u,P)}return T5(l,u,p,_,P)}function Ly(l,u,p){var _=u.pendingProps,P=_.children,L=l!==null?l.memoizedState:null;if(_.mode==="hidden")if(!(u.mode&1))u.memoizedState={baseLanes:0,cachePool:null,transitions:null},Vt(zc,vi),vi|=p;else{if(!(p&1073741824))return l=L!==null?L.baseLanes|p:p,u.lanes=u.childLanes=1073741824,u.memoizedState={baseLanes:l,cachePool:null,transitions:null},u.updateQueue=null,Vt(zc,vi),vi|=l,null;u.memoizedState={baseLanes:0,cachePool:null,transitions:null},_=L!==null?L.baseLanes:p,Vt(zc,vi),vi|=_}else L!==null?(_=L.baseLanes|p,u.memoizedState=null):_=p,Vt(zc,vi),vi|=_;return $n(l,u,P,p),u.child}function My(l,u){var p=u.ref;(l===null&&p!==null||l!==null&&l.ref!==p)&&(u.flags|=512,u.flags|=2097152)}function T5(l,u,p,_,P){var L=_n(p)?ta:on.current;return L=Wa(u,L),Rc(u,P),p=C5(l,u,p,_,L,P),_=w5(),l!==null&&!Zn?(u.updateQueue=l.updateQueue,u.flags&=-2053,l.lanes&=~P,sa(l,u,P)):(ur&&_&&r5(u),u.flags|=1,$n(l,u,p,P),u.child)}function Ry(l,u,p,_,P){if(_n(p)){var L=!0;Ec(u)}else L=!1;if(Rc(u,P),u.stateNode===null)s1(l,u),by(u,p,_),O5(u,p,_,P),_=!0;else if(l===null){var H=u.stateNode,oe=u.memoizedProps;H.props=oe;var me=H.context,Te=p.contextType;typeof Te=="object"&&Te!==null?Te=Mi(Te):(Te=_n(p)?ta:on.current,Te=Wa(u,Te));var $e=p.getDerivedStateFromProps,tt=typeof $e=="function"||typeof H.getSnapshotBeforeUpdate=="function";tt||typeof H.UNSAFE_componentWillReceiveProps!="function"&&typeof H.componentWillReceiveProps!="function"||(oe!==_||me!==Te)&&_y(u,H,_,Te),Ka=!1;var Le=u.memoizedState;H.state=Le,Qh(u,_,H,P),me=u.memoizedState,oe!==_||Le!==me||bn.current||Ka?(typeof $e=="function"&&(E5(u,p,$e,_),me=u.memoizedState),(oe=Ka||Sy(u,p,oe,_,Le,me,Te))?(tt||typeof H.UNSAFE_componentWillMount!="function"&&typeof H.componentWillMount!="function"||(typeof H.componentWillMount=="function"&&H.componentWillMount(),typeof H.UNSAFE_componentWillMount=="function"&&H.UNSAFE_componentWillMount()),typeof H.componentDidMount=="function"&&(u.flags|=4194308)):(typeof H.componentDidMount=="function"&&(u.flags|=4194308),u.memoizedProps=_,u.memoizedState=me),H.props=_,H.state=me,H.context=Te,_=oe):(typeof H.componentDidMount=="function"&&(u.flags|=4194308),_=!1)}else{H=u.stateNode,Z9(l,u),oe=u.memoizedProps,Te=u.type===u.elementType?oe:eo(u.type,oe),H.props=Te,tt=u.pendingProps,Le=H.context,me=p.contextType,typeof me=="object"&&me!==null?me=Mi(me):(me=_n(p)?ta:on.current,me=Wa(u,me));var ar=p.getDerivedStateFromProps;($e=typeof ar=="function"||typeof H.getSnapshotBeforeUpdate=="function")||typeof H.UNSAFE_componentWillReceiveProps!="function"&&typeof H.componentWillReceiveProps!="function"||(oe!==tt||Le!==me)&&_y(u,H,_,me),Ka=
Line truncated
|
||||
`+(_.join(" > ")+`
|
||||
|
||||
No matching component was found for:
|
||||
`)+l.join(" > ")}return null},r.getPublicRootInstance=function(l){if(l=l.current,!l.child)return null;switch(l.child.tag){case 5:return q(l.child.stateNode);default:return l.child.stateNode}},r.injectIntoDevTools=function(l){if(l={bundleType:l.bundleType,version:l.version,rendererPackageName:l.rendererPackageName,rendererConfig:l.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:s.ReactCurrentDispatcher,findHostInstanceByFiber:WL,findFiberByHostInstance:l.findFiberByHostInstance||XL,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1"},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")l=!1;else{var u=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(u.isDisabled||!u.supportsFiber)l=!0;else{try{Ic=u.inject(l),gi=u}catch{}l=!!u.checkDCE}}return l},r.isAlreadyRendering=function(){return!1},r.observeVisibleRects=function(l,u,p,_){if(!Me)throw Error(a(363));l=G5(l,u);var P=Lt(l,p,_).disconnect;return{disconnect:function(){P()}}},r.registerMutableSourceForHydration=function(l,u){var p=u._getVersion;p=p(u._source),l.mutableSourceEagerHydrationData==null?l.mutableSourceEagerHydrationData=[u,p]:l.mutableSourceEagerHydrationData.push(u,p)},r.runWithPriority=function(l,u){var p=kt;try{return kt=l,u()}finally{kt=p}},r.shouldError=function(){return null},r.shouldSuspend=function(){return!1},r.updateContainer=function(l,u,p,_){var P=u.current,L=Tn(),H=Qa(P);return p=dC(p),u.context===null?u.context=p:u.pendingContext=p,u=aa(L,H),u.payload={element:l},_=_===void 0?null:_,_!==null&&(u.callback=_),l=Ya(P,u,H),l!==null&&(Fi(l,P,H,L),qh(l,P,H)),H},r};Yk.exports=U$;var W$=Yk.exports;const X$=ql(W$);var Zk={exports:{}},lc={};/**
|
||||
* @license React
|
||||
* react-reconciler-constants.production.min.js
|
||||
*
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/lc.ConcurrentRoot=1;lc.ContinuousEventPriority=4;lc.DefaultEventPriority=16;lc.DiscreteEventPriority=1;lc.IdleEventPriority=536870912;lc.LegacyRoot=0;Zk.exports=lc;var qk=Zk.exports;const bS={children:!0,ref:!0,key:!0,style:!0,forwardedRef:!0,unstable_applyCache:!0,unstable_applyDrawHitFromCache:!0};let _S=!1,xS=!1;const F8=".react-konva-event";let Qk=!1;function K$(t){Qk=t}const Y$=`ReactKonva: You have a Konva node with draggable = true and position defined but no onDragMove or onDragEnd events are handled.
|
||||
Position of a node will be changed during drag&drop, so you should update state of the react app as well.
|
||||
Consider to add onDragMove or onDragEnd events.
|
||||
For more info see: https://github.com/konvajs/react-konva/issues/256
|
||||
`,Z$=`ReactKonva: You are using "zIndex" attribute for a Konva node.
|
||||
react-konva may get confused with ordering. Just define correct order of elements in your render function of a component.
|
||||
For more info see: https://github.com/konvajs/react-konva/issues/194
|
||||
`,q$={};function Sg(t,e,r=q$){if(!_S&&"zIndex"in e&&(console.warn(Z$),_S=!0),!xS&&e.draggable){var n=e.x!==void 0||e.y!==void 0,i=e.onDragEnd||e.onDragMove;n&&!i&&(console.warn(Y$),xS=!0)}for(var o in r)if(!bS[o]){var a=o.slice(0,2)==="on",s=r[o]!==e[o];if(a&&s){var c=o.substr(2).toLowerCase();c.substr(0,7)==="content"&&(c="content"+c.substr(7,1).toUpperCase()+c.substr(8)),t.off(c,r[o])}var d=!e.hasOwnProperty(o);d&&t.setAttr(o,void 0)}var h=Qk||e._useStrictMode,C={},v=!1;const g={};for(var o in e)if(!bS[o]){var a=o.slice(0,2)==="on",m=r[o]!==e[o];if(a&&m){var c=o.substr(2).toLowerCase();c.substr(0,7)==="content"&&(c="content"+c.substr(7,1).toUpperCase()+c.substr(8)),e[o]&&(g[c]=e[o])}!a&&(e[o]!==r[o]||h&&e[o]!==t.getAttr(o))&&(v=!0,C[o]=e[o])}v&&(t.setAttrs(C),Gs(t));for(var c in g)t.on(c+F8,g[c])}function Gs(t){if(!ft.Konva.autoDrawEnabled){var e=t.getLayer()||t.getStage();e&&e.batchDraw()}}const Jk={},Q$={};ch.Node.prototype._applyProps=Sg;function J$(t,e){if(typeof e=="string"){console.error(`Do not use plain text as child of Konva.Node. You are using text: ${e}`);return}t.add(e),Gs(t)}function eB(t,e,r){let n=ch[t];n||(console.error(`Konva has no node with the type ${t}. Group will be used instead. If you use minimal version of react-konva, just import required nodes into Konva: "import "konva/lib/shapes/${t}" If you want to render DOM elements as part of canvas tree take a look into this demo: https://konvajs.github.io/docs/react/DOM_Portal.html`),n=ch.Group);const i={},o={};for(var a in e){var s=a.slice(0,2)==="on";s?o[a]=e[a]:i[a]=e[a]}const c=new n(i);return Sg(c,o),c}function tB(t,e,r){console.error(`Text components are not supported for now in ReactKonva. Your text is: "${t}"`)}function rB(t,e,r){return!1}function nB(t){return t}function iB(){return null}function oB(){return null}function aB(t,e,r,n){return Q$}function sB(){}function lB(t){}function cB(t,e){return!1}function uB(){return Jk}function dB(){return Jk}const hB=setTimeout,fB=clearTimeout,pB=-1;function gB(t,e){return!1}const mB=!1,vB=!0,yB=!0;function CB(t,e){e.parent===t?e.moveToTop():t.add(e),Gs(t)}function wB(t,e){e.parent===t?e.moveToTop():t.add(e),Gs(t)}function eT(t,e,r){e._remove(),t.add(e),e.setZIndex(r.getZIndex()),Gs(t)}function SB(t,e,r){eT(t,e,r)}function bB(t,e){e.destroy(),e.off(F8),Gs(t)}function _B(t,e){e.destroy(),e.off(F8),Gs(t)}function xB(t,e,r){console.error(`Text components are not yet supported in ReactKonva. You text is: "${r}"`)}function EB(t,e,r){}function OB(t,e,r,n,i){Sg(t,i,n)}function PB(t){t.hide(),Gs(t)}function kB(t){}function TB(t,e){(e.visible==null||e.visible)&&t.show()}function IB(t,e){}function AB(t){}function LB(){}const MB=()=>qk.DefaultEventPriority,RB=Object.freeze(Object.defineProperty({__proto__:null,appendChild:CB,appendChildToContainer:wB,appendInitialChild:J$,cancelTimeout:fB,clearContainer:AB,commitMount:EB,commitTextUpdate:xB,commitUpdate:OB,createInstance:eB,createTextInstance:tB,detachDeletedInstance:LB,finalizeInitialChildren:rB,getChildHostContext:dB,getCurrentEventPriority:MB,getPublicInstance:nB,getRootHostContext:uB,hideInstance:PB,hideTextInstance:kB,idlePriority:T0.unstable_IdlePriority,insertBefore:eT,insertInContainerBefore:SB,isPrimaryRenderer:mB,noTimeout:pB,now:T0.unstable_now,prepareForCommit:iB,preparePortalMount:oB,prepareUpdate:aB,removeChild:bB,removeChildFromContainer:_B,resetAfterCommit:sB,resetTextContent:lB,run:T0.unstable_runWithPriority,scheduleTimeout:hB,shouldDeprioritizeSubtree:cB,shouldSetTextContent:gB,supportsMutation:yB,unhideInstance:TB,unhideTextInstance:IB,warnsIfNotActing:vB},Symbol.toStringTag,{value:"Module"}));var NB=Object.defineProperty,FB=Object.defineProperties,DB=Object.getOwnPropertyDescriptors,ES=Object.getOwnPropertySymbols,jB=Object.prototype.hasOwnProperty,zB=Object.prototype.propertyIsEnumerable,OS=(t,e,r)=>e in t?NB(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,PS=(t,e)=>{for(var r in e||(e={}))jB.call(e,r)&&OS(t,r,e[r]);if(ES)for(var r of ES(e))zB.call(e,r)&&OS(t,r,e[r]);return t},$B=(t,e)=>FB(t,DB(e)),kS,TS;typeof window<"u"&&((kS=window.document)!=null&&kS.createElement||((TS=window.navigator)==null?void 0:TS.product)==="ReactNative")?G.useLayoutEffect:G.useEffect;function tT(t,e,r){if(!t)return;if(r(t)===!0)return t;let n=t.child;for(;n;){const i=tT(n,e,r);if(i)return i;n=n.sibling}}function rT(t){try{return Object.defineProperties(t,{_currentRenderer:{get(){return null},set(){}},_currentRenderer2:{get(){return null},set(){}}})}catch{return t}}const IS=console.error;console.error=function(){const t=[...arguments].join("");if(t!=null&&t.startsWith("Warning:")&&t.includes("useContext")){console.error=IS;return}return IS.apply(this,arguments)};const D8=rT(G.createContext(null));class nT extends G.Component{render(){return G.createElement(D8.Provider,{value:this._reactInternals},this.props.children)}}function BB(){const t=G.useContext(D8);if(t===null)throw new Error("its-fine: useFiber must be called within a <FiberPrLine truncated
|
||||
`),r=+this.fontSize(),n=0,i=this.lineHeight()*r,o=this.attrs.width,a=this.attrs.height,s=o!==Yc&&o!==void 0,c=a!==Yc&&a!==void 0,d=this.padding(),h=o-d*2,C=a-d*2,v=0,g=this.wrap(),m=g!==tb,w=g!==ZG&&m,x=this.ellipsis();this.textArr=[],em().font=this._getContextFont();for(var b=x?this._getTextWidth(J4):0,O=0,f=e.length;O<f;++O){var S=e[O],E=this._getTextWidth(S);if(s&&E>h)for(;S.length>0;){for(var I=0,R=S.length,k="",N=0;I<R;){var T=I+R>>>1,D=S.slice(0,T+1),z=this._getTextWidth(D)+b;z<=h?(I=T+1,k=D,N=z):R=T}if(k){if(w){var B,Y=S[k.length],W=Y===rf||Y===QS;W&&N<=h?B=k.length:B=Math.max(k.lastIndexOf(rf),k.lastIndexOf(QS))+1,B>0&&(I=B,k=k.slice(0,I),N=this._getTextWidth(k))}k=k.trimRight(),this._addTextLine(k),n=Math.max(n,N),v+=i;var q=this._shouldHandleEllipsis(v);if(q){this._tryToAddEllipsisToLastLine();break}if(S=S.slice(I),S=S.trimLeft(),S.length>0&&(E=this._getTextWidth(S),E<=h)){this._addTextLine(S),v+=i,n=Math.max(n,E);break}}else break}else this._addTextLine(S),v+=i,n=Math.max(n,E),this._shouldHandleEllipsis(v)&&O<f-1&&this._tryToAddEllipsisToLastLine();if(this.textArr[this.textArr.length-1]&&(this.textArr[this.textArr.length-1].lastInParagraph=!0),c&&v+i>C)break}this.textHeight=r,this.textWidth=n}_shouldHandleEllipsis(e){var r=+this.fontSize(),n=this.lineHeight()*r,i=this.attrs.height,o=i!==Yc&&i!==void 0,a=this.padding(),s=i-a*2,c=this.wrap(),d=c!==tb;return!d||o&&e+n>s}_tryToAddEllipsisToLastLine(){var e=this.attrs.width,r=e!==Yc&&e!==void 0,n=this.padding(),i=e-n*2,o=this.ellipsis(),a=this.textArr[this.textArr.length-1];if(!(!a||!o)){if(r){var s=this._getTextWidth(a.text+J4)<i;s||(a.text=a.text.slice(0,a.text.length-3))}this.textArr.splice(this.textArr.length-1,1),this._addTextLine(a.text+J4)}}getStrokeScaleEnabled(){return!0}_useBufferCanvas(){const e=this.textDecoration().indexOf("underline")!==-1||this.textDecoration().indexOf("line-through")!==-1,r=this.hasShadow();return e&&r?!0:super._useBufferCanvas()}};Kl.Text=Lr;Lr.prototype._fillFunc=JG;Lr.prototype._strokeFunc=eV;Lr.prototype.className=VG;Lr.prototype._attrsAffectingSize=["text","fontSize","padding","wrap","lineHeight","letterSpacing"];(0,zG._registerNode)(Lr);zn.Factory.overWriteSetter(Lr,"width",(0,Xs.getNumberOrAutoValidator)());zn.Factory.overWriteSetter(Lr,"height",(0,Xs.getNumberOrAutoValidator)());zn.Factory.addGetterSetter(Lr,"direction",zT);zn.Factory.addGetterSetter(Lr,"fontFamily","Arial");zn.Factory.addGetterSetter(Lr,"fontSize",12,(0,Xs.getNumberValidator)());zn.Factory.addGetterSetter(Lr,"fontStyle",BT);zn.Factory.addGetterSetter(Lr,"fontVariant",BT);zn.Factory.addGetterSetter(Lr,"padding",0,(0,Xs.getNumberValidator)());zn.Factory.addGetterSetter(Lr,"align",$T);zn.Factory.addGetterSetter(Lr,"verticalAlign",UG);zn.Factory.addGetterSetter(Lr,"lineHeight",1,(0,Xs.getNumberValidator)());zn.Factory.addGetterSetter(Lr,"wrap",YG);zn.Factory.addGetterSetter(Lr,"ellipsis",!1,(0,Xs.getBooleanValidator)());zn.Factory.addGetterSetter(Lr,"letterSpacing",0,(0,Xs.getNumberValidator)());zn.Factory.addGetterSetter(Lr,"text","",(0,Xs.getStringValidator)());zn.Factory.addGetterSetter(Lr,"textDecoration","");var Ug={};Object.defineProperty(Ug,"__esModule",{value:!0});Ug.TextPath=void 0;const tm=Pr,bo=ot,rV=tn,d0=Cd,rm=Kl,GT=Be,nV=Ct;var iV="",VT="normal";function UT(t){t.fillText(this.partialText,0,0)}function WT(t){t.strokeText(this.partialText,0,0)}class rn extends rV.Shape{constructor(e){super(e),this.dummyCanvas=tm.Util.createCanvasElement(),this.dataArray=[],this._readDataAttribute(),this.on("dataChange.konva",function(){this._readDataAttribute(),this._setTextData()}),this.on("textChange.konva alignChange.konva letterSpacingChange.konva kerningFuncChange.konva fontSizeChange.konva fontFamilyChange.konva",this._setTextData),this._setTextData()}_getTextPathLength(){return d0.Path.getPathLength(this.dataArray)}_getPointAtLength(e){if(!this.attrs.data)return null;const r=this.pathLength;return e-1>r?null:d0.Path.getPointAtLengthOfDataArray(e,this.dataArray)}_readDataAttribute(){this.dataArray=d0.Path.parsePathData(this.attrs.data),this.pathLength=this._getTextPathLength()}_sceneFunc(e){e.setAttr("font",this._getContextFont()),e.setAttr("textBaseline",this.textBaseline()),e.setAttr("textAlign","left"),e.save();var r=this.textDecoration(),n=this.fill(),i=this.fontSize(),o=this.glyphInfo;r==="underline"&&e.beginPath();for(var a=0;a<o.length;a++){e.save();var s=o[a].p0;e.translate(s.x,s.y),e.rotate(o[a].rotation),this.partialText=o[a].text,e.fillStrokeShape(this),r==="underline"&&(a===0&&e.moveTo(0,i/2+1),e.lineTo(i,i/2+1)),e.restore()}r==="underline"&&(e.strokeStyle=n,e.lineWidth=i/20,e.stroke()),e.restore()}_hitFunc(e){e.beginPath();var r=this.glyphInfo;if(r.length>=1){var n=r[0].p0;e.moveTo(n.x,n.y)}for(var i=0;i<r.length;i++){var o=r[i].p1;e.lineTo(o.x,o.y)}e.setAttr("lineWidth",this.fontSize()),e.setAttr("strokeStyle",this.colorKey),e.stroke()}getTextWidth(){return this.textWidth}getTextHeight(){return tm.Util.warn("text.getTextHeight() me
Line truncated
|
||||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,a=!1;return{s:function(){r=r.call(t)},n:function(){var c=r.next();return o=c.done,c},e:function(c){a=!0},f:function s(){try{o||r.return==null||r.return()}finally{if(a)throw s}}}}function nW(t,e){if(t){if(typeof t=="string")return yb(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set"?Array.from(t):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?yb(t,e):void 0}}function yb(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}var Ce={apply:function(e){for(var r=e.data,n=r.length,i=arguments.length,o=Array(1<i?i-1:0),a=1;a<i;a++)o[a-1]=arguments[a];for(var s=0;s<n;s+=4){var c,d=rW(o);try{for(d.s();!(c=d.n()).done;){var h=c.value,C=h([r[s],r[s+1],r[s+2]]),v=Ie(C,3);r[s]=v[0],r[s+1]=v[1],r[s+2]=v[2]}}catch(g){d.e(g)}finally{d.f()}}},brightness:function(e){return function(r){var n=e;return n=1<n?1:n,n=-1>n?-1:n,n=~~(255*n),[r[0]+n,r[1]+n,r[2]+n]}},contrast:function(e){return function(r){var n=e;n*=255;var i=259*(n+255)/(255*(259-n));return[i*(r[0]-128)+128,i*(r[1]-128)+128,i*(r[2]-128)+128]}},saturation:function(e){return function(r){var n=e;n=-1>n?-1:n;var i=r[0],o=r[1],a=r[2],s=.2989*i+.587*o+.114*a;return[-s*n+i*(1+n),-s*n+o*(1+n),-s*n+a*(1+n)]}},grayscale:function(){return function(e){var r=e[0],n=e[1],i=e[2];return[,,,].fill(.2126*r+.7152*n+.0722*i)}},sepia:function(e){return function(r){var n=r[0],i=r[1],o=r[2];return[n*(1-.607*e)+.769*i*e+.189*o*e,.349*n*e+i*(1-.314*e)+.168*o*e,.272*n*e+.534*i*e+o*(1-.869*e)]}},adjustRGB:function(e){return function(r){return[r[0]*e[0],r[1]*e[1],r[2]*e[2]]}},colorFilter:function(e){return function(r){var n=r[0],i=r[1],o=r[2],a=e[3];return[n-(n-e[0])*a,i-(i-e[1])*a,o-(o-e[2])*a]}}};function n7(t){Ce.apply(t,function(e){var r=(e[0]+e[1]+e[2])/3>100,n=r?255:0;return[n,n,n]})}n7.filterName="BlackAndWhite";var iW=.1,oW=.1,aW=.15;function i7(t){Ce.apply(t,Ce.brightness(iW),Ce.contrast(oW),Ce.saturation(aW))}i7.filterName="Clarendon";var sW=.04,lW=-.15;function o7(t){Ce.apply(t,Ce.sepia(sW),Ce.contrast(lW))}o7.filterName="Gingham";var cW=.1;function a7(t){Ce.apply(t,Ce.grayscale(),Ce.brightness(cW));var e=t.data;e.length}a7.filterName="Moon";var uW=.08,dW=[1,1.03,1.05],hW=.12;function s7(t){Ce.apply(t,Ce.brightness(uW),Ce.adjustRGB(dW),Ce.saturation(hW))}s7.filterName="Lark";var fW=.4,pW=.13,gW=-.05;function l7(t){Ce.apply(t,Ce.sepia(fW),Ce.brightness(pW),Ce.contrast(gW))}l7.filterName="Reyes";var mW=[1.01,1.04,1],vW=.3;function c7(t){Ce.apply(t,Ce.adjustRGB(mW),Ce.saturation(vW))}c7.filterName="Juno";var yW=.1,CW=-.5;function u7(t){Ce.apply(t,Ce.brightness(yW),Ce.saturation(CW))}u7.filterName="Slumber";var wW=[1.04,1,1.02],SW=-.05;function d7(t){Ce.apply(t,Ce.adjustRGB(wW),Ce.saturation(SW))}d7.filterName="Crema";var bW=.05,_W=-.03;function h7(t){Ce.apply(t,Ce.brightness(bW),Ce.saturation(_W))}h7.filterName="Ludwig";var xW=[228,130,225,.13],EW=-.2;function f7(t){Ce.apply(t,Ce.colorFilter(xW),Ce.saturation(EW))}f7.filterName="Aden";var OW=[1.05,1.1,1];function p7(t){Ce.apply(t,Ce.adjustRGB(OW))}p7.filterName="Perpetua";var PW=.3,kW=.15;function g7(t){Ce.apply(t,Ce.saturation(PW),Ce.brightness(kW))}g7.filterName="Amaro";var TW=[230,115,108,.05],IW=.15;function m7(t){Ce.apply(t,Ce.colorFilter(TW),Ce.saturation(IW))}m7.filterName="Mayfair";var AW=[255,170,0,.1],LW=.09,MW=.1;function v7(t){Ce.apply(t,Ce.colorFilter(AW),Ce.brightness(LW),Ce.saturation(MW))}v7.filterName="Rise";var RW=[1,1,1.25],NW=.1,FW=.15;function y7(t){Ce.apply(t,Ce.adjustRGB(RW),Ce.contrast(NW),Ce.brightness(FW))}y7.filterName="Hudson";var DW=[255,225,80,.08],jW=.1,zW=.05;function C7(t){Ce.apply(t,Ce.colorFilter(DW),Ce.saturation(jW),Ce.contrast(zW))}C7.filterName="Valencia";var $W=[255,255,0,.07],BW=.2,HW=.15;function w7(t){Ce.apply(t,Ce.colorFilter($W),Ce.saturation(BW),Ce.contrast(HW))}w7.filterName="XPro2";var GW=-.15,VW=.1;function S7(t){Ce.apply(t,Ce.contrast(GW),Ce.saturation(VW))}S7.filterName="Sierra";var UW=[100,28,210,.03],WW=.1;function b7(t){Ce.apply(t,Ce.grayscale(),Ce.colorFilter(UW),Ce.brightness(WW))}b7.filterName="Willow";var XW=.15,KW=.2;function _7(t){Ce.apply(t,Ce.contrast(XW),Ce.saturation(KW))}_7.filterName="LoFi";var YW=.1,ZW=.15;function x7(t){Ce.apply(t,Ce.contrast(YW),Ce.saturation(ZW))}x7.filterName="Hefe";var qW=[220,115,188,.12],QW=-.05;function E7(t){Ce.apply(t,Ce.colorFilter(qW),Ce.contrast(QW))}E7.filterName="Nashville";var JW=.1,eX=.3;function O7(t){Ce.apply(t,Ce.brightness(JW),Ce.sepia(eX))}O7.filterName="Stinson";var tX=[255,225,0,.05],rX=.06,nX=.06;function P7(t){Ce.apply(t,Ce.colorFilter(tX),Ce.brightness(rX),Ce.contrast(nX))}P7.filterName="Vesper";var iX=[255,165,40,.2];function k7(t){Ce.apply(t,Ce.colorFilter(iX))}k7.filterName="Earlybird";var oX=.2,aX=[140,10,185,.1];function T7(t){Ce.apply(t,Ce.contrast(oX),Ce.colorFilter(aX))}T7.filterName
Line truncated
|
||||
`),n="",i=0;i<r.length;i++)e=r.charCodeAt(i),128>e?n+=String.fromCharCode(e):127<e&&2048>e?(n+=String.fromCharCode(192|e>>6),n+=String.fromCharCode(128|63&e)):(n+=String.fromCharCode(224|e>>12),n+=String.fromCharCode(128|63&e>>6),n+=String.fromCharCode(128|63&e));return n},hK=function(t){var e,r,n,i,o,a,s,c,d,h=t,C=Array(80),v=1732584193,g=4023233417,m=2562383102,w=271733878,x=3285377520;h=dK(h);var b=h.length,O=[];for(r=0;r<b-3;r+=4)n=h.charCodeAt(r)<<24|h.charCodeAt(r+1)<<16|h.charCodeAt(r+2)<<8|h.charCodeAt(r+3),O.push(n);switch(b%4){case 0:r=2147483648;break;case 1:r=8388608|h.charCodeAt(b-1)<<24;break;case 2:r=32768|(h.charCodeAt(b-2)<<24|h.charCodeAt(b-1)<<16);break;case 3:r=128|(h.charCodeAt(b-3)<<24|h.charCodeAt(b-2)<<16|h.charCodeAt(b-1)<<8);break}for(O.push(r);O.length%16!=14;)O.push(0);for(O.push(b>>>29),O.push(4294967295&b<<3),e=0;e<O.length;e+=16){for(r=0;16>r;r++)C[r]=O[e+r];for(r=16;79>=r;r++)C[r]=ha(C[r-3]^C[r-8]^C[r-14]^C[r-16],1);for(i=v,o=g,a=m,s=w,c=x,r=0;19>=r;r++)d=4294967295&ha(i,5)+(o&a|~o&s)+c+C[r]+1518500249,c=s,s=a,a=ha(o,30),o=i,i=d;for(r=20;39>=r;r++)d=4294967295&ha(i,5)+(o^a^s)+c+C[r]+1859775393,c=s,s=a,a=ha(o,30),o=i,i=d;for(r=40;59>=r;r++)d=4294967295&ha(i,5)+(o&a|o&s|a&s)+c+C[r]+2400959708,c=s,s=a,a=ha(o,30),o=i,i=d;for(r=60;79>=r;r++)d=4294967295&ha(i,5)+(o^a^s)+c+C[r]+3395469782,c=s,s=a,a=ha(o,30),o=i,i=d;v=4294967295&v+i,g=4294967295&g+o,m=4294967295&m+a,w=4294967295&w+s,x=4294967295&x+c}return d=m0(v)+m0(g)+m0(m)+m0(w)+m0(x),d.toLowerCase()},fK=function(t){return btoa(t).replace(/=*$/g,"")},pK=function(t,e){return hK(t).slice(0,e)},gK=function(t,e,r,n){var i=fK(t),o=pK(e+i+r,n);return[o?"ci_seal=".concat(o):"",i?"ci_eqs=".concat(i):""].filter(function(a){return a}).join("&")},mK=function(t,e,r){var n=e||{},i=n.salt,o=n.charCount,a=n.includeParams,s=a===void 0?[]:a,c=!s||(s==null?void 0:s.length)===0,d="",h="",C=[],v=[];return t.split("&").forEach(function(g){var m=g.split("="),w=Ie(m,1),x=w[0];-1<(s==null?void 0:s.indexOf(x))||c?C.push(g):v.push(g)}),0<v.length&&(h=v.join("&")),d=gK(C.join("&"),r,i,o),[d,h].filter(function(g){return g}).join("&")},vK=function(){var t,e=0<arguments.length&&arguments[0]!==void 0?arguments[0]:"",r={hex:"000000",opacity:1};if(!e)return r;if(e.startsWith("#"))return{hex:e.replace("#",""),opacity:1};var n=e.split(","),i=Ie(n,4),o=i[0],a=i[1],s=i[2],c=i[3];return o&&a&&s?(o=parseFloat(o.replace(/rgba?\(/,"").trim()).toString(16),a=parseFloat(a.trim()).toString(16),s=parseFloat(s.trim()).toString(16),c=c?parseFloat((t=c.trim())!==null&&t!==void 0?t:1):void 0,o.length===1&&(o="0".concat(o)),a.length===1&&(a="0".concat(a)),s.length===1&&(s="0".concat(s)),{hex:"".concat(o).concat(a).concat(s),opacity:c}):r},_r=function(t){var e=1<arguments.length&&arguments[1]!==void 0?arguments[1]:5;return t&&+parseFloat(t).toFixed(e)},yK=["width","height","x","y","opacity","scaleX","scaleY"];function Hb(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function Gb(t){for(var e,r=1;r<arguments.length;r++)e=arguments[r]==null?{}:arguments[r],r%2?Hb(Object(e),!0).forEach(function(n){A(t,n,e[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):Hb(Object(e)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))});return t}var CK=function(t,e,r,n){if(t.noEffect)return t.ratio.includes("=")?t.ratio:"gravity=".concat(t.ratio);var i=(n||{}).lockCropAreaAt,o=j2(t,e,r),a=o.x,s=o.y,c=o.width,d=o.height,h=t.ratio===cc?"&radius=".concat(Math.max(c,d),"&force_format=png"):"";if(i){var C=i.split("-"),v=Ie(C,2),g=v[0],m=v[1],w="".concat(MS[g]).concat(MS[m]);return"gravity=".concat(w,"&aspect_ratio=").concat(_r(typeof t.ratio=="string"?c/d:t.ratio,2)).concat(h)}return"tl_px=".concat(a,",").concat(s,"&br_px=").concat(a+c,",").concat(s+d).concat(h)},wK=function(){var t=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{},e=t.width,r=t.height;return"w=".concat(e,"&h=").concat(r)},SK=function(t){return"r=".concat(-t)},bK=function(t,e){return"flip=".concat(t?"x":"").concat(e?"y":"")},_K=function(t){var e,r=1<arguments.length&&arguments[1]!==void 0?arguments[1]:{},n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:{},i=r.width,o=r.height,a=r.x,s=r.y,c=r.opacity,d=r.scaleX,h=d===void 0?1:d,C=r.scaleY,v=C===void 0?1:C,g=ve(r,yK),m=t.width/t.height,w=t.width*t.scaledBy,x=t.height*t.scaledBy,b=a*t.scaledBy,O=s*t.scaledBy,f="wat=1&wat_gravity=absolute&wat_pos=".concat(Math.floor(100*((b-(n.x||0))/w),2),"p,").concat(Math.floor(100*((O-(n.y||0))/x),2),"p");if(r.name===de.TEXT){var S,E=vK(g.fill),I=E.hex,R=E.opacity;return"".concat(f,"&wat_text=").concat(g.text.replaceAll(`
|
||||
`,""),"&wat_font=").concat(g.fontFamily,"&wat_color=").concat(I,"&wat_opacity=").concat((S=R??c)!==null&&S!==void 0?S:1,"&wat_fontsize=").concat(g.fontSize,"max")}var k=((e=g.image)===null||e===void 0?void 0:e.src)||g.image,N=!k.startsWith("blob:")&&k,T=_r(100*(i/o>m?i*h/w:o*v/x),2);return"".concat(f,"&wat_opacity=").concat(c,"&wat_scale=").concat(T,"p").concat(N?"&wat_url=".concat(encodeURIComponent(N)):"")},Yf={Brighten:{cloudimage:{name:"bright",min:-100,max:100},internal:{propName:"brightness",min:-1,max:1}},Contrast:{cloudimage:{name:"contrast",min:-100,max:100},internal:{propName:"contrast",min:-100,max:100}},Blur:{cloudimage:{name:"blur",min:0,max:100},internal:{propName:"blurRadius",min:0,max:100}}},xK=function(t){var e=1<arguments.length&&arguments[1]!==void 0?arguments[1]:{},r=[];return t.forEach(function(n){var i=(n.finetuneName||n.name)&&Yf[n.finetuneName||n.name];if(i){var o=_r(Go(e[i.internal.propName],i.internal.min,i.internal.max,i.cloudimage.min,i.cloudimage.max),2);r.push("".concat(i.cloudimage.name,"=").concat(o))}}),r.join("&")},EK=function(t,e,r,n,i){var o=t.token,a=t.domain,s=t.dontPrefixUrl,c=t.version,d=t.imageSealing,h=t.secureProtocol,C=e.imgSrc,v=e.adjustments,g=v.crop,m=v.rotation,w=v.isFlippedX,x=v.isFlippedY,b=e.resize,O=b===void 0?{}:b,f=e.finetunes,S=f===void 0?{}:f,E=e.finetunesProps,I=e.annotations,R=I===void 0?{}:I,k=s?"":"http".concat(h?"s":"","://").concat(o,".").concat(a.replace(/^(https?:\/\/)?(www\.)?|^\.|\/$/g,""),"/").concat(c?"".concat(c,"/"):""),N=[];g.width&&g.height&&(g.x||g.x===0)&&(g.y||g.y===0)&&N.push(CK(g,r,n,i)),(O.width||O.height)&&N.push(wK(Gb(Gb({},n),O))),m&&N.push(SK(m)),(w||x)&&N.push(bK(w,x)),0<S.length&&E&&N.push(xK(S,E)),R[As]&&N.push(_K(r,R[As],g)),N.push("ci_url_encoded=1");var T=N.join("&");d.enable&&(T=mK(T,d,C)),T=T.replaceAll(" ","+");var D=!s||C.indexOf("?")===-1?"?":"&";return"".concat(k).concat(s?C:encodeURIComponent(C)).concat(T?"".concat(D).concat(T.replace(/&$/,"")):"")},OK=["filter"];function Vb(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function bl(t){for(var e,r=1;r<arguments.length;r++)e=arguments[r]==null?{}:arguments[r],r%2?Vb(Object(e),!0).forEach(function(n){A(t,n,e[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):Vb(Object(e)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))});return t}var uI=function(){var t=Ye(),e=t.dispatch,r=t.designLayer,n=t.shownImageDimensions,i=t.originalImage,o=t.resize,a=o===void 0?{}:o,s=t.adjustments,c=s===void 0?{}:s,d=c.crop,h=d===void 0?{}:d,C=c.rotation,v=C===void 0?0:C,g=c.isFlippedX,m=c.isFlippedY,w=t.config,x=w.savingPixelRatio,b=w.previewPixelRatio,O=w.forceToPngInEllipticalCrop,f=w.defaultSavedImageType,S=w.useCloudimage,E=w.cloudimage,I=w[de.CROP];return S?function(){var k,N,T=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{},D=Qu(t);D.filter;var z=ve(D,OK),B=EK(E,z,n,i,I),Y=j2({x:h.x,y:h.y,width:h.width,height:h.height},n,i),W={cloudimageUrl:B,width:(T==null||(k=T.size)===null||k===void 0?void 0:k.width)||Y.width,height:(T==null||(N=T.size)===null||N===void 0?void 0:N.height)||Y.height};return{imageData:W,designState:z}}:function(){var k=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{},N=1<arguments.length&&arguments[1]!==void 0&&arguments[1],T=2<arguments.length&&arguments[2]!==void 0&&arguments[2],D=bl({size:a},k);br.pixelRatio=N||x;var z=r.attrs,B=z.clipWidth,Y=z.clipHeight,W=z.clipX,q=z.clipY;r.setAttr("isSaving",!0);var ee=r.getStage().clone({width:i.width,height:i.height,scaleX:g?-1:1,scaleY:m?-1:1}),K=Ie(ee.children,1),ue=K[0];ee.children[1].destroy();var ne=ee.findOne("#".concat(cT));ne.cache();var ae={x:ee.width()/n.width,y:ee.height()/n.height};ue.setAttrs({rotation:0,offsetX:0,offsetY:0,x:0,y:0,scaleX:ae.x,scaleY:ae.y});var J=bl(bl({},(!D.name||!D.extension)&&cI(i.name,O&&h.ratio===cc?"png":Xu.includes(f==null?void 0:f.toLowerCase())&&f)),D),Q=J.name,te=J.extension,we=J.quality,U=we===void 0?92:we,F=J.size,$=F===void 0?{}:F,ie=["jpeg","jpg","webp"].includes(te),pe=j2(h.noEffect?{x:0,y:0}:{x:h.x||W,y:h.y||q,width:h.width||B,height:h.height||Y},n,ee.attrs),ce=Ms(pe.width,pe.height,v);if(ee.setAttrs({offsetX:pe.width/2+pe.x,offsetY:pe.height/2+pe.y,width:ce.width,height:ce.height,x:ce.width/2,y:ce.height/2,rotation:v}),$.width){var le=(g?-1:1)*($.width/ee.width());ee.setAttrs({scaleX:le,width:$.width,x:ee.x()*Math.abs(le)})}if($.height){var xe=(m?-1:1)*($.height/ee.height());ee.setAttrs({scaleY:xe,height:$.height,y:ee.y()*Math.abs(xe)})}var Ne=bl({mimeType:"image/".concat(te==="jpg"?"jpeg":te)},ie?{quality:U}:{}),_e=ee.toCanvas(Ne),He=ee.toDataURL(Ne),Ee=bl(bl({},Qu(t)),{},{shownImageDimensions:{width:t.shownImageDimensions.width,height:t.shownImageDimensions.height,scaledBy:t.shownImageDimensions.scaledBy}});Ee.
Line truncated
|
||||
padding: 8px 12px;
|
||||
height: 32px;
|
||||
`),lt.Md,`
|
||||
padding: 11px 16px;
|
||||
height: 40px;
|
||||
`);A(A({},lt.Sm,`
|
||||
padding: 4px 6px 4px 12px;
|
||||
max-height: 32px;
|
||||
`),lt.Md,`
|
||||
padding: 0px 4px 0px 16px;
|
||||
max-height: 40px;
|
||||
`);var hI=A(A({},lt.Sm,function(t){var e=t.theme.typography.font;return X(["",""],e[ke.InputMd])}),lt.Md,function(t){var e=t.theme.typography.font;return X(["",""],e[ke.InputLg])}),TK=A(A({},lt.Sm,function(t){var e=t.theme.typography.font;return X(e[ke.LabelSmall])}),lt.Md,function(t){var e=t.theme.typography.font;return X(e[ke.LabelMedium])}),IK=function(e){var r=e.theme.palette;return X(["background:"," !important;border:1px solid "," !important;"],r[M.BackgroundSecondary],r[M.Error])},Y7="Label",AK=Z.label.attrs({className:Se(Y7,"root")}).withConfig({componentId:"sc-16k2ql4-0"})(function(t){var e=t.size,r=e===void 0?lt.Md:e,n=t.error,i=n===void 0?!1:n,o=t.disabled,a=o===void 0?!1:o,s=t.htmlFor,c=t.theme;return X(["display:flex;align-items:center;color:",";font-style:normal;font-weight:normal;"," "," cursor:",";",";"],c.palette[M.TextSecondary],a&&X(["color:",";","{color:",";}"],c.palette[M.ButtonDisabledText],fI,c.palette[M.IconsMuted]),TK[r],s&&"pointer",i&&PK)}),LK=Z.span.attrs({className:Se(Y7,"text")}).withConfig({componentId:"sc-16k2ql4-1"})(["white-space:nowrap;text-overflow:ellipsis;overflow:hidden;"]),fI=Z.span.attrs({className:Se(Y7,"Icon")}).withConfig({componentId:"sc-16k2ql4-2"})(function(t){var e=t.theme.palette,r=t.$end,n=r===void 0?!1:r;return X(["display:flex;",";color:",";"],n?"margin-left: 4px":"margin-right: 4px",e[M.IconsSecondary])}),Zf=Bt({Label:AK,Icon:fI,Text:LK}),MK=["children","iconStart","iconEnd","error","disabled","size","type"],qt=pt(function(t,e){var r=t.children,n=t.iconStart,i=t.iconEnd,o=t.error,a=t.disabled,s=t.size,c=t.type,d=ve(t,MK),h=G.useRef(null),C=G.useState(!1),v=Ie(C,2),g=v[0],m=v[1],w=function(f,S){return y.createElement(Zf.Icon,{$end:S},typeof f=="function"?f({size:s==="md"?14:12}):f)},x=function(){if(typeof r=="string"&&g)return r},b=function(){if(h.current!==null&&h.current){var f,S;m((h==null||(f=h.current)===null||f===void 0?void 0:f.offsetWidth)<(h==null||(S=h.current)===null||S===void 0?void 0:S.scrollWidth))}};return y.createElement(Zf.Label,he({ref:e,error:o,disabled:a,size:s,type:c},d),n&&w(n,!1),y.createElement(Zf.Text,{title:x(),onMouseOver:b,ref:h},r),i&&w(i,!0))});qt.defaultProps={type:dI.Default,error:!1};var Z7={type:j.oneOf(ht(dI)),iconStart:j.oneOfType([j.node,j.func]),iconEnd:j.oneOfType([j.node,j.func]),error:j.bool,size:j.oneOf(ht(lt)),htmlFor:j.string};qt.propTypes=Z7;var RK=Z.div.withConfig({componentId:"sc-dwg14p-0"})(["width:fit-content;margin:0 auto;max-width:99.5%;max-height:170px;[data-phone='true'] &{padding:0;margin-top:8px;max-height:initial;}"]),NK=Z.div.withConfig({componentId:"sc-dwg14p-1"})(["padding:8px 16px 16px 16px;display:flex;gap:12px;align-items:center;overflow:hidden;",""],function(t){var e=t.isPhoneScreen;return e&&`
|
||||
justify-content: space-between;
|
||||
padding: 12px;
|
||||
gap: 8px;
|
||||
`}),FK=Z.div.withConfig({componentId:"sc-dwg14p-2"})(function(t){var e=t.theme,r=t.isPhoneScreen;return`
|
||||
display: flex;
|
||||
gap: 6px;
|
||||
border-radius: 2px;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 8px 12px;
|
||||
|
||||
svg {
|
||||
color: `.concat(e.palette[M.IconsPrimary],`;
|
||||
}
|
||||
|
||||
&,
|
||||
* {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
`).concat(!r&&"background: ".concat(e.palette["bg-primary-active"],";"),`
|
||||
}
|
||||
|
||||
&[aria-selected='true'] {
|
||||
`).concat(!r&&"background: ".concat(e.palette["bg-primary-active"],";"),`
|
||||
border-radius: 4px;
|
||||
|
||||
* {
|
||||
color: `).concat(e.palette["accent-primary-active"],`;
|
||||
}
|
||||
}
|
||||
|
||||
`).concat(r&&X(["display:flex;flex-direction:column;min-width:52px;min-height:52px;padding:8px;gap:4px;"]),`
|
||||
`)}),q7=Z(qt).withConfig({componentId:"sc-dwg14p-3"})(function(t){var e=t.theme,r=t.isPhoneScreen;return X(["color:",";",";"],e.palette[M.TextPrimary],r&&e.typography.font[ke.LabelExtraSmallUp])}),DK=Z.div.withConfig({componentId:"sc-dwg14p-4"})(["position:relative;width:100%;transition:max-height 100ms ease-in-out;display:flex;justify-content:center;align-items:center;gap:24px;",";",""],function(t){return`
|
||||
max-height: `.concat(t.hasChildren?"56px":0,`;
|
||||
margin: `).concat(t.hasChildren?"0 auto 8px":0,`;
|
||||
`)},function(t){var e=t.isPhoneScreen;return e&&`
|
||||
max-height: unset;
|
||||
flex-direction: column;
|
||||
padding: 0 12px 8px 12px;
|
||||
gap: 8px;
|
||||
margin: 0;
|
||||
`}),pI=function(t){var e=t.id,r=t.label,n=t.onClick,i=t.Icon,o=t.isSelected,a=t.children,s=t.className,c=_o(320);return y.createElement(FK,{className:s,onClick:function(h){n(e,h)},"aria-selected":o,isPhoneScreen:c},y.createElement(i,{size:c?20:16}),r&&y.createElement(q7,{isPhoneScreen:c},r),a)};pI.defaultProps={isSelected:!1,id:void 0,children:null,label:""};const Qr=G.memo(pI);var gI=function(t){var e=t.selectTool,r=t.isSelected,n=t.t;return y.createElement(Qr,{className:"FIE_brightness-tool-button",id:de.BRIGHTNESS,label:n("brightnessTool"),Icon:HX,onClick:e,isSelected:r})};gI.defaultProps={isSelected:!1};function jK(t){var e=t.controlled,r=t.default,n=G.useRef(e!==void 0),i=n.current,o=G.useState(r),a=Ie(o,2),s=a[0],c=a[1],d=i?e:s,h=G.useCallback(function(C){i||c(C)},[]);return[d,h]}var zK=typeof window<"u"?G.useLayoutEffect:G.useEffect;function Qc(t){var e=G.useRef(t);return zK(function(){e.current=t}),G.useCallback(function(){return e.current.apply(void 0,arguments)},[])}var Sd={Auto:"auto",On:"on",Off:"off"},bd="Slider",$K=Z.span.attrs({className:Se(bd,"root")}).withConfig({componentId:"sc-jjink6-0"})(function(t){var e=t.theme,r=t.disabled,n=r===void 0?!1:r;return X(["display:inline-block;border-radius:2px;position:relative;cursor:pointer;touch-action:none;color:",";height:4px;width:100%;padding:12px 0;"],n?e.palette[M.AccentPrimaryDisabled]:e.palette[M.BorderActiveBottom])}),BK=Z.span.attrs({className:Se(bd,"rail")}).withConfig({componentId:"sc-jjink6-1"})(["display:block;position:absolute;border-radius:inherit;background-color:currentColor;opacity:0.38;width:100%;height:inherit;top:50%;transform:translateY(-50%);"]),HK=Z.span.attrs({className:Se(bd,"Track")}).withConfig({componentId:"sc-jjink6-2"})(["display:block;position:absolute;border-radius:inherit;border:1px solid currentColor;background-color:currentColor;height:inherit;top:50%;transform:translateY(-50%);"]),GK=Z.span.attrs({className:Se(bd,"thumb")}).withConfig({componentId:"sc-jjink6-3"})(["position:absolute;width:15px;height:15px;box-sizing:border-box;border-radius:50%;outline:0;background-color:currentColor;display:flex;align-items:center;justify-content:center;top:50%;transform:translate(-50%,-50%);& > input{border:0px;clip:rect(0px,0px,0px,0px);height:100%;margin:-1px;overflow:hidden;padding:0px;position:absolute;white-space:nowrap;width:100%;direction:ltr;}&::before{position:absolute;content:'';border-radius:inherit;width:100%;height:100%;box-shadow:0px 3px 1px -2px rgb(0 0 0 / 20%),0px 2px 2px 0px rgb(0 0 0 / 14%),0px 1px 5px 0px rgb(0 0 0 / 12%);}&::after{position:absolute;content:'';border-radius:50%;width:42px;height:42px;top:50%;left:50%;transform:translate(-50%,-50%);}"]),VK=Z.span.attrs({className:Se(bd,"label")}).withConfig({componentId:"sc-jjink6-4"})(function(t){var e=t.theme,r=t.open,n=r===void 0?!1:r,i=t.disabled,o=i===void 0?!1:i;return X(["display:flex;align-items:center;justify-content:center;padding:6px 6px;border-radius:2px;position:absolute;top:-10px;font-size:10px;z-index:1;white-space:nowrap;transition:transform 150ms cubic-bezier(0.4,0,0.2,1) 0ms;transform-origin:bottom center;transform:",";background-color:",";color:#fff;cursor:pointer;transition:all 100ms ease-out;&::before{position:absolute;content:'';background-color:inherit;width:8px;height:8px;bottom:0px;left:50%;transform:translate(-50%,50%) rotate(45deg);}"],n?"translateY(-100%) scale(1)":"translateY(-100%) scale(0)",o?e.palette[M.AccentPrimaryDisabled]:e.palette[M.LinkStateless])}),UK=Z.div.attrs({className:Se(bd,"annotation")}).withConfig({componentId:"sc-jjink6-5"})(function(t){var e=t.theme;return X(["display:flex;justify-content:space-between;margin-top:12px;color:",";"],e.palette[M.TextSecondary])}),Jc=Bt({Slider:$K,Rail:BK,Track:HK,Thumb:GK,SliderAnnotation:UK,LabelTooltip:VK}),WK=["defaultValue","disabled","disableSwap","hideTrack","hideAnnotation","value","min","max","onChange","onMouseDown","onMouseUp","step","labelTooltip","annotation","components","componentsProps"];function Ub(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function io(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Ub(Object(r),!0).forEach(function(n){A(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ub(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}var XK=2,Wb="data-index",C3=pt(function(t,e){var r=t.defaultValue,n=t.disabled,i=n===void 0?!1:n,o=t.disableSwap,a=o===void 0?!1:o,s=t.hideTrack,c=s===void 0?!1:s,d=t.hideAnnotation,h=d===void 0?!1:d,C=t.value,v=t.min,g=v===void 0?0:v,m=t.max,w=m===void 0?100:m,x=t.onChange,b=t.onMouseDown,O=t.onMouseUp,f=t.step,S=f===void 0?1:f,E=t.labelTooltip,I=E===void 0?Sd.Off:E,R=t.annotation,k=R===void 0?"":R,N=t.components,T=N=
Line truncated
|
||||
height: fit-content;
|
||||
|
||||
`.concat(n6,` {
|
||||
max-width: fit-content;
|
||||
min-width: 20px;
|
||||
flex-grow: 1;
|
||||
width: 40px;
|
||||
}
|
||||
`),n6,hI[r],!c&&!h&&X(["&:focus-within{background-color:","!important;border:1px solid ",";&:hover{border:1px solid ",";","{color:",";}}}"," &:hover{background-color:",";border:1px solid ",";","{color:",";}}"],w.palette[M.BackgroundSecondary],w.palette[M.AccentStateless],w.palette[M.AccentStateless],P0,w.palette[M.IconsPrimary],v&&X(["","{color:",";}"],P0,w.palette[M.IconsPrimaryHover]),w.palette[M.BackgroundStateless],w.palette[M.BordersPrimaryHover],P0,w.palette[M.IconsPrimaryHover]),h&&X(["","{color:",";}"],P0,w.palette[M.IconsMuted]),wI(c,h),i&&IK)}),PY=Z.span.attrs({className:Se(xo,"ClearIcon")}).withConfig({componentId:"sc-150k0cz-6"})(function(t){var e=t.theme.palette;return X(["display:flex;cursor:pointer;color:",";"],e[M.IconsPrimary])}),kY=Z.div.attrs({className:Se(xo,"NotificationBox")}).withConfig({componentId:"sc-150k0cz-7"})(function(t){var e=t.size,r=e===void 0?lt.Md:e,n=t.isTextarea,i=n===void 0?!1:n,o=t.theme.palette;return X(["display:flex;position:absolute;align-items:center;max-height:34px;right:0px;padding:8px 12px;gap:6px;bottom:",";box-shadow:0px 2px 6px ",";background-color:",";border-radius:4px;align-items:center;",""],r===lt.Md?"45px":"35px",o[M.LargeShadow],o[M.BackgroundStateless],i&&`
|
||||
bottom: `.concat(r===lt.Md?27:22,`px;
|
||||
right: `).concat(r===lt.Md?16:12,`px;
|
||||
`))}),TY=Z.span.attrs({className:Se(xo,"NotificationIcon")}).withConfig({componentId:"sc-150k0cz-8"})(function(t){var e=t.theme.palette;return X(["display:flex;color:",";"],e[M.IconsPrimary])}),IY=Z.span.attrs({className:Se(xo,"NotificationText")}).withConfig({componentId:"sc-150k0cz-9"})(function(t){var e=t.theme,r=e.palette,n=e.typography.font;return X(["display:flex;white-space:nowrap;",";color:",";"],n[ke.TextSmall],r[M.TextPrimary])}),AY=Z.div.attrs({className:Se(xo,"fieldWrapper")}).withConfig({componentId:"sc-150k0cz-10"})(function(t){var e=t.isSelectedItems;return X(["width:100%;height:100%;display:inline-flex;flex-wrap:wrap;gap:8px;max-height:120px;",";::-webkit-scrollbar{display:none;}"],e&&`
|
||||
overflow-y: auto;
|
||||
`)}),ii=Bt({Input:OY,Container:EY,Base:n6,Icon:P0,CopyIcon:_I,PasswordIcon:xY,ClearIcon:PY,NotificationBox:kY,NotificationIcon:TY,NotificationText:IY,FieldWrapper:AY}),LY=["inputType","children","iconStart","iconEnd","iconChange","clearIcon","iconClickStart","iconClickEnd","clearIconClick","size","className","style","fullWidth","readOnly","disabled","hideCopyIcon","focusOnMount","focusOnClick","isEllipsis","copyTextMessage","copySuccessIcon","error","renderTags","showPlaceholder"],lm=function(e,r){switch(e){case lt.Md:return r==="start"?15:14;case lt.Sm:default:return r==="start"?13:10}},Zb=function(e){switch(e){case lt.Md:return 16;case lt.Sm:default:return 14}},Yl=pt(function(t,e){var r,n=t.inputType,i=t.children,o=t.iconStart,a=t.iconEnd,s=t.iconChange,c=t.clearIcon,d=t.iconClickStart,h=t.iconClickEnd,C=t.clearIconClick,v=t.size,g=v===void 0?lt.Md:v,m=t.className,w=t.style,x=t.fullWidth,b=t.readOnly,O=t.disabled,f=t.hideCopyIcon,S=f===void 0?!1:f,E=t.focusOnMount,I=E===void 0?!1:E,R=t.focusOnClick,k=R===void 0?!0:R,N=t.isEllipsis,T=N===void 0?!1:N,D=t.copyTextMessage,z=t.copySuccessIcon,B=t.error,Y=t.renderTags,W=t.showPlaceholder,q=ve(t,LY),ee=G.useState(!1),K=Ie(ee,2),ue=K[0],ne=K[1],ae=G.useState(!1),J=Ie(ae,2),Q=J[0],te=J[1],we=G.useState(!1),U=Ie(we,2),F=U[0],$=U[1],ie=G.useRef(null),pe=(r=q.selectedItems)===null||r===void 0?void 0:r.length,ce=q.value||pe?"":q.placeholder,le=ue&&b&&q.value.length>0&&!S,xe=function(){var bt;O||b||(W==null||W(!1),(bt=ie.current)===null||bt===void 0||bt.focus())};G.useEffect(function(){I&&xe()},[]),G.useEffect(function(){setTimeout(function(){return te(!1)},2e3)},[Q]);var Ne=function(){setTimeout(function(){ne(!0)},150)},_e=function(){setTimeout(function(){ne(!1)},200)},He=function(bt,Lt){O||b||(k&&xe(),Lt==="start"?d&&d(bt):Lt==="end"?h&&h(bt):C&&C(bt))},Ee=function(bt,Lt){return bt?y.createElement(ii.Icon,{onClick:function(Ii){return He(Ii,Lt)},iconClickStart:d,iconClickEnd:h,iconType:Lt,disabled:O,readOnly:b},typeof bt=="function"?bt({size:lm(g,Lt)}):bt):void 0},Ve=function(){return O||b||!c?void 0:y.createElement(ii.ClearIcon,{onClick:function(Lt){return He(Lt,"clear")}},typeof c=="function"?c({size:lm(g,"clear")}):c)},We=function(bt){return le?y.createElement(ii.CopyIcon,{onClick:function(){return bI(q.value,te)}},typeof bt=="function"?bt():bt):void 0},Me=function(bt){bt.stopPropagation(),$(!F)},gt=function(){return y.createElement(ii.PasswordIcon,{onClick:function(Lt){return Me(Lt)}},F?y.createElement(_Y,{size:Zb(g)}):y.createElement(SY,{size:Zb(g)}))},St=function(){return!n&&q!==null&&q!==void 0&&q.type?q==null?void 0:q.type:n===sf.Password&&!F?sf.Password:sf.Text},qe=function(){return y.createElement(ii.FieldWrapper,{isSelectedItems:!!pe},Y&&Y(),y.createElement(ii.Base,he({},q,{placeholder:ce,ref:ie,readOnly:!!b,type:St(),isEllipsis:T})))},je=function(){return y.createElement(ii.NotificationBox,{size:g},y.createElement(ii.NotificationIcon,null,z),y.createElement(ii.NotificationText,null,D))};return y.createElement(ii.Input,{onClick:k?xe:void 0,ref:e,size:g,onMouseEnter:Ne,onMouseLeave:_e,className:m,style:w,readOnly:b,disabled:O,fullWidth:!!x,error:B,clearIcon:c,isHovering:q.isHovering,isSelectedItems:!!pe},Ee(o,"start"),qe(),We(y.createElement(yI,{size:lm(g,"copy")})),Q&&je(),Ve(),n===sf.Password&>(),Ee(a,"end"),Ee(s,""),i&&y.createElement(y.Fragment,null,i))}),MY={size:lt.Md,error:!1,fullWidth:!1,readOnly:!1,disabled:!1,copyTextMessage:"Copied!"};Yl.defaultProps=MY;var xI={size:j.oneOf(ht(lt)),iconStart:j.oneOfType([j.node,j.func]),iconEnd:j.oneOfType([j.node,j.func]),iconChange:j.oneOfType([j.node,j.func]),copySuccessIcon:j.oneOfType([j.node,j.func]),clearIcon:j.oneOfType([j.node,j.func]),error:j.bool,fullWidth:j.bool,value:j.any,readOnly:j.bool,disabled:j.bool,iconClickStart:j.func,showPlaceholder:j.func,iconClickEnd:j.func,clearIconClick:j.func,focusOnMount:j.bool,focusOnClick:j.bool,copyTextMessage:j.string,inputType:j.string,renderTags:j.func};Yl.propTypes=xI;var hi="top",Yi="bottom",Zi="right",fi="left",t9="auto",Rh=[hi,Yi,Zi,fi],Ju="start",hh="end",RY="clippingParents",EI="viewport",v0="popper",NY="reference",qb=Rh.reduce(function(t,e){return t.concat([e+"-"+Ju,e+"-"+hh])},[]),OI=[].concat(Rh,[t9]).reduce(function(t,e){return t.concat([e,e+"-"+Ju,e+"-"+hh])},[]),FY="beforeRead",DY="read",jY="afterRead",zY="beforeMain",$Y="main",BY="afterMain",HY="beforeWrite",GY="write",VY="afterWrite",UY=[FY,DY,jY,zY,$Y,BY,HY,GY,VY];function Ko(t){return t?(t.nodeName||"").toLowerCase():null}function xi(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function Zl(t){var e=xi(t).Element;return t instanceof e||t instanceof Element}function Wi(t){var e=xi(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function r9(t){if(typeof ShadowRoot>"u")return!1;var e=xi(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function WY(t){var e=t.state;Object.keys(e.elements).
Line truncated
|
||||
&:hover {
|
||||
`.concat(rA,` {
|
||||
display: flex;
|
||||
}
|
||||
}
|
||||
`),hI[o])}),See=Z.label.attrs({className:Se(el,"Label")}).withConfig({componentId:"sc-mfrapg-5"})(function(t){var e=t.hideEllipsis,r=t.size,n=r===void 0?wn.Md:r;return`
|
||||
flex-grow: 1;
|
||||
margin-right: `.concat(n===wn.Md?8:12,`px;
|
||||
|
||||
`).concat(!e&&X(["white-space:nowrap;text-overflow:ellipsis;overflow:hidden;"]),`
|
||||
`)}),bee=Z.span.attrs({className:Se(el,"Placeholder")}).withConfig({componentId:"sc-mfrapg-6"})(function(t){var e=t.theme.palette,r=t.size;return X(["width:100%;color:",";margin-right:","px;"],e[M.TextPlaceholder],r===wn.Md?16:12)}),_ee=Z.input.attrs({className:Se(el,"Input"),"aria-hidden":"true",tabindex:"-1"}).withConfig({componentId:"sc-mfrapg-7"})(["left:0;width:100%;bottom:0;opacity:0;position:absolute;pointer-events:none;box-sizing:border-box;"]),cs=Bt({Container:Cee,Select:wee,Label:See,Icon:vee,TickIcon:yee,Input:_ee,Placeholder:bee,StyledCrossButton:rA});function f_(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function xee(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?f_(Object(r),!0).forEach(function(n){A(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):f_(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}var Eee=function(e){switch(e){case lt.Md:return 16;case lt.Sm:default:return 14}},Oee=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0,o=y.createElement(O3,null,e);if(r&&e){var a=y.createElement(P3,null,y.createElement(cs.TickIcon,null,y.createElement(vI,{size:Eee(n)})));if(y.Children.count(e)===1)return y.createElement(y.Fragment,null,o,!i&&a);if(y.Children.count(e)>1&&!y.Children.toArray(e).some(function(s){var c;return(s==null||(c=s.type)===null||c===void 0?void 0:c.displayName)==="MenuItemActions"}))return y.createElement(y.Fragment,null,e,a)}return o},Pee=function(e,r){var n,i,o,a,s=r.value,c=r.multiple,d=c===void 0?!1:c,h=r.size,C=h===void 0?lt.Md:h,v=r.hideMenuItemsActions,g=v===void 0?!1:v,m=r.onClose,w=r.onChange;if(!y.isValidElement(e))return e;if(((n=e.type)===null||n===void 0?void 0:n.displayName)!=="MenuItem")return y.cloneElement(e);var x=e==null||(i=e.props)===null||i===void 0?void 0:i.value,b=d?Array.isArray(s)?s:[]:[s],O=b.length>0&&b.includes(x),f=e==null||(o=e.props)===null||o===void 0?void 0:o.disabled;return y.cloneElement(e,{active:O,size:C,children:Oee(e==null||(a=e.props)===null||a===void 0?void 0:a.children,O,C,g),onClick:function(){var E;if(!d&&typeof m=="function"&&m(),typeof w=="function"&&!f&&(x!=null&&(E=x.toString())!==null&&E!==void 0&&E.length)){var I=x;if(d){I=cr(Array.isArray(s)?s:[]);var R=I.indexOf(x);R>-1?I.splice(R,1):I.push(x)}w(I)}}})},p_=function t(e){var r=e.props?e.props.children:e;return Array.isArray(r)?r.map(function(n){return t(n)}).join(" "):Un(r)==="object"?t(r.props.children):r},kee=function(e,r){if(e&&e.children){for(var n=r?e.value:e.children;typeof n!="string";)Array.isArray(n)?n=p_(n[1]):n=p_(n);return n}},Tee=function(e){var r=e.value,n=e.multiple,i=n===void 0?!1:n,o=e.children,a=e.showSelectionKey,s=a===void 0?!1:a,c=[];y.Children.forEach(o,function(h){if(y.isValidElement(h)){var C=h==null?void 0:h.type,v=C.displayName;v==="MenuItem"&&h.props&&c.push(xee({},h.props))}});var d=i?c.filter(function(h){return Array.isArray(r)&&r.includes(h.value)}):[c.find(function(h){return h.value===r})];return d.length>0?d.map(function(h){return kee(h,s)}).join(", "):Array.isArray(r)?r.join(", "):r},Iee=["children","size","error","multiple","onChange","value","fullWidth","selectProps","MenuProps","readOnly","disabled","scroll","placeholder","showSelectionKey","hideMenuItemsActions","showClearIcon","renderLabel","onRequestClose","hideEllipsis"],Fh=pt(function(t,e){var r,n=t.children,i=t.size,o=t.error,a=t.multiple,s=t.onChange,c=t.value,d=t.fullWidth,h=t.selectProps,C=t.MenuProps,v=t.readOnly,g=t.disabled,m=t.scroll,w=m===void 0?!0:m,x=t.placeholder,b=t.showSelectionKey,O=t.hideMenuItemsActions,f=t.showClearIcon,S=t.renderLabel,E=t.onRequestClose,I=t.hideEllipsis,R=I===void 0?!1:I,k=ve(t,Iee),N=G.useState(void 0),T=Ie(N,2),D=T[0],z=T[1],B=!!D,Y=function(ue){return z(ue.currentTarget)},W=Array.isArray(c)?!!c.length:!!(c!=null&&(r=c.toString())!==null&&r!==void 0&&r.length),q=function(){E&&E(),z(void 0)},ee=function(ue){ue.stopPropagation(),typeof s=="function"&&s("")};return y.createElement(cs.Container,{ref:e,fullWidth:!!d},y.createElement(cs.Select,he({},k,{disabled:g,size:i,error:o,fullWidth:!!d,readOnly:v,showSelectionKey:b,isValueExists:W,onClick:v||g?void 0:Y}),W&&y.createElement(cs.Label,{hideEllipsis:R,size:i},typeof S=="function"?S(c):Tee({value:c,multiple:a,children:n,showSelectionKey:b})),!W&&y.createElement(cs.Placeholder,{size:i},x),!v&&f&&y.createElement(cs.StyledCrossButton,{size:i===li.Md?li.Sm:li.Xs,onClick:ee}),y.createElement(cs.Icon,{size:i},y.createElement(w3,{type:B?"top":"bottom",IconProps:{size:i===li.Md?11:10}})),y.createElement(cs.Input,h)),y.createElement(Ha,he({onClose:q,scroll:w,open:B,anchorEl:D},C),y.Children
Line truncated
|
||||
flex-direction: column;
|
||||
|
||||
.SfxSlider-root {
|
||||
min-width: 230px;
|
||||
}
|
||||
`}),Fl=Z.div.withConfig({componentId:"sc-1rfxjvn-1"})(["display:flex;flex-direction:column;"]),Dl=Z(qt).withConfig({componentId:"sc-1rfxjvn-2"})(["",";"],function(t){var e=t.theme;return e.typography.font[ke.LabelExtraSmallUp]}),jl=Z.div.withConfig({componentId:"sc-1rfxjvn-3"})(["display:flex;align-items:center;"]),zl=Z(Yl).withConfig({componentId:"sc-1rfxjvn-4"})(["display:inline-block;width:40px;height:28px;padding:6px 2px;margin-left:10px;border:none;.SfxInput-Base{text-align:center;width:100%;min-width:100%;max-width:100%;}"]),k_=-1,ym={brightness:0},T_=1,$re={width:150,padding:0,margin:0},Bre=function(t){var e,r,n=t.t,i=Mh(br.Filters.Brighten,ym),o=Ie(i,2),a=o[0],s=o[1],c=function(d){s({brightness:Vr(d,k_,T_)})};return y.createElement(Fl,{className:"FIE_brightness-option-wrapper"},y.createElement(Dl,{className:"FIE_brightness-option-label"},n("brightness")),y.createElement(jl,null,y.createElement(qr,{className:"FIE_brightness-option",min:k_,step:.05,max:T_,width:"124px",value:(e=a.brightness)!==null&&e!==void 0?e:ym.brightness,onChange:c,style:$re}),y.createElement(zl,{value:(r=a.brightness)!==null&&r!==void 0?r:ym.brightness,onChange:function(h){var C=h.target.value;return c(C)}})))},G2=function(t,e){return Math.min(t.width/e.width,t.height/e.height)||Co},I_=[{titleKey:"custom",ratio:hT,icon:IQ,hide:function(){var e=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{},r=e.lockCropAreaAt;return r}},{titleKey:"original",ratio:$8,icon:YI},{titleKey:"landscape",descriptionKey:"16:9",ratio:_r(16/9),icon:DQ},{titleKey:"portrait",descriptionKey:"9:16",ratio:_r(9/16),icon:$J},{titleKey:"ellipse",ratio:cc,icon:ZI}],Hre=Z.div.withConfig({componentId:"sc-ldar2z-0"})(["display:flex;"]),Gre=Z(Ei).withConfig({componentId:"sc-ldar2z-1"})(["margin:0 0 0 6px;padding:0;"]),dA=Z.div.withConfig({componentId:"sc-ldar2z-2"})(["svg,span{vertical-align:middle;}"]),Vre=Z(qt).withConfig({componentId:"sc-ldar2z-3"})(["cursor:pointer;",""],function(t){var e=t.theme.typography;return e.font[ke.InputSm]}),Ure=Z.div.withConfig({componentId:"sc-ldar2z-4"})(["min-width:270px;border-radius:4px;overflow:hidden;background-color:",";"],function(t){var e=t.theme.palette;return e[M.BackgroundStateless]}),hA=Z(wo).withConfig({componentId:"sc-ldar2z-5"})(["display:flex;gap:10px;justify-content:flex-start;align-items:center;border-radius:4px;padding:8px 16px;"," ",""],function(t){var e=t.isAccordion;return e&&"padding-left: 22px;"},function(t){var e=t.isListItem;return e&&"padding: 0;"}),Wre=Z(qt).withConfig({componentId:"sc-ldar2z-6"})(function(t){var e=t.theme;return X(["color:",";",";"],e.palette[M.TextPrimary],e.typography.font[ke.InputMd])}),Xre=Z(b3).withConfig({componentId:"sc-ldar2z-7"})(function(t){var e=t.theme;return X([".SfxAccordionHeader-icon{padding-left:0;}.SfxAccordionHeader-label{",";color:",";}.SfxAccordionHeader-root{display:flex;flex-direction:row-reverse;width:fit-content;gap:10px;}"],e.typography.font[ke.LabelMediumEmphasis],e.palette[M.TextPrimary])}),O9=function(t){var e=t.titleKey,r=t.description,n=t.ratio,i=t.onClick,o=t.Icon,a=t.isActive,s=t.isAccordion,c=t.theme,d=t.width,h=t.height,C=t.t,v=t.disableManualResize,g=t.noEffect;return y.createElement(hA,{active:a,onClick:function(w){return i(w,n,{ratioTitleKey:e,width:d,height:h,disableManualResize:v,noEffect:g})},isAccordion:s},o&&y.createElement(dA,null,typeof o=="string"?y.createElement("span",{dangerouslySetInnerHTML:{__html:o}}):y.createElement(o,{color:c.palette["icon-primary"]})),y.createElement(Wre,null,C(e)),r&&y.createElement(Vre,null,r))};O9.defaultProps={Icon:void 0,width:void 0,height:void 0,disableManualResize:!1,isAccordion:!1,noEffect:!1};function A_(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function L_(t){for(var e,r=1;r<arguments.length;r++)e=arguments[r]==null?{}:arguments[r],r%2?A_(Object(e),!0).forEach(function(n){A(t,n,e[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):A_(Object(e)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))});return t}var Kre=function(t){var e=t.groupTitleKey,r=t.items,n=t.onItemSelect,i=t.t,o=t.isExpanded,a=t.setExpandedGroup,s=Ye(),c=s.adjustments.crop,d=c.ratio,h=c.ratioGroupKey,C=c.ratioTitleKey,v=s.theme,g=function(m,w,x){n(m,w,L_(L_({},x),{},{ratioGroupKey:e}))};return y.createElement(Xre,{label:i(e),onChange:function(){a(o?null:e)},expanded:o},r.map(function(m){var w=m.titleKey,x=m.ratio,b=m.width,O=m.height,f=m.descriptionKey,S=m.icon,E=m.disableManualResize,I=m.noEffect,R=x??_r(b/O);return y.createElement(O9,{key:w,titleKey:w,t:i,description:i(f),size:"sm",onClick:g,width:b,height:O,ratio:R,Icon:S,theme:v,isAccordion:!0,disableManualResize:E,isActive:d===R&&C===w&&h===e,noEffect:I})}))};function M_(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbo
Line truncated
|
||||
max-width: 315px;
|
||||
padding: 0;
|
||||
`},function(t){var e=t.theme.palette;return e[M.IconsPrimary]}),bne=Z.div.withConfig({componentId:"sc-qvjmv1-1"})(["display:flex;flex-wrap:wrap;margin-left:-4px;gap:4px;.FIE_annotation-option-triggerer{padding:6px;}"]),V2=Z.div.withConfig({componentId:"sc-qvjmv1-2"})(["background:",";border-radius:4px;display:flex;flex-direction:column;padding:8px 12px;overflow:visible;"," "," *{font-family:'Roboto',sans-serif;}"],function(t){var e=t.theme;return e.palette["bg-secondary"]},function(t){var e=t.position;return e&&`
|
||||
display: grid;
|
||||
grid-template-columns: repeat(4, auto);
|
||||
padding: 0;
|
||||
margin-top: 8px;
|
||||
box-shadow: 0px 1px 2px `.concat(function(r){var n=r.theme;return n.palette["light-shadow"]},`;
|
||||
`)},function(t){var e=t.disablePadding;return e&&`
|
||||
padding: 0;
|
||||
`}),tl=Z.div.withConfig({componentId:"sc-qvjmv1-3"})(["display:flex;align-items:center;gap:12px;",""],function(t){var e=t.preventFlex;return e&&`
|
||||
display: block;
|
||||
|
||||
label {
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
`}),H_=Z.div.withConfig({componentId:"sc-qvjmv1-4"})(["display:flex;align-items:center;justify-content:space-between;"]),vf=Z.div.withConfig({componentId:"sc-qvjmv1-5"})(["&:not(:first-child){margin-left:12px;}"]),Ps=Z.div.withConfig({componentId:"sc-qvjmv1-6"})(function(t){var e=t.theme,r=t.addThinBorder,n=t.secondaryIconColor,i=t.active,o=t.watermarkTool;return`
|
||||
cursor: pointer;
|
||||
padding: `.concat(o?"6px":"8px 12px",`;
|
||||
border-radius: 2px;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
|
||||
svg {
|
||||
vertical-align: middle;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
`).concat(r?"border: 0.5px solid ".concat(e.palette["borders-secondary"],`;
|
||||
padding: 8px 8px;`):"",`;
|
||||
color: `).concat(n?e.palette[M.IconsSecondary]:"",`;
|
||||
|
||||
`).concat(i&&`
|
||||
border-radius: 4px;
|
||||
border-color: `.concat(e.palette[M.AccentStateless],`;
|
||||
background-color: `).concat(e.palette[M.BackgroundActive],`;
|
||||
|
||||
* {
|
||||
color: `).concat(e.palette[M.AccentStateless],`;
|
||||
}
|
||||
`),`
|
||||
|
||||
:hover {
|
||||
background: `).concat(e.palette["bg-primary-active"],`;
|
||||
}
|
||||
`)}),OA=Z(qt).withConfig({componentId:"sc-qvjmv1-7"})(["color:",";"],function(t){var e=t.theme.palette;return e[M.TextPrimary]}),_ne=0,xne=1,Ene=function(t){var e=t.annotation,r=t.updateAnnotation,n=t.t,i=e.opacity,o=Math.round(100*i);return y.createElement(V2,{disablePadding:!0},y.createElement(qt,null,n("transparency")),y.createElement(tl,null,y.createElement(qr,{annotation:"%",onChange:function(s){r({opacity:Vr(s/100,_ne,xne)})},value:o,noMargin:!0}),y.createElement(OA,null,"".concat(o,"%"))))},One=Z(M3).withConfig({componentId:"sc-7tf41j-0"})(["max-width:350px;"]),Pne=Z.div.withConfig({componentId:"sc-7tf41j-1"})([".SfxColorPicker-root{max-width:100%;padding:0;box-shadow:none;border:none;","}.SfxColorPicker-action{display:flex;gap:12px;.SfxColorPicker-select{width:100px;}.SfxInput-root{width:190px !important;}}.SfxColorPicker-icon{color:",";}.SfxColorPicker-range-picker,.SfxColorPicker-bar-wrapper{width:100%;}"],function(t){var e=t.hideModalTitle;return e&&"padding-top: 12px;"},function(t){var e=t.theme.palette;return e[M.IconsPrimary]}),kne=Z(Dh).withConfig({componentId:"sc-7tf41j-2"})(["gap:12px;padding:24px;.SfxButton-root{flex:1;margin:0;height:40px;}"]),_m={ColorPickerModal:One,ColorPickerWrap:Pne,ModalActions:kne},Tne={zIndex:1301},PA=function(t){var e=t.hideModalTitle,r=t.defaultColor,n=r===void 0?"":r,i=t.onChange,o=t.open,a=t.pinnedColors,s=t.onClose,c=t.onApply,d=Ye(),h=d.t;return o?y.createElement(_m.ColorPickerModal,{onClose:s,open:o,fullWidth:!0,modalStyles:Tne},!e&&y.createElement($h,{onClose:s,primary:h("colorPickerModalTitleLabel","Pick color"),icon:y.createElement(QJ,{size:29}),iconShadow:!0,variant:"with-icon"}),y.createElement(jh,null,y.createElement(_m.ColorPickerWrap,{hideModalTitle:e},y.createElement(d9,{onChange:i,pinnedColors:a,defaultColor:n,showTransparentColor:!0}))),y.createElement(_m.ModalActions,null,y.createElement(Ei,{color:"basic",onClick:s},h("cancel")),y.createElement(Ei,{color:"primary",onClick:c},h("apply")))):null};PA.defaultProps={defaultColor:"",pinnedColors:[],onChange:function(){},open:!1,hideModalTitle:!1,onClose:function(){},onApply:function(){}};var Ine=Z.div.attrs(function(t){var e=t.$color;return{style:{background:e==="rgba(0,0,0,0)"?"repeating-conic-gradient(#5d6d7e 0% 25%, transparent 0% 50%) 50% / 8px 8px":e}}}).withConfig({componentId:"sc-zmv0gj-0"})(["background:",";border-radius:4px;width:32px;height:32px;border:1px solid ",";cursor:pointer;box-sizing:border-box;"],function(t){var e=t.theme;return e.palette["icons-primary"]},function(t){var e=t.theme;return e.palette[M.BorderPrimaryStateless]}),xm="FIE_pinnedColors",N3=function(t){var e,r=t.onChange,n=t.color,i=t.colorFor,o=Ye(),a=o.selectionsIds,s=a===void 0?[]:a,c=o.config.annotationsCommon,d=c===void 0?{}:c,h=o.dispatch,C=o.latestColors,v=C===void 0?{}:C,g=v[i],m=G.useState(),w=Ie(m,2),x=w[0],b=w[1],O=G.useState(function(){return g||n||d.fill}),f=Ie(O,2),S=f[0],E=f[1],I=G.useState((e=window)!==null&&e!==void 0&&e.localStorage?JSON.parse(localStorage.getItem(xm)||"[]"):[]),R=Ie(I,2),k=R[0],N=R[1],T=G.useRef(S),D=function(B){var Y;if((Y=window)!==null&&Y!==void 0&&Y.localStorage){var W=window.localStorage.getItem(xm);if(JSON.stringify(B)!==W){var q=B.slice(-9);window.localStorage.setItem(xm,JSON.stringify(q)),N(q)}}},z=function(B){b(x?null:B.currentTarget)};return G.useEffect(function(){var B=s.length===0&&g||n;E(B),r(B)},[n,s]),y.createElement(y.Fragment,null,y.createElement(Ine,{className:"FIE_color-picker-triggerer",onClick:z,$color:S,onChange:r}),y.createElement(PA,{hideModalTitle:!0,onChange:function(Y,W,q){E(W),r(W),D(q),g!==W&&h({type:YA,payload:{latestColors:A({},i,W)}})},defaultColor:S,pinnedColors:k,open:!!x,onClose:function(Y){r(T.current||S),z(Y)},onApply:z}))};N3.defaultProps={color:void 0};var Ane=0,Lne=100,Mne=function(t){var e=t.annotation,r=t.updateAnnotation,n=e.stroke,i=e.strokeWidth;return y.createElement(tl,null,y.createElement(qr,{annotation:"px",onChange:function(a){r({strokeWidth:Vr(a,Ane,Lne)})},value:i,noMargin:!0}),y.createElement(N3,{color:n,onChange:function(a){r({stroke:a})},colorFor:"stroke"}))},Rne=function(t){var e=t.annotation,r=t.updateAnnotation,n=t.t,i=e.shadowOffsetX,o=e.shadowOffsetY,a=e.shadowBlur,s=e.shadowColor,c=e.shadowOpacity,d=function(h,C){var v=2<arguments.length&&arguments[2]!==void 0?arguments[2]:0,g=3<arguments.length&&arguments[3]!==void 0?arguments[3]:100;r(A({},h,Vr(C,v,g)))};return y.createElement(tl,{preventFlex:!0},y.createElement(qt,null,n("shadow")),y.createElement(H_,null,y.createElement(vf,null,y.createElement(qt,null,n("horizontal")),y.createElement(qr,{annotation:"px",min:-100,max:100,onChange:function(C){return d("shadowOffsetX",C,-100,100)},value:i||0,hideTrack:!0})),y.createElement(vf,null,y.createElement(qt,null,n("vertical")),y.createElement(qr,{annotation:"px",min:-100,max:100,onChange:function(C){return d("shadowOffsetY",C,-100,100)},value:o||0,hideTrack:!0}))),y.createElement(H_,null,y.createElement(vf,null,y.createElement(qt,n
Line truncated
|
||||
padding: 6px 4px;
|
||||
border: 1px solid `.concat(e.palette["borders-secondary"],`;
|
||||
width: fit-content;
|
||||
height: 32px;
|
||||
border-radius: 2px;
|
||||
overflow: hidden;
|
||||
cursor: pointer;
|
||||
border-radius: 4px;
|
||||
|
||||
:hover {
|
||||
background: `).concat(e.palette["bg-primary-active"],`;
|
||||
}
|
||||
|
||||
&[aria-selected='true'] {
|
||||
background: `).concat(e.palette["bg-primary-active"],`;
|
||||
border-color: `).concat(e.palette["accent-primary-active"],`;
|
||||
}
|
||||
|
||||
img {
|
||||
max-width: 100%;
|
||||
max-height: 100%;
|
||||
}
|
||||
`)}),zA=function(t){var e=t.addImgWatermark,r=t.loadAndSetWatermarkImg,n=t.style,i=Ye(),o=i.config,a=i.annotations,s=i.dispatch,c=i.t,d=G.useMemo(function(){var m;return(m=(a[As]||{}).image)===null||m===void 0?void 0:m.src},[a[As]]),h=function(m){var w=m.currentTarget.children[0];if(w.complete){if(!w.naturalWidth)return void s({type:Ys,payload:{feedback:{message:c("mutualizedFailedToLoadImg"),duration:2e3}}});e(w)}},C=o[de.WATERMARK]||{},v=C.gallery,g=v===void 0?[]:v;return g.length===0?null:y.createElement(R3,{className:"FIE_watermark-gallery",style:n},g.map(function(m){var w=(m==null?void 0:m.url)||m,x=(m==null?void 0:m.previewUrl)||w;return y.createElement(_ie,{className:"FIE_watermark-selected-item",onClick:function(O){return w===x?h(O):r(w)},key:w,"aria-selected":w===d},y.createElement("img",{src:x,alt:"Failed to load.",crossOrigin:"Anonymous",draggable:!1}))}))};zA.defaultProps={style:void 0};var xie=function(t){var e=t.watermark,r=t.saveWatermark,n=t.t,i=G.useState(null),o=Ie(i,2),a=o[0],s=o[1],c=e.padding||0;return y.createElement(y.Fragment,null,y.createElement(Ps,{className:"FIE_watermark-padding-triggerer",title:n("padding"),onClick:function(h){s(h.currentTarget)},active:a},y.createElement(qQ,{size:20})),y.createElement(Ha,{className:"FIE_watermark-padding-popup",anchorEl:a,open:!!a,onClose:function(){s(null)},position:"top"},y.createElement(V2,null,y.createElement(qt,null,n("padding")),y.createElement(tl,null,y.createElement(qr,{annotation:"px",onChange:function(h){r({padding:Vr(h,0,100)})},value:c,noMargin:!0}),y.createElement(OA,null,"".concat(c,"px"))))))};function ox(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function pa(t){for(var e,r=1;r<arguments.length;r++)e=arguments[r]==null?{}:arguments[r],r%2?ox(Object(e),!0).forEach(function(n){A(t,n,e[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):ox(Object(e)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))});return t}var ax=.33,eu="watermark",Eie=function(){var t=Ye(),e=t.annotations,r=t.shownImageDimensions,n=t.selectionsIds,i=t.config,o=t.dispatch,a=t.t,s=t.adjustments.crop,c=s===void 0?{}:s,d=_o(),h=G.useState(!1),C=Ie(h,2),v=C[0],g=C[1],m=G.useRef(),w=i[de.WATERMARK],x=G.useMemo(function(){return e[eu]},[e[eu]]),b=c.width||r.width,O=c.height||r.height,f=c.x||0,S=c.y||0,E=w.textScalingRatio||ax,I=w.imageScalingRatio||ax,R=function(B){var Y=B.naturalWidth||B.width,W=B.naturalHeight||B.height,q=O>b?O*I/W:b*I/Y,ee=pa(pa(pa({},i.annotationsCommon),i[de.IMAGE]),{},{scaleX:q,scaleY:q,padding:1,image:B,width:Y,height:W,x:f+b/2-Y*q/2,y:S+O/2-W*q/2,id:eu,name:de.IMAGE,replaceCurrent:!0});o({type:$l,payload:ee})},k=function(B){o({type:$l,payload:pa(pa({},typeof B=="function"?B(x):B),{},{id:eu})})},N=function(B){o({type:Ys,payload:{feedback:{message:B,status:Ku.WARNING}}})},T=function(B,Y){if(B){g(!0);var W=new Image;W.onload=function(){R(W),Y&&URL.revokeObjectURL(B),g(!1)},W.onerror=function(){N(a("mutualizedFailedToLoadImg")),Y&&URL.revokeObjectURL(B),g(!1)},W.src=B}};G.useEffect(function(){x&&(o({type:A9}),o({type:nd,payload:{annotationId:"watermark"}}))},[x]),G.useEffect(function(){x&&(n.length===0||n[0].id!==eu)&&o({type:nd,payload:{annotationId:"watermark"}})},[n]);var D=[(!i.useCloudimage||typeof w.onUploadWatermarkImgClick=="function")&&{key:"upload-watermark",label:a("uploadWatermark"),icon:qI,onClick:function(){if(typeof w.onUploadWatermarkImgClick=="function"){var Y=w.onUploadWatermarkImgClick(T);return void(Y instanceof Promise&&Y.then(function(){var W=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{},q=W.url,ee=W.revokeObjectUrl;return T(q,ee!==void 0&&ee)}))}m.current&&m.current.click()}},!w.hideTextWatermark&&{key:"add-text-watermark",label:a("addWatermarkAsText"),icon:UI,onClick:function(){var Y={height:O*E,width:b*E},W=pa(pa(pa(pa({},i.annotationsCommon),i[de.TEXT]),Y),{},{padding:1,x:f+b/2-Y.width/2,y:S+O/2-Y.height/2,fill:"#000000",id:eu,name:de.TEXT,replaceCurrent:!0});o({type:$l,payload:W})}}],z=function(){return y.createElement(xie,{watermark:x,saveWatermark:k,t:a})};return y.createElement("div",{className:"FIE_watermark-tool-wrapper"},(x==null?void 0:x.name)===de.TEXT&&y.createElement(ix,{className:"FIE_watermark-options-wrapper"},y.createElement(P9,{text:x,saveText:k,t:a},z())),(x==null?void 0:x.name)===de.IMAGE&&y.createElement(ix,{className:"FIE_watermark-options-wrapper"},y.createElement(k9,{image:x,saveImage:k,t:a},z())),y.createElement(bie,{className:"FIE_watermark-add-wrapper",noWrap:!0},y.createElement(F3,{className:"FIE_watermark-add",color:"secondary",label:function(){return d?a("plus"):D[0]?a("addWatermark"):a("addTextWatermark")}(),title:a("addWatermarkTitle"),menuPosition:"top",menuItems:D,menuFromBtn:!0,noMargin:!0}),y.createElement(zA,{loadAndSetWatermar
Line truncated
|
||||
position: absolute;
|
||||
z-index: 1;
|
||||
background: `.concat(e.palette["bg-secondary"],`;
|
||||
border-radius: 2px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
box-shadow: 0px 1px 2px `).concat(e.palette["light-shadow"],`;
|
||||
top: `).concat((r||0)+8,`px;
|
||||
left: `).concat((n||0)+4,`px;
|
||||
transform: translateX(-50%);
|
||||
height: 32px;
|
||||
`)}),Aoe=function(){var t=Ye(),e=t.selectionsIds,r=e===void 0?[]:e,n=t.designLayer,i=t.annotations,o=t.dispatch,a=G.useState({left:0,top:0}),s=Ie(a,2),c=s[0],d=s[1],h=G.useMemo(function(){var g;return n==null||(g=n.getStage())===null||g===void 0?void 0:g.findOne("#".concat(uT))},[n]),C=r.length,v=y3(function(){h&&d({left:(h.x()+h.width()/2)*h.scaleX(),top:(h.y()+h.height())*h.scaleY()})},0);return G.useEffect(function(){v()},[r,h,i]),C===0||!h?null:y.createElement(Ioe,{className:"FIE_annotation-controls-overlay",left:c.left,top:c.top},r[0]!==As&&y.createElement(Yo,{color:"basic",size:"sm",onClick:function(){o({type:XA,payload:{annotationsIds:r}})}},y.createElement(NJ,null)),y.createElement(Yo,{color:"basic",size:"sm",onClick:function(){o({type:WA,payload:{annotationsIds:r}})}},y.createElement(JI,null)))};function dE(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function hE(t){for(var e,r=1;r<arguments.length;r++)e=arguments[r]==null?{}:arguments[r],r%2?dE(Object(e),!0).forEach(function(n){A(t,n,e[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):dE(Object(e)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))});return t}function Loe(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function fE(t,e){return{x:(t.x+e.x)/2,y:(t.y+e.y)/2}}var su=null,k0=0,Moe=function(t,e){t.evt.preventDefault();var r=t.evt.touches[0],n=t.evt.touches[1];if(r&&n){var i=t.currentTarget;i.isDragging()&&i.stopDrag();var o={x:r.clientX,y:r.clientY},a={x:n.clientX,y:n.clientY};if(!su)return void(su=fE(o,a));var s=fE(o,a),c=Loe(o,a);k0||(k0=c);var d=i.attrs.zoomFactor||Co,h={x:(s.x-i.x())/d,y:(s.y-i.y())/d},C=(d||Co)*(c/k0),v=s.x-su.x,g=s.y-su.y,m={x:s.x-h.x*C+v,y:s.y-h.y*C+g};k0=c,su=s,e(hE(hE({},m),{},{factor:C,preparedDimensions:!0}))}},Roe=function(t){k0=0,su=null,typeof t=="function"&&t()},Noe=Z.div.withConfig({componentId:"sc-3ln9py-0"})(["width:100%;position:relative;height:calc(100% - 112px - 16px);overflow:hidden;min-height:250px;padding:16px;flex-grow:1;"]),Foe=Z.img.withConfig({componentId:"sc-3ln9py-1"})(["max-width:98%;max-height:98%;box-shadow:0 0 0 5px rgba(0,0,0,0.1);position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);z-index:2;"]),Doe=Z(sT).withConfig({componentId:"sc-3ln9py-2"})(["outline:none;background:",";"],function(t){var e=t.theme;return e.palette["bg-hover"]});function pE(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function gE(t){for(var e,r=1;r<arguments.length;r++)e=arguments[r]==null?{}:arguments[r],r%2?pE(Object(e),!0).forEach(function(n){A(t,n,e[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):pE(Object(e)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))});return t}var joe=function(t){var e=t.children;qB(!0);var r=G.useRef(),n=Ye(),i=n.dispatch,o=n.pointerCssIcon,a=n.tabId,s=n.toolId,c=n.canvasWidth,d=n.canvasHeight,h=n.canvasScale,C=n.selectionsIds,v=C===void 0?[]:C,g=n.zoom,m=g===void 0?{}:g,w=n.config,x=w.previewPixelRatio,b=w.disableZooming;br.pixelRatio=x;var O=Co,f=!b&&s!==de.CROP,S=G.useState(a!==Zt.ANNOTATE&&a!==Zt.WATERMARK&&m.factor>O),E=Ie(S,2),I=E[0],R=E[1],k=G.useMemo(function(){return{cursor:o===_a.DEFAULT&&a===Zt.ANNOTATE?_a.DRAW:o}},[a,o]),N=function(q){i({type:id,payload:q})},T=G.useCallback(function(q){var ee,K;q.evt.preventDefault(),(ee=(K=q.currentTarget).container)===null||ee===void 0||ee.call(K).focus(),q.target instanceof br.Stage&&0<v.length&&i({type:A9})},[v]),D=function(){return R(a!==Zt.ANNOTATE||a===Zt.WATERMARK)},z=function(q){(q.code==="Space"||q.key==="Control")&&!q.repeat&&m.factor>O&&f&&(q.preventDefault(),R(!0),i({type:gh,payload:{pointerCssIcon:_a.DRAG}}))},B=function(q){q.code==="Space"&&(q.preventDefault(),D())},Y=function(){r.current&&r.current.container().focus()};G.useEffect(function(){i({type:gh,payload:{pointerCssIcon:_a[I?"DRAG":"DEFAULT"]}})},[I]),G.useEffect(function(){R(a!==Zt.ANNOTATE&&a!==Zt.WATERMARK&&m.factor>O);var q;return r.current&&(q=r.current.container(),q.addEventListener("mouseenter",Y),q.addEventListener("keydown",z),q.addEventListener("keyup",B)),function(){q&&(q.removeEventListener("mouseenter",Y),q.removeEventListener("keydown",z),q.removeEventListener("keyup",B))}},[a,m.factor,O]);var W=h*(f&&m.factor||O);return y.createElement(Doe,{className:"FIE_canvas-node",tabIndex:-1,ref:r,width:c,height:d,scaleX:W,scaleY:W,x:f&&m.x||null,y:f&&m.y||null,zoomFactor:f&&m.factor||O,onWheel:f?function(ee){ee.evt.preventDefault();var K=(m.factor||O)+ee.evt.deltaY*-.006,ue=ee.currentTarget.getPointerPosition();N(gE(gE({},ue),{},{factor:K}))}:
Line truncated
|
||||
padding: 12px 12px 0px;
|
||||
gap: 12px;
|
||||
`}),Goe=Z.div.withConfig({componentId:"sc-21g986-1"})(["display:flex;align-items:center;order:1;"]),Voe=Z.div.withConfig({componentId:"sc-21g986-2"})(["display:flex;align-items:center;order:3;gap:4px;"]),D9=Z(Yo).withConfig({componentId:"sc-21g986-3"})(["margin:",";svg{color:",";}"],function(t){var e=t.margin;return e??"0 4px"},function(t){var e=t.theme.palette,r=t.disabled;return r?e[M.IconsMuted]:e[M.IconsPrimary]}),Uoe=Z.div.withConfig({componentId:"sc-21g986-4"})(["display:flex;align-items:center;gap:2px;"]),Woe=Z(qt).withConfig({componentId:"sc-21g986-5"})(["flex-shrink:0;color:",";",";"],function(t){var e=t.theme.palette;return e[M.TextPlaceholder]},function(t){var e=t.theme.typography;return e.font[ke.LabelMedium]}),d6=Z(Yo).withConfig({componentId:"sc-21g986-6"})(["padding:8px;svg{color:",";}"],function(t){var e=t.theme.palette,r=t.showBackButton;return r?e[M.IconsPrimary]:e[M.IconsMuted]}),Xoe=Z.div.withConfig({componentId:"sc-21g986-7"})(["width:",";height:32px;display:block;width:100%;order:4;",";@media (min-width:761px){display:flex;align-items:center;justify-content:center;width:fit-content;order:2;}"],function(t){var e=t.showBackButton;return e?"318px":"384px"},function(t){var e=t.reverseDirection;return e?"flex-direction: row-reverse":""}),Koe=Z(qt).withConfig({componentId:"sc-21g986-8"})(["cursor:pointer;color:",";",";"],function(t){var e=t.theme.palette;return e[M.TextPrimary]},function(t){var e=t.theme.typography;return e.font[ke.InputMd]}),Yoe=Z.span.withConfig({componentId:"sc-21g986-9"})(["",";"],function(t){var e=t.theme.typography;return e.font[ke.ButtonMdEmphasis]}),Zoe=Z(_d).withConfig({componentId:"sc-21g986-10"})(["padding:8px;z-index:111;"]);Z(Ei).withConfig({componentId:"sc-21g986-11"})(["padding:4px 12px;"]);var qoe=Z(A3).withConfig({componentId:"sc-21g986-12"})([""]),Qoe=Z(v9).withConfig({componentId:"sc-21g986-13"})(["margin-top:16px;"]),Joe=Z.div.withConfig({componentId:"sc-21g986-14"})(["width:100%;margin-top:16px;"]),eae=Z.div.withConfig({componentId:"sc-21g986-15"})(["margin-top:16px;width:100%;"]),tae=Z(qt).withConfig({componentId:"sc-21g986-16"})(["margin-bottom:4px;"]),rae=Z.div.withConfig({componentId:"sc-21g986-17"})(["display:flex;gap:6px;"]),nae=Z.div.withConfig({componentId:"sc-21g986-18"})(["display:flex;gap:12px;justify-content:",";"],function(t){var e=t.isPhoneScreen;return e?"space-between":"center"}),iae=Z(Yo).withConfig({componentId:"sc-21g986-19"})(["@media (min-width:761px){display:none;}"]),oae=Z.div.withConfig({componentId:"sc-21g986-20"})(["display:flex;gap:12px;align-items:center;"]),aae=Z(M3).withConfig({componentId:"sc-kpjpf5-0"})(["width:",";max-width:unset;"],function(t){var e=t.width;return e||"300px"}),sae=Z($h).withConfig({componentId:"sc-kpjpf5-1"})(function(t){var e=t.theme,r=t.isWarning;return X(["padding-bottom:0;.SfxModalTitle-Icon{background-color:",";}.SfxModalTitle-LabelPrimary{margin-bottom:24px;",";}.SfxModalTitle-LabelSecondary{",";text-align:center;}"],r&&e.palette[M.Orange_0_1_Overlay],e.typography.font[ke.TitleH3],e.typography.font[ke.TextLarge])}),lae=Z(Dh).withConfig({componentId:"sc-kpjpf5-2"})(["gap:12px;padding:24px;.SfxButton-root{flex:1;margin:0;height:40px;}"]),j9=function(t){var e=t.title,r=t.hint,n=t.Icon,i=t.onDone,o=t.onCancel,a=t.doneLabel,s=t.cancelLabel,c=t.isOpened,d=t.doneButtonStyle,h=t.doneButtonColor,C=h===void 0?"basic":h,v=t.cancelButtonColor,g=v===void 0?"basic":v,m=t.children,w=t.areButtonsDisabled,x=t.zIndex,b=t.className,O=t.width,f=t.isWarning;return y.createElement(aae,{className:b,open:c,onClose:o,style:{zIndex:x},onKeyUp:function(E){E.key==="Enter"&&i(E)},width:O},y.createElement(sae,{icon:y.createElement(n,{size:25}),iconShadow:!0,isWarning:f,onClose:o,primary:e,secondary:r,variant:"with-icon"}),m&&y.createElement(jh,null,m),y.createElement(lae,{align:"center"},y.createElement(Ei,{color:g,onClick:o,size:"md",disabled:w},s),y.createElement(Ei,{color:C,onClick:i,size:"md",warning:f,style:d,disabled:w},a)))};j9.defaultProps={hint:"",isOpened:!1,doneLabel:"Yes",cancelLabel:"No",doneButtonStyle:void 0,doneButtonColor:"basic",cancelButtonColor:"basic",children:void 0,areButtonsDisabled:!1,zIndex:void 0,className:void 0,width:"",isWarning:!1};var D3=function(t){var e=t.children,r=t.isReset,n=Ye(),i=n.t,o=n.theme,a=n.config,s=n.dispatch,c=n.isResetted,d=n.haveNotSavedChanges,h=n.config.onClose,C=G.useState(!1),v=Ie(C,2),g=v[0],m=v[1];if(typeof h!="function"&&!r)return y.createElement("span",null);var w=function(){m(!1)},x=G.useCallback(function(){s({type:m3,payload:{config:a}}),w()},[a]),b=function(){r||(h(fT.CLOSE_BUTTON,d),x())};return y.createElement(y.Fragment,null,y.cloneElement(e,{onClick:c===void 0||c?b:function(){m(!0)}}),g&&y.createElement(j9,{title:i(r?"warning":"discardChanges"),hint:i(r?"changesLoseWarningHint":"discardChangesWarningHint"),isOpened:g,onCancel:w,onDone:r?x:b,Icon:function(){return y.createElement(KI,{color:o.palette.warning,size:25})},doneLabel:i("confirm"),doneButtonColor:"wa
Line truncated
|
||||
width: 72px;
|
||||
min-height: 66px;
|
||||
padding: 4px 2px;
|
||||
border-radius: 4px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 6px;
|
||||
background: `.concat(e.palette[M.BackgroundStateless],`;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
|
||||
[data-phone='true'] & {
|
||||
margin-bottom: 0;
|
||||
height: 50px;
|
||||
border-radius: 0;
|
||||
}
|
||||
|
||||
svg {
|
||||
color: `).concat(e.palette[M.IconsPrimary],`;
|
||||
}
|
||||
|
||||
&,
|
||||
* {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
background: `).concat(e.palette["bg-primary-active"],`;
|
||||
}
|
||||
|
||||
&[aria-selected='true'] {
|
||||
background: `).concat(e.palette["bg-primary-active"],`;
|
||||
|
||||
* {
|
||||
color: `).concat(e.palette["accent-primary-active"],`;
|
||||
}
|
||||
}
|
||||
`)}),vae=Z(qt).withConfig({componentId:"sc-qhd6ow-1"})(function(t){var e=t.theme;return`
|
||||
color: `.concat(e.palette[M.TextPrimary],`;
|
||||
`).concat(e.typography.font[ke.LabelSmall],`;
|
||||
font-size: 12px;
|
||||
line-height: 14px;
|
||||
|
||||
span {
|
||||
white-space: normal;
|
||||
}
|
||||
|
||||
[data-phone='true'] & {
|
||||
font-size: 10px;
|
||||
}
|
||||
`)}),cL=function(t){var e=t.id,r=t.label,n=t.Icon,i=t.isSelected,o=t.onClick,a=G.useCallback(function(){typeof o=="function"&&o(e)},[e]);return y.createElement(mae,{className:"FIE_tab","aria-selected":i,onClick:a},y.createElement(n,{size:24}),r&&y.createElement(vae,{className:"FIE_tab-label"},r))};cL.defaultProps={isSelected:!1,onClick:void 0,label:void 0};const yae=G.memo(cL);var Am=[{id:Zt.ADJUST,labelKey:"adjustTab",icon:jJ},{id:Zt.FINETUNE,labelKey:"finetuneTab",icon:EJ},{id:Zt.FILTERS,labelKey:"filtersTab",icon:Jq,hideFn:function(e){var r=e.useCloudimage;return r}},{id:Zt.WATERMARK,labelKey:"watermarkTab",icon:sQ},{id:Zt.ANNOTATE,labelKey:"annotateTabLabel",icon:TJ,hideFn:function(e){var r=e.useCloudimage;return r}},{id:Zt.RESIZE,labelKey:"resizeTab",icon:oQ}],z9=function(t){var e=t.toggleMainMenu,r=t.isDrawer,n=Ye(),i=n.t,o=n.tabId,a=o===void 0?null:o,s=n.dispatch,c=n.config,d=c.defaultTabId,h=c.tabsIds,C=c.useCloudimage,v=G.useCallback(function(w){s({type:$A,payload:{tabId:w}}),e(!1)},[]),g=G.useMemo(function(){var w=[];return 0<Object.keys(h).length?Am.forEach(function(x){var b=h.indexOf(x.id);b!==-1&&(w[b]=x)}):w=Am,(0<w.length?w:Am).filter(function(x){var b=x.hideFn;return!b||!b({useCloudimage:C})})},[h]);if(g.length===1)return null;var m=function(w){var x=w.id,b=w.labelKey,O=w.icon;return y.createElement(yae,{key:x,id:x,label:i(b),Icon:O,isSelected:(a||d)===x,onClick:v})};return y.createElement(y.Fragment,null,g.map(function(w){return r?y.createElement(E9,{key:w.id},m(w)):m(w)}))};z9.defaultProps={toggleMainMenu:function(){},isDrawer:!1};var uL=function(t){var e=t.children,r=t.isPhoneScreen;return y.createElement(DK,{className:"FIE_tool-options-wrapper",hasChildren:!!e,isPhoneScreen:r},e)};uL.defaultProps={children:void 0,isPhoneScreen:!1};var Cae={maxWidth:"100%",width:"100%"},dL=function(t){var e,r=t.isPhoneScreen,n=Ye(),i=n.t,o=n.dispatch,a=n.tabId,s=n.toolId,c=n.annotations,d=n.selectionsIds,h=d===void 0?[]:d,C=n.config,v=C.defaultTabId,g=C.defaultToolId,m=C.useCloudimage,w=a||v,x=s||g||((e=Qf[w])===null||e===void 0?void 0:e[0]),b=G.useMemo(function(){return Qf[w]||[]},[w]),O=G.useCallback(function(E){o({type:W2,payload:{toolId:E}})},[]),f=G.useMemo(function(){return b.map(function(E){var I=w0[E],R=I.Item,k=I.hideFn;return R&&(!k||!k({useCloudimage:m}))&&y.createElement(R,{key:E,selectTool:O,t:i,isSelected:x===E})})},[b,x]),S=G.useMemo(function(){var E,I,R;if(!x)return!1;if(w===Zt.ANNOTATE){var k=h.length;if(k===1){var N,T=c[h[0]];return(N=w0[T.name])===null||N===void 0?void 0:N.ItemOptions}if(1<k)return null}return w&&x&&Qf[w].includes(x)&&(!((E=w0[s])!==null&&E!==void 0&&E.hideFn)||!((I=w0[s])!==null&&I!==void 0&&I.hideFn({useCloudimage:m})))&&((R=w0[s])===null||R===void 0?void 0:R.ItemOptions)},[w,x,c,h]);return G.useEffect(function(){!s&&x&&o({type:W2,payload:{toolId:x}})},[]),y.createElement(RK,{className:"FIE_tools-bar-wrapper"},y.createElement(uL,{isPhoneScreen:r},S&&y.createElement(S,{t:i})),f&&y.createElement(NK,{className:"FIE_tools-bar",isPhoneScreen:r},w===Zt.WATERMARK?f:y.createElement(R3,{className:"FIE_tools",style:Cae},f)))};dL.defaultProps={isPhoneScreen:!1};var wae={horizontal:"center",vertical:"bottom"},Sae=A(A({},Ku.ERROR,"error"),Ku.WARNING,"warning"),hL=function(t){var e,r=t.anchorOrigin,n=Ye(),i=n.feedback,o=i===void 0?{}:i,a=n.dispatch;return o.message?y.createElement(g9,{className:"FIE_feedback-robot",anchorOrigin:r,autoHideDuration:(e=o.duration)!==null&&e!==void 0?e:5e3,message:o.message,open:!!o.message,status:Sae[o.status||Ku.ERROR],onClose:function(){a({type:Ys,payload:{feedback:{}}})}}):null};hL.defaultProps={anchorOrigin:wae};var bae=m8(["to{transform:rotate(360deg);}"]),_ae=Z.div.withConfig({componentId:"sc-m42fbk-0"})(["background:",";display:flex;align-items:center;justify-content:center;position:absolute;z-index:11111;top:0;bottom:0;right:0;left:0;flex-direction:column;user-select:none;"],function(t){var e=t.theme.palette;return e[M.BackgroundStateless]}),xae=Z(ZJ).withConfig({componentId:"sc-m42fbk-1"})(["animation:"," 1.2s infinite;"],bae),fL=function(t){var e=t.theme;return y.createElement(_ae,{className:"FIE_spinner-wrapper"},y.createElement(xae,{size:50,color:e.palette[M.AccentStateless]}))};fL.defaultProps={theme:{}};var Eae=["cropX2","cropY2","crop","watermark"];function CE(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function ga(t){for(var e,r=1;r<arguments.length;r++)e=arguments[r]==null?{}:arguments[r],r%2?CE(Object(e),!0).forEach(function(n){A(t,n,e[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):CE(Object(e)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))});return t}var Oae=function(t,e){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:{},n=3<arguments.length&&arguments[3]!==void 0?
Line truncated
|
||||
overflow: unset;
|
||||
`}),Tae=Z.div.withConfig({componentId:"sc-ugtqr7-1"})(["display:flex;align-items:flex-start;width:100%;box-sizing:border-box;height:calc(100% - 95px);flex-grow:1;[data-phone='true'] &{padding:0;}"]),Iae=Z.div.withConfig({componentId:"sc-ugtqr7-2"})(["height:100%;width:calc(100% - 80px);flex-grow:1;overflow-y:auto;display:flex;flex-direction:column;",""],function(t){var e=t.showTabsDrawer;return e&&`
|
||||
overflow-y: unset;
|
||||
`}),Aae=Z.div.withConfig({componentId:"sc-ugtqr7-3"})(["min-width:108px;height:100%;padding:16px;display:flex;flex-direction:column;gap:16px;overflow-y:auto;max-height:100%;box-shadow:6px 8px 12px 0px rgba(146,166,188,0.14);[data-phone='true'] &{display:flex;padding:0;}"]),Lae=Z(S9).withConfig({componentId:"sc-ugtqr7-4"})(["transition:transform 200ms ease-in-out;width:92px;height:100%;padding:12px;.SfxDrawer-list,.SfxDrawer-item{padding:0;}"]),pL=function(t){var e=t.toggleMainMenu,r=Ye(),n=r.t,i=r.showTabsMenu;return y.createElement(Lae,{className:"FIE_tabs-drawer",open:i,onClose:function(){return e(!1)},disablePortal:!0},y.createElement(b9,null,y.createElement(Ei,{color:"link-basic-secondary",startIcon:y.createElement(eA,null),onClick:function(){return e(!1)}},n("tabsMenu"))),y.createElement(_9,null,y.createElement(x9,null,y.createElement(z9,{toggleMainMenu:e,isDrawer:!0}))))};pL.defaultProps={toggleMainMenu:function(){}};function SE(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function bE(t){for(var e,r=1;r<arguments.length;r++)e=arguments[r]==null?{}:arguments[r],r%2?SE(Object(e),!0).forEach(function(n){A(t,n,e[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):SE(Object(e)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))});return t}var Mae=function(){var t=Ye(),e=t.config,r=t.isLoadingGlobally,n=t.haveNotSavedChanges,i=t.dispatch,o=t.originalImage,a=t.shownImageDimensions,s=t.t,c=t.theme,d=t.feedback,h=d===void 0?{}:d,C=e.loadableDesignState,v=e.useCloudimage,g=e.cloudimage,m=e.source,w=e.avoidChangesNotSavedAlertOnLeave,x=e.useBackendTranslations,b=e.translations,O=e.language,f=e.defaultSavedImageName,S=e.observePluginContainerSize,E=e.showCanvasOnly,I=e.getCurrentImgDataFnRef,R=e.updateStateFnRef,k=e.noCrossOrigin,N=e.resetOnImageSourceChange,T=window.matchMedia("(max-width: 760px)").matches,D=K7(),z=Ie(D,2),B=z[0],Y=z[1],W=G.useState({width:void 0,height:void 0}),q=Ie(W,2),ee=q[0],K=q[1],ue=_o(),ne=G.useRef(null),ae=G.useRef(!1),J=G.useRef(null),Q=G.useRef(n),te=uI(),we=G.useCallback(function(le){i({type:VA,payload:{originalImage:le}})},[]),U=G.useCallback(function(le){i({type:Ys,payload:{feedback:{message:le.message||le,duration:0}}})},[]),F=function(le){return new Promise(function(xe){var Ne=(le==null?void 0:le.src)||le;if(J.current===Ne||!Ne&&o||Lm(Ne,o))return void(J.current||xe());var _e=function(){J.current=null,xe()};J.current=Ne,setTimeout(function(){if(typeof le=="string")eL(le,f,k).then(we).catch(U).finally(_e);else if(le instanceof HTMLImageElement){if(!le.name&&f&&(le.name=f),!le.complete)return void le.addEventListener("load",function(){we(le),_e()});we(le),_e()}else U(s("invalidImageError")),_e()},0)})},$=function(le){Q.current&&(le.preventDefault(),le.returnValue="")},ie=function(){var le=0<arguments.length&&arguments[0]!==void 0?arguments[0]:function(){return[]};return i({type:U7}),Promise.all(le()).finally(function(){i({type:_g})})},pe=function(){C&&0<Object.keys(C).length&&i({type:Jf,payload:bE(bE({},C),{},{finetunes:tI(C==null?void 0:C.finetunes),filter:JT(C==null?void 0:C.filter)})})};wE(function(){m&&!Lm(m,o)&&(ae.current=!1,ie(function(){return[F(m)]})),N&&i({type:m3,payload:{config:e}})},[m]),wE(function(){var le=C==null?void 0:C.imgSrc;le&&!Lm(le,o)?ie(function(){return[F(le).then(pe)]}):pe()},[C]),G.useEffect(function(){0<Object.keys(a||{}).length&&!Object.keys(a).some(function(le){return!a[le]})&&o&&v&&g!==null&&g!==void 0&&g.loadableQuery&&!ae.current&&(i({type:Jf,payload:Pae(g.loadableQuery,a,o)}),ae.current=!0)},[a,o,v,g]),G.useEffect(function(){var le=!1;return S&&ne.current?B(ne.current.parentNode,function(xe){var Ne=xe.width,_e=xe.height;return K({width:Ne,height:_e})}):ee.width&&ee.height&&!le&&K({width:void 0,height:void 0}),function(){S&&ne.current&&Y(ne.current),le=!0}},[S]),G.useEffect(function(){return ie(function(){return[F((C==null?void 0:C.imgSrc)||m)].concat(cr(x?[WX(O,b)]:[]))}),window&&!w&&window.addEventListener("beforeunload",$),function(){window&&!w&&window.removeEventListener("beforeunload",$)}},[]),G.useEffect(function(){R&&Un(R)==="object"&&(R.current=function(le){i({type:Jf,payload:le})})},[R,i]),G.useEffect(function(){I&&Un(I)==="object"&&(I.current=te)},[te]),G.useEffect(function(){Q.current=n},[n]);var ce=function(le){i({type:ZA,payload:{opened:le}})};return y.createElement(kae,{className:M2,"data-phone":ue,showTabsDrawer:T,ref:ne,$size:ee},r&&y.createElement(fL,{theme:c}),function(){return y.createElement(y.Fragment,null,!E&&y.createElement(y.Fragment,null,T&&y.createElement(pL,{toggleMainMenu:ce}),y.createElement(lL,{toggleMainMenu:ce})),o&&h.duration!==0&&y.createElement(Tae,{className:"FIE_main-container"},!E&&!T&&y.createElement(Aae,{className:"FIE_tabs"},y.createElement(z9,{toggleMainMenu:ce}
Line truncated
|
||||
@@ -0,0 +1,5 @@
|
||||
@import '../../../../vendor/filament/filament/resources/css/theme.css';
|
||||
|
||||
@source '../../../../app/Filament/**/*';
|
||||
@source '../../../../resources/views/filament/**/*';
|
||||
@source '../../../../vendor/ralphjsmit/laravel-filament-upload/resources/**/*.blade.php';
|
||||
Whitespace-only changes.
+147
@@ -0,0 +1,147 @@
|
||||
<div class="w-full flex flex-col justify-center items-center h-full"
|
||||
x-data="{
|
||||
loading: true,
|
||||
autoplayed: false,
|
||||
|
||||
init() {
|
||||
this.loading = true;
|
||||
let mediaElement = this.$refs.mediaFrame;
|
||||
|
||||
if (!mediaElement) {
|
||||
this.loading = false;
|
||||
return;
|
||||
}
|
||||
|
||||
if (mediaElement.tagName === 'VIDEO' || mediaElement.tagName === 'AUDIO') {
|
||||
mediaElement.load();
|
||||
|
||||
mediaElement.onload = () => {
|
||||
this.loading = false;
|
||||
};
|
||||
mediaElement.oncanplaythrough = () => {
|
||||
this.loading = false;
|
||||
};
|
||||
mediaElement.onloadstart = () => {
|
||||
this.loading = true;
|
||||
};
|
||||
mediaElement.onerror = () => {
|
||||
this.loading = false;
|
||||
};
|
||||
|
||||
if (mediaElement.readyState >= 3) {
|
||||
this.loading = false;
|
||||
}
|
||||
|
||||
// Autoplay logic
|
||||
if (@js($autoplay) && mediaElement.play) {
|
||||
this.autoplayed = true;
|
||||
mediaElement.play().catch(() => {
|
||||
console.log('Autoplay failed or was blocked.');
|
||||
});
|
||||
}
|
||||
} else {
|
||||
this.loading = true;
|
||||
|
||||
mediaElement.onload = () => {
|
||||
setTimeout(() => {
|
||||
this.loading = false;
|
||||
}, 200);
|
||||
};
|
||||
mediaElement.onerror = () => {
|
||||
this.loading = false;
|
||||
};
|
||||
}
|
||||
},
|
||||
|
||||
resetAutoplay() {
|
||||
this.autoplayed = false;
|
||||
}
|
||||
}"
|
||||
@open-modal.window="resetAutoplay"
|
||||
>
|
||||
|
||||
<div class="flex h-full flex-col justify-center items-center" x-show="loading">
|
||||
<x-filament::loading-indicator class="h-10 w-10" />
|
||||
<span class="text-center font-bold">{{ __('filament-media-action::media-action.loading') }}</span>
|
||||
</div>
|
||||
|
||||
<div class="mediaContainer w-full flex flex-col justify-center items-center h-full" x-show="!loading">
|
||||
@if ($mediaType === \Hugomyb\FilamentMediaAction\Actions\MediaAction::TYPE_YOUTUBE)
|
||||
@php
|
||||
$youtubeId = '';
|
||||
|
||||
// Parse the URL to get components
|
||||
$parsedUrl = parse_url($media);
|
||||
|
||||
if (isset($parsedUrl['host'])) {
|
||||
// Check if it's a youtu.be short URL
|
||||
if (str_contains($parsedUrl['host'], 'youtu.be')) {
|
||||
$youtubeId = ltrim($parsedUrl['path'], '/');
|
||||
}
|
||||
// Check if it's a regular youtube.com URL
|
||||
elseif (str_contains($parsedUrl['host'], 'youtube.com')) {
|
||||
parse_str($parsedUrl['query'] ?? '', $queryParams);
|
||||
$youtubeId = $queryParams['v'] ?? '';
|
||||
}
|
||||
}
|
||||
@endphp
|
||||
|
||||
@if ($youtubeId)
|
||||
<iframe x-ref="mediaFrame" class="rounded-lg" width="100%"
|
||||
src="https://www.youtube.com/embed/{{ $youtubeId }}{{ $autoplay ? '?autoplay=1' : '' }}"
|
||||
frameborder="0"
|
||||
style="aspect-ratio: 16 / 9;"
|
||||
allowfullscreen
|
||||
></iframe>
|
||||
@else
|
||||
<p>Invalid YouTube URL.</p>
|
||||
@endif
|
||||
|
||||
@elseif ($mediaType === \Hugomyb\FilamentMediaAction\Actions\MediaAction::TYPE_AUDIO)
|
||||
<audio
|
||||
x-ref="mediaFrame"
|
||||
class="rounded-lg w-full"
|
||||
style="width: 100%"
|
||||
controls
|
||||
@if($controlsList) controlsList="{{ $controlsList }}" @endif
|
||||
@canplay="loading = false"
|
||||
@loadeddata="loading = false"
|
||||
@play="loading = false"
|
||||
{{ $preload ? '' : 'preload="none"' }}
|
||||
>
|
||||
<source src="{{ $media }}" @if($mime && $mime !== 'unknown') type="{{ $mime }}" @endif>
|
||||
Your browser does not support the audio element.
|
||||
</audio>
|
||||
|
||||
@elseif ($mediaType === \Hugomyb\FilamentMediaAction\Actions\MediaAction::TYPE_VIDEO)
|
||||
<video
|
||||
x-ref="mediaFrame"
|
||||
class="rounded-lg w-full"
|
||||
width="100%"
|
||||
style="aspect-ratio: 16 / 9;"
|
||||
controls
|
||||
playsinline
|
||||
@if($controlsList) controlsList="{{ $controlsList }}" @endif
|
||||
@canplaythrough="loading = false"
|
||||
{{ $preload ? '' : 'preload="none"' }}
|
||||
>
|
||||
<source src="{{ $media }}" @if($mime && $mime !== 'unknown') type="{{ $mime }}" @endif>
|
||||
Your browser does not support the video tag.
|
||||
</video>
|
||||
|
||||
@elseif ($mediaType === \Hugomyb\FilamentMediaAction\Actions\MediaAction::TYPE_IMAGE)
|
||||
|
||||
<img x-ref="mediaFrame" class="rounded-lg" src="{{ $media }}" alt="Media Image"
|
||||
style="max-width: 100%; height: auto;" @load="loading = false">
|
||||
|
||||
@elseif ($mediaType === \Hugomyb\FilamentMediaAction\Actions\MediaAction::TYPE_PDF)
|
||||
|
||||
<iframe x-ref="mediaFrame" class="rounded-lg" style="min-height: 600px"
|
||||
src="{{ $media }}" width="100%" height="100%"
|
||||
@load="loading = false"></iframe>
|
||||
|
||||
@else
|
||||
<p>{{ __('filament-media-action::unsupported-media-type') }}</p>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
+3
-1
@@ -5,7 +5,9 @@ import tailwindcss from '@tailwindcss/vite';
|
||||
export default defineConfig({
|
||||
plugins: [
|
||||
laravel({
|
||||
input: ['resources/css/app.css', 'resources/js/app.js'],
|
||||
input: [
|
||||
'resources/css/filament/work/theme.css'
|
||||
],
|
||||
refresh: true,
|
||||
}),
|
||||
tailwindcss(),
|
||||
|
||||
Reference in new issue
Block a user